dataset
stringclasses
3 values
file
stringlengths
7
83
fun_name
stringlengths
2
83
llvm_ir_function
stringlengths
61
121k
label
stringclasses
2 values
BinRealVul
clear_12265
clear
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 = icmp eq i32 %11, 0 %13 = shl i32 1, %11 %phitmp = xor i32 %13, 255 %storemerge = select i1 %12, i32 254, i32 %phitmp %14 = trunc i32 %storemerge to i8 %15 = and i8 %10, %14 store i8 %15, i8* %9, align 1 ret i64 %8 }
1
BinRealVul
mailbox_get_guid_17908
mailbox_get_guid
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %3 = add i64 %2, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = icmp eq i64 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = add i64 %2, 16 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = call i64 @FUNC(i64 %10, i64 1, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0)) br label LBL_2 LBL_2: %12 = trunc i64 %1 to i32 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false br i1 %14, label LBL_4, label LBL_3 LBL_3: %15 = call i64 @FUNC(i64 %2) %16 = trunc i64 %15 to i32 %17 = icmp slt i32 %16, 0 %18 = icmp eq i1 %17, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %18, label LBL_4, label LBL_6 LBL_4: %19 = trunc i64 %2 to i32 %20 = icmp slt i32 %19, 0 %21 = icmp eq i1 %20, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %21, label LBL_5, label LBL_6 LBL_5: %22 = ptrtoint i64* %arg2 to i64 %23 = call i64 @FUNC(i64 %22) %24 = trunc i64 %23 to i32 %25 = icmp eq i32 %24, 0 %26 = zext i1 %25 to i64 %27 = call i64 @FUNC(i64 %26) store i64 0, i64* %rax.0.reg2mem br label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %2, { 2, 1, 0, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64 1, { 1, 0 } uselistorder label LBL_6, { 2, 0, 1 } }
1
BinRealVul
filter0_479
filter0
define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %.lcssa.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i32 %.reg2mem = alloca i64 %0 = icmp sgt i64 %arg4, 0 store i64 0, i64* %.lcssa.reg2mem br i1 %0, label LBL_1, label LBL_3 LBL_1: %1 = ptrtoint i64* %arg2 to i64 %2 = zext i32 %arg3 to i64 %3 = ptrtoint i32* %arg1 to i64 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge2.reg2mem br label LBL_2 LBL_2: %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %.reload = load i64, i64* %.reg2mem %4 = mul i64 %.reload, 4 %5 = add i64 %4, %1 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = zext i32 %7 to i64 %9 = call i64 @FUNC(i64 %8, i64 %2) %10 = add i64 %4, %3 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = trunc i64 %9 to i32 %14 = sub i32 %12, %13 store i32 %14, i32* %11, align 4 %15 = add i32 %storemerge2.reload, 1 %16 = sext i32 %15 to i64 %17 = icmp slt i64 %16, %arg4 store i64 %16, i64* %.reg2mem store i32 %15, i32* %storemerge2.reg2mem store i64 %16, i64* %.lcssa.reg2mem br i1 %17, label LBL_2, label LBL_3 LBL_3: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem ret i64 %.lcssa.reload uselistorder i64 %4, { 1, 0 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 } uselistorder i64 %arg4, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
flush_235
flush
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 i32* store i32 1, i32* %2, align 4 %3 = add i64 %0, 20 %4 = inttoptr i64 %3 to i32* store i32 0, i32* %4, align 4 %5 = add i64 %0, 24 %6 = inttoptr i64 %5 to i32* store i32 0, i32* %6, align 4 %7 = add i64 %0, 28 %8 = inttoptr i64 %7 to i32* store i32 0, i32* %8, align 4 %9 = add i64 %0, 32 %10 = inttoptr i64 %9 to i32* store i32 0, i32* %10, align 4 %11 = bitcast i64* %arg1 to i32* store i32 0, i32* %11, align 4 %12 = add i64 %0, 8 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = inttoptr i64 %14 to i32* store i32 0, i32* %15, align 4 %16 = add i64 %0, 48 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = add i64 %0, 40 %20 = call i64 @FUNC(i64 %19, i64 %18, i64 1024) ret i64 %20 }
0
BinRealVul
new_msg_register_event_11631
new_msg_register_event
define i64 @FUNC(i64 %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %sv_0 = alloca i64, align 8 %2 = trunc i64 %arg1 to i32 %3 = ptrtoint i64* %sv_0 to i64 %4 = ptrtoint i32* %arg2 to i64 %5 = add i64 %4, 8 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = mul i32 %7, 4 %9 = add i32 %8, 12 %10 = trunc i64 %1 to i16 %11 = call i16 @htons(i16 %10) %12 = zext i16 %11 to i32 %13 = bitcast i64* %sv_0 to i32* store i32 %12, i32* %13, align 8 %14 = add i64 %4, 4 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = or i64 %3, 4 %18 = inttoptr i64 %17 to i32* store i32 %16, i32* %18, align 4 %19 = load i32, i32* %6, align 4 %20 = add i64 %3, 8 %21 = inttoptr i64 %20 to i32* store i32 %19, i32* %21, align 8 %22 = call i64 @FUNC(i64 1, i64 %3, i32 %2, i32 %9) ret i64 %22 uselistorder i64 %3, { 1, 2, 0 } }
1
BinRealVul
blkcg_init_queue_11817
blkcg_init_queue
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64* nonnull @gv_0, i64 %0, i64 0) %2 = icmp eq i64 %1, 0 %3 = icmp eq i1 %2, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_8 LBL_1: %4 = call i64 @FUNC(i64 0) %5 = icmp eq i64 %4, 0 %6 = call i64 @FUNC(i64* nonnull @gv_0, i64 %0, i64 %1) %7 = icmp eq i1 %5, false br i1 %7, label LBL_3, label LBL_2 LBL_2: %8 = call i64 @FUNC() br label LBL_3 LBL_3: %9 = icmp ult i64 %6, -1000 br i1 %9, label LBL_5, label LBL_4 LBL_4: %10 = call i64 @FUNC(i64 %1) store i64 %6, i64* %rax.0.reg2mem br label LBL_8 LBL_5: store i64 %6, i64* %arg1, align 8 %11 = add i64 %0, 8 %12 = inttoptr i64 %11 to i64* store i64 %6, i64* %12, align 8 %13 = call i64 @FUNC(i64 %0) %14 = trunc i64 %13 to i32 %15 = icmp eq i32 %14, 0 br i1 %15, label LBL_7, label LBL_6 LBL_6: %16 = call i64 @FUNC(i64 %0) br label LBL_7 LBL_7: %17 = and i64 %13, 4294967295 store i64 %17, 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 %6, { 1, 3, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i32 0, { 1, 0 } uselistorder label LBL_8, { 1, 2, 0 } }
1
BinRealVul
CheckEventLogging_5677
CheckEventLogging
define i64 @FUNC() local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i32 %rax.0.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i64 %0 = load i64, i64* @gv_0, align 8 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 store i64 %1, i64* %rax.0.reg2mem store i32 0, i32* %storemerge.reg2mem br i1 %3, label LBL_1, label LBL_5 LBL_1: %4 = load i64, i64* @gv_0, align 8 %5 = call i64 @FUNC(i64 %4) %6 = load i64, i64* @gv_0, align 8 %7 = call i64 @FUNC(i64 %6) %8 = icmp eq i64 %7, 0 br i1 %8, label LBL_3, label LBL_2 LBL_2: %9 = inttoptr i64 %7 to i32* %10 = load i32, i32* %9, align 4 %11 = icmp eq i32 %10, 0 store i64 1, i64* %storemerge2.reg2mem br i1 %11, label LBL_3, label LBL_4 LBL_3: store i64 0, i64* %storemerge2.reg2mem br label LBL_4 LBL_4: %storemerge2.reload = load i64, i64* %storemerge2.reg2mem %12 = trunc i64 %storemerge2.reload to i32 store i64 %storemerge2.reload, i64* %rax.0.reg2mem store i32 %12, i32* %storemerge.reg2mem br label LBL_5 LBL_5: %storemerge.reload = load i32, i32* %storemerge.reg2mem %rax.0.reload = load i64, i64* %rax.0.reg2mem store i32 %storemerge.reload, i32* @gv_1, align 4 ret i64 %rax.0.reload uselistorder i64* %storemerge2.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
saa7134_alsa_exit_5390
saa7134_alsa_exit
define i64 @FUNC() local_unnamed_addr { LBL_0: %indvars.iv.reg2mem = alloca i64 store i64 0, i64* %indvars.iv.reg2mem br label LBL_1 LBL_1: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %0 = mul i64 %indvars.iv.reload, 8 %1 = add i64 %0, ptrtoint (i64* @gv_0 to i64) %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = icmp eq i64 %3, 0 br i1 %4, label LBL_3, label LBL_2 LBL_2: %5 = call i64 @FUNC(i64 %3) br label LBL_3 LBL_3: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 10 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_4, label LBL_1 LBL_4: store i64 0, i64* @gv_1, align 8 store i64 0, i64* @gv_2, align 8 %6 = call i64 @FUNC(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_3, i64 0, i64 0)) ret i64 %6 uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32 1, { 1, 0 } }
0
BinRealVul
hdspm_get_system_sample_rate_18275
hdspm_get_system_sample_rate
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i32* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp ult i32 %2, 207001 store i64 %1, i64* %sv_0.0.reg2mem br i1 %3, label LBL_3, label LBL_1 LBL_1: %4 = call i64 @FUNC(i64 %0) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_2, label LBL_3 LBL_2: %8 = call i64 @FUNC(i64 %0) store i64 %8, i64* %sv_0.0.reg2mem br label LBL_3 LBL_3: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %9 = and i64 %sv_0.0.reload, 4294967295 ret i64 %9 uselistorder label LBL_3, { 1, 0, 2 } }
1
BinRealVul
file_tell_callback__9447
file_tell_callback_
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 = load i64, i64* @gv_0, align 8 %2 = icmp eq i64 %1, %0 %3 = icmp eq i1 %2, false store i64 2, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_3 LBL_1: %4 = bitcast i64* %arg1 to %_IO_FILE* %5 = call i32 @ftello(%_IO_FILE* %4) %6 = icmp slt i32 %5, 0 %7 = icmp eq i1 %6, false store i64 1, i64* %rax.0.reg2mem br i1 %7, label LBL_2, label LBL_3 LBL_2: %8 = sext i32 %5 to i64 store i64 %8, i64* %arg2, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_3 LBL_3: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %5, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder label LBL_3, { 2, 0, 1 } }
0
BinRealVul
fxArgumentsSloppyDefineOwnProperty_19304
fxArgumentsSloppyDefineOwnProperty
define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4, i64* %arg5, i64 %arg6) local_unnamed_addr { LBL_0: %r8 = alloca i64, align 8 %0 = ptrtoint i64* %arg5 to i64 %1 = ptrtoint i64* %arg2 to i64 %2 = ptrtoint i64* %arg1 to i64 %3 = icmp eq i32 %arg3, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_8, label LBL_1 LBL_1: %5 = add i64 %1, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = call i64 @FUNC(i64 %2, i64 %7, i32 %arg4) %9 = icmp eq i64 %8, 0 br i1 %9, label LBL_8, label LBL_2 LBL_2: %10 = inttoptr i64 %8 to i32* %11 = load i32, i32* %10, align 4 %12 = icmp eq i32 %11, 1 %13 = icmp eq i1 %12, false br i1 %13, label LBL_8, label LBL_3 LBL_3: %14 = add i64 %8, 16 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = inttoptr i64 %16 to i32* %18 = and i64 %arg6, 2 %19 = icmp eq i64 %18, 0 br i1 %19, label LBL_5, label LBL_4 LBL_4: %20 = add i64 %16, 4 %21 = inttoptr i64 %20 to i32* %22 = load i32, i32* %21, align 4 %23 = add i64 %8, 4 %24 = inttoptr i64 %23 to i32* store i32 %22, i32* %24, align 4 %25 = load i32, i32* %17, align 4 store i32 %25, i32* %10, align 4 %26 = add i64 %16, 16 %27 = inttoptr i64 %26 to i64* %28 = load i64, i64* %27, align 8 store i64 %28, i64* %15, align 8 br label LBL_8 LBL_5: %29 = add i64 %0, 4 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = and i32 %31, 4 %33 = icmp eq i32 %32, 0 %34 = and i64 %arg6, 4 %35 = icmp eq i64 %34, 0 %or.cond = or i1 %35, %33 br i1 %or.cond, label LBL_8, label LBL_6 LBL_6: %36 = add i64 %16, 4 %37 = inttoptr i64 %36 to i32* %38 = load i32, i32* %37, align 4 %39 = add i64 %8, 4 %40 = inttoptr i64 %39 to i32* store i32 %38, i32* %40, align 4 %41 = load i32, i32* %17, align 4 store i32 %41, i32* %10, align 4 %42 = add i64 %16, 16 %43 = inttoptr i64 %42 to i64* %44 = load i64, i64* %43, align 8 store i64 %44, i64* %15, align 8 %45 = bitcast i64* %r8 to i32* %46 = load i32, i32* %45, align 8 %47 = icmp eq i32 %46, 0 br i1 %47, label LBL_8, label LBL_7 LBL_7: %48 = add i64 %0, 16 %49 = inttoptr i64 %48 to i64* %50 = load i64, i64* %49, align 8 store i64 %50, i64* %43, align 8 br label LBL_8 LBL_8: %51 = and i64 %arg6, 4294967295 %52 = call i64 @FUNC(i64 %2, i64 %1, i32 %arg3, i32 %arg4, i64 %0, i64 %51) ret i64 %52 uselistorder i32* %17, { 1, 0 } uselistorder i64 %16, { 0, 3, 1, 2, 4 } uselistorder i64* %15, { 1, 0, 2 } uselistorder i32* %10, { 1, 0, 2 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64 %0, { 2, 0, 1 } uselistorder i64 4, { 1, 2, 0, 3, 4, 5 } uselistorder i64 %arg6, { 1, 0, 2 } uselistorder i32 %arg4, { 1, 0 } }
1
BinRealVul
uwsgi_expand_path_6400
uwsgi_expand_path
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = trunc i64 %arg2 to i32 %sext = mul i64 %arg2, 4294967296 %5 = ashr exact i64 %sext, 32 %6 = icmp slt i32 %4, 4097 br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = and i64 %5, 4294967295 %8 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0), i64 %7, i64 4096, i64 %3, i64 %2, i64 %1) store i64 0, i64* %rax.0.reg2mem br label LBL_9 LBL_2: %9 = trunc i64 %5 to i32 %10 = call i64 @FUNC(i64 %arg1, i32 %9, i64* nonnull @gv_1, i64 0) %11 = icmp eq i64 %arg3, 0 %12 = icmp eq i1 %11, false store i64 %arg3, i64* %sv_0.0.reg2mem br i1 %12, label LBL_4, label LBL_3 LBL_3: %13 = call i64 @FUNC(i64 4097) store i64 %13, i64* %sv_0.0.reg2mem br label LBL_4 LBL_4: %14 = inttoptr i64 %10 to i8* %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %15 = inttoptr i64 %sv_0.0.reload to i8* %16 = call i8* @realpath(i8* %14, i8* %15) %17 = icmp eq i8* %16, null %18 = icmp eq i1 %17, false br i1 %18, label LBL_8, label LBL_5 LBL_5: %19 = call i64 @FUNC(i64 %10) br i1 %12, label LBL_7, label LBL_6 LBL_6: %20 = inttoptr i64 %sv_0.0.reload to i64* call void @free(i64* %20) br label LBL_7 LBL_7: %21 = inttoptr i64 %10 to i64* call void @free(i64* %21) store i64 0, i64* %rax.0.reg2mem br label LBL_9 LBL_8: %22 = inttoptr i64 %10 to i64* call void @free(i64* %22) 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 %sv_0.0.reload, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i32 1, { 4, 3, 2, 6, 5, 7, 1, 0 } }
0
BinRealVul
spapr_phb_vfio_get_loc_code_16785
spapr_phb_vfio_get_loc_code
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg2 to i64 %sv_1 = alloca i64, align 8 store i64 0, i64* %sv_1, align 8 %5 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 0) %6 = icmp eq i64 %5, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %6, label LBL_6, label LBL_1 LBL_1: %7 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0), i64 %5, i64 0, i64 %3, i64 %2, i64 %1) %8 = call i64 @FUNC(i64 %5) %9 = icmp eq i64 %7, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %9, label LBL_6, label LBL_2 LBL_2: %10 = call i64 @FUNC(i64 %7, i64* nonnull %sv_1, i64 0, i64 0) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 store i64 %7, i64* %sv_0.0.reg2mem br i1 %12, label LBL_6, label LBL_3 LBL_3: %13 = call i64 @FUNC(i64 %7) %14 = load i64, i64* %sv_1, align 8 %15 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_2, i64 0, i64 0), i64 %14, i64 0, i64 0, i64 %2, i64 %1) %16 = load i64, i64* %sv_1, align 8 %17 = call i64 @FUNC(i64 %16) %18 = icmp eq i64 %15, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %18, label LBL_6, label LBL_4 LBL_4: %19 = call i64 @FUNC(i64 %15, i64* nonnull %sv_1, i64 0, i64 0) %20 = trunc i64 %19 to i32 %21 = icmp eq i32 %20, 0 store i64 %15, i64* %sv_0.0.reg2mem br i1 %21, label LBL_6, label LBL_5 LBL_5: %22 = load i64, i64* %sv_1, align 8 store i64 %22, i64* %storemerge.reg2mem br label LBL_7 LBL_6: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %23 = call i64 @FUNC(i64 %sv_0.0.reload) store i64 0, i64* %storemerge.reg2mem br label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %7, { 1, 0, 2, 3 } uselistorder i64* %sv_1, { 2, 0, 3, 4, 1, 5 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64, i64*, i64, i64)* @g_file_get_contents, { 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @g_strdup_printf, { 1, 0 } uselistorder label LBL_6, { 1, 0, 3, 2, 4 } }
1
BinRealVul
webvtt_event_to_ass_1349
webvtt_event_to_ass
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.16.reg2mem = alloca i32 %sv_1.18.reg2mem = alloca i64 %.reg2mem26 = alloca i8* %sv_1.1.be.reg2mem = alloca i64 %sv_0.1.be.reg2mem = alloca i32 %.reg2mem = alloca i8 %.pre-phi.reg2mem = alloca i8* %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i64 %rdx.1.reg2mem = alloca i64 %sv_2.0.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg1 to i64 %4 = inttoptr i64 %arg2 to i8* %5 = load i8, i8* %4, align 1 %6 = icmp eq i8 %5, 0 %7 = icmp eq i1 %6, false store i8* %4, i8** %.reg2mem26 store i64 %arg2, i64* %sv_1.18.reg2mem store i32 0, i32* %sv_0.16.reg2mem br i1 %7, label LBL_3.preheader, label LBL_17 LBL_1: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %8 = mul i64 %indvars.iv.reload, 16 %9 = add i64 %8, ptrtoint ([8 x i8*]* @gv_0 to i64) %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 16 %12 = inttoptr i64 %11 to i8* %13 = call i32 @strlen(i8* %12) %14 = call i32 @strncmp(i8* %.reload27, i8* %12, i32 %13) %15 = icmp eq i32 %14, 0 %16 = icmp eq i1 %15, false br i1 %16, label LBL_3, label LBL_2 LBL_2: %17 = sext i32 %13 to i64 %18 = add i64 %8, ptrtoint ([7 x i8*]* @gv_1 to i64) %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 16 %21 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0), i64 %20, i64 %11, i64 %2, i64 %1) %22 = add i64 %sv_1.18.reload, %17 store i32 1, i32* %sv_2.0.reg2mem store i64 %20, i64* %rdx.1.reg2mem store i64 %22, i64* %sv_1.0.reg2mem br label LBL_5 LBL_3: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %23 = icmp ult i64 %indvars.iv.next, 4 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %23, label LBL_1, label LBL_4 LBL_4: %24 = sext i32 %13 to i64 store i32 0, i32* %sv_2.0.reg2mem store i64 %24, i64* %rdx.1.reg2mem store i64 %sv_1.18.reload, i64* %sv_1.0.reg2mem br label LBL_5 LBL_5: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %25 = inttoptr i64 %sv_1.0.reload to i8* %26 = load i8, i8* %25, align 1 %27 = icmp eq i8 %26, 0 br i1 %27, label LBL_17, label LBL_6 LBL_6: %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %28 = icmp eq i32 %sv_2.0.reload, 0 store i8* %25, i8** %.pre-phi.reg2mem store i8 %26, i8* %.reg2mem store i32 0, i32* %sv_0.1.be.reg2mem store i64 %sv_1.0.reload, i64* %sv_1.1.be.reg2mem br i1 %28, label LBL_7, label LBL_15 LBL_7: %29 = icmp eq i8 %26, 60 %30 = icmp eq i1 %29, false store i32 1, i32* %sv_0.0.reg2mem br i1 %30, label LBL_8, label LBL_14 LBL_8: %31 = icmp eq i8 %26, 62 %32 = icmp eq i1 %31, false store i32 0, i32* %sv_0.0.reg2mem br i1 %32, label LBL_9, label LBL_14 LBL_9: %33 = icmp eq i8 %26, 10 %34 = icmp eq i1 %33, false br i1 %34, label LBL_12, label LBL_10 LBL_10: %35 = add i64 %sv_1.0.reload, 1 %36 = inttoptr i64 %35 to i8* %37 = load i8, i8* %36, align 1 %38 = icmp eq i8 %37, 0 br i1 %38, label LBL_12, label LBL_11 LBL_11: %rdx.1.reload = load i64, i64* %rdx.1.reg2mem %39 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_3, i64 0, i64 0), i64 %rdx.1.reload, i64 %11, i64 %2, i64 %1) store i32 %sv_0.16.reload, i32* %sv_0.0.reg2mem br label LBL_14 LBL_12: %40 = icmp eq i32 %sv_0.16.reload, 0 %41 = icmp eq i1 %40, false %42 = icmp eq i8 %26, 13 %or.cond = or i1 %41, %42 store i32 %sv_0.16.reload, i32* %sv_0.0.reg2mem br i1 %or.cond, label LBL_14, label LBL_13 LBL_13: %43 = sext i8 %26 to i64 %44 = and i64 %43, 4294967295 %45 = call i64 @FUNC(i64 %3, i64 %44, i64 1) store i32 %sv_0.16.reload, i32* %sv_0.0.reg2mem br label LBL_14 LBL_14: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %46 = add i64 %sv_1.0.reload, 1 %.phi.trans.insert = inttoptr i64 %46 to i8* %.pre = load i8, i8* %.phi.trans.insert, align 1 store i8* %.phi.trans.insert, i8** %.pre-phi.reg2mem store i8 %.pre, i8* %.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.1.be.reg2mem store i64 %46, i64* %sv_1.1.be.reg2mem br label LBL_15 LBL_15: %sv_1.1.be.reload = load i64, i64* %sv_1.1.be.reg2mem %sv_0.1.be.reload = load i32, i32* %sv_0.1.be.reg2mem %.reload = load i8, i8* %.reg2mem %.pre-phi.reload = load i8*, i8** %.pre-phi.reg2mem %47 = icmp eq i8 %.reload, 0 %48 = icmp eq i1 %47, false store i8* %.pre-phi.reload, i8** %.reg2mem26 store i64 %sv_1.1.be.reload, i64* %sv_1.18.reg2mem store i32 %sv_0.1.be.reload, i32* %sv_0.16.reg2mem br i1 %48, label LBL_3.preheader, label LBL_17 LBL_16: %sv_0.16.reload = load i32, i32* %sv_0.16.reg2mem %sv_1.18.reload = load i64, i64* %sv_1.18.reg2mem %.reload27 = load i8*, i8** %.reg2mem26 store i64 0, i64* %indvars.iv.reg2mem br label LBL_1 LBL_17: ret i64 0 uselistorder i32 %sv_0.16.reload, { 3, 0, 1, 2 } uselistorder i8 %26, { 2, 1, 3, 4, 5, 0, 6 } uselistorder i64 %sv_1.0.reload, { 3, 1, 0, 2 } uselistorder i64 %8, { 1, 0 } uselistorder i64 %3, { 1, 0, 2 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_0.0.reg2mem, { 0, 4, 5, 3, 1, 2 } uselistorder i8** %.pre-phi.reg2mem, { 0, 2, 1 } uselistorder i8* %.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.1.be.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_1.1.be.reg2mem, { 0, 2, 1 } uselistorder i8** %.reg2mem26, { 0, 2, 1 } uselistorder i64* %sv_1.18.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.16.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i64 4294967295, { 1, 0 } uselistorder i64 1, { 2, 1, 3, 0 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @av_bprintf, { 1, 0 } uselistorder i32 (i8*)* @strlen, { 2, 1, 0 } uselistorder i32 0, { 16, 2, 1, 18, 3, 17, 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 } uselistorder i1 false, { 6, 1, 2, 3, 4, 5, 0 } uselistorder i8 0, { 3, 1, 2, 0, 4 } uselistorder label LBL_3.preheader, { 1, 0 } uselistorder label LBL_14, { 2, 3, 4, 0, 1 } }
0
BinRealVul
mv88w8618_eth_init_13926
mv88w8618_eth_init
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 ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0)) %2 = call i64 @FUNC(i64 16) %3 = inttoptr i64 %2 to i64* store i64 %arg3, i64* %3, align 8 %4 = add i64 %0, 16 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = add i64 %0, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = call i64 @FUNC(i64 16, i64 %9, i64 %6, i64 4198818, i64 4198825, i64 %2) %11 = add i64 %2, 8 %12 = inttoptr i64 %11 to i64* store i64 %10, i64* %12, align 8 %13 = call i64 @FUNC(i64 0, i64 4198836, i64 4198847, i64 %2) %14 = trunc i64 %13 to i32 %15 = and i64 %arg2, 4294967295 %16 = call i64 @FUNC(i64 %15, i64 4096, i32 %14) ret i64 %16 uselistorder i64 16, { 0, 2, 1 } }
1
BinRealVul
remap_cell_to_origin_clear_discard_4404
remap_cell_to_origin_clear_discard
define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i8 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %.reg2mem = alloca i64 %1 = ptrtoint i64* %arg2 to i64 %2 = ptrtoint i64* %arg1 to i64 %3 = load i64, i64* %0 %sv_0 = alloca i8, align 1 %sv_1 = alloca i64, align 8 store i64 %2, i64* %sv_1, align 8 %4 = bitcast i8* %sv_0 to i64* %5 = call i64 @FUNC(i64* nonnull %4) %6 = call i64 @FUNC(i64* nonnull %4) store i8 0, i8* %sv_0, align 1 %7 = call i64 @FUNC(i64 %2, i64 %3) %8 = add i64 %2, 8 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = call i64 @FUNC(i64 %10, i64 4198848, i64* nonnull %sv_1, i64 %1) %12 = add i64 %2, 4 %13 = call i64 @FUNC(i64 %12, i64* nonnull %4) %14 = call i64 @FUNC(i64 %2, i64 %3) %15 = call i64 @FUNC(i64 %2, i64 %3) %16 = icmp eq i8 %arg4, 0 br i1 %16, label LBL_2, label LBL_1 LBL_1: %17 = call i64 @FUNC(i64 %2, i64 %3) br label LBL_3 LBL_2: %18 = call i64 @FUNC(i64 %2, i64 %3) br label LBL_3 LBL_3: %19 = load i8, i8* %sv_0, align 1 %20 = icmp eq i8 %19, 0 br i1 %20, label LBL_5, label LBL_4 LBL_4: %21 = zext i32 %arg3 to i64 %22 = call i64 @FUNC(i64 %2, i64 %21) %23 = and i64 %22, 4294967295 %24 = call i64 @FUNC(i64 %2, i64 %23) br label LBL_5 LBL_5: %25 = call i64 @FUNC(i64* nonnull %4) %26 = icmp eq i64 %25, 0 %27 = icmp eq i1 %26, false store i64 %25, i64* %.reg2mem br i1 %27, label LBL_6, label LBL_7 LBL_6: %.reload = load i64, i64* %.reg2mem %28 = call i64 @FUNC(i64 %2, i64 %.reload) %29 = call i64 @FUNC(i64 %2, i64 %.reload) %30 = call i64 @FUNC(i64* nonnull %4) %31 = icmp eq i64 %30, 0 %32 = icmp eq i1 %31, false store i64 %30, i64* %.reg2mem br i1 %32, label LBL_6, label LBL_7 LBL_7: %33 = call i64 @FUNC(i64 %2, i64 %1) ret i64 %33 uselistorder i64 %.reload, { 1, 0 } uselistorder i64* %4, { 1, 0, 2, 3, 4 } uselistorder i8* %sv_0, { 1, 0, 2 } uselistorder i64 %2, { 2, 4, 3, 1, 0, 5, 6, 7, 8, 9, 10, 11, 12 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i1 false, { 1, 0 } uselistorder i64 (i64*)* @bio_list_pop, { 1, 0 } uselistorder i64 (i64, i64)* @issue, { 1, 0 } uselistorder i64 (i64, i64)* @remap_to_origin, { 1, 0 } uselistorder i8 0, { 1, 2, 0 } uselistorder i64 (i64*)* @bio_list_init, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_5, { 1, 0 } }
0
BinRealVul
compare_10136
compare
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %rbx.110.reg2mem = alloca i64 %r12.011.reg2mem = alloca i64 %sext = mul i64 %arg3, 4294967296 %0 = ashr exact i64 %sext, 32 %sext3 = mul i64 %arg4, 4294967296 %1 = ashr exact i64 %sext3, 32 %2 = add i64 %0, %arg1 %3 = add i64 %1, %arg2 %4 = icmp ugt i64 %2, %arg1 %5 = icmp ugt i64 %3, %arg2 %or.cond9 = icmp eq i1 %4, %5 store i64 %arg1, i64* %r12.011.reg2mem store i64 %arg2, i64* %rbx.110.reg2mem br i1 %or.cond9, label LBL_1, label LBL_5 LBL_1: %rbx.110.reload = load i64, i64* %rbx.110.reg2mem %r12.011.reload = load i64, i64* %r12.011.reg2mem %6 = inttoptr i64 %r12.011.reload to i8* %7 = load i8, i8* %6, align 1 %8 = inttoptr i64 %rbx.110.reload to i8* %9 = load i8, i8* %8, align 1 %10 = icmp eq i8 %9, %7 %11 = icmp eq i1 %10, false br i1 %11, label LBL_2, label LBL_3 LBL_2: %12 = zext i8 %9 to i32 %13 = zext i8 %7 to i32 %14 = call i32 @tolower(i32 %13) %15 = call i32 @tolower(i32 %12) %16 = icmp eq i32 %14, %15 br i1 %16, label LBL_3, label LBL_4 LBL_3: %17 = add nuw i64 %r12.011.reload, 1 %18 = add nuw i64 %rbx.110.reload, 1 %19 = icmp ult i64 %17, %2 %20 = icmp ult i64 %18, %3 %or.cond = icmp eq i1 %19, %20 store i64 %17, i64* %r12.011.reg2mem store i64 %18, i64* %rbx.110.reg2mem br i1 %or.cond, label LBL_1, label LBL_5 LBL_4: %21 = sub i32 %14, %15 %22 = zext i32 %21 to i64 store i64 %22, i64* %storemerge.reg2mem br label LBL_6 LBL_5: %23 = sub nsw i64 %0, %1 %24 = and i64 %23, 4294967295 store i64 %24, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i8 %9, { 1, 0 } uselistorder i8 %7, { 1, 0 } uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64 %0, { 1, 0 } uselistorder i64* %r12.011.reg2mem, { 2, 0, 1 } uselistorder i64* %rbx.110.reg2mem, { 2, 0, 1 } uselistorder i32 (i32)* @tolower, { 1, 0 } uselistorder i32 1, { 2, 1, 0 } uselistorder i64 %arg2, { 0, 2, 1 } uselistorder i64 %arg1, { 0, 2, 1 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
crypto_bignum_allocate_12034
crypto_bignum_allocate
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 %arg1) %1 = mul i64 %0, 4 %2 = trunc i64 %1 to i32 %3 = call i64* @calloc(i32 1, i32 %2) %4 = icmp eq i64* %3, null %5 = icmp eq i1 %4, false store i64 0, i64* %storemerge.reg2mem br i1 %5, label LBL_1, label LBL_2 LBL_1: %6 = ptrtoint i64* %3 to i64 %7 = add i64 %1, -4 store i64 %7, i64* %3, align 8 store i64 %6, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %3, { 0, 2, 1 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32 1, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
__sock_diag_rcv_msg_11302
__sock_diag_rcv_msg
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i32* %arg2 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %0) %3 = trunc i64 %2 to i32 %4 = icmp ult i32 %3, 4 store i64 4294967274, i64* %storemerge.reg2mem br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = inttoptr i64 %1 to i32* %6 = ptrtoint i64* %arg1 to i64 %7 = load i32, i32* %5, align 4 %8 = zext i32 %7 to i64 %9 = call i64 @FUNC(i64 %8) %10 = icmp eq i64 %9, 0 %11 = icmp eq i1 %10, false %12 = and i64 %6, 4294967295 %13 = call i64 @FUNC(i64 %9) %14 = select i1 %11, i64 %12, i64 4294967294 store i64 %14, 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
pci_device_class_init_784
pci_device_class_init
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 store i64 4198662, i64* %arg1, align 8 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* store i64 4198669, i64* %2, align 8 %3 = add i64 %0, 16 %4 = inttoptr i64 %3 to i32* store i32 1, i32* %4, align 4 %5 = load i64, i64* @gv_0, align 8 %6 = add i64 %0, 24 %7 = inttoptr i64 %6 to i64* store i64 %5, i64* %7, align 8 ret i64 %0 uselistorder i64 %0, { 1, 0, 2, 3 } }
0
BinRealVul
strtrimch_17430
strtrimch
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %storemerge2.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, null %1 = icmp eq i1 %0, false store i64 0, i64* %storemerge.reg2mem br i1 %1, label LBL_1, label LBL_7 LBL_1: %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %arg2 to i32 store i64 %2, i64* %storemerge2.reg2mem br label LBL_2 LBL_2: %storemerge2.reload = load i64, i64* %storemerge2.reg2mem %4 = inttoptr i64 %storemerge2.reload to i8* %5 = load i8, i8* %4, align 1 %6 = sext i8 %5 to i32 %7 = icmp eq i32 %3, %6 %8 = add i64 %storemerge2.reload, 1 store i64 %8, i64* %storemerge2.reg2mem br i1 %7, label LBL_2, label LBL_3 LBL_3: %9 = bitcast i64* %arg1 to i8* %10 = call i32 @strlen(i8* %9) %11 = inttoptr i64 %storemerge2.reload to i64* %12 = call i64* @memmove(i64* %arg1, i64* %11, i32 %10) %13 = call i32 @strlen(i8* %9) store i32 %13, i32* %sv_0.0.reg2mem br label LBL_5 LBL_4: %14 = sext i32 %21 to i64 %15 = add i64 %14, %2 %16 = inttoptr i64 %15 to i8* %17 = load i8, i8* %16, align 1 %18 = sext i8 %17 to i32 %19 = icmp eq i32 %3, %18 %20 = icmp eq i1 %19, false store i32 %21, i32* %sv_0.0.reg2mem br i1 %20, label LBL_6, label LBL_5 LBL_5: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %21 = add i32 %sv_0.0.reload, -1 %22 = icmp slt i32 %21, 0 %23 = icmp eq i1 %22, false br i1 %23, label LBL_4, label LBL_6 LBL_6: %24 = sext i32 %sv_0.0.reload to i64 %25 = add i64 %24, %2 %26 = inttoptr i64 %25 to i8* store i8 0, i8* %26, align 1 store i64 %2, i64* %storemerge.reg2mem br label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %21, { 2, 1, 0 } uselistorder i32 %sv_0.0.reload, { 1, 0 } uselistorder i64 %storemerge2.reload, { 2, 1, 0 } uselistorder i64 %2, { 0, 2, 3, 1 } uselistorder i64* %storemerge2.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32 (i8*)* @strlen, { 1, 0 } uselistorder i1 false, { 1, 0, 2 } uselistorder i64* %arg1, { 0, 1, 3, 2 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
1
BinRealVul
net_rx_pkt_dump_11585
net_rx_pkt_dump
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = icmp eq i32* %arg1, null %3 = icmp eq i1 %2, false br i1 %3, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_1, i64 0, i64 0), i32 11, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %4 = ptrtoint i32* %arg1 to i64 %5 = add i64 %4, 8 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = zext i32 %7 to i64 %9 = add i64 %4, 4 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = zext i32 %11 to i64 %13 = and i64 %1, 4294967295 %14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_3, i64 0, i64 0), i64 %13, i64 %12, i64 %8) %15 = sext i32 %14 to i64 ret i64 %15 }
1
BinRealVul
av_parse_color_1985
av_parse_color
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i8*, align 8 %4 = inttoptr i64 %arg2 to i8* %5 = call i32 @strcasecmp(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0)) %6 = icmp eq i32 %5, 0 br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = call i32 @strcasecmp(i8* %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0)) %8 = icmp eq i32 %7, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = call i64 @FUNC() %11 = trunc i64 %10 to i32 %12 = udiv i32 %11, 16777216 %13 = trunc i32 %12 to i8 %14 = bitcast i64* %arg1 to i8* store i8 %13, i8* %14, align 1 %15 = udiv i32 %11, 65536 %16 = add i64 %3, 1 %17 = trunc i32 %15 to i8 %18 = inttoptr i64 %16 to i8* store i8 %17, i8* %18, align 1 %19 = udiv i32 %11, 256 %20 = add i64 %3, 2 %21 = trunc i32 %19 to i8 %22 = inttoptr i64 %20 to i8* store i8 %21, i8* %22, align 1 %23 = add i64 %3, 3 %24 = trunc i64 %10 to i8 %25 = inttoptr i64 %23 to i8* store i8 %24, i8* %25, align 1 store i64 0, i64* %rax.0.reg2mem br label LBL_12 LBL_3: %26 = call i32 @strncmp(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0), i32 2) %27 = icmp eq i32 %26, 0 %28 = icmp eq i1 %27, false br i1 %28, label LBL_9, label LBL_4 LBL_4: %29 = call i32 @strlen(i8* %4) %30 = call i32 @strtoul(i8* %4, i8** nonnull %sv_1, i32 16) %31 = load i8*, i8** %sv_1, align 8 %32 = load i8, i8* %31, align 1 %33 = icmp eq i8 %32, 0 %34 = or i32 %29, 2 %35 = icmp eq i32 %34, 10 %or.cond = icmp eq i1 %35, %33 br i1 %or.cond, label LBL_6, label LBL_5 LBL_5: %36 = call i64 @FUNC(i64 %arg3, i64 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_3, i64 0, i64 0), i64 %arg2, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_12 LBL_6: %37 = icmp eq i32 %29, 10 %38 = icmp eq i1 %37, false store i32 %30, i32* %sv_0.0.reg2mem br i1 %38, label LBL_8, label LBL_7 LBL_7: %39 = add i64 %3, 3 %40 = trunc i32 %30 to i8 %41 = inttoptr i64 %39 to i8* store i8 %40, i8* %41, align 1 %42 = udiv i32 %30, 256 store i32 %42, i32* %sv_0.0.reg2mem br label LBL_8 LBL_8: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %43 = udiv i32 %sv_0.0.reload, 65536 %44 = trunc i32 %43 to i8 %45 = bitcast i64* %arg1 to i8* store i8 %44, i8* %45, align 1 %46 = udiv i32 %sv_0.0.reload, 256 %47 = add i64 %3, 1 %48 = trunc i32 %46 to i8 %49 = inttoptr i64 %47 to i8* store i8 %48, i8* %49, align 1 %50 = add i64 %3, 2 %51 = trunc i32 %sv_0.0.reload to i8 %52 = inttoptr i64 %50 to i8* store i8 %51, i8* %52, align 1 store i64 0, i64* %rax.0.reg2mem br label LBL_12 LBL_9: %53 = inttoptr i64 %arg2 to i64* %54 = call i64* @bsearch(i64* %53, i64* nonnull @gv_4, i32 6, i32 4, i32 (i64*, i64*)* inttoptr (i64 4199017 to i32 (i64*, i64*)*)) %55 = icmp eq i64* %54, null %56 = icmp eq i1 %55, false br i1 %56, label LBL_11, label LBL_10 LBL_10: %57 = call i64 @FUNC(i64 %arg3, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_5, i64 0, i64 0), i64 %arg2, i64 4199017, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_12 LBL_11: %58 = bitcast i64* %54 to i32* %59 = load i32, i32* %58, align 4 %60 = bitcast i64* %arg1 to i32* store i32 %59, i32* %60, align 4 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* %54, { 1, 0 } uselistorder i32 %sv_0.0.reload, { 0, 2, 1 } uselistorder i32 %30, { 1, 2, 0 } uselistorder i32 %29, { 1, 0 } uselistorder i8* %4, { 1, 0, 2, 3, 4 } uselistorder i64 %3, { 1, 2, 0, 3, 4, 5 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 5, 2, 4, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i64 4294967295, { 1, 0 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 } uselistorder i32 10, { 1, 0 } uselistorder i8 0, { 1, 2, 0 } uselistorder i32 (i8*, i8*)* @strcasecmp, { 1, 0 } uselistorder i64 %arg3, { 1, 0 } uselistorder i64 %arg2, { 1, 2, 0, 3 } uselistorder label LBL_12, { 2, 3, 1, 4, 0 } }
0
BinRealVul
find_unused_picture_15960
find_unused_picture
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge1.in.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 %storemerge8.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 = trunc i64 %arg2 to i32 %6 = icmp eq i32 %5, 0 store i32 0, i32* %storemerge8.reg2mem store i64 0, i64* %indvars.iv.reg2mem br i1 %6, label LBL_3, label LBL_1 LBL_1: %storemerge8.reload = load i32, i32* %storemerge8.reg2mem %7 = sext i32 %storemerge8.reload to i64 %8 = mul i64 %7, 8 %9 = add i64 %8, %4 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = icmp eq i64 %11, 0 %13 = icmp eq i1 %12, false store i32 %storemerge8.reload, i32* %storemerge1.in.reg2mem br i1 %13, label LBL_2, label LBL_7 LBL_2: %14 = add nuw i32 %storemerge8.reload, 1 %15 = icmp ult i32 %14, 10 store i32 %14, i32* %storemerge8.reg2mem br i1 %15, label LBL_1, label LBL_5 LBL_3: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %16 = mul i64 %indvars.iv.reload, 8 %17 = add i64 %16, %4 %18 = call i64 @FUNC(i64 %4, i64 %17) %19 = trunc i64 %18 to i32 %20 = icmp eq i32 %19, 0 br i1 %20, label LBL_4, label LBL_6 LBL_4: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %21 = icmp ult i64 %indvars.iv.next, 10 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %21, label LBL_3, label LBL_5 LBL_5: %22 = add i64 %4, 80 %23 = inttoptr i64 %22 to i64* %24 = load i64, i64* %23, align 8 %25 = call i64 @FUNC(i64 %24, i64 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1) call void @abort() unreachable LBL_6: %26 = trunc i64 %indvars.iv.reload to i32 store i32 %26, i32* %storemerge1.in.reg2mem br label LBL_7 LBL_7: %storemerge1.in.reload = load i32, i32* %storemerge1.in.reg2mem %storemerge1 = zext i32 %storemerge1.in.reload to i64 ret i64 %storemerge1 uselistorder i64 %indvars.iv.reload, { 1, 0, 2 } uselistorder i32 %storemerge8.reload, { 1, 0, 2 } uselistorder i64 %4, { 2, 3, 0, 1 } uselistorder i32* %storemerge8.reg2mem, { 2, 0, 1 } uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge1.in.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i32 0, { 1, 0, 2 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_3, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
virtio_scsi_handle_ctrl_vq_17256
virtio_scsi_handle_ctrl_vq
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %sv_0.0.lcssa.reg2mem = alloca i64 %.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = call i64 @FUNC(i64 %1) %3 = call i64 @FUNC(i64 %1, i64 %0) %4 = icmp eq i64 %3, 0 %5 = icmp eq i1 %4, false store i64 %3, i64* %.reg2mem store i64 0, i64* %sv_0.0.lcssa.reg2mem br i1 %5, label LBL_1, label LBL_2 LBL_1: %.reload = load i64, i64* %.reg2mem %6 = call i64 @FUNC(i64 %1, i64 %.reload) %7 = call i64 @FUNC(i64 %1, i64 %0) %8 = icmp eq i64 %7, 0 %9 = icmp eq i1 %8, false store i64 %7, i64* %.reg2mem store i64 1, i64* %sv_0.0.lcssa.reg2mem br i1 %9, label LBL_1, label LBL_2 LBL_2: %sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem %10 = call i64 @FUNC(i64 %1) ret i64 %sv_0.0.lcssa.reload uselistorder i64 %1, { 1, 3, 2, 0, 4 } uselistorder i64 %0, { 1, 0 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i1 false, { 1, 0 } uselistorder i64 (i64, i64)* @virtio_scsi_pop_req, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
sessionCookieDirective_13526
sessionCookieDirective
define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i8* %arg3 to i64 %4 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i8*, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %5 = call i64 @FUNC(i64 %4, i64 %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_2) %6 = trunc i64 %5 to i32 %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %8, label LBL_1, label LBL_15 LBL_1: %9 = load i64, i64* %sv_2, align 8 %10 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0)) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 br i1 %12, label LBL_3, label LBL_2 LBL_2: %13 = call i64 @FUNC(i64 %9, i64 0) store i64 0, i64* %rax.0.reg2mem br label LBL_15 LBL_3: %14 = load i64, i64* %sv_2, align 8 %15 = call i64 @FUNC(i64 %14, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0)) %16 = trunc i64 %15 to i32 %17 = icmp eq i32 %16, 0 br i1 %17, label LBL_5, label LBL_4 LBL_4: %18 = call i64 @FUNC(i64 %14, i64 1) store i64 0, i64* %rax.0.reg2mem br label LBL_15 LBL_5: %19 = load i64, i64* %sv_2, align 8 %20 = call i64 @FUNC(i64 %19, i64* nonnull %sv_1) %21 = icmp eq i64 %20, 0 %22 = icmp eq i1 %21, false store i64 0, i64* %rax.0.reg2mem br i1 %22, label LBL_6, label LBL_15 LBL_6: %23 = bitcast i8** %sv_0 to i64* store i64 %20, i64* %storemerge2.reg2mem br label LBL_7 LBL_7: %storemerge2.reload = load i64, i64* %storemerge2.reg2mem %24 = call i64 @FUNC(i64 %storemerge2.reload, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i64* nonnull %23) %25 = load i8*, i8** %sv_0, align 8 %26 = ptrtoint i8* %25 to i64 %27 = call i64 @FUNC(i64 %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, i64 0, i64 0), i64 0) %28 = inttoptr i64 %27 to i8* store i8* %28, i8** %sv_0, align 8 %29 = icmp eq i64 %27, 0 br i1 %29, label LBL_14, label LBL_8 LBL_8: %30 = load i8, i8* %28, align 1 %31 = icmp eq i8 %30, 0 br i1 %31, label LBL_14, label LBL_9 LBL_9: %32 = call i64 @FUNC(i64 %24, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_5, i64 0, i64 0)) %33 = trunc i64 %32 to i32 %34 = icmp eq i32 %33, 0 br i1 %34, label LBL_11, label LBL_10 LBL_10: %35 = load i8*, i8** %sv_0, align 8 %36 = ptrtoint i8* %35 to i64 %37 = call i64 @FUNC(i64 %36, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_5, i64 0, i64 0)) %38 = and i64 %37, 4294967295 %39 = call i64 @FUNC(i64 %36, i64 %38) br label LBL_14 LBL_11: %40 = call i64 @FUNC(i64 %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0)) %41 = trunc i64 %40 to i32 %42 = icmp eq i32 %41, 0 br i1 %42, label LBL_13, label LBL_12 LBL_12: %43 = load i8*, i8** %sv_0, align 8 %44 = ptrtoint i8* %43 to i64 %45 = call i64 @FUNC(i64 %24, i64 %44) br label LBL_14 LBL_13: %46 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_7, i64 0, i64 0), i64 0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_8, i64 0, i64 0), i64 %24, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_15 LBL_14: %47 = load i64, i64* %sv_1, align 8 %48 = call i64 @FUNC(i64 %47, i64* nonnull %sv_1) %49 = icmp eq i64 %48, 0 %50 = icmp eq i1 %49, false store i64 %48, i64* %storemerge2.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %50, label LBL_7, label LBL_15 LBL_15: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %36, { 1, 0 } uselistorder i64* %sv_2, { 1, 2, 3, 0 } uselistorder i64* %sv_1, { 0, 2, 1 } uselistorder i8** %sv_0, { 3, 2, 1, 0, 4 } uselistorder i64* %storemerge2.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 6, 2, 5, 4, 3 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64, i64*)* @maGetNextArg, { 1, 0 } uselistorder i64 1, { 1, 0 } uselistorder i64 (i64, i64)* @httpSetAuthSession, { 1, 0 } uselistorder i64 (i64, i8*)* @smatch, { 3, 2, 1, 0 } uselistorder i64 4294967295, { 1, 2, 0 } uselistorder i1 false, { 1, 0, 2 } uselistorder label LBL_15, { 0, 3, 1, 4, 5, 2 } uselistorder label LBL_14, { 2, 3, 1, 0 } uselistorder label LBL_7, { 1, 0 } }
0
BinRealVul
ovl_setattr_11776
ovl_setattr
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %sv_0.1.reg2mem = alloca i64 %sv_0.0.in.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false store i64 %1, i64* %sv_0.1.reg2mem br i1 %4, label LBL_5, label LBL_1 LBL_1: %5 = ptrtoint i64* %arg2 to i64 %6 = call i64 @FUNC(i64 %0) %7 = icmp eq i64 %6, 0 br i1 %7, label LBL_3, label LBL_2 LBL_2: %8 = inttoptr i64 %6 to i64* %9 = load i64, i64* %8, align 8 %10 = call i64 @FUNC(i64 %9) %11 = call i64 @FUNC(i64 %6, i64 %5, i64 0) %12 = load i64, i64* %8, align 8 %13 = call i64 @FUNC(i64 %12) store i64 %11, i64* %sv_0.0.in.reg2mem br label LBL_4 LBL_3: %14 = call i64 @FUNC(i64 %0, i64 %5, i64 0) store i64 %14, i64* %sv_0.0.in.reg2mem br label LBL_4 LBL_4: %sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem %15 = call i64 @FUNC(i64 %0) store i64 %sv_0.0.in.reload, i64* %sv_0.1.reg2mem br label LBL_5 LBL_5: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %16 = and i64 %sv_0.1.reload, 4294967295 ret i64 %16 uselistorder i64 %6, { 1, 0, 2 } uselistorder i64 %5, { 1, 0 } uselistorder i64* %sv_0.0.in.reg2mem, { 0, 2, 1 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
m68060_cpu_initfn_245
m68060_cpu_initfn
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %1, i64 1) %3 = call i64 @FUNC(i64 %1, i64 2) %4 = call i64 @FUNC(i64 %1, i64 3) %5 = call i64 @FUNC(i64 %1, i64 4) %6 = call i64 @FUNC(i64 %1, i64 5) %7 = call i64 @FUNC(i64 %1, i64 6) %8 = call i64 @FUNC(i64 %1, i64 7) %9 = call i64 @FUNC(i64 %1, i64 8) %10 = call i64 @FUNC(i64 %1, i64 9) %11 = call i64 @FUNC(i64 %1, i64 10) %12 = call i64 @FUNC(i64 %1, i64 11) %13 = call i64 @FUNC(i64 %1, i64 12) %14 = call i64 @FUNC(i64 %1, i64 13) %15 = call i64 @FUNC(i64 %1, i64 14) ret i64 %15 uselistorder i64 (i64, i64)* @m68k_set_feature, { 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } }
0
reposvul_c_test
sco_recv_scodata_28
sco_recv_scodata
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = icmp eq i64* %arg1, null br i1 %2, label LBL_3, label LBL_1 LBL_1: %3 = ptrtoint i64* %arg1 to i64 %4 = trunc i64 %1 to i32 %5 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 %3, i32 %4) %6 = icmp eq i32 %4, 0 br i1 %6, label LBL_3, label LBL_2 LBL_2: %7 = ptrtoint i32* %arg2 to i64 %8 = call i64 @FUNC(i64 %3, i64 %7) br label LBL_4 LBL_3: %9 = ptrtoint i32* %arg2 to i64 %10 = call i64 @FUNC(i64 %9) br label LBL_4 LBL_4: ret i64 0 uselistorder i32 %4, { 1, 0 } uselistorder i32* %arg2, { 1, 0 } uselistorder i64* %arg1, { 1, 0 } }
0
BinRealVul
xt_alloc_table_info_11328
xt_alloc_table_info
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i64 %0 = trunc i64 %arg1 to i32 %1 = add i32 %0, 4095 %2 = udiv i32 %1, 4096 %3 = add nuw nsw i32 %2, 2 %4 = zext i32 %3 to i64 %5 = load i64, i64* @gv_0, align 8 %6 = icmp ult i64 %5, %4 store i64 0, i64* %rax.0.reg2mem br i1 %6, label LBL_5, label LBL_1 LBL_1: %7 = and i64 %arg1, 4294967295 %8 = add nuw nsw i64 %7, 4 %9 = icmp ult i64 %8, 8193 br i1 %9, label LBL_2, label LBL_3 LBL_2: %10 = call i64 @FUNC(i64 %8, i64 0) %11 = icmp eq i64 %10, 0 %12 = icmp eq i1 %11, false store i64 %10, i64* %sv_0.1.reg2mem br i1 %12, label LBL_4, label LBL_3 LBL_3: %13 = call i64 @FUNC(i64 %8) %14 = icmp eq i64 %13, 0 %15 = icmp eq i1 %14, false store i64 %13, i64* %sv_0.1.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %15, label LBL_4, label LBL_5 LBL_4: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %16 = inttoptr i64 %sv_0.1.reload to i64* %17 = call i64* @memset(i64* %16, i32 0, i32 4) %18 = inttoptr i64 %sv_0.1.reload to i32* store i32 %0, i32* %18, align 4 store i64 %sv_0.1.reload, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i32 1, { 1, 0 } uselistorder label LBL_5, { 2, 0, 1 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
vga_common_init_5123
vga_common_init
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %sv_0.215.reg2mem = alloca i32 %storemerge616.reg2mem = alloca i32 %indvars.iv28.reg2mem = alloca i64 %sv_0.120.reg2mem = alloca i32 %storemerge921.reg2mem = alloca i32 %sv_0.018.reg2mem = alloca i32 %storemerge1119.reg2mem = alloca i32 %rdi = alloca i64, align 8 store i64 0, i64* %indvars.iv28.reg2mem br label LBL_5 LBL_1: %sv_0.018.reload = load i32, i32* %sv_0.018.reg2mem %storemerge1119.reload = load i32, i32* %storemerge1119.reg2mem %0 = lshr i32 %18, %storemerge1119.reload %1 = urem i32 %0, 2 %2 = mul i32 %storemerge1119.reload, 4 %3 = shl i32 %1, %2 %4 = or i32 %3, %sv_0.018.reload %5 = add nuw nsw i32 %storemerge1119.reload, 1 %exitcond26 = icmp eq i32 %5, 8 store i32 %5, i32* %storemerge1119.reg2mem store i32 %4, i32* %sv_0.018.reg2mem br i1 %exitcond26, label LBL_2, label LBL_1 LBL_2: %6 = mul i64 %indvars.iv28.reload, 4 %7 = add i64 %6, ptrtoint (i32** @gv_0 to i64) %8 = inttoptr i64 %7 to i32* store i32 %4, i32* %8, align 4 store i32 0, i32* %storemerge921.reg2mem store i32 0, i32* %sv_0.120.reg2mem br label LBL_3 LBL_3: %sv_0.120.reload = load i32, i32* %sv_0.120.reg2mem %storemerge921.reload = load i32, i32* %storemerge921.reg2mem %9 = mul i32 %storemerge921.reload, 2 %10 = ashr i32 %18, %9 %11 = urem i32 %10, 4 %12 = mul i32 %storemerge921.reload, 4 %13 = shl i32 %11, %12 %14 = or i32 %13, %sv_0.120.reload %15 = add nuw nsw i32 %storemerge921.reload, 1 %exitcond27 = icmp eq i32 %15, 4 store i32 %15, i32* %storemerge921.reg2mem store i32 %14, i32* %sv_0.120.reg2mem br i1 %exitcond27, label LBL_4, label LBL_3 LBL_4: %16 = add i64 %6, ptrtoint (i32** @gv_1 to i64) %17 = inttoptr i64 %16 to i32* store i32 %14, i32* %17, align 4 %indvars.iv.next29 = add nuw nsw i64 %indvars.iv28.reload, 1 %exitcond30 = icmp eq i64 %indvars.iv.next29, 256 store i64 %indvars.iv.next29, i64* %indvars.iv28.reg2mem store i64 0, i64* %indvars.iv.reg2mem br i1 %exitcond30, label LBL_8, label LBL_5 LBL_5: %indvars.iv28.reload = load i64, i64* %indvars.iv28.reg2mem %18 = trunc i64 %indvars.iv28.reload to i32 store i32 0, i32* %storemerge1119.reg2mem store i32 0, i32* %sv_0.018.reg2mem br label LBL_1 LBL_6: %sv_0.215.reload = load i32, i32* %sv_0.215.reg2mem %storemerge616.reload = load i32, i32* %storemerge616.reg2mem %19 = lshr i32 %31, %storemerge616.reload %20 = urem i32 %19, 2 %21 = mul i32 %storemerge616.reload, 2 %22 = shl i32 %20, %21 %23 = or i32 %22, %sv_0.215.reload %24 = or i32 %21, 1 %25 = shl i32 %20, %24 %26 = or i32 %23, %25 %27 = add nuw nsw i32 %storemerge616.reload, 1 %exitcond = icmp eq i32 %27, 4 store i32 %27, i32* %storemerge616.reg2mem store i32 %26, i32* %sv_0.215.reg2mem br i1 %exitcond, label LBL_7, label LBL_6 LBL_7: %28 = mul i64 %indvars.iv.reload, 4 %29 = add i64 %28, ptrtoint (i32** @gv_2 to i64) %30 = inttoptr i64 %29 to i32* store i32 %26, i32* %30, align 4 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond25 = icmp eq i64 %indvars.iv.next, 16 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond25, label LBL_9, label LBL_8 LBL_8: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %31 = trunc i64 %indvars.iv.reload to i32 store i32 0, i32* %storemerge616.reg2mem store i32 0, i32* %sv_0.215.reg2mem br label LBL_6 LBL_9: %32 = ptrtoint i64* %arg1 to i64 %33 = bitcast i64* %rdi to i32* %34 = load i32, i32* %33, align 8 %35 = zext i32 %34 to i64 %36 = call i64 @FUNC(i64 %35, i64 1, i64 512) %37 = trunc i64 %36 to i32 %38 = bitcast i64* %arg1 to i32* store i32 %37, i32* %38, align 4 %39 = call i64 @FUNC(i64 %35) %40 = trunc i64 %39 to i32 store i32 %40, i32* %38, align 4 %41 = mul i32 %34, 1048576 %42 = add i64 %32, 4 %43 = inttoptr i64 %42 to i32* store i32 %41, i32* %43, align 4 %44 = add i64 %32, 8 %45 = inttoptr i64 %44 to i32* %46 = load i32, i32* %45, align 4 %47 = icmp eq i32 %46, 0 %48 = icmp eq i1 %47, false br i1 %48, label LBL_11, label LBL_10 LBL_10: store i32 %41, i32* %45, align 4 br label LBL_11 LBL_11: %49 = add i64 %32, 12 %50 = inttoptr i64 %49 to i32* store i32 1, i32* %50, align 4 %51 = load i32, i32* %43, align 4 %52 = add i64 %32, 16 %53 = zext i32 %51 to i64 %54 = call i64 @FUNC(i64 %52, i64 %arg2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0), i64 %53, i64* nonnull @gv_4) %55 = trunc i64 %arg3 to i8 %56 = icmp eq i8 %55, 0 %57 = icmp eq i1 %56, false store i64 0, i64* %storemerge.reg2mem br i1 %57, label LBL_13, label LBL_12 LBL_12: %58 = call i64 @FUNC(i64 %arg2) store i64 %58, i64* %storemerge.reg2mem br label LBL_13 LBL_13: %storemerge.reload = load i64, i64* %storemerge.reg2mem %59 = call i64 @FUNC(i64 %52, i64 %storemerge.reload) %60 = call i64 @FUNC(i64 %52) %61 = call i64 @FUNC(i64 %52) %62 = add i64 %32, 24 %63 = inttoptr i64 %62 to i64* store i64 %61, i64* %63, align 8 %64 = add i64 %32, 32 %65 = inttoptr i64 %64 to i64* store i64 4198729, i64* %65, align 8 %66 = add i64 %32, 40 %67 = inttoptr i64 %66 to i64* store i64 4198740, i64* %67, align 8 %68 = add i64 %32, 48 %69 = inttoptr i64 %68 to i64* store i64 4198751, i64* %69, align 8 %70 = add i64 %32, 56 %71 = inttoptr i64 %70 to i64* store i64 ptrtoint (i64* @gv_5 to i64), i64* %71, align 8 %72 = load i32, i32* @gv_6, align 4 switch i32 %72, label LBL_16 [ i32 0, label LBL_14 i32 1, label LBL_15 ] LBL_14: %73 = add i64 %32, 64 %74 = inttoptr i64 %73 to i64* store i64 4198864, i64* %74, align 8 %75 = add i64 %32, 72 %76 = inttoptr i64 %75 to i64* store i64 4198878, i64* %76, align 8 br label LBL_16 LBL_15: %77 = add i64 %32, 64 %78 = inttoptr i64 %77 to i64* store i64 4198871, i64* %78, align 8 %79 = add i64 %32, 72 %80 = inttoptr i64 %79 to i64* store i64 4198885, i64* %80, align 8 br label LBL_16 LBL_16: %81 = add i64 %32, 80 %82 = inttoptr i64 %81 to i8* store i8 0, i8* %82, align 1 %83 = call i64 @FUNC(i64 %32) ret i64 %83 uselistorder i32 %41, { 1, 0 } uselistorder i64 %32, { 2, 3, 0, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 } uselistorder i64 %indvars.iv.reload, { 1, 2, 0 } uselistorder i32 %26, { 1, 0 } uselistorder i32 %20, { 1, 0 } uselistorder i32 %storemerge616.reload, { 0, 2, 1 } uselistorder i32 %18, { 1, 0 } uselistorder i64 %indvars.iv28.reload, { 1, 2, 0 } uselistorder i32 %14, { 1, 0 } uselistorder i32 %storemerge921.reload, { 0, 2, 1 } uselistorder i64 %6, { 1, 0 } uselistorder i32 %4, { 1, 0 } uselistorder i32 %storemerge1119.reload, { 0, 2, 1 } uselistorder i32* %storemerge1119.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_0.018.reg2mem, { 2, 1, 0 } uselistorder i32* %storemerge921.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.120.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge616.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_0.215.reg2mem, { 2, 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 32, { 2, 0, 1 } uselistorder i64 16, { 1, 0 } uselistorder i32 0, { 6, 8, 0, 1, 4, 5, 2, 3, 7 } uselistorder i64 4, { 2, 0, 1 } uselistorder i32 4, { 4, 3, 0, 2, 1 } uselistorder i32 2, { 0, 3, 1, 4, 2 } uselistorder label LBL_16, { 1, 2, 0 } uselistorder label LBL_13, { 1, 0 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
xtables_lock_or_exit_8698
xtables_lock_or_exit
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg2 to i64 %1 = and i64 %arg1, 4294967295 %2 = call i64 @FUNC(i64 %1, i64 %0) %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, -1 %5 = icmp eq i1 %4, false br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = call i64 @FUNC(i64 1) call void @exit(i32 1) unreachable LBL_2: %7 = icmp eq i32 %3, -2 %8 = icmp eq i1 %7, false br i1 %8, label LBL_7, label LBL_3 LBL_3: %sext = mul i64 %arg1, 4294967296 %9 = ashr exact i64 %sext, 32 %10 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %11 = call i32 @fwrite(i64* bitcast ([52 x i8]* @gv_1 to i64*), i32 1, i32 51, %_IO_FILE* %10) %12 = trunc i64 %9 to i32 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false %15 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 br i1 %14, label LBL_5, label LBL_4 LBL_4: %16 = call i32 @fwrite(i64* bitcast ([40 x i8]* @gv_2 to i64*), i32 1, i32 39, %_IO_FILE* %15) br label LBL_6 LBL_5: %17 = and i64 %9, 4294967295 %18 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %15, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_3, i64 0, i64 0), i64 %17) br label LBL_6 LBL_6: %19 = call i64 @FUNC(i64 1) call void @exit(i32 1) unreachable LBL_7: %20 = and i64 %2, 4294967295 ret i64 %20 uselistorder %_IO_FILE* %15, { 1, 0 } uselistorder i64 %9, { 1, 0 } uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 } uselistorder %_IO_FILE** @gv_0, { 1, 0 } uselistorder void (i32)* @exit, { 1, 0 } uselistorder i64 (i64)* @xtables_free_opts, { 1, 0 } uselistorder i64 4294967295, { 1, 2, 3, 0 } }
0
BinRealVul
DestroyXMLTreeChild_8429
DestroyXMLTreeChild
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.lcssa.reg2mem = alloca i64 %sv_0.01.reg2mem = alloca i64 %0 = icmp eq i64 %arg1, 0 %1 = icmp eq i1 %0, false store i64 %arg1, i64* %sv_0.01.reg2mem store i64 %arg1, i64* %rax.0.lcssa.reg2mem br i1 %1, label LBL_1, label LBL_2 LBL_1: %sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem %2 = inttoptr i64 %sv_0.01.reload to i64* %3 = load i64, i64* %2, align 8 store i64 0, i64* %2, align 8 %4 = call i64 @FUNC(i64 %sv_0.01.reload) %5 = icmp eq i64 %3, 0 %6 = icmp eq i1 %5, false store i64 %3, i64* %sv_0.01.reg2mem store i64 %4, i64* %rax.0.lcssa.reg2mem br i1 %6, label LBL_1, label LBL_2 LBL_2: %rax.0.lcssa.reload = load i64, i64* %rax.0.lcssa.reg2mem ret i64 %rax.0.lcssa.reload uselistorder i64* %sv_0.01.reg2mem, { 2, 0, 1 } uselistorder i1 false, { 1, 0 } uselistorder i32 1, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
msix_init_18822
msix_init
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4 %1 = icmp eq i32 %0, 0 %2 = icmp eq i1 %1, false store i64 1, i64* %rax.0.reg2mem br i1 %2, label LBL_1, label LBL_7 LBL_1: %3 = trunc i64 %arg2 to i16 %4 = icmp ult i16 %3, 257 store i64 2, i64* %rax.0.reg2mem br i1 %4, label LBL_2, label LBL_7 LBL_2: %5 = ptrtoint i64* %arg1 to i64 %6 = call i64 @FUNC(i64 256) store i64 %6, i64* %arg1, align 8 %7 = call i64 @FUNC(i64 4096) %8 = add i64 %5, 8 %9 = inttoptr i64 %8 to i64* store i64 %7, i64* %9, align 8 %10 = call i64 @FUNC(i64 4198844, i64 4198855, i64 %5) %11 = trunc i64 %10 to i32 %12 = add i64 %5, 16 %13 = inttoptr i64 %12 to i32* store i32 %11, i32* %13, align 4 %14 = icmp eq i32 %11, -1 %15 = icmp eq i1 %14, false store i64 3, i64* %sv_0.0.reg2mem br i1 %15, label LBL_3, label LBL_6 LBL_3: %16 = add i64 %5, 20 %17 = inttoptr i64 %16 to i16* store i16 %3, i16* %17, align 2 %18 = trunc i64 %arg4 to i32 %19 = trunc i64 %arg3 to i32 %20 = call i64 @FUNC(i64 %5, i16 %3, i32 %19, i32 %18) %21 = trunc i64 %20 to i32 %22 = icmp eq i32 %21, 0 %23 = icmp eq i1 %22, false br i1 %23, label LBL_5, label LBL_4 LBL_4: %24 = add i64 %5, 24 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = or i32 %26, 16 store i32 %27, i32* %25, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_7 LBL_5: %28 = load i32, i32* %13, align 4 %29 = zext i32 %28 to i64 %30 = call i64 @FUNC(i64 %29) %phitmp = and i64 %20, 4294967295 store i64 %phitmp, i64* %sv_0.0.reg2mem br label LBL_6 LBL_6: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %31 = load i64, i64* %9, align 8 %32 = call i64 @FUNC(i64 %31) store i64 0, i64* %9, align 8 %33 = call i64 @FUNC(i64 %31) store i64 0, i64* %arg1, align 8 store i64 %sv_0.0.reload, i64* %rax.0.reg2mem br label LBL_7 LBL_7: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %9, { 1, 0, 2 } uselistorder i64 %5, { 0, 1, 2, 4, 3, 5 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 } uselistorder i64 (i64)* @qemu_free, { 1, 0 } uselistorder i64 (i64)* @qemu_mallocz, { 1, 0 } uselistorder label LBL_7, { 2, 3, 0, 1 } uselistorder label LBL_6, { 1, 0 } }
1
reposvul_c_test
GetImageAlphaChannel_196
GetImageAlphaChannel
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 br i1 %3, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @gv_1, i64 0, i64 0), i32 19, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %4 = trunc i64 %1 to i32 %5 = icmp eq i32 %4, 0 br i1 %5, label LBL_4, label LBL_3 LBL_3: %6 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0)) br label LBL_4 LBL_4: %7 = ptrtoint i64* %arg1 to i64 %8 = add i64 %7, 4 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = icmp eq i32 %10, 1 br i1 %11, label LBL_6, label LBL_5 LBL_5: call void @__assert_fail(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @gv_1, i64 0, i64 0), i32 22, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0)) br label LBL_6 LBL_6: %12 = add i64 %7, 8 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = icmp eq i32 %14, 0 %16 = icmp eq i1 %15, false %17 = zext i1 %16 to i64 ret i64 %17 uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 } uselistorder i64* %arg1, { 1, 0 } }
0
BinRealVul
b43_ssb_remove_17636
b43_ssb_remove
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %0) %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = add i64 %2, 8 %6 = call i64 @FUNC(i64 %5) %7 = add i64 %1, 24 %8 = call i64 @FUNC(i64 %7) %9 = icmp eq i64 %1, 0 %10 = icmp eq i1 %9, false br i1 %10, label LBL_2, label LBL_1 LBL_1: %11 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %12 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_1 to i64*), i32 1, i32 26, %_IO_FILE* %11) br label LBL_2 LBL_2: %13 = add i64 %2, 16 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = icmp eq i64 %15, 0 store i64 0, i64* %rax.0.reg2mem br i1 %16, label LBL_7, label LBL_3 LBL_3: %17 = add i64 %1, 8 %18 = inttoptr i64 %17 to i64* %19 = load i64, i64* %18, align 8 %20 = icmp eq i64 %2, %19 %21 = icmp eq i1 %20, false br i1 %21, label LBL_6, label LBL_4 LBL_4: %22 = inttoptr i64 %1 to i32* %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 i64 @FUNC(i64 %2) %26 = add i64 %1, 16 %27 = inttoptr i64 %26 to i64* %28 = load i64, i64* %27, align 8 %29 = call i64 @FUNC(i64 %28) br label LBL_6 LBL_6: %30 = call i64 @FUNC(i64 %4) %31 = call i64 @FUNC(i64 %1) %32 = call i64 @FUNC(i64 %1) %33 = call i64 @FUNC(i64 %4, i64 %1) store i64 %33, i64* %rax.0.reg2mem br label LBL_7 LBL_7: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %2, { 1, 0, 2, 3, 4 } uselistorder i64 %1, { 0, 1, 2, 3, 5, 4, 7, 6 } uselistorder i64 (i64)* @cancel_work_sync, { 1, 0 } uselistorder label LBL_7, { 1, 0 } }
1
BinRealVul
rose_stop_timer_5852
rose_stop_timer
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %0, i64 %1) ret i64 %2 }
0
BinRealVul
ipfilter_13223
ipfilter
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %1 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 32) %2 = add i64 %0, 16 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 store i64 %4, i64* %sv_0, align 8 %5 = add i64 %0, 8 %6 = inttoptr i64 %5 to i8* %7 = load i8, i8* %6, align 1 %8 = icmp ne i8 %7, 6 %9 = icmp eq i8 %7, 17 %10 = icmp eq i1 %9, false %or.cond = icmp eq i1 %8, %10 br i1 %or.cond, label LBL_2, label LBL_1 LBL_1: %11 = inttoptr i64 %5 to i64* %12 = load i64, i64* %11, align 8 %13 = inttoptr i64 %12 to i16* %14 = load i16, i16* %13, align 2 %15 = zext i16 %14 to i64 %16 = call i64 @FUNC(i64 %15) %17 = add i64 %12, 2 %18 = inttoptr i64 %17 to i16* %19 = load i16, i16* %18, align 2 %20 = zext i16 %19 to i64 %21 = call i64 @FUNC(i64 %20) br label LBL_5 LBL_2: %22 = icmp eq i8 %7, 1 %23 = icmp eq i1 %22, false br i1 %23, label LBL_5, label LBL_3 LBL_3: %24 = inttoptr i64 %5 to i64* %25 = load i64, i64* %24, align 8 %26 = inttoptr i64 %25 to i8* %27 = load i8, i8* %26, align 1 %28 = icmp eq i8 %27, 3 %29 = icmp eq i1 %28, false br i1 %29, label LBL_5, label LBL_4 LBL_4: %30 = add i64 %25, 1 %31 = inttoptr i64 %30 to i8* %32 = load i8, i8* %31, align 1 %33 = icmp eq i8 %32, 13 %34 = icmp eq i1 %33, false store i64 0, i64* %storemerge.reg2mem br i1 %34, label LBL_5, label LBL_6 LBL_5: %35 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0) store i64 %35, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i8 %7, { 1, 0, 2 } uselistorder i64* %sv_0, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 1, { 1, 0 } uselistorder i64 (i64)* @short_be, { 1, 0 } uselistorder i1 false, { 1, 2, 3, 0 } uselistorder label LBL_6, { 1, 0 } }
1
BinRealVul
check_request_for_cacheability_11757
check_request_for_cacheability
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i8* %1 = alloca i64 %rax.0.reg2mem = alloca i64 %.pre-phi.reg2mem = alloca i64 %.ph.reg2mem = alloca i8* %.reg2mem50 = alloca i8* %sv_0.08.reg2mem = alloca i64 %.reg2mem48 = alloca i64 %.reg2mem46 = alloca i32 %sv_1.0.ph13.reg2mem = alloca i32 %sv_0.0.ph14.reg2mem = alloca i64 %.reg2mem44 = alloca i64 %.reg2mem = alloca i32 %2 = load i64, i64* %1 %3 = load i8*, i8** %0 %4 = trunc i64 %2 to i32 %5 = urem i32 %4, 4 %6 = icmp eq i32 %5, 2 store i64 2, i64* %rax.0.reg2mem br i1 %6, label LBL_29, label LBL_1 LBL_1: %7 = ptrtoint i64* %arg1 to i64 %8 = add i64 %7, 8 %9 = call i64 @FUNC(i64 %8) %10 = inttoptr i64 %8 to i64* %11 = load i64, i64* %10, align 8 %12 = add i64 %11, 8 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = icmp eq i32 %14, 0 %16 = icmp eq i1 %15, false br i1 %16, label LBL_3, label LBL_2 LBL_2: %17 = zext i32 %14 to i64 store i64 %17, i64* %rax.0.reg2mem br label LBL_29 LBL_3: %18 = ptrtoint i8* %3 to i64 %sext = mul i64 %9, 4294967296 %19 = ashr exact i64 %sext, 32 %20 = ptrtoint i64* %arg2 to i64 %21 = add i64 %19, %20 %22 = bitcast i64* %arg1 to i32* %23 = or i32 %4, 2 %24 = and i32 %4, -6 store i32 %14, i32* %.reg2mem store i64 %11, i64* %.reg2mem44 store i64 %21, i64* %sv_0.0.ph14.reg2mem store i32 0, i32* %sv_1.0.ph13.reg2mem br label LBL_5 LBL_4: %25 = load i64, i64* %10, align 8 %26 = add nsw i64 %33, 8 %27 = add i64 %26, %25 %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 %30 = icmp eq i32 %29, 0 %31 = icmp eq i1 %30, false store i32 %29, i32* %.reg2mem store i64 %25, i64* %.reg2mem44 store i64 %44, i64* %sv_0.0.ph14.reg2mem store i32 1, i32* %sv_1.0.ph13.reg2mem br i1 %31, label LBL_5, label LBL_28 LBL_5: %sv_1.0.ph13.reload = load i32, i32* %sv_1.0.ph13.reg2mem %sv_0.0.ph14.reload = load i64, i64* %sv_0.0.ph14.reg2mem %.reload45 = load i64, i64* %.reg2mem44 %.reload = load i32, i32* %.reg2mem store i32 %.reload, i32* %.reg2mem46 store i64 %.reload45, i64* %.reg2mem48 store i64 %sv_0.0.ph14.reload, i64* %sv_0.08.reg2mem br label LBL_6 LBL_6: %sv_0.08.reload = load i64, i64* %sv_0.08.reg2mem %.reload49 = load i64, i64* %.reg2mem48 %.reload47 = load i32, i32* %.reg2mem46 %32 = sext i32 %.reload47 to i64 %33 = mul nsw i64 %32, 12 %34 = add i64 %33, %.reload49 %35 = inttoptr i64 %34 to i32* %36 = load i32, i32* %35, align 4 %37 = sext i32 %36 to i64 %38 = add i64 %sv_0.08.reload, %37 %39 = add i64 %34, 4 %40 = inttoptr i64 %39 to i32* %41 = load i32, i32* %40, align 4 %42 = sext i32 %41 to i64 %43 = add nsw i64 %42, 1 %44 = add i64 %43, %38 %45 = call i64 @FUNC(i64 %sv_0.08.reload, i64 %38, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i64 6) %46 = trunc i64 %45 to i32 %47 = icmp eq i32 %46, 0 br i1 %47, label LBL_9, label LBL_7 LBL_7: %sext4 = mul i64 %45, 4294967296 %48 = ashr exact i64 %sext4, 32 %49 = add i64 %48, %sv_0.08.reload %50 = sub i64 %38, %49 %51 = icmp slt i64 %50, 8 br i1 %51, label LBL_9, label LBL_8 LBL_8: %52 = inttoptr i64 %49 to i8* %53 = call i32 @strncasecmp(i8* %52, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i32 8) %54 = icmp eq i32 %53, 0 %55 = icmp eq i1 %54, false br i1 %55, label LBL_9, label LBL_4 LBL_9: %56 = call i64 @FUNC(i64 %sv_0.08.reload, i64 %38, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0), i64 13) %57 = trunc i64 %56 to i32 %58 = icmp eq i32 %57, 0 %59 = icmp eq i1 %58, false br i1 %59, label LBL_10, label LBL_23 LBL_10: %60 = icmp ugt i64 %38, %18 %61 = icmp eq i1 %60, false store i64 %18, i64* %.pre-phi.reg2mem br i1 %61, label LBL_15, label LBL_12 LBL_11: %62 = ptrtoint i8* %.reload51 to i64 %63 = add i64 %62, 1 %64 = inttoptr i64 %63 to i8* %65 = icmp ugt i64 %38, %63 %66 = icmp eq i1 %65, false store i8* %64, i8** %.reg2mem50 store i8* %64, i8** %.ph.reg2mem br i1 %66, label LBL_14, label LBL_12 LBL_12: %.reload51 = load i8*, i8** %.reg2mem50 %67 = load i8, i8* %.reload51, align 1 store i8* %.reload51, i8** %.ph.reg2mem store i8* %.reload51, i8** %.ph.reg2mem switch i8 %67, label LBL_13 [ i8 61, label LBL_14 i8 44, label LBL_14 ] LBL_13: %68 = call i16** @__ctype_b_loc() %69 = load i16*, i16** %68, align 8 %70 = ptrtoint i16* %69 to i64 %71 = load i8, i8* %.reload51, align 1 %72 = zext i8 %71 to i64 %73 = mul i64 %72, 2 %74 = add i64 %73, %70 %75 = inttoptr i64 %74 to i16* %76 = load i16, i16* %75, align 2 %77 = and i16 %76, 8192 %78 = icmp eq i16 %77, 0 store i8* %.reload51, i8** %.ph.reg2mem br i1 %78, label LBL_11, label LBL_14 LBL_14: %.ph.reload = load i8*, i8** %.ph.reg2mem %.pre = ptrtoint i8* %.ph.reload to i64 store i64 %.pre, i64* %.pre-phi.reg2mem br label LBL_15 LBL_15: %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %79 = sub i64 %.pre-phi.reload, %18 %80 = icmp eq i64 %79, 7 %81 = icmp eq i1 %80, false br i1 %81, label LBL_17, label LBL_16 LBL_16: %82 = call i32 @strncasecmp(i8* %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_3, i64 0, i64 0), i32 7) %83 = icmp eq i32 %82, 0 br i1 %83, label LBL_22, label LBL_17 LBL_17: %84 = icmp eq i64 %79, 8 %85 = icmp eq i1 %84, false br i1 %85, label LBL_19, label LBL_18 LBL_18: %86 = call i32 @strncasecmp(i8* %3, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i32 8) %87 = icmp eq i32 %86, 0 br i1 %87, label LBL_22, label LBL_19 LBL_19: %88 = icmp eq i64 %79, 9 %89 = icmp eq i1 %88, false br i1 %89, label LBL_24, label LBL_20 LBL_20: %90 = call i32 @strncasecmp(i8* %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_4, i64 0, i64 0), i32 9) %91 = icmp eq i32 %90, 0 br i1 %91, label LBL_22, label LBL_21 LBL_21: %92 = call i32 @strncasecmp(i8* %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_5, i64 0, i64 0), i32 9) %93 = icmp eq i32 %92, 0 %94 = icmp eq i1 %93, false br i1 %94, label LBL_24, label LBL_22 LBL_22: store i32 %23, i32* %22, align 4 br label LBL_23 LBL_23: %95 = load i64, i64* %10, align 8 %96 = add nsw i64 %33, 8 %97 = add i64 %96, %95 %98 = inttoptr i64 %97 to i32* %99 = load i32, i32* %98, align 4 %100 = icmp eq i32 %99, 0 %101 = icmp eq i1 %100, false store i32 %99, i32* %.reg2mem46 store i64 %95, i64* %.reg2mem48 store i64 %44, i64* %sv_0.08.reg2mem br i1 %101, label LBL_6, label LBL_27 LBL_24: br i1 %85, label LBL_23, label LBL_25 LBL_25: %102 = call i32 @strncasecmp(i8* %3, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_6, i64 0, i64 0), i32 8) %103 = icmp eq i32 %102, 0 %104 = icmp eq i1 %103, false br i1 %104, label LBL_23, label LBL_26 LBL_26: store i32 %24, i32* %22, align 4 br label LBL_23 LBL_27: %105 = zext i32 %99 to i64 %106 = icmp eq i32 %sv_1.0.ph13.reload, 0 store i64 %105, i64* %rax.0.reg2mem br i1 %106, label LBL_29, label LBL_28 LBL_28: store i32 %23, i32* %22, align 4 store i64 %7, i64* %rax.0.reg2mem br label LBL_29 LBL_29: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %99, { 1, 0, 2 } uselistorder i8* %.reload51, { 0, 3, 1, 2, 5, 4 } uselistorder i64 %38, { 3, 1, 4, 2, 5, 0 } uselistorder i64 %33, { 2, 1, 0 } uselistorder i64 %sv_0.08.reload, { 1, 2, 0, 3 } uselistorder i64 %18, { 2, 0, 1 } uselistorder i64* %10, { 2, 1, 0 } uselistorder i32 %4, { 2, 1, 0 } uselistorder i8* %3, { 1, 2, 3, 4, 5, 0 } uselistorder i32* %.reg2mem46, { 1, 0, 2 } uselistorder i64* %.reg2mem48, { 1, 0, 2 } uselistorder i64* %sv_0.08.reg2mem, { 1, 0, 2 } uselistorder i8** %.ph.reg2mem, { 0, 2, 3, 4, 1 } uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1, 4 } uselistorder i32 (i8*, i8*, i32)* @strncasecmp, { 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64, i64, i8*, i64)* @http_header_match2, { 1, 0 } uselistorder i1 false, { 3, 11, 4, 5, 6, 7, 8, 2, 9, 10, 1, 0 } uselistorder i32 0, { 3, 4, 12, 5, 6, 7, 8, 9, 10, 11, 2, 0, 1 } uselistorder i64 8, { 2, 3, 4, 1, 0, 5 } uselistorder i64 2, { 1, 0 } uselistorder i32 2, { 1, 0 } uselistorder label LBL_29, { 2, 3, 0, 1 } uselistorder label LBL_28, { 1, 0 } uselistorder label LBL_24, { 1, 0 } uselistorder label LBL_23, { 3, 2, 1, 0, 4 } uselistorder label LBL_14, { 1, 3, 2, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
bcm2835_audio_start_4833
bcm2835_audio_start
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = call i32 @puts(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0)) %1 = call i64 @FUNC(i64 24, 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 i32 @puts(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0)) store i64 4294967284, i64* %rax.0.reg2mem br label LBL_5 LBL_2: %5 = ptrtoint i64* %arg1 to i64 %6 = call i64 @FUNC(i64 %1, i64 4198742) %7 = add i64 %1, 8 %8 = inttoptr i64 %7 to i64* store i64 %5, i64* %8, align 8 %9 = add i64 %1, 16 %10 = inttoptr i64 %9 to i32* store i32 1, i32* %10, align 4 %11 = call i64 @FUNC(i64 %1, i64 %1) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false br i1 %14, label LBL_4, label LBL_3 LBL_3: %15 = call i64 @FUNC(i64 %1) store i64 4294967280, i64* %rax.0.reg2mem br label LBL_5 LBL_4: %16 = call i32 @puts(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_2, i64 0, i64 0)) store i64 0, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %1, { 0, 1, 4, 2, 5, 3, 6 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i32 (i8*)* @puts, { 2, 1, 0 } }
0
BinRealVul
svm_need_emulation_on_page_fault_19071
svm_need_emulation_on_page_fault
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 = and i64 %1, 524288 %3 = icmp eq i64 %2, 0 %4 = icmp eq i1 %3, false %5 = call i64 @FUNC(i64 %0) %6 = icmp eq i1 %4, false store i64 0, i64* %storemerge.reg2mem br i1 %6, label LBL_4, label LBL_1 LBL_1: %7 = trunc i64 %5 to i32 %8 = icmp eq i32 %7, 3 %9 = and i64 %1, 1048576 %10 = icmp eq i64 %9, 0 %11 = or i1 %10, %8 %12 = icmp eq i1 %11, false store i64 0, i64* %storemerge.reg2mem br i1 %12, label LBL_4, label LBL_2 LBL_2: %13 = call i64 @FUNC(i64 %0) %14 = trunc i64 %13 to i8 %15 = icmp eq i8 %14, 1 store i64 1, i64* %storemerge.reg2mem br i1 %15, label LBL_3, label LBL_4 LBL_3: %16 = call i64 @FUNC(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_0, i64 0, i64 0)) %17 = call i64 @FUNC(i64 1, i64 %0) store i64 0, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %1, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 4, 3, 1 } uselistorder i64 1, { 1, 0 } uselistorder label LBL_4, { 1, 3, 2, 0 } }
1
BinRealVul
envlist_create_13942
envlist_create
define i64 @FUNC() local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = call i64* @malloc(i32 16) %1 = icmp eq i64* %0, null %2 = icmp eq i1 %1, false store i64 0, i64* %storemerge.reg2mem br i1 %2, label LBL_1, label LBL_2 LBL_1: %3 = bitcast i64* %0 to i32* %4 = ptrtoint i64* %0 to i64 %5 = add i64 %4, 8 %6 = call i64 @FUNC(i64 %5) store i32 0, i32* %3, align 4 store i64 %4, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %0, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
is_integer_12332
is_integer
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32* %1 = load i64, i64* %0 %2 = call i16** @__ctype_b_loc() %3 = load i16*, i16** %2, align 8 %4 = ptrtoint i16* %3 to i64 %5 = trunc i64 %1 to i8 %sext = mul i64 %1, 72057594037927936 %6 = ashr exact i64 %sext, 55 %7 = add i64 %6, %4 %8 = inttoptr i64 %7 to i16* %9 = load i16, i16* %8, align 2 %10 = and i16 %9, 2048 %11 = icmp eq i16 %10, 0 %12 = icmp ne i8 %5, 45 %or.cond.not = icmp eq i1 %12, %11 %13 = icmp eq i8 %5, 43 %14 = icmp eq i1 %13, false %or.cond3 = icmp eq i1 %14, %or.cond.not store i32* %arg1, i32** %sv_0.0.reg2mem br i1 %or.cond3, label LBL_4, label LBL_1 LBL_1: %sv_0.0.reload = load i32*, i32** %sv_0.0.reg2mem %15 = ptrtoint i32* %sv_0.0.reload to i64 %16 = add i64 %15, 1 %17 = inttoptr i64 %16 to i8* %18 = load i8, i8* %17, align 1 %19 = icmp eq i8 %18, 0 store i64 1, i64* %storemerge.reg2mem br i1 %19, label LBL_5, label LBL_2 LBL_2: %20 = inttoptr i64 %16 to i32* %21 = call i16** @__ctype_b_loc() %22 = load i16*, i16** %21, align 8 %23 = ptrtoint i16* %22 to i64 %24 = load i8, i8* %17, align 1 %25 = sext i8 %24 to i64 %26 = mul i64 %25, 2 %27 = add i64 %26, %23 %28 = inttoptr i64 %27 to i16* %29 = load i16, i16* %28, align 2 %30 = and i16 %29, 2048 %31 = icmp eq i16 %30, 0 %32 = icmp eq i1 %31, false store i32* %20, i32** %sv_0.0.reg2mem br i1 %32, label LBL_1, label LBL_3 LBL_3: %33 = icmp eq i8 %24, 0 %34 = icmp eq i1 %33, false store i64 1, i64* %storemerge.reg2mem br i1 %34, label LBL_4, label LBL_5 LBL_4: store i64 0, i64* %storemerge.reg2mem br label LBL_5 LBL_5: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i8 %5, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i32** %sv_0.0.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 } uselistorder i64 1, { 1, 0, 2 } uselistorder i1 false, { 1, 2, 0 } uselistorder label LBL_5, { 2, 1, 0 } uselistorder label LBL_4, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
kvm_set_user_memory_region_17043
kvm_set_user_memory_region
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %sv_0 = alloca i32, align 4 %3 = trunc i64 %1 to i32 store i32 %3, i32* %sv_0, align 4 %4 = add i64 %2, 24 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = and i32 %6, 2 %8 = icmp eq i32 %7, 0 %.pre = ptrtoint i32* %arg1 to i64 br i1 %8, label LBL_2, label LBL_1 LBL_1: %9 = call i64 @FUNC(i64 %.pre, i64 0, i32* nonnull %sv_0) br label LBL_2 LBL_2: %10 = call i64 @FUNC(i64 %.pre, i64 0, i32* nonnull %sv_0) ret i64 %10 uselistorder i64 (i64, i64, i32*)* @kvm_vm_ioctl, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
format8BIM_7486
format8BIM
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.ph.lcssa.reg2mem = alloca i32 %sv_0.0.ph26.reg2mem = alloca i32 %sv_1.1.ph27.reg2mem = alloca i32 %r8.2.ph28.reg2mem = alloca i64 %r8.1.reg2mem = alloca i64 %r8.0.reg2mem = alloca i64 %storemerge25.reg2mem = alloca i32 %.reg2mem87 = alloca i64 %storemerge424.reg2mem = alloca i32 %.reg2mem = alloca i64 %sv_1.1.be.pre-phi.pre-phi.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 %sv_1.122.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_2 = alloca i64, align 8 %sv_3 = alloca i8, align 1 %sv_4 = alloca i64, align 8 %3 = call i64 @FUNC(i64 %2) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, -1 %6 = icmp eq i1 %5, false store i32 0, i32* %sv_0.0.ph.lcssa.reg2mem br i1 %6, label LBL_1, label LBL_37 LBL_1: %7 = ptrtoint i64* %arg2 to i64 %8 = ptrtoint i64* %sv_4 to i64 %9 = add i64 %8, -1077 store i32 %4, i32* %sv_1.1.ph27.reg2mem store i32 0, i32* %sv_0.0.ph26.reg2mem br label LBL_2.lr.ph LBL_2: %sv_1.122.reload = load i32, i32* %sv_1.122.reg2mem %10 = icmp eq i32 %sv_1.122.reload, 56 %11 = icmp eq i1 %10, false br i1 %11, label LBL_9, label LBL_3 LBL_3: %12 = trunc i32 %sv_1.122.reload to i8 store i8 %12, i8* %sv_3, align 1 store i64 1, i64* %indvars.iv.reg2mem br label LBL_4 LBL_4: %13 = call i64 @FUNC(i64 %2) %14 = trunc i64 %13 to i32 %15 = icmp eq i32 %14, -1 %16 = icmp eq i1 %15, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %16, label LBL_5, label LBL_38 LBL_5: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %17 = trunc i64 %13 to i8 %18 = add nuw nsw i64 %9, %indvars.iv.reload %19 = inttoptr i64 %18 to i8* store i8 %17, i8* %19, align 1 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %20 = icmp ult i64 %indvars.iv.next, 4 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %20, label LBL_4, label LBL_6 LBL_6: %21 = call i32 @strcmp(i8* nonnull %sv_3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0)) %22 = icmp eq i32 %21, 0 %23 = icmp eq i1 %22, false store i32 %14, i32* %sv_1.1.be.pre-phi.pre-phi.reg2mem br i1 %23, label LBL_7, label LBL_8 LBL_7: %sv_1.1.be.pre-phi.pre-phi.reload = load i32, i32* %sv_1.1.be.pre-phi.pre-phi.reg2mem %24 = icmp eq i32 %sv_1.1.be.pre-phi.pre-phi.reload, -1 %25 = icmp eq i1 %24, false store i32 %sv_1.1.be.pre-phi.pre-phi.reload, i32* %sv_1.122.reg2mem store i32 %sv_0.0.ph26.reload, i32* %sv_0.0.ph.lcssa.reg2mem br i1 %25, label LBL_2, label LBL_37 LBL_8: %26 = call i64 @FUNC(i64 %2) %27 = trunc i64 %26 to i32 %28 = icmp slt i32 %27, 0 store i64 4294967295, i64* %rax.0.reg2mem br i1 %28, label LBL_38, label LBL_10 LBL_9: %29 = call i64 @FUNC(i64 %2) %.pre = trunc i64 %29 to i32 store i32 %.pre, i32* %sv_1.1.be.pre-phi.pre-phi.reg2mem br label LBL_7 LBL_10: %30 = call i64 @FUNC(i64 %2) %31 = trunc i64 %30 to i32 %32 = icmp eq i32 %31, -1 %33 = icmp eq i1 %32, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %33, label LBL_11, label LBL_38 LBL_11: %34 = urem i64 %30, 256 %35 = or i64 %34, 1024 %36 = call i64 @FUNC(i64 %35, i64 1) %37 = icmp eq i64 %36, 0 %38 = icmp eq i1 %37, false store i64 0, i64* %rax.0.reg2mem br i1 %38, label LBL_12, label LBL_38 LBL_12: %39 = icmp eq i64 %34, 0 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge424.reg2mem br i1 %39, label LBL_16, label LBL_13 LBL_13: %40 = call i64 @FUNC(i64 %2) %41 = trunc i64 %40 to i32 %42 = icmp eq i32 %41, -1 %43 = icmp eq i1 %42, false br i1 %43, label LBL_15, label LBL_14 LBL_14: %44 = call i64 @FUNC(i64 %36) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_38 LBL_15: %storemerge424.reload = load i32, i32* %storemerge424.reg2mem %.reload = load i64, i64* %.reg2mem %45 = add i64 %.reload, %36 %46 = trunc i64 %40 to i8 %47 = inttoptr i64 %45 to i8* store i8 %46, i8* %47, align 1 %48 = add i32 %storemerge424.reload, 1 %49 = sext i32 %48 to i64 %50 = icmp sgt i64 %34, %49 store i64 %49, i64* %.reg2mem store i32 %48, i32* %storemerge424.reg2mem br i1 %50, label LBL_13, label LBL_16 LBL_16: %51 = add i64 %36, %34 %52 = inttoptr i64 %51 to i8* store i8 0, i8* %52, align 1 %53 = urem i32 %31, 2 %54 = icmp eq i32 %53, 0 %55 = icmp eq i1 %54, false br i1 %55, label LBL_19, label LBL_17 LBL_17: %56 = call i64 @FUNC(i64 %2) %57 = trunc i64 %56 to i32 %58 = icmp eq i32 %57, -1 %59 = icmp eq i1 %58, false br i1 %59, label LBL_19, label LBL_18 LBL_18: %60 = call i64 @FUNC(i64 %36) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_38 LBL_19: %61 = call i64 @FUNC(i64 %2) %62 = icmp slt i64 %61, 0 br i1 %62, label LBL_21, label LBL_20 LBL_20: %63 = call i64 @FUNC(i64 %2) %64 = icmp ult i64 %63, %61 %65 = icmp eq i1 %64, false br i1 %65, label LBL_22, label LBL_21 LBL_21: %66 = call i64 @FUNC(i64 %36) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_38 LBL_22: %67 = call i64 @FUNC(i64 %61, i64 1) %68 = icmp eq i64 %67, 0 %69 = icmp eq i1 %68, false br i1 %69, label LBL_23, label LBL_24 LBL_23: %70 = icmp sgt i64 %61, 0 store i64 0, i64* %.reg2mem87 store i32 0, i32* %storemerge25.reg2mem br i1 %70, label LBL_25, label LBL_28 LBL_24: %71 = call i64 @FUNC(i64 %36) store i64 0, i64* %rax.0.reg2mem br label LBL_38 LBL_25: %72 = call i64 @FUNC(i64 %2) %73 = trunc i64 %72 to i32 %74 = icmp eq i32 %73, -1 %75 = icmp eq i1 %74, false br i1 %75, label LBL_27, label LBL_26 LBL_26: %76 = call i64 @FUNC(i64 %67) %77 = call i64 @FUNC(i64 %36) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_38 LBL_27: %storemerge25.reload = load i32, i32* %storemerge25.reg2mem %.reload88 = load i64, i64* %.reg2mem87 %78 = add i64 %.reload88, %67 %79 = trunc i64 %72 to i8 %80 = inttoptr i64 %78 to i8* store i8 %79, i8* %80, align 1 %81 = add i32 %storemerge25.reload, 1 %82 = sext i32 %81 to i64 %83 = icmp sgt i64 %61, %82 store i64 %82, i64* %.reg2mem87 store i32 %81, i32* %storemerge25.reg2mem br i1 %83, label LBL_25, label LBL_28 LBL_28: %84 = icmp eq i32 %27, 255 store i64 %r8.2.ph28.reload, i64* %r8.1.reg2mem br i1 %84, label LBL_35, label LBL_29 LBL_29: %85 = inttoptr i64 %36 to i8* %86 = load i8, i8* %85, align 1 %87 = icmp eq i8 %86, 0 %88 = and i64 %26, 4294967295 br i1 %87, label LBL_31, label LBL_30 LBL_30: %89 = call i64 @FUNC(i64* nonnull %sv_2, i64 1024, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0), i64 %88, i64 %36, i64 %1) store i64 %36, i64* %r8.0.reg2mem br label LBL_32 LBL_31: %90 = call i64 @FUNC(i64* nonnull %sv_2, i64 1024, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0), i64 %88, i64 %r8.2.ph28.reload, i64 %1) store i64 %r8.2.ph28.reload, i64* %r8.0.reg2mem br label LBL_32 LBL_32: %r8.0.reload = load i64, i64* %r8.0.reg2mem %91 = call i64 @FUNC(i64 %7, i64* nonnull %sv_2) %92 = icmp eq i32 %27, 28 %93 = icmp eq i1 %92, false br i1 %93, label LBL_34, label LBL_33 LBL_33: %94 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i64 4) %95 = call i64 @FUNC(i64 %7, i64 %67, i64 %61) store i64 %r8.0.reload, i64* %r8.1.reg2mem br label LBL_35 LBL_34: %96 = inttoptr i64 %67 to i8* %97 = call i64 @FUNC(i64 %7, i8* %96, i64 %61) store i64 %r8.0.reload, i64* %r8.1.reg2mem br label LBL_35 LBL_35: %r8.1.reload = load i64, i64* %r8.1.reg2mem %98 = call i64 @FUNC(i64 %67) %99 = call i64 @FUNC(i64 %36) %100 = add i32 %sv_0.0.ph26.reload, 1 %101 = call i64 @FUNC(i64 %2) %102 = trunc i64 %101 to i32 %103 = icmp eq i32 %102, -1 %104 = icmp eq i1 %103, false store i64 %r8.1.reload, i64* %r8.2.ph28.reg2mem store i32 %102, i32* %sv_1.1.ph27.reg2mem store i32 %100, i32* %sv_0.0.ph26.reg2mem store i32 %100, i32* %sv_0.0.ph.lcssa.reg2mem br i1 %104, label LBL_2.lr.ph, label LBL_37 LBL_36: %sv_0.0.ph26.reload = load i32, i32* %sv_0.0.ph26.reg2mem %sv_1.1.ph27.reload = load i32, i32* %sv_1.1.ph27.reg2mem %r8.2.ph28.reload = load i64, i64* %r8.2.ph28.reg2mem store i32 %sv_1.1.ph27.reload, i32* %sv_1.122.reg2mem br label LBL_2 LBL_37: %sv_0.0.ph.lcssa.reload = load i32, i32* %sv_0.0.ph.lcssa.reg2mem %105 = zext i32 %sv_0.0.ph.lcssa.reload to i64 store i64 %105, i64* %rax.0.reg2mem br label LBL_38 LBL_38: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %r8.2.ph28.reload, { 2, 0, 1 } uselistorder i64 %r8.0.reload, { 1, 0 } uselistorder i64 %88, { 1, 0 } uselistorder i64 %67, { 2, 4, 3, 1, 0, 5 } uselistorder i64 %61, { 2, 1, 3, 0, 5, 4, 6 } uselistorder i64 %36, { 8, 0, 9, 10, 2, 3, 1, 4, 6, 7, 5, 11 } uselistorder i64 %34, { 3, 0, 2, 1 } uselistorder i32 %sv_1.1.be.pre-phi.pre-phi.reload, { 1, 0 } uselistorder i32 %sv_1.122.reload, { 1, 0 } uselistorder i64 %7, { 2, 1, 0, 3 } uselistorder i64 %2, { 1, 2, 3, 4, 0, 5, 6, 9, 7, 8, 10 } uselistorder i64 %1, { 1, 0 } uselistorder i32* %sv_1.122.reg2mem, { 2, 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.1.be.pre-phi.pre-phi.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge424.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem87, { 2, 0, 1 } uselistorder i32* %storemerge25.reg2mem, { 2, 0, 1 } uselistorder i64* %r8.0.reg2mem, { 0, 2, 1 } uselistorder i64* %r8.1.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 8, 7, 9, 6, 10, 1, 2, 3, 4 } uselistorder i64 (i64, i8*, i64)* @formatString, { 1, 0 } uselistorder i64 (i64*, i64, i8*, i64, i64, i64)* @FormatLocaleString, { 1, 0 } uselistorder i64 (i64)* @RelinquishMagickMemory, { 7, 6, 5, 4, 3, 2, 0, 1 } uselistorder i64 (i64, i64)* @AcquireQuantumMemory, { 1, 0 } uselistorder i64 1024, { 1, 2, 0 } uselistorder i64 4, { 1, 0 } uselistorder i64 1, { 2, 3, 1, 0 } uselistorder i32 0, { 2, 4, 3, 5, 6, 1, 0 } uselistorder i1 false, { 1, 2, 3, 4, 5, 7, 8, 6, 9, 10, 14, 12, 11, 13, 0 } uselistorder i32 -1, { 1, 4, 5, 3, 6, 7, 2, 0 } uselistorder i64 (i64)* @ReadBlobByte, { 7, 6, 4, 5, 3, 2, 1, 0 } uselistorder label LBL_38, { 9, 4, 5, 6, 8, 7, 0, 1, 2, 3 } uselistorder label LBL_2.lr.ph, { 1, 0 } uselistorder label LBL_25, { 1, 0 } uselistorder label LBL_13, { 1, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
fork_start_14261
fork_start
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = call i64 @FUNC() %1 = call i64 @FUNC(i64* nonnull @gv_0) %2 = call i64 @FUNC() ret i64 %2 }
1
BinRealVul
bdrv_is_inserted_15915
bdrv_is_inserted
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = icmp eq i64* %arg1, null %2 = icmp eq i1 %1, false %3 = and i64 %0, 4294967295 %rax.0 = select i1 %2, i64 %3, i64 0 ret i64 %rax.0 }
1
BinRealVul
esp_slave_configure_17631
esp_slave_configure
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %3 = add i64 %2, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = call i64 @FUNC(i64 %5) %7 = add i64 %2, 4 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = icmp eq i32 %9, 0 br i1 %10, label LBL_2, label LBL_1 LBL_1: %11 = call i64 @FUNC(i64 8, i64 32) %12 = and i64 %11, 4294967295 %13 = call i64 @FUNC(i64 %2, i64 %12) br label LBL_2 LBL_2: %sext = mul i64 %1, 4294967296 %14 = ashr exact i64 %sext, 30 %15 = add i64 %6, %14 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = or i32 %17, 1 store i32 %18, i32* %16, align 4 %19 = add i64 %2, 16 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = call i64 @FUNC(i64 %21) %23 = trunc i64 %22 to i32 %24 = icmp eq i32 %23, 0 %25 = icmp eq i1 %24, false br i1 %25, label LBL_4, label LBL_3 LBL_3: %26 = call i64 @FUNC(i64 %2) br label LBL_4 LBL_4: ret i64 0 uselistorder i32* %16, { 1, 0 } uselistorder i64 %2, { 1, 2, 0, 3, 4 } }
1
BinRealVul
openfile_15354
openfile
define i64 @FUNC(i8* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = load i64, i64* @gv_0, align 8 %1 = icmp eq i64 %0, 0 br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %3 = call i32 @fwrite(i64* bitcast ([37 x i8]* @gv_2 to i64*), i32 1, i32 36, %_IO_FILE* %2) store i64 1, i64* %rax.0.reg2mem br label LBL_7 LBL_2: %sext = mul i64 %arg2, 4294967296 %4 = ashr exact i64 %sext, 32 %5 = trunc i64 %arg3 to i32 %6 = icmp eq i32 %5, 0 br i1 %6, label LBL_5, label LBL_3 LBL_3: %7 = ptrtoint i8* %arg1 to i64 %8 = and i64 %4, 4294967294 %9 = or i64 %8, 1 %10 = call i64 @FUNC(i64* nonnull @gv_0, i64 %7, i64 0, i64 %arg4, i64 %9, i64 0) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 store i64 0, i64* %rax.0.reg2mem br i1 %12, label LBL_7, label LBL_4 LBL_4: %13 = call i64 @FUNC(i64 0) %14 = load [8 x i8]*, [8 x i8]** @gv_3, align 8 %15 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %16 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0 %17 = inttoptr i64 %13 to i8* %18 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %15, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_4, i64 0, i64 0), i8* %16, i8* %arg1, i8* %17) %19 = call i64 @FUNC(i64 0) store i64 1, i64* %rax.0.reg2mem br label LBL_7 LBL_5: %20 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0), i64 4198801) store i64 %20, i64* @gv_0, align 8 %21 = ptrtoint i8* %arg1 to i64 %22 = and i64 %4, 4294967295 %23 = call i64 @FUNC(i64* nonnull @gv_0, i64 %21, i64 0, i64 %arg4, i64 %22, i64 0) %24 = trunc i64 %23 to i32 %25 = icmp slt i32 %24, 0 %26 = icmp eq i1 %25, false store i64 0, i64* %rax.0.reg2mem br i1 %26, label LBL_7, label LBL_6 LBL_6: %27 = call i64 @FUNC(i64 0) %28 = load [8 x i8]*, [8 x i8]** @gv_3, align 8 %29 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %30 = getelementptr inbounds [8 x i8], [8 x i8]* %28, i64 0, i64 0 %31 = inttoptr i64 %27 to i8* %32 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %29, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_4, i64 0, i64 0), i8* %30, i8* %arg1, i8* %31) %33 = call i64 @FUNC(i64 0) %34 = load i64, i64* @gv_0, align 8 %35 = call i64 @FUNC(i64 %34) store i64 0, i64* @gv_0, align 8 store i64 1, i64* %rax.0.reg2mem br label LBL_7 LBL_7: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %4, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 2, 4, 1, 3 } uselistorder i64 (i64)* @error_free, { 1, 0 } uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0 } uselistorder i64 (i64)* @error_get_pretty, { 1, 0 } uselistorder i64 (i64*, i64, i64, i64, i64, i64)* @bdrv_open, { 1, 0 } uselistorder i64 1, { 2, 1, 4, 0, 3 } uselistorder %_IO_FILE** @gv_1, { 2, 1, 0 } uselistorder i64* @gv_0, { 2, 3, 0, 4, 1, 5 } uselistorder i32 1, { 3, 2, 1, 0 } uselistorder i64 %arg4, { 1, 0 } uselistorder i8* %arg1, { 2, 3, 0, 1 } uselistorder label LBL_7, { 2, 1, 3, 0, 4 } }
1
BinRealVul
process_work_frame_2003
process_work_frame
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg1 to i64 %4 = add i64 %3, 80 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %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_22 LBL_1: %9 = add i64 %3, 72 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = icmp eq i64 %11, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_3, label LBL_2 LBL_2: %14 = add i64 %3, 64 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = icmp eq i64 %16, 0 %18 = icmp eq i1 %17, false store i64 0, i64* %rax.0.reg2mem br i1 %18, label LBL_3, label LBL_22 LBL_3: %19 = add i64 %3, 104 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = add i64 %3, 96 %23 = inttoptr i64 %22 to i64* %24 = load i64, i64* %23, align 8 %25 = call i64 @FUNC(i64 %24) %26 = add i64 %3, 8 %27 = inttoptr i64 %26 to i64* %28 = load i64, i64* %27, align 8 %29 = call i64 @FUNC(i64 %28, i64 %25, i64 %21) %30 = add i64 %29, %3 %31 = add i64 %3, 24 %32 = inttoptr i64 %31 to i64* %33 = load i64, i64* %32, align 8 %34 = icmp slt i64 %30, %33 br i1 %34, label LBL_5, label LBL_4 LBL_4: %35 = add i64 %3, 64 %36 = inttoptr i64 %35 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_5, label LBL_22 LBL_5: %40 = load i64, i64* %10, align 8 %41 = icmp eq i64 %40, 0 %42 = icmp eq i1 %41, false br i1 %42, label LBL_7, label LBL_6 LBL_6: %43 = load i64, i64* %5, align 8 %44 = call i64 @FUNC(i64 %43) %45 = add i64 %3, 88 %46 = inttoptr i64 %45 to i64* store i64 %44, i64* %46, align 8 store i64 %44, i64* %.reg2mem br label LBL_20 LBL_7: %47 = add i64 %3, 32 %48 = inttoptr i64 %47 to i64* %49 = load i64, i64* %48, align 8 %50 = add i64 %49, %33 %51 = icmp slt i64 %30, %50 br i1 %51, label LBL_9, label LBL_8 LBL_8: %52 = add i64 %3, 64 %53 = inttoptr i64 %52 to i64* %54 = load i64, i64* %53, align 8 %55 = icmp eq i64 %54, 0 store i64 0, i64* %rax.0.reg2mem br i1 %55, label LBL_9, label LBL_22 LBL_9: %56 = add i64 %3, 40 %57 = inttoptr i64 %56 to i64* %58 = load i64, i64* %57, align 8 %59 = add i64 %3, 16 %60 = inttoptr i64 %59 to i64* %61 = load i64, i64* %60, align 8 %62 = sub i64 %30, %61 %63 = call i64 @FUNC(i64 %62, i64 %58, i64 %49) %64 = load i64, i64* %48, align 8 %65 = load i64, i64* %60, align 8 %66 = sub i64 %30, %65 %67 = call i64 @FUNC(i64 %66, i64 256, i64 %64) %68 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_0, i64 0, i64 0), i64 %67, i64 %66, i64 %2, i64 %1) %69 = load i64, i64* %57, align 8 %70 = icmp slt i64 %63, %69 br i1 %70, label LBL_10, label LBL_11 LBL_10: %71 = add i64 %3, 56 %72 = inttoptr i64 %71 to i64* %73 = load i64, i64* %72, align 8 %74 = icmp sgt i64 %67, %73 br i1 %74, label LBL_11, label LBL_12 LBL_11: %75 = load i64, i64* %5, align 8 %76 = call i64 @FUNC(i64 %75) %77 = add i64 %3, 88 %78 = inttoptr i64 %77 to i64* store i64 %76, i64* %78, align 8 store i64 %76, i64* %.reg2mem br label LBL_20 LBL_12: %79 = icmp slt i64 %63, 1 br i1 %79, label LBL_14, label LBL_13 LBL_13: %80 = add i64 %3, 48 %81 = inttoptr i64 %80 to i64* %82 = load i64, i64* %81, align 8 %83 = icmp slt i64 %67, %82 br i1 %83, label LBL_14, label LBL_15 LBL_14: %84 = load i64, i64* %10, align 8 %85 = call i64 @FUNC(i64 %84) %86 = add i64 %3, 88 %87 = inttoptr i64 %86 to i64* store i64 %85, i64* %87, align 8 store i64 %85, i64* %.reg2mem br label LBL_20 LBL_15: %88 = call i64 @FUNC(i64 %3, i64 %63) %89 = trunc i64 %88 to i32 %90 = icmp slt i32 %89, 0 %91 = icmp eq i1 %90, false br i1 %91, label LBL_17, label LBL_16 LBL_16: %92 = and i64 %88, 4294967295 store i64 %92, i64* %rax.0.reg2mem br label LBL_22 LBL_17: %93 = icmp eq i32 %89, 0 %94 = icmp eq i1 %93, false br i1 %94, label LBL_17.LBL_20_crit_edge, label LBL_19 LBL_18: %.pre = add i64 %3, 88 %.pre1 = inttoptr i64 %.pre to i64* %.pre3 = load i64, i64* %.pre1, align 8 store i64 %.pre3, i64* %.reg2mem br label LBL_20 LBL_19: %95 = load i64, i64* %57, align 8 %96 = ashr i64 %95, 1 %97 = icmp sgt i64 %63, %96 %storemerge.in.in.v = select i1 %97, i64 80, i64 72 %storemerge.in.in = add i64 %storemerge.in.in.v, %3 %storemerge.in = inttoptr i64 %storemerge.in.in to i64* %storemerge = load i64, i64* %storemerge.in, align 8 %98 = call i64 @FUNC(i64 %storemerge) %99 = add i64 %3, 88 %100 = inttoptr i64 %99 to i64* store i64 %98, i64* %100, align 8 store i64 %98, i64* %.reg2mem br label LBL_20 LBL_20: %.reload = load i64, i64* %.reg2mem %101 = icmp eq i64 %.reload, 0 %102 = icmp eq i1 %101, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %102, label LBL_21, label LBL_22 LBL_21: %103 = inttoptr i64 %.reload to i64* store i64 %30, i64* %103, align 8 %104 = load i64, i64* %27, align 8 %105 = add i64 %104, 1 store i64 %105, i64* %27, align 8 store i64 1, i64* %rax.0.reg2mem br label LBL_22 LBL_22: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %67, { 1, 0, 2 } uselistorder i64 %66, { 1, 0 } uselistorder i64 %63, { 0, 2, 1, 3 } uselistorder i64 %49, { 1, 0 } uselistorder i64* %27, { 1, 0, 2 } uselistorder i64* %5, { 1, 0, 2 } uselistorder i64 %3, { 4, 0, 2, 5, 6, 9, 7, 8, 10, 12, 11, 14, 13, 3, 16, 15, 1, 17, 19, 18, 20, 21, 22 } uselistorder i64* %.reg2mem, { 0, 4, 5, 3, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 7, 1, 6, 2, 3, 4, 5 } uselistorder i64* %0, { 1, 0 } uselistorder i64 1, { 0, 2, 3, 1 } uselistorder i64 (i64, i64, i64)* @av_rescale, { 2, 1, 0 } uselistorder i64 88, { 1, 0, 2, 3, 4 } uselistorder i64 (i64)* @av_frame_clone, { 3, 2, 1, 0 } uselistorder label LBL_22, { 5, 0, 6, 1, 2, 3, 4 } uselistorder label LBL_20, { 1, 0, 2, 3, 4 } }
0
BinRealVul
icp_control_init_1941
icp_control_init
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = trunc i64 %arg1 to i32 %1 = call i64 @FUNC(i64 4) %2 = load i64, i64* @gv_0, align 8 %3 = load i64, i64* @gv_1, align 8 %4 = call i64 @FUNC(i64 0, i64 %3, i64 %2, i64 %1) %5 = trunc i64 %4 to i32 %6 = and i64 %arg1, 4294967295 %7 = call i64 @FUNC(i64 %6, i64 8388608, i32 %5) %8 = inttoptr i64 %1 to i32* store i32 %0, i32* %8, align 4 ret i64 %1 uselistorder i64 %1, { 1, 0, 2 } }
0
BinRealVul
xio3130_downstream_realize_1418
xio3130_downstream_realize
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i64* %arg1 to i64 %4 = call i64 @FUNC(i64 %3, i64 0) %5 = call i64 @FUNC(i64 %3) %6 = call i64 @FUNC(i64 %3, i64 0, i64 0, i64 0, i64 0, i64 %2) %7 = trunc i64 %6 to i32 %8 = icmp slt i32 %7, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_3, label LBL_1 LBL_1: %10 = icmp eq i32 %7, 1 br i1 %10, label LBL_11, label LBL_2 LBL_2: call void @__assert_fail(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_1, i64 0, i64 0), i32 73, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0)) br label LBL_3 LBL_3: %11 = call i64 @FUNC(i64 %3, i64 0, i64 0, i64 0, i64 %2) %12 = trunc i64 %11 to i32 %13 = icmp slt i32 %12, 0 br i1 %13, label LBL_11, label LBL_4 LBL_4: %14 = and i64 %1, 4294967295 %15 = call i64 @FUNC(i64 %3, i64 0, i64 0, i64 %14, i64 %2) %16 = trunc i64 %15 to i32 %17 = icmp slt i32 %16, 0 br i1 %17, label LBL_10, label LBL_5 LBL_5: %18 = call i64 @FUNC(i64 %3) %19 = call i64 @FUNC(i64 %3) %20 = call i64 @FUNC(i64 %3, i64 %14) %21 = call i64 @FUNC(i64 %3) %22 = add i64 %3, 4 %23 = inttoptr i64 %22 to i32* %24 = load i32, i32* %23, align 4 %25 = zext i32 %24 to i64 %26 = call i64 @FUNC(i64 %25) %27 = call i64 @FUNC(i64 %3) %28 = trunc i64 %27 to i32 %29 = icmp slt i32 %28, 0 %30 = icmp eq i1 %29, false br i1 %30, label LBL_7, label LBL_6 LBL_6: %31 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_3, i64 0, i64 0), i32 %28) br label LBL_9 LBL_7: %32 = call i64 @FUNC(i64 %3, i64 0, i64 0, i64 0, i64 %2) %33 = trunc i64 %32 to i32 %34 = icmp slt i32 %33, 0 %35 = icmp eq i1 %34, false store i64 %32, i64* %rax.0.reg2mem br i1 %35, label LBL_12, label LBL_8 LBL_8: %36 = call i64 @FUNC(i64 %3) br label LBL_9 LBL_9: %37 = call i64 @FUNC(i64 %3) br label LBL_10 LBL_10: %38 = call i64 @FUNC(i64 %3) br label LBL_11 LBL_11: %39 = call i64 @FUNC(i64 %3) store i64 %39, 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 %14, { 1, 0 } uselistorder i64 %3, { 11, 9, 0, 1, 2, 4, 3, 5, 8, 7, 6, 10, 12, 13, 14, 15 } uselistorder i64 %2, { 1, 0, 2, 3, 4 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_11, { 2, 0, 1 } uselistorder label LBL_10, { 1, 0 } }
0
BinRealVul
ra144_decode_frame_18834
ra144_decode_frame
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.07.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %sv_0.19.reg2mem = alloca i64 %indvars.iv12.reg2mem = alloca i64 %indvars.iv15.reg2mem = alloca i64 %1 = load i64, i64* %0 %rdi = alloca i64, align 8 %2 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %sv_4 = alloca i64, align 8 %sv_5 = alloca i64, align 8 %sv_6 = alloca i64, align 8 %sv_7 = alloca i64, align 8 %3 = trunc i64 %arg5 to i32 %4 = icmp sgt i32 %3, 19 br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = and i64 %arg5, 4294967295 %6 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_0, i64 0, i64 0), i64 %5, i64 %arg5, i64 %1) %7 = bitcast i64* %arg3 to i32* store i32 0, i32* %7, align 4 store i64 %5, i64* %storemerge.reg2mem br label LBL_9 LBL_2: %8 = ptrtoint i64* %sv_7 to i64 %9 = ptrtoint i64* %arg4 to i64 %10 = call i64 @FUNC(i64* nonnull %sv_6, i64 %9, i64 160) %11 = add i64 %8, -352 store i64 0, i64* %indvars.iv15.reg2mem br label LBL_3 LBL_3: %indvars.iv15.reload = load i64, i64* %indvars.iv15.reg2mem %12 = add i64 %indvars.iv15.reload, ptrtoint (i8** @gv_1 to i64) %13 = inttoptr i64 %12 to i8* %14 = load i8, i8* %13, align 1 %15 = zext i8 %14 to i64 %16 = call i64 @FUNC(i64* nonnull %sv_6, i64 %15) %sext5 = mul i64 %16, 4294967296 %17 = ashr exact i64 %sext5, 32 %18 = mul i64 %indvars.iv15.reload, 32 %19 = add nsw i64 %17, %18 %20 = mul i64 %19, 4 %21 = add i64 %20, ptrtoint (i32** @gv_2 to i64) %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = mul i64 %indvars.iv15.reload, 4 %25 = add i64 %11, %24 %26 = inttoptr i64 %25 to i32* store i32 %23, i32* %26, align 4 %indvars.iv.next16 = add nuw nsw i64 %indvars.iv15.reload, 1 %exitcond17 = icmp eq i64 %indvars.iv.next16, 10 store i64 %indvars.iv.next16, i64* %indvars.iv15.reg2mem br i1 %exitcond17, label LBL_4, label LBL_3 LBL_4: %27 = add i64 %2, 12 %28 = call i64 @FUNC(i64 %27, i64* nonnull %sv_5) %29 = call i64 @FUNC(i64* nonnull %sv_5) %30 = trunc i64 %29 to i32 %31 = add i64 %2, 4 %32 = inttoptr i64 %31 to i32* store i32 %30, i32* %32, align 4 %33 = call i64 @FUNC(i64* nonnull %sv_6, i64 5) %sext2 = mul i64 %33, 4294967296 %34 = ashr exact i64 %sext2, 30 %35 = add i64 %34, ptrtoint (i32** @gv_3 to i64) %36 = inttoptr i64 %35 to i32* %37 = load i32, i32* %36, align 4 %38 = bitcast i64* %rdi to i32* %39 = load i32, i32* %38, align 8 %40 = zext i32 %39 to i64 %41 = call i64 @FUNC(i64 %2, i64* nonnull %sv_4, i64 0, i64 1, i64 %40) %42 = mul i32 %39, %37 %43 = zext i32 %42 to i64 %44 = call i64 @FUNC(i64 %43) %45 = udiv i64 %44, 4096 %46 = icmp ule i32 %37, %39 %47 = urem i64 %45, 1048576 %48 = zext i1 %46 to i64 %49 = call i64 @FUNC(i64 %2, i64* nonnull %sv_3, i64 1, i64 %48, i64 %47) %50 = zext i32 %37 to i64 %51 = call i64 @FUNC(i64 %2, i64* nonnull %sv_2, i64 2, i64 0, i64 %50) %52 = load i32, i32* %32, align 4 %53 = zext i32 %52 to i64 %54 = call i64 @FUNC(i64 %53, i64 %50) %55 = call i64 @FUNC(i64* nonnull %sv_1, i64 %27) %56 = add i64 %8, -64 %57 = ptrtoint i64* %sv_4 to i64 %58 = add i64 %2, 292 store i64 0, i64* %indvars.iv12.reg2mem store i64 %arg2, i64* %sv_0.19.reg2mem br label LBL_5 LBL_5: %sv_0.19.reload = load i64, i64* %sv_0.19.reg2mem %indvars.iv12.reload = load i64, i64* %indvars.iv12.reg2mem %59 = mul i64 %indvars.iv12.reload, 4 %60 = add i64 %56, %59 %61 = inttoptr i64 %60 to i32* %62 = load i32, i32* %61, align 4 %63 = mul nuw nsw i64 %indvars.iv12.reload, 60 %64 = add i64 %63, %57 %65 = call i64 @FUNC(i64 %2, i64 %64, i32 %62, i64* nonnull %sv_6) store i64 0, i64* %indvars.iv.reg2mem store i64 %sv_0.19.reload, i64* %sv_0.07.reg2mem br label LBL_6 LBL_6: %sv_0.07.reload = load i64, i64* %sv_0.07.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %66 = mul i64 %indvars.iv.reload, 4 %67 = add i64 %58, %66 %68 = inttoptr i64 %67 to i32* %69 = load i32, i32* %68, align 4 %70 = mul i32 %69, 4 %71 = zext i32 %70 to i64 %72 = call i64 @FUNC(i64 %71) %73 = add i64 %sv_0.07.reload, 2 %74 = trunc i64 %72 to i16 %75 = inttoptr i64 %sv_0.07.reload to i16* store i16 %74, i16* %75, align 2 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 160 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 %73, i64* %sv_0.07.reg2mem br i1 %exitcond, label LBL_7, label LBL_6 LBL_7: %indvars.iv.next13 = add nuw nsw i64 %indvars.iv12.reload, 1 %exitcond14 = icmp eq i64 %indvars.iv.next13, 4 store i64 %indvars.iv.next13, i64* %indvars.iv12.reg2mem store i64 %73, i64* %sv_0.19.reg2mem br i1 %exitcond14, label LBL_8, label LBL_5 LBL_8: %76 = bitcast i64* %arg1 to i32* store i32 %37, i32* %76, align 4 %77 = load i32, i32* %32, align 4 %78 = add i64 %2, 8 %79 = inttoptr i64 %78 to i32* store i32 %77, i32* %79, align 4 %80 = inttoptr i64 %27 to i32* %81 = load i32, i32* %80, align 4 %82 = add i64 %2, 132 %83 = inttoptr i64 %82 to i32* %84 = load i32, i32* %83, align 4 store i32 %84, i32* %80, align 4 store i32 %81, i32* %83, align 4 %85 = bitcast i64* %arg3 to i32* store i32 320, i32* %85, align 4 store i64 20, i64* %storemerge.reg2mem br label LBL_9 LBL_9: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %73, { 1, 0 } uselistorder i32 %39, { 1, 0, 2 } uselistorder i32 %37, { 1, 2, 3, 0 } uselistorder i64 %indvars.iv15.reload, { 0, 3, 2, 1 } uselistorder i64* %sv_4, { 1, 0 } uselistorder i64 %2, { 2, 3, 4, 0, 6, 5, 7, 9, 8, 1 } uselistorder i64* %indvars.iv15.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv12.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.19.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.07.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 2, { 1, 0 } uselistorder i64 (i64, i64*, i64, i64, i64)* @interp, { 2, 1, 0 } uselistorder i64 1, { 1, 2, 3, 4, 0 } uselistorder i64 4, { 4, 0, 1, 5, 2, 3 } uselistorder i64 0, { 0, 1, 12, 13, 2, 14, 10, 11, 3, 4, 5, 6, 7, 8, 9, 15 } uselistorder i64 %arg5, { 1, 0, 2 } }
1
BinRealVul
ip_vs_svc_hash_9670
ip_vs_svc_hash
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = trunc i64 %3 to i32 %6 = urem i32 %5, 2 %7 = icmp eq i32 %6, 0 br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = call i64 @FUNC(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i64 %arg2, i64 %4, i64 %2, i64 %1) store i64 0, i64* %storemerge.reg2mem br label LBL_6 LBL_2: %9 = ptrtoint i64* %arg1 to i64 %10 = add i64 %9, 4 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false br i1 %14, label LBL_4, label LBL_3 LBL_3: %15 = add i64 %9, 16 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = add i64 %9, 12 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 %21 = add i64 %9, 8 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = zext i32 %17 to i64 %25 = zext i32 %23 to i64 %26 = call i64 @FUNC(i64 %25, i32 %20, i64 %15, i64 %24) %27 = mul i64 %26, 16 %28 = and i64 %27, 68719476720 %29 = add i64 %28, ptrtoint (i64* @gv_2 to i64) %30 = add i64 %9, 24 %31 = call i64 @FUNC(i64 %30, i64 %29) br label LBL_5 LBL_4: %32 = zext i32 %12 to i64 %33 = call i64 @FUNC(i64 %32) %34 = mul i64 %33, 16 %35 = and i64 %34, 68719476720 %36 = add i64 %35, ptrtoint (i64* @gv_3 to i64) %37 = add i64 %9, 40 %38 = call i64 @FUNC(i64 %37, i64 %36) br label LBL_5 LBL_5: %39 = or i32 %5, 1 %40 = bitcast i64* %arg1 to i32* store i32 %39, i32* %40, align 4 %41 = add i64 %9, 20 %42 = call i64 @FUNC(i64 %41) store i64 1, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %9, { 1, 2, 0, 3, 4, 5, 6 } uselistorder i32 %5, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 (i64, i64)* @list_add, { 1, 0 } }
0
BinRealVul
asn1_get_octet_der_5204
asn1_get_octet_der
define i64 @FUNC(i32* %arg1, i32 %arg2, i64* %arg3, i64* %arg4, i64 %arg5, i64* %arg6) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %sv_0 = alloca i32, align 4 store i32 0, i32* %sv_0, align 4 %2 = icmp eq i32 %arg2, 0 %3 = icmp slt i32 %arg2, 0 %4 = icmp eq i1 %3, false %5 = icmp eq i1 %2, false %6 = icmp eq i1 %4, %5 store i64 4294967295, i64* %rax.0.reg2mem br i1 %6, label LBL_1, label LBL_4 LBL_1: %7 = trunc i64 %1 to i32 %8 = ptrtoint i32* %arg1 to i64 %9 = zext i32 %arg2 to i64 %10 = call i64 @FUNC(i64 %8, i64 %9, i32* nonnull %sv_0) %11 = trunc i64 %10 to i32 %12 = bitcast i64* %arg6 to i32* store i32 %11, i32* %12, align 4 %13 = icmp slt i32 %7, 0 %14 = icmp eq i1 %13, false store i64 4294967294, i64* %rax.0.reg2mem br i1 %14, label LBL_2, label LBL_4 LBL_2: %sext = mul i64 %arg5, 4294967296 %15 = load i32, i32* %sv_0, align 4 %16 = add i32 %15, %7 %17 = bitcast i64* %arg3 to i32* store i32 %16, i32* %17, align 4 %18 = and i64 %1, 4294967295 %19 = ashr exact i64 %sext, 32 %20 = icmp slt i64 %19, %18 store i64 4294967293, i64* %rax.0.reg2mem br i1 %20, label LBL_4, label LBL_3 LBL_3: %21 = sext i32 %15 to i64 %22 = add i64 %21, %8 %23 = inttoptr i64 %22 to i64* %24 = call i64* @memcpy(i64* %arg4, i64* %23, i32 %7) store i64 0, i64* %rax.0.reg2mem br label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %15, { 1, 0 } uselistorder i32 %7, { 1, 0, 2 } uselistorder i32* %sv_0, { 1, 0, 2 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i32 %arg2, { 0, 2, 1 } uselistorder label LBL_4, { 3, 0, 1, 2 } }
0
BinRealVul
proc_next_tid_17749
proc_next_tid
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rdi.1.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i8*, align 8 %3 = bitcast i64* %arg2 to i32* store i32 0, i32* %3, align 4 %4 = call i32* @__errno_location() store i32 0, i32* %4, align 4 %5 = trunc i64 %1 to i32 %6 = icmp eq i32 %5, 0 store i64 %2, i64* %rdi.0.reg2mem br label LBL_1 LBL_1: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %7 = inttoptr i64 %rdi.0.reload to %__dirstream* %8 = call %dirent* @readdir(%__dirstream* %7) %9 = icmp eq %dirent* %8, null %10 = icmp eq i1 %9, false br i1 %10, label LBL_3, label LBL_2 LBL_2: %11 = call i32* @__errno_location() %12 = load i32, i32* %11, align 4 %13 = icmp eq i32 %12, 0 %. = select i1 %13, i64 1, i64 4294967295 store i64 %., i64* %rax.0.reg2mem br label LBL_9 LBL_3: %14 = ptrtoint %dirent* %8 to i64 %15 = call i16** @__ctype_b_loc() %16 = load i16*, i16** %15, align 8 %17 = ptrtoint i16* %16 to i64 %18 = add i64 %14, 19 %19 = inttoptr i64 %18 to i8* %20 = load i8, i8* %19, align 1 %21 = zext i8 %20 to i64 %22 = mul i64 %21, 2 %23 = add i64 %22, %17 %24 = inttoptr i64 %23 to i16* %25 = load i16, i16* %24, align 2 %26 = and i16 %25, 2048 %27 = icmp eq i16 %26, 0 store i64 %rdi.0.reload, i64* %rdi.1.reg2mem br i1 %27, label LBL_8, label LBL_4 LBL_4: %28 = call i32 @strtol(i8* %19, i8** nonnull %sv_0, i32 10) store i32 %28, i32* %3, align 4 %29 = call i32* @__errno_location() %30 = load i32, i32* %29, align 4 %31 = icmp eq i32 %30, 0 %32 = icmp eq i1 %31, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %32, label LBL_9, label LBL_5 LBL_5: %33 = load i8*, i8** %sv_0, align 8 %34 = ptrtoint i8* %33 to i64 %35 = icmp eq i64 %18, %34 store i64 4294967295, i64* %rax.0.reg2mem br i1 %35, label LBL_9, label LBL_6 LBL_6: %36 = icmp eq i8* %33, null store i64 %18, i64* %rdi.1.reg2mem br i1 %36, label LBL_8, label LBL_7 LBL_7: %37 = load i8, i8* %33, align 1 %38 = icmp eq i8 %37, 0 store i64 %18, i64* %rdi.1.reg2mem store i64 4294967295, i64* %rax.0.reg2mem br i1 %38, label LBL_8, label LBL_9 LBL_8: %rdi.1.reload = load i64, i64* %rdi.1.reg2mem store i64 %rdi.1.reload, i64* %rdi.0.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %6, label LBL_1, label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder %dirent* %8, { 1, 0 } uselistorder i64* %rdi.0.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 4, 3, 2, 5 } uselistorder i64 4294967295, { 2, 1, 0, 3 } uselistorder label LBL_9, { 0, 3, 2, 1, 4 } uselistorder label LBL_8, { 1, 2, 0 } }
1
BinRealVul
linux_set_channel_17834
linux_set_channel
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i128 %rax.0.reg2mem = alloca i64 %1 = load i128, i128* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i32, align 4 %sv_2 = alloca i64, align 8 %sext = mul i64 %arg2, 4294967296 %3 = ashr exact i64 %sext, 32 %4 = call i64 @FUNC(i64 %2) %5 = call i64* @memset(i64* nonnull %sv_2, i32 0, i32 32) %6 = inttoptr i64 %4 to i32* %7 = load i32, i32* %6, align 4 %8 = icmp eq i32 %7, 3 br i1 %8, label LBL_10, label LBL_1 LBL_1: %9 = icmp sgt i32 %7, 3 br i1 %9, label LBL_13, label LBL_2 LBL_2: switch i32 %7, label LBL_13 [ i32 1, label LBL_3 i32 2, label LBL_7 ] LBL_3: %10 = and i64 %3, 4294967295 %11 = bitcast i64* %sv_2 to i8* %12 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %11, i32 31, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 %10) %13 = call i32 @fork() %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false br i1 %15, label LBL_5, label LBL_4 LBL_4: %16 = call i32 @close(i32 0) %17 = call i32 @close(i32 1) %18 = call i32 @close(i32 2) %19 = call i32 @chdir(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0)) %20 = call i64 @FUNC(i64 %2) %21 = add i64 %4, 16 %22 = inttoptr i64 %21 to i64* %23 = load i64, i64* %22, align 8 %24 = inttoptr i64 %23 to i8* %25 = call i32 (i8*, i8*, ...) @execl(i8* %24, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0)) call void @exit(i32 1) unreachable LBL_5: %26 = call i32 @waitpid(i32 %13, i32* nonnull %sv_1, i32 0) %27 = load i32, i32* %sv_1, align 4 %28 = urem i32 %27, 128 %29 = icmp eq i32 %28, 0 %30 = icmp eq i1 %29, false store i64 1, i64* %rax.0.reg2mem br i1 %30, label LBL_16, label LBL_6 LBL_6: %31 = trunc i64 %3 to i32 %32 = add i64 %4, 4 %33 = inttoptr i64 %32 to i32* store i32 %31, i32* %33, align 4 %34 = load i32, i32* %sv_1, align 4 %35 = udiv i32 %34, 256 %36 = urem i32 %35, 256 %37 = zext i32 %36 to i64 store i64 %37, i64* %rax.0.reg2mem br label LBL_16 LBL_7: %38 = and i64 %3, 4294967295 %39 = bitcast i64* %sv_2 to i8* %40 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %39, i32 31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_3, i64 0, i64 0), i64 %38) %41 = call i32 @fork() %42 = icmp eq i32 %41, 0 %43 = icmp eq i1 %42, false br i1 %43, label LBL_9, label LBL_8 LBL_8: %44 = call i32 @close(i32 0) %45 = call i32 @close(i32 1) %46 = call i32 @close(i32 2) %47 = call i32 @chdir(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0)) %48 = call i64 @FUNC(i64 %2) %49 = add i64 %4, 24 %50 = inttoptr i64 %49 to i64* %51 = load i64, i64* %50, align 8 %52 = inttoptr i64 %51 to i8* %53 = call i32 (i8*, i8*, ...) @execlp(i8* %52, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0)) call void @exit(i32 1) unreachable LBL_9: %54 = call i32 @waitpid(i32 %41, i32* nonnull %sv_1, i32 0) %55 = trunc i64 %3 to i32 %56 = add i64 %4, 4 %57 = inttoptr i64 %56 to i32* store i32 %55, i32* %57, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_16 LBL_10: %58 = and i64 %3, 4294967295 %59 = bitcast i64* %sv_2 to i8* %60 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %59, i32 31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_3, i64 0, i64 0), i64 %58) %61 = call i32 @fork() %62 = icmp eq i32 %61, 0 %63 = icmp eq i1 %62, false br i1 %63, label LBL_12, label LBL_11 LBL_11: %64 = call i32 @close(i32 0) %65 = call i32 @close(i32 1) %66 = call i32 @close(i32 2) %67 = call i32 @chdir(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0)) %68 = call i64 @FUNC(i64 %2) %69 = add i64 %4, 32 %70 = inttoptr i64 %69 to i64* %71 = load i64, i64* %70, align 8 %72 = inttoptr i64 %71 to i8* %73 = call i32 (i8*, i8*, ...) @execlp(i8* %72, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_5, i64 0, i64 0)) call void @exit(i32 1) unreachable LBL_12: %74 = call i32 @waitpid(i32 %61, i32* nonnull %sv_1, i32 0) %75 = trunc i64 %3 to i32 %76 = add i64 %4, 4 %77 = inttoptr i64 %76 to i32* store i32 %75, i32* %77, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_16 LBL_13: %78 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 32) %79 = call i64 @FUNC(i64 %2) %80 = bitcast i64* %sv_0 to i8* %81 = inttoptr i64 %79 to i8* %82 = call i8* @strncpy(i8* nonnull %80, i8* %81, i32 16) %83 = call i128 @FUNC(i128 %1, i128 %1) %84 = trunc i64 %3 to i32 %85 = call i128 @FUNC(i32 %84) %86 = call i32 @FUNC(i128 %85) %87 = add i64 %4, 8 %88 = inttoptr i64 %87 to i32* %89 = load i32, i32* %88, align 4 %90 = call i32 (i32, i32, ...) @ioctl(i32 %89, i32 35588) %91 = icmp slt i32 %90, 0 %92 = icmp eq i1 %91, false br i1 %92, label LBL_15, label LBL_14 LBL_14: %93 = call i32 @usleep(i32 10000) %94 = load i32, i32* %88, align 4 %95 = call i32 (i32, i32, ...) @ioctl(i32 %94, i32 35588) %96 = icmp slt i32 %95, 0 %97 = icmp eq i1 %96, false store i64 1, i64* %rax.0.reg2mem br i1 %97, label LBL_15, label LBL_16 LBL_15: %98 = add i64 %4, 4 %99 = inttoptr i64 %98 to i32* store i32 %84, i32* %99, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_16 LBL_16: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %4, { 4, 5, 7, 6, 1, 0, 3, 2, 8 } uselistorder i64 %3, { 4, 5, 6, 0, 1, 2, 3 } uselistorder i32* %sv_1, { 4, 3, 1, 0, 2 } uselistorder i64 %2, { 2, 3, 0, 1, 4 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 6, 3, 4, 2 } uselistorder i32 (i32, i32, ...)* @ioctl, { 1, 0 } uselistorder i32 (i8*, i8*, ...)* @execlp, { 1, 0 } uselistorder i32 256, { 1, 0 } uselistorder i32 (i32, i32*, i32)* @waitpid, { 2, 1, 0 } uselistorder void (i32)* @exit, { 2, 1, 0 } uselistorder i64 (i64)* @wi_get_ifname, { 3, 2, 1, 0 } uselistorder i32 (i8*)* @chdir, { 0, 2, 1 } uselistorder i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0), { 0, 2, 1 } uselistorder i32 (i32)* @close, { 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i32 ()* @fork, { 2, 0, 1 } uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 2, 1, 0 } uselistorder i32 31, { 0, 2, 1 } uselistorder i32 2, { 1, 3, 2, 0 } uselistorder i32 3, { 1, 0 } uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 } uselistorder i32 0, { 8, 9, 6, 0, 1, 10, 4, 5, 11, 12, 2, 3, 13, 7 } uselistorder i64 32, { 1, 0 } uselistorder label LBL_16, { 2, 0, 3, 4, 5, 1 } }
1
BinRealVul
start_tco_3232
start_tco
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = zext i32 %3 to i64 %5 = call i64 @FUNC(i64 %0, i64 %4, i64 0) %6 = and i64 %5, 4294967294 %7 = load i32, i32* %2, align 4 %8 = call i64 @FUNC(i64 %0, i32 %7, i64 0, i64 %6) ret i64 %8 }
0
BinRealVul
vivid_fb_set_par_9777
vivid_fb_set_par
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0, i64 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0)) %2 = call i64 @FUNC(i64 %0, i64 %0) %3 = call i64 @FUNC(i64 %0, i64 %0) %4 = and i64 %2, 4294967295 ret i64 %4 uselistorder i64 %0, { 1, 0, 3, 2, 4 } }
0
BinRealVul
cryptd_hash_final_9809
cryptd_hash_final
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = trunc i64 %arg2 to i32 %2 = call i64 @FUNC(i64 %0) %3 = call i64 @FUNC(i64 %2) %4 = icmp eq i32 %1, -115 %5 = icmp eq i1 %4, false %6 = icmp eq i1 %5, false br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = add i64 %2, 8 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = call i64 @FUNC(i64 %3, i64 %9) %11 = add i64 %3, 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = add i64 %2, 16 %15 = inttoptr i64 %14 to i64* store i64 %13, i64* %15, align 8 br label LBL_2 LBL_2: %16 = call i64 @FUNC() %17 = call i64 @FUNC() ret i64 %17 uselistorder i64 %3, { 1, 0 } uselistorder i1 false, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
ath_reg_apply_active_scan_flags_18143
ath_reg_apply_active_scan_flags
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i32*, align 8 %1 = trunc i64 %arg2 to i32 %2 = icmp eq i32 %1, 0 br i1 %2, label LBL_5, label LBL_1 LBL_1: %3 = add i64 %0, 92 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = urem i32 %5, 2 %7 = icmp eq i32 %6, 0 br i1 %7, label LBL_3, label LBL_2 LBL_2: %8 = and i32 %5, -2 store i32 %8, i32* %4, align 4 br label LBL_3 LBL_3: %9 = add i64 %0, 100 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = urem i32 %11, 2 %13 = icmp eq i32 %12, 0 store i64 0, i64* %rax.0.reg2mem br i1 %13, label LBL_13, label LBL_4 LBL_4: %14 = add i64 %0, 96 %15 = and i32 %11, -2 store i32 %15, i32* %10, align 4 store i64 %14, i64* %rax.0.reg2mem br label LBL_13 LBL_5: %16 = add i64 %0, 88 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = bitcast i32** %sv_0 to i64* %20 = call i64 @FUNC(i64 %0, i32 %18, i32 0, i64* nonnull %19) %21 = trunc i64 %20 to i32 %22 = icmp eq i32 %21, 0 %23 = icmp eq i1 %22, false br i1 %23, label LBL_9, label LBL_6 LBL_6: %24 = load i32*, i32** %sv_0, align 8 %25 = load i32, i32* %24, align 4 %26 = urem i32 %25, 2 %27 = icmp eq i32 %26, 0 %28 = icmp eq i1 %27, false br i1 %28, label LBL_9, label LBL_7 LBL_7: %29 = add i64 %0, 92 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = urem i32 %31, 2 %33 = icmp eq i32 %32, 0 br i1 %33, label LBL_9, label LBL_8 LBL_8: %34 = and i32 %31, -2 store i32 %34, i32* %30, align 4 br label LBL_9 LBL_9: %35 = add i64 %0, 96 %36 = inttoptr i64 %35 to i32* %37 = load i32, i32* %36, align 4 %38 = call i64 @FUNC(i64 %0, i32 %37, i32 0, i64* nonnull %19) %39 = trunc i64 %38 to i32 %40 = icmp eq i32 %39, 0 %41 = icmp eq i1 %40, false store i64 %38, i64* %rax.0.reg2mem br i1 %41, label LBL_13, label LBL_10 LBL_10: %42 = load i32*, i32** %sv_0, align 8 %43 = load i32, i32* %42, align 4 %44 = urem i32 %43, 2 %45 = zext i32 %44 to i64 %46 = icmp eq i32 %44, 0 %47 = icmp eq i1 %46, false store i64 %45, i64* %rax.0.reg2mem br i1 %47, label LBL_13, label LBL_11 LBL_11: %48 = add i64 %0, 100 %49 = inttoptr i64 %48 to i32* %50 = load i32, i32* %49, align 4 %51 = urem i32 %50, 2 %52 = icmp eq i32 %51, 0 store i64 0, i64* %rax.0.reg2mem br i1 %52, label LBL_13, label LBL_12 LBL_12: %53 = and i32 %50, -2 store i32 %53, i32* %49, align 4 store i64 %35, i64* %rax.0.reg2mem br label LBL_13 LBL_13: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %50, { 1, 0 } uselistorder i32 %44, { 1, 0 } uselistorder i32 %31, { 1, 0 } uselistorder i32 %11, { 1, 0 } uselistorder i32 %5, { 1, 0 } uselistorder i32** %sv_0, { 1, 0, 2 } uselistorder i64 %0, { 0, 4, 5, 1, 6, 7, 2, 3, 8 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 5, 6, 1, 2 } uselistorder i64 (i64, i32, i32, i64*)* @freq_reg_info, { 1, 0 } uselistorder i32 0, { 2, 3, 4, 0, 5, 6, 7, 1, 8, 9, 10 } uselistorder label LBL_13, { 1, 2, 3, 4, 5, 0 } }
1
BinRealVul
cpu_sh4_reset_3278
cpu_sh4_reset
define i64 @FUNC(i64* %arg1) 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 1) %8 = trunc i64 %7 to i32 %9 = icmp eq i32 %8, 0 br i1 %9, label LBL_2, label LBL_1 LBL_1: %10 = and i64 %3, 4294967295 %11 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %10, i64 %4, i64 %5, i64 %2, i64 %1) %12 = call i64 @FUNC(i64 %6, i64 0) br label LBL_2 LBL_2: %13 = add i64 %6, 4 %14 = inttoptr i64 %13 to i32* store i32 0, i32* %14, align 4 %15 = add i64 %6, 8 %16 = inttoptr i64 %15 to i32* store i32 0, i32* %16, align 4 %17 = add i64 %6, 12 %18 = inttoptr i64 %17 to i32* store i32 -1610612736, i32* %18, align 4 %19 = add i64 %6, 16 %20 = inttoptr i64 %19 to i32* store i32 1, i32* %20, align 4 %21 = add i64 %6, 20 %22 = call i64 @FUNC(i64 0, i64 %21) %23 = add i64 %6, 24 %24 = inttoptr i64 %23 to i32* store i32 0, i32* %24, align 4 ret i64 %6 uselistorder i64 %6, { 3, 2, 1, 4, 5, 6, 7, 0 } uselistorder i64* %0, { 4, 3, 2, 1, 0 } }
0
BinRealVul
mwifiex_pcie_alloc_cmdrsp_buf_3645
mwifiex_pcie_alloc_cmdrsp_buf
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg1 to i64 %5 = call i64 @FUNC(i64 1024) %6 = icmp eq i64 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = call i64 @FUNC(i64 %4, i64 1, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1) store i64 4294967284, i64* %rax.0.reg2mem br label LBL_5 LBL_2: %9 = call i64 @FUNC(i64 %5, i64 1024) %10 = call i64 @FUNC(i64 %4, i64 %5, i64 1024, i64 0) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 br i1 %12, label LBL_4, label LBL_3 LBL_3: %13 = call i64 @FUNC(i64 %5) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_5 LBL_4: store i64 %5, i64* %arg1, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %5, { 1, 0, 3, 2, 4 } uselistorder i64 %4, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } }
0
BinRealVul
qemu_spice_display_init_3152
qemu_spice_display_init
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = load i64, i64* @gv_0, align 8 %1 = icmp eq i64 %0, 0 br i1 %1, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_2, i64 0, i64 0), i32 52, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_3, i64 0, i64 0)) br label LBL_2 LBL_2: %2 = ptrtoint i64* %arg1 to i64 %3 = call i64 @FUNC(i64* nonnull @gv_4, i64 %2) store i64 ptrtoint (i64* @gv_5 to i64), i64* @gv_4, align 8 %4 = call i64 @FUNC(i64* nonnull @gv_4) %5 = load i64, i64* @gv_6, align 8 %6 = icmp eq i64 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_4, label LBL_3 LBL_3: call void @__assert_fail(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_7, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_2, i64 0, i64 0), i32 56, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_3, i64 0, i64 0)) br label LBL_4 LBL_4: %8 = call i64 @FUNC(i64* nonnull @gv_4) %9 = call i64 @FUNC(i64* nonnull @gv_4) %10 = call i64 @FUNC(i64 %2, i64* nonnull @gv_8) ret i64 %10 uselistorder i64* @gv_4, { 0, 1, 2, 4, 3 } uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 } }
0
BinRealVul
lookup_17705
lookup
define i64 @FUNC(i8* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.05.reg2mem = alloca i64 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sv_3 = alloca i32, align 4 store i32 0, i32* %sv_3, align 4 store i64 0, i64* %sv_2, align 8 %0 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_1, i8* %arg1) %1 = call i8* @strrchr(i8* %arg1, i32 47) %2 = icmp eq i8* %1, null %3 = ptrtoint i8* %arg1 to i64 %4 = ptrtoint i8* %1 to i64 %5 = add i64 %4, 1 %storemerge = select i1 %2, i64 %3, i64 %5 %6 = bitcast i64* %sv_1 to i8* %7 = inttoptr i64 %storemerge to i8* %8 = call i8* @strncpy(i8* nonnull %6, i8* %7, i32 4096) %9 = call i8* @strrchr(i8* nonnull %6, i32 46) %10 = icmp eq i8* %9, null br i1 %10, label LBL_2, label LBL_1 LBL_1: store i8 0, i8* %9, align 1 br label LBL_2 LBL_2: %11 = load i32, i32* bitcast (i64* @gv_1 to i32*), align 8 %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_4, label LBL_3 LBL_3: %14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %sv_1) br label LBL_4 LBL_4: %15 = icmp eq i64 %arg2, 0 %16 = icmp eq i1 %15, false br i1 %16, label LBL_5, label LBL_10 LBL_5: %17 = trunc i64 %arg3 to i32 store i64 %arg2, i64* %sv_0.05.reg2mem br label LBL_6 LBL_6: %sv_0.05.reload = load i64, i64* %sv_0.05.reg2mem %18 = add i64 %sv_0.05.reload, 8 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 %21 = and i32 %20, %17 %22 = icmp eq i32 %21, 0 br i1 %22, label LBL_9, label LBL_7 LBL_7: %23 = inttoptr i64 %sv_0.05.reload to i64* %24 = load i64, i64* %23, align 8 %25 = icmp eq i64 %24, 0 br i1 %25, label LBL_9, label LBL_8 LBL_8: %26 = call i64 @FUNC(i64 %24, i64* nonnull %sv_1, i32* nonnull %sv_3, i64* nonnull %sv_2) br label LBL_9 LBL_9: %27 = add i64 %sv_0.05.reload, 16 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = icmp eq i64 %29, 0 %31 = icmp eq i1 %30, false store i64 %29, i64* %sv_0.05.reg2mem br i1 %31, label LBL_6, label LBL_10 LBL_10: %32 = load i64, i64* %sv_2, align 8 %33 = inttoptr i64 %32 to i64* call void @free(i64* %33) %34 = load i32, i32* %sv_3, align 4 %35 = icmp ne i32 %34, 0 %36 = load i32, i32* bitcast (i64* @gv_1 to i32*), align 8 %37 = icmp eq i32 %36, 0 %or.cond = icmp eq i1 %35, %37 br i1 %or.cond, label LBL_13, label LBL_11 LBL_11: store i64 0, i64* %rax.0.reg2mem br i1 %37, label LBL_14, label LBL_12 LBL_12: %38 = zext i32 %34 to i64 %39 = icmp slt i32 %34, 2 store i64 %38, i64* %rax.0.reg2mem br i1 %39, label LBL_14, label LBL_13 LBL_13: %40 = call i32 @putchar(i32 10) %41 = sext i32 %40 to i64 store i64 %41, i64* %rax.0.reg2mem br label LBL_14 LBL_14: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i1 %37, { 1, 0 } uselistorder i32 %34, { 1, 0, 2 } uselistorder i64 %sv_0.05.reload, { 0, 2, 1 } uselistorder i32* %sv_3, { 1, 0, 2 } uselistorder i64* %sv_2, { 1, 0, 2 } uselistorder i64* %sv_1, { 2, 0, 3, 1 } uselistorder i64* %sv_0.05.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i1 false, { 1, 0, 2 } uselistorder i8 0, { 1, 0 } uselistorder i8* (i8*, i32)* @strrchr, { 1, 0 } uselistorder i32 0, { 0, 3, 2, 4, 1 } uselistorder i32 1, { 5, 4, 3, 2, 1, 0 } uselistorder label LBL_13, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
get_umr_flags_8999
get_umr_flags
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = mul i64 %arg1, 16 %1 = and i64 %0, 4294967280 ret i64 %1 }
0
BinRealVul
dtls1_add_cert_to_buf_8038
dtls1_add_cert_to_buf
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %1 = call i64 @FUNC(i64 %arg3, i64 0) %2 = add i64 %1, 3 %3 = and i64 %2, 4294967295 %4 = call i64 @FUNC(i64 %0, i64 %3) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = call i64 @FUNC(i64 1, i64 2) store i64 0, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %9 = add i64 %3, %0 store i64 %9, i64* %sv_0, align 8 %10 = and i64 %1, 4294967295 %11 = call i64 @FUNC(i64 %10, i64 %9) %12 = ptrtoint i64* %sv_0 to i64 %13 = call i64 @FUNC(i64 %arg3, i64 %12) %14 = mul i64 %1, 4294967296 %sext = add i64 %14, 12884901888 %15 = ashr exact i64 %sext, 32 %16 = add i64 %15, %12 store i64 %16, i64* %arg2, align 8 store i64 1, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 1, { 0, 3, 4, 2, 1 } uselistorder i64 (i64, i64)* @i2d_X509, { 1, 0 } }
0
BinRealVul
pipe_fcntl_11562
pipe_fcntl
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = icmp eq i64* %arg1, null %3 = icmp eq i1 %2, false store i64 -9, i64* %storemerge.reg2mem br i1 %3, label LBL_1, label LBL_8 LBL_1: %4 = ptrtoint i64* %arg1 to i64 %5 = add i64 %4, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = add i64 %7, 8 %9 = call i64 @FUNC(i64 %8) %10 = trunc i64 %arg2 to i32 store i64 -22, i64* %sv_0.0.reg2mem switch i32 %10, label LBL_7 [ i32 1, label LBL_2 i32 2, label LBL_6 ] LBL_2: %11 = call i64 @FUNC(i64 %arg3) %12 = trunc i64 %11 to i32 %13 = icmp ult i32 %12, 4096 store i64 -22, i64* %sv_0.0.reg2mem br i1 %13, label LBL_7, label LBL_3 LBL_3: %14 = call i64 @FUNC(i64 1) %15 = trunc i64 %14 to i32 %16 = icmp eq i32 %15, 0 %17 = icmp eq i1 %16, false br i1 %17, label LBL_5, label LBL_4 LBL_4: %18 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4 %19 = icmp ult i32 %18, %12 store i64 -1, i64* %sv_0.0.reg2mem br i1 %19, label LBL_7, label LBL_5 LBL_5: %20 = udiv i32 %12, 4096 %21 = zext i32 %20 to i64 %22 = call i64 @FUNC(i64 %4, i64 %21) store i64 %22, i64* %sv_0.0.reg2mem br label LBL_7 LBL_6: %23 = mul i64 %1, 4096 %24 = and i64 %23, 4294963200 store i64 %24, i64* %sv_0.0.reg2mem br label LBL_7 LBL_7: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %25 = load i64, i64* %6, align 8 %26 = add i64 %25, 8 %27 = call i64 @FUNC(i64 %26) store i64 %sv_0.0.reload, i64* %storemerge.reg2mem br label LBL_8 LBL_8: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %12, { 1, 2, 0 } uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 4, 2, 5, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32 4096, { 1, 0 } uselistorder i64 -22, { 1, 0 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_7, { 3, 4, 1, 2, 0 } }
1
BinRealVul
matchExpression_17952
matchExpression
define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.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 store i64 0, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_10 LBL_1: %5 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %6 = ashr exact i64 %sext, 32 %7 = ptrtoint i8* %arg3 to i64 %8 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 0) %9 = and i64 %6, 4294967295 store i64 %9, i64* @0, align 8 %trunc = trunc i64 %6 to i32 store i64 0, i64* %rax.0.reg2mem switch i32 %trunc, label LBL_10 [ 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_2: %10 = add i64 %5, 8 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = call i64 @FUNC(i64 %12, i64 %8) store i64 %13, i64* %rax.0.reg2mem br label LBL_10 LBL_3: %14 = add i64 %5, 8 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = call i64 @FUNC(i64 %16, i64 %8) %18 = urem i64 %17, 256 %19 = icmp eq i64 %18, 0 %20 = zext i1 %19 to i64 store i64 %20, i64* %rax.0.reg2mem br label LBL_10 LBL_4: %21 = add i64 %5, 8 %22 = inttoptr i64 %21 to i64* %23 = load i64, i64* %22, align 8 %24 = call i64 @FUNC(i64 %23, i64 %8) %25 = icmp slt i64 %24, 0 %26 = zext i1 %25 to i64 store i64 %26, i64* %rax.0.reg2mem br label LBL_10 LBL_5: %27 = add i64 %5, 8 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = call i64 @FUNC(i64 %29, i64 %8) %31 = trunc i64 %30 to i32 %32 = icmp slt i32 %31, 1 %33 = zext i1 %32 to i64 %34 = and i64 %30, -256 %35 = or i64 %34, %33 store i64 %35, i64* %rax.0.reg2mem br label LBL_10 LBL_6: %36 = add i64 %5, 8 %37 = inttoptr i64 %36 to i64* %38 = load i64, i64* %37, align 8 %39 = call i64 @FUNC(i64 %38, i64 %8) %40 = trunc i64 %39 to i32 %41 = icmp eq i32 %40, 0 %42 = icmp slt i32 %40, 0 %43 = icmp eq i1 %42, false %44 = icmp eq i1 %41, false %45 = icmp eq i1 %43, %44 %46 = zext i1 %45 to i64 %47 = and i64 %39, -256 %48 = or i64 %47, %46 store i64 %48, i64* %rax.0.reg2mem br label LBL_10 LBL_7: %49 = add i64 %5, 8 %50 = inttoptr i64 %49 to i64* %51 = load i64, i64* %50, align 8 %52 = call i64 @FUNC(i64 %51, i64 %8) %53 = icmp sgt i64 %52, -1 %54 = zext i1 %53 to i64 store i64 %54, i64* %rax.0.reg2mem br label LBL_10 LBL_8: %55 = add i64 %5, 8 %56 = inttoptr i64 %55 to i64* %57 = load i64, i64* %56, align 8 %58 = call i64 @FUNC(i64 %57, i64 %8) %59 = trunc i64 %58 to i32 %60 = icmp eq i32 %59, 0 %61 = icmp eq i1 %60, false %62 = zext i1 %61 to i64 %63 = and i64 %58, -256 %64 = or i64 %63, %62 store i64 %64, i64* %rax.0.reg2mem br label LBL_10 LBL_9: %65 = add i64 %5, 8 %66 = inttoptr i64 %65 to i64* %67 = load i64, i64* %66, align 8 %68 = call i64 @FUNC(i64 %67, i64 %8) %69 = trunc i64 %68 to i32 %70 = icmp eq i32 %69, 0 %71 = zext i1 %70 to i64 %72 = and i64 %68, -256 %73 = or i64 %72, %71 store i64 %73, 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 %68, { 1, 0 } uselistorder i64 %58, { 1, 0 } uselistorder i32 %40, { 1, 0 } uselistorder i64 %39, { 1, 0 } uselistorder i64 %30, { 1, 0 } uselistorder i64 %8, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 %6, { 1, 0 } uselistorder i64 %5, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 10, 9, 8, 7, 6, 5, 4, 3, 1, 2 } uselistorder i64 (i64, i64)* @scontains, { 1, 0 } uselistorder i64 (i64, i64)* @scmp, { 3, 2, 1, 0 } uselistorder i64 (i64, i64)* @smatch, { 1, 0 } uselistorder i1 false, { 1, 2, 0, 3, 4, 5, 6 } uselistorder label LBL_10, { 2, 3, 4, 5, 6, 7, 8, 9, 0, 1 } }
1
BinRealVul
snifflink_3895
snifflink
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0 = alloca i64, align 8 %0 = icmp eq i64 %arg1, 0 br i1 %0, label LBL_5, label LBL_1 LBL_1: %1 = inttoptr i64 %arg1 to i8* %2 = bitcast i64* %sv_0 to i8* %3 = call i32 @readlink(i8* %1, i8* nonnull %2, i32 4096) %4 = icmp eq i32 %3, -1 %5 = icmp eq i1 %4, false br i1 %5, label LBL_4, label LBL_2 LBL_2: %6 = call i32* @__errno_location() %7 = load i32, i32* %6, align 4 %8 = icmp eq i32 %7, 22 store i64 22, i64* %rax.0.reg2mem br i1 %8, label LBL_5, label LBL_3 LBL_3: %9 = call i32* @__errno_location() %10 = load i32, i32* %9, align 4 %11 = call i8* @strerror(i32 %10) %12 = call i32* @__errno_location() %13 = load i32, i32* %12, align 4 %14 = load i8*, i8** @gv_0, align 8 %15 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %16 = zext i32 %13 to i64 %17 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %15, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_2, i64 0, i64 0), i8* %14, i8* %1, i64 %16, i8* %11) call void @exit(i32 1) unreachable LBL_4: %18 = ptrtoint i64* %arg2 to i64 %19 = call i8* @strdup(i8* nonnull %2) %20 = ptrtoint i8* %19 to i64 store i64 %20, i64* %arg2, align 8 store i64 %18, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } uselistorder i32* ()* @__errno_location, { 2, 0, 1 } uselistorder label LBL_5, { 2, 0, 1 } }
0
BinRealVul
get_malloc_leak_info_3954
get_malloc_leak_info
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i64* %arg5) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %sv_1.011.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %rdx.0.lcssa.reg2mem = alloca i64 %sv_2.0.lcssa.reg2mem = alloca i32 %sv_2.015.reg2mem = alloca i32 %storemerge316.reg2mem = alloca i64 %sv_2.118.reg2mem = alloca i32 %rdx.119.reg2mem = alloca i64 %indvars.iv21.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, null %1 = icmp eq i64* %arg2, null %or.cond = or i1 %0, %1 %2 = icmp eq i64* %arg3, null %or.cond6 = or i1 %or.cond, %2 %3 = icmp eq i64* %arg4, null %or.cond8 = or i1 %or.cond6, %3 %4 = icmp eq i64* %arg5, null %or.cond10 = or i1 %or.cond8, %4 br i1 %or.cond10, label LBL_15, label LBL_1 LBL_1: %5 = call i32 @pthread_mutex_lock(i64* nonnull @gv_0) %6 = load i32, i32* @gv_1, align 4 %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false br i1 %8, label LBL_3, label LBL_2 LBL_2: store i64 0, i64* %arg1, align 8 store i64 0, i64* %arg2, align 8 store i64 0, i64* %arg3, align 8 store i64 0, i64* %arg4, align 8 store i64 0, i64* %arg5, align 8 br label LBL_14 LBL_3: %9 = ptrtoint i64* %arg4 to i64 %10 = ptrtoint i64* %arg3 to i64 %11 = ptrtoint i64* %arg2 to i64 %12 = sext i32 %6 to i64 %13 = mul i64 %12, 8 %14 = call i64 @FUNC(i64 %13) store i64 0, i64* %indvars.iv21.reg2mem store i64 %10, i64* %rdx.119.reg2mem store i32 0, i32* %sv_2.118.reg2mem br label LBL_4 LBL_4: %sv_2.118.reload = load i32, i32* %sv_2.118.reg2mem %rdx.119.reload = load i64, i64* %rdx.119.reg2mem %indvars.iv21.reload = load i64, i64* %indvars.iv21.reg2mem %15 = mul i64 %indvars.iv21.reload, 8 %16 = add i64 %15, ptrtoint (i64* @gv_2 to i64) %storemerge3.in13 = inttoptr i64 %16 to i64* %storemerge314 = load i64, i64* %storemerge3.in13, align 8 %17 = icmp eq i64 %storemerge314, 0 %18 = icmp eq i1 %17, false store i64 %storemerge314, i64* %storemerge316.reg2mem store i32 %sv_2.118.reload, i32* %sv_2.015.reg2mem store i32 %sv_2.118.reload, i32* %sv_2.0.lcssa.reg2mem store i64 %rdx.119.reload, i64* %rdx.0.lcssa.reg2mem br i1 %18, label LBL_5, label LBL_6 LBL_5: %sv_2.015.reload = load i32, i32* %sv_2.015.reg2mem %storemerge316.reload = load i64, i64* %storemerge316.reg2mem %19 = sext i32 %sv_2.015.reload to i64 %20 = mul i64 %19, 8 %21 = add i64 %20, %14 %22 = inttoptr i64 %21 to i64* store i64 %storemerge316.reload, i64* %22, align 8 store i64 %9, i64* %arg4, align 8 %23 = add i32 %sv_2.015.reload, 1 %24 = add i64 %storemerge316.reload, 16 %storemerge3.in = inttoptr i64 %24 to i64* %storemerge3 = load i64, i64* %storemerge3.in, align 8 %25 = icmp eq i64 %storemerge3, 0 %26 = icmp eq i1 %25, false store i64 %storemerge3, i64* %storemerge316.reg2mem store i32 %23, i32* %sv_2.015.reg2mem store i32 %23, i32* %sv_2.0.lcssa.reg2mem store i64 %9, i64* %rdx.0.lcssa.reg2mem br i1 %26, label LBL_5, label LBL_6 LBL_6: %rdx.0.lcssa.reload = load i64, i64* %rdx.0.lcssa.reg2mem %sv_2.0.lcssa.reload = load i32, i32* %sv_2.0.lcssa.reg2mem %indvars.iv.next22 = add nuw nsw i64 %indvars.iv21.reload, 1 %exitcond23 = icmp eq i64 %indvars.iv.next22, 1024 store i64 %indvars.iv.next22, i64* %indvars.iv21.reg2mem store i64 %rdx.0.lcssa.reload, i64* %rdx.119.reg2mem store i32 %sv_2.0.lcssa.reload, i32* %sv_2.118.reg2mem br i1 %exitcond23, label LBL_7, label LBL_4 LBL_7: store i64 96, i64* %arg3, align 8 %27 = load i32, i32* @gv_1, align 4 %28 = sext i32 %27 to i64 %29 = mul i64 %rdx.0.lcssa.reload, %28 store i64 %29, i64* %arg2, align 8 store i64 10, i64* %arg5, align 8 %30 = call i64 @FUNC(i64 %11) store i64 %30, i64* %arg1, align 8 %31 = load i32, i32* @gv_1, align 4 %32 = inttoptr i64 %14 to i64* call void @qsort(i64* %32, i32 %31, i32 8, i32 (i64*, i64*)* inttoptr (i64 4198843 to i32 (i64*, i64*)*)) %33 = load i32, i32* @gv_1, align 4 %34 = icmp sgt i32 %33, 0 br i1 %34, label LBL_8, label LBL_13 LBL_8: %wide.trip.count = zext i32 %33 to i64 store i64 0, i64* %indvars.iv.reg2mem store i64 %14, i64* %sv_1.011.reg2mem br label LBL_9 LBL_9: %sv_1.011.reload = load i64, i64* %sv_1.011.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %35 = mul i64 %indvars.iv.reload, 8 %36 = add i64 %35, %14 %37 = inttoptr i64 %36 to i64* %38 = load i64, i64* %37, align 8 %39 = add i64 %38, 12 %40 = inttoptr i64 %39 to i32* %41 = load i32, i32* %40, align 4 %42 = sext i32 %41 to i64 %43 = mul i64 %42, 8 %44 = add nsw i64 %43, 16 %45 = icmp ult i64 %44, %35 %46 = icmp eq i1 %45, false br i1 %46, label LBL_11, label LBL_10 LBL_10: %47 = trunc i64 %44 to i32 %sext = mul i64 %44, 4294967296 %48 = ashr exact i64 %sext, 32 %49 = add i64 %48, %sv_1.011.reload %50 = inttoptr i64 %49 to i64* %51 = trunc i64 %35 to i32 %52 = sub i32 %51, %47 %53 = call i64* @memset(i64* %50, i32 0, i32 %52) store i32 %47, i32* %sv_0.0.reg2mem br label LBL_12 LBL_11: %54 = trunc i64 %35 to i32 store i32 %54, i32* %sv_0.0.reg2mem br label LBL_12 LBL_12: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %55 = sext i32 %sv_0.0.reload to i64 %56 = inttoptr i64 %sv_1.011.reload to i64* %57 = inttoptr i64 %38 to i64* %58 = call i64* @memcpy(i64* %56, i64* %57, i32 %sv_0.0.reload) %59 = add i64 %sv_1.011.reload, %55 %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 %59, i64* %sv_1.011.reg2mem br i1 %exitcond, label LBL_13, label LBL_9 LBL_13: %60 = call i64 @FUNC(i64 %14) br label LBL_14 LBL_14: %61 = call i32 @pthread_mutex_unlock(i64* nonnull @gv_0) %62 = sext i32 %61 to i64 store i64 %62, 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 %44, { 0, 2, 1 } uselistorder i64 %35, { 2, 1, 0, 3 } uselistorder i64 %sv_1.011.reload, { 2, 0, 1 } uselistorder i64 %14, { 3, 1, 0, 4, 2 } uselistorder i64* %indvars.iv21.reg2mem, { 1, 0, 2 } uselistorder i64* %rdx.119.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_2.118.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge316.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_2.015.reg2mem, { 2, 0, 1 } uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.011.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64 1, { 1, 0 } uselistorder i64 (i64)* @dlmalloc, { 1, 0 } uselistorder i1 false, { 1, 2, 0, 3 } uselistorder i32 0, { 2, 1, 0, 4, 3 } uselistorder i32* @gv_1, { 3, 2, 1, 0 } uselistorder i64* %arg4, { 0, 3, 1, 2 } uselistorder i64* %arg3, { 0, 3, 1, 2 } uselistorder i64* %arg2, { 0, 3, 1, 2 } uselistorder label LBL_15, { 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_5, { 1, 0 } }
0
BinRealVul
bdrv_invalidate_cache_all_16810
bdrv_invalidate_cache_all
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 store i64 0, i64* %sv_2, align 8 store i64 0, i64* %sv_0.0.reg2mem br label LBL_3 LBL_1: %1 = load i64, i64* %sv_1, align 8 %2 = call i64 @FUNC(i64 %1) %3 = call i64 @FUNC(i64 %2) %4 = load i64, i64* %sv_1, align 8 %5 = call i64 @FUNC(i64 %4, i64* nonnull %sv_2) %6 = call i64 @FUNC(i64 %2) %7 = load i64, i64* %sv_2, align 8 %8 = icmp eq i64 %7, 0 store i64 %10, i64* %sv_0.0.reg2mem br i1 %8, label LBL_3, label LBL_2 LBL_2: %9 = call i64 @FUNC(i64 %0, i64 %7) store i64 %9, i64* %rax.0.reg2mem br label LBL_4 LBL_3: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %10 = call i64 @FUNC(i64 %sv_0.0.reload, i64* nonnull %sv_1) %11 = icmp eq i64 %10, 0 %12 = icmp eq i1 %11, false store i64 %10, i64* %rax.0.reg2mem br i1 %12, label LBL_1, label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %10, { 0, 2, 1 } uselistorder i64* %sv_2, { 1, 0, 2 } }
1
BinRealVul
tee_obj_alloc_5972
tee_obj_alloc
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = call i64 @FUNC(i64 0, i64 0) ret i64 %0 }
0
BinRealVul
celt_search_for_dual_stereo_17175
celt_search_for_dual_stereo
define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %sv_0 = alloca i32, align 4 %sv_1 = alloca i32, align 4 %sv_2 = alloca i64, align 8 store i32 0, i32* %arg2, align 4 %3 = ptrtoint i32* %arg2 to i64 %4 = bitcast i32* %sv_1 to i64* %5 = call i64 @FUNC(i64 %2, i64 %3, i64* nonnull %4) store i32 1, i32* %arg2, align 4 %6 = bitcast i32* %sv_0 to i64* %7 = call i64 @FUNC(i64 %2, i64 %3, i64* nonnull %6) %8 = load i32, i32* %sv_0, align 4 %9 = call i128 @__asm_movss.1(i32 %8) %10 = load i32, i32* %sv_1, align 4 %11 = call i128 @__asm_movss.1(i32 %10) call void @FUNC(i128 %11, i128 %9) %12 = icmp ule i64* %sv_2, inttoptr (i64 32 to i64*) %13 = icmp ne i1 %12, true %14 = zext i1 %13 to i32 store i32 %14, i32* %arg2, align 4 %15 = trunc i64 %1 to i32 %16 = load i32, i32* %sv_0, align 4 %17 = call i128 @__asm_movss.1(i32 %16) %18 = load i32, i32* %sv_1, align 4 %19 = call i128 @__asm_movss.1(i32 %18) call void @FUNC(i128 %19, i128 %17) %20 = add i32 %14, %15 store i32 %20, i32* %arg1, align 4 ret i64 %2 uselistorder i32* %sv_1, { 1, 0, 2 } uselistorder i32* %sv_0, { 1, 0, 2 } uselistorder i64 (i64, i64, i64*)* @bands_dist, { 1, 0 } }
1
BinRealVul
compute_default_clut_16217
compute_default_clut
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i1 %rax.0.lcssa.reg2mem = alloca i64 %storemerge20.reg2mem = alloca i32 %storemerge3.lcssa.reg2mem = alloca i32 %sv_0.226.reg2mem = alloca i32 %sv_1.227.reg2mem = alloca i32 %indvars.iv36.reg2mem = alloca i64 %sv_1.1.lcssa.reg2mem = alloca i32 %sv_0.1.lcssa.reg2mem = alloca i32 %indvars.iv.next37.pre-phi.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %storemerge7.reg2mem = alloca i32 %storemerge8.reg2mem = alloca i32 %storemerge9.reg2mem = alloca i32 %storemerge10.reg2mem = alloca i32 %sv_0.121.reg2mem = alloca i32 %sv_1.122.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 %storemerge332.reg2mem = alloca i32 %indvars.iv40.reg2mem = alloca i64 %.pre-phi54.reg2mem = alloca i64* %.pre-phi56.reg2mem = alloca i64 %.pre-phi58.reg2mem = alloca i64 %wide.trip.count.pre-phi.reg2mem = alloca i64 %wide.trip.count38.pre-phi.reg2mem = alloca i64 %indvars.iv46.reg2mem = alloca i64 %indvars.iv.next47.pre-phi.reg2mem = alloca i64 %storemerge14.reg2mem = alloca i32 %storemerge15.reg2mem = alloca i32 %storemerge16.reg2mem = alloca i32 %storemerge17.reg2mem = alloca i32 %indvars.iv42.reg2mem = alloca i64 %1 = load i1, i1* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %sv_4 = alloca i64, align 8 %3 = ptrtoint i64* %sv_4 to i64 %sext = mul i64 %arg2, 4294967296 %4 = ashr exact i64 %sext, 32 %5 = bitcast i64* %sv_3 to i8* call void @FUNC(i8* nonnull %5, i64 0, i64 128) %6 = select i1 %1, i64 -1024, i64 1024 %7 = icmp sgt i32 %arg3, 0 %8 = trunc i64 %4 to i32 br i1 %7, label LBL_2, label LBL_0.LBL_16_crit_edge LBL_1: %.pre51 = add i64 %2, 8 %.pre53 = inttoptr i64 %.pre51 to i64* %.pre55 = sext i32 %arg3 to i64 %.pre57 = add i64 %3, -1616 %.pre67 = and i64 %4, 4294967295 %.pre68 = zext i32 %arg3 to i64 store i64 %.pre68, i64* %wide.trip.count38.pre-phi.reg2mem store i64 %.pre67, i64* %wide.trip.count.pre-phi.reg2mem store i64 %.pre57, i64* %.pre-phi58.reg2mem store i64 %.pre55, i64* %.pre-phi56.reg2mem store i64* %.pre53, i64** %.pre-phi54.reg2mem br label LBL_16 LBL_2: %9 = ptrtoint i64* %sv_3 to i64 %10 = add i64 %6, %9 %11 = icmp sgt i32 %8, 0 %12 = add i64 %2, 8 %13 = inttoptr i64 %12 to i64* %14 = sext i32 %arg3 to i64 %15 = add i64 %3, -1616 %wide.trip.count44 = and i64 %4, 4294967295 %wide.trip.count48 = zext i32 %arg3 to i64 store i64 0, i64* %indvars.iv46.reg2mem br label LBL_13 LBL_3: %indvars.iv42.reload = load i64, i64* %indvars.iv42.reg2mem %16 = load i64, i64* %13, align 8 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = mul i32 %18, %87 %20 = trunc i64 %indvars.iv42.reload to i32 %21 = add i32 %19, %20 %22 = sext i32 %21 to i64 %23 = add i64 %10, %22 %24 = inttoptr i64 %23 to i8* %25 = load i8, i8* %24, align 1 %26 = icmp eq i64 %indvars.iv42.reload, 0 store i32 0, i32* %storemerge17.reg2mem br i1 %26, label LBL_5, label LBL_4 LBL_4: %27 = add i32 %21, -1 %28 = sext i32 %27 to i64 %29 = add i64 %10, %28 %30 = inttoptr i64 %29 to i8* %31 = load i8, i8* %30, align 1 %32 = zext i8 %31 to i32 %33 = add nuw nsw i32 %32, 1 store i32 %33, i32* %storemerge17.reg2mem br label LBL_5 LBL_5: %storemerge17.reload = load i32, i32* %storemerge17.reg2mem %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42.reload, 1 %34 = icmp sgt i64 %4, %indvars.iv.next43 store i32 0, i32* %storemerge16.reg2mem br i1 %34, label LBL_6, label LBL_7 LBL_6: %35 = trunc i64 %indvars.iv.next43 to i32 %36 = add i32 %19, %35 %37 = sext i32 %36 to i64 %38 = add i64 %10, %37 %39 = inttoptr i64 %38 to i8* %40 = load i8, i8* %39, align 1 %41 = zext i8 %40 to i32 %42 = add nuw nsw i32 %41, 1 store i32 %42, i32* %storemerge16.reg2mem br label LBL_7 LBL_7: %storemerge16.reload = load i32, i32* %storemerge16.reg2mem store i32 0, i32* %storemerge15.reg2mem br i1 %84, label LBL_9, label LBL_8 LBL_8: %43 = mul i32 %18, %88 %44 = add i32 %43, %20 %45 = sext i32 %44 to i64 %46 = add i64 %10, %45 %47 = inttoptr i64 %46 to i8* %48 = load i8, i8* %47, align 1 %49 = zext i8 %48 to i32 %50 = add nuw nsw i32 %49, 1 store i32 %50, i32* %storemerge15.reg2mem br label LBL_9 LBL_9: %storemerge15.reload = load i32, i32* %storemerge15.reg2mem store i32 0, i32* %storemerge14.reg2mem br i1 %86, label LBL_10, label LBL_11 LBL_10: %51 = mul i32 %18, %89 %52 = add i32 %51, %20 %53 = sext i32 %52 to i64 %54 = add i64 %10, %53 %55 = inttoptr i64 %54 to i8* %56 = load i8, i8* %55, align 1 %57 = zext i8 %56 to i32 %58 = add nuw nsw i32 %57, 1 store i32 %58, i32* %storemerge14.reg2mem br label LBL_11 LBL_11: %59 = zext i8 %25 to i32 %60 = add nuw nsw i32 %59, 1 %storemerge14.reload = load i32, i32* %storemerge14.reg2mem %61 = zext i8 %25 to i64 %62 = mul i64 %61, 4 %63 = add i64 %62, %15 %64 = inttoptr i64 %63 to i32* %65 = load i32, i32* %64, align 4 %66 = icmp eq i32 %60, %storemerge17.reload %67 = icmp eq i1 %66, false %68 = icmp eq i32 %60, %storemerge16.reload %69 = icmp eq i1 %68, false %70 = zext i1 %67 to i64 %71 = zext i1 %69 to i64 %72 = add nuw nsw i64 %71, %70 %73 = icmp eq i32 %60, %storemerge15.reload %74 = icmp eq i1 %73, false %75 = zext i1 %74 to i64 %76 = add nuw nsw i64 %72, %75 %77 = icmp eq i32 %60, %storemerge14.reload %78 = icmp eq i1 %77, false %79 = sext i1 %78 to i64 %80 = icmp eq i64 %76, %79 %81 = icmp eq i1 %80, false %82 = zext i1 %81 to i32 %83 = add i32 %65, %82 store i32 %83, i32* %64, align 4 %exitcond45 = icmp eq i64 %indvars.iv.next43, %wide.trip.count44 store i64 %indvars.iv.next43, i64* %indvars.iv42.reg2mem store i64 %85, i64* %indvars.iv.next47.pre-phi.reg2mem br i1 %exitcond45, label LBL_12, label LBL_3 LBL_12: %indvars.iv.next47.pre-phi.reload = load i64, i64* %indvars.iv.next47.pre-phi.reg2mem %exitcond49 = icmp eq i64 %indvars.iv.next47.pre-phi.reload, %wide.trip.count48 store i64 %indvars.iv.next47.pre-phi.reload, i64* %indvars.iv46.reg2mem store i64 %wide.trip.count48, i64* %wide.trip.count38.pre-phi.reg2mem store i64 %wide.trip.count44, i64* %wide.trip.count.pre-phi.reg2mem store i64 %15, i64* %.pre-phi58.reg2mem store i64 %14, i64* %.pre-phi56.reg2mem store i64* %13, i64** %.pre-phi54.reg2mem br i1 %exitcond49, label LBL_16, label LBL_13 LBL_13: %indvars.iv46.reload = load i64, i64* %indvars.iv46.reg2mem br i1 %11, label LBL_3.lr.ph, label LBL_13.LBL_12_crit_edge LBL_14: %.pre = add nuw nsw i64 %indvars.iv46.reload, 1 store i64 %.pre, i64* %indvars.iv.next47.pre-phi.reg2mem br label LBL_12 LBL_15: %84 = icmp eq i64 %indvars.iv46.reload, 0 %85 = add nuw nsw i64 %indvars.iv46.reload, 1 %86 = icmp slt i64 %85, %14 %87 = trunc i64 %indvars.iv46.reload to i32 %88 = add i32 %87, -1 %89 = trunc i64 %85 to i32 store i64 0, i64* %indvars.iv42.reg2mem br label LBL_3 LBL_16: %.pre-phi54.reload = load i64*, i64** %.pre-phi54.reg2mem %.pre-phi56.reload = load i64, i64* %.pre-phi56.reg2mem %.pre-phi58.reload = load i64, i64* %.pre-phi58.reg2mem %wide.trip.count.pre-phi.reload = load i64, i64* %wide.trip.count.pre-phi.reg2mem %wide.trip.count38.pre-phi.reload = load i64, i64* %wide.trip.count38.pre-phi.reg2mem %90 = ptrtoint i64* %sv_2 to i64 %91 = bitcast i64* %sv_2 to i8* %92 = add i64 %6, %90 %93 = icmp sgt i32 %8, 0 %94 = add i64 %3, -336 %95 = add i64 %3, -592 %96 = add i64 %3, -2640 store i64 0, i64* %indvars.iv40.reg2mem store i32 0, i32* %storemerge332.reg2mem br label LBL_17 LBL_17: %storemerge332.reload = load i32, i32* %storemerge332.reg2mem %indvars.iv40.reload = load i64, i64* %indvars.iv40.reg2mem call void @FUNC(i8* nonnull %91, i64 0, i64 128) store i64 0, i64* %indvars.iv36.reg2mem store i32 0, i32* %sv_1.227.reg2mem store i32 0, i32* %sv_0.226.reg2mem store i64 4294967295, i64* %rax.0.lcssa.reg2mem br i1 %7, label LBL_30, label LBL_38 LBL_18: %sv_0.121.reload = load i32, i32* %sv_0.121.reg2mem %sv_1.122.reload = load i32, i32* %sv_1.122.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %97 = load i64, i64* %.pre-phi54.reload, align 8 %98 = inttoptr i64 %97 to i32* %99 = load i32, i32* %98, align 4 %100 = mul i32 %99, %179 %101 = trunc i64 %indvars.iv.reload to i32 %102 = add i32 %100, %101 %103 = sext i32 %102 to i64 %104 = add i64 %92, %103 %105 = inttoptr i64 %104 to i8* %106 = load i8, i8* %105, align 1 %107 = zext i8 %106 to i64 %108 = add i64 %94, %107 %109 = inttoptr i64 %108 to i8* %110 = load i8, i8* %109, align 1 %111 = icmp eq i64 %indvars.iv.reload, 0 store i32 1, i32* %storemerge10.reg2mem br i1 %111, label LBL_20, label LBL_19 LBL_19: %112 = add i32 %102, -1 %113 = sext i32 %112 to i64 %114 = add i64 %92, %113 %115 = inttoptr i64 %114 to i8* %116 = load i8, i8* %115, align 1 %117 = zext i8 %116 to i64 %118 = add i64 %94, %117 %119 = inttoptr i64 %118 to i8* %120 = load i8, i8* %119, align 1 %121 = zext i8 %120 to i32 store i32 %121, i32* %storemerge10.reg2mem br label LBL_20 LBL_20: %storemerge10.reload = load i32, i32* %storemerge10.reg2mem %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %122 = icmp sgt i64 %4, %indvars.iv.next store i32 1, i32* %storemerge9.reg2mem br i1 %122, label LBL_21, label LBL_22 LBL_21: %123 = trunc i64 %indvars.iv.next to i32 %124 = add i32 %100, %123 %125 = sext i32 %124 to i64 %126 = add i64 %92, %125 %127 = inttoptr i64 %126 to i8* %128 = load i8, i8* %127, align 1 %129 = zext i8 %128 to i64 %130 = add i64 %94, %129 %131 = inttoptr i64 %130 to i8* %132 = load i8, i8* %131, align 1 %133 = zext i8 %132 to i32 store i32 %133, i32* %storemerge9.reg2mem br label LBL_22 LBL_22: %storemerge9.reload = load i32, i32* %storemerge9.reg2mem store i32 1, i32* %storemerge8.reg2mem br i1 %176, label LBL_24, label LBL_23 LBL_23: %134 = mul i32 %99, %180 %135 = add i32 %134, %101 %136 = sext i32 %135 to i64 %137 = add i64 %92, %136 %138 = inttoptr i64 %137 to i8* %139 = load i8, i8* %138, align 1 %140 = zext i8 %139 to i64 %141 = add i64 %94, %140 %142 = inttoptr i64 %141 to i8* %143 = load i8, i8* %142, align 1 %144 = zext i8 %143 to i32 store i32 %144, i32* %storemerge8.reg2mem br label LBL_24 LBL_24: %storemerge8.reload = load i32, i32* %storemerge8.reg2mem store i32 1, i32* %storemerge7.reg2mem br i1 %178, label LBL_25, label LBL_26 LBL_25: %145 = mul i32 %99, %181 %146 = add i32 %145, %101 %147 = sext i32 %146 to i64 %148 = add i64 %92, %147 %149 = inttoptr i64 %148 to i8* %150 = load i8, i8* %149, align 1 %151 = zext i8 %150 to i64 %152 = add i64 %94, %151 %153 = inttoptr i64 %152 to i8* %154 = load i8, i8* %153, align 1 %155 = zext i8 %154 to i32 store i32 %155, i32* %storemerge7.reg2mem br label LBL_26 LBL_26: %156 = icmp eq i8 %110, 0 %157 = icmp eq i1 %156, false store i32 %sv_0.121.reload, i32* %sv_0.0.reg2mem store i32 %sv_1.122.reload, i32* %sv_1.0.reg2mem br i1 %157, label LBL_28, label LBL_27 LBL_27: %158 = zext i8 %106 to i32 %storemerge7.reload = load i32, i32* %storemerge7.reg2mem %159 = mul i64 %107, 4 %160 = add i64 %96, %159 %161 = inttoptr i64 %160 to i32* %162 = load i32, i32* %161, align 4 %163 = add nuw nsw i32 %storemerge9.reload, %storemerge10.reload %164 = add nuw nsw i32 %163, %storemerge8.reload %165 = add nuw nsw i32 %164, %storemerge7.reload %166 = add i32 %165, %162 store i32 %166, i32* %161, align 4 %167 = sext i32 %166 to i64 %168 = mul i64 %167, 1024 %169 = add i64 %159, %.pre-phi58.reload %170 = inttoptr i64 %169 to i32* %171 = load i32, i32* %170, align 4 %172 = sext i32 %171 to i64 %173 = udiv i64 %168, %172 %174 = trunc i64 %173 to i32 %175 = icmp slt i32 %sv_0.121.reload, %174 %spec.select = select i1 %175, i32 %174, i32 %sv_0.121.reload %spec.select18 = select i1 %175, i32 %158, i32 %sv_1.122.reload store i32 %spec.select, i32* %sv_0.0.reg2mem store i32 %spec.select18, i32* %sv_1.0.reg2mem br label LBL_28 LBL_28: %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count.pre-phi.reload store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.122.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.121.reg2mem store i64 %177, i64* %indvars.iv.next37.pre-phi.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.1.lcssa.reg2mem br i1 %exitcond, label LBL_29, label LBL_18 LBL_29: %sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem %sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem %indvars.iv.next37.pre-phi.reload = load i64, i64* %indvars.iv.next37.pre-phi.reg2mem %exitcond39 = icmp eq i64 %indvars.iv.next37.pre-phi.reload, %wide.trip.count38.pre-phi.reload store i64 %indvars.iv.next37.pre-phi.reload, i64* %indvars.iv36.reg2mem store i32 %sv_1.1.lcssa.reload, i32* %sv_1.227.reg2mem store i32 %sv_0.1.lcssa.reload, i32* %sv_0.226.reg2mem br i1 %exitcond39, label LBL_33, label LBL_30 LBL_30: %sv_0.226.reload = load i32, i32* %sv_0.226.reg2mem %sv_1.227.reload = load i32, i32* %sv_1.227.reg2mem %indvars.iv36.reload = load i64, i64* %indvars.iv36.reg2mem br i1 %93, label LBL_18.lr.ph, label LBL_30.LBL_29_crit_edge LBL_31: %.pre59 = add nuw nsw i64 %indvars.iv36.reload, 1 store i64 %.pre59, i64* %indvars.iv.next37.pre-phi.reg2mem store i32 %sv_0.226.reload, i32* %sv_0.1.lcssa.reg2mem store i32 %sv_1.227.reload, i32* %sv_1.1.lcssa.reg2mem br label LBL_29 LBL_32: %176 = icmp eq i64 %indvars.iv36.reload, 0 %177 = add nuw nsw i64 %indvars.iv36.reload, 1 %178 = icmp sgt i64 %.pre-phi56.reload, %177 %179 = trunc i64 %indvars.iv36.reload to i32 %180 = add i32 %179, -1 %181 = trunc i64 %177 to i32 store i64 0, i64* %indvars.iv.reg2mem store i32 %sv_1.227.reload, i32* %sv_1.122.reg2mem store i32 %sv_0.226.reload, i32* %sv_0.121.reg2mem br label LBL_18 LBL_33: %182 = icmp eq i32 %sv_0.1.lcssa.reload, 0 br i1 %182, label LBL_35, label LBL_34 LBL_34: %183 = sext i32 %sv_1.1.lcssa.reload to i64 %184 = add i64 %94, %183 %185 = inttoptr i64 %184 to i8* store i8 1, i8* %185, align 1 %186 = trunc i32 %sv_1.1.lcssa.reload to i8 %187 = add i64 %indvars.iv40.reload, %95 %188 = inttoptr i64 %187 to i8* store i8 %186, i8* %188, align 1 %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40.reload, 1 %189 = add nuw nsw i32 %storemerge332.reload, 1 %190 = icmp ult i64 %indvars.iv.next41, 256 store i64 %indvars.iv.next41, i64* %indvars.iv40.reg2mem store i32 %189, i32* %storemerge332.reg2mem store i32 %189, i32* %storemerge3.lcssa.reg2mem br i1 %190, label LBL_17, label LBL_36 LBL_35: %191 = trunc i64 %indvars.iv40.reload to i32 store i32 %191, i32* %storemerge3.lcssa.reg2mem br label LBL_36 LBL_36: %storemerge3.lcssa.reload = load i32, i32* %storemerge3.lcssa.reg2mem %192 = add i32 %storemerge3.lcssa.reload, -1 %193 = zext i32 %192 to i64 %194 = icmp slt i32 %192, 0 %195 = icmp eq i1 %194, false store i32 %192, i32* %storemerge20.reg2mem store i64 %193, i64* %rax.0.lcssa.reg2mem br i1 %195, label LBL_37, label LBL_38 LBL_37: %storemerge20.reload = load i32, i32* %storemerge20.reg2mem %196 = mul i32 %storemerge20.reload, 255 %197 = ashr i32 %196, 31 %198 = zext i32 %196 to i64 %199 = zext i32 %197 to i64 %200 = mul i64 %199, 4294967296 %201 = or i64 %200, %198 %202 = sdiv i64 %201, %193 %203 = trunc i64 %202 to i32 %204 = icmp slt i32 %203, 0 %205 = zext i1 %204 to i32 %206 = add i32 %205, %203 %207 = ashr i32 %206, 1 %208 = zext i32 %207 to i64 %209 = and i64 %202, 4294967295 %210 = call i64 @FUNC(i64 %208, i64 %209, i64 %208, i64 %209) %211 = add nuw nsw i64 %208, 8 %212 = inttoptr i64 %211 to i64* %213 = load i64, i64* %212, align 8 %214 = sext i32 %storemerge20.reload to i64 %215 = add i64 %95, %214 %216 = inttoptr i64 %215 to i8* %217 = load i8, i8* %216, align 1 %218 = zext i8 %217 to i64 %219 = mul i64 %218, 4 %220 = add i64 %219, %213 %221 = and i64 %210, 4294967295 %222 = call i64 @FUNC(i64 %220, i64 %221) %storemerge = add i32 %storemerge20.reload, -1 %223 = icmp slt i32 %storemerge, 0 %224 = icmp eq i1 %223, false store i32 %storemerge, i32* %storemerge20.reg2mem store i64 %222, i64* %rax.0.lcssa.reg2mem br i1 %224, label LBL_37, label LBL_38 LBL_38: %rax.0.lcssa.reload = load i64, i64* %rax.0.lcssa.reg2mem ret i64 %rax.0.lcssa.reload uselistorder i64 %209, { 1, 0 } uselistorder i64 %208, { 1, 0, 2 } uselistorder i32 %203, { 1, 0 } uselistorder i32 %storemerge20.reload, { 2, 0, 1 } uselistorder i64 %193, { 1, 0 } uselistorder i32 %179, { 1, 0 } uselistorder i64 %177, { 1, 2, 0 } uselistorder i32 %sv_0.1.lcssa.reload, { 1, 0 } uselistorder i32 %sv_1.1.lcssa.reload, { 2, 1, 0 } uselistorder i32 %174, { 1, 0 } uselistorder i64 %159, { 1, 0 } uselistorder i8 %106, { 1, 0 } uselistorder i64 %indvars.iv.reload, { 0, 2, 1 } uselistorder i32 %sv_1.122.reload, { 1, 0 } uselistorder i32 %sv_0.121.reload, { 1, 2, 0 } uselistorder i64 %indvars.iv40.reload, { 2, 0, 1 } uselistorder i64 %94, { 5, 1, 2, 0, 3, 4 } uselistorder i64 %92, { 1, 2, 0, 3, 4 } uselistorder i32 %87, { 1, 0 } uselistorder i64 %85, { 2, 1, 0 } uselistorder i32 %60, { 2, 3, 0, 1 } uselistorder i64 %indvars.iv42.reload, { 0, 2, 1 } uselistorder i64 %14, { 1, 0 } uselistorder i64 %10, { 1, 2, 0, 3, 4 } uselistorder i64 %4, { 2, 3, 1, 0, 4 } uselistorder i64 %3, { 0, 2, 3, 4, 1 } uselistorder i64* %sv_3, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64* %indvars.iv42.reg2mem, { 2, 1, 0 } uselistorder i32* %storemerge17.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge16.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge15.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge14.reg2mem, { 0, 2, 1 } uselistorder i64* %indvars.iv.next47.pre-phi.reg2mem, { 2, 0, 1 } uselistorder i64* %indvars.iv40.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge332.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_1.122.reg2mem, { 2, 1, 0 } uselistorder i32* %sv_0.121.reg2mem, { 2, 1, 0 } uselistorder i32* %storemerge10.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge9.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge8.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge7.reg2mem, { 0, 2, 1 } uselistorder i64* %indvars.iv.next37.pre-phi.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.1.lcssa.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_1.1.lcssa.reg2mem, { 2, 0, 1 } uselistorder i64* %indvars.iv36.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_1.227.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.226.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge3.lcssa.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge20.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.lcssa.reg2mem, { 0, 2, 3, 1 } uselistorder i64 256, { 1, 0 } uselistorder i1 false, { 1, 0, 2, 3, 4, 5, 6, 7 } uselistorder i32 -1, { 4, 5, 1, 3, 0, 2 } uselistorder i64 4294967295, { 3, 4, 0, 2, 1, 5 } uselistorder i64 -1616, { 1, 0 } uselistorder i32 %arg3, { 2, 4, 0, 1, 3 } uselistorder label LBL_38, { 1, 2, 0 } uselistorder label LBL_37, { 1, 0 } uselistorder label LBL_30, { 1, 0 } uselistorder label LBL_29, { 1, 0 } uselistorder label LBL_26, { 1, 0 } uselistorder label LBL_24, { 1, 0 } uselistorder label LBL_22, { 1, 0 } uselistorder label LBL_20, { 1, 0 } uselistorder label LBL_18, { 1, 0 } uselistorder label LBL_17, { 1, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_11, { 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
gd_vc_chr_write_14744
gd_vc_chr_write
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %sext = mul i64 %arg3, 4294967296 %2 = ashr exact i64 %sext, 32 %3 = icmp eq i64* %arg1, null br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = trunc i64 %1 to i32 %5 = trunc i64 %2 to i32 %6 = call i32 @write(i32 %4, i64* %arg2, i32 %5) %7 = sext i32 %6 to i64 store i64 %7, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %8 = and i64 %2, 4294967295 store i64 %8, 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 } }
1
BinRealVul
mxf_read_primer_pack_2018
mxf_read_primer_pack
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = call i64 @FUNC(i64 %2) %4 = call i64 @FUNC(i64 %2) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 18 br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0), i64 %arg4, i64 %arg5, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_5 LBL_2: %8 = and i64 %4, 4294967295 %9 = and i64 %3, 4294967295 %10 = mul nuw i64 %8, %9 %11 = icmp ugt i64 %10, 4294967295 %12 = icmp eq i1 %11, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %12, label LBL_3, label LBL_5 LBL_3: %13 = ptrtoint i64* %arg1 to i64 %14 = trunc i64 %3 to i32 %15 = add i64 %13, 8 %16 = inttoptr i64 %15 to i32* store i32 %14, i32* %16, align 4 %17 = mul i64 %4, %3 %sext = mul i64 %17, 4294967296 %18 = ashr exact i64 %sext, 32 %19 = call i64 @FUNC(i64 %18) %20 = add i64 %13, 16 %21 = inttoptr i64 %20 to i64* store i64 %19, i64* %21, align 8 %22 = icmp eq i64 %19, 0 %23 = icmp eq i1 %22, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %23, label LBL_4, label LBL_5 LBL_4: %24 = and i64 %17, 4294967295 %25 = call i64 @FUNC(i64 %2, i64 %19, i64 %24) store i64 0, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %19, { 1, 0, 2 } uselistorder i64 %17, { 1, 0 } uselistorder i64 %3, { 0, 2, 1 } uselistorder i64 %2, { 1, 0, 2, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64 (i64)* @avio_rb32, { 1, 0 } uselistorder label LBL_5, { 2, 0, 1, 3 } }
0
BinRealVul
parse_addr_18917
parse_addr
define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %storemerge1.in.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg4 to i64 %sv_0 = alloca i64, align 8 %3 = trunc i64 %1 to i32 switch i32 %3, label LBL_3 [ i32 2, label LBL_1 i32 10, label LBL_2 ] LBL_1: %4 = sub i64 %arg5, %arg2 %5 = and i64 %4, 4294967295 %6 = call i64 @FUNC(i64 %arg2, i64 %5, i64 %2, i64 4294967295, i64* nonnull %sv_0) store i64 %6, i64* %storemerge1.in.reg2mem br label LBL_4 LBL_2: %7 = sub i64 %arg5, %arg2 %8 = and i64 %7, 4294967295 %9 = call i64 @FUNC(i64 %arg2, i64 %8, i64 %2, i64 4294967295, i64* nonnull %sv_0) store i64 %9, i64* %storemerge1.in.reg2mem br label LBL_4 LBL_3: %10 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %11 = call i32 @fwrite(i64* bitcast ([15 x i8]* @gv_1 to i64*), i32 1, i32 14, %_IO_FILE* %10) call void @exit(i32 1) unreachable LBL_4: %storemerge1.in.reload = load i64, i64* %storemerge1.in.reg2mem %storemerge1 = trunc i64 %storemerge1.in.reload to i32 %12 = icmp eq i32 %storemerge1, 0 store i64 0, i64* %storemerge.reg2mem br i1 %12, label LBL_8, label LBL_5 LBL_5: %13 = load i64, i64* %sv_0, align 8 %14 = icmp eq i64 %13, %arg2 %15 = icmp eq i1 %14, false store i64 0, i64* %storemerge.reg2mem br i1 %15, label LBL_6, label LBL_8 LBL_6: %16 = icmp eq i64* %arg3, null store i64 1, i64* %storemerge.reg2mem br i1 %16, label LBL_8, label LBL_7 LBL_7: store i64 %13, i64* %arg3, align 8 store i64 1, i64* %storemerge.reg2mem br label LBL_8 LBL_8: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %13, { 1, 0 } uselistorder i64* %sv_0, { 2, 0, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 4, 3 } uselistorder i64 1, { 1, 0 } uselistorder i64 4294967295, { 2, 1, 3, 0 } uselistorder i64 %arg2, { 0, 2, 1, 4, 3 } uselistorder label LBL_8, { 1, 0, 3, 2 } }
1
BinRealVul
kvm_uncoalesce_mmio_region_14022
kvm_uncoalesce_mmio_region
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %sv_1 = alloca i64, align 8 %0 = load i32*, i32** @gv_0, align 8 %1 = load i32, i32* %0, align 4 %2 = icmp eq i32 %1, 0 store i64 4294967258, i64* %sv_0.0.reg2mem br i1 %2, label LBL_2, label LBL_1 LBL_1: store i64 %arg1, i64* %sv_1, align 8 %3 = ptrtoint i32* %0 to i64 %4 = call i64 @FUNC(i64 %3, i64 4660, i64* nonnull %sv_1) %phitmp = and i64 %4, 4294967295 store i64 %phitmp, i64* %sv_0.0.reg2mem br label LBL_2 LBL_2: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem ret i64 %sv_0.0.reload }
1
BinRealVul
fuse_file_lock_10190
fuse_file_lock
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = trunc i64 %arg2 to i32 %2 = call i64 @FUNC(i64 %0) %3 = icmp eq i32 %1, 1 %4 = icmp eq i1 %3, false store i64 0, i64* %sv_0.0.reg2mem br i1 %4, label LBL_1, label LBL_8 LBL_1: %5 = ptrtoint i64* %arg3 to i64 %6 = inttoptr i64 %2 to i32* %7 = icmp eq i32 %1, 2 %8 = icmp eq i1 %7, false %9 = load i32, i32* %6, align 4 %10 = icmp eq i32 %9, 0 br i1 %8, label LBL_5, label LBL_2 LBL_2: br i1 %10, label LBL_4, label LBL_3 LBL_3: %11 = call i64 @FUNC(i64 %0, i64 %5) store i64 0, i64* %sv_0.0.reg2mem br label LBL_8 LBL_4: %12 = call i64 @FUNC(i64 %0, i64 %5) store i64 %12, i64* %sv_0.0.reg2mem br label LBL_8 LBL_5: br i1 %10, label LBL_7, label LBL_6 LBL_6: %13 = call i64 @FUNC(i64 %0, i64 %5, i64 0) store i64 %13, i64* %sv_0.0.reg2mem br label LBL_8 LBL_7: %14 = call i64 @FUNC(i64 %0, i64 %5, i64 0) store i64 %14, i64* %sv_0.0.reg2mem br label LBL_8 LBL_8: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %15 = and i64 %sv_0.0.reload, 4294967295 ret i64 %15 uselistorder i1 %10, { 1, 0 } uselistorder i64 %5, { 0, 1, 3, 2 } uselistorder i64 %0, { 0, 1, 3, 2, 4 } uselistorder i64* %sv_0.0.reg2mem, { 0, 5, 4, 3, 2, 1 } uselistorder label LBL_8, { 1, 2, 3, 4, 0 } }
0
BinRealVul
avfilter_default_get_video_buffer_18308
avfilter_default_get_video_buffer
define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rdi = alloca i64, align 8 %0 = ptrtoint i32* %arg1 to i64 %1 = trunc i64 %arg2 to i32 %2 = call i64 @FUNC(i64 48) %3 = call i64 @FUNC(i64 56) %4 = inttoptr i64 %3 to i64* store i64 %2, i64* %4, align 8 %5 = bitcast i64* %rdi to i32* %6 = load i32, i32* %5, align 8 %7 = add i64 %3, 8 %8 = inttoptr i64 %7 to i32* store i32 %6, i32* %8, align 4 %9 = add i64 %0, 4 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = add i64 %3, 12 %13 = inttoptr i64 %12 to i32* store i32 %11, i32* %13, align 4 %14 = add i64 %3, 16 %15 = inttoptr i64 %14 to i32* store i32 %1, i32* %15, align 4 %16 = inttoptr i64 %2 to i32* store i32 1, i32* %16, align 4 %17 = add i64 %0, 8 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = add i64 %2, 4 %21 = inttoptr i64 %20 to i32* store i32 %19, i32* %21, align 4 %22 = add i64 %2, 8 %23 = inttoptr i64 %22 to i64* store i64 4198746, i64* %23, align 8 %24 = load i32, i32* %13, align 4 %25 = load i32, i32* %8, align 4 %26 = load i32, i32* %21, align 4 %27 = call i64 @FUNC(i64 %2, i32 %26, i32 %25, i32 %24) %28 = add i64 %2, 16 %29 = add i64 %3, 24 %30 = inttoptr i64 %29 to i64* %31 = inttoptr i64 %28 to i64* %32 = call i64* @memcpy(i64* %30, i64* %31, i32 32) ret i64 %3 uselistorder i64 (i64)* @av_mallocz, { 1, 0 } }
1
BinRealVul
ecdsa_verify_legacy_6473
ecdsa_verify_legacy
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i8 %3 = icmp eq i8 %2, 0 store i64 0, i64* %storemerge.reg2mem br i1 %3, label LBL_1, label LBL_2 LBL_1: %4 = ptrtoint i64* %arg2 to i64 %5 = add i64 %0, 4 %6 = call i64 @FUNC(i64* nonnull %sv_1, i64 %5, i64 %4) %7 = add i64 %0, 8 %8 = call i64 @FUNC(i64* nonnull %sv_0, i64 %7, i64* nonnull %sv_1) %9 = call i64 @FUNC(i64* nonnull %sv_0, i64 0, i64* nonnull %sv_0) %10 = call i64 @FUNC(i64* nonnull %sv_0, i64 %0, i64* nonnull %sv_0) %11 = ptrtoint i64* %sv_0 to i64 %12 = call i64 @FUNC(i64 %11) 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, { 5, 0, 1, 2, 3, 4 } uselistorder i64 %0, { 0, 2, 1, 3 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 0, { 1, 0, 2 } uselistorder i64 (i64)* @ecc_25519_gf_is_zero, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
load_device_tree_5422
load_device_tree
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = bitcast i64* %arg2 to i32* store i32 0, i32* %5, align 4 %6 = call i64 @FUNC(i64 %arg1) %7 = trunc i64 %6 to i32 %8 = icmp slt i32 %7, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_2, label LBL_1 LBL_1: %10 = call i64 @FUNC(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_0, i64 0, i64 0), i64 %arg1, i64 %3, i64 %4, i64 %2, i64 %1) store i64 0, i64* %sv_0.0.reg2mem br label LBL_9 LBL_2: %11 = mul i32 %7, 2 %12 = add i32 %11, 20000 %13 = sext i32 %12 to i64 %14 = call i64 @FUNC(i64 %13) %15 = call i64 @FUNC(i64 %arg1, i64 %14, i32 %12) %16 = trunc i64 %15 to i32 %17 = icmp slt i32 %16, 0 %18 = icmp eq i1 %17, false %19 = zext i32 %12 to i64 br i1 %18, label LBL_4, label LBL_3 LBL_3: %20 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_1, i64 0, i64 0), i64 %arg1, i64 %19, i64 %14, i64 %2, i64 %1) store i64 %14, i64* %sv_0.0.reg2mem br label LBL_9 LBL_4: %21 = call i64 @FUNC(i64 %14, i64 %14, i32 %12) %22 = trunc i64 %21 to i32 %23 = icmp eq i32 %22, 0 br i1 %23, label LBL_6, label LBL_5 LBL_5: %24 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_2, i64 0, i64 0), i64 %14, i64 %19, i64 %14, i64 %2, i64 %1) store i64 %14, i64* %sv_0.0.reg2mem br label LBL_9 LBL_6: %25 = call i64 @FUNC(i64 %14) %26 = trunc i64 %25 to i32 %27 = icmp eq i32 %26, 0 br i1 %27, label LBL_8, label LBL_7 LBL_7: %28 = call i64 @FUNC(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_3, i64 0, i64 0), i64 %arg1, i64 %19, i64 %14, i64 %2, i64 %1) store i64 %14, i64* %sv_0.0.reg2mem br label LBL_9 LBL_8: store i32 %12, i32* %5, align 4 store i64 %14, i64* %storemerge.reg2mem br label LBL_10 LBL_9: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %29 = call i64 @FUNC(i64 %sv_0.0.reload) store i64 0, i64* %storemerge.reg2mem br label LBL_10 LBL_10: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %19, { 2, 1, 0 } uselistorder i64 %14, { 0, 3, 7, 8, 2, 5, 6, 9, 10, 1, 4, 11 } uselistorder i32 %12, { 0, 2, 1, 3, 4 } uselistorder i64 %2, { 3, 2, 1, 0 } uselistorder i64 %1, { 3, 2, 1, 0 } uselistorder i64* %sv_0.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @error_report, { 3, 2, 1, 0 } uselistorder i64 %arg1, { 2, 1, 3, 0, 4 } }
0
BinRealVul
can_merge_formats_4820
can_merge_formats
define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %0 = icmp eq i64 %arg1, %arg2 %1 = icmp eq i1 %0, false store i64 1, i64* %rax.0.reg2mem br i1 %1, label LBL_1, label LBL_7 LBL_1: %2 = call i64 @FUNC(i64 %arg1) store i64 %2, i64* %sv_2, align 8 %3 = call i64 @FUNC(i64 %arg2) store i64 %3, i64* %sv_1, align 8 %4 = icmp eq i32 %arg4, 0 br i1 %4, label LBL_3, label LBL_2 LBL_2: %5 = call i64 @FUNC(i64 %2, i64 %3) store i64 %5, i64* %.reg2mem br label LBL_4 LBL_3: %6 = call i64 @FUNC(i64 %2, i64 %3, i32 %arg3) store i64 %6, i64* %.reg2mem br label LBL_4 LBL_4: %.reload = load i64, i64* %.reg2mem store i64 %.reload, i64* %sv_0, align 8 %7 = icmp eq i64 %.reload, 0 br i1 %7, label LBL_6, label LBL_5 LBL_5: %8 = call i64 @FUNC(i64 %.reload) %9 = add i64 %.reload, 8 %10 = call i64 @FUNC(i64 %9) %11 = ptrtoint i64* %sv_0 to i64 %12 = call i64 @FUNC(i64 %11) store i64 1, i64* %rax.0.reg2mem br label LBL_7 LBL_6: %13 = load i64, i64* %sv_2, align 8 %14 = call i64 @FUNC(i64 %13) %15 = load i64, i64* %sv_1, align 8 %16 = call i64 @FUNC(i64 %15) %17 = ptrtoint i64* %sv_2 to i64 %18 = call i64 @FUNC(i64 %17) %19 = ptrtoint i64* %sv_1 to i64 %20 = call i64 @FUNC(i64 %19) store i64 0, i64* %rax.0.reg2mem br label LBL_7 LBL_7: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %.reload, { 3, 2, 1, 0 } uselistorder i64* %sv_0, { 1, 0 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64 (i64)* @av_freep, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64)* @clone_filter_formats, { 1, 0 } uselistorder i64 1, { 1, 0 } uselistorder label LBL_7, { 1, 2, 0 } }
0
BinRealVul
add_extendedopt_12046
add_extendedopt
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 %sv_0 = alloca i64, align 8 store i64 %arg1, i64* %sv_0, align 8 %5 = inttoptr i64 %arg1 to i8* %6 = call i32 @strcmp(i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0)) %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false br i1 %8, label LBL_2, label LBL_1 LBL_1: %9 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @gv_1, i64 0, i64 0), i64 %3, i64 %4, i64 %2, i64 %1) call void @exit(i32 0) unreachable LBL_2: %10 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0)) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_4, label LBL_3 LBL_3: %14 = load i64, i64* %sv_0, align 8 %15 = call i64 @FUNC(i64 %14) %16 = trunc i64 %15 to i32 store i32 %16, i32* bitcast (i64* @gv_3 to i32*), align 8 store i64 %15, i64* %rax.0.reg2mem br label LBL_9 LBL_4: %17 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0)) %18 = trunc i64 %17 to i32 %19 = icmp eq i32 %18, 0 %20 = icmp eq i1 %19, false br i1 %20, label LBL_6, label LBL_5 LBL_5: %21 = load i64, i64* %sv_0, align 8 store i64 %21, i64* @gv_5, align 8 store i64 %21, i64* %rax.0.reg2mem br label LBL_9 LBL_6: %22 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_6, i64 0, i64 0)) %23 = trunc i64 %22 to i32 %24 = icmp eq i32 %23, 0 %25 = icmp eq i1 %24, false br i1 %25, label LBL_8, label LBL_7 LBL_7: %26 = load i64, i64* %sv_0, align 8 %27 = call i64 @FUNC(i64 %26) %28 = trunc i64 %27 to i32 store i32 %28, i32* bitcast (i64* @gv_7 to i32*), align 8 store i64 %27, i64* %rax.0.reg2mem br label LBL_9 LBL_8: %29 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_8, i64 0, i64 0), i64 %arg1, i64 %4, i64 %2, i64 %1) store i64 %29, i64* %rax.0.reg2mem br label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %sv_0, { 3, 0, 4, 1, 5, 2, 6 } uselistorder i64 %4, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 (i64)* @parse_flag_value, { 1, 0 } uselistorder i64 (i64*, i8*)* @match_extendedopt, { 2, 1, 0 } uselistorder i32 0, { 1, 2, 3, 0, 4, 5, 6 } }
1
BinRealVul
decode_i_picture_primary_header_3163
decode_i_picture_primary_header
define i64 @FUNC(i64* %arg1) 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 = ptrtoint i64* %arg1 to i64 %6 = add i64 %5, 32 %7 = trunc i64 %3 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 br i1 %12, label LBL_3, label LBL_1 LBL_1: %13 = call i64 @FUNC(i64 %6, i64 7) %14 = trunc i64 %13 to i32 %15 = icmp eq i32 %14, 0 br i1 %15, label LBL_3, label LBL_2 LBL_2: %16 = add i64 %5, 24 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = call i64 @FUNC(i64 %18, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %2, i64 %1) br label LBL_3 LBL_3: %20 = call i64 @FUNC(i64 %6, i64 5) %21 = add i64 %5, 4 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = icmp eq i32 %23, 1 %25 = icmp eq i1 %24, false br i1 %25, label LBL_5, label LBL_4 LBL_4: %sext = mul i64 %20, 4294967296 %26 = ashr exact i64 %sext, 30 %27 = add i64 %26, ptrtoint (i32** @gv_1 to i64) %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 %30 = add i64 %5, 8 %31 = inttoptr i64 %30 to i32* store i32 %29, i32* %31, align 4 br label LBL_6 LBL_5: %32 = add i32 %23, -1 %sext1 = mul i64 %20, 4294967296 %33 = ashr exact i64 %sext1, 32 %34 = sext i32 %32 to i64 %35 = mul i64 %34, 32 %36 = add nsw i64 %35, %33 %37 = mul i64 %36, 4 %38 = add i64 %37, ptrtoint (i32** @gv_1 to i64) %39 = inttoptr i64 %38 to i32* %40 = load i32, i32* %39, align 4 %41 = add i64 %5, 8 %42 = inttoptr i64 %41 to i32* store i32 %40, i32* %42, align 4 br label LBL_6 LBL_6: %43 = trunc i64 %20 to i32 %44 = icmp sgt i32 %43, 8 br i1 %44, label LBL_8, label LBL_7 LBL_7: %45 = call i64 @FUNC(i64 %6, i64 1) %46 = trunc i64 %45 to i32 %47 = add i64 %5, 12 %48 = inttoptr i64 %47 to i32* store i32 %46, i32* %48, align 4 br label LBL_8 LBL_8: %49 = load i32, i32* %22, align 4 %50 = icmp eq i32 %49, 2 %51 = icmp eq i1 %50, false br i1 %51, label LBL_10, label LBL_9 LBL_9: %52 = call i64 @FUNC(i64 %6, i64 1) %53 = trunc i64 %52 to i32 %54 = add i64 %5, 16 %55 = inttoptr i64 %54 to i32* store i32 %53, i32* %55, align 4 br label LBL_10 LBL_10: %56 = add i64 %5, 12 %57 = inttoptr i64 %56 to i32* %58 = load i32, i32* %57, align 4 %59 = add i64 %5, 8 %60 = inttoptr i64 %59 to i32* %61 = load i32, i32* %60, align 4 %62 = add i64 %5, 24 %63 = inttoptr i64 %62 to i64* %64 = load i64, i64* %63, align 8 %65 = zext i32 %58 to i64 %66 = zext i32 %61 to i64 %67 = call i64 @FUNC(i64 %64, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0), i64 %66, i64 %65, i64 %1) ret i64 0 uselistorder i64 %20, { 2, 0, 1 } uselistorder i64 %6, { 1, 0, 2, 3 } uselistorder i64 %5, { 5, 4, 3, 2, 1, 7, 8, 6, 0, 9 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 } uselistorder i64 (i64, i64)* @get_bits, { 3, 2, 1, 0 } uselistorder i1 false, { 1, 2, 3, 0 } }
0
BinRealVul
ok_csv_circular_buffer_skip_6345
ok_csv_circular_buffer_skip
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = icmp uge i64 %3, %arg2 %5 = zext i1 %4 to i64 %6 = call i64 @FUNC(i64 %5) %7 = load i64, i64* %2, align 8 %8 = icmp ult i64 %7, %arg2 store i64 0, i64* %storemerge.reg2mem br i1 %8, label LBL_2, label LBL_1 LBL_1: %9 = add i64 %5, %arg2 %10 = add i64 %0, 16 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = urem i64 %9, %12 store i64 %13, i64* %arg1, align 8 %14 = load i64, i64* %2, align 8 %15 = sub i64 %14, %arg2 store i64 %15, i64* %2, align 8 store i64 1, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %2, { 1, 0, 2, 3 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 %arg2, { 2, 0, 1, 3 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
get_packet_size_16308
get_packet_size
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %arg2 to i32 %3 = icmp sgt i32 %2, 940 store i64 4294967295, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_4 LBL_1: %4 = ptrtoint i64* %arg1 to i64 %5 = call i64 @FUNC(i64 %4, i32 %2, i64 188, i64 0) %6 = trunc i64 %5 to i32 %7 = call i64 @FUNC(i64 %4, i32 %2, i64 192, i64 0) %8 = trunc i64 %7 to i32 %9 = call i64 @FUNC(i64 %4, i32 %2, i64 188, i64 0) %10 = trunc i64 %9 to i32 %11 = and i64 %9, 4294967295 %12 = and i64 %7, 4294967295 %13 = and i64 %5, 4294967295 %14 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_0, i64 0, i64 0), i64 %13, i64 %12, i64 %11, i64 %1) %15 = icmp sgt i32 %6, %10 %16 = icmp sgt i32 %6, %8 %or.cond = icmp eq i1 %16, %15 store i64 188, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_4, label LBL_2 LBL_2: %17 = icmp sgt i32 %8, %6 %18 = icmp sgt i32 %8, %10 %or.cond2 = icmp eq i1 %17, %18 store i64 192, i64* %rax.0.reg2mem br i1 %or.cond2, label LBL_4, label LBL_3 LBL_3: %19 = icmp slt i32 %6, %10 %20 = icmp slt i32 %8, %10 %or.cond3 = icmp eq i1 %19, %20 %spec.select = select i1 %or.cond3, i64 188, i64 4294967295 ret i64 %spec.select LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %10, { 0, 2, 1, 3 } uselistorder i32 %8, { 0, 1, 3, 2 } uselistorder i32 %6, { 1, 2, 0, 3 } uselistorder i64 %4, { 0, 2, 1 } uselistorder i32 %2, { 2, 1, 0, 3 } uselistorder i64 (i64, i32, i64, i64)* @analyze, { 2, 1, 0 } uselistorder i64 188, { 1, 0, 2, 3 } }
1
BinRealVul
saa7134_alsa_exit_18885
saa7134_alsa_exit
define i64 @FUNC() local_unnamed_addr { LBL_0: %indvars.iv.reg2mem = alloca i64 store i64 0, i64* %indvars.iv.reg2mem br label LBL_1 LBL_1: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %0 = mul i64 %indvars.iv.reload, 4 %1 = add i64 %0, ptrtoint (i32** @gv_0 to i64) %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = zext i32 %3 to i64 %5 = call i64 @FUNC(i64 %4) %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 10 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_2, label LBL_1 LBL_2: store i64 0, i64* @gv_1, align 8 store i64 0, i64* @gv_2, align 8 %6 = call i64 @FUNC(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_3, i64 0, i64 0)) ret i64 %6 uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32 1, { 1, 0 } }
1
BinRealVul
qobject_input_optional_2190
qobject_input_optional
define i64 @FUNC(i64* %arg1, i8* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg3 to i64 %1 = ptrtoint i8* %arg2 to i64 %2 = ptrtoint i64* %arg1 to i64 %3 = call i64 @FUNC(i64 %2) %4 = call i64 @FUNC(i64 %3, i64 %1, i64 0) %5 = icmp eq i64 %4, 0 %6 = icmp eq i1 %5, false %7 = bitcast i64* %arg3 to i8* %. = zext i1 %6 to i8 store i8 %., i8* %7, align 1 ret i64 %0 }
0
BinRealVul
write_data_page_9769
write_data_page
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 store i64 %0, i64* %sv_1, align 8 %2 = icmp eq i64* %arg1, null %3 = zext i1 %2 to i64 %4 = call i64 @FUNC(i64 %0, i64 %3) %5 = add i64 %1, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = call i64 @FUNC(i64 %0, i64 %7, i64* nonnull %sv_0) %9 = load i64, i64* %sv_0, align 8 %10 = add i64 %1, 16 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = load i64, i64* %6, align 8 %14 = call i64 @FUNC(i64* nonnull %sv_1, i64 %13, i64 %12, i64 %9) %15 = call i64 @FUNC(i64* nonnull %sv_1, i64 %0) %16 = add i64 %0, 8 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = call i64 @FUNC(i64 %1, i64 %18) %20 = add i64 %0, 16 %21 = inttoptr i64 %20 to i32* %22 = load i32, i32* %21, align 4 %23 = load i64, i64* %sv_1, align 8 %24 = zext i32 %22 to i64 %25 = call i64 @FUNC(i64 %23, i64 %24, i64 4096) ret i64 %25 uselistorder i64* %sv_1, { 2, 0, 1, 3 } uselistorder i64* %sv_0, { 1, 0 } uselistorder i64 %0, { 3, 2, 1, 0, 4, 5 } }
0
BinRealVul
start_children_17049
start_children
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.1.reg2mem = alloca i64 %storemerge26.reg2mem = alloca i32 %sv_0.07.reg2mem = alloca i64 %sv_1 = alloca i64, align 8 %0 = load i32, i32* @gv_0, align 4 %1 = zext i32 %0 to i64 %2 = icmp eq i32 %0, 0 %3 = icmp eq i64* %arg1, null %4 = icmp eq i1 %3, false %or.cond = icmp eq i1 %4, %2 store i64 %1, i64* %rax.1.reg2mem br i1 %or.cond, label LBL_1, label LBL_14 LBL_1: %5 = ptrtoint i64* %arg1 to i64 store i64 %5, i64* %sv_0.07.reg2mem br label LBL_2 LBL_2: %sv_0.07.reload = load i64, i64* %sv_0.07.reg2mem %6 = inttoptr i64 %sv_0.07.reload to i64* %7 = load i64, i64* %6, align 8 %8 = icmp eq i64 %7, 0 br i1 %8, label LBL_13, label LBL_3 LBL_3: %9 = add i64 %sv_0.07.reload, 8 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_13, label LBL_4 LBL_4: %14 = call i32 @time(i32* null) %15 = sext i32 %14 to i64 %16 = add i64 %sv_0.07.reload, 16 %17 = inttoptr i64 %16 to i64* store i64 %15, i64* %17, align 8 %18 = call i32 @fork() store i32 %18, i32* %10, align 4 %19 = icmp slt i32 %18, 0 %20 = icmp eq i1 %19, false br i1 %20, label LBL_6, label LBL_5 LBL_5: %21 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %22 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_2 to i64*), i32 1, i32 26, %_IO_FILE* %21) call void @exit(i32 1) unreachable LBL_6: %23 = icmp eq i32 %18, 0 %24 = icmp eq i1 %23, false store i32 3, i32* %storemerge26.reg2mem br i1 %24, label LBL_13, label LBL_7 LBL_7: %storemerge26.reload = load i32, i32* %storemerge26.reg2mem %25 = call i32 @close(i32 %storemerge26.reload) %26 = add nuw nsw i32 %storemerge26.reload, 1 %exitcond = icmp eq i32 %26, 256 store i32 %26, i32* %storemerge26.reg2mem br i1 %exitcond, label LBL_8, label LBL_7 LBL_8: %27 = load i32, i32* @gv_3, align 4 %28 = icmp eq i32 %27, 0 %29 = icmp eq i1 %28, false br i1 %29, label LBL_12, label LBL_9 LBL_9: %30 = call i32 (i8*, i32, ...) @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_4, i64 0, i64 0), i32 2) %31 = icmp eq i32 %30, 0 br i1 %31, label LBL_11, label LBL_10 LBL_10: %32 = call i32 @dup2(i32 %30, i32 0) %33 = call i32 @dup2(i32 %30, i32 1) %34 = call i32 @dup2(i32 %30, i32 2) %35 = call i32 @close(i32 %30) br label LBL_12 LBL_11: %36 = call i32 @dup2(i32 0, i32 1) %37 = call i32 @dup2(i32 0, i32 2) br label LBL_12 LBL_12: %38 = call i64 @FUNC(i64* nonnull %sv_1, i64 1024, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_5, i64 0, i64 0)) %39 = bitcast i64* %sv_1 to i8* %40 = call i8* @strrchr(i8* nonnull %39, i32 47) %41 = icmp eq i8* %40, null %42 = icmp eq i1 %41, false %43 = ptrtoint i8* %40 to i64 %44 = add i64 %43, 1 %45 = inttoptr i64 %44 to i32* %46 = bitcast i64* %sv_1 to i32* %storemerge = select i1 %42, i32* %45, i32* %46 %47 = ptrtoint i32* %storemerge to i64 store i32 1886217830, i32* %storemerge, align 4 %48 = add i64 %47, 4 %49 = inttoptr i64 %48 to i16* store i16 26469, i16* %49, align 2 %50 = add i64 %47, 6 %51 = inttoptr i64 %50 to i8* store i8 0, i8* %51, align 1 %52 = call i32 @chdir(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_6, i64 0, i64 0)) %53 = load i64, i64* %6, align 8 %54 = inttoptr i64 %53 to i8* %55 = insertvalue [1 x i8*] undef, i8* %54, 0 %56 = call i32 @execvp(i8* nonnull %39, [1 x i8*] %55) call void @_exit(i32 1) unreachable LBL_13: %57 = add i64 %sv_0.07.reload, 24 %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* %sv_0.07.reg2mem store i64 %59, i64* %rax.1.reg2mem br i1 %61, label LBL_2, label LBL_14 LBL_14: %rax.1.reload = load i64, i64* %rax.1.reg2mem ret i64 %rax.1.reload uselistorder i32 %30, { 0, 2, 1, 3, 4 } uselistorder i32 %storemerge26.reload, { 1, 0 } uselistorder i32 %18, { 1, 0, 2 } uselistorder i64 %sv_0.07.reload, { 3, 0, 2, 1 } uselistorder i64* %sv_0.07.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge26.reg2mem, { 2, 0, 1 } uselistorder i8 0, { 1, 2, 0 } uselistorder i32 (i32, i32)* @dup2, { 0, 1, 4, 3, 2 } uselistorder i32 (i32)* @close, { 1, 0 } uselistorder i1 false, { 6, 1, 2, 3, 4, 5, 0 } uselistorder i32 0, { 1, 0, 2, 5, 6, 7, 8, 9, 10, 3, 4 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
flush_thread_18446
flush_thread
define i64 @FUNC() local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = load i64, i64* @gv_0, align 8 %1 = inttoptr i64 %0 to i64* %2 = load i64, i64* %1, align 8 %3 = and i64 %2, -4 store i64 %3, i64* %1, align 8 %4 = load i64, i64* @gv_0, align 8 %5 = call i64 @FUNC(i64 %4) %6 = load i64, i64* @gv_0, align 8 %7 = call i64 @FUNC(i64 %6) %8 = call i64 @FUNC(i64 %7) %9 = trunc i64 %8 to i32 %10 = icmp eq i32 %9, 0 store i64 %8, i64* %rax.0.reg2mem br i1 %10, label LBL_2, label LBL_1 LBL_1: %11 = load i64, i64* @gv_0, align 8 %12 = call i64 @FUNC(i64 %11) %13 = load i64, i64* @gv_0, align 8 %14 = add i64 %13, 8 %15 = inttoptr i64 %14 to i64* store i64 3221225472, i64* %15, align 8 %16 = call i64 @FUNC(i64 0) store i64 %16, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload }
1
BinRealVul
ata_passthrough_16_xfer_size_1487
ata_passthrough_16_xfer_size
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %storemerge.reg2mem = alloca i64 %storemerge1.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = add i64 %0, 1 %3 = inttoptr i64 %2 to i8* %4 = load i8, i8* %3, align 1 %5 = urem i8 %4, 2 %6 = add i64 %0, 2 %7 = inttoptr i64 %6 to i8* %8 = load i8, i8* %7, align 1 %9 = urem i8 %8, 4 %10 = call i64 @FUNC(i64 %1, i64 %0) store i64 0, i64* %sv_0.0.reg2mem switch i8 %9, label LBL_7 [ i8 1, label LBL_1 i8 2, label LBL_4 ] LBL_1: %11 = add i64 %0, 4 %12 = inttoptr i64 %11 to i8* %13 = load i8, i8* %12, align 1 %14 = icmp eq i8 %5, 0 store i64 0, i64* %storemerge1.reg2mem br i1 %14, label LBL_3, label LBL_2 LBL_2: %15 = add i64 %0, 3 %16 = inttoptr i64 %15 to i8* %17 = load i8, i8* %16, align 1 %18 = zext i8 %17 to i64 %19 = mul i64 %18, 256 store i64 %19, i64* %storemerge1.reg2mem br label LBL_3 LBL_3: %20 = zext i8 %13 to i64 %storemerge1.reload = load i64, i64* %storemerge1.reg2mem %21 = or i64 %storemerge1.reload, %20 store i64 %21, i64* %sv_0.0.reg2mem br label LBL_7 LBL_4: %22 = add i64 %0, 6 %23 = inttoptr i64 %22 to i8* %24 = load i8, i8* %23, align 1 %25 = icmp eq i8 %5, 0 store i64 0, i64* %storemerge.reg2mem br i1 %25, label LBL_6, label LBL_5 LBL_5: %26 = add i64 %0, 5 %27 = inttoptr i64 %26 to i8* %28 = load i8, i8* %27, align 1 %29 = zext i8 %28 to i64 %30 = mul i64 %29, 256 store i64 %30, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %31 = zext i8 %24 to i64 %storemerge.reload = load i64, i64* %storemerge.reg2mem %32 = or i64 %storemerge.reload, %31 store i64 %32, i64* %sv_0.0.reg2mem br label LBL_7 LBL_7: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %33 = mul i64 %sv_0.0.reload, %10 %34 = and i64 %33, 4294967295 ret i64 %34 uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 1 } uselistorder i8 0, { 1, 0 } uselistorder i8 2, { 1, 0 } uselistorder i64 1, { 1, 0 } uselistorder label LBL_7, { 1, 2, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
drc_set_usable_15162
drc_set_usable
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, null %1 = icmp eq i1 %0, false store i64 1, i64* %rax.0.reg2mem br i1 %1, label LBL_1, label LBL_4 LBL_1: %2 = ptrtoint i64* %arg1 to i64 %3 = add i64 %2, 8 %4 = inttoptr i64 %3 to i8* %5 = load i8, i8* %4, align 1 %6 = icmp eq i8 %5, 0 %.pre = add i64 %2, 9 %.pre1 = inttoptr i64 %.pre to i8* br i1 %6, label LBL_3, label LBL_2 LBL_2: %7 = load i8, i8* %.pre1, align 1 %8 = icmp eq i8 %7, 0 store i64 1, i64* %rax.0.reg2mem br i1 %8, label LBL_3, label LBL_4 LBL_3: %9 = add i64 %2, 12 %10 = inttoptr i64 %9 to i32* store i32 2, i32* %10, align 4 store i8 0, i8* %.pre1, align 1 store i64 0, i64* %rax.0.reg2mem br label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %2, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_4, { 2, 0, 1 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
ext4_inc_count_8182
ext4_inc_count
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = call i64 @FUNC(i64 %2) %4 = call i64 @FUNC(i64 %2) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 store i64 %4, i64* %rax.0.reg2mem br i1 %6, label LBL_4, label LBL_1 LBL_1: %7 = trunc i64 %1 to i16 %8 = urem i64 %1, 65536 %9 = icmp ult i16 %7, 2 store i64 %8, i64* %rax.0.reg2mem br i1 %9, label LBL_4, label LBL_2 LBL_2: %10 = icmp ne i16 %7, -1 %11 = icmp eq i16 %7, 2 %12 = icmp eq i1 %11, false %or.cond = icmp eq i1 %10, %12 store i64 %8, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_4, label LBL_3 LBL_3: %13 = bitcast i64* %arg2 to i16* store i16 1, i16* %13, align 2 %14 = add i64 %2, 8 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = call i64 @FUNC(i64 %16, i64 1) store i64 %17, i64* %rax.0.reg2mem br label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i16 %7, { 2, 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 } uselistorder label LBL_4, { 1, 0, 2, 3 } }
0
BinRealVul
result_to_network_14642
result_to_network
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = call i32 @htonl(i32 %3) %5 = bitcast i64* %arg1 to i32* store i32 %4, i32* %5, align 4 %6 = add i64 %2, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = call i64 @FUNC(i64 %8) store i64 %9, i64* %7, align 8 ret i64 %9 uselistorder i64 %9, { 1, 0 } uselistorder i32 (i32)* @htonl, { 2, 1, 0 } }
1
BinRealVul
common_end_15233
common_end
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge1.reg2mem = alloca i32 %.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 br i1 %4, label LBL_3, label LBL_1 LBL_1: %5 = ptrtoint i64* %arg1 to i64 %6 = add i64 %5, 8 %7 = inttoptr i64 %6 to i64* store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge1.reg2mem br label LBL_2 LBL_2: %storemerge1.reload = load i32, i32* %storemerge1.reg2mem %.reload = load i64, i64* %.reg2mem %8 = load i64, i64* %7, align 8 %9 = mul i64 %.reload, 8 %10 = add i64 %8, %9 %11 = call i64 @FUNC(i64 %10) %12 = add i32 %storemerge1.reload, 1 %13 = sext i32 %12 to i64 %14 = icmp sgt i64 %3, %13 store i64 %13, i64* %.reg2mem store i32 %12, i32* %storemerge1.reg2mem br i1 %14, label LBL_2, label LBL_3 LBL_3: ret i64 %3 uselistorder i64 %3, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
my_malloc_11139
my_malloc
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: store i32 ptrtoint (i32* @gv_0 to i32), i32* bitcast (i64* @gv_1 to i32*), align 8 %0 = trunc i64 %arg1 to i32 %1 = call i64* @malloc(i32 %0) %2 = ptrtoint i64* %1 to i64 ret i64 %2 }
1
BinRealVul
st_set_trace_file_16600
st_set_trace_file
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 0) %1 = load i8*, i8** @gv_0, align 8 %2 = bitcast i8* %1 to i64* call void @free(i64* %2) %3 = icmp eq i64 %arg1, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_3, label LBL_1 LBL_1: %5 = call i32 @getpid() %6 = zext i32 %5 to i64 %7 = call i32 (i8**, i8*, ...) @asprintf(i8** nonnull @gv_0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64 %6) %8 = icmp slt i32 %7, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_5, label LBL_2 LBL_2: store i8* null, i8** @gv_0, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_6 LBL_3: %10 = inttoptr i64 %arg1 to i8* %11 = call i32 (i8**, i8*, ...) @asprintf(i8** nonnull @gv_0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0), i8* %10) %12 = icmp slt i32 %11, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_5, label LBL_4 LBL_4: store i8* null, i8** @gv_0, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_6 LBL_5: %14 = call i64 @FUNC(i64 1) store i64 1, 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, 3, 2, 1 } uselistorder i32 (i8**, i8*, ...)* @asprintf, { 1, 0 } uselistorder i64 (i64)* @st_set_trace_file_enabled, { 1, 0 } }
1