dataset
stringclasses
3 values
file
stringlengths
7
83
fun_name
stringlengths
2
83
llvm_ir_function
stringlengths
61
121k
label
stringclasses
2 values
BinRealVul
jpc_bitstream_putbit_func_10235
jpc_bitstream_putbit_func
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %6 = ashr exact i64 %sext, 32 %7 = call i64 @FUNC(i64 1000, i64 %6, i64 %3, i64 %4, i64 %2, i64 %1) %8 = and i64 %arg2, 4294967295 %9 = call i64 @FUNC(i64 %5, i64 %8) %sext1 = mul i64 %9, 4294967296 %10 = ashr exact i64 %sext1, 32 %11 = call i64 @FUNC(i64 1000, i64 %10, i64 %8, i64 %4, i64 %2, i64 %1) %12 = and i64 %9, 4294967295 ret i64 %12 uselistorder i64 %9, { 1, 0 } uselistorder i64 %8, { 1, 0 } uselistorder i64 %4, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 (i64, i64, i64, i64, i64, i64)* @JAS_DBGLOG, { 1, 0 } uselistorder i64 %arg2, { 1, 0 } }
0
BinRealVul
bonito_pcihost_class_init_3145
bonito_pcihost_class_init
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = inttoptr i64 %3 to i64* store i64 4198694, i64* %4, align 8 %5 = bitcast i64* %arg1 to i8* store i8 1, i8* %5, align 1 ret i64 %0 }
0
BinRealVul
create_pbuf_6493
create_pbuf
define i64 @FUNC(i64 %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = trunc i64 %arg1 to i16 %1 = icmp ugt i16 %0, -15 %2 = icmp eq i1 %1, false br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64 @FUNC(i64 1397638484, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64 4294967295, i64 0, i64 0) store i64 0, i64* %storemerge.reg2mem br label LBL_4 LBL_2: %4 = add i64 %arg1, 14 %5 = urem i64 %4, 65536 %6 = call i64 @FUNC(i64 %5) %7 = icmp eq i64 %6, 0 store i64 0, i64* %storemerge.reg2mem br i1 %7, label LBL_4, label LBL_3 LBL_3: %sext = mul i64 %arg1, 281474976710656 %8 = ashr exact i64 %sext, 48 %9 = inttoptr i64 %6 to i16* %10 = trunc i64 %8 to i16 store i16 %10, i16* %9, align 2 %11 = add i64 %6, 2 %12 = inttoptr i64 %11 to i16* store i16 10, i16* %12, align 2 %13 = add i64 %6, 14 %14 = trunc i64 %8 to i32 %15 = inttoptr i64 %13 to i64* %16 = bitcast i32* %arg2 to i64* %17 = urem i32 %14, 65536 %18 = call i64* @memcpy(i64* %15, i64* %16, i32 %17) store i64 %6, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 } uselistorder label LBL_4, { 1, 0, 2 } }
0
BinRealVul
set_umask_11273
set_umask
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.in.reg2mem = alloca i32 %sv_0 = alloca i8*, align 8 %0 = inttoptr i64 %arg1 to i8* %1 = call i64 @strtoll(i8* %0, i8** nonnull %sv_0, i32 0) %2 = trunc i64 %1 to i32 %3 = load i8*, i8** %sv_0, align 8 %4 = load i8, i8* %3, align 1 %5 = icmp eq i8 %4, 0 %6 = icmp ult i32 %2, 512 %or.cond5 = icmp eq i1 %6, %5 br i1 %or.cond5, label LBL_2, label LBL_1 LBL_1: %7 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %8 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %7, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i8* %0) store i32 %8, i32* %rax.0.in.reg2mem br label LBL_3 LBL_2: %9 = urem i32 %2, 512 %10 = call i32 @umask(i32 %9) store i8 1, i8* inttoptr (i64 4210761 to i8*), align 1 store i32 %10, i32* %rax.0.in.reg2mem br label LBL_3 LBL_3: %rax.0.in.reload = load i32, i32* %rax.0.in.reg2mem %rax.0 = sext i32 %rax.0.in.reload to i64 ret i64 %rax.0 uselistorder i32* %rax.0.in.reg2mem, { 0, 2, 1 } uselistorder i8 0, { 1, 0 } }
1
BinRealVul
vterm_new_with_allocator_12292
vterm_new_with_allocator
define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg3 to i64 %1 = trunc i64 %arg1 to i32 %2 = trunc i64 %arg2 to i32 %3 = inttoptr i64 %arg4 to i64* store i64 %0, i64* %3, align 8 %4 = add i64 %arg4, 8 %5 = inttoptr i64 %4 to i64* store i64 %arg4, i64* %5, align 8 %6 = add i64 %arg4, 16 %7 = inttoptr i64 %6 to i32* store i32 %1, i32* %7, align 4 %8 = add i64 %arg4, 20 %9 = inttoptr i64 %8 to i32* store i32 %2, i32* %9, align 4 %10 = add i64 %arg4, 24 %11 = inttoptr i64 %10 to i32* store i32 0, i32* %11, align 4 %12 = add i64 %arg4, 32 %13 = inttoptr i64 %12 to i64* store i64 0, i64* %13, align 8 %14 = add i64 %arg4, 40 %15 = inttoptr i64 %14 to i64* store i64 0, i64* %15, align 8 %16 = add i64 %arg4, 48 %17 = inttoptr i64 %16 to i32* store i32 500, i32* %17, align 4 %18 = add i64 %arg4, 52 %19 = inttoptr i64 %18 to i32* store i32 0, i32* %19, align 4 %20 = load i32, i32* %17, align 4 %21 = sext i32 %20 to i64 %22 = call i64 @FUNC(i64 %arg4, i64 %21) %23 = add i64 %arg4, 56 %24 = inttoptr i64 %23 to i64* store i64 %22, i64* %24, align 8 %25 = add i64 %arg4, 64 %26 = inttoptr i64 %25 to i32* store i32 200, i32* %26, align 4 %27 = add i64 %arg4, 68 %28 = inttoptr i64 %27 to i32* store i32 0, i32* %28, align 4 %29 = load i32, i32* %26, align 4 %30 = sext i32 %29 to i64 %31 = call i64 @FUNC(i64 %arg4, i64 %30) %32 = add i64 %arg4, 72 %33 = inttoptr i64 %32 to i64* store i64 %31, i64* %33, align 8 ret i64 %arg4 uselistorder i64 (i64, i64)* @vterm_allocator_malloc, { 1, 0 } }
1
BinRealVul
decode_syncpoint_1086
decode_syncpoint
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = alloca i32 %storemerge.reg2mem = alloca i64 %r8.0.lcssa.reg2mem = alloca i64 %rcx.0.lcssa.reg2mem = alloca i64 %storemerge34.reg2mem = alloca i32 %.reg2mem6 = alloca i64 %.reg2mem = alloca i32 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg1 to i64 %4 = load i32, i32* %1 %5 = add i64 %3, 24 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = call i64 @FUNC(i64 %7) %9 = trunc i64 %8 to i32 %10 = add i32 %9, -8 %11 = add i64 %3, 32 %12 = inttoptr i64 %11 to i32* store i32 %10, i32* %12, align 4 %13 = call i64 @FUNC(i64 %3, i64 %7, i64 1) %14 = call i64 @FUNC(i64 %7) %15 = call i64 @FUNC(i64 %7) %16 = call i64 @FUNC(i64 %7) %17 = add i64 %3, 40 %18 = inttoptr i64 %17 to i64* %19 = load i64, i64* %18, align 8 %20 = add i64 %3, 48 %21 = inttoptr i64 %20 to i32* %22 = load i32, i32* %21, align 4 %23 = sext i32 %22 to i64 %24 = urem i64 %15, %23 %25 = mul i64 %24, 8 %26 = add i64 %25, %19 %27 = inttoptr i64 %26 to i64* %28 = load i64, i64* %27, align 8 %29 = add i64 %7, 8 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = icmp eq i32 %31, 0 store i64 %23, i64* %rcx.0.lcssa.reg2mem br i1 %32, label LBL_4, label LBL_1 LBL_1: %33 = trunc i64 %28 to i32 %34 = add i64 %3, 8 %35 = inttoptr i64 %34 to i64* store i32 %22, i32* %.reg2mem store i64 0, i64* %.reg2mem6 store i32 0, i32* %storemerge34.reg2mem br label LBL_2 LBL_2: %storemerge34.reload = load i32, i32* %storemerge34.reg2mem %.reload7 = load i64, i64* %.reg2mem6 %.reload = load i32, i32* %.reg2mem %36 = load i64, i64* %35, align 8 %37 = mul i64 %.reload7, 16 %38 = add i64 %36, %37 %39 = inttoptr i64 %38 to i32* %40 = load i32, i32* %39, align 4 %41 = mul i32 %40, %4 %42 = zext i32 %41 to i64 %43 = add i64 %38, 4 %44 = inttoptr i64 %43 to i32* %45 = load i32, i32* %44, align 4 %46 = mul i32 %45, %33 %47 = zext i32 %46 to i64 %48 = sext i32 %.reload to i64 %49 = udiv i64 %15, %48 %50 = call i64 @FUNC(i64 %49, i64 %47, i64 %42, i64 0) %51 = add i64 %38, 8 %52 = inttoptr i64 %51 to i64* store i64 %50, i64* %52, align 8 %53 = add i32 %storemerge34.reload, 1 %54 = load i32, i32* %30, align 4 %55 = zext i32 %54 to i64 %56 = sext i32 %53 to i64 %57 = icmp slt i64 %56, %55 store i64 0, i64* %rcx.0.lcssa.reg2mem store i64 %42, i64* %r8.0.lcssa.reg2mem br i1 %57, label LBL_2.LBL_2_crit_edge, label LBL_4 LBL_3: %.pre = load i32, i32* %21, align 4 store i32 %.pre, i32* %.reg2mem store i64 %56, i64* %.reg2mem6 store i32 %53, i32* %storemerge34.reg2mem br label LBL_2 LBL_4: %58 = add i64 %14, %13 %r8.0.lcssa.reload = load i64, i64* %r8.0.lcssa.reg2mem %rcx.0.lcssa.reload = load i64, i64* %rcx.0.lcssa.reg2mem %59 = call i64 @FUNC(i64 %7, i64 %58) %60 = trunc i64 %59 to i32 %61 = icmp eq i32 %60, 0 %62 = icmp eq i1 %61, false br i1 %62, label LBL_6, label LBL_5 LBL_5: %63 = call i64 @FUNC(i64 %7) %64 = trunc i64 %63 to i32 %65 = icmp eq i32 %64, 0 store i64 0, i64* %storemerge.reg2mem br i1 %65, label LBL_7, label LBL_6 LBL_6: %66 = call i64 @FUNC(i64 %7, i64 0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i64 %rcx.0.lcssa.reload, i64 %r8.0.lcssa.reload, i64 %2) store i64 4294967295, i64* %storemerge.reg2mem br label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %38, { 1, 0, 2 } uselistorder i32* %30, { 1, 0 } uselistorder i64 %7, { 1, 0, 2, 3, 4, 5, 6, 7, 8 } uselistorder i32* %.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem6, { 1, 0, 2 } uselistorder i32* %storemerge34.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 0, { 11, 9, 10, 0, 1, 12, 2, 3, 4, 5, 6, 7, 8, 13 } uselistorder i32 0, { 2, 3, 0, 1 } uselistorder i64 8, { 1, 2, 3, 0 } uselistorder i64 (i64)* @get_v, { 1, 0 } uselistorder i64 (i64)* @url_ftell, { 1, 0 } uselistorder label LBL_7, { 1, 0 } }
0
BinRealVul
pca9532_configure_7688
pca9532_configure
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %storemerge118.reg2mem = alloca i32 %sv_0.2.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %indvars.iv28.reg2mem = alloca i64 %0 = ptrtoint i64* %arg3 to i64 %1 = ptrtoint i64* %arg2 to i64 %2 = ptrtoint i64* %arg1 to i64 store i64 0, i64* %indvars.iv28.reg2mem br label LBL_1 LBL_1: %indvars.iv28.reload = load i64, i64* %indvars.iv28.reg2mem %3 = mul i64 %indvars.iv28.reload, 4 %4 = add i64 %3, %0 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = add i64 %3, %1 %8 = inttoptr i64 %7 to i32* store i32 %6, i32* %8, align 4 %9 = add i64 %4, 8 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = add i64 %7, 8 %13 = inttoptr i64 %12 to i32* store i32 %11, i32* %13, align 4 %14 = load i32, i32* %8, align 4 %15 = call i64 @FUNC(i64 %2, i64 %indvars.iv28.reload, i32 %14) %16 = load i32, i32* %13, align 4 %17 = add nuw nsw i64 %indvars.iv28.reload, 2 %18 = call i64 @FUNC(i64 %2, i64 %17, i32 %16) %indvars.iv.next29 = add nuw nsw i64 %indvars.iv28.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next29, 2 store i64 %indvars.iv.next29, i64* %indvars.iv28.reg2mem br i1 %exitcond, label LBL_2, label LBL_1 LBL_2: %19 = add i64 %1, 1040 %20 = inttoptr i64 %19 to i64* store i64 0, i64* %indvars.iv.reg2mem br label LBL_3 LBL_3: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %21 = mul i64 %indvars.iv.reload, 64 %22 = or i64 %21, 16 %23 = add i64 %22, %1 %24 = add i64 %22, %0 %25 = inttoptr i64 %23 to i64* store i64 %2, i64* %25, align 8 %26 = add i64 %23, 8 %27 = inttoptr i64 %26 to i32* %28 = trunc i64 %indvars.iv.reload to i32 store i32 %28, i32* %27, align 4 %29 = add i64 %24, 12 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = add i64 %23, 12 %33 = inttoptr i64 %32 to i32* store i32 %31, i32* %33, align 4 %34 = icmp eq i32 %31, 2 br i1 %34, label LBL_8, label LBL_4 LBL_4: %35 = icmp sgt i32 %31, 2 %36 = icmp eq i32 %31, 0 %or.cond = or i1 %35, %36 %37 = icmp eq i32 %31, 1 %38 = icmp eq i1 %37, false %or.cond5 = or i1 %or.cond, %38 br i1 %or.cond5, label LBL_11, label LBL_5 LBL_5: %39 = add i64 %24, 16 %40 = inttoptr i64 %39 to i32* %41 = load i32, i32* %40, align 4 %42 = add i64 %23, 16 %43 = inttoptr i64 %42 to i32* store i32 %41, i32* %43, align 4 %44 = add i64 %24, 24 %45 = inttoptr i64 %44 to i64* %46 = load i64, i64* %45, align 8 %47 = add i64 %23, 24 %48 = inttoptr i64 %47 to i64* store i64 %46, i64* %48, align 8 %49 = add i64 %23, 32 %50 = inttoptr i64 %49 to i64* store i64 %46, i64* %50, align 8 %51 = add i64 %23, 40 %52 = inttoptr i64 %51 to i32* store i32 0, i32* %52, align 4 %53 = add i64 %23, 48 %54 = inttoptr i64 %53 to i64* store i64 4198926, i64* %54, align 8 %55 = add i64 %23, 56 %56 = inttoptr i64 %55 to i64* store i64 4198941, i64* %56, align 8 %57 = call i64 @FUNC(i64 %2, i64 %49) %58 = trunc i64 %57 to i32 %59 = icmp slt i32 %58, 0 %60 = icmp eq i1 %59, false br i1 %60, label LBL_7, label LBL_6 LBL_6: %61 = load i64, i64* %48, align 8 %62 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %61) store i64 0, i64* %sv_0.2.reg2mem br label LBL_12 LBL_7: %63 = call i64 @FUNC(i64 %23) br label LBL_11 LBL_8: %64 = add i64 %23, 16 %65 = inttoptr i64 %64 to i32* store i32 1, i32* %65, align 4 %66 = call i64 @FUNC(i64 %23) %67 = call i64 @FUNC() store i64 %67, i64* %20, align 8 %68 = icmp eq i64 %67, 0 %69 = icmp eq i1 %68, false store i64 4294967284, i64* %sv_0.2.reg2mem br i1 %69, label LBL_9, label LBL_12 LBL_9: %70 = add i64 %24, 24 %71 = inttoptr i64 %70 to i64* %72 = load i64, i64* %71, align 8 %73 = inttoptr i64 %67 to i64* store i64 %72, i64* %73, align 8 %74 = load i64, i64* %20, align 8 %75 = add i64 %74, 8 %76 = inttoptr i64 %75 to i64* store i64 ptrtoint ([12 x i8]* @gv_1 to i64), i64* %76, align 8 %77 = load i64, i64* %20, align 8 %78 = add i64 %77, 16 %79 = inttoptr i64 %78 to i32* store i32 0, i32* %79, align 4 %80 = load i64, i64* %20, align 8 %81 = add i64 %80, 20 %82 = inttoptr i64 %81 to i32* store i32 31, i32* %82, align 4 %83 = load i64, i64* %20, align 8 %84 = add i64 %83, 24 %85 = inttoptr i64 %84 to i32* store i32 1, i32* %85, align 4 %86 = load i64, i64* %20, align 8 %87 = add i64 %86, 28 %88 = inttoptr i64 %87 to i32* store i32 256, i32* %88, align 4 %89 = load i64, i64* %20, align 8 %90 = add i64 %89, 32 %91 = inttoptr i64 %90 to i32* store i32 1, i32* %91, align 4 %92 = load i64, i64* %20, align 8 %93 = add i64 %92, 36 %94 = inttoptr i64 %93 to i32* store i32 3, i32* %94, align 4 %95 = load i64, i64* %20, align 8 %96 = add i64 %95, 40 %97 = inttoptr i64 %96 to i64* store i64 4198956, i64* %97, align 8 %98 = load i64, i64* %20, align 8 %99 = call i64 @FUNC(i64 %98, i64 %1) %100 = load i64, i64* %20, align 8 %101 = call i64 @FUNC(i64 %100) %102 = trunc i64 %101 to i32 %103 = icmp eq i32 %102, 0 br i1 %103, label LBL_11, label LBL_10 LBL_10: %104 = load i64, i64* %20, align 8 %105 = call i64 @FUNC(i64 %104) store i64 0, i64* %20, align 8 %phitmp = and i64 %101, 4294967295 store i64 %phitmp, i64* %sv_0.2.reg2mem br label LBL_12 LBL_11: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %106 = icmp ult i64 %indvars.iv.next, 16 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %106, label LBL_3, label LBL_20 LBL_12: %sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem %107 = icmp slt i32 %28, 1 store i64 %sv_0.2.reload, i64* %storemerge.reg2mem br i1 %107, label LBL_20, label LBL_13 LBL_13: %storemerge117 = add i32 %28, -1 %108 = add i64 %1, 28 store i32 %storemerge117, i32* %storemerge118.reg2mem br label LBL_14 LBL_14: %storemerge118.reload = load i32, i32* %storemerge118.reg2mem %109 = sext i32 %storemerge118.reload to i64 %110 = mul i64 %109, 64 %111 = add i64 %108, %110 %112 = inttoptr i64 %111 to i32* %113 = load i32, i32* %112, align 4 %114 = icmp eq i32 %113, 2 br i1 %114, label LBL_17, label LBL_15 LBL_15: %115 = icmp sgt i32 %113, 2 %116 = icmp eq i32 %113, 0 %or.cond6 = or i1 %115, %116 %117 = icmp eq i32 %113, 1 %118 = icmp eq i1 %117, false %or.cond8 = or i1 %or.cond6, %118 br i1 %or.cond8, label LBL_19, label LBL_16 LBL_16: %119 = or i64 %110, 48 %120 = add i64 %119, %1 %121 = call i64 @FUNC(i64 %120) br label LBL_19 LBL_17: %122 = load i64, i64* %20, align 8 %123 = icmp eq i64 %122, 0 br i1 %123, label LBL_19, label LBL_18 LBL_18: %124 = call i64 @FUNC(i64 %122) %125 = load i64, i64* %20, align 8 %126 = call i64 @FUNC(i64 %125) store i64 0, i64* %20, align 8 br label LBL_19 LBL_19: %storemerge1 = add i32 %storemerge118.reload, -1 %127 = icmp slt i32 %storemerge1, 0 %128 = icmp eq i1 %127, false store i32 %storemerge1, i32* %storemerge118.reg2mem store i64 %sv_0.2.reload, i64* %storemerge.reg2mem br i1 %128, label LBL_14, label LBL_20 LBL_20: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %storemerge118.reload, { 1, 0 } uselistorder i64 %67, { 1, 0, 2 } uselistorder i64 %24, { 2, 0, 1, 3 } uselistorder i64 %23, { 7, 8, 0, 1, 2, 3, 4, 5, 6, 9, 10, 11 } uselistorder i64* %20, { 2, 1, 0, 4, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 } uselistorder i64 %3, { 1, 0 } uselistorder i64 %1, { 0, 3, 4, 1, 5, 2 } uselistorder i64* %indvars.iv28.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.2.reg2mem, { 0, 3, 1, 2 } uselistorder i32* %storemerge118.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 3, 1 } uselistorder i32 -1, { 1, 0 } uselistorder i64 (i64)* @input_free_device, { 1, 0 } uselistorder i64 (i64)* @pca9532_setled, { 1, 0 } uselistorder i1 false, { 2, 0, 3, 4, 1 } uselistorder i32 0, { 2, 0, 3, 4, 5, 6, 1 } uselistorder i32 2, { 2, 0, 3, 1 } uselistorder i64 16, { 0, 2, 3, 4, 5, 1 } uselistorder i64 1, { 1, 0 } uselistorder i64 (i64, i64, i32)* @i2c_smbus_write_byte_data, { 1, 0 } uselistorder i64 8, { 2, 3, 0, 1 } uselistorder i64 0, { 10, 11, 0, 12, 13, 1, 7, 8, 2, 3, 4, 5, 6, 9 } uselistorder label LBL_20, { 1, 2, 0 } uselistorder label LBL_19, { 1, 0, 2, 3 } uselistorder label LBL_14, { 1, 0 } uselistorder label LBL_12, { 1, 0, 2 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
X264_close_1860
X264_close
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = call i64 @FUNC(i64 %1) %3 = call i64 @FUNC(i64 %1) %4 = icmp eq i64 %1, 0 br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = call i64 @FUNC(i64 %1) store i64 0, i64* %arg1, align 8 br label LBL_2 LBL_2: %6 = add i64 %0, 16 %7 = call i64 @FUNC(i64 %6) ret i64 0 uselistorder i64 %1, { 0, 2, 1, 3 } uselistorder i64 (i64)* @av_freep, { 1, 0 } }
0
reposvul_c_test
verify_peername_199
verify_peername
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem8 = alloca %addrinfo* %.reg2mem = alloca i32 %storemerge4.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %sv_0 = alloca %addrinfo*, align 8 %sv_1 = alloca i64, align 8 %4 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 48) %5 = inttoptr i64 %arg1 to i8* %6 = bitcast i64* %sv_1 to %addrinfo* %7 = call i32 @getaddrinfo(i8* %5, i8* null, %addrinfo* nonnull %6, %addrinfo** nonnull %sv_0) %8 = icmp eq i32 %7, 0 br i1 %8, label LBL_2, label LBL_1 LBL_1: %9 = ptrtoint %addrinfo** %sv_0 to i64 %10 = call i8* @gai_strerror(i32 %7) %11 = ptrtoint i8* %10 to i64 %12 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64 %11, i64 %9, i64 %2, i64 %1) store i64 0, i64* %rax.0.reg2mem br label LBL_20 LBL_2: %13 = ptrtoint i64* %arg2 to i64 %14 = trunc i64 %3 to i16 %15 = icmp eq i16 %14, 10 %16 = icmp eq i1 %15, false br i1 %16, label LBL_4, label LBL_3 LBL_3: %17 = add i64 %13, 40 %18 = inttoptr i64 %17 to i64* %19 = call i32 @memcmp(i64* %18, i64* nonnull @gv_1, i32 12) %20 = icmp eq i32 %19, 0 %21 = icmp eq i1 %20, false store i32 1, i32* %storemerge2.reg2mem br i1 %21, label LBL_4, label LBL_5 LBL_4: store i32 0, i32* %storemerge2.reg2mem br label LBL_5 LBL_5: %22 = load %addrinfo*, %addrinfo** %sv_0, align 8 %23 = icmp eq %addrinfo* %22, null %24 = icmp eq i1 %23, false store %addrinfo* %22, %addrinfo** %.reg2mem8 br i1 %24, label LBL_6, label LBL_18 LBL_6: %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %25 = ptrtoint %addrinfo* %22 to i64 %26 = icmp eq i16 %14, 2 %27 = icmp eq i1 %26, false %28 = add i64 %13, 20 %29 = inttoptr i64 %28 to i64* %30 = add i64 %13, 40 %31 = inttoptr i64 %30 to i64* %32 = icmp eq i32 %storemerge2.reload, 0 %33 = add i64 %13, 52 %34 = inttoptr i64 %33 to i64* store i64 %25, i64* %storemerge4.reg2mem br label LBL_7 LBL_7: %storemerge4.reload = load i64, i64* %storemerge4.reg2mem br i1 %27, label LBL_10, label LBL_8 LBL_8: %35 = add i64 %storemerge4.reload, 4 %36 = inttoptr i64 %35 to i32* %37 = load i32, i32* %36, align 4 %38 = icmp eq i32 %37, 2 %39 = icmp eq i1 %38, false br i1 %39, label LBL_10, label LBL_9 LBL_9: %40 = add i64 %storemerge4.reload, 24 %41 = inttoptr i64 %40 to i64* %42 = load i64, i64* %41, align 8 %43 = add i64 %42, 4 %44 = inttoptr i64 %43 to i64* %45 = call i32 @memcmp(i64* %44, i64* %29, i32 4) %46 = icmp eq i32 %45, 0 br i1 %46, label LBL_19, label LBL_10 LBL_10: br i1 %16, label LBL_16, label LBL_11 LBL_11: %47 = add i64 %storemerge4.reload, 4 %48 = inttoptr i64 %47 to i32* %49 = load i32, i32* %48, align 4 %50 = icmp eq i32 %49, 10 %51 = icmp eq i1 %50, false store i32 %49, i32* %.reg2mem br i1 %51, label LBL_14, label LBL_12 LBL_12: %52 = add i64 %storemerge4.reload, 24 %53 = inttoptr i64 %52 to i64* %54 = load i64, i64* %53, align 8 %55 = add i64 %54, 8 %56 = inttoptr i64 %55 to i64* %57 = call i32 @memcmp(i64* %56, i64* %31, i32 16) %58 = icmp eq i32 %57, 0 br i1 %58, label LBL_19, label LBL_12.LBL_14_crit_edge LBL_13: %.pre = load i32, i32* %48, align 4 store i32 %.pre, i32* %.reg2mem br label LBL_14 LBL_14: %.reload = load i32, i32* %.reg2mem %59 = icmp eq i32 %.reload, 2 %60 = icmp eq i1 %59, false %or.cond = or i1 %32, %60 br i1 %or.cond, label LBL_16, label LBL_15 LBL_15: %61 = add i64 %storemerge4.reload, 24 %62 = inttoptr i64 %61 to i64* %63 = load i64, i64* %62, align 8 %64 = add i64 %63, 4 %65 = inttoptr i64 %64 to i64* %66 = call i32 @memcmp(i64* %65, i64* %34, i32 4) %67 = icmp eq i32 %66, 0 br i1 %67, label LBL_19, label LBL_16 LBL_16: %68 = add i64 %storemerge4.reload, 40 %69 = inttoptr i64 %68 to i64* %70 = load i64, i64* %69, align 8 %71 = icmp eq i64 %70, 0 %72 = icmp eq i1 %71, false store i64 %70, i64* %storemerge4.reg2mem br i1 %72, label LBL_7, label LBL_17 LBL_17: %.pre7 = load %addrinfo*, %addrinfo** %sv_0, align 8 store %addrinfo* %.pre7, %addrinfo** %.reg2mem8 br label LBL_18 LBL_18: %.reload9 = load %addrinfo*, %addrinfo** %.reg2mem8 call void @freeaddrinfo(%addrinfo* %.reload9) store i64 0, i64* %rax.0.reg2mem br label LBL_20 LBL_19: %73 = load %addrinfo*, %addrinfo** %sv_0, align 8 call void @freeaddrinfo(%addrinfo* %73) %74 = call i64 @FUNC(i64 %arg1, i64 0) store i64 %74, i64* %rax.0.reg2mem br label LBL_20 LBL_20: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %storemerge4.reload, { 5, 4, 1, 0, 2, 3 } uselistorder %addrinfo* %22, { 2, 0, 1 } uselistorder i16 %14, { 1, 0 } uselistorder i64 %13, { 3, 2, 1, 0 } uselistorder %addrinfo** %sv_0, { 1, 0, 3, 2, 4 } uselistorder i32* %storemerge2.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge4.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem, { 0, 2, 1 } uselistorder %addrinfo** %.reg2mem8, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i32 (i64*, i64*, i32)* @memcmp, { 3, 2, 1, 0 } uselistorder i1 false, { 5, 1, 2, 3, 4, 0, 6, 7 } uselistorder i32 0, { 3, 4, 5, 1, 0, 6, 7, 2 } uselistorder label LBL_20, { 1, 0, 2 } uselistorder label LBL_16, { 1, 2, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_5, { 1, 0 } }
0
BinRealVul
breakpoint_invalidate_14552
breakpoint_invalidate
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0, i64 %arg2) %2 = call i64 @FUNC(i64 %1) ret i64 %2 }
1
BinRealVul
build_tablename_5549
build_tablename
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = ptrtoint i64* %arg1 to i64 %2 = load i64, i64* %0 %sv_0 = alloca i8*, align 8 %3 = call i64 @FUNC(i64 %arg3) %4 = bitcast i8** %sv_0 to i64* %5 = call i64 @FUNC(i64 %3, i64* nonnull @gv_0, i64* nonnull %4) %6 = icmp eq i64 %5, 0 %7 = icmp eq i1 %6, false %spec.select = select i1 %7, i64 %5, i64 %arg3 %8 = inttoptr i64 %spec.select to i8* %9 = call i32 @strlen(i8* %8) %10 = sext i32 %9 to i64 %11 = call i64 @FUNC(i64 %spec.select, i64 %10) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false br i1 %14, label LBL_2, label LBL_1 LBL_1: %15 = call i64 @FUNC(i64 %1, i64 %spec.select, i64 %10) %16 = call i64 @FUNC(i64 %2) br label LBL_2 LBL_2: %17 = load i8*, i8** %sv_0, align 8 %18 = icmp eq i8* %17, null br i1 %18, label LBL_7, label LBL_3 LBL_3: %19 = load i8, i8* %17, align 1 %20 = icmp eq i8 %19, 0 br i1 %20, label LBL_7, label LBL_4 LBL_4: %21 = call i32 @strlen(i8* nonnull %17) %22 = sext i32 %21 to i64 %23 = load i8*, i8** %sv_0, align 8 %24 = ptrtoint i8* %23 to i64 %25 = call i64 @FUNC(i64 %24, i64 %22) %26 = trunc i64 %25 to i32 %27 = icmp eq i32 %26, 0 %28 = icmp eq i1 %27, false br i1 %28, label LBL_6, label LBL_5 LBL_5: %29 = call i64 @FUNC(i64 %1, i64 46) %30 = load i8*, i8** %sv_0, align 8 %31 = ptrtoint i8* %30 to i64 %32 = call i64 @FUNC(i64 %1, i64 %31, i64 %22) br label LBL_7 LBL_6: %33 = load i8*, i8** %sv_0, align 8 %34 = ptrtoint i8* %33 to i64 %35 = call i64 @FUNC(i64 %arg2, i64 %34, i64 %22) %36 = call i64 @FUNC(i64 %1, i64 46) %37 = call i64 @FUNC(i64 %1, i64 %35) %38 = call i64 @FUNC(i64 %35) br label LBL_7 LBL_7: %39 = call i64 @FUNC(i64 %3) ret i64 %39 uselistorder i64 %22, { 1, 0, 2 } uselistorder i64 %spec.select, { 2, 0, 1 } uselistorder i8** %sv_0, { 3, 2, 1, 0, 4 } uselistorder i64 %1, { 4, 3, 2, 1, 0 } uselistorder i64 (i64, i64)* @smart_str_appendc, { 1, 0 } uselistorder i64 (i64)* @PGSQLfree, { 1, 0 } uselistorder i64 (i64, i64, i64)* @smart_str_appendl, { 2, 1, 0 } uselistorder i64 (i64, i64)* @_php_pgsql_detect_identifier_escape, { 1, 0 } uselistorder i32 (i8*)* @strlen, { 2, 1, 0 } }
0
BinRealVul
mem_log_init_10975
mem_log_init
define i64 @FUNC(i64 %arg1, i8* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = call i64 @FUNC(i64 0, i64* nonnull @gv_0) %6 = trunc i64 %5 to i32 %7 = icmp eq i32 %6, 0 br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %9 = ptrtoint %_IO_FILE* %8 to i64 store %_IO_FILE* %8, %_IO_FILE** @gv_2, align 8 store i64 %9, i64* %rax.0.reg2mem br label LBL_10 LBL_2: %10 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8 %11 = icmp eq %_IO_FILE* %10, null br i1 %11, label LBL_4, label LBL_3 LBL_3: %12 = call i32 @fclose(%_IO_FILE* nonnull %10) br label LBL_4 LBL_4: %13 = inttoptr i64 %arg1 to i8* %14 = call i32 @strlen(i8* %13) %15 = add i32 %14, 22 %16 = call i64* @malloc(i32 %15) %17 = icmp eq i64* %16, null %18 = icmp eq i1 %17, false br i1 %18, label LBL_6, label LBL_5 LBL_5: %19 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_3, i64 0, i64 0), i64 %3, i64 %4, i64 %2, i64 %1) %20 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %21 = ptrtoint %_IO_FILE* %20 to i64 store %_IO_FILE* %20, %_IO_FILE** @gv_2, align 8 store i64 %21, i64* %rax.0.reg2mem br label LBL_10 LBL_6: %22 = bitcast i64* %16 to i8* %23 = call i32 @getpid() %24 = zext i32 %23 to i64 %25 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %22, i32 %15, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_4, i64 0, i64 0), i8* %13, i64 %24) %26 = call %_IO_FILE* @fopen(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_5, i64 0, i64 0)) store %_IO_FILE* %26, %_IO_FILE** @gv_2, align 8 %27 = icmp eq %_IO_FILE* %26, null %28 = icmp eq i1 %27, false br i1 %28, label LBL_8, label LBL_7 LBL_7: %29 = ptrtoint i64* %16 to i64 %30 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_6, i64 0, i64 0), i64 %29, i64 %arg1, i64 %24, i64 %1) %31 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %32 = ptrtoint %_IO_FILE* %31 to i64 store i64 %32, i64* bitcast (%_IO_FILE** @gv_2 to i64*), align 8 br label LBL_9 LBL_8: %33 = call i32 @fileno(%_IO_FILE* %26) %34 = call i32 (i32, i32, ...) @fcntl(i32 %33, i32 1) %35 = call i32 (i32, i32, ...) @fcntl(i32 %33, i32 2) %36 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8 call void @setlinebuf(%_IO_FILE* %36) %37 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8 %38 = call i32 @fputc(i32 10, %_IO_FILE* %37) br label LBL_9 LBL_9: call void @free(i64* %16) %39 = ptrtoint i8* %arg2 to i64 store i64 %39, i64* @gv_7, align 8 store i64 %39, 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 i8* %22, { 1, 0 } uselistorder i64* %16, { 0, 1, 3, 2 } uselistorder i32 %15, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i32 (i32, i32, ...)* @fcntl, { 1, 0 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @log_message, { 1, 0 } uselistorder %_IO_FILE** @gv_2, { 7, 6, 0, 5, 4, 3, 2, 1 } uselistorder %_IO_FILE** @gv_1, { 0, 2, 1 } uselistorder i32 1, { 6, 4, 3, 7, 2, 0, 5, 1 } }
1
BinRealVul
rxrpc_kernel_retry_call_17466
rxrpc_kernel_retry_call
define i64 @FUNC(i64* %arg1, i32* %arg2, i32* %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %r8.0.reg2mem = alloca i64 %rdx.0.reg2mem = alloca i64 %rcx.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 = ptrtoint i64* %arg4 to i64 %5 = ptrtoint i32* %arg2 to i64 %6 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %7 = call i64 @FUNC(i64 %6) %8 = inttoptr i64 %7 to i32* %9 = add i64 %5, 4 %10 = call i64 @FUNC(i64 %9) %11 = and i64 %10, 4294967295 %12 = and i64 %3, 4294967295 %13 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i64 %12, i64 %11, i64 %4, i64 %2, i64 %1) %14 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 32) %15 = load i32, i32* %8, align 4 %16 = sext i32 %15 to i64 store i64 %16, i64* %sv_1, align 8 %17 = add i64 %5, 8 %18 = call i64 @FUNC(i64 %17) %19 = call i64 @FUNC(i64 %7, i64 %5) %20 = trunc i64 %19 to i32 %21 = icmp eq i32 %20, 0 %22 = icmp eq i1 %21, false store i64 %19, i64* %sv_0.0.reg2mem store i64 %4, i64* %rcx.0.reg2mem store i64 %5, i64* %rdx.0.reg2mem br i1 %22, label LBL_2, label LBL_1 LBL_1: %23 = ptrtoint i32* %arg3 to i64 %24 = ptrtoint i64* %sv_1 to i64 %25 = call i64 @FUNC(i64 %7, i64 %5, i64* nonnull %sv_1, i64 %23, i64 0) store i64 %25, i64* %sv_0.0.reg2mem store i64 %23, i64* %rcx.0.reg2mem store i64 %24, i64* %rdx.0.reg2mem store i64 0, i64* %r8.0.reg2mem br label LBL_2 LBL_2: %r8.0.reload = load i64, i64* %r8.0.reg2mem %rdx.0.reload = load i64, i64* %rdx.0.reg2mem %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %26 = call i64 @FUNC(i64 %17) %27 = and i64 %sv_0.0.reload, 4294967295 %28 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %27, i64 %rdx.0.reload, i64 %rcx.0.reload, i64 %r8.0.reload, i64 %1) ret i64 %27 uselistorder i64 %27, { 1, 0 } uselistorder i64* %sv_1, { 0, 2, 3, 1 } uselistorder i64 %5, { 1, 0, 3, 2, 4 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i32 0, { 1, 0 } }
1
BinRealVul
url_is_local_not_ssh_5751
url_is_local_not_ssh
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = inttoptr i64 %arg1 to i8* %1 = call i8* @strchr(i8* %0, i32 58) %2 = call i8* @strchr(i8* %0, i32 47) %3 = icmp eq i8* %1, null store i64 1, i64* %storemerge.reg2mem br i1 %3, label LBL_5, label LBL_1 LBL_1: %4 = icmp ne i8* %2, null %5 = icmp ult i8* %2, %1 %or.cond = icmp eq i1 %4, %5 store i64 1, i64* %storemerge.reg2mem br i1 %or.cond, label LBL_5, label LBL_2 LBL_2: %6 = call i64 @FUNC(i64 %arg1) %7 = trunc i64 %6 to i32 %8 = icmp eq i32 %7, 0 br i1 %8, label LBL_4, label LBL_3 LBL_3: %9 = call i64 @FUNC(i64 %arg1) %10 = trunc i64 %9 to i32 %11 = icmp eq i32 %10, 0 store i64 1, i64* %storemerge.reg2mem br i1 %11, 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 i64* %storemerge.reg2mem, { 0, 4, 3, 1, 2 } uselistorder i64 1, { 2, 0, 1 } uselistorder label LBL_5, { 3, 2, 0, 1 } }
0
BinRealVul
dlt_filter_load_7190
dlt_filter_load
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i8, align 1 %sv_3 = alloca i64, align 8 %5 = icmp ne i64* %arg1, null %6 = icmp eq i64 %arg2, 0 %7 = icmp eq i1 %6, false %or.cond6 = icmp eq i1 %5, %7 store i64 4294967294, i64* %rax.0.reg2mem br i1 %or.cond6, label LBL_1, label LBL_18 LBL_1: %8 = zext i32 %arg3 to i64 %9 = call i64 @FUNC(i64 %8) %10 = inttoptr i64 %arg2 to i8* %11 = call %_IO_FILE* @fopen(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0)) %12 = icmp eq %_IO_FILE* %11, null %13 = icmp eq i1 %12, false br i1 %13, label LBL_3, label LBL_2 LBL_2: %14 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), i64 %arg2, i64 %4, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_18 LBL_3: %15 = bitcast i64* %sv_3 to i8* %16 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0), i8 37, i64 255) %17 = bitcast i64* %arg1 to i32* store i32 0, i32* %17, align 4 %18 = call i32 @feof(%_IO_FILE* %11) %19 = icmp eq i32 %18, 0 br i1 %19, label LBL_4, label LBL_17 LBL_4: %20 = ptrtoint i64* %arg1 to i64 %21 = trunc i64 %3 to i32 %22 = bitcast i8* %sv_2 to i64* %23 = ptrtoint i64* %sv_3 to i64 %24 = icmp sgt i32 %21, 99 br label LBL_5 LBL_5: store i8 0, i8* %sv_2, align 1 %25 = call i32 (%_IO_FILE*, i8*, ...) @fscanf(%_IO_FILE* %11, i8* nonnull %15) %26 = icmp eq i32 %25, 1 %27 = icmp eq i1 %26, false %28 = load i8, i8* %sv_2, align 1 %29 = icmp eq i8 %28, 0 %or.cond = or i1 %27, %29 br i1 %or.cond, label LBL_17, label LBL_6 LBL_6: %30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_3, i64 0, i64 0), i8* nonnull %sv_2) %31 = call i32 @strcmp(i8* nonnull %sv_2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0)) %32 = icmp eq i32 %31, 0 %33 = icmp eq i1 %32, false br i1 %33, label LBL_8, label LBL_7 LBL_7: %34 = call i64 @FUNC(i64* nonnull %sv_1, i64* nonnull @gv_5) br label LBL_9 LBL_8: %35 = call i64 @FUNC(i64* nonnull %sv_1, i64* nonnull %22) br label LBL_9 LBL_9: store i8 0, i8* %sv_2, align 1 %36 = call i32 (%_IO_FILE*, i8*, ...) @fscanf(%_IO_FILE* %11, i8* nonnull %15) %37 = icmp eq i32 %36, 1 %38 = icmp eq i1 %37, false %39 = load i8, i8* %sv_2, align 1 %40 = icmp eq i8 %39, 0 %or.cond4 = or i1 %38, %40 br i1 %or.cond4, label LBL_17, label LBL_10 LBL_10: %41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_6, i64 0, i64 0), i8* nonnull %sv_2) %42 = call i32 @strcmp(i8* nonnull %sv_2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0)) %43 = icmp eq i32 %42, 0 %44 = icmp eq i1 %43, false br i1 %44, label LBL_12, label LBL_11 LBL_11: %45 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull @gv_5) br label LBL_13 LBL_12: %46 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull %22) br label LBL_13 LBL_13: br i1 %24, label LBL_16, label LBL_14 LBL_14: %47 = call i64 @FUNC(i64 %20, i64* nonnull %sv_1, i64* nonnull %sv_0, i32 %arg3) br label LBL_15 LBL_15: %48 = call i32 @feof(%_IO_FILE* %11) %49 = icmp eq i32 %48, 0 br i1 %49, label LBL_5, label LBL_17 LBL_16: %50 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @gv_7, i64 0, i64 0), i64 100, i64 %23, i64 %2, i64 %1) br label LBL_15 LBL_17: %51 = call i32 @fclose(%_IO_FILE* %11) store i64 0, i64* %rax.0.reg2mem br label LBL_18 LBL_18: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder %_IO_FILE* %11, { 2, 4, 1, 3, 0, 5 } uselistorder i64* %sv_3, { 1, 0 } uselistorder i8* %sv_2, { 2, 3, 0, 7, 5, 6, 1, 8, 4 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 (i64*, i64*)* @dlt_set_id, { 3, 2, 1, 0 } uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 } uselistorder i32 (i8*, ...)* @printf, { 1, 0 } uselistorder i32 (%_IO_FILE*, i8*, ...)* @fscanf, { 1, 0 } uselistorder i8 0, { 0, 3, 1, 4, 5, 2 } uselistorder i32 (%_IO_FILE*)* @feof, { 1, 0 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @dlt_vlog, { 1, 0 } uselistorder i1 false, { 1, 2, 3, 4, 5, 0 } uselistorder i64 %arg2, { 1, 2, 0 } uselistorder i64* %arg1, { 2, 0, 1 } uselistorder label LBL_18, { 1, 2, 0 } uselistorder label LBL_17, { 0, 2, 1, 3 } uselistorder label LBL_15, { 1, 0 } uselistorder label LBL_5, { 1, 0 } }
0
BinRealVul
EC_GROUP_clear_free_13778
EC_GROUP_clear_free
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = icmp eq i64 %arg1, 0 br i1 %0, label LBL_8, label LBL_1 LBL_1: %1 = add i64 %arg1, 8 %2 = call i64 @FUNC(i64 %1) %3 = add i64 %arg1, 24 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = icmp eq i64 %5, 0 br i1 %6, label LBL_3, label LBL_2 LBL_2: %7 = call i64 @FUNC(i64 %1) br label LBL_3 LBL_3: %8 = add i64 %arg1, 16 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = icmp eq i64 %10, 0 br i1 %11, label LBL_5, label LBL_4 LBL_4: %12 = call i64 @FUNC(i64 %10) br label LBL_5 LBL_5: %13 = load i64, i64* %4, align 8 %14 = icmp eq i64 %13, 0 br i1 %14, label LBL_7, label LBL_6 LBL_6: %15 = call i64 @FUNC(i64 %13) br label LBL_7 LBL_7: %16 = add i64 %arg1, 32 %17 = call i64 @FUNC(i64 %16) %18 = call i64 @FUNC(i64 %arg1, i64 40) %19 = call i64 @FUNC(i64 %arg1) store i64 %19, 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 (i64)* @EC_EX_DATA_clear_free_all_data, { 1, 0 } uselistorder i32 1, { 5, 4, 3, 2, 1, 0 } uselistorder i64 %arg1, { 2, 1, 0, 3, 5, 4, 6 } uselistorder label LBL_8, { 1, 0 } }
0
BinRealVul
__key_update_11038
__key_update
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 %arg1) %1 = call i64 @FUNC(i64 %arg1, i64 1) %2 = trunc i64 %1 to i32 %3 = icmp slt i32 %2, 0 store i64 %1, i64* %sv_0.0.reg2mem br i1 %3, label LBL_6, label LBL_1 LBL_1: %4 = inttoptr i64 %0 to i64* %5 = load i64, i64* %4, align 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = icmp eq i64 %7, 0 store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %8, label LBL_6, label LBL_2 LBL_2: %9 = add i64 %0, 16 %10 = call i64 @FUNC(i64 %9) %11 = trunc i64 %0 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 = add i64 %0, 8 %15 = call i64 @FUNC(i64 0, i64 %14) br label LBL_4 LBL_4: %16 = call i64 @FUNC(i64 %9) %17 = icmp slt i32 %11, 0 store i64 %arg1, i64* %sv_1.0.reg2mem store i64 %0, i64* %sv_0.0.reg2mem br i1 %17, label LBL_6, label LBL_5 LBL_5: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem ret i64 %sv_1.0.reload LBL_6: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %18 = call i64 @FUNC(i64 %0) %19 = and i64 %sv_0.0.reload, 4294967295 %20 = call i64 @FUNC(i64 %19) store i64 %20, i64* %sv_1.0.reg2mem br label LBL_5 uselistorder i64 %0, { 5, 0, 1, 3, 4, 2 } uselistorder i64* %sv_1.0.reg2mem, { 2, 0, 1 } uselistorder i64 4294967295, { 1, 0 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
net_slirp_parse_legacy_1178
net_slirp_parse_legacy
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 %sv_0 = alloca i64, align 8 %2 = bitcast i64* %arg1 to i8* %3 = call i32 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0)) %4 = icmp eq i32 %3, 0 %5 = icmp eq i1 %4, false store i64 0, i64* %storemerge.reg2mem br i1 %5, label LBL_4, label LBL_1 LBL_1: %6 = inttoptr i64 %arg2 to i8* %7 = call i32 @strncmp(i8* %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i32 8) %8 = icmp eq i32 %7, 0 store i64 0, i64* %storemerge.reg2mem br i1 %8, label LBL_2, label LBL_4 LBL_2: %9 = trunc i64 %1 to i32 %10 = call i64 @FUNC(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @gv_2, i64 0, i64 0)) %11 = add i64 %arg2, 8 store i64 0, i64* %sv_0, align 8 %12 = call i64 @FUNC(i64* nonnull @gv_3, i64 %11, i64 1, i64* nonnull %sv_0) %13 = trunc i64 %12 to i32 %14 = bitcast i64* %arg3 to i32* store i32 %13, i32* %14, align 4 %15 = icmp slt i32 %9, 0 %16 = icmp eq i1 %15, false store i64 1, i64* %storemerge.reg2mem br i1 %16, label LBL_4, label LBL_3 LBL_3: %17 = load i64, i64* %sv_0, align 8 %18 = call i64 @FUNC(i64 %17) store i64 1, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %sv_0, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 4, 3 } uselistorder i64 1, { 1, 0, 2 } uselistorder label LBL_4, { 1, 0, 3, 2 } }
0
BinRealVul
loop_config_discard_8055
loop_config_discard
define i64 @FUNC(i64* %arg1) 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 = inttoptr i64 %3 to i32* %5 = icmp eq i64* %arg1, null br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = add i64 %0, 16 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = icmp eq i64 %8, 0 br i1 %9, label LBL_3, label LBL_2 LBL_2: store i32 0, i32* %4, align 4 %10 = add i64 %3, 4 %11 = inttoptr i64 %10 to i32* store i32 0, i32* %11, align 4 %12 = call i64 @FUNC(i64 %3, i64 0) %13 = call i64 @FUNC(i64 %3, i64 0) %14 = call i64 @FUNC(i64 1, i64 %3) store i64 %14, i64* %storemerge.reg2mem br label LBL_4 LBL_3: %15 = inttoptr i64 %3 to i64* %16 = load i64, i64* %15, align 8 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 store i32 %20, i32* %4, align 4 %21 = add i64 %3, 4 %22 = inttoptr i64 %21 to i32* store i32 0, i32* %22, align 4 %23 = call i64 @FUNC(i64 %3, i64 8388607) %24 = call i64 @FUNC(i64 %3, i64 8388607) %25 = call i64 @FUNC(i64 1, i64 %3) store i64 %25, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32* %4, { 1, 0 } uselistorder i64 %3, { 8, 7, 6, 1, 9, 5, 4, 3, 2, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i64)* @blk_queue_max_write_zeroes_sectors, { 1, 0 } uselistorder i64 (i64, i64)* @blk_queue_max_discard_sectors, { 1, 0 } }
0
BinRealVul
equalizer_enable_10843
equalizer_enable
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i8 %3 = icmp eq i8 %2, 1 br i1 %3, label LBL_3, label LBL_1 LBL_1: %4 = call i64 @FUNC(i64 %0, i64 1) %5 = add i64 %0, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = icmp eq i64 %7, 0 br i1 %8, label LBL_3, label LBL_2 LBL_2: %9 = call i64 @FUNC(i64 %7, i64 %0, i64 3) br label LBL_3 LBL_3: ret i64 0 uselistorder i64 %0, { 0, 2, 1, 3 } }
0
reposvul_c_test
php_unescape_html_entities_260
php_unescape_html_entities
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %.reg2mem = alloca i64 %storemerge.reg2mem = alloca i64 %sv_1 = alloca i64, align 8 %0 = trunc i64 %arg4 to i32 %1 = call i64 @FUNC(i64 %arg2) %2 = icmp eq i32 %0, 0 store i64 0, i64* %storemerge.reg2mem br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64 @FUNC(i64 %arg6) %phitmp = and i64 %3, 4294967295 store i64 %phitmp, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %4 = ptrtoint i64* %arg1 to i64 %5 = icmp ult i64 %1, %arg2 br i1 %5, label LBL_3, label LBL_4 LBL_3: %6 = call i64 @FUNC(i64 %4, i64 %arg2) store i64 %arg2, i64* %sv_1, align 8 store i64 %arg2, i64* %.reg2mem store i64 %6, i64* %sv_0.0.reg2mem br label LBL_6 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem %7 = call i64 @FUNC(i64 %1) %8 = inttoptr i64 %7 to i8* store i8 0, i8* %8, align 1 store i64 %arg2, i64* %sv_1, align 8 %9 = icmp eq i64 %arg2, 0 store i64 0, i64* %.reg2mem store i64 %7, i64* %sv_0.0.reg2mem br i1 %9, label LBL_6, label LBL_5 LBL_5: %sext = mul i64 %arg4, 4294967296 %10 = ashr exact i64 %sext, 32 %sext3 = mul i64 %arg5, 4294967296 %11 = ashr exact i64 %sext3, 32 %12 = and i64 %11, 4294967295 %13 = and i64 %10, 4294967295 %14 = call i64 @FUNC(i64 %13, i64 %12) %15 = trunc i64 %11 to i32 %16 = trunc i64 %10 to i32 %17 = call i64 @FUNC(i64 %4, i64 %arg2, i64 %7, i64* nonnull %sv_1, i32 %16, i32 %15, i64 %14, i64 %storemerge.reload) %.pre = load i64, i64* %sv_1, align 8 store i64 %.pre, i64* %.reg2mem store i64 %7, i64* %sv_0.0.reg2mem br label LBL_6 LBL_6: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %.reload = load i64, i64* %.reg2mem store i64 %.reload, i64* %arg3, align 8 ret i64 %sv_0.0.reload uselistorder i64 %11, { 1, 0 } uselistorder i64 %10, { 1, 0 } uselistorder i64 %7, { 0, 2, 1, 3 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 4294967295, { 1, 2, 0 } uselistorder i64 %arg2, { 2, 4, 3, 0, 5, 6, 1, 7 } uselistorder label LBL_6, { 1, 0, 2 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
vrend_decode_create_ve_11643
vrend_decode_create_ve
define i64 @FUNC(i64* %arg1, i64 %arg2, i16 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i32 %rax.0.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %1 = load i32, i32* %0 %2 = icmp eq i16 %arg3, 0 %3 = icmp eq i1 %2, false store i64 22, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_8 LBL_1: %4 = add i16 %arg3, 3 %5 = urem i16 %4, 4 %6 = icmp eq i16 %5, 0 store i64 22, i64* %rax.0.reg2mem br i1 %6, label LBL_2, label LBL_8 LBL_2: %7 = zext i16 %arg3 to i32 %8 = add nsw i32 %7, -1 %9 = ashr i32 %8, 2 %10 = icmp eq i32 %9, 0 br i1 %10, label LBL_7, label LBL_3 LBL_3: %11 = call i64* @calloc(i32 %9, i32 16) %12 = icmp eq i64* %11, null %13 = icmp eq i1 %12, false store i64 12, i64* %rax.0.reg2mem br i1 %13, label LBL_4, label LBL_8 LBL_4: %14 = icmp sgt i32 %8, 3 br i1 %14, label LBL_5, label LBL_7 LBL_5: %15 = ptrtoint i64* %arg1 to i64 %16 = ptrtoint i64* %11 to i64 %17 = sext i32 %9 to i64 store i64 0, i64* %indvars.iv.reg2mem br label LBL_6 LBL_6: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %18 = mul i64 %indvars.iv.reload, 4 %19 = mul i64 %indvars.iv.reload, 16 %20 = add i64 %19, %16 %21 = call i64 @FUNC(i64 %15, i64 %18) %22 = trunc i64 %21 to i32 %23 = inttoptr i64 %20 to i32* store i32 %22, i32* %23, align 4 %24 = or i64 %18, 1 %25 = call i64 @FUNC(i64 %15, i64 %24) %26 = trunc i64 %25 to i32 %27 = add i64 %20, 4 %28 = inttoptr i64 %27 to i32* store i32 %26, i32* %28, align 4 %29 = or i64 %18, 2 %30 = call i64 @FUNC(i64 %15, i64 %29) %31 = trunc i64 %30 to i32 %32 = add i64 %20, 8 %33 = inttoptr i64 %32 to i32* store i32 %31, i32* %33, align 4 %34 = or i64 %18, 3 %35 = call i64 @FUNC(i64 %15, i64 %34) %36 = trunc i64 %35 to i32 %37 = add i64 %20, 12 %38 = inttoptr i64 %37 to i32* store i32 %36, i32* %38, align 4 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %39 = icmp slt i64 %indvars.iv.next, %17 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %39, label LBL_6, label LBL_7 LBL_7: %40 = zext i32 %1 to i64 store i64 %40, 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 %18, { 3, 2, 1, 0 } uselistorder i64 %indvars.iv.reload, { 0, 2, 1 } uselistorder i64* %11, { 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64 1, { 1, 0 } uselistorder i64 (i64, i64)* @get_buf_entry, { 3, 2, 1, 0 } uselistorder i64 4, { 1, 0 } uselistorder i64 12, { 1, 0 } uselistorder label LBL_8, { 3, 0, 1, 2 } uselistorder label LBL_6, { 1, 0 } }
1
BinRealVul
cp110_register_gate_18181
cp110_register_gate
define i64 @FUNC(i8* %arg1, i8* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0 = alloca i8*, align 8 %0 = call i64 @FUNC(i64 24, i64 0) %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false store i64 -12, i64* %storemerge.reg2mem br i1 %2, label LBL_1, label LBL_3 LBL_1: %3 = ptrtoint i8* %arg1 to i64 %4 = bitcast i8** %sv_0 to i64* store i64 %3, i64* %4, align 8 %5 = add i64 %0, 8 %6 = inttoptr i64 %5 to i64* store i64 %arg3, i64* %6, align 8 %7 = trunc i64 %arg4 to i8 %8 = add i64 %0, 16 %9 = inttoptr i64 %8 to i8* store i8 %7, i8* %9, align 1 %10 = inttoptr i64 %0 to i64* %11 = ptrtoint i8** %sv_0 to i64 store i64 %11, i64* %10, align 8 %12 = call i64 @FUNC(i64 0, i64 %0) %13 = icmp ult i64 %12, -1000 store i64 %12, i64* %storemerge.reg2mem br i1 %13, label LBL_3, label LBL_2 LBL_2: %14 = call i64 @FUNC(i64 %0) store i64 %12, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %12, { 1, 0, 2 } uselistorder i8** %sv_0, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 } uselistorder i32 1, { 1, 0 } uselistorder label LBL_3, { 1, 0, 2 } }
1
BinRealVul
check_mountpoint_11425
check_mountpoint
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i32 %rax.0.reg2mem = alloca i64 %1 = load i32, i32* %0 %2 = load i32, i32* %0 %sv_0 = alloca i64, align 8 %3 = inttoptr i64 %arg2 to i8* %4 = bitcast i64* %sv_0 to %stat* %5 = call i32 @stat(i8* %3, %stat* nonnull %4) %6 = icmp eq i32 %5, 0 br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = call i32* @__errno_location() %8 = load i32, i32* %7, align 4 %9 = call i8* @strerror(i32 %8) %10 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %11 = inttoptr i64 %arg1 to i8* %12 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %10, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_1, i64 0, i64 0), i8* %11, i8* %3, i8* %9) store i64 64, i64* %rax.0.reg2mem br label LBL_10 LBL_2: %13 = and i32 %2, 61440 %14 = icmp eq i32 %13, 16384 br i1 %14, label LBL_4, label LBL_3 LBL_3: %15 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %16 = inttoptr i64 %arg1 to i8* %17 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %15, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0), i8* %16, i8* %3) store i64 64, i64* %rax.0.reg2mem br label LBL_10 LBL_4: %18 = call i32 @getuid() %19 = icmp eq i32 %18, 0 store i64 0, i64* %rax.0.reg2mem br i1 %19, label LBL_10, label LBL_5 LBL_5: %20 = call i32 @geteuid() %21 = icmp eq i32 %20, 0 store i64 0, i64* %rax.0.reg2mem br i1 %21, label LBL_6, label LBL_10 LBL_6: %22 = call i32 @getuid() %23 = icmp eq i32 %1, %22 br i1 %23, label LBL_8, label LBL_7 LBL_7: %24 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %25 = inttoptr i64 %arg1 to i8* %26 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %24, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_3, i64 0, i64 0), i8* %25, i8* %3) store i64 64, i64* %rax.0.reg2mem br label LBL_10 LBL_8: %27 = and i32 %2, 448 %28 = icmp eq i32 %27, 448 store i64 0, i64* %rax.0.reg2mem br i1 %28, label LBL_10, label LBL_9 LBL_9: %29 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %30 = inttoptr i64 %arg1 to i8* %31 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %29, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_4, i64 0, i64 0), i8* %30, i8* %3) store i64 64, 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 i8* %3, { 3, 2, 1, 0, 4 } uselistorder i64* %rax.0.reg2mem, { 0, 7, 1, 6, 3, 2, 5, 4 } uselistorder i32* %0, { 1, 0 } uselistorder i32 ()* @getuid, { 1, 0 } uselistorder i64 %arg1, { 3, 2, 1, 0 } uselistorder label LBL_10, { 3, 0, 4, 2, 1, 5, 6 } }
1
BinRealVul
serial_ioport_read_41
serial_ioport_read
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.1.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %storemerge.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = urem i64 %arg2, 8 store i64 %3, i64* @0, align 8 switch i64 %3, label LBL_1 [ i64 1, label LBL_13 i64 2, label LBL_16 i64 3, label LBL_18 i64 4, label LBL_19 i64 5, label LBL_20 i64 6, label LBL_22 i64 7, label LBL_28 ] LBL_1: %4 = trunc i64 %1 to i8 %5 = icmp sgt i8 %4, -1 br i1 %5, label LBL_3, label LBL_2 LBL_2: %6 = add i64 %2, 36 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = urem i32 %8, 256 store i32 %9, i32* %sv_0.1.reg2mem br label LBL_29 LBL_3: %10 = add i64 %2, 4 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = urem i32 %12, 2 %14 = icmp eq i32 %13, 0 br i1 %14, label LBL_10, label LBL_4 LBL_4: %15 = add i64 %2, 72 %16 = call i64 @FUNC(i64 %15) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %17, 0 %19 = icmp eq i1 %18, false store i32 0, i32* %storemerge.reg2mem br i1 %19, label LBL_6, label LBL_5 LBL_5: %20 = call i64 @FUNC(i64 %15) %phitmp = trunc i64 %20 to i32 store i32 %phitmp, i32* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i32, i32* %storemerge.reg2mem %21 = inttoptr i64 %15 to i32* %22 = load i32, i32* %21, align 4 %23 = icmp eq i32 %22, 0 %24 = icmp eq i1 %23, false br i1 %24, label LBL_8, label LBL_7 LBL_7: %25 = add i64 %2, 24 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = and i32 %27, -4 store i32 %28, i32* %26, align 4 br label LBL_9 LBL_8: %29 = load i64, i64* @gv_0, align 8 %30 = call i64 @FUNC(i64 %29) %31 = add i64 %2, 76 %32 = inttoptr i64 %31 to i32* %33 = load i32, i32* %32, align 4 %34 = mul i32 %33, 4 %35 = zext i32 %34 to i64 %36 = add i64 %30, %35 %37 = add i64 %2, 56 %38 = inttoptr i64 %37 to i64* %39 = load i64, i64* %38, align 8 %40 = call i64 @FUNC(i64 %39, i64 %36) br label LBL_9 LBL_9: %41 = add i64 %2, 48 %42 = inttoptr i64 %41 to i32* store i32 0, i32* %42, align 4 store i32 %storemerge.reload, i32* %sv_0.0.reg2mem br label LBL_11 LBL_10: %43 = add i64 %2, 8 %44 = inttoptr i64 %43 to i32* %45 = load i32, i32* %44, align 4 %46 = add i64 %2, 24 %47 = inttoptr i64 %46 to i32* %48 = load i32, i32* %47, align 4 %49 = and i32 %48, -4 store i32 %49, i32* %47, align 4 store i32 %45, i32* %sv_0.0.reg2mem br label LBL_11 LBL_11: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %50 = call i64 @FUNC(i64 %2) %51 = add i64 %2, 20 %52 = inttoptr i64 %51 to i32* %53 = load i32, i32* %52, align 4 %54 = and i32 %53, 16 %55 = icmp eq i32 %54, 0 %56 = icmp eq i1 %55, false store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br i1 %56, label LBL_29, label LBL_12 LBL_12: %57 = add i64 %2, 64 %58 = inttoptr i64 %57 to i64* %59 = load i64, i64* %58, align 8 %60 = call i64 @FUNC(i64 %59) store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br label LBL_29 LBL_13: %61 = trunc i64 %1 to i8 %62 = icmp sgt i8 %61, -1 br i1 %62, label LBL_15, label LBL_14 LBL_14: %63 = add i64 %2, 36 %64 = inttoptr i64 %63 to i32* %65 = load i32, i32* %64, align 4 %66 = udiv i32 %65, 256 %67 = urem i32 %66, 256 store i32 %67, i32* %sv_0.1.reg2mem br label LBL_29 LBL_15: %68 = add i64 %2, 12 %69 = inttoptr i64 %68 to i32* %70 = load i32, i32* %69, align 4 store i32 %70, i32* %sv_0.1.reg2mem br label LBL_29 LBL_16: %71 = add i64 %2, 16 %72 = inttoptr i64 %71 to i32* %73 = load i32, i32* %72, align 4 %74 = and i32 %73, 14 %75 = icmp eq i32 %74, 2 %76 = icmp eq i1 %75, false store i32 %73, i32* %sv_0.1.reg2mem br i1 %76, label LBL_29, label LBL_17 LBL_17: %77 = add i64 %2, 44 %78 = inttoptr i64 %77 to i32* store i32 0, i32* %78, align 4 %79 = call i64 @FUNC(i64 %2) store i32 %73, i32* %sv_0.1.reg2mem br label LBL_29 LBL_18: %80 = trunc i64 %1 to i32 store i32 %80, i32* %sv_0.1.reg2mem br label LBL_29 LBL_19: %81 = add i64 %2, 20 %82 = inttoptr i64 %81 to i32* %83 = load i32, i32* %82, align 4 store i32 %83, i32* %sv_0.1.reg2mem br label LBL_29 LBL_20: %84 = add i64 %2, 24 %85 = inttoptr i64 %84 to i32* %86 = load i32, i32* %85, align 4 %87 = and i32 %86, 6 %88 = icmp eq i32 %87, 0 store i32 %86, i32* %sv_0.1.reg2mem br i1 %88, label LBL_29, label LBL_21 LBL_21: %89 = and i32 %86, -7 store i32 %89, i32* %85, align 4 %90 = call i64 @FUNC(i64 %2) store i32 %86, i32* %sv_0.1.reg2mem br label LBL_29 LBL_22: %91 = add i64 %2, 20 %92 = inttoptr i64 %91 to i32* %93 = load i32, i32* %92, align 4 %94 = and i32 %93, 16 %95 = icmp eq i32 %94, 0 br i1 %95, label LBL_24, label LBL_23 LBL_23: %96 = mul i32 %93, 16 %97 = and i32 %96, 192 %98 = mul i32 %93, 8 %99 = and i32 %98, 16 %100 = or i32 %97, %99 %101 = mul i32 %93, 32 %102 = and i32 %101, 32 %103 = or i32 %100, %102 store i32 %103, i32* %sv_0.1.reg2mem br label LBL_29 LBL_24: %104 = add i64 %2, 40 %105 = inttoptr i64 %104 to i32* %106 = load i32, i32* %105, align 4 %107 = icmp slt i32 %106, 0 br i1 %107, label LBL_26, label LBL_25 LBL_25: %108 = call i64 @FUNC(i64 %2) br label LBL_26 LBL_26: %109 = add i64 %2, 28 %110 = inttoptr i64 %109 to i32* %111 = load i32, i32* %110, align 4 %112 = and i32 %111, 16 %113 = icmp eq i32 %112, 0 store i32 %111, i32* %sv_0.1.reg2mem br i1 %113, label LBL_29, label LBL_27 LBL_27: %114 = and i32 %111, 240 store i32 %114, i32* %110, align 4 %115 = call i64 @FUNC(i64 %2) store i32 %111, i32* %sv_0.1.reg2mem br label LBL_29 LBL_28: %116 = add i64 %2, 32 %117 = inttoptr i64 %116 to i32* %118 = load i32, i32* %117, align 4 store i32 %118, i32* %sv_0.1.reg2mem br label LBL_29 LBL_29: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0), i64 %3, i32 %sv_0.1.reload) %120 = zext i32 %sv_0.1.reload to i64 ret i64 %120 uselistorder i32 %111, { 0, 2, 1, 3 } uselistorder i32 %86, { 0, 2, 1, 3 } uselistorder i64 %3, { 2, 0, 1 } uselistorder i64 %2, { 13, 8, 9, 12, 11, 10, 6, 7, 5, 2, 3, 4, 0, 1, 19, 18, 20, 24, 25, 14, 16, 15, 17, 23, 21, 22 } uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.1.reg2mem, { 0, 12, 10, 11, 9, 7, 8, 6, 5, 3, 4, 2, 1, 14, 15, 13 } uselistorder i32 32, { 1, 0 } uselistorder i32 16, { 1, 2, 0, 3, 4 } uselistorder i64 (i64)* @serial_update_irq, { 3, 2, 1, 0 } uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 8, 0, 9, 10 } uselistorder i32 2, { 1, 0 } uselistorder i32 256, { 1, 0, 2 } uselistorder i8 -1, { 1, 0 } uselistorder i64 8, { 1, 0 } uselistorder label LBL_29, { 10, 2, 1, 0, 4, 3, 11, 12, 6, 5, 13, 14, 9, 8, 7 } uselistorder label LBL_6, { 1, 0 } }
1
BinRealVul
pred8x8_left_dc_rv40_c_14041
pred8x8_left_dc_rv40_c
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %indvars.iv.reg2mem = alloca i64 %sv_0.07.reg2mem = alloca i32 %indvars.iv9.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = mul i64 %arg2, 4294967296 store i64 0, i64* %indvars.iv9.reg2mem store i32 0, i32* %sv_0.07.reg2mem br label LBL_1 LBL_1: %sv_0.07.reload = load i32, i32* %sv_0.07.reg2mem %indvars.iv9.reload = load i64, i64* %indvars.iv9.reg2mem %2 = mul i64 %1, %indvars.iv9.reload %sext12 = add i64 %2, -4294967296 %3 = ashr exact i64 %sext12, 32 %4 = add i64 %3, %0 %5 = inttoptr i64 %4 to i8* %6 = load i8, i8* %5, align 1 %7 = zext i8 %6 to i32 %8 = add i32 %sv_0.07.reload, %7 %indvars.iv.next10 = add nuw nsw i64 %indvars.iv9.reload, 1 %exitcond11 = icmp eq i64 %indvars.iv.next10, 8 store i64 %indvars.iv.next10, i64* %indvars.iv9.reg2mem store i32 %8, i32* %sv_0.07.reg2mem br i1 %exitcond11, label LBL_2, label LBL_1 LBL_2: %9 = add i32 %8, 4 %10 = ashr i32 %9, 3 %11 = mul i32 %10, 16843009 store i64 0, i64* %indvars.iv.reg2mem br label LBL_3 LBL_3: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %sext13 = mul i64 %1, %indvars.iv.reload %12 = ashr exact i64 %sext13, 32 %13 = add i64 %12, %0 %14 = add i64 %13, 4 %15 = inttoptr i64 %14 to i32* store i32 %11, i32* %15, align 4 %16 = inttoptr i64 %13 to i32* store i32 %11, i32* %16, align 4 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 8 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_4, label LBL_3 LBL_4: %rax.0 = zext i32 %11 to i64 ret i64 %rax.0 uselistorder i32 %11, { 0, 2, 1 } uselistorder i32 %8, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %indvars.iv9.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.07.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64 1, { 1, 0 } }
1
BinRealVul
net_vhost_parse_chardev_15491
net_vhost_parse_chardev
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i32 %rax.0.reg2mem = alloca i64 %1 = ptrtoint i64* %arg1 to i64 %2 = load i32, i32* %0 %sv_0 = alloca i64, align 8 %3 = call i64 @FUNC(i64 %1) %4 = icmp eq i64 %3, 0 %5 = icmp eq i1 %4, false br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %1) store i64 0, i64* %rax.0.reg2mem br label LBL_6 LBL_2: %7 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 8) %8 = inttoptr i64 %3 to i64* %9 = load i64, i64* %8, align 8 %10 = call i64 @FUNC(i64 %9, i64 4198849, i64* nonnull %sv_0, 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_3, label LBL_6 LBL_3: %13 = load i64, i64* %sv_0, align 8 %14 = trunc i64 %13 to i32 %15 = icmp ne i32 %14, 0 %16 = icmp eq i32 %2, 0 %17 = icmp eq i1 %16, false %or.cond = icmp eq i1 %17, %15 br i1 %or.cond, label LBL_5, label LBL_4 LBL_4: %18 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), i64 %9) store i64 0, i64* %rax.0.reg2mem br label LBL_6 LBL_5: %19 = call i64 @FUNC(i64 %3) store i64 %3, 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* %sv_0, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 1, 2 } uselistorder i32 0, { 0, 2, 3, 1 } uselistorder i64 (i8*, i64)* @error_report, { 1, 0 } uselistorder label LBL_6, { 1, 2, 0, 3 } }
1
BinRealVul
virtio_bus_device_plugged_492
virtio_bus_device_plugged
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 %3) %5 = add i64 %0, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = icmp eq i64 %7, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @gv_2, i64 0, i64 0), i32 57, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0)) br label LBL_2 LBL_2: %10 = trunc i64 %0 to i32 %11 = bitcast i64* %arg1 to i32* store i32 %10, i32* %11, align 4 ret i64 %0 }
0
BinRealVul
vmport_class_initfn_14763
vmport_class_initfn
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 store i64 4198694, i64* %arg1, align 8 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i32* store i32 1, i32* %2, align 4 ret i64 %0 uselistorder i64 %0, { 1, 0 } }
1
BinRealVul
backlog_get_18816
backlog_get
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = icmp eq i32 %3, 1 %5 = icmp eq i1 %4, false br i1 %5, label LBL_4, label LBL_1 LBL_1: %6 = add i64 %2, 4 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = icmp eq i32 %8, 0 br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = add i64 %2, 8 store i64 %10, i64* %sv_0.0.reg2mem br label LBL_5 LBL_3: %11 = add i64 %2, 12 store i64 %11, i64* %sv_0.0.reg2mem br label LBL_5 LBL_4: %12 = icmp eq i32 %3, 2 %13 = icmp eq i1 %12, false %14 = add i64 %2, 16 %spec.select = select i1 %13, i64 0, i64 %14 store i64 %spec.select, i64* %sv_0.0.reg2mem br label LBL_5 LBL_5: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %15 = call i64 @FUNC(i64 %sv_0.0.reload) %16 = trunc i64 %15 to i32 %17 = add i64 %2, 60 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = zext i32 %19 to i64 %21 = mul i64 %20, 4 %22 = add i64 %2, 20 %23 = add i64 %22, %21 %24 = inttoptr i64 %23 to i32* store i32 %16, i32* %24, align 4 %25 = and i64 %15, 4294967295 ret i64 %25 uselistorder i32 %3, { 1, 0 } uselistorder i64 %2, { 0, 5, 4, 3, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 3, 2 } uselistorder i64 4294967295, { 1, 0 } }
1
BinRealVul
pimv1_print_7724
pimv1_print
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 = icmp ult i64* %arg2, %arg1 %2 = icmp eq i1 %1, false store i64 %0, i64* %rax.0.reg2mem br i1 %2, label LBL_22, label LBL_1 LBL_1: %3 = ptrtoint i64* %arg2 to i64 %4 = add i64 %3, 1 %5 = inttoptr i64 %4 to i8* %6 = load i8, i8* %5, align 1 %7 = icmp eq i8 %6, 0 store i64 0, i64* %rax.0.reg2mem br i1 %7, label LBL_22, label LBL_2 LBL_2: %8 = zext i8 %6 to i64 %9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0)) store i64 %8, i64* @0, align 8 switch i8 %6, label LBL_19 [ i8 7, label LBL_17 i8 1, label LBL_3 i8 2, label LBL_5 i8 3, label LBL_7 i8 4, label LBL_12 i8 5, label LBL_17 i8 6, label LBL_17 ] LBL_3: %10 = add i64 %3, 8 %11 = inttoptr i64 %10 to i8* %12 = load i8, i8* %11, align 1 %13 = icmp eq i8 %12, 0 store i64 0, i64* %rax.0.reg2mem br i1 %13, label LBL_22, label LBL_4 LBL_4: %14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0)) br label LBL_19 LBL_5: %15 = add i64 %3, 12 %16 = inttoptr i64 %15 to i8* %17 = load i8, i8* %16, align 1 %18 = icmp eq i8 %17, 0 store i64 0, i64* %rax.0.reg2mem br i1 %18, label LBL_22, label LBL_6 LBL_6: %19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0)) br label LBL_19 LBL_7: %20 = add i64 %0, 8 %21 = inttoptr i64 %20 to i32* %22 = load i32, i32* %21, align 4 %23 = icmp eq i32 %22, 0 br i1 %23, label LBL_19, label LBL_8 LBL_8: %24 = add i64 %3, 22 %25 = inttoptr i64 %24 to i8* %26 = load i8, i8* %25, align 1 %27 = icmp eq i8 %26, 0 store i64 0, i64* %rax.0.reg2mem br i1 %27, label LBL_22, label LBL_9 LBL_9: %28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0)) %29 = add i64 %3, 12 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = icmp eq i32 %31, -1 br i1 %32, label LBL_11, label LBL_10 LBL_10: %33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0)) br label LBL_11 LBL_11: %34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0)) %35 = inttoptr i64 %24 to i16* %36 = load i16, i16* %35, align 2 %37 = zext i16 %36 to i32 %38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_3, i64 0, i64 0), i32 %37) br label LBL_19 LBL_12: %39 = add i64 %3, 16 %40 = inttoptr i64 %39 to i8* %41 = load i8, i8* %40, align 1 %42 = icmp eq i8 %41, 0 store i64 0, i64* %rax.0.reg2mem br i1 %42, label LBL_22, label LBL_13 LBL_13: %43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0)) %44 = add i64 %3, 12 %45 = inttoptr i64 %44 to i32* %46 = load i32, i32* %45, align 4 %47 = icmp eq i32 %46, -1 br i1 %47, label LBL_15, label LBL_14 LBL_14: %48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0)) br label LBL_15 LBL_15: %49 = add i64 %3, 24 %50 = inttoptr i64 %49 to i8* %51 = load i8, i8* %50, align 1 %52 = icmp eq i8 %51, 0 store i64 0, i64* %rax.0.reg2mem br i1 %52, label LBL_22, label LBL_16 LBL_16: %53 = inttoptr i64 %49 to i32* %54 = load i32, i32* %53, align 4 %55 = zext i32 %54 to i64 %56 = inttoptr i64 %55 to i8* %57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* %56) br label LBL_19 LBL_17: %58 = add i64 %0, 8 %59 = inttoptr i64 %58 to i32* %60 = load i32, i32* %59, align 4 %61 = icmp eq i32 %60, 0 br i1 %61, label LBL_19, label LBL_18 LBL_18: %62 = add i64 %arg3, 4294967288 %63 = and i64 %62, 4294967295 %64 = add i64 %3, 8 %65 = call i64 @FUNC(i64 %0, i64 %64, i64 %63) br label LBL_19 LBL_19: %66 = add i64 %3, 4 %67 = inttoptr i64 %66 to i8* %68 = load i8, i8* %67, align 1 %69 = icmp eq i8 %68, 0 store i64 0, i64* %rax.0.reg2mem br i1 %69, label LBL_22, label LBL_20 LBL_20: %70 = and i8 %68, -16 %71 = icmp eq i8 %70, 16 store i64 1, i64* %rax.0.reg2mem br i1 %71, label LBL_22, label LBL_21 LBL_21: %72 = udiv i8 %68, 16 %73 = zext i8 %72 to i64 %74 = inttoptr i64 %73 to i8* %75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* %74) %76 = sext i32 %75 to i64 store i64 %76, i64* %rax.0.reg2mem br label LBL_22 LBL_22: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i8 %68, { 1, 0, 2 } uselistorder i8 %6, { 0, 2, 1 } uselistorder i64 %3, { 8, 7, 4, 5, 6, 2, 3, 1, 0, 9 } uselistorder i64 %0, { 3, 2, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 7, 8, 4, 5, 3, 2, 1, 9, 10 } uselistorder i8 16, { 1, 0 } uselistorder i32 -1, { 1, 0 } uselistorder i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), { 5, 6, 2, 3, 4, 1, 0 } uselistorder i32 (i8*, ...)* @printf, { 11, 5, 4, 0, 1, 2, 6, 3, 10, 7, 9, 8 } uselistorder i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), { 8, 5, 6, 7, 2, 3, 4, 1, 0, 9, 10 } uselistorder i8 0, { 5, 0, 1, 2, 3, 4, 6 } uselistorder i64 1, { 0, 2, 1 } uselistorder i64* %arg2, { 1, 0 } uselistorder label LBL_22, { 1, 0, 8, 3, 4, 5, 6, 7, 9, 2 } uselistorder label LBL_19, { 1, 0, 4, 3, 2, 5, 6, 7 } uselistorder label LBL_17, { 1, 2, 0 } }
1
BinRealVul
ConcatenateString_18350
ConcatenateString
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rdi.1.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = icmp eq i64* %arg1, null %2 = icmp eq i1 %1, false store i64 %0, i64* %rdi.0.reg2mem br i1 %2, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 32, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0)) store i64 ptrtoint ([29 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem br label LBL_2 LBL_2: %3 = icmp eq i64 %arg2, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_3, label LBL_12 LBL_3: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %5 = icmp eq i64 %rdi.0.reload, 0 %6 = icmp eq i1 %5, false br i1 %6, label LBL_5, label LBL_4 LBL_4: %7 = call i64 @FUNC(i64 %arg2) store i64 %7, i64* %arg1, align 8 br label LBL_12 LBL_5: %8 = inttoptr i64 %rdi.0.reload to i8* %9 = call i32 @strlen(i8* %8) %10 = sext i32 %9 to i64 %11 = inttoptr i64 %arg2 to i8* %12 = call i32 @strlen(i8* %11) %13 = sext i32 %12 to i64 %14 = sub i64 0, %10 %15 = sub i64 %14, 1 %16 = icmp ugt i64 %13, %15 br i1 %16, label LBL_6, label LBL_7 LBL_6: %17 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0)) unreachable LBL_7: %18 = add nsw i64 %13, %10 %19 = icmp ult i64 %18, -1024 br i1 %19, label LBL_9, label LBL_8 LBL_8: %20 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0)) unreachable LBL_9: %21 = add nsw i64 %18, 1024 %22 = call i64 @FUNC(i64 %arg2, i64 %21, i64 8) store i64 %22, i64* %arg1, align 8 %23 = icmp eq i32 %12, 0 store i64 %arg2, i64* %rdi.1.reg2mem br i1 %23, label LBL_11, label LBL_10 LBL_10: %24 = add i64 %10, %arg2 %25 = inttoptr i64 %24 to i64* %26 = inttoptr i64 %arg2 to i64* %27 = call i64* @memcpy(i64* %25, i64* %26, i32 %12) store i64 %24, i64* %rdi.1.reg2mem br label LBL_11 LBL_11: %rdi.1.reload = load i64, i64* %rdi.1.reg2mem %28 = add i64 %rdi.1.reload, %18 %29 = inttoptr i64 %28 to i8* store i8 0, i8* %29, align 1 br label LBL_12 LBL_12: ret i64 1 uselistorder i32 %12, { 1, 0, 2 } uselistorder i64 %10, { 1, 2, 0 } uselistorder i8 0, { 1, 0 } uselistorder i64 (i64, i8*)* @ThrowFatalException, { 1, 0 } uselistorder i64 1, { 1, 2, 3, 0 } uselistorder i32 (i8*)* @strlen, { 2, 1, 0 } uselistorder [29 x i8]* @gv_0, { 1, 0 } uselistorder i64 %arg2, { 2, 1, 0, 3, 4, 6, 5 } uselistorder label LBL_12, { 1, 2, 0 } }
1
BinRealVul
blk_mq_free_tag_set_7923
blk_mq_free_tag_set
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %.lcssa.reg2mem = alloca i64 %.reg2mem9 = alloca i64 %storemerge2.reg2mem = alloca i32 %.reg2mem7 = alloca i64 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = icmp eq i32 %3, 0 %5 = add i64 %2, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 store i64 %7, i64* %.lcssa.reg2mem br i1 %4, label LBL_5, label LBL_1 LBL_1: %8 = and i64 %1, 4294967295 store i64 %7, i64* %.reg2mem store i64 0, i64* %.reg2mem7 store i32 0, i32* %storemerge2.reg2mem br label LBL_2 LBL_2: %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %.reload8 = load i64, i64* %.reg2mem7 %.reload = load i64, i64* %.reg2mem %9 = mul i64 %.reload8, 8 %10 = add i64 %9, %.reload %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = icmp eq i64 %12, 0 store i64 %.reload, i64* %.reg2mem9 br i1 %13, label LBL_4, label LBL_3 LBL_3: %14 = call i64 @FUNC(i64 %2, i64 %12, i32 %storemerge2.reload) %15 = load i64, i64* %6, align 8 %16 = add i64 %15, %9 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = call i64 @FUNC(i64 %20) %.pre = load i64, i64* %6, align 8 store i64 %.pre, i64* %.reg2mem9 br label LBL_4 LBL_4: %.reload10 = load i64, i64* %.reg2mem9 %22 = add i32 %storemerge2.reload, 1 %23 = sext i32 %22 to i64 %24 = icmp sgt i64 %8, %23 store i64 %.reload10, i64* %.reg2mem store i64 %23, i64* %.reg2mem7 store i32 %22, i32* %storemerge2.reg2mem store i64 %.reload10, i64* %.lcssa.reg2mem br i1 %24, label LBL_2, label LBL_5 LBL_5: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem %25 = call i64 @FUNC(i64 %.lcssa.reload) store i64 0, i64* %6, align 8 ret i64 %2 uselistorder i64 %9, { 1, 0 } uselistorder i64 %7, { 1, 0 } uselistorder i64* %6, { 1, 0, 3, 2 } uselistorder i64 %2, { 1, 2, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem7, { 2, 0, 1 } uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem9, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
reposvul_c_test
xmlrpc_char_encode_249
xmlrpc_char_encode
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i64 %.reg2mem = alloca i8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i8, align 1 %3 = call i64 @FUNC() store i8 0, i8* %sv_0, align 1 %4 = bitcast i64* %arg1 to i8* store i8 0, i8* %4, align 1 %5 = icmp eq i64 %arg2, 0 store i64 %2, i64* %rax.0.reg2mem br i1 %5, label LBL_7, label LBL_1 LBL_1: %6 = trunc i64 %1 to i8 %7 = icmp eq i8 %6, 0 store i64 0, i64* %rax.0.reg2mem br i1 %7, label LBL_7, label LBL_2 LBL_2: %8 = inttoptr i64 %arg2 to i8* %9 = load i8, i8* %8, align 1 %10 = icmp eq i8 %9, 0 %11 = icmp eq i1 %10, false store i8 %9, i8* %.reg2mem store i64 0, i64* %storemerge2.reg2mem br i1 %11, label LBL_3, label LBL_6 LBL_3: %storemerge2.reload = load i64, i64* %storemerge2.reg2mem %.reload = load i8, i8* %.reg2mem %12 = icmp slt i8 %.reload, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_5, label LBL_4 LBL_4: %14 = zext i8 %.reload to i64 %15 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %sv_0, i32 15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i64 %14) %16 = call i32 @strlen(i8* nonnull %sv_0) br label LBL_5 LBL_5: %17 = add i64 %storemerge2.reload, 1 %18 = add i64 %17, %arg2 %19 = inttoptr i64 %18 to i8* %20 = load i8, i8* %19, align 1 %21 = icmp eq i8 %20, 0 %22 = icmp eq i1 %21, false store i8 %20, i8* %.reg2mem store i64 %17, i64* %storemerge2.reg2mem br i1 %22, label LBL_3, label LBL_6 LBL_6: %23 = inttoptr i64 %3 to i64* %24 = load i64, i64* %23, align 8 %25 = inttoptr i64 %24 to i64* %26 = call i64* @memcpy(i64* %arg1, i64* %25, i32 1024) %27 = ptrtoint i64* %26 to i64 store i64 %27, 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 i8* %.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge2.reg2mem, { 2, 0, 1 } uselistorder i1 false, { 2, 1, 0 } uselistorder i8 0, { 3, 2, 0, 4, 5, 1, 6 } uselistorder label LBL_7, { 2, 1, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
TfLiteIntArrayCreate_6816
TfLiteIntArrayCreate
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = and i64 %arg1, 4294967295 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp slt i32 %2, 0 %5 = icmp eq i1 %4, false %6 = icmp eq i1 %3, false %7 = icmp eq i1 %5, %6 store i64 0, i64* %rax.0.reg2mem br i1 %7, label LBL_1, label LBL_4 LBL_1: %8 = call i64* @malloc(i32 %2) %9 = icmp eq i64* %8, null %10 = icmp eq i1 %9, false br i1 %10, label LBL_3, label LBL_2 LBL_2: %11 = ptrtoint i64* %8 to i64 store i64 %11, i64* %rax.0.reg2mem br label LBL_4 LBL_3: %12 = bitcast i64* %8 to i32* %13 = trunc i64 %arg1 to i32 store i32 %13, i32* %12, align 4 %14 = ptrtoint i64* %8 to i64 store i64 %14, 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* %8, { 0, 3, 1, 2 } uselistorder i32 %2, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i1 false, { 1, 2, 0 } uselistorder label LBL_4, { 1, 2, 0 } }
0
BinRealVul
mpeg1_fast_decode_block_inter_43
mpeg1_fast_decode_block_inter
define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.1.reg2mem = alloca i32 %sv_1.1.in.in.in.reg2mem = alloca i32 %sv_2.1.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %sv_2.0.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i32* %arg1 to i64 %4 = add i64 %3, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = trunc i64 %1 to i32 store i32 -1, i32* %sv_2.0.reg2mem br label LBL_1 LBL_1: %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %8 = icmp eq i32 %sv_1.0.reload, 0 br i1 %8, label LBL_3, label LBL_2 LBL_2: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %9 = add i32 %sv_0.0.reload, %sv_2.0.reload %10 = mul i32 %sv_1.0.reload, 2 %11 = or i32 %10, 1 %12 = mul i32 %11, %7 store i32 %9, i32* %sv_2.1.reg2mem store i32 %12, i32* %sv_1.1.in.in.in.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br label LBL_4 LBL_3: %13 = add i32 %sv_2.0.reload, 1 store i32 %13, i32* %sv_2.1.reg2mem store i32 %7, i32* %sv_1.1.in.in.in.reg2mem store i32 1, i32* %sv_0.1.reg2mem br label LBL_4 LBL_4: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %sv_1.1.in.in.in.reload = load i32, i32* %sv_1.1.in.in.in.reg2mem %sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem %.pn = sext i32 %sv_2.1.reload to i64 %sv_3.0.in.in.in = add i64 %6, %.pn %sv_3.0.in.in = inttoptr i64 %sv_3.0.in.in.in to i8* %sv_1.1.in.in = ashr i32 %sv_1.1.in.in.in.reload, 1 %sv_3.0.in = load i8, i8* %sv_3.0.in.in, align 1 %sv_1.1.in = add nsw i32 %sv_1.1.in.in, -1 %sv_3.0 = zext i8 %sv_3.0.in to i64 %sv_1.1 = or i32 %sv_1.1.in, 1 %14 = mul i64 %sv_3.0, 2 %15 = add i64 %14, %2 %16 = trunc i32 %sv_1.1 to i16 %17 = inttoptr i64 %15 to i16* store i16 %16, i16* %17, align 2 store i32 %sv_2.1.reload, i32* %sv_2.0.reg2mem store i32 %sv_1.1, i32* %sv_1.0.reg2mem store i32 %sv_0.1.reload, i32* %sv_0.0.reg2mem br label LBL_1 uselistorder i32 %sv_2.1.reload, { 1, 0 } uselistorder i32 %sv_1.0.reload, { 1, 0 } uselistorder i32* %sv_2.0.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.0.reg2mem, { 1, 0 } uselistorder i32* %sv_0.0.reg2mem, { 1, 0 } uselistorder i32* %sv_2.1.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_1.1.in.in.in.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1 } uselistorder i32 -1, { 1, 0 } }
1
BinRealVul
vgacon_restore_screen_12895
vgacon_restore_screen
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 store i64 %3, i64* %arg1, align 8 %4 = load i64, i64* @gv_0, align 8 %5 = inttoptr i64 %4 to i32* store i32 0, i32* %5, align 4 %6 = load i32, i32* @gv_1, align 4 %7 = zext i32 %6 to i64 %8 = icmp eq i32 %6, 0 %9 = icmp eq i1 %8, false store i64 %7, i64* %rax.0.reg2mem br i1 %9, label LBL_3, label LBL_1 LBL_1: %10 = load i64, i64* @gv_0, align 8 %11 = add i64 %10, 4 %12 = inttoptr i64 %11 to i32* %13 = load i32, i32* %12, align 4 %14 = zext i32 %13 to i64 %15 = icmp eq i32 %13, 0 %16 = icmp eq i1 %15, false store i64 %14, i64* %rax.0.reg2mem br i1 %16, label LBL_3, label LBL_2 LBL_2: %17 = add i64 %0, 24 %18 = inttoptr i64 %17 to i64* %19 = load i64, i64* %18, align 8 %20 = load i64, i64* @gv_2, align 8 %21 = icmp ugt i64 %19, %20 %22 = select i1 %21, i64 %20, i64 %19 %23 = add i64 %0, 16 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 %26 = call i64 @FUNC(i64 %0, i64 %25, i64 %22) %27 = load i64, i64* @gv_0, align 8 %28 = add i64 %27, 4 %29 = inttoptr i64 %28 to i32* store i32 1, i32* %29, align 4 %30 = load i64, i64* @gv_0, align 8 %31 = add i64 %30, 12 %32 = inttoptr i64 %31 to i32* %33 = load i32, i32* %32, align 4 %34 = add i64 %30, 8 %35 = inttoptr i64 %34 to i32* store i32 %33, i32* %35, align 4 store i64 %30, i64* %rax.0.reg2mem br label LBL_3 LBL_3: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %0, { 0, 2, 1, 3 } uselistorder i32 0, { 1, 2, 3, 0 } }
1
BinRealVul
enum_dir_13777
enum_dir
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.03.reg2mem = alloca i32 %storemerge4.reg2mem = alloca i32 %sv_1.1.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %sv_4 = alloca i64, align 8 %sv_5 = alloca i32*, align 8 %sv_6 = alloca i64, align 8 %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 %4 = icmp eq i1 %3, false store i32 %2, i32* %sv_1.0.reg2mem br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = load i64, i64* @gv_0, align 8 %6 = bitcast i32** %sv_5 to i64* %7 = call i64 @FUNC(i64 %5, i64* nonnull %sv_4, i64* nonnull %6) %8 = trunc i64 %7 to i32 store i32 %8, i32* %sv_1.0.reg2mem br label LBL_2 LBL_2: %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %9 = load i64, i64* @gv_0, align 8 %10 = call i64 @FUNC(i64 %9) %11 = icmp eq i32 %sv_1.0.reload, 0 br i1 %11, label LBL_4, label LBL_3 LBL_3: %12 = zext i32 %sv_1.0.reload to i64 %13 = call i64 @FUNC(i64 %12) %14 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %15 = inttoptr i64 %13 to i8* %16 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %14, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0), i8* %15) store i64 1, i64* %rax.0.reg2mem br label LBL_14 LBL_4: %sext = mul i64 %arg1, 4294967296 %17 = ashr exact i64 %sext, 32 %18 = load i32*, i32** %sv_5, align 8 %19 = ptrtoint i32* %18 to i64 %20 = load i64, i64* @gv_0, align 8 %21 = and i64 %17, 4294967295 %22 = call i64 @FUNC(i64 %20, i64 %19, i64* nonnull %sv_4, i64 %21) %23 = load i32*, i32** %sv_5, align 8 %24 = load i32, i32* %23, align 4 %25 = ptrtoint i32* %23 to i64 %26 = call i64 @FUNC(i64 %25) %27 = icmp eq i32 %24, 1 %28 = icmp eq i1 %27, false store i64 0, i64* %rax.0.reg2mem br i1 %28, label LBL_14, label LBL_5 LBL_5: %29 = load i64, i64* @gv_0, align 8 %30 = call i64 @FUNC(i64 %29) %31 = trunc i64 %30 to i32 %32 = icmp eq i32 %31, 0 %33 = icmp eq i1 %32, false store i32 %31, i32* %sv_1.1.reg2mem br i1 %33, label LBL_7, label LBL_6 LBL_6: %34 = load i64, i64* @gv_0, align 8 %35 = call i64 @FUNC(i64 %34, i64* nonnull %sv_3, i64 256) %36 = trunc i64 %35 to i32 store i32 %36, i32* %sv_1.1.reg2mem br label LBL_7 LBL_7: %sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem %37 = load i64, i64* @gv_0, align 8 %38 = call i64 @FUNC(i64 %37) %39 = icmp slt i32 %sv_1.1.reload, 0 %40 = icmp eq i1 %39, false br i1 %40, label LBL_9, label LBL_8 LBL_8: %41 = zext i32 %sv_1.1.reload to i64 %42 = call i64 @FUNC(i64 %41) %43 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %44 = inttoptr i64 %42 to i8* %45 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %43, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_3, i64 0, i64 0), i8* %44) store i64 1, i64* %rax.0.reg2mem br label LBL_14 LBL_9: %46 = icmp eq i32 %sv_1.1.reload, 0 %47 = icmp eq i1 %46, false br i1 %47, label LBL_10, label LBL_12 LBL_10: %48 = icmp slt i32 %sv_1.1.reload, 0 %49 = zext i1 %48 to i32 %50 = add i32 %sv_1.1.reload, %49 %51 = ashr i32 %50, 1 %52 = icmp eq i32 %51, 0 store i64 0, i64* %rax.0.reg2mem br i1 %52, label LBL_14, label LBL_11 LBL_11: %53 = ptrtoint i64* %sv_6 to i64 %54 = zext i32 %51 to i64 %55 = bitcast i64* %sv_4 to i8* %56 = bitcast i64* %sv_2 to i8* %57 = ptrtoint i64* %sv_3 to i64 %58 = ptrtoint i64* %sv_2 to i64 %59 = add nsw i64 %17, 1 %60 = add i64 %53, -272 %61 = inttoptr i64 %60 to i8* %62 = and i64 %59, 4294967295 store i32 0, i32* %storemerge4.reg2mem br label LBL_13 LBL_12: %63 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_4, i64 0, i64 0)) store i64 0, i64* %rax.0.reg2mem br label LBL_14 LBL_13: %sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem %storemerge4.reload = load i32, i32* %storemerge4.reg2mem %64 = call i64* @memset(i64* nonnull %sv_2, i32 0, i32 260) call void @FUNC(i8* nonnull %56, i8* nonnull %55, i64 32) %65 = mul i32 %storemerge4.reload, 2 %66 = sext i32 %65 to i64 %67 = add i64 %66, %57 %68 = sext i32 %sv_0.03.reload to i64 %69 = add i64 %68, %58 %70 = inttoptr i64 %67 to i16* %71 = load i16, i16* %70, align 2 %72 = inttoptr i64 %69 to i16* store i16 %71, i16* %72, align 2 %73 = add i32 %sv_0.03.reload, 2 call void @FUNC(i8* %61, i8* nonnull %56, i64 32) %74 = call i64 @FUNC(i64 %62) %75 = add i32 %storemerge4.reload, 1 %76 = sext i32 %75 to i64 %77 = icmp slt i64 %76, %54 store i32 %75, i32* %storemerge4.reg2mem store i32 %73, i32* %sv_0.03.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %77, label LBL_13, label LBL_14 LBL_14: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %51, { 1, 0 } uselistorder i32 %sv_1.1.reload, { 4, 3, 0, 1, 2 } uselistorder i32** %sv_5, { 1, 0, 2 } uselistorder i64* %sv_3, { 1, 0 } uselistorder i64* %sv_2, { 1, 2, 0 } uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.03.reg2mem, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 4, 2, 6, 3, 5 } uselistorder i32 2, { 1, 0 } uselistorder i64 4294967295, { 1, 2, 3, 0 } uselistorder i64 1, { 2, 1, 0, 3 } uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0 } uselistorder %_IO_FILE** @gv_1, { 1, 0 } uselistorder i64 (i64)* @sc_strerror, { 1, 0 } uselistorder i64 (i64)* @sc_unlock, { 1, 0 } uselistorder i64 (i64)* @sc_lock, { 1, 0 } uselistorder label LBL_14, { 0, 3, 1, 4, 2, 5 } uselistorder label LBL_13, { 1, 0 } }
0
BinRealVul
vnc_abort_display_jobs_9247
vnc_abort_display_jobs
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge3.lcssa.reg2mem = alloca i64 %storemerge34.reg2mem = alloca i64 %storemerge15.reg2mem = alloca i64 %storemerge26.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = icmp eq i64* %arg1, null %2 = icmp eq i1 %1, false store i64 %0, i64* %storemerge26.reg2mem store i64 %0, i64* %storemerge3.lcssa.reg2mem br i1 %2, label LBL_1, label LBL_4 LBL_1: %storemerge26.reload = load i64, i64* %storemerge26.reg2mem %3 = call i64 @FUNC(i64 %storemerge26.reload) %4 = inttoptr i64 %storemerge26.reload to i8* store i8 1, i8* %4, align 1 %5 = call i64 @FUNC(i64 %storemerge26.reload) %6 = add i64 %storemerge26.reload, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = icmp eq i64 %8, 0 %10 = icmp eq i1 %9, false store i64 %8, i64* %storemerge26.reg2mem store i64 %0, i64* %storemerge15.reg2mem br i1 %10, label LBL_1, label LBL_2 LBL_2: %storemerge15.reload = load i64, i64* %storemerge15.reg2mem %11 = call i64 @FUNC(i64 %storemerge15.reload) %12 = add i64 %storemerge15.reload, 8 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = icmp eq i64 %14, 0 %16 = icmp eq i1 %15, false store i64 %14, i64* %storemerge15.reg2mem store i64 %0, i64* %storemerge34.reg2mem br i1 %16, label LBL_2, label LBL_3 LBL_3: %storemerge34.reload = load i64, i64* %storemerge34.reg2mem %17 = call i64 @FUNC(i64 %storemerge34.reload) %18 = inttoptr i64 %storemerge34.reload to i8* store i8 0, i8* %18, align 1 %19 = call i64 @FUNC(i64 %storemerge34.reload) %20 = add i64 %storemerge34.reload, 8 %21 = inttoptr i64 %20 to i64* %22 = load i64, i64* %21, align 8 %23 = icmp eq i64 %22, 0 %24 = icmp eq i1 %23, false store i64 %22, i64* %storemerge34.reg2mem store i64 %22, i64* %storemerge3.lcssa.reg2mem br i1 %24, label LBL_3, label LBL_4 LBL_4: %storemerge3.lcssa.reload = load i64, i64* %storemerge3.lcssa.reg2mem ret i64 %storemerge3.lcssa.reload uselistorder i64 %storemerge34.reload, { 1, 0, 3, 2 } uselistorder i64 %storemerge15.reload, { 1, 0 } uselistorder i64 %storemerge26.reload, { 1, 0, 3, 2 } uselistorder i64 %0, { 1, 2, 0, 3 } uselistorder i64* %storemerge26.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge15.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge34.reg2mem, { 2, 0, 1 } uselistorder i64 (i64)* @vnc_unlock_output, { 1, 0 } uselistorder i64 (i64)* @vnc_lock_output, { 1, 0 } uselistorder i1 false, { 1, 2, 3, 0 } uselistorder label LBL_3, { 1, 0 } uselistorder label LBL_2, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
pcan_usb_pro_drv_loaded_19037
pcan_usb_pro_drv_loaded
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 2, i64 0) %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false store i64 4294967284, i64* %storemerge.reg2mem br i1 %2, label LBL_1, label LBL_2 LBL_1: %3 = inttoptr i64 %0 to i8* %4 = ptrtoint i64* %arg1 to i64 store i8 0, i8* %3, align 1 %5 = trunc i64 %arg2 to i32 %6 = icmp eq i32 %5, 0 %7 = icmp eq i1 %6, false %8 = zext i1 %7 to i8 %9 = add i64 %0, 1 %10 = inttoptr i64 %9 to i8* store i8 %8, i8* %10, align 1 %11 = call i64 @FUNC(i64 %4, i64 0, i64 1, i64 %0, i64 2) %12 = call i64 @FUNC(i64 %0) %13 = and i64 %11, 4294967295 store i64 %13, 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 i64 0, { 1, 4, 2, 0, 3 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
prio_changed_fair_7952
prio_changed_fair
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = call i64 @FUNC(i64 %2) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 store i64 %3, i64* %rax.0.reg2mem br i1 %5, label LBL_3, label LBL_1 LBL_1: %sext = mul i64 %arg3, 4294967296 %6 = and i64 %1, 4294967295 %7 = ashr exact i64 %sext, 32 %8 = icmp slt i64 %7, %6 store i64 %6, i64* %rax.0.reg2mem br i1 %8, label LBL_2, label LBL_3 LBL_2: %9 = ptrtoint i64* %arg1 to i64 %10 = call i64 @FUNC(i64 %9) store i64 %10, i64* %rax.0.reg2mem br label LBL_3 LBL_3: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 } uselistorder label LBL_3, { 2, 1, 0 } }
0
BinRealVul
bm_clear_12784
bm_clear
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge3.reg2mem = alloca i32 %storemerge2.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %3 = add i64 %2, 4 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = zext i32 %5 to i64 %7 = icmp eq i32 %5, 0 br i1 %7, label LBL_5, label LBL_1 LBL_1: %8 = and i64 %1, 4294967295 store i32 0, i32* %storemerge3.reg2mem br label LBL_2.preheader LBL_2: %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %9 = sext i32 %storemerge2.reload to i64 %10 = icmp sgt i64 %8, %9 %11 = add i32 %storemerge2.reload, 1 store i32 %11, i32* %storemerge2.reg2mem br i1 %10, label LBL_2, label LBL_3 LBL_3: %12 = add i32 %storemerge3.reload, 1 %13 = sext i32 %12 to i64 %14 = icmp slt i64 %13, %6 store i32 %12, i32* %storemerge3.reg2mem br i1 %14, label LBL_2.preheader, label LBL_5 LBL_4: %storemerge3.reload = load i32, i32* %storemerge3.reg2mem store i32 0, i32* %storemerge2.reg2mem br label LBL_2 LBL_5: ret i64 %6 uselistorder i32 %storemerge2.reload, { 1, 0 } uselistorder i32* %storemerge2.reg2mem, { 1, 2, 0 } uselistorder i32 0, { 1, 0, 2 } uselistorder label LBL_2.preheader, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
acpi_bus_get_flags_17941
acpi_bus_get_flags
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 store i64 0, i64* %sv_0, align 8 %1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = add i64 %0, 8 %6 = inttoptr i64 %5 to i32* store i32 1, i32* %6, align 4 br label LBL_2 LBL_2: %7 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_0) %8 = trunc i64 %7 to i32 %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false br i1 %10, label LBL_4, label LBL_3 LBL_3: %11 = add i64 %0, 12 %12 = inttoptr i64 %11 to i32* store i32 1, i32* %12, align 4 br label LBL_4 LBL_4: %13 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %sv_0) %14 = trunc i64 %13 to i32 %15 = icmp eq i32 %14, 0 %16 = icmp eq i1 %15, false br i1 %16, label LBL_6, label LBL_5 LBL_5: %17 = add i64 %0, 16 %18 = inttoptr i64 %17 to i32* store i32 1, i32* %18, align 4 br label LBL_8 LBL_6: %19 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i64* nonnull %sv_0) %20 = trunc i64 %19 to i32 %21 = icmp eq i32 %20, 0 %22 = icmp eq i1 %21, false br i1 %22, label LBL_8, label LBL_7 LBL_7: %23 = add i64 %0, 16 %24 = inttoptr i64 %23 to i32* store i32 1, i32* %24, align 4 br label LBL_8 LBL_8: %25 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0), i64* nonnull %sv_0) %26 = trunc i64 %25 to i32 %27 = icmp eq i32 %26, 0 %28 = icmp eq i1 %27, false br i1 %28, label LBL_10, label LBL_9 LBL_9: %29 = add i64 %0, 20 %30 = inttoptr i64 %29 to i32* store i32 1, i32* %30, align 4 br label LBL_10 LBL_10: %31 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_5, i64 0, i64 0), i64* nonnull %sv_0) %32 = trunc i64 %31 to i32 %33 = icmp eq i32 %32, 0 br i1 %33, label LBL_12, label LBL_11 LBL_11: %34 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0), i64* nonnull %sv_0) %35 = trunc i64 %34 to i32 %36 = icmp eq i32 %35, 0 %37 = icmp eq i1 %36, false br i1 %37, label LBL_13, label LBL_12 LBL_12: %38 = add i64 %0, 24 %39 = inttoptr i64 %38 to i32* store i32 1, i32* %39, align 4 br label LBL_13 LBL_13: ret i64 0 uselistorder i64 %0, { 6, 5, 7, 4, 8, 3, 9, 2, 10, 1, 11, 0, 12 } uselistorder i64 (i64, i8*, i64*)* @acpi_get_handle, { 6, 5, 4, 3, 2, 1, 0 } uselistorder label LBL_12, { 1, 0 } }
1
BinRealVul
ctr_instantiate_17732
ctr_instantiate
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64* %arg4, i64 %arg5, i64* %arg6, i64 %arg7) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg6 to i64 %1 = ptrtoint i64* %arg4 to i64 %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i64* %arg1 to i64 %4 = call i64* @memset(i64* %arg1, i32 0, i32 32) %5 = add i64 %3, 32 %6 = inttoptr i64 %5 to i64* %7 = call i64* @memset(i64* %6, i32 0, i32 16) %8 = add i64 %3, 48 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = zext i32 %10 to i64 %12 = call i64 @FUNC(i64 %3, i64 %11, i64 %8) %13 = call i64 @FUNC(i64 %3, i64 %2, i64 %arg3, i64 %0, i64 %arg7, i64 %1) ret i64 1 uselistorder i64 %8, { 1, 0 } }
1
BinRealVul
mg_parse_http_11918
mg_parse_http
define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i64 %sv_0.0.lcssa.reg2mem = alloca i64 %sv_0.07.reg2mem = alloca i64 %0 = and i64 %arg2, 4294967295 %1 = call i64 @FUNC(i64 %arg1, i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp slt i32 %2, 0 %5 = icmp eq i1 %4, false %6 = icmp eq i1 %3, false %7 = icmp eq i1 %5, %6 br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = and i64 %1, 4294967295 store i64 %8, i64* %rax.0.reg2mem br label LBL_19 LBL_2: %9 = ptrtoint i64* %arg3 to i64 %10 = call i64* @memset(i64* %arg3, i32 0, i32 120) store i64 %arg1, i64* %arg3, align 8 %sext2 = mul i64 %1, 4294967296 %11 = ashr exact i64 %sext2, 32 %12 = add i64 %11, %arg1 %13 = add i64 %9, 16 %14 = inttoptr i64 %13 to i64* store i64 %12, i64* %14, align 8 %15 = add i64 %9, 24 %16 = inttoptr i64 %15 to i64* store i64 -1, i64* %16, align 8 %17 = add i64 %9, 8 %18 = inttoptr i64 %17 to i64* store i64 -1, i64* %18, align 8 %19 = icmp ugt i64 %12, %arg1 %20 = icmp eq i1 %19, false store i64 %arg1, i64* %sv_0.07.reg2mem store i64 %arg1, i64* %sv_0.0.lcssa.reg2mem br i1 %20, label LBL_5, label LBL_4 LBL_3: %21 = add i64 %sv_0.07.reload, 1 %22 = icmp ult i64 %21, %12 %23 = icmp eq i1 %22, false store i64 %21, i64* %sv_0.07.reg2mem store i64 %21, i64* %sv_0.0.lcssa.reg2mem br i1 %23, label LBL_5, label LBL_4 LBL_4: %sv_0.07.reload = load i64, i64* %sv_0.07.reg2mem %24 = call i16** @__ctype_b_loc() %25 = load i16*, i16** %24, align 8 %26 = ptrtoint i16* %25 to i64 %27 = inttoptr i64 %sv_0.07.reload to i8* %28 = load i8, i8* %27, align 1 %29 = zext i8 %28 to i64 %30 = mul i64 %29, 2 %31 = add i64 %30, %26 %32 = inttoptr i64 %31 to i16* %33 = load i16, i16* %32, align 2 %34 = and i16 %33, 8192 %35 = icmp eq i16 %34, 0 %36 = icmp eq i1 %35, false store i64 %sv_0.07.reload, i64* %sv_0.0.lcssa.reg2mem br i1 %36, label LBL_3, label LBL_5 LBL_5: %sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem %37 = trunc i64 %arg4 to i32 %38 = icmp eq i32 %37, 0 br i1 %38, label LBL_10, label LBL_6 LBL_6: %39 = add i64 %9, 32 %40 = call i64 @FUNC(i64 %sv_0.0.lcssa.reload, i64 %12, i64* nonnull @gv_0, i64 %39) %41 = add i64 %9, 48 %42 = call i64 @FUNC(i64 %40, i64 %12, i64* nonnull @gv_0, i64 %41) %43 = add i64 %9, 64 %44 = call i64 @FUNC(i64 %42, i64 %12, i64* bitcast ([3 x i8]* @gv_1 to i64*), i64 %43) %45 = inttoptr i64 %41 to i64* %46 = load i64, i64* %45, align 8 %47 = inttoptr i64 %39 to i64* %48 = load i64, i64* %47, align 8 %49 = icmp ugt i64 %46, %48 store i64 4294967295, i64* %rax.0.reg2mem br i1 %49, label LBL_7, label LBL_19 LBL_7: %50 = inttoptr i64 %43 to i64* %51 = load i64, i64* %50, align 8 %52 = icmp ugt i64 %51, %46 store i64 4294967295, i64* %rax.0.reg2mem br i1 %52, label LBL_8, label LBL_19 LBL_8: %53 = add i64 %9, 56 %54 = inttoptr i64 %53 to i64* %55 = load i64, i64* %54, align 8 %56 = inttoptr i64 %46 to i64* %57 = trunc i64 %55 to i32 %58 = call i64* @memchr(i64* %56, i32 63, i32 %57) %59 = icmp eq i64* %58, null store i64 %44, i64* %sv_0.1.reg2mem br i1 %59, label LBL_14, label LBL_9 LBL_9: %60 = ptrtoint i64* %58 to i64 %61 = add i64 %60, 1 %62 = add i64 %9, 80 %63 = inttoptr i64 %62 to i64* store i64 %61, i64* %63, align 8 %64 = load i64, i64* %45, align 8 %65 = load i64, i64* %54, align 8 %66 = sub i64 0, %60 %67 = sub i64 %66, 1 %68 = add i64 %64, %67 %69 = add i64 %68, %65 %70 = add i64 %9, 88 %71 = inttoptr i64 %70 to i64* store i64 %69, i64* %71, align 8 %72 = load i64, i64* %45, align 8 %73 = sub i64 %60, %72 store i64 %73, i64* %54, align 8 store i64 %44, i64* %sv_0.1.reg2mem br label LBL_14 LBL_10: %74 = add i64 %9, 64 %75 = call i64 @FUNC(i64 %sv_0.0.lcssa.reload, i64 %12, i64* nonnull @gv_0, i64 %74) %76 = sub i64 %12, %75 %77 = icmp slt i64 %76, 4 store i64 4294967295, i64* %rax.0.reg2mem br i1 %77, label LBL_19, label LBL_11 LBL_11: %78 = add i64 %75, 3 %79 = inttoptr i64 %78 to i8* %80 = load i8, i8* %79, align 1 %81 = icmp eq i8 %80, 32 store i64 4294967295, i64* %rax.0.reg2mem br i1 %81, label LBL_12, label LBL_19 LBL_12: %82 = inttoptr i64 %75 to i8* %83 = call i32 @atoi(i8* %82) %84 = add i64 %9, 112 %85 = inttoptr i64 %84 to i32* store i32 %83, i32* %85, align 4 %.off = add i32 %83, -100 %86 = icmp ult i32 %.off, 500 store i64 4294967295, i64* %rax.0.reg2mem br i1 %86, label LBL_13, label LBL_19 LBL_13: %87 = add i64 %75, 4 %88 = add i64 %9, 96 %89 = call i64 @FUNC(i64 %87, i64 %12, i64* bitcast ([3 x i8]* @gv_1 to i64*), i64 %88) store i64 %89, i64* %sv_0.1.reg2mem br label LBL_14 LBL_14: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %90 = call i64 @FUNC(i64 %sv_0.1.reload, i64 %12, i32 %2, i64 %9) %91 = load i64, i64* %16, align 8 %92 = icmp eq i64 %91, -1 %93 = icmp eq i1 %92, false %or.cond6 = or i1 %38, %93 br i1 %or.cond6, label LBL_18, label LBL_15 LBL_15: %94 = add i64 %9, 32 %95 = call i64 @FUNC(i64 %94, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0)) %96 = trunc i64 %95 to i32 %97 = icmp eq i32 %96, 0 br i1 %97, label LBL_18, label LBL_16 LBL_16: %98 = call i64 @FUNC(i64 %94, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0)) %99 = trunc i64 %98 to i32 %100 = icmp eq i32 %99, 0 br i1 %100, label LBL_18, label LBL_17 LBL_17: store i64 0, i64* %16, align 8 store i64 %11, i64* %18, align 8 br label LBL_18 LBL_18: %101 = and i64 %1, 4294967295 store i64 %101, i64* %rax.0.reg2mem br label LBL_19 LBL_19: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %60, { 1, 0, 2 } uselistorder i64* %58, { 1, 0 } uselistorder i64 %sv_0.0.lcssa.reload, { 1, 0 } uselistorder i64 %12, { 5, 4, 2, 3, 8, 6, 7, 1, 0, 9 } uselistorder i64 %11, { 1, 0 } uselistorder i64 %9, { 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 10, 11, 12, 13 } uselistorder i32 %2, { 0, 2, 1 } uselistorder i64 %1, { 1, 0, 2, 3 } uselistorder i64* %sv_0.07.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.1.reg2mem, { 0, 3, 1, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 7, 1, 3, 2, 5, 4, 6 } uselistorder i64 (i64, i8*)* @mg_vcasecmp, { 1, 0 } uselistorder i64 4, { 1, 0 } uselistorder i64 (i64, i64, i64*, i64)* @mg_skip, { 4, 3, 2, 1, 0 } uselistorder i64 -1, { 1, 0, 2 } uselistorder i64 32, { 1, 2, 0 } uselistorder i1 false, { 3, 4, 5, 0, 6, 2, 7, 1 } uselistorder i32 0, { 1, 2, 3, 0, 4, 5 } uselistorder i64 %arg1, { 0, 1, 3, 2, 4, 5 } uselistorder label LBL_19, { 5, 0, 2, 1, 4, 3, 6 } uselistorder label LBL_5, { 1, 0, 2 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
do_fault_4204
do_fault
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64* %arg4, i64* %arg5, i64 %arg6) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg4 to i64 %1 = ptrtoint i64* %arg2 to i64 %2 = add i64 %1, 16 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = call i64 @FUNC(i64 %0) %6 = add i64 %1, 24 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = icmp eq i64 %10, 0 %12 = icmp eq i1 %11, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %12, label LBL_1, label LBL_6 LBL_1: %13 = ptrtoint i64* %arg5 to i64 %14 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg6, 4294967296 %15 = ashr exact i64 %sext, 32 %16 = and i64 %arg3, -4096 %17 = sub i64 %16, %1 %18 = udiv i64 %17, 4096 %19 = add i64 %4, %18 %20 = urem i64 %arg6, 2 %21 = icmp eq i64 %20, 0 %22 = icmp eq i1 %21, false br i1 %22, label LBL_3, label LBL_2 LBL_2: %23 = and i64 %15, 4294967295 %24 = call i64 @FUNC(i64 %14, i64 %1, i64 %arg3, i64 %13, i64 %19, i64 %23) store i64 %24, i64* %rax.0.reg2mem br label LBL_6 LBL_3: %25 = add i64 %1, 8 %26 = inttoptr i64 %25 to i64* %27 = load i64, i64* %26, align 8 %28 = and i64 %27, 2 %29 = icmp eq i64 %28, 0 %30 = icmp eq i1 %29, false %31 = and i64 %15, 4294967295 br i1 %30, label LBL_5, label LBL_4 LBL_4: %32 = call i64 @FUNC(i64 %14, i64 %1, i64 %arg3, i64 %13, i64 %19, i64 %31) store i64 %32, i64* %rax.0.reg2mem br label LBL_6 LBL_5: %33 = call i64 @FUNC(i64 %14, i64 %1, i64 %arg3, i64 %13, i64 %19, i64 %31) store i64 %33, 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 %31, { 1, 0 } uselistorder i64 %19, { 1, 2, 0 } uselistorder i64 %14, { 1, 2, 0 } uselistorder i64 %13, { 1, 2, 0 } uselistorder i64 %1, { 3, 2, 1, 0, 6, 4, 5 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64 2, { 1, 0 } uselistorder i64 %arg6, { 1, 0 } uselistorder i64 %arg3, { 1, 2, 0, 3 } uselistorder label LBL_6, { 1, 2, 3, 0 } }
0
BinRealVul
jsvGetString_5518
jsvGetString
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.lcssa.reg2mem = alloca i64 %sv_1.0.lcssa.reg2mem = alloca i64 %sv_1.04.reg2mem = alloca i64 %sv_0.05.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i8* %.lcssa3.reg2mem = alloca i64 %storemerge8.reg2mem = alloca i32 %.reg2mem28 = alloca i8 %.reg2mem = alloca i8* %1 = load i64, i64* %0 %sv_2 = alloca i64, align 8 %2 = icmp eq i64 %arg3, 0 %3 = icmp eq i1 %2, false br i1 %3, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 91, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %4 = call i64 @FUNC(i64 %arg1) %5 = icmp eq i64 %4, 0 br i1 %5, label LBL_6, label LBL_3 LBL_3: %6 = add i64 %arg3, -1 %7 = inttoptr i64 %4 to i8* %8 = load i8, i8* %7, align 1 %9 = icmp ne i8 %8, 0 %10 = icmp ne i64 %6, 0 %or.cond7 = icmp eq i1 %10, %9 %11 = inttoptr i64 %arg2 to i8* store i8* %11, i8** %.reg2mem store i8 %8, i8* %.reg2mem28 store i32 0, i32* %storemerge8.reg2mem store i64 0, i64* %.lcssa3.reg2mem store i8* %11, i8** %.lcssa.reg2mem br i1 %or.cond7, label LBL_4, label LBL_5 LBL_4: %storemerge8.reload = load i32, i32* %storemerge8.reg2mem %.reload29 = load i8, i8* %.reg2mem28 %.reload = load i8*, i8** %.reg2mem store i8 %.reload29, i8* %.reload, align 1 %12 = add i32 %storemerge8.reload, 1 %13 = sext i32 %12 to i64 %14 = add i64 %4, %13 %15 = inttoptr i64 %14 to i8* %16 = load i8, i8* %15, align 1 %17 = icmp ne i8 %16, 0 %18 = icmp ugt i64 %6, %13 %or.cond = icmp eq i1 %17, %18 %19 = add i64 %13, %arg2 %20 = inttoptr i64 %19 to i8* store i8* %20, i8** %.reg2mem store i8 %16, i8* %.reg2mem28 store i32 %12, i32* %storemerge8.reg2mem store i64 %13, i64* %.lcssa3.reg2mem store i8* %20, i8** %.lcssa.reg2mem br i1 %or.cond, label LBL_4, label LBL_5 LBL_5: %.lcssa.reload = load i8*, i8** %.lcssa.reg2mem %.lcssa3.reload = load i64, i64* %.lcssa3.reg2mem store i8 0, i8* %.lcssa.reload, align 1 store i64 %.lcssa3.reload, i64* %rax.0.reg2mem br label LBL_21 LBL_6: %21 = call i64 @FUNC(i64 %arg1) %22 = trunc i64 %21 to i32 %23 = icmp eq i32 %22, 0 br i1 %23, label LBL_8, label LBL_7 LBL_7: %24 = and i64 %1, 4294967295 %25 = call i64 @FUNC(i64 %24, i64 %arg2, i64 10) %26 = inttoptr i64 %arg2 to i8* %27 = call i32 @strlen(i8* %26) %28 = sext i32 %27 to i64 store i64 %28, i64* %rax.0.reg2mem br label LBL_21 LBL_8: %29 = call i64 @FUNC(i64 %arg1) %30 = trunc i64 %29 to i32 %31 = icmp eq i32 %30, 0 br i1 %31, label LBL_10, label LBL_9 LBL_9: %32 = trunc i64 %1 to i32 %33 = call i128 @FUNC(i32 %32) %34 = call i64 @FUNC(i64 %arg2, i64 %arg3) %35 = inttoptr i64 %arg2 to i8* %36 = call i32 @strlen(i8* %35) %37 = sext i32 %36 to i64 store i64 %37, i64* %rax.0.reg2mem br label LBL_21 LBL_10: %38 = call i64 @FUNC(i64 %arg1) %39 = trunc i64 %38 to i32 %40 = icmp eq i32 %39, 0 br i1 %40, label LBL_18, label LBL_11 LBL_11: %41 = call i64 @FUNC(i64 %arg1) %42 = trunc i64 %41 to i32 %43 = icmp eq i32 %42, 0 br i1 %43, label LBL_13, label LBL_12 LBL_12: call void @__assert_fail(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 108, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0)) br label LBL_13 LBL_13: %44 = call i64 @FUNC(i64* nonnull %sv_2, i64 %arg1, i64 0) %45 = call i64 @FUNC(i64* nonnull %sv_2) %46 = trunc i64 %45 to i32 %47 = icmp eq i32 %46, 0 %48 = icmp eq i1 %47, false store i64 %arg3, i64* %sv_0.05.reg2mem store i64 %arg2, i64* %sv_1.04.reg2mem store i64 %arg2, i64* %sv_1.0.lcssa.reg2mem store i64 %arg3, i64* %sv_0.0.lcssa.reg2mem br i1 %48, label LBL_14, label LBL_17 LBL_14: %sv_1.04.reload = load i64, i64* %sv_1.04.reg2mem %sv_0.05.reload = load i64, i64* %sv_0.05.reg2mem %49 = icmp ult i64 %sv_0.05.reload, 2 br i1 %49, label LBL_15, label LBL_16 LBL_15: %50 = inttoptr i64 %sv_1.04.reload to i8* store i8 0, i8* %50, align 1 %51 = call i64 @FUNC(i64* nonnull %sv_2) store i64 %arg3, i64* %rax.0.reg2mem br label LBL_21 LBL_16: %52 = add i64 %sv_0.05.reload, -1 %53 = add i64 %sv_1.04.reload, 1 %54 = call i64 @FUNC(i64* nonnull %sv_2) %55 = trunc i64 %54 to i8 %56 = inttoptr i64 %sv_1.04.reload to i8* store i8 %55, i8* %56, align 1 %57 = call i64 @FUNC(i64* nonnull %sv_2) %58 = call i64 @FUNC(i64* nonnull %sv_2) %59 = trunc i64 %58 to i32 %60 = icmp eq i32 %59, 0 %61 = icmp eq i1 %60, false store i64 %52, i64* %sv_0.05.reg2mem store i64 %53, i64* %sv_1.04.reg2mem store i64 %53, i64* %sv_1.0.lcssa.reg2mem store i64 %52, i64* %sv_0.0.lcssa.reg2mem br i1 %61, label LBL_14, label LBL_17 LBL_17: %sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem %sv_1.0.lcssa.reload = load i64, i64* %sv_1.0.lcssa.reg2mem %62 = call i64 @FUNC(i64* nonnull %sv_2) %63 = inttoptr i64 %sv_1.0.lcssa.reload to i8* store i8 0, i8* %63, align 1 %64 = sub i64 %arg3, %sv_0.0.lcssa.reload store i64 %64, i64* %rax.0.reg2mem br label LBL_21 LBL_18: %65 = call i64 @FUNC(i64 %arg1, i64 0) %66 = icmp eq i64 %65, 0 br i1 %66, label LBL_20, label LBL_19 LBL_19: %67 = call i64 @FUNC(i64 %65, i64 %arg2, i64 %arg3) store i64 %67, i64* %sv_2, align 8 %68 = call i64 @FUNC(i64 %65) %69 = load i64, i64* %sv_2, align 8 store i64 %69, i64* %rax.0.reg2mem br label LBL_21 LBL_20: %70 = inttoptr i64 %arg2 to i8* store i8 0, i8* %70, align 1 %71 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_4, i64 0, i64 0)) store i64 0, i64* %rax.0.reg2mem br label LBL_21 LBL_21: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %65, { 1, 0, 2 } uselistorder i64 %sv_1.04.reload, { 1, 0, 2 } uselistorder i64 %13, { 0, 2, 3, 1 } uselistorder i64 %6, { 1, 0 } uselistorder i64* %sv_2, { 7, 8, 1, 2, 3, 4, 5, 0, 6 } uselistorder i8** %.reg2mem, { 2, 0, 1 } uselistorder i8* %.reg2mem28, { 2, 0, 1 } uselistorder i32* %storemerge8.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.05.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.04.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 4, 5, 3, 2, 1 } uselistorder i64 (i64*)* @jsvStringIteratorHasChar, { 1, 0 } uselistorder i32 (i8*)* @strlen, { 1, 0 } uselistorder i32 0, { 2, 1, 3, 4, 5, 6, 0 } uselistorder i8 0, { 2, 4, 3, 5, 6, 0, 1 } uselistorder i64 -1, { 1, 0 } uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 } uselistorder i1 false, { 1, 0, 2 } uselistorder i64 %arg3, { 6, 5, 0, 1, 2, 4, 3, 7 } uselistorder i64 %arg2, { 9, 8, 0, 1, 7, 6, 5, 4, 2, 3 } uselistorder i64 %arg1, { 1, 0, 2, 3, 4, 5, 6 } uselistorder label LBL_21, { 0, 1, 3, 2, 4, 5, 6 } uselistorder label LBL_14, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
vtenc_close_1122
vtenc_close
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 88 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = icmp eq i64 %3, 0 %5 = icmp eq i1 %4, false br i1 %5, label LBL_1, label LBL_2 LBL_1: %6 = call i32 @pthread_cond_destroy(i64* %arg1) %7 = add i64 %0, 48 %8 = inttoptr i64 %7 to i64* %9 = call i32 @pthread_mutex_destroy(i64* %8) %10 = load i64, i64* %2, align 8 %11 = call i64 @FUNC(i64 %10) store i64 0, i64* %2, align 8 br label LBL_2 LBL_2: ret i64 0 uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
rose_getname_11398
rose_getname
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %storemerge35.reg2mem = alloca i32 %.reg2mem8 = alloca i64 %storemerge26.reg2mem = alloca i32 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i64* %arg1 to i64 %4 = trunc i64 %arg4 to i32 %5 = call i64 @FUNC(i64 %3) %6 = icmp eq i32 %4, 0 br i1 %6, label LBL_5, label LBL_1 LBL_1: %7 = trunc i64 %1 to i32 %8 = icmp eq i32 %7, 2 store i64 1, i64* %storemerge.reg2mem br i1 %8, label LBL_2, label LBL_9 LBL_2: %9 = inttoptr i64 %5 to i32* %10 = bitcast i64* %arg2 to i32* store i32 1, i32* %10, align 4 %11 = load i32, i32* %9, align 4 %12 = add i64 %2, 4 %13 = inttoptr i64 %12 to i32* store i32 %11, i32* %13, align 4 %14 = add i64 %5, 4 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = add i64 %2, 8 %18 = inttoptr i64 %17 to i32* store i32 %16, i32* %18, align 4 %19 = add i64 %5, 8 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = add i64 %2, 12 %23 = inttoptr i64 %22 to i32* store i32 %21, i32* %23, align 4 %24 = load i32, i32* %20, align 4 %25 = icmp eq i32 %24, 0 br i1 %25, label LBL_8, label LBL_3 LBL_3: %26 = add i64 %5, 12 %27 = add i64 %2, 16 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge26.reg2mem br label LBL_4 LBL_4: %storemerge26.reload = load i32, i32* %storemerge26.reg2mem %.reload = load i64, i64* %.reg2mem %28 = mul i64 %.reload, 4 %29 = add i64 %26, %28 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = add i64 %27, %28 %33 = inttoptr i64 %32 to i32* store i32 %31, i32* %33, align 4 %34 = add i32 %storemerge26.reload, 1 %35 = load i32, i32* %20, align 4 %36 = zext i32 %35 to i64 %37 = sext i32 %34 to i64 %38 = icmp slt i64 %37, %36 store i64 %37, i64* %.reg2mem store i32 %34, i32* %storemerge26.reg2mem br i1 %38, label LBL_4, label LBL_8 LBL_5: %39 = bitcast i64* %arg2 to i32* store i32 1, i32* %39, align 4 %40 = add i64 %5, 52 %41 = inttoptr i64 %40 to i32* %42 = load i32, i32* %41, align 4 %43 = add i64 %2, 4 %44 = inttoptr i64 %43 to i32* store i32 %42, i32* %44, align 4 %45 = add i64 %5, 56 %46 = inttoptr i64 %45 to i32* %47 = load i32, i32* %46, align 4 %48 = add i64 %2, 8 %49 = inttoptr i64 %48 to i32* store i32 %47, i32* %49, align 4 %50 = add i64 %5, 60 %51 = inttoptr i64 %50 to i32* %52 = load i32, i32* %51, align 4 %53 = add i64 %2, 12 %54 = inttoptr i64 %53 to i32* store i32 %52, i32* %54, align 4 %55 = load i32, i32* %51, align 4 %56 = icmp eq i32 %55, 0 br i1 %56, label LBL_8, label LBL_6 LBL_6: %57 = add i64 %5, 64 %58 = add i64 %2, 16 store i64 0, i64* %.reg2mem8 store i32 0, i32* %storemerge35.reg2mem br label LBL_7 LBL_7: %storemerge35.reload = load i32, i32* %storemerge35.reg2mem %.reload9 = load i64, i64* %.reg2mem8 %59 = mul i64 %.reload9, 4 %60 = add i64 %57, %59 %61 = inttoptr i64 %60 to i32* %62 = load i32, i32* %61, align 4 %63 = add i64 %58, %59 %64 = inttoptr i64 %63 to i32* store i32 %62, i32* %64, align 4 %65 = add i32 %storemerge35.reload, 1 %66 = load i32, i32* %51, align 4 %67 = zext i32 %66 to i64 %68 = sext i32 %65 to i64 %69 = icmp slt i64 %68, %67 store i64 %68, i64* %.reg2mem8 store i32 %65, i32* %storemerge35.reg2mem br i1 %69, label LBL_7, label LBL_8 LBL_8: %70 = bitcast i64* %arg3 to i32* store i32 56, i32* %70, align 4 store i64 0, i64* %storemerge.reg2mem br label LBL_9 LBL_9: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %59, { 1, 0 } uselistorder i32* %51, { 1, 0, 2 } uselistorder i64 %28, { 1, 0 } uselistorder i32* %20, { 1, 0, 2 } uselistorder i64 %2, { 0, 5, 6, 7, 1, 2, 3, 4 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge26.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem8, { 1, 0, 2 } uselistorder i32* %storemerge35.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 4, { 0, 2, 1, 3, 4 } uselistorder i32 0, { 0, 2, 1, 3, 4 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_8, { 1, 3, 0, 2 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
qcow2_grow_l1_table_2646
qcow2_grow_l1_table
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %.reg2mem16 = alloca i64 %storemerge4.reg2mem = alloca i32 %.reg2mem14 = alloca i64 %.reg2mem12 = alloca i32 %storemerge35.reg2mem = alloca i32 %.reg2mem = alloca i64 %sv_1.0.lcssa.reg2mem = alloca i32 %sv_1.06.reg2mem = alloca i32 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %2 = trunc i64 %arg2 to i32 %3 = trunc i64 %1 to i32 %4 = icmp slt i32 %3, %2 store i64 0, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_14 LBL_1: %5 = icmp eq i32 %3, 0 %6 = icmp eq i1 %5, false %spec.select = select i1 %6, i32 %3, i32 1 %7 = icmp slt i32 %spec.select, %2 store i32 %spec.select, i32* %sv_1.06.reg2mem store i32 %spec.select, i32* %sv_1.0.lcssa.reg2mem br i1 %7, label LBL_2, label LBL_3 LBL_2: %sv_1.06.reload = load i32, i32* %sv_1.06.reg2mem %8 = mul i32 %sv_1.06.reload, 3 %9 = add i32 %8, 1 %10 = icmp slt i32 %9, 0 %11 = zext i1 %10 to i32 %12 = add i32 %9, %11 %13 = ashr i32 %12, 1 %14 = icmp slt i32 %13, %2 store i32 %13, i32* %sv_1.06.reg2mem store i32 %13, i32* %sv_1.0.lcssa.reg2mem br i1 %14, label LBL_2, label LBL_3 LBL_3: %15 = ptrtoint i64* %arg1 to i64 %sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem %16 = mul i32 %sv_1.0.lcssa.reload, 8 %17 = zext i32 %16 to i64 %18 = call i64 @FUNC(i64 %17, i64 512) %sext2 = mul i64 %18, 4294967296 %19 = ashr exact i64 %sext2, 32 %20 = call i64 @FUNC(i64 %19) %21 = mul i32 %3, 8 %22 = add i64 %15, 8 %23 = inttoptr i64 %22 to i64* %24 = load i64, i64* %23, align 8 %25 = inttoptr i64 %20 to i64* %26 = inttoptr i64 %24 to i64* %27 = call i64* @memcpy(i64* %25, i64* %26, i32 %21) %28 = call i64 @FUNC(i64 %15, i64 %17) %29 = icmp slt i64 %28, 0 %30 = icmp eq i1 %29, false br i1 %30, label LBL_4, label LBL_5 LBL_4: %31 = bitcast i64* %rdi to i32* store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge35.reg2mem store i32 0, i32* %.reg2mem12 br i1 %5, label LBL_7, label LBL_6 LBL_5: %32 = call i64 @FUNC(i64 %20) store i64 %28, i64* %rax.0.reg2mem br label LBL_14 LBL_6: %storemerge35.reload = load i32, i32* %storemerge35.reg2mem %.reload = load i64, i64* %.reg2mem %33 = mul i64 %.reload, 8 %34 = add i64 %33, %20 %35 = inttoptr i64 %34 to i64* %36 = load i64, i64* %35, align 8 %37 = call i64 @FUNC(i64 %36) store i64 %37, i64* %35, align 8 %38 = add i32 %storemerge35.reload, 1 %39 = load i32, i32* %31, align 8 %40 = zext i32 %39 to i64 %41 = sext i32 %38 to i64 %42 = icmp slt i64 %41, %40 store i64 %41, i64* %.reg2mem store i32 %38, i32* %storemerge35.reg2mem store i32 %39, i32* %.reg2mem12 br i1 %42, label LBL_6, label LBL_7 LBL_7: %43 = load i64, i64* %23, align 8 %44 = call i64 @FUNC(i64 %43, i64 %28, i64 %20, i32 %16) %45 = trunc i64 %44 to i32 %46 = icmp slt i32 %45, 0 store i64 %44, i64* %sv_0.0.reg2mem br i1 %46, label LBL_13, label LBL_8 LBL_8: %.reload13 = load i32, i32* %.reg2mem12 %47 = icmp eq i32 %.reload13, 0 store i64 0, i64* %.reg2mem14 store i32 0, i32* %storemerge4.reg2mem store i64 0, i64* %.reg2mem16 br i1 %47, label LBL_11, label LBL_9 LBL_9: %storemerge4.reload = load i32, i32* %storemerge4.reg2mem %.reload15 = load i64, i64* %.reg2mem14 %48 = mul i64 %.reload15, 8 %49 = add i64 %48, %20 %50 = inttoptr i64 %49 to i64* %51 = load i64, i64* %50, align 8 %52 = call i64 @FUNC(i64 %51) store i64 %52, i64* %50, align 8 %53 = add i32 %storemerge4.reload, 1 %54 = load i32, i32* %31, align 8 %55 = zext i32 %54 to i64 %56 = sext i32 %53 to i64 %57 = icmp slt i64 %56, %55 store i64 %56, i64* %.reg2mem14 store i32 %53, i32* %storemerge4.reg2mem br i1 %57, label LBL_9, label LBL_10 LBL_10: %phitmp = mul i32 %54, 8 %phitmp9 = zext i32 %phitmp to i64 store i64 %phitmp9, i64* %.reg2mem16 br label LBL_11 LBL_11: %58 = zext i32 %sv_1.0.lcssa.reload to i64 %59 = call i64 @FUNC(i64* nonnull %sv_3, i64 %58) %60 = call i64 @FUNC(i64* nonnull %sv_2, i64 %28) %61 = load i64, i64* %23, align 8 %62 = ptrtoint i64* %sv_3 to i64 %63 = call i64 @FUNC(i64 %61, i64 0, i64 %62, i32 12) %64 = trunc i64 %63 to i32 %65 = icmp slt i32 %64, 0 store i64 %63, i64* %sv_0.0.reg2mem br i1 %65, label LBL_13, label LBL_12 LBL_12: %.reload17 = load i64, i64* %.reg2mem16 %66 = load i64, i64* %23, align 8 %67 = call i64 @FUNC(i64 %66) %68 = add i64 %15, 16 %69 = inttoptr i64 %68 to i64* %70 = load i64, i64* %69, align 8 %71 = call i64 @FUNC(i64 %15, i64 %70, i64 %.reload17) store i64 %28, i64* %69, align 8 store i64 %20, i64* %23, align 8 %72 = bitcast i64* %arg1 to i32* store i32 %sv_1.0.lcssa.reload, i32* %72, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_14 LBL_13: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %73 = call i64 @FUNC(i64 %20) %74 = call i64 @FUNC(i64 %15, i64 %28, i64 %17) %75 = and i64 %sv_0.0.reload, 4294967295 store i64 %75, 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 i64 %28, { 3, 1, 2, 4, 0, 5 } uselistorder i64 %20, { 4, 3, 0, 5, 1, 2, 6 } uselistorder i32 %16, { 1, 0 } uselistorder i64 %15, { 2, 0, 1, 3, 4 } uselistorder i32 %3, { 0, 3, 2, 1 } uselistorder i32 %2, { 1, 0, 2 } uselistorder i64* %sv_3, { 1, 0 } uselistorder i32* %sv_1.06.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge35.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem14, { 2, 0, 1 } uselistorder i32* %storemerge4.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64 (i64, i64, i64)* @qcow2_free_clusters, { 1, 0 } uselistorder i64 (i64, i64, i64, i32)* @bdrv_pwrite_sync, { 1, 0 } uselistorder i64 (i64)* @qemu_free, { 2, 1, 0 } uselistorder i32 0, { 5, 0, 4, 6, 1, 2, 3, 7 } uselistorder label LBL_14, { 1, 2, 3, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
ExprAppendMultiKeysymList_11192
ExprAppendMultiKeysymList
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 store i64 %0, i64* %sv_0, align 8 %2 = call i64 @FUNC(i64 %1) %3 = call i64 @FUNC(i64 %0) %4 = add i64 %1, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = and i64 %2, 4294967295 %8 = call i64 @FUNC(i64 %6, i64 %7) %9 = add i64 %1, 16 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = and i64 %3, 4294967295 %13 = call i64 @FUNC(i64 %11, i64 %12) %14 = call i64 @FUNC(i64 %11, i64 %12) %15 = call i64 @FUNC(i64* nonnull %sv_0) ret i64 %1 uselistorder i64 %12, { 1, 0 } uselistorder i64 (i64, i64)* @darray_append, { 1, 0 } uselistorder i64 (i64)* @darray_size, { 1, 0 } }
1
BinRealVul
qemu_chr_alloc_15129
qemu_chr_alloc
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i64 %rdi = alloca i64, align 8 %0 = call i64 @FUNC(i64 48) %1 = inttoptr i64 %0 to i32* %2 = add i64 %0, 8 %3 = call i64 @FUNC(i64 %2) %4 = add i64 %0, 4 %5 = inttoptr i64 %4 to i32* store i32 -1, i32* %5, align 4 %6 = bitcast i64* %rdi to i32* %7 = load i32, i32* %6, align 8 %8 = icmp eq i32 %7, 0 br i1 %8, label LBL_6, label LBL_1 LBL_1: %9 = ptrtoint i32* %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 br i1 %13, label LBL_3, label LBL_2 LBL_2: %14 = add i64 %9, 16 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = icmp eq i32 %16, 0 store i64 1089, i64* %storemerge3.reg2mem br i1 %17, label LBL_3, label LBL_4 LBL_3: store i64 577, i64* %storemerge3.reg2mem br label LBL_4 LBL_4: %storemerge3.reload = load i64, i64* %storemerge3.reg2mem %18 = add i64 %9, 8 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = call i64 @FUNC(i64 %20, i64 %storemerge3.reload, i64 438) %22 = trunc i64 %21 to i32 store i32 %22, i32* %1, align 4 %23 = icmp slt i32 %22, 0 %24 = icmp eq i1 %23, false store i64 %0, i64* %storemerge.reg2mem br i1 %24, label LBL_7, label LBL_5 LBL_5: %25 = ptrtoint i64* %arg2 to i64 %26 = load i64, i64* %19, align 8 %27 = call i32* @__errno_location() %28 = load i32, i32* %27, align 4 %29 = call i64 @FUNC(i64 %25, i32 %28, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %26) %30 = call i64 @FUNC(i64 %0) store i64 0, i64* %storemerge.reg2mem br label LBL_7 LBL_6: store i32 -1, i32* %1, align 4 store i64 %0, i64* %storemerge.reg2mem br label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32* %1, { 1, 0 } uselistorder i64 %0, { 1, 2, 0, 4, 5, 3 } uselistorder i64* %storemerge3.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 3, 1 } uselistorder label LBL_7, { 1, 2, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
ldbReplParseCommand_12402
ldbReplParseCommand
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i64 %sv_0.07.reg2mem = alloca i32 %sv_2.09.in.in.reg2mem = alloca i64 %.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = load i64, i64* @gv_0, align 8 %3 = call i64 @FUNC(i64 %2) %4 = icmp eq i64 %3, 0 %5 = icmp eq i1 %4, false store i64 0, i64* %rax.0.reg2mem br i1 %5, label LBL_1, label LBL_13 LBL_1: %6 = load i64, i64* @gv_0, align 8 %7 = call i64 @FUNC(i64 %6) %8 = inttoptr i64 %7 to i8* %9 = call i8* @strchr(i8* %8, i32 42) %10 = icmp eq i8* %9, null store i64 0, i64* %sv_1.0.reg2mem store i32 0, i32* %sv_0.1.reg2mem br i1 %10, label LBL_12, label LBL_2 LBL_2: %11 = call i8* @strstr(i8* nonnull %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0)) %12 = icmp eq i8* %11, null store i64 0, i64* %sv_1.0.reg2mem store i32 0, i32* %sv_0.1.reg2mem br i1 %12, label LBL_12, label LBL_3 LBL_3: %13 = trunc i64 %1 to i32 %14 = ptrtoint i8* %9 to i64 %15 = add i64 %14, 1 %16 = inttoptr i64 %15 to i8* store i8 0, i8* %11, align 1 %17 = call i32 @atoi(i8* %16) %18 = bitcast i64* %arg1 to i32* store i32 %17, i32* %18, align 4 %.off4 = add i32 %13, -1 %19 = icmp ugt i32 %.off4, 1023 store i64 0, i64* %sv_1.0.reg2mem store i32 0, i32* %sv_0.1.reg2mem br i1 %19, label LBL_12, label LBL_4 LBL_4: %20 = bitcast i64* %rdi to i32* %21 = ptrtoint i8* %11 to i64 %sext = mul i64 %1, 4294967296 %22 = ashr exact i64 %sext, 29 %23 = call i64 @FUNC(i64 %22) %24 = and i64 %1, 4294967295 %25 = icmp eq i64 %24, 0 store i64 0, i64* %.reg2mem store i64 %21, i64* %sv_2.09.in.in.reg2mem store i32 0, i32* %sv_0.07.reg2mem br i1 %25, label LBL_11, label LBL_5 LBL_5: %sv_0.07.reload = load i32, i32* %sv_0.07.reg2mem %sv_2.09.in.in.reload = load i64, i64* %sv_2.09.in.in.reg2mem %sv_2.09.in = add i64 %sv_2.09.in.in.reload, 2 %sv_2.09 = inttoptr i64 %sv_2.09.in to i8* %26 = load i8, i8* %sv_2.09, align 1 %27 = icmp eq i8 %26, 36 %28 = icmp eq i1 %27, false store i64 %23, i64* %sv_1.0.reg2mem store i32 %sv_0.07.reload, i32* %sv_0.1.reg2mem br i1 %28, label LBL_12, label LBL_6 LBL_6: %29 = call i8* @strstr(i8* nonnull %sv_2.09, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0)) %30 = icmp eq i8* %29, null store i64 %23, i64* %sv_1.0.reg2mem store i32 %sv_0.07.reload, i32* %sv_0.1.reg2mem br i1 %30, label LBL_12, label LBL_7 LBL_7: %31 = add i64 %sv_2.09.in.in.reload, 3 %32 = inttoptr i64 %31 to i8* store i8 0, i8* %29, align 1 %33 = call i32 @atoi(i8* %32) %.off = add i32 %33, -1 %34 = icmp ugt i32 %.off, 1023 store i64 %23, i64* %sv_1.0.reg2mem store i32 %sv_0.07.reload, i32* %sv_0.1.reg2mem br i1 %34, label LBL_12, label LBL_8 LBL_8: %.reload = load i64, i64* %.reg2mem %35 = ptrtoint i8* %29 to i64 %36 = add i64 %35, 2 %37 = sext i32 %33 to i64 %38 = add i32 %sv_0.07.reload, 1 %39 = mul i64 %.reload, 8 %40 = add i64 %39, %23 %41 = call i64 @FUNC(i64 %36, i64 %37) %42 = inttoptr i64 %40 to i64* store i64 %41, i64* %42, align 8 %43 = add i64 %36, %37 %44 = inttoptr i64 %43 to i8* %45 = load i8, i8* %44, align 1 %46 = icmp eq i8 %45, 13 %47 = icmp eq i1 %46, false store i64 %23, i64* %sv_1.0.reg2mem store i32 %38, i32* %sv_0.1.reg2mem br i1 %47, label LBL_12, label LBL_9 LBL_9: %48 = add i64 %43, 1 %49 = inttoptr i64 %48 to i8* %50 = load i8, i8* %49, align 1 %51 = icmp eq i8 %50, 10 %52 = icmp eq i1 %51, false store i64 %23, i64* %sv_1.0.reg2mem store i32 %38, i32* %sv_0.1.reg2mem br i1 %52, label LBL_12, label LBL_9.dec_label_pc_4014bd_crit_edge LBL_10: %.pre = load i32, i32* %20, align 8 %53 = zext i32 %.pre to i64 %54 = sext i32 %38 to i64 %55 = icmp slt i64 %54, %53 store i64 %54, i64* %.reg2mem store i64 %43, i64* %sv_2.09.in.in.reg2mem store i32 %38, i32* %sv_0.07.reg2mem br i1 %55, label LBL_5, label LBL_11 LBL_11: %56 = call i64 @FUNC(i64 %7) store i64 %23, i64* %rax.0.reg2mem br label LBL_13 LBL_12: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %57 = zext i32 %sv_0.1.reload to i64 %58 = call i64 @FUNC(i64 %sv_1.0.reload, i64 %57) %59 = call i64 @FUNC(i64 %7) store i64 0, i64* %rax.0.reg2mem br label LBL_13 LBL_13: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %38, { 2, 3, 1, 0 } uselistorder i32 %33, { 1, 0 } uselistorder i8* %29, { 1, 0, 2 } uselistorder i64 %sv_2.09.in.in.reload, { 1, 0 } uselistorder i32 %sv_0.07.reload, { 3, 0, 1, 2 } uselistorder i64 %23, { 0, 2, 1, 6, 3, 4, 5 } uselistorder i8* %11, { 1, 0, 2 } uselistorder i64 %7, { 1, 0, 2 } uselistorder i64 %1, { 1, 2, 0 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_2.09.in.in.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.07.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1, 3, 4, 5, 6, 7, 8 } uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1, 3, 4, 5, 6, 7, 8 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64 2, { 1, 0 } uselistorder i32 1023, { 1, 0 } uselistorder i32 -1, { 1, 0 } uselistorder i64 1, { 1, 2, 0 } uselistorder label LBL_13, { 1, 2, 0 } uselistorder label LBL_12, { 1, 0, 2, 3, 4, 5, 6, 7 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
ppc_tlb_invalidate_all_3013
ppc_tlb_invalidate_all
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = and i64 %1, 4294967295 store i64 %3, i64* @0, align 8 switch i32 %2, label LBL_8 [ i32 1, label LBL_1 i32 2, label LBL_1 i32 3, label LBL_2 i32 4, label LBL_2 i32 5, label LBL_3 i32 6, label LBL_4 i32 7, label LBL_5 i32 8, label LBL_6 i32 9, label LBL_7 i32 10, label LBL_7 i32 11, label LBL_7 i32 12, label LBL_7 i32 13, label LBL_7 i32 14, label LBL_7 ] LBL_1: %4 = ptrtoint i32* %arg1 to i64 %5 = call i64 @FUNC(i64 %4) store i64 %5, i64* %rax.0.reg2mem br label LBL_9 LBL_2: %6 = ptrtoint i32* %arg1 to i64 %7 = call i64 @FUNC(i64 %6) store i64 %7, i64* %rax.0.reg2mem br label LBL_9 LBL_3: %8 = ptrtoint i32* %arg1 to i64 %9 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0)) unreachable LBL_4: %10 = ptrtoint i32* %arg1 to i64 %11 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_1, i64 0, i64 0)) unreachable LBL_5: %12 = ptrtoint i32* %arg1 to i64 %13 = call i64 @FUNC(i64 %12, i64 1) store i64 %13, i64* %rax.0.reg2mem br label LBL_9 LBL_6: %14 = ptrtoint i32* %arg1 to i64 %15 = call i64 @FUNC(i64 %14, i64 4294967295, i64 0) store i64 %15, i64* %rax.0.reg2mem br label LBL_9 LBL_7: %16 = ptrtoint i32* %arg1 to i64 %17 = call i64 @FUNC(i64 %16, i64 1) store i64 %17, i64* %rax.0.reg2mem br label LBL_9 LBL_8: %18 = ptrtoint i32* %arg1 to i64 %19 = call i64 @FUNC(i64 %18, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0)) unreachable LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 2, 1 } uselistorder i64 (i64, i64)* @tlb_flush, { 1, 0 } uselistorder i64 (i64, i8*)* @cpu_abort, { 0, 2, 1 } uselistorder i64 4294967295, { 1, 0 } uselistorder i32* %arg1, { 7, 6, 5, 4, 3, 2, 1, 0 } }
0
BinRealVul
av_open_input_stream_3664
av_open_input_stream
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i64 %.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %sv_4 = alloca i64, align 8 %2 = icmp eq i64 %arg5, 0 %3 = icmp eq i1 %2, false store i64 %arg5, i64* %sv_1.0.reg2mem br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = ptrtoint i64* %sv_4 to i64 %5 = call i64* @memset(i64* nonnull %sv_4, i32 0, i32 4) store i64 %4, i64* %sv_1.0.reg2mem br label LBL_2 LBL_2: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %6 = call i64 @FUNC(i64 %sv_1.0.reload) store i64 %6, i64* %sv_3, align 8 %7 = inttoptr i64 %sv_1.0.reload to i32* %8 = load i32, i32* %7, align 4 %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false br i1 %10, label LBL_4, label LBL_3 LBL_3: %11 = call i64 @FUNC() store i64 %11, i64* %sv_2, align 8 store i64 %11, i64* %arg1, align 8 store i64 %11, i64* %.reg2mem br label LBL_5 LBL_4: store i64 %sv_1.0.reload, i64* %sv_2, align 8 store i64 %sv_1.0.reload, i64* %.reg2mem br label LBL_5 LBL_5: %.reload = load i64, i64* %.reg2mem %12 = icmp eq i64 %.reload, 0 %13 = icmp eq i1 %12, false store i64 4294967284, i64* %sv_0.0.reg2mem br i1 %13, label LBL_6, label LBL_10 LBL_6: %14 = icmp eq i64 %arg2, 0 %15 = urem i64 %arg4, 2 %16 = icmp eq i64 %15, 0 %or.cond3 = or i1 %14, %16 br i1 %or.cond3, label LBL_8, label LBL_7 LBL_7: %17 = call i64 @FUNC(i64 %.reload, i64 0, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @gv_0, i64 0, i64 0), i64 %arg4, i64 %arg5, i64 %1) br label LBL_9 LBL_8: %18 = inttoptr i64 %.reload to i64* store i64 %arg2, i64* %18, align 8 br label LBL_9 LBL_9: %19 = call i64 @FUNC(i64* nonnull %sv_2, i64 %arg3, i64 %arg4, i64* nonnull %sv_3) %20 = load i64, i64* %sv_2, align 8 %21 = inttoptr i64 %20 to i64* %22 = load i64, i64* %21, align 8 %23 = icmp eq i64 %22, 0 %arg2. = select i1 %23, i64 %arg2, i64 %22 store i64 %arg2., i64* %21, align 8 %24 = load i64, i64* %sv_2, align 8 store i64 %24, i64* %arg1, align 8 %phitmp = and i64 %19, 4294967295 store i64 %phitmp, i64* %sv_0.0.reg2mem br label LBL_10 LBL_10: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %25 = call i64 @FUNC(i64* nonnull %sv_3) ret i64 %sv_0.0.reload uselistorder i64 %.reload, { 2, 0, 1 } uselistorder i64 %sv_1.0.reload, { 0, 3, 1, 2 } uselistorder i64* %sv_2, { 1, 2, 0, 3, 4 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64 %arg5, { 1, 0, 2 } uselistorder i64 %arg4, { 2, 1, 0 } uselistorder label LBL_10, { 1, 0 } }
0
BinRealVul
jacosub_probe_16995
jacosub_probe
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.11.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = sext i32 %3 to i64 %5 = add i64 %4, %0 %6 = call i64 @FUNC(i64 %0) %7 = trunc i64 %6 to i32 %8 = icmp eq i32 %7, 15711167 %9 = icmp eq i1 %8, false %10 = add i64 %0, 3 %spec.select = select i1 %9, i64 %0, i64 %10 %11 = icmp ult i64 %spec.select, %5 store i64 %spec.select, i64* %sv_0.11.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %11, label LBL_1.preheader, label LBL_6 LBL_1: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %12 = inttoptr i64 %sv_0.0.reload to i8* %13 = load i8, i8* %12, align 1 %14 = sext i8 %13 to i64 %15 = and i64 %14, 4294967295 %16 = call i64 @FUNC(i64 %15) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %17, 0 %19 = icmp eq i1 %18, false %20 = add i64 %sv_0.0.reload, 1 store i64 %20, i64* %sv_0.0.reg2mem br i1 %19, label LBL_1, label LBL_2 LBL_2: %21 = load i8, i8* %12, align 1 switch i8 %21, label LBL_3 [ i8 35, label LBL_4 i8 10, label LBL_4 ] LBL_3: %22 = call i64 @FUNC(i64 %sv_0.0.reload) %23 = trunc i64 %22 to i32 %24 = icmp eq i32 %23, 0 %. = select i1 %24, i64 0, i64 51 store i64 %., i64* %rax.0.reg2mem br label LBL_6 LBL_4: %25 = call i32 @strcspn(i8* nonnull %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0)) %26 = sext i32 %25 to i64 %27 = add i64 %20, %26 %28 = icmp ult i64 %27, %5 store i64 %27, i64* %sv_0.11.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %28, label LBL_1.preheader, label LBL_6 LBL_5: %sv_0.11.reload = load i64, i64* %sv_0.11.reg2mem store i64 %sv_0.11.reload, i64* %sv_0.0.reg2mem br label LBL_1 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %20, { 1, 0 } uselistorder i64 %sv_0.0.reload, { 2, 1, 0 } uselistorder i64 %5, { 1, 0 } uselistorder i64 %0, { 1, 2, 3, 0, 4 } uselistorder i64* %sv_0.0.reg2mem, { 1, 2, 0 } uselistorder i64* %sv_0.11.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2 } uselistorder i8 10, { 1, 0 } uselistorder i64 1, { 1, 0, 2 } uselistorder label LBL_6, { 0, 2, 1 } uselistorder label LBL_1.preheader, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
matroska_execute_seekhead_16309
matroska_execute_seekhead
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge1.reg2mem = alloca i32 %.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 = call i64 @FUNC(i64 %0) %5 = trunc i64 %0 to i32 %6 = icmp eq i32 %5, 0 store i64 0, i64* %rax.0.reg2mem br i1 %6, label LBL_9, label LBL_1 LBL_1: %7 = inttoptr i64 %1 to i32* %8 = load i32, i32* %7, align 4 %9 = urem i32 %8, 2 %10 = zext i32 %9 to i64 %11 = icmp eq i32 %9, 0 %12 = icmp eq i1 %11, false store i64 %10, i64* %rax.0.reg2mem br i1 %12, label LBL_9, label LBL_2 LBL_2: %13 = add i64 %0, 16 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = icmp eq i32 %15, 0 store i64 0, i64* %rax.0.reg2mem br i1 %16, label LBL_9, label LBL_3 LBL_3: %sext = mul i64 %4, 4294967296 %17 = ashr exact i64 %sext, 32 %18 = add i64 %0, 24 %19 = inttoptr i64 %18 to i32* store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge1.reg2mem br label LBL_4 LBL_4: %storemerge1.reload = load i32, i32* %storemerge1.reg2mem %.reload = load i64, i64* %.reg2mem %20 = mul i64 %.reload, 16 %21 = add i64 %20, %3 %22 = inttoptr i64 %21 to i64* %23 = load i64, i64* %22, align 8 %24 = icmp slt i64 %17, %23 br i1 %24, label LBL_5, label LBL_8 LBL_5: %25 = add i64 %21, 8 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = icmp eq i32 %27, 475249515 %29 = icmp eq i1 %28, false br i1 %29, label LBL_7, label LBL_6 LBL_6: store i32 1, i32* %19, align 4 br label LBL_8 LBL_7: %30 = zext i32 %storemerge1.reload to i64 %31 = call i64 @FUNC(i64 %0, i64 %30) %32 = trunc i64 %31 to i32 %33 = icmp slt i32 %32, 0 store i64 %31, i64* %rax.0.reg2mem br i1 %33, label LBL_9, label LBL_8 LBL_8: %34 = add i32 %storemerge1.reload, 1 %35 = load i32, i32* %14, align 4 %36 = zext i32 %35 to i64 %37 = sext i32 %34 to i64 %38 = icmp slt i64 %37, %36 store i64 %37, i64* %.reg2mem store i32 %34, i32* %storemerge1.reg2mem store i64 %36, i64* %rax.0.reg2mem br i1 %38, label LBL_4, label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32* %14, { 1, 0 } uselistorder i32 %9, { 1, 0 } uselistorder i64 %0, { 3, 2, 1, 0, 5, 4 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 } uselistorder i32 0, { 2, 0, 1, 3, 4 } uselistorder label LBL_9, { 0, 1, 2, 4, 3 } uselistorder label LBL_8, { 1, 2, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
imdct12_16508
imdct12
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i64* %arg1 to i64 %4 = trunc i64 %1 to i32 %5 = call i128 @FUNC(i32 %4) %6 = call i64 @__asm_movss.1(i128 %5) %7 = trunc i64 %6 to i32 %8 = add i64 %2, 12 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = call i128 @FUNC(i32 %10) %12 = call i128 @FUNC(i32 %4) %13 = call i128 @FUNC(i128 %12, i128 %11) %14 = call i64 @__asm_movss.1(i128 %13) %15 = trunc i64 %14 to i32 %16 = add i64 %2, 24 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = call i128 @FUNC(i32 %18) %20 = load i32, i32* %9, align 4 %21 = call i128 @FUNC(i32 %20) %22 = call i128 @FUNC(i128 %21, i128 %19) %23 = call i64 @__asm_movss.1(i128 %22) %24 = trunc i64 %23 to i32 %25 = add i64 %2, 36 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = call i128 @FUNC(i32 %27) %29 = load i32, i32* %17, align 4 %30 = call i128 @FUNC(i32 %29) %31 = call i128 @FUNC(i128 %30, i128 %28) %32 = call i64 @__asm_movss.1(i128 %31) %33 = trunc i64 %32 to i32 %34 = add i64 %2, 48 %35 = inttoptr i64 %34 to i32* %36 = load i32, i32* %35, align 4 %37 = call i128 @FUNC(i32 %36) %38 = load i32, i32* %26, align 4 %39 = call i128 @FUNC(i32 %38) %40 = call i128 @FUNC(i128 %39, i128 %37) %41 = call i64 @__asm_movss.1(i128 %40) %42 = trunc i64 %41 to i32 %43 = add i64 %2, 60 %44 = inttoptr i64 %43 to i32* %45 = load i32, i32* %44, align 4 %46 = call i128 @FUNC(i32 %45) %47 = load i32, i32* %35, align 4 %48 = call i128 @FUNC(i32 %47) %49 = call i128 @FUNC(i128 %48, i128 %46) %50 = call i64 @__asm_movss.1(i128 %49) %51 = trunc i64 %50 to i32 %52 = call i128 @FUNC(i32 %51) %53 = call i128 @__asm_addss.2(i128 %52, i32 %33) %54 = call i64 @__asm_movss.1(i128 %53) %55 = trunc i64 %54 to i32 %56 = call i128 @FUNC(i32 %33) %57 = call i128 @__asm_addss.2(i128 %56, i32 %15) %58 = call i64 @__asm_movss.1(i128 %57) %59 = trunc i64 %58 to i32 %60 = call i128 @FUNC(i32 %7) %61 = call i128 @FUNC(i128 %60, i32 %42) %62 = call i64 @__asm_movss.1(i128 %61) %63 = trunc i64 %62 to i32 %64 = call i128 @FUNC(i32 %15) %65 = call i128 @FUNC(i128 %64, i32 %55) %66 = call i64 @__asm_movss.1(i128 %65) %67 = trunc i64 %66 to i32 %68 = add i64 %3, 40 %69 = call i128 @FUNC(i32 %63) %70 = call i128 @__asm_addss.2(i128 %69, i32 %67) %71 = call i64 @__asm_movss.1(i128 %70) %72 = trunc i64 %71 to i32 %73 = inttoptr i64 %68 to i32* store i32 %72, i32* %73, align 4 %74 = add i64 %3, 28 %75 = call i128 @FUNC(i32 %72) %76 = call i64 @__asm_movss.1(i128 %75) %77 = trunc i64 %76 to i32 %78 = inttoptr i64 %74 to i32* store i32 %77, i32* %78, align 4 %79 = add i64 %3, 16 %80 = call i128 @FUNC(i32 %63) %81 = call i128 @FUNC(i128 %80, i32 %67) %82 = call i64 @__asm_movss.1(i128 %81) %83 = trunc i64 %82 to i32 %84 = inttoptr i64 %79 to i32* store i32 %83, i32* %84, align 4 %85 = add i64 %3, 4 %86 = call i128 @FUNC(i32 %83) %87 = call i64 @__asm_movss.1(i128 %86) %88 = trunc i64 %87 to i32 %89 = inttoptr i64 %85 to i32* store i32 %88, i32* %89, align 4 %90 = call i128 @FUNC(i32 %42) %91 = load i32, i32* inttoptr (i64 4202516 to i32*), align 4 %92 = call i128 @FUNC(i32 %91) %93 = call i128 @FUNC(i128 %92, i128 %90) %94 = call i128 @FUNC(i32 %7) %95 = call i128 @FUNC(i128 %93, i128 %94) %96 = call i64 @__asm_movss.1(i128 %95) %97 = trunc i64 %96 to i32 %98 = call i128 @FUNC(i32 %97) %99 = call i128 @__asm_addss.2(i128 %98, i32 %24) %100 = call i64 @__asm_movss.1(i128 %99) %101 = trunc i64 %100 to i32 %102 = call i128 @FUNC(i32 %15) %103 = call i128 @FUNC(i128 %102, i128 %102) %104 = call i128 @FUNC(i32 %55) %105 = call i128 @FUNC(i128 %103, i128 %104) %106 = call i64 @__asm_movss.1(i128 %105) %107 = trunc i64 %106 to i32 %108 = call i128 @FUNC(i32 %107) %109 = call i128 @__asm_addss.2(i128 %108, i32 %59) %110 = call i64 @__asm_movss.1(i128 %109) %111 = trunc i64 %110 to i32 %112 = add i64 %3, 36 %113 = call i128 @FUNC(i32 %101) %114 = call i128 @__asm_addss.2(i128 %113, i32 %111) %115 = call i64 @__asm_movss.1(i128 %114) %116 = trunc i64 %115 to i32 %117 = inttoptr i64 %112 to i32* store i32 %116, i32* %117, align 4 %118 = add i64 %3, 32 %119 = call i128 @FUNC(i32 %116) %120 = call i64 @__asm_movss.1(i128 %119) %121 = trunc i64 %120 to i32 %122 = inttoptr i64 %118 to i32* store i32 %121, i32* %122, align 4 %123 = add i64 %3, 12 %124 = call i128 @FUNC(i32 %101) %125 = call i128 @FUNC(i128 %124, i32 %111) %126 = call i64 @__asm_movss.1(i128 %125) %127 = trunc i64 %126 to i32 %128 = inttoptr i64 %123 to i32* store i32 %127, i32* %128, align 4 %129 = add i64 %3, 8 %130 = call i128 @FUNC(i32 %127) %131 = call i64 @__asm_movss.1(i128 %130) %132 = trunc i64 %131 to i32 %133 = inttoptr i64 %129 to i32* store i32 %132, i32* %133, align 4 %134 = call i128 @FUNC(i32 %97) %135 = call i128 @FUNC(i128 %134, i32 %24) %136 = call i64 @__asm_movss.1(i128 %135) %137 = trunc i64 %136 to i32 %138 = call i128 @FUNC(i32 %107) %139 = call i128 @FUNC(i128 %138, i32 %59) %140 = call i64 @__asm_movss.1(i128 %139) %141 = trunc i64 %140 to i32 %142 = add i64 %3, 20 %143 = call i128 @FUNC(i32 %137) %144 = call i128 @FUNC(i128 %143, i32 %141) %145 = call i64 @__asm_movss.1(i128 %144) %146 = trunc i64 %145 to i32 %147 = inttoptr i64 %142 to i32* store i32 %146, i32* %147, align 4 %148 = call i128 @FUNC(i32 %146) %149 = call i64 @__asm_movss.1(i128 %148) %150 = trunc i64 %149 to i32 %151 = bitcast i64* %arg1 to i32* store i32 %150, i32* %151, align 4 %152 = add i64 %3, 44 %153 = call i128 @FUNC(i32 %137) %154 = call i128 @__asm_addss.2(i128 %153, i32 %141) %155 = call i64 @__asm_movss.1(i128 %154) %156 = trunc i64 %155 to i32 %157 = inttoptr i64 %152 to i32* store i32 %156, i32* %157, align 4 %158 = add i64 %3, 24 %159 = call i128 @FUNC(i32 %156) %160 = call i64 @__asm_movss.1(i128 %159) %161 = trunc i64 %160 to i32 %162 = inttoptr i64 %158 to i32* store i32 %161, i32* %162, align 4 ret i64 %152 uselistorder i64 %152, { 1, 0 } uselistorder i32 %141, { 1, 0 } uselistorder i32 %137, { 1, 0 } uselistorder i32 %111, { 1, 0 } uselistorder i32 %107, { 1, 0 } uselistorder i128 %102, { 1, 0 } uselistorder i32 %101, { 1, 0 } uselistorder i32 %97, { 1, 0 } uselistorder i32 %67, { 1, 0 } uselistorder i32 %63, { 1, 0 } uselistorder i32 %59, { 1, 0 } uselistorder i32 %55, { 1, 0 } uselistorder i32 %42, { 1, 0 } uselistorder i32 %33, { 1, 0 } uselistorder i32 %24, { 1, 0 } uselistorder i32 %15, { 2, 1, 0 } uselistorder i32 %7, { 1, 0 } }
1
BinRealVul
add_command_16646
add_command
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = load i32, i32* @gv_0, align 4 %2 = add i32 %1, 1 store i32 %2, i32* @gv_0, align 4 %3 = mul i32 %2, 16 %4 = load i64, i64* @gv_1, align 8 %5 = inttoptr i64 %4 to i64* %6 = call i64* @realloc(i64* %5, i32 %3) %7 = ptrtoint i64* %6 to i64 store i64 %7, i64* @gv_1, align 8 %8 = load i32, i32* @gv_0, align 4 %9 = sext i32 %8 to i64 %10 = mul i64 %9, 16 %11 = add i64 %7, -16 %12 = add i64 %11, %10 %13 = add i64 %0, 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = inttoptr i64 %12 to i64* store i64 %4, i64* %16, align 8 %17 = add i64 %12, 8 %18 = inttoptr i64 %17 to i64* store i64 %15, i64* %18, align 8 %19 = load i64, i64* @gv_1, align 8 %20 = inttoptr i64 %19 to i64* call void @qsort(i64* %20, i32 %8, i32 16, i32 (i64*, i64*)* inttoptr (i64 4198758 to i32 (i64*, i64*)*)) ret i64 ptrtoint (i32* @0 to i64) uselistorder i64 %12, { 1, 0 } uselistorder i32 16, { 1, 0 } }
1
BinRealVul
vidioc_s_register_4770
vidioc_s_register
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = trunc i64 %1 to i32 %4 = call i64 @FUNC(i64 %2, i64 0) %5 = trunc i64 %4 to i32 %6 = add i32 %5, -4 %7 = icmp ult i32 %6, %3 store i64 4294967274, i64* %storemerge.reg2mem br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = ptrtoint i64* %arg3 to i64 %9 = add i64 %8, 4 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = and i64 %1, 4294967295 %13 = call i64 @FUNC(i64 %2, i64 %12, i32 %11) store i64 0, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %1, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
get_v4lctrl_18294
get_v4lctrl
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = call i64 @FUNC(i64 %2) %4 = trunc i64 %1 to i32 %5 = and i64 %1, 4294967295 store i64 %5, i64* @0, align 8 store i64 4294967274, i64* %rax.0.reg2mem switch i32 %4, label LBL_7 [ i32 1, label LBL_1 i32 2, label LBL_2 i32 3, label LBL_3 i32 4, label LBL_4 i32 5, label LBL_5 i32 6, label LBL_6 i32 7, label LBL_6 i32 8, label LBL_6 i32 9, label LBL_6 i32 10, label LBL_6 ] LBL_1: %6 = inttoptr i64 %3 to i32* %7 = load i32, i32* %6, align 4 %8 = ptrtoint i32* %arg2 to i64 %9 = add i64 %8, 4 %10 = inttoptr i64 %9 to i32* store i32 %7, i32* %10, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_7 LBL_2: %11 = call i64 @FUNC(i64 %2, i64 1044) %12 = trunc i64 %11 to i32 %13 = add i32 %12, 128 %14 = ptrtoint i32* %arg2 to i64 %15 = add i64 %14, 4 %16 = inttoptr i64 %15 to i32* store i32 %13, i32* %16, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_7 LBL_3: %17 = call i64 @FUNC(i64 %2, i64 1045) %18 = trunc i64 %17 to i32 %19 = ashr i32 %18, 1 %20 = ptrtoint i32* %arg2 to i64 %21 = add i64 %20, 4 %22 = inttoptr i64 %21 to i32* store i32 %19, i32* %22, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_7 LBL_4: %23 = call i64 @FUNC(i64 %2, i64 1056) %24 = trunc i64 %23 to i32 %25 = ashr i32 %24, 1 %26 = ptrtoint i32* %arg2 to i64 %27 = add i64 %26, 4 %28 = inttoptr i64 %27 to i32* store i32 %25, i32* %28, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_7 LBL_5: %29 = call i64 @FUNC(i64 %2, i64 1058) %30 = ptrtoint i32* %arg2 to i64 %31 = trunc i64 %29 to i32 %32 = add i64 %30, 4 %33 = inttoptr i64 %32 to i32* store i32 %31, i32* %33, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_7 LBL_6: %34 = ptrtoint i32* %arg2 to i64 %35 = call i64 @FUNC(i64 %2, i64 11, i64 %34) store i64 %35, 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, { 4, 3, 2, 1, 0, 5 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 7, 5, 4, 3, 2, 1, 6 } uselistorder i64 (i64, i64)* @cx25840_read, { 3, 2, 1, 0 } uselistorder i32* %arg2, { 5, 4, 3, 2, 1, 0 } uselistorder label LBL_7, { 6, 4, 3, 2, 1, 0, 5 } }
1
BinRealVul
con_install_7311
con_install
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = call i64 @FUNC() %3 = and i64 %1, 4294967295 %4 = call i64 @FUNC(i64 %3) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 %7 = icmp eq i1 %6, false store i64 %4, i64* %sv_0.0.reg2mem br i1 %7, label LBL_9, label LBL_1 LBL_1: %8 = mul i64 %3, 8 %9 = add i64 %8, ptrtoint (i64* @gv_0 to i64) %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = icmp eq i64 %13, 0 store i64 4294966784, i64* %sv_0.0.reg2mem br i1 %14, label LBL_2, label LBL_9 LBL_2: %15 = ptrtoint i64* %arg2 to i64 %16 = ptrtoint i64* %arg1 to i64 %17 = call i64 @FUNC(i64 %11, i64 %16, i64 %15) %18 = trunc i64 %17 to i32 %19 = icmp eq i32 %18, 0 %20 = icmp eq i1 %19, false store i64 %17, i64* %sv_0.0.reg2mem br i1 %20, label LBL_9, label LBL_3 LBL_3: %21 = add i64 %15, 16 %22 = inttoptr i64 %21 to i64* store i64 %11, i64* %22, align 8 store i64 %15, i64* %12, align 8 %23 = call i64 @FUNC(i64 %11) %24 = add i64 %15, 4 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = icmp eq i32 %26, 0 %28 = icmp eq i1 %27, false br i1 %28, label LBL_6, label LBL_4 LBL_4: %29 = add i64 %15, 8 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = icmp eq i32 %31, 0 %33 = icmp eq i1 %32, false br i1 %33, label LBL_6, label LBL_5 LBL_5: %34 = load i64, i64* %10, align 8 %35 = add i64 %34, 8 %36 = inttoptr i64 %35 to i32* %37 = load i32, i32* %36, align 4 store i32 %37, i32* %25, align 4 %38 = load i64, i64* %10, align 8 %39 = add i64 %38, 12 %40 = inttoptr i64 %39 to i32* %41 = load i32, i32* %40, align 4 store i32 %41, i32* %30, align 4 br label LBL_6 LBL_6: %42 = add i64 %11, 16 %43 = inttoptr i64 %42 to i32* %44 = load i32, i32* %43, align 4 %45 = icmp eq i32 %44, 0 %46 = add i64 %15, 12 %47 = inttoptr i64 %46 to i32* %48 = load i32, i32* %47, align 4 br i1 %45, label LBL_8, label LBL_7 LBL_7: %49 = or i32 %48, 2048 store i32 %49, i32* %47, align 4 store i64 %17, i64* %sv_0.0.reg2mem br label LBL_9 LBL_8: %50 = and i32 %48, -2049 store i32 %50, i32* %47, align 4 store i64 %17, i64* %sv_0.0.reg2mem br label LBL_9 LBL_9: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %51 = call i64 @FUNC() %52 = and i64 %sv_0.0.reload, 4294967295 ret i64 %52 uselistorder i32 %48, { 1, 0 } uselistorder i32* %47, { 1, 0, 2 } uselistorder i64 %17, { 1, 0, 2, 3 } uselistorder i64 %15, { 0, 2, 1, 3, 4, 5 } uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 4, 1, 5 } uselistorder i64 8, { 1, 2, 0 } uselistorder label LBL_9, { 3, 4, 1, 0, 2 } }
0
BinRealVul
qemu_console_lookup_by_device_3510
qemu_console_lookup_by_device
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %storemerge23.reg2mem = alloca i32 %.reg2mem = alloca i64 %0 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4 %1 = icmp eq i32 %0, 0 store i64 0, i64* %storemerge.reg2mem br i1 %1, label LBL_7, label LBL_1 LBL_1: %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %arg2 to i32 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge23.reg2mem br label LBL_2 LBL_2: %storemerge23.reload = load i32, i32* %storemerge23.reg2mem %.reload = load i64, i64* %.reg2mem %4 = mul i64 %.reload, 8 %5 = add i64 %4, ptrtoint (i64* @gv_0 to i64) %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = icmp eq i64 %7, 0 br i1 %8, label LBL_6, label LBL_3 LBL_3: %9 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i64 4198740) %10 = icmp eq i64 %9, %2 %11 = icmp eq i1 %10, false br i1 %11, label LBL_6, label LBL_4 LBL_4: %12 = load i64, i64* %6, align 8 %13 = call i64 @FUNC(i64 %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64 4198740) %14 = trunc i64 %13 to i32 %15 = icmp eq i32 %14, %3 %16 = icmp eq i1 %15, false br i1 %16, label LBL_6, label LBL_5 LBL_5: %17 = load i64, i64* %6, align 8 store i64 %17, i64* %storemerge.reg2mem br label LBL_7 LBL_6: %18 = add i32 %storemerge23.reload, 1 %19 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4 %20 = zext i32 %19 to i64 %21 = sext i32 %18 to i64 %22 = icmp slt i64 %21, %20 store i64 %21, i64* %.reg2mem store i32 %18, i32* %storemerge23.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %22, label LBL_2, label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge23.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 } uselistorder i32* inttoptr (i64 4210724 to i32*), { 1, 0 } uselistorder label LBL_7, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
tegra_io_pad_prepare_4929
tegra_io_pad_prepare
define i64 @FUNC(i64 %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 = and i64 %arg1, 4294967295 %2 = call i64 @FUNC(i64 %0, i64 %1) %3 = icmp eq i64 %2, 0 %4 = icmp eq i1 %3, false store i64 1, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_4 LBL_1: %5 = inttoptr i64 %2 to i64* %6 = load i64, i64* %5, align 8 %7 = icmp eq i64 %6, 4294967295 %8 = icmp eq i1 %7, false store i64 2, i64* %rax.0.reg2mem br i1 %8, label LBL_2, label LBL_4 LBL_2: %9 = trunc i64 %6 to i32 %10 = urem i32 %9, 32 %11 = bitcast i64* %arg4 to i32* store i32 %10, i32* %11, align 4 %12 = load i64, i64* %5, align 8 %13 = icmp ult i64 %12, 32 %. = select i1 %13, i64 1, i64 3 %.3 = select i1 %13, i64 2, i64 4 store i64 %., i64* %arg3, align 8 store i64 %.3, i64* %arg2, align 8 %14 = load i64, i64* @gv_0, align 8 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = call i64 @FUNC(i64 %16) %18 = icmp eq i64 %17, 0 %19 = icmp eq i1 %18, false store i64 3, i64* %rax.0.reg2mem br i1 %19, label LBL_3, label LBL_4 LBL_3: %20 = call i64 @FUNC(i64 5, i64 6) %21 = add i64 %17, 999999999 %22 = udiv i64 %21, %17 %23 = add i64 %22, 199 %24 = udiv i64 %23, %22 %25 = call i64 @FUNC(i64 %24, i64 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 i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64 (i64, i64)* @tegra_pmc_writel, { 1, 0 } uselistorder i64 2, { 1, 0 } uselistorder i64 1, { 1, 0 } uselistorder label LBL_4, { 3, 0, 1, 2 } }
0
BinRealVul
nft_range_init_17721
nft_range_init
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i32 %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = ptrtoint i64* %arg3 to i64 %2 = ptrtoint i64* %arg2 to i64 %3 = load i32, i32* %0 %4 = load i32, i32* %0 %sv_1 = alloca i32, align 4 %sv_2 = alloca i32, align 4 %sv_3 = alloca i32, align 4 %5 = call i64 @FUNC(i64 %2) %6 = bitcast i32* %sv_3 to i64* %7 = call i64 @FUNC(i64 0, i64 %5, i64 4, i64* nonnull %6, i64 %1) %8 = trunc i64 %7 to i32 %9 = icmp slt i32 %8, 0 %10 = icmp eq i1 %9, false br i1 %10, label LBL_2, label LBL_1 LBL_1: %11 = and i64 %7, 4294967295 store i64 %11, i64* %rax.0.reg2mem br label LBL_10 LBL_2: %12 = add i64 %1, 8 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = add i64 %5, 4 %16 = bitcast i32* %sv_2 to i64* %17 = call i64 @FUNC(i64 0, i64 %15, i64 4, i64* nonnull %16, i64 %14) %18 = trunc i64 %17 to i32 %19 = icmp slt i32 %18, 0 store i64 %17, i64* %sv_0.1.reg2mem br i1 %19, label LBL_9, label LBL_3 LBL_3: %20 = load i32, i32* %sv_3, align 4 %21 = load i32, i32* %sv_2, align 4 %22 = icmp eq i32 %20, %21 store i64 4294967274, i64* %sv_0.0.reg2mem br i1 %22, label LBL_4, label LBL_8 LBL_4: %23 = add i64 %1, 16 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 %26 = call i64 @FUNC(i64 %25) %27 = trunc i64 %26 to i32 %28 = add i64 %5, 8 %29 = inttoptr i64 %28 to i32* store i32 %27, i32* %29, align 4 %30 = load i32, i32* %sv_3, align 4 %31 = zext i32 %30 to i64 %32 = and i64 %26, 4294967295 %33 = call i64 @FUNC(i64 %32, i64 %31) %34 = trunc i64 %33 to i32 %35 = icmp slt i32 %34, 0 store i64 %33, i64* %sv_0.0.reg2mem br i1 %35, label LBL_8, label LBL_5 LBL_5: %36 = add i64 %1, 24 %37 = inttoptr i64 %36 to i64* %38 = load i64, i64* %37, align 8 %39 = bitcast i32* %sv_1 to i64* %40 = call i64 @FUNC(i64 %38, i64 255, i64* nonnull %39) %41 = trunc i64 %40 to i32 %42 = icmp slt i32 %41, 0 store i64 %40, i64* %sv_0.0.reg2mem br i1 %42, label LBL_8, label LBL_6 LBL_6: %43 = load i32, i32* %sv_1, align 4 %44 = icmp ult i32 %43, 2 store i64 4294967274, i64* %sv_0.0.reg2mem br i1 %44, label LBL_7, label LBL_8 LBL_7: %45 = add i64 %5, 12 %46 = inttoptr i64 %45 to i32* store i32 %43, i32* %46, align 4 %47 = load i32, i32* %sv_3, align 4 %48 = add i64 %5, 16 %49 = inttoptr i64 %48 to i32* store i32 %47, i32* %49, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_10 LBL_8: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %50 = zext i32 %4 to i64 %51 = call i64 @FUNC(i64 %15, i64 %50) store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem br label LBL_9 LBL_9: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %52 = zext i32 %3 to i64 %53 = call i64 @FUNC(i64 %5, i64 %52) %54 = and i64 %sv_0.1.reload, 4294967295 store i64 %54, 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 %5, { 3, 0, 1, 2, 4, 5 } uselistorder i32* %sv_3, { 2, 1, 0, 3 } uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 3, 4, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i32* %0, { 1, 0 } uselistorder i64 (i64, i64)* @nft_data_uninit, { 1, 0 } uselistorder i64 (i64, i64, i64, i64*, i64)* @nft_data_init, { 1, 0 } uselistorder i64 4, { 0, 2, 1 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_8, { 0, 2, 3, 1 } }
1
BinRealVul
bm_text_height_12782
bm_text_height
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.1.lcssa.reg2mem = alloca i32 %sv_1.02.reg2mem = alloca i64 %sv_0.13.reg2mem = alloca i32 %.reg2mem = alloca i8 %0 = icmp eq i64* %arg1, null store i64 0, i64* %storemerge.reg2mem br i1 %0, label LBL_4, label LBL_1 LBL_1: %1 = inttoptr i64 %arg2 to i8* %2 = load i8, i8* %1, align 1 %3 = icmp eq i8 %2, 0 %4 = icmp eq i1 %3, false store i8 %2, i8* %.reg2mem store i32 1, i32* %sv_0.13.reg2mem store i64 %arg2, i64* %sv_1.02.reg2mem store i32 1, i32* %sv_0.1.lcssa.reg2mem br i1 %4, label LBL_2, label LBL_3 LBL_2: %sv_1.02.reload = load i64, i64* %sv_1.02.reg2mem %sv_0.13.reload = load i32, i32* %sv_0.13.reg2mem %.reload = load i8, i8* %.reg2mem %5 = icmp eq i8 %.reload, 10 %6 = zext i1 %5 to i32 %spec.select = add i32 %sv_0.13.reload, %6 %7 = add i64 %sv_1.02.reload, 1 %8 = inttoptr i64 %7 to i8* %9 = load i8, i8* %8, align 1 %10 = icmp eq i8 %9, 0 %11 = icmp eq i1 %10, false store i8 %9, i8* %.reg2mem store i32 %spec.select, i32* %sv_0.13.reg2mem store i64 %7, i64* %sv_1.02.reg2mem store i32 %spec.select, i32* %sv_0.1.lcssa.reg2mem br i1 %11, label LBL_2, label LBL_3 LBL_3: %12 = ptrtoint i64* %arg1 to i64 %sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem %13 = trunc i64 %12 to i32 %14 = mul i32 %sv_0.1.lcssa.reload, %13 %15 = zext i32 %14 to i64 store i64 %15, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i8* %.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.13.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.02.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i1 false, { 1, 0 } uselistorder i8 0, { 1, 0 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_4, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
Jsi_ObjArraySizer_11889
Jsi_ObjArraySizer
define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 34, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %5 = add i32 %arg3, 1 %6 = add i32 %arg3, 8 %7 = zext i32 %6 to i64 %8 = mul i64 %7, 4294967296 %9 = or i64 %8, %7 %10 = srem i64 %9, 8 %11 = trunc i64 %10 to i32 %12 = sub i32 7, %11 %13 = add i32 %5, %12 %14 = icmp slt i32 %13, 1001 br i1 %14, label LBL_4, label LBL_3 LBL_3: %15 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_3, i64 0, i64 0)) store i64 0, i64* %storemerge.reg2mem br label LBL_9 LBL_4: %16 = ptrtoint i64* %arg2 to i64 %17 = add i64 %16, 4 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = icmp ugt i32 %19, %arg3 br i1 %20, label LBL_6, label LBL_5 LBL_5: %21 = sub i32 %13, %19 %22 = sext i32 %13 to i64 %23 = mul i64 %22, 8 %24 = add i64 %16, 16 %25 = inttoptr i64 %24 to i64* %26 = load i64, i64* %25, align 8 %27 = call i64 @FUNC(i64 %26, i64 %23) store i64 %27, i64* %25, align 8 %28 = mul i32 %21, 8 %29 = load i32, i32* %18, align 4 %30 = sext i32 %29 to i64 %31 = mul i64 %30, 8 %32 = add i64 %31, %27 %33 = inttoptr i64 %32 to i64* %34 = call i64* @memset(i64* %33, i32 0, i32 %28) store i32 %13, i32* %18, align 4 br label LBL_6 LBL_6: %35 = add i64 %16, 8 %36 = inttoptr i64 %35 to i32* %37 = load i32, i32* %36, align 4 %38 = icmp ult i32 %37, %arg3 br i1 %38, label LBL_7, label LBL_8 LBL_7: store i32 %arg3, i32* %36, align 4 br label LBL_8 LBL_8: %39 = zext i32 %13 to i64 store i64 %39, i64* %storemerge.reg2mem br label LBL_9 LBL_9: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %19, { 1, 0 } uselistorder i64 %16, { 0, 2, 1 } uselistorder i32 %13, { 3, 4, 1, 0, 2 } uselistorder i64 %7, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 8, { 3, 0, 1, 2 } uselistorder i32 %arg3, { 3, 0, 1, 2, 4 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
v9fs_device_unrealize_common_11751
v9fs_device_unrealize_common
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = call i64 @FUNC(i64 %4) ret i64 %5 uselistorder i64 (i64)* @g_free, { 1, 0 } }
1
BinRealVul
copyin_link_12872
copyin_link
define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %3 = bitcast i64* %rdi to i32* %4 = add i64 %1, 1 %5 = and i64 %4, 4294967295 %6 = call i64 @FUNC(i64 %5) %7 = and i64 %1, 4294967295 %8 = add i64 %6, %7 %9 = inttoptr i64 %8 to i8* store i8 0, i8* %9, align 1 %10 = load i32, i32* %3, align 8 %11 = and i64 %arg2, 4294967295 %12 = call i64 @FUNC(i64 %6, i64 %11, i32 %10) %13 = zext i32 %10 to i64 %14 = call i64 @FUNC(i64 %11, i64 %13) %15 = add i64 %2, 4 %16 = inttoptr i64 %6 to i8* %17 = inttoptr i64 %15 to i8* %18 = call i32 @symlink(i8* %16, i8* %17) %19 = icmp slt i32 %18, 0 %20 = icmp eq i1 %19, false br i1 %20, label LBL_2, label LBL_1 LBL_1: %21 = call i32* @__errno_location() %22 = load i32, i32* %21, align 4 %23 = call i8* @strerror(i32 %22) %24 = load i8*, i8** @gv_0, align 8 %25 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %26 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %25, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0), i8* %24, i8* %17, i8* %23) %27 = inttoptr i64 %6 to i64* call void @free(i64* %27) br label LBL_6 LBL_2: %28 = add i64 %2, 264 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = add i64 %2, 260 %32 = inttoptr i64 %31 to i32* %33 = load i32, i32* %32, align 4 %34 = call i32 @lchown(i8* %17, i32 %33, i32 %30) %35 = icmp slt i32 %34, 0 %36 = icmp eq i1 %35, false br i1 %36, label LBL_5, label LBL_3 LBL_3: %37 = call i32* @__errno_location() %38 = load i32, i32* %37, align 4 %39 = icmp eq i32 %38, 1 br i1 %39, label LBL_5, label LBL_4 LBL_4: %40 = call i32* @__errno_location() %41 = load i32, i32* %40, align 4 %42 = call i8* @strerror(i32 %41) %43 = load i8*, i8** @gv_0, align 8 %44 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %45 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %44, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0), i8* %43, i8* %17, i8* %42) br label LBL_5 LBL_5: %46 = inttoptr i64 %6 to i64* call void @free(i64* %46) br label LBL_6 LBL_6: ret i64 ptrtoint (i32* @0 to i64) uselistorder i8* %17, { 1, 2, 0, 3 } uselistorder i64 %6, { 2, 1, 3, 4, 0 } uselistorder i64 %2, { 1, 0, 2 } uselistorder i64 %1, { 1, 0 } uselistorder void (i64*)* @free, { 1, 0 } uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0, 2 } uselistorder %_IO_FILE** @gv_1, { 2, 1, 0 } uselistorder i8* (i32)* @strerror, { 1, 0 } uselistorder i32* ()* @__errno_location, { 2, 0, 1 } uselistorder i8 0, { 1, 0 } uselistorder i64 4294967295, { 2, 0, 1 } }
1
BinRealVul
ath5k_add_interface_4190
ath5k_add_interface
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 16 %2 = call i64 @FUNC(i64 %1) %3 = icmp eq i64 %1, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %3, label LBL_1, label LBL_3 LBL_1: %4 = ptrtoint i64* %arg2 to i64 store i64 %4, i64* %arg1, align 8 %5 = add i64 %4, 8 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = add i32 %7, -1 %9 = icmp ult i32 %8, 3 store i64 1, i64* %sv_0.0.reg2mem br i1 %9, label LBL_2, label LBL_3 LBL_2: %10 = add i64 %0, 8 %11 = inttoptr i64 %10 to i32* store i32 %7, i32* %11, align 4 %12 = add i64 %0, 12 %13 = inttoptr i64 %12 to i32* store i32 1000, i32* %13, align 4 store i64 0, i64* %sv_0.0.reg2mem br label LBL_3 LBL_3: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %14 = call i64 @FUNC(i64 %1) ret i64 %sv_0.0.reload uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 1, 2 } uselistorder label LBL_3, { 2, 0, 1 } }
0
BinRealVul
qio_channel_command_close_5103
qio_channel_command_close
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, -1 store i32 0, i32* %sv_0.0.reg2mem br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = call i32 @close(i32 %2) %5 = icmp slt i32 %4, 0 %spec.select = sext i1 %5 to i32 store i32 %spec.select, i32* %sv_0.0.reg2mem br label LBL_2 LBL_2: %6 = ptrtoint i64* %arg1 to i64 %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %7 = add i64 %6, 4 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = icmp eq i32 %9, -1 %11 = icmp eq i32 %9, %2 %or.cond = or i1 %10, %11 store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br i1 %or.cond, label LBL_4, label LBL_3 LBL_3: %12 = call i32 @close(i32 %9) %13 = icmp slt i32 %12, 0 %14 = icmp eq i1 %13, false %spec.select2 = select i1 %14, i32 %sv_0.0.reload, i32 -1 store i32 %spec.select2, i32* %sv_0.1.reg2mem br label LBL_4 LBL_4: %15 = ptrtoint i64* %arg2 to i64 %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %16 = bitcast i64* %arg1 to i32* store i32 -1, i32* %16, align 4 store i32 %2, i32* %8, align 4 %17 = call i64 @FUNC(i64 %6, i64 %15) %18 = trunc i64 %17 to i32 %19 = icmp slt i32 %18, 0 %20 = icmp eq i1 %19, false store i64 4294967295, i64* %storemerge.reg2mem br i1 %20, label LBL_5, label LBL_8 LBL_5: %21 = icmp slt i32 %sv_0.1.reload, 0 %22 = icmp eq i1 %21, false br i1 %22, label LBL_7, label LBL_6 LBL_6: %23 = call i32* @__errno_location() %24 = load i32, i32* %23, align 4 %25 = call i64 @FUNC(i64 %15, i32 %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0)) br label LBL_7 LBL_7: %26 = zext i32 %sv_0.1.reload to i64 store i64 %26, i64* %storemerge.reg2mem br label LBL_8 LBL_8: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %sv_0.1.reload, { 1, 0 } uselistorder i32 %9, { 1, 0, 2 } uselistorder i32 %sv_0.0.reload, { 1, 0 } uselistorder i32 %2, { 0, 1, 3, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32 (i32)* @close, { 1, 0 } uselistorder i32 -1, { 3, 0, 1, 2 } uselistorder label LBL_8, { 1, 0 } }
0
BinRealVul
simple_string_18644
simple_string
define i64 @FUNC() local_unnamed_addr { LBL_0: %.lcssa.reg2mem = alloca i64 %storemerge2.reg2mem = alloca i32 %.reg2mem8 = alloca i64 %.reg2mem6 = alloca i64* %.reg2mem = alloca i64 %sv_0 = alloca i64, align 8 %0 = ptrtoint i64* %sv_0 to i64 %1 = add i64 %0, -16 %2 = add i64 %0, -96 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = icmp eq i64 %4, 0 %6 = icmp eq i1 %5, false store i64 %4, i64* %.reg2mem store i64* %3, i64** %.reg2mem6 store i64 %1, i64* %.reg2mem8 store i32 0, i32* %storemerge2.reg2mem store i64 %4, i64* %.lcssa.reg2mem br i1 %6, label LBL_1, label LBL_2 LBL_1: %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %.reload9 = load i64, i64* %.reg2mem8 %.reload7 = load i64*, i64** %.reg2mem6 %.reload = load i64, i64* %.reg2mem %7 = call i64 @FUNC(i64 %.reload, i64 0) %8 = call i64 @FUNC(i64 %7) %9 = and i64 %8, 4294967295 %10 = call i64 @FUNC(i64 %9) %11 = add i64 %.reload9, -72 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = call i64 @FUNC(i64 %8) %15 = inttoptr i64 %14 to i8* %16 = inttoptr i64 %13 to i8* %17 = call i32 @strcmp(i8* %15, i8* %16) %18 = icmp eq i32 %17, 0 %19 = zext i1 %18 to i64 %20 = call i64 @FUNC(i64 %19) %21 = call i64 @FUNC(i64 %7) %22 = load i64, i64* %.reload7, align 8 %23 = call i64 @FUNC(i64 %21) %24 = inttoptr i64 %23 to i8* %25 = inttoptr i64 %22 to i8* %26 = call i32 @strcmp(i8* %24, i8* %25) %27 = icmp eq i32 %26, 0 %28 = zext i1 %27 to i64 %29 = call i64 @FUNC(i64 %28) %30 = call i64 @FUNC(i64 %7) %31 = call i64 @FUNC(i64 %21) %32 = add i32 %storemerge2.reload, 1 %33 = sext i32 %32 to i64 %34 = mul i64 %33, 16 %35 = add i64 %34, %1 %36 = add i64 %35, -80 %37 = inttoptr i64 %36 to i64* %38 = load i64, i64* %37, align 8 %39 = icmp eq i64 %38, 0 %40 = icmp eq i1 %39, false store i64 %38, i64* %.reg2mem store i64* %37, i64** %.reg2mem6 store i64 %35, i64* %.reg2mem8 store i32 %32, i32* %storemerge2.reg2mem store i64 %38, i64* %.lcssa.reg2mem br i1 %40, label LBL_1, label LBL_2 LBL_2: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem ret i64 %.lcssa.reload uselistorder i64 %8, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i64** %.reg2mem6, { 2, 0, 1 } uselistorder i64* %.reg2mem8, { 2, 0, 1 } uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 } uselistorder i64 (i64)* @qstring_get_str, { 1, 0 } uselistorder i64 (i64)* @g_assert, { 2, 1, 0 } uselistorder i32 0, { 2, 3, 0, 4, 1 } uselistorder i1 false, { 1, 0, 2 } uselistorder i32 1, { 9, 8, 5, 4, 3, 2, 1, 6, 7, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
valid_cc_12346
valid_cc
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.03.reg2mem = alloca i64 %.reg2mem = alloca i32 %0 = trunc i64 %arg2 to i32 %1 = icmp slt i32 %0, 0 %2 = icmp slt i32 %0, %arg3 %or.cond2 = or i1 %1, %2 store i64 0, i64* %rax.0.reg2mem br i1 %or.cond2, label LBL_5, label LBL_1 LBL_1: %3 = ptrtoint i64* %arg1 to i64 store i32 %0, i32* %.reg2mem store i64 %3, i64* %sv_0.03.reg2mem br label LBL_2 LBL_2: %.reload = load i32, i32* %.reg2mem %4 = icmp eq i32 %.reload, %arg3 %5 = icmp eq i1 %4, false store i64 1, i64* %rax.0.reg2mem br i1 %5, label LBL_3, label LBL_5 LBL_3: %sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem %6 = inttoptr i64 %sv_0.03.reload to i32* %7 = load i32, i32* %6, align 4 %8 = icmp sgt i32 %7, 3 store i64 0, i64* %rax.0.reg2mem br i1 %8, label LBL_4, label LBL_5 LBL_4: %9 = sub i32 %.reload, %7 %10 = sext i32 %7 to i64 %11 = add i64 %sv_0.03.reload, %10 %12 = icmp slt i32 %9, 0 %13 = icmp slt i32 %9, %arg3 %or.cond = or i1 %12, %13 store i32 %9, i32* %.reg2mem store i64 %11, i64* %sv_0.03.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_5, label LBL_2 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %sv_0.03.reload, { 1, 0 } uselistorder i32* %.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.03.reg2mem, { 1, 0, 2 } uselistorder i32 0, { 1, 0 } uselistorder i32 %arg3, { 1, 2, 0 } uselistorder label LBL_5, { 2, 1, 0, 3 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
hci_uart_set_proto_13483
hci_uart_set_proto
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = and i64 %arg2, 4294967295 %1 = call i64 @FUNC(i64 %0) %2 = icmp eq i64 %1, 0 %3 = icmp eq i1 %2, false store i64 1, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_4 LBL_1: %4 = ptrtoint i64* %arg1 to i64 store i64 %1, i64* %arg1, align 8 %5 = call i64 @FUNC(i64 %4) %6 = trunc i64 %5 to i32 %7 = icmp eq i32 %6, 0 br i1 %7, label LBL_3, label LBL_2 LBL_2: %8 = and i64 %5, 4294967295 store i64 %8, i64* %rax.0.reg2mem br label LBL_4 LBL_3: %9 = add i64 %4, 8 %10 = call i64 @FUNC(i64 0, i64 %9) store i64 0, i64* %rax.0.reg2mem br label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder label LBL_4, { 1, 2, 0 } }
0
BinRealVul
pl181_send_command_3382
pl181_send_command
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = alloca i32 %rdx.0.in.reg2mem = alloca i32 %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 = load i32, i32* %1 %8 = load i32, i32* %1 %9 = load i32, i32* %1 %10 = load i32, i32* %1 %11 = load i32, i32* %1 %12 = load i32, i32* %1 %13 = load i32, i32* %1 %14 = load i32, i32* %1 %15 = load i32, i32* %1 %16 = load i32, i32* %1 %17 = load i32, i32* %1 %18 = load i32, i32* %1 %19 = load i32, i32* %1 %20 = load i32, i32* %1 %21 = load i32, i32* %1 %sv_0 = alloca i32, align 4 %sv_1 = alloca i32, align 4 %22 = trunc i64 %4 to i32 %23 = urem i32 %22, 64 store i32 %23, i32* %sv_1, align 4 %24 = add i64 %6, 4 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = zext i32 %23 to i64 %28 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64 %27, i32 %26, i64 %5, i64 %3, i64 %2) %29 = add i64 %6, 32 %30 = inttoptr i64 %29 to i64* %31 = load i64, i64* %30, align 8 %32 = ptrtoint i32* %sv_0 to i64 %33 = ptrtoint i32* %sv_1 to i64 %34 = bitcast i32* %sv_0 to i64* %35 = call i64 @FUNC(i64 %31, i32* nonnull %sv_1, i64* nonnull %34) %36 = trunc i64 %35 to i32 %37 = icmp slt i32 %36, 0 br i1 %37, label LBL_11, label LBL_1 LBL_1: %38 = and i32 %22, 64 %39 = icmp eq i32 %38, 0 br i1 %39, label LBL_10, label LBL_2 LBL_2: %40 = icmp eq i32 %36, 0 br i1 %40, label LBL_11, label LBL_3 LBL_3: %41 = icmp eq i32 %36, 4 %42 = icmp eq i1 %41, false br i1 %42, label LBL_5, label LBL_4 LBL_4: %43 = trunc i64 %4 to i8 %44 = icmp sgt i8 %43, -1 %45 = icmp eq i1 %44, false br i1 %45, label LBL_11, label LBL_5 LBL_5: %46 = icmp ne i32 %36, 4 %47 = icmp eq i32 %36, 16 %48 = icmp eq i1 %47, false %or.cond = icmp eq i1 %46, %48 br i1 %or.cond, label LBL_11, label LBL_6 LBL_6: %49 = load i32, i32* %sv_0, align 4 %50 = mul i32 %49, 16777216 %51 = mul i32 %21, 65536 %52 = and i32 %51, 16711680 %53 = mul i32 %20, 256 %54 = and i32 %53, 65280 %55 = urem i32 %19, 256 %56 = or i32 %54, %55 %57 = or i32 %56, %52 %58 = or i32 %57, %50 %59 = add i64 %6, 8 %60 = inttoptr i64 %59 to i32* store i32 %58, i32* %60, align 4 br i1 %42, label LBL_8, label LBL_7 LBL_7: %61 = add i64 %6, 20 %62 = inttoptr i64 %61 to i32* store i32 0, i32* %62, align 4 %63 = add i64 %6, 16 %64 = inttoptr i64 %63 to i32* store i32 0, i32* %64, align 4 %65 = add i64 %6, 12 %66 = inttoptr i64 %65 to i32* store i32 0, i32* %66, align 4 store i32 0, i32* %rdx.0.in.reg2mem br label LBL_9 LBL_8: %67 = mul i32 %18, 16777216 %68 = mul i32 %17, 65536 %69 = and i32 %68, 16711680 %70 = mul i32 %16, 256 %71 = and i32 %70, 65280 %72 = urem i32 %15, 256 %73 = or i32 %71, %72 %74 = or i32 %73, %69 %75 = or i32 %74, %67 %76 = add i64 %6, 12 %77 = inttoptr i64 %76 to i32* store i32 %75, i32* %77, align 4 %78 = mul i32 %14, 16777216 %79 = mul i32 %13, 65536 %80 = and i32 %79, 16711680 %81 = mul i32 %12, 256 %82 = and i32 %81, 65280 %83 = urem i32 %11, 256 %84 = or i32 %82, %83 %85 = or i32 %84, %80 %86 = or i32 %85, %78 %87 = add i64 %6, 16 %88 = inttoptr i64 %87 to i32* store i32 %86, i32* %88, align 4 %89 = mul i32 %10, 16777216 %90 = mul i32 %9, 65536 %91 = and i32 %90, 16711680 %92 = mul i32 %8, 256 %93 = and i32 %92, 65280 %94 = and i32 %7, 254 %95 = or i32 %93, %94 %96 = or i32 %95, %91 %97 = or i32 %96, %89 %98 = add i64 %6, 20 %99 = inttoptr i64 %98 to i32* store i32 %97, i32* %99, align 4 store i32 %97, i32* %rdx.0.in.reg2mem br label LBL_9 LBL_9: %rdx.0.in.reload = load i32, i32* %rdx.0.in.reg2mem %100 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %33, i32 %rdx.0.in.reload, i64 %33, i64 %3, i64 %2) %101 = add i64 %6, 24 %102 = inttoptr i64 %101 to i32* %103 = load i32, i32* %102, align 4 %104 = or i32 %103, 1 store i32 %104, i32* %102, align 4 br label LBL_12 LBL_10: %105 = trunc i64 %32 to i32 %106 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0), i64 %33, i32 %105, i64 %33, i64 %3, i64 %2) %107 = add i64 %6, 24 %108 = inttoptr i64 %107 to i32* %109 = load i32, i32* %108, align 4 %110 = or i32 %109, 2 store i32 %110, i32* %108, align 4 br label LBL_12 LBL_11: %111 = trunc i64 %32 to i32 %112 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0), i64 %33, i32 %111, i64 %33, i64 %3, i64 %2) %113 = add i64 %6, 24 %114 = inttoptr i64 %113 to i32* %115 = load i32, i32* %114, align 4 %116 = or i32 %115, 4 store i32 %116, i32* %114, align 4 br label LBL_12 LBL_12: ret i64 %6 uselistorder i64 %33, { 4, 5, 2, 3, 0, 1 } uselistorder i64 %32, { 1, 0 } uselistorder i32 %23, { 1, 0 } uselistorder i32 %22, { 1, 0 } uselistorder i32* %sv_0, { 1, 2, 0 } uselistorder i64 %6, { 0, 10, 9, 4, 5, 6, 7, 1, 2, 3, 8, 11, 12 } uselistorder i64 %4, { 1, 0 } uselistorder i64 %3, { 3, 2, 1, 0 } uselistorder i64 %2, { 3, 2, 1, 0 } uselistorder i32* %rdx.0.in.reg2mem, { 0, 2, 1 } uselistorder i32* %1, { 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i32 256, { 0, 4, 1, 5, 2, 6, 3 } uselistorder i32 4, { 2, 0, 1 } uselistorder i64 (i8*, i64, i32, i64, i64, i64)* @DPRINTF, { 3, 2, 1, 0 } uselistorder i64 4, { 1, 0 } uselistorder i32 64, { 1, 0 } uselistorder label LBL_11, { 0, 2, 1, 3 } }
0
BinRealVul
bdrv_open_backing_file_16202
bdrv_open_backing_file
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %rdi = alloca i64, align 8 %0 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %1 = add i64 %0, 8200 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = icmp eq i64 %3, 0 store i64 0, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_6 LBL_1: %5 = add i64 %0, 8192 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = and i32 %7, -2 store i32 %8, i32* %6, align 4 %9 = bitcast i64* %rdi to i8* %10 = load i8, i8* %9, align 8 %11 = icmp eq i8 %10, 0 %12 = icmp eq i1 %11, false store i64 0, i64* %rax.0.reg2mem br i1 %12, label LBL_2, label LBL_6 LBL_2: %13 = call i64 @FUNC(i64* nonnull @gv_0) store i64 %13, i64* %2, align 8 %14 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1, i64 4096) %15 = add i64 %0, 4096 %16 = inttoptr i64 %15 to i8* %17 = load i8, i8* %16, align 1 %18 = icmp eq i8 %17, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %18, label LBL_4, label LBL_3 LBL_3: %19 = call i64 @FUNC(i64 %15) store i64 %19, i64* %sv_0.0.reg2mem br label LBL_4 LBL_4: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %20 = load i32, i32* %6, align 4 %21 = and i32 %20, -7 %22 = load i64, i64* %2, align 8 %23 = zext i32 %21 to i64 %24 = call i64 @FUNC(i64 %22, i64* nonnull %sv_1, i64 0, i64 %23, i64 %sv_0.0.reload) %25 = trunc i64 %24 to i32 %26 = icmp slt i32 %25, 0 %27 = icmp eq i1 %26, false store i64 0, i64* %rax.0.reg2mem br i1 %27, label LBL_6, label LBL_5 LBL_5: %28 = load i64, i64* %2, align 8 %29 = call i64 @FUNC(i64 %28) store i64 0, i64* %2, align 8 %30 = load i32, i32* %6, align 4 %31 = or i32 %30, 1 store i32 %31, i32* %6, align 4 %32 = and i64 %24, 4294967295 store i64 %32, i64* %rax.0.reg2mem br label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32* %6, { 1, 0, 2, 3, 4 } uselistorder i64* %2, { 1, 0, 2, 3, 4 } uselistorder i64 %0, { 1, 0, 2, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64 4096, { 1, 0 } uselistorder label LBL_6, { 3, 0, 1, 2 } }
1
BinRealVul
BufFilePushCompressed_10943
BufFilePushCompressed
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge47.reg2mem = alloca i32 %0 = call i64 @FUNC(i64 %arg1) %1 = load i8, i8* bitcast (i32* @gv_0 to i8*), align 4 %2 = trunc i64 %0 to i32 %3 = zext i8 %1 to i32 %4 = icmp eq i32 %2, %3 %5 = icmp eq i1 %4, false store i64 0, i64* %rax.0.reg2mem br i1 %5, label LBL_10, label LBL_1 LBL_1: %6 = call i64 @FUNC(i64 %arg1) %7 = load i8, i8* bitcast (i32* @gv_1 to i8*), align 4 %8 = trunc i64 %6 to i32 %9 = zext i8 %7 to i32 %10 = icmp eq i32 %8, %9 store i64 0, i64* %rax.0.reg2mem br i1 %10, label LBL_2, label LBL_10 LBL_2: %11 = call i64 @FUNC(i64 %arg1) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, -1 %14 = icmp eq i1 %13, false store i64 0, i64* %rax.0.reg2mem br i1 %14, label LBL_3, label LBL_10 LBL_3: %15 = urem i32 %12, 32 %.off = add nsw i32 %15, -12 %16 = icmp ult i32 %.off, 5 store i64 0, i64* %rax.0.reg2mem br i1 %16, label LBL_4, label LBL_10 LBL_4: %17 = sext i32 %.off to i64 %18 = mul i64 %17, 4 %19 = add i64 %18, ptrtoint (i32** @gv_2 to i64) %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = shl i32 1, %15 %23 = mul i32 %21, 2 %24 = add i32 %22, 8096 %25 = add i32 %24, %23 %26 = call i64* @malloc(i32 %25) %27 = icmp eq i64* %26, null %28 = icmp eq i1 %27, false store i64 0, i64* %rax.0.reg2mem br i1 %28, label LBL_5, label LBL_10 LBL_5: %29 = ptrtoint i64* %26 to i64 store i64 %arg1, i64* %26, align 8 %30 = add i64 %29, 8 %31 = inttoptr i64 %30 to i32* store i32 %15, i32* %31, align 4 %32 = and i32 %12, 32 %33 = add i64 %29, 12 %34 = inttoptr i64 %33 to i32* store i32 %32, i32* %34, align 4 %35 = load i32, i32* %31, align 4 %36 = urem i32 %35, 32 %37 = shl i32 1, %36 %38 = add i64 %29, 16 %39 = inttoptr i64 %38 to i32* store i32 %37, i32* %39, align 4 %40 = add i64 %29, 8096 %41 = add i64 %29, 24 %42 = inttoptr i64 %41 to i64* store i64 %40, i64* %42, align 8 %43 = load i32, i32* %39, align 4 %44 = sext i32 %43 to i64 %45 = add i64 %40, %44 %46 = add i64 %29, 32 %47 = inttoptr i64 %46 to i64* store i64 %45, i64* %47, align 8 %48 = add i64 %29, 44 %49 = inttoptr i64 %48 to i32* store i32 9, i32* %49, align 4 %50 = add i64 %29, 40 %51 = inttoptr i64 %50 to i32* store i32 511, i32* %51, align 4 store i32 255, i32* %storemerge47.reg2mem br label LBL_6 LBL_6: %storemerge47.reload = load i32, i32* %storemerge47.reg2mem %52 = load i64, i64* %47, align 8 %53 = sext i32 %storemerge47.reload to i64 %54 = mul i64 %53, 2 %55 = add i64 %54, %52 %56 = inttoptr i64 %55 to i16* store i16 0, i16* %56, align 2 %57 = load i64, i64* %42, align 8 %58 = add i64 %57, %53 %59 = trunc i32 %storemerge47.reload to i8 %60 = inttoptr i64 %58 to i8* store i8 %59, i8* %60, align 1 %61 = add i32 %storemerge47.reload, -1 %62 = icmp slt i32 %61, 0 %63 = icmp eq i1 %62, false store i32 %61, i32* %storemerge47.reg2mem br i1 %63, label LBL_6, label LBL_7 LBL_7: %64 = load i32, i32* %34, align 4 %65 = icmp eq i32 %64, 0 %. = select i1 %65, i32 256, i32 257 %66 = add i64 %29, 48 %67 = inttoptr i64 %66 to i32* store i32 %., i32* %67, align 4 %68 = add i64 %29, 52 %69 = inttoptr i64 %68 to i32* store i32 0, i32* %69, align 4 %70 = add i64 %29, 56 %71 = inttoptr i64 %70 to i32* store i32 0, i32* %71, align 4 %72 = add i64 %29, 60 %73 = inttoptr i64 %72 to i32* store i32 0, i32* %73, align 4 %74 = add i64 %29, 64 %75 = add i64 %29, 8064 %76 = inttoptr i64 %75 to i64* store i64 %74, i64* %76, align 8 %77 = add i64 %29, 8072 %78 = inttoptr i64 %77 to i64* store i64 0, i64* %78, align 8 %79 = add i64 %29, 8080 %80 = inttoptr i64 %79 to i64* store i64 0, i64* %80, align 8 %81 = call i64 @FUNC(i64 %29) %82 = trunc i64 %81 to i32 %83 = add i64 %29, 8092 %84 = inttoptr i64 %83 to i32* store i32 %82, i32* %84, align 4 %85 = add i64 %29, 8088 %86 = inttoptr i64 %85 to i32* store i32 %82, i32* %86, align 4 %87 = load i32, i32* %84, align 4 %88 = icmp eq i32 %87, -1 br i1 %88, label LBL_9, label LBL_8 LBL_8: %89 = load i64, i64* %76, align 8 %90 = add i64 %89, 1 store i64 %90, i64* %76, align 8 %91 = trunc i64 %81 to i8 %92 = inttoptr i64 %89 to i8* store i8 %91, i8* %92, align 1 br label LBL_9 LBL_9: %93 = call i64 @FUNC(i64 %29, i64 4198906, i64 0, i64 4198917, i64 4198928) store i64 %93, 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 %89, { 1, 0 } uselistorder i64* %76, { 1, 0, 2 } uselistorder i64 %53, { 1, 0 } uselistorder i64 %29, { 0, 1, 2, 3, 5, 4, 7, 6, 8, 9, 10, 11, 12, 13, 14, 16, 15, 17, 18, 19 } uselistorder i64* %26, { 0, 2, 1 } uselistorder i32 %15, { 0, 2, 1 } uselistorder i32 %12, { 1, 0, 2 } uselistorder i32* %storemerge47.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 2, 3, 5, 4 } uselistorder i32 0, { 4, 5, 6, 7, 8, 0, 1, 2, 3 } uselistorder i32 9, { 2, 1, 0 } uselistorder i32 -1, { 1, 0, 2 } uselistorder i64 (i64)* @BufFileGet, { 2, 1, 0 } uselistorder label LBL_10, { 5, 0, 1, 2, 4, 3 } uselistorder label LBL_6, { 1, 0 } }
0
BinRealVul
base64_estimate_decode_size_12189
base64_estimate_decode_size
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = udiv i64 %arg1, 4 %1 = mul nuw i64 %0, 3 ret i64 %1 }
1
BinRealVul
qxl_cursor_15343
qxl_cursor
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %rdi = alloca i64, align 8 %rsi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = add i64 %2, 4 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = zext i32 %5 to i64 %7 = and i64 %1, 4294967295 %8 = call i64 @FUNC(i64 %7, i64 %6) %9 = add i64 %2, 8 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = add i64 %8, 8 %13 = inttoptr i64 %12 to i32* store i32 %11, i32* %13, align 4 %14 = add i64 %2, 12 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = add i64 %8, 12 %18 = inttoptr i64 %17 to i32* store i32 %16, i32* %18, align 4 %19 = add i64 %2, 16 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 switch i32 %21, label LBL_5 [ i32 1, label LBL_1 i32 2, label LBL_3 ] LBL_1: %22 = bitcast i64* %rsi to i32* %23 = load i32, i32* %22, align 8 %24 = load i32, i32* %4, align 4 %25 = mul i32 %23, 4 %26 = mul i32 %25, %24 %27 = add i64 %2, 24 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = inttoptr i64 %8 to i64* %31 = load i64, i64* %30, align 8 %32 = inttoptr i64 %31 to i64* %33 = inttoptr i64 %29 to i64* %34 = call i64* @memcpy(i64* %32, i64* %33, i32 %26) %35 = bitcast i64* %rdi to i32* %36 = load i32, i32* %35, align 8 %37 = icmp slt i32 %36, 3 store i64 %8, i64* %storemerge.reg2mem br i1 %37, label LBL_6, label LBL_2 LBL_2: %38 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0)) store i64 %8, i64* %storemerge.reg2mem br label LBL_6 LBL_3: %39 = add i64 %2, 24 %40 = inttoptr i64 %39 to i64* %41 = load i64, i64* %40, align 8 %42 = call i64 @FUNC(i64 %8) %43 = add i64 %8, 16 %44 = inttoptr i64 %43 to i32* %45 = load i32, i32* %44, align 4 %46 = trunc i64 %42 to i32 %47 = mul i32 %45, %46 %48 = sext i32 %47 to i64 %49 = add i64 %41, %48 %50 = call i64 @FUNC(i64 %8, i64 16777215, i64 0, i64 %49, i64 1, i64 %41) %51 = bitcast i64* %rdi to i32* %52 = load i32, i32* %51, align 8 %53 = icmp slt i32 %52, 3 store i64 %8, i64* %storemerge.reg2mem br i1 %53, label LBL_6, label LBL_4 LBL_4: %54 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0)) store i64 %8, i64* %storemerge.reg2mem br label LBL_6 LBL_5: %55 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8 %56 = zext i32 %21 to i64 %57 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %55, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_4, i64 0, i64 0), i64 %56) %58 = call i64 @FUNC(i64 %8) store i64 0, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %41, { 1, 0 } uselistorder i64 %8, { 4, 2, 5, 3, 6, 8, 7, 0, 9, 1, 10, 11, 12 } uselistorder i64* %rdi, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 5, 3, 4, 1, 2 } uselistorder i64 (i64, i8*)* @cursor_print_ascii_art, { 1, 0 } uselistorder label LBL_6, { 4, 2, 3, 0, 1 } }
1
BinRealVul
skip_input_2315
skip_input
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 %rdi = alloca i64, align 8 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %6 = ashr exact i64 %sext, 32 %7 = and i64 %3, 4294967295 %8 = icmp sgt i64 %6, %7 br i1 %8, label LBL_1, label LBL_2 LBL_1: %9 = add i64 %5, 16 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = call i64 @FUNC(i64 %11, i64 0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %2, i64 %1) store i64 4294967295, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %13 = bitcast i64* %rdi to i32* %14 = add i64 %5, 8 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = add i64 %5, 4 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = trunc i64 %6 to i32 %21 = mul i32 %19, %20 %22 = sext i32 %21 to i64 %23 = add i64 %16, %22 store i64 %23, i64* %15, align 8 %24 = load i32, i32* %13, align 8 %25 = sub i32 %24, %20 %26 = bitcast i64* %arg1 to i32* store i32 %25, i32* %26, align 4 store i64 0, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %20, { 1, 0 } uselistorder i64 %5, { 1, 2, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 3, 2, 1, 0 } }
0
BinRealVul
mg_http_multipart_wait_for_boundary_12691
mg_http_multipart_wait_for_boundary
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 = add i64 %1, 8 %3 = inttoptr i64 %2 to i32* %4 = load i32, i32* %3, align 4 %5 = add i32 %4, 1 %6 = add i64 %0, 8 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = icmp ult i32 %5, %8 store i64 0, i64* %rax.0.reg2mem br i1 %9, label LBL_1, label LBL_6 LBL_1: %10 = sext i32 %8 to i64 %11 = inttoptr i64 %1 to i64* %12 = load i64, i64* %11, align 8 %13 = call i64 @FUNC(i64 %0, i64 %12, i64 %10) %14 = icmp eq i64 %13, 0 store i64 0, i64* %rax.0.reg2mem br i1 %14, label LBL_6, label LBL_2 LBL_2: %15 = load i32, i32* %3, align 4 %16 = sext i32 %15 to i64 %17 = add i64 %13, %16 %18 = load i32, i32* %7, align 4 %19 = sext i32 %18 to i64 %20 = sub i64 %0, %17 %21 = add i64 %20, %19 %22 = icmp sgt i64 %21, 3 store i64 0, i64* %rax.0.reg2mem br i1 %22, label LBL_3, label LBL_6 LBL_3: %23 = inttoptr i64 %17 to i8* %24 = call i32 @strncmp(i8* %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i32 4) %25 = icmp eq i32 %24, 0 %26 = icmp eq i1 %25, false %27 = add i64 %1, 12 %28 = inttoptr i64 %27 to i32* br i1 %26, label LBL_5, label LBL_4 LBL_4: store i32 1, i32* %28, align 4 %29 = call i64 @FUNC(i64 %0, i64 4) store i64 1, i64* %rax.0.reg2mem br label LBL_6 LBL_5: store i32 2, i32* %28, align 4 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 i32* %28, { 1, 0 } uselistorder i64 %17, { 1, 0 } uselistorder i64 %0, { 1, 0, 2, 3, 4 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3, 5 } uselistorder i64 1, { 1, 0, 2 } uselistorder i32 0, { 1, 0, 2 } uselistorder i32 (i8*, i8*, i32)* @strncmp, { 1, 0 } uselistorder label LBL_6, { 1, 0, 3, 2, 4 } }
1
BinRealVul
net_get_13363
net_get
define i64 @FUNC(i64 %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = alloca i32 %rax.0.reg2mem = alloca i64 %2 = load i64, i64* %0 %3 = load i32, i32* %1 %sv_0 = alloca i32, align 4 %4 = and i64 %arg1, 4294967295 %5 = bitcast i32* %sv_0 to i64* %6 = call i64 @FUNC(i64 %4, i64* nonnull %5, i64 8) %7 = trunc i64 %6 to i32 %8 = icmp eq i32 %7, -1 %9 = icmp eq i1 %8, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %9, label LBL_1, label LBL_8 LBL_1: %10 = load i32, i32* %sv_0, align 4 %11 = call i32 @ntohl(i32 %10) %12 = and i64 %2, 4294967295 %13 = sext i32 %11 to i64 %14 = icmp slt i64 %12, %13 br i1 %14, label LBL_2, label LBL_3 LBL_2: %15 = zext i32 %3 to i64 %16 = zext i32 %11 to i64 %17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %16, i64 %15, i64 %12) br label LBL_4 LBL_3: %18 = icmp eq i32 %11, 0 %19 = icmp slt i32 %11, 0 %20 = icmp eq i1 %19, false %21 = icmp eq i1 %18, false %22 = icmp eq i1 %20, %21 br i1 %22, label LBL_5, label LBL_4 LBL_4: call void @__assert_fail(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_2, i64 0, i64 0), i32 25, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_3, i64 0, i64 0)) br label LBL_5 LBL_5: %23 = trunc i64 %2 to i32 store i32 %11, i32* %arg3, align 4 %24 = icmp eq i32 %23, 0 br i1 %24, label LBL_7, label LBL_6 LBL_6: %25 = call i64 @FUNC(i64 %4, i64* %arg2, i64 %12) %26 = trunc i64 %25 to i32 %27 = icmp eq i32 %26, -1 %28 = icmp eq i1 %27, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %28, label LBL_7, label LBL_8 LBL_7: %29 = zext i32 %3 to i64 store i64 %29, 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 %12, { 2, 1, 0 } uselistorder i64 %4, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64 (i64, i64*, i64)* @net_read_exact, { 1, 0 } uselistorder label LBL_8, { 2, 0, 1 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
memory_access_size_16627
memory_access_size
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %sv_0.1.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 4 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = icmp eq i32 %3, 0 %5 = icmp eq i1 %4, false %sv_0.0 = select i1 %5, i32 %3, i32 4 %6 = add i64 %0, 8 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false store i32 %sv_0.0, i32* %sv_0.1.reg2mem br i1 %10, label LBL_2, label LBL_1 LBL_1: %11 = trunc i64 %arg3 to i32 %12 = sub i32 0, %11 %13 = and i32 %11, %12 %14 = icmp eq i32 %13, 0 %15 = icmp ult i32 %13, %sv_0.0 %16 = icmp eq i1 %15, false %or.cond = or i1 %14, %16 %spec.select4 = select i1 %or.cond, i32 %sv_0.0, i32 %13 store i32 %spec.select4, i32* %sv_0.1.reg2mem br label LBL_2 LBL_2: %sext = mul i64 %arg2, 4294967296 %17 = ashr exact i64 %sext, 32 %18 = trunc i64 %0 to i32 %19 = icmp eq i32 %18, 0 %20 = icmp eq i1 %19, false %spec.select = select i1 %20, i32 %18, i32 1 %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %21 = trunc i64 %17 to i32 %22 = icmp ult i32 %sv_0.1.reload, %21 %23 = sext i32 %sv_0.1.reload to i64 %spec.select3 = select i1 %22, i64 %23, i64 %17 %24 = trunc i64 %spec.select3 to i32 %25 = icmp ugt i32 %spec.select, %24 %26 = icmp eq i1 %25, false br i1 %26, label LBL_4, label LBL_3 LBL_3: call void @__assert_fail(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i32 31, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0)) br label LBL_4 LBL_4: %27 = and i64 %spec.select3, 4294967295 ret i64 %27 uselistorder i64 %spec.select3, { 1, 0 } uselistorder i32 %18, { 1, 0 } uselistorder i32 %sv_0.0, { 1, 2, 0 } uselistorder i64 %0, { 1, 0, 2 } uselistorder i1 false, { 1, 4, 0, 2, 3 } uselistorder i32 0, { 4, 0, 1, 2, 3 } }
1
BinRealVul
get_file_params_count_resume_5200
get_file_params_count_resume
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge2.pre-phi.reg2mem = alloca i64 %sv_0.1.lcssa.reg2mem = alloca i32 %sv_0.15.reg2mem = alloca i32 %storemerge6.reg2mem = alloca i32 %storemerge37.reg2mem = alloca i32 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %3 = ashr exact i64 %sext, 32 %4 = trunc i64 %1 to i8 %5 = icmp eq i8 %4, 34 %6 = icmp eq i1 %5, false br i1 %6, label LBL_6, label LBL_1 LBL_1: %7 = add nsw i64 %3, 4294967294 %8 = and i64 %7, 4294967295 %9 = icmp eq i64 %8, 0 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge37.reg2mem br i1 %9, label LBL_6, label LBL_2 LBL_2: %storemerge37.reload = load i32, i32* %storemerge37.reg2mem %.reload = load i64, i64* %.reg2mem %10 = mul i64 %.reload, 8 %11 = add i64 %10, %2 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = inttoptr i64 %13 to i8* %15 = load i8, i8* %14, align 1 %16 = icmp eq i8 %15, 0 br i1 %16, label LBL_5, label LBL_3 LBL_3: %17 = call i32 @strlen(i8* %14) %18 = sext i32 %17 to i64 %19 = add i64 %13, -1 %20 = add i64 %19, %18 %21 = inttoptr i64 %20 to i8* %22 = load i8, i8* %21, align 1 %23 = icmp eq i8 %22, 34 %24 = icmp eq i1 %23, false br i1 %24, label LBL_5, label LBL_4 LBL_4: %25 = add i32 %storemerge37.reload, 1 %26 = zext i32 %25 to i64 %27 = call i64 @FUNC(i64 %2, i64 %26) %28 = trunc i64 %27 to i32 %29 = icmp eq i32 %28, 0 store i64 %26, i64* %storemerge2.pre-phi.reg2mem br i1 %29, label LBL_5, label LBL_9 LBL_5: %30 = add i32 %storemerge37.reload, 1 %31 = sext i32 %30 to i64 %32 = icmp sgt i64 %8, %31 store i64 %31, i64* %.reg2mem store i32 %30, i32* %storemerge37.reg2mem br i1 %32, label LBL_2, label LBL_6 LBL_6: %33 = trunc i64 %3 to i32 %34 = add i32 %33, -2 %35 = icmp eq i32 %34, 0 %36 = icmp slt i32 %34, 0 %37 = icmp eq i1 %36, false %38 = icmp eq i1 %35, false %39 = icmp eq i1 %37, %38 store i32 %34, i32* %storemerge6.reg2mem store i32 %34, i32* %sv_0.15.reg2mem store i32 %34, i32* %sv_0.1.lcssa.reg2mem br i1 %39, label LBL_7, label LBL_8 LBL_7: %sv_0.15.reload = load i32, i32* %sv_0.15.reg2mem %storemerge6.reload = load i32, i32* %storemerge6.reg2mem %40 = zext i32 %storemerge6.reload to i64 %41 = call i64 @FUNC(i64 %2, i64 %40) %42 = trunc i64 %41 to i32 %43 = icmp eq i32 %42, 0 %spec.select = select i1 %43, i32 %sv_0.15.reload, i32 %storemerge6.reload %44 = add i32 %storemerge6.reload, -1 %45 = icmp eq i32 %44, 0 %46 = icmp slt i32 %44, 0 %47 = icmp eq i1 %46, false %48 = icmp eq i1 %45, false %49 = icmp eq i1 %47, %48 store i32 %44, i32* %storemerge6.reg2mem store i32 %spec.select, i32* %sv_0.15.reg2mem store i32 %spec.select, i32* %sv_0.1.lcssa.reg2mem br i1 %49, label LBL_7, label LBL_8 LBL_8: %sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem %.pre = zext i32 %sv_0.1.lcssa.reload to i64 store i64 %.pre, i64* %storemerge2.pre-phi.reg2mem br label LBL_9 LBL_9: %storemerge2.pre-phi.reload = load i64, i64* %storemerge2.pre-phi.reg2mem ret i64 %storemerge2.pre-phi.reload uselistorder i32 %storemerge6.reload, { 1, 0, 2 } uselistorder i32 %storemerge37.reload, { 1, 0 } uselistorder i64 %8, { 1, 0 } uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge37.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge6.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.15.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge2.pre-phi.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i64)* @get_params_match_resume, { 1, 0 } uselistorder i32 0, { 4, 5, 3, 1, 2, 6, 0 } uselistorder i1 false, { 3, 2, 0, 1, 4, 5 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_5, { 1, 2, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
sctp_generate_proto_unreach_event_6568
sctp_generate_proto_unreach_event
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 = add i64 %2, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = call i64 @FUNC(i64 %5) %7 = call i64 @FUNC(i64 %5) %8 = call i64 @FUNC(i64 %5) %9 = trunc i64 %8 to i32 %10 = icmp eq i32 %9, 0 br i1 %10, label LBL_3, label LBL_1 LBL_1: %11 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0)) %12 = call i64 @FUNC(i64 %3, i64* nonnull @gv_2) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false br i1 %15, label LBL_5, label LBL_2 LBL_2: %16 = call i64 @FUNC(i64 %2) br label LBL_5 LBL_3: %17 = trunc i64 %1 to i32 %18 = icmp eq i32 %17, 0 %19 = icmp eq i1 %18, false br i1 %19, label LBL_5, label LBL_4 LBL_4: %20 = add i64 %2, 24 %21 = inttoptr i64 %20 to i64* %22 = load i64, i64* %21, align 8 %23 = add i64 %2, 16 %24 = inttoptr i64 %23 to i32* %25 = load i32, i32* %24, align 4 %26 = zext i32 %25 to i64 %27 = call i64 @FUNC(i64 %6, i64 0, i64 0, i64 %26, i64 %22, i64 %2) br label LBL_5 LBL_5: %28 = call i64 @FUNC(i64 %5) %29 = call i64 @FUNC(i64 %2) ret i64 %29 uselistorder i64 %2, { 4, 3, 2, 1, 0, 5 } uselistorder label LBL_5, { 3, 0, 2, 1 } }
0
BinRealVul
util_resolve_sys_link_18823
util_resolve_sys_link
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.lcssa.reg2mem = alloca i8* %storemerge4.reg2mem = alloca i32 %storemerge2.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %3 = bitcast i64* %arg2 to i8* %4 = bitcast i64* %sv_1 to i8* %5 = call i32 @readlink(i8* %3, i8* nonnull %4, i32 4096) %6 = icmp eq i32 %5, 0 %7 = icmp slt i32 %5, 0 %8 = icmp eq i1 %7, false %9 = icmp eq i1 %6, false %10 = icmp eq i1 %8, %9 store i64 4294967295, i64* %rax.0.reg2mem br i1 %10, label LBL_1, label LBL_7 LBL_1: %11 = ptrtoint i64* %arg2 to i64 %12 = ptrtoint i64* %arg1 to i64 %13 = ptrtoint i64* %sv_2 to i64 %14 = sext i32 %5 to i64 %15 = add i64 %13, -4128 %16 = add i64 %15, %14 %17 = inttoptr i64 %16 to i8* store i8 0, i8* %17, align 1 %18 = call i64 @FUNC(i64 %12, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_0, i64 0, i64 0), i64 %11, i64* nonnull %sv_1, i64 %2, i64 %1) %19 = ptrtoint i64* %sv_1 to i64 store i32 0, i32* %storemerge2.reg2mem br label LBL_2 LBL_2: %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %20 = mul i32 %storemerge2.reload, 3 %21 = sext i32 %20 to i64 %22 = add i64 %21, %19 %23 = inttoptr i64 %22 to i8* %24 = call i32 @strncmp(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i32 3) %25 = icmp eq i32 %24, 0 %26 = add i32 %storemerge2.reload, 1 store i32 %26, i32* %storemerge2.reg2mem br i1 %25, label LBL_2, label LBL_3 LBL_3: %27 = zext i32 %storemerge2.reload to i64 %28 = inttoptr i64 %22 to i64* %29 = call i64 @FUNC(i64 %12, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_2, i64 0, i64 0), i64 %11, i64* %28, i64 %27, i64 %1) %30 = icmp slt i32 %storemerge2.reload, 0 store i32 0, i32* %storemerge4.reg2mem br i1 %30, label LBL_6, label LBL_4 LBL_4: %31 = call i8* @strrchr(i8* %3, i32 47) %32 = icmp eq i8* %31, null %33 = icmp eq i1 %32, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %33, label LBL_5, label LBL_7 LBL_5: %storemerge4.reload = load i32, i32* %storemerge4.reg2mem store i8 0, i8* %31, align 1 %34 = add i32 %storemerge4.reload, 1 %35 = icmp sgt i32 %34, %storemerge2.reload store i32 %34, i32* %storemerge4.reg2mem store i8* %31, i8** %sv_0.0.lcssa.reg2mem br i1 %35, label LBL_6, label LBL_4 LBL_6: %sv_0.0.lcssa.reload = load i8*, i8** %sv_0.0.lcssa.reg2mem %36 = call i64 @FUNC(i64 %12, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_3, i64 0, i64 0), i64 %11, i64* %28, i64 %27, i64 %1) %37 = ptrtoint i8* %sv_0.0.lcssa.reload to i64 %38 = add i64 %11, %arg3 %39 = sub i64 %38, %37 %40 = call i64 @FUNC(i64 %37, i64 %39, i64* nonnull @gv_4, i64 %22, i64 0) 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 %37, { 1, 0 } uselistorder i32 %storemerge2.reload, { 3, 4, 2, 1, 0 } uselistorder i32 %5, { 0, 2, 1 } uselistorder i64* %sv_1, { 2, 0, 1 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge4.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64* %0, { 1, 0 } uselistorder i32 3, { 1, 0 } uselistorder i64 (i64, i8*, i64, i64*, i64, i64)* @dbg, { 2, 1, 0 } uselistorder i1 false, { 1, 2, 0 } uselistorder i32 0, { 0, 2, 3, 1, 4, 5 } uselistorder i64* %arg2, { 1, 0 } uselistorder label LBL_7, { 2, 0, 1 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
bcm2835_audio_start_18438
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 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %5 = call i32 @fwrite(i64* bitcast ([30 x i8]* @gv_2 to i64*), i32 1, i32 29, %_IO_FILE* %4) store i64 4294967284, i64* %rax.0.reg2mem br label LBL_4 LBL_2: %6 = ptrtoint i64* %arg1 to i64 %7 = call i64 @FUNC(i64 %1, i64 4198742) %8 = add i64 %1, 8 %9 = inttoptr i64 %8 to i64* store i64 %6, i64* %9, align 8 %10 = add i64 %1, 16 %11 = inttoptr i64 %10 to i32* store i32 1, i32* %11, align 4 %12 = call i64 @FUNC(i64 %1, i64 %1) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false store i64 4294967280, i64* %rax.0.reg2mem br i1 %15, label LBL_3, label LBL_4 LBL_3: %16 = call i32 @puts(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_3, i64 0, i64 0)) 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 %1, { 0, 3, 1, 4, 2, 5 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i32 (i8*)* @puts, { 1, 0 } uselistorder label LBL_4, { 1, 0, 2 } }
1
BinRealVul
xbzrle_cache_zero_page_2558
xbzrle_cache_zero_page
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = load i32, i32* @gv_0, align 4 %1 = zext i32 %0 to i64 %2 = icmp eq i32 %0, 0 %3 = icmp eq i1 %2, false store i64 %1, i64* %rax.0.reg2mem br i1 %3, label LBL_3, label LBL_1 LBL_1: %4 = call i64 @FUNC() %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 store i64 %4, i64* %rax.0.reg2mem br i1 %6, label LBL_3, label LBL_2 LBL_2: %7 = load i32, i32* @gv_1, align 4 %8 = load i64, i64* @gv_2, align 8 %9 = zext i32 %7 to i64 %10 = call i64 @FUNC(i64 %8, i64 %arg1, i64 0, i64 %9) store i64 %10, 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 0, { 2, 3, 0, 1 } uselistorder i32 1, { 1, 0 } uselistorder label LBL_3, { 2, 1, 0 } }
0
BinRealVul
__set_phys_to_machine_7223
__set_phys_to_machine
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0 = alloca i32, align 4 %0 = load i64, i64* @gv_0, align 8 %1 = icmp ugt i64 %0, %arg1 %2 = icmp eq i1 %1, false %3 = zext i1 %2 to i64 %4 = call i64 @FUNC(i64 %3) %5 = trunc i64 %4 to i8 %6 = icmp eq i8 %5, 0 br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = icmp eq i64 %arg2, 4294967295 %8 = zext i1 %7 to i64 %9 = or i64 %8, 4294967040 store i64 %9, i64* %rax.0.reg2mem br label LBL_7 LBL_2: %10 = load i64, i64* @gv_1, align 8 %11 = add i64 %10, %arg1 %12 = call i64 @FUNC(i64 %11, i64 %arg2) %13 = urem i64 %12, 256 %14 = icmp eq i64 %13, 0 %15 = zext i1 %14 to i64 %16 = call i64 @FUNC(i64 %15) %17 = trunc i64 %16 to i8 %18 = icmp eq i8 %17, 0 store i64 1, i64* %rax.0.reg2mem br i1 %18, label LBL_3, label LBL_7 LBL_3: %19 = load i64, i64* @gv_1, align 8 %20 = add i64 %19, %arg1 %21 = bitcast i32* %sv_0 to i64* %22 = call i64 @FUNC(i64 %20, i64* nonnull %21) %23 = icmp eq i64 %22, 0 %24 = load i32, i32* %sv_0, align 4 %25 = icmp ne i32 %24, 0 %not.or.cond = or i1 %23, %25 %storemerge = zext i1 %not.or.cond to i64 %26 = call i64 @FUNC(i64 %storemerge) %27 = inttoptr i64 %22 to i64* %28 = load i64, i64* %27, align 8 %29 = call i64 @FUNC(i64 %28) %30 = load i64, i64* @gv_2, align 8 %31 = udiv i64 %30, 4096 %32 = icmp eq i64 %29, %31 %33 = icmp eq i1 %32, false br i1 %33, label LBL_5, label LBL_4 LBL_4: %34 = icmp eq i64 %arg2, 4294967295 %35 = zext i1 %34 to i64 %36 = or i64 %35, 4294967040 store i64 %36, i64* %rax.0.reg2mem br label LBL_7 LBL_5: %37 = load i64, i64* %27, align 8 %38 = call i64 @FUNC(i64 %37) %39 = load i64, i64* @gv_3, align 8 %40 = udiv i64 %39, 4096 %41 = icmp eq i64 %38, %40 %42 = icmp eq i1 %41, false store i64 0, i64* %rax.0.reg2mem br i1 %42, label LBL_7, label LBL_6 LBL_6: %43 = icmp eq i64 %arg2, %arg1 %44 = zext i1 %43 to i64 %45 = and i64 %arg2, -256 %46 = or i64 %45, %44 store i64 %46, 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* %rax.0.reg2mem, { 0, 5, 1, 4, 2, 3 } uselistorder i64 (i64)* @pte_pfn, { 1, 0 } uselistorder i32 1, { 3, 0, 1, 2 } uselistorder i64 %arg2, { 2, 3, 1, 4, 0 } uselistorder i64 %arg1, { 2, 0, 1, 3 } uselistorder label LBL_7, { 2, 0, 3, 1, 4 } }
0
BinRealVul
__udp6_lib_rcv_18400
__udp6_lib_rcv
define i64 @FUNC(i64 %arg1, i32* %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i32 %.pre-phi5.reg2mem = alloca i32* %sv_1.0.reg2mem = alloca i16* %sv_2.0.reg2mem = alloca i64 %sv_3.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = call i64 @FUNC(i64 %arg1) %4 = call i64 @FUNC(i64 %arg1, i64 8) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 br i1 %6, label LBL_0.LBL_19_crit_edge, label LBL_2 LBL_1: %.pre = add i64 %arg1, 8 %.pre4 = inttoptr i64 %.pre to i32* store i32* %.pre4, i32** %.pre-phi5.reg2mem store i32 0, i32* %sv_0.1.reg2mem br label LBL_19 LBL_2: %7 = call i64 @FUNC(i64 %arg1) %8 = call i64 @FUNC(i64 %arg1) %9 = call i64 @FUNC(i64 %arg1) %10 = add i64 %9, 4 %11 = inttoptr i64 %10 to i16* %12 = load i16, i16* %11, align 2 %13 = zext i16 %12 to i64 %14 = call i64 @FUNC(i64 %13) %15 = trunc i64 %14 to i32 %16 = add i64 %arg1, 8 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = icmp ult i32 %18, %15 store i32* %17, i32** %.pre-phi5.reg2mem store i32 %15, i32* %sv_0.1.reg2mem br i1 %19, label LBL_19, label LBL_3 LBL_3: %20 = inttoptr i64 %9 to i16* %21 = icmp eq i32 %arg3, 17 %22 = icmp eq i1 %21, false store i64 %7, i64* %sv_3.0.reg2mem store i64 %8, i64* %sv_2.0.reg2mem store i16* %20, i16** %sv_1.0.reg2mem br i1 %22, label LBL_8, label LBL_4 LBL_4: %23 = icmp eq i32 %15, 0 %24 = icmp eq i1 %23, false %spec.select = select i1 %24, i32 %15, i32 %18 %25 = icmp ult i32 %spec.select, 8 store i32* %17, i32** %.pre-phi5.reg2mem store i32 %spec.select, i32* %sv_0.1.reg2mem br i1 %25, label LBL_19, label LBL_5 LBL_5: %26 = icmp ult i32 %spec.select, %18 %27 = icmp eq i1 %26, false store i64 %7, i64* %sv_3.0.reg2mem store i64 %8, i64* %sv_2.0.reg2mem store i16* %20, i16** %sv_1.0.reg2mem br i1 %27, label LBL_8, label LBL_6 LBL_6: %28 = zext i32 %spec.select to i64 %29 = call i64 @FUNC(i64 %arg1, i64 %28) %30 = trunc i64 %29 to i32 %31 = icmp eq i32 %30, 0 %32 = icmp eq i1 %31, false store i32* %17, i32** %.pre-phi5.reg2mem store i32 %spec.select, i32* %sv_0.1.reg2mem br i1 %32, label LBL_19, label LBL_7 LBL_7: %33 = call i64 @FUNC(i64 %arg1) %34 = call i64 @FUNC(i64 %arg1) %35 = call i64 @FUNC(i64 %arg1) %36 = inttoptr i64 %35 to i16* store i64 %33, i64* %sv_3.0.reg2mem store i64 %34, i64* %sv_2.0.reg2mem store i16* %36, i16** %sv_1.0.reg2mem br label LBL_8 LBL_8: %sv_1.0.reload = load i16*, i16** %sv_1.0.reg2mem %37 = ptrtoint i16* %sv_1.0.reload to i64 %38 = call i64 @FUNC(i64 %arg1, i64 %37, i32 %arg3) %39 = trunc i64 %38 to i32 %40 = icmp eq i32 %39, 0 %41 = icmp eq i1 %40, false br i1 %41, label LBL_20, label LBL_9 LBL_9: %sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem %sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem %42 = call i64 @FUNC(i64 %sv_2.0.reload) %43 = trunc i64 %42 to i32 %44 = icmp eq i32 %43, 0 br i1 %44, label LBL_11, label LBL_10 LBL_10: %45 = ptrtoint i32* %arg2 to i64 %46 = call i64 @FUNC(i64 %3, i64 %arg1, i64 %sv_3.0.reload, i64 %sv_2.0.reload, i64 %45) store i64 %46, i64* %rax.0.reg2mem br label LBL_21 LBL_11: %47 = call i64 @FUNC(i64 %arg1) %48 = add i64 %37, 2 %49 = inttoptr i64 %48 to i16* %50 = load i16, i16* %49, align 2 %51 = zext i16 %50 to i64 %52 = load i16, i16* %sv_1.0.reload, align 2 %53 = zext i16 %52 to i64 %54 = and i64 %47, 4294967295 %55 = call i64 @FUNC(i64 %3, i64 %sv_3.0.reload, i64 %53, i64 %sv_2.0.reload, i64 %51, i64 %54) %56 = icmp eq i64 %55, 0 %57 = icmp eq i1 %56, false br i1 %57, label LBL_15, label LBL_12 LBL_12: %58 = call i64 @FUNC(i64 0, i64 0, i64 %arg1) %59 = trunc i64 %58 to i32 %60 = icmp eq i32 %59, 0 br i1 %60, label LBL_20, label LBL_13 LBL_13: %61 = call i64 @FUNC(i64 %arg1) %62 = trunc i64 %61 to i32 %63 = icmp eq i32 %62, 0 %64 = icmp eq i1 %63, false br i1 %64, label LBL_20, label LBL_14 LBL_14: %65 = icmp eq i32 %arg3, 136 %66 = zext i1 %65 to i64 %67 = call i64 @FUNC(i64 %3, i64 1, i64 %66) %68 = call i64 @FUNC(i64 %arg1, i64 1, i64 2, i64 0, i64 %arg1) %69 = call i64 @FUNC(i64 %arg1) store i64 0, i64* %rax.0.reg2mem br label LBL_21 LBL_15: %70 = call i64 @FUNC(i64 %55) %71 = call i64 @FUNC(i64 %55) %72 = trunc i64 %71 to i32 %73 = icmp eq i32 %72, 0 %74 = icmp eq i1 %73, false br i1 %74, label LBL_17, label LBL_16 LBL_16: %75 = call i64 @FUNC(i64 %55, i64 %arg1) br label LBL_18 LBL_17: %76 = call i64 @FUNC(i64 %55, i64 %arg1) br label LBL_18 LBL_18: %77 = call i64 @FUNC(i64 %55) %78 = call i64 @FUNC(i64 %55) store i64 0, i64* %rax.0.reg2mem br label LBL_21 LBL_19: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %.pre-phi5.reload = load i32*, i32** %.pre-phi5.reg2mem %79 = load i32, i32* %.pre-phi5.reload, align 4 %80 = zext i32 %79 to i64 %81 = icmp eq i32 %arg3, 136 %82 = icmp eq i1 %81, false %83 = zext i32 %sv_0.1.reload to i64 %84 = select i1 %82, i64* @gv_0, i64* bitcast ([6 x i8]* @gv_1 to i64*) %85 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_2, i64 0, i64 0), i64* %84, i64 %83, i64 %80, i64 %2, i64 %1) br label LBL_20 LBL_20: %86 = icmp eq i32 %arg3, 136 %87 = zext i1 %86 to i64 %88 = call i64 @FUNC(i64 %3, i64 2, i64 %87) %89 = call i64 @FUNC(i64 %arg1) store i64 0, i64* %rax.0.reg2mem br label LBL_21 LBL_21: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %55, { 1, 0, 2, 3, 5, 4, 6 } uselistorder i64 %sv_2.0.reload, { 1, 2, 0 } uselistorder i16* %sv_1.0.reload, { 1, 0 } uselistorder i32 %spec.select, { 1, 2, 3, 0, 4 } uselistorder i32* %17, { 2, 1, 0, 3 } uselistorder i32 %15, { 1, 2, 0, 3 } uselistorder i64 %3, { 3, 1, 2, 0 } uselistorder i32** %.pre-phi5.reg2mem, { 0, 3, 2, 1, 4 } uselistorder i32* %sv_0.1.reg2mem, { 0, 3, 2, 1, 4 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64)* @kfree_skb, { 1, 0 } uselistorder i64 (i64, i64, i64)* @UDP6_INC_STATS_BH, { 1, 0 } uselistorder i32 136, { 1, 0, 2 } uselistorder i64 (i64)* @udp_hdr, { 1, 0 } uselistorder i64 (i64)* @ipv6_hdr, { 3, 2, 1, 0 } uselistorder i32 %arg3, { 3, 4, 0, 1, 2 } uselistorder i64 %arg1, { 19, 11, 12, 6, 8, 7, 9, 10, 13, 5, 14, 1, 2, 3, 4, 15, 16, 17, 18, 0, 20, 21 } uselistorder label LBL_20, { 3, 0, 1, 2 } uselistorder label LBL_19, { 1, 2, 3, 0 } }
1
BinRealVul
stbl_AddSize_7858
stbl_AddSize
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.2.reg2mem = alloca i32 %sv_0.39.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 %.pre-phi18.reg2mem = alloca i64 %.reg2mem21 = alloca i32 %.reg2mem = alloca i32 %.lcssa.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %sv_0.111.reg2mem = alloca i32 %storemerge12.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i64 %sv_2.0.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = icmp eq i64* %arg1, null store i64 1, i64* %rax.0.reg2mem br i1 %2, label LBL_39, label LBL_1 LBL_1: %3 = trunc i64 %arg2 to i32 %4 = icmp eq i32 %3, 0 %5 = icmp eq i1 %4, false store i64 1, i64* %rax.0.reg2mem br i1 %5, label LBL_2, label LBL_39 LBL_2: %6 = trunc i64 %1 to i32 %7 = add i32 %6, 1 %8 = icmp ult i32 %7, %3 store i64 1, i64* %rax.0.reg2mem br i1 %8, label LBL_39, label LBL_3 LBL_3: %sext5 = mul i64 %arg3, 4294967296 %9 = ashr exact i64 %sext5, 32 %sext6 = mul i64 %arg4, 4294967296 %10 = ashr exact i64 %sext6, 32 %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false store i64 %9, i64* %sv_2.0.reg2mem store i64 1, i64* %sv_1.0.reg2mem br i1 %13, label LBL_4, label LBL_6 LBL_4: %14 = icmp ult i32 %11, 2 store i64 %9, i64* %sv_2.0.reg2mem store i64 %10, i64* %sv_1.0.reg2mem br i1 %14, label LBL_6, label LBL_5 LBL_5: %.lhs.trunc = trunc i64 %9 to i32 %15 = udiv i32 %.lhs.trunc, %11 %16 = sext i32 %15 to i64 store i64 %16, i64* %sv_2.0.reg2mem store i64 %10, i64* %sv_1.0.reg2mem br label LBL_6 LBL_6: %17 = ptrtoint i64* %arg1 to i64 %18 = bitcast i64* %rdi to i32* %sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem %19 = add i64 %17, 16 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = icmp eq i64 %21, 0 %23 = icmp eq i1 %22, false br i1 %23, label LBL_23, label LBL_7 LBL_7: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %24 = icmp eq i32 %6, 0 %25 = icmp eq i1 %24, false br i1 %25, label LBL_10, label LBL_8 LBL_8: %26 = add i64 %17, 24 %27 = inttoptr i64 %26 to i32* %28 = load i32, i32* %27, align 4 %29 = icmp eq i32 %28, 0 br i1 %29, label LBL_10, label LBL_9 LBL_9: %30 = trunc i64 %sv_1.0.reload to i32 %31 = bitcast i64* %arg1 to i32* store i32 %30, i32* %31, align 4 %32 = trunc i64 %sv_2.0.reload to i32 %33 = add i64 %17, 4 %34 = inttoptr i64 %33 to i32* store i32 %32, i32* %34, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_39 LBL_10: %35 = add i64 %17, 4 %36 = inttoptr i64 %35 to i32* %37 = load i32, i32* %36, align 4 %38 = trunc i64 %sv_2.0.reload to i32 %39 = icmp eq i32 %37, %38 %40 = icmp eq i1 %39, false %41 = trunc i64 %sv_1.0.reload to i32 br i1 %40, label LBL_12, label LBL_11 LBL_11: %42 = add i32 %41, %6 %43 = bitcast i64* %arg1 to i32* store i32 %42, i32* %43, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_39 LBL_12: %44 = icmp ult i32 %41, 2 br i1 %44, label LBL_14, label LBL_13 LBL_13: %45 = call i32 @puts(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @gv_0, i64 0, i64 0)) store i64 3, i64* %rax.0.reg2mem br label LBL_39 LBL_14: %46 = zext i32 %7 to i64 %47 = mul i64 %46, 4 %48 = call i64 @FUNC(i64 %47) store i64 %48, i64* %20, align 8 %49 = icmp eq i64 %48, 0 %50 = icmp eq i1 %49, false store i64 2, i64* %rax.0.reg2mem br i1 %50, label LBL_15, label LBL_39 LBL_15: %51 = load i32, i32* %18, align 8 %52 = add i32 %51, 1 %53 = add i64 %17, 8 %54 = inttoptr i64 %53 to i32* store i32 %52, i32* %54, align 4 %55 = load i32, i32* %18, align 8 %56 = icmp eq i32 %55, 0 store i32 0, i32* %.lcssa.reg2mem br i1 %56, label LBL_20, label LBL_16 LBL_16: %57 = sub i32 0, %3 store i32 0, i32* %storemerge12.reg2mem store i32 0, i32* %sv_0.111.reg2mem br label LBL_17 LBL_17: %sv_0.111.reload = load i32, i32* %sv_0.111.reg2mem %storemerge12.reload = load i32, i32* %storemerge12.reg2mem %58 = sub i32 0, %storemerge12.reload %59 = sub i32 %58, 1 %60 = icmp eq i32 %59, %57 %61 = icmp eq i1 %60, false store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem br i1 %61, label LBL_19, label LBL_18 LBL_18: %62 = load i64, i64* %20, align 8 %63 = add i32 %sv_0.111.reload, %storemerge12.reload %64 = zext i32 %63 to i64 %65 = mul i64 %64, 4 %66 = add i64 %62, %65 %67 = inttoptr i64 %66 to i32* store i32 %38, i32* %67, align 4 store i32 1, i32* %sv_0.0.reg2mem br label LBL_19 LBL_19: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %68 = load i64, i64* %20, align 8 %69 = add i32 %sv_0.0.reload, %storemerge12.reload %70 = zext i32 %69 to i64 %71 = mul i64 %70, 4 %72 = add i64 %71, %68 %73 = load i32, i32* %36, align 4 %74 = inttoptr i64 %72 to i32* store i32 %73, i32* %74, align 4 %75 = add nuw i32 %storemerge12.reload, 1 %76 = load i32, i32* %18, align 8 %77 = icmp ult i32 %75, %76 store i32 %75, i32* %storemerge12.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.111.reg2mem store i32 %76, i32* %.lcssa.reg2mem br i1 %77, label LBL_17, label LBL_20 LBL_20: %.lcssa.reload = load i32, i32* %.lcssa.reg2mem %78 = add i32 %.lcssa.reload, 1 %79 = icmp eq i32 %78, %3 %80 = icmp eq i1 %79, false br i1 %80, label LBL_22, label LBL_21 LBL_21: %81 = load i64, i64* %20, align 8 %82 = zext i32 %.lcssa.reload to i64 %83 = mul i64 %82, 4 %84 = add i64 %81, %83 %85 = inttoptr i64 %84 to i32* store i32 %38, i32* %85, align 4 br label LBL_22 LBL_22: store i32 0, i32* %36, align 4 %86 = load i32, i32* %18, align 8 %87 = add i32 %86, 1 %88 = bitcast i64* %arg1 to i32* store i32 %87, i32* %88, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_39 LBL_23: %89 = sub i32 0, %6 %90 = sub i32 %89, 1 %91 = sub i32 0, %3 %92 = icmp eq i32 %90, %91 %93 = icmp eq i1 %92, false br i1 %93, label LBL_31, label LBL_24 LBL_24: %94 = add i64 %17, 8 %95 = inttoptr i64 %94 to i32* %96 = load i32, i32* %95, align 4 %97 = icmp eq i32 %96, 0 %98 = icmp eq i1 %97, false store i32 %6, i32* %.reg2mem store i32 %96, i32* %.reg2mem21 br i1 %98, label LBL_26, label LBL_25 LBL_25: store i32 %6, i32* %95, align 4 %.pre = load i32, i32* %18, align 8 store i32 %.pre, i32* %.reg2mem store i32 %6, i32* %.reg2mem21 br label LBL_26 LBL_26: %.reload22 = load i32, i32* %.reg2mem21 %.reload = load i32, i32* %.reg2mem %99 = icmp eq i32 %.reload, %.reload22 %100 = icmp eq i1 %99, false br i1 %100, label LBL_26.LBL_30_crit_edge, label LBL_28 LBL_27: %.pre15 = zext i32 %.reload to i64 %.pre17 = mul i64 %.pre15, 4 store i64 %.pre17, i64* %.pre-phi18.reg2mem br label LBL_30 LBL_28: %101 = mul i32 %.reload22, 2 store i32 %101, i32* %95, align 4 %102 = zext i32 %101 to i64 %103 = mul i64 %102, 4 %104 = load i64, i64* %20, align 8 %105 = call i64 @FUNC(i64 %104, i64 %103) store i64 %105, i64* %20, align 8 %106 = icmp eq i64 %105, 0 %107 = icmp eq i1 %106, false store i64 2, i64* %rax.0.reg2mem br i1 %107, label LBL_29, label LBL_39 LBL_29: %108 = load i32, i32* %95, align 4 %109 = load i32, i32* %18, align 8 %110 = sub i32 %108, %109 %111 = mul i32 %110, 4 %112 = zext i32 %109 to i64 %113 = mul i64 %112, 4 %114 = add i64 %113, %105 %115 = inttoptr i64 %114 to i64* %116 = call i64* @memset(i64* %115, i32 0, i32 %111) store i64 %113, i64* %.pre-phi18.reg2mem br label LBL_30 LBL_30: %.pre-phi18.reload = load i64, i64* %.pre-phi18.reg2mem %117 = load i64, i64* %20, align 8 %118 = add i64 %117, %.pre-phi18.reload %119 = trunc i64 %sv_2.0.reload to i32 %120 = inttoptr i64 %118 to i32* store i32 %119, i32* %120, align 4 br label LBL_38 LBL_31: %121 = zext i32 %7 to i64 %122 = mul i64 %121, 4 %123 = call i64 @FUNC(i64 %122) %124 = icmp eq i64 %123, 0 %125 = icmp eq i1 %124, false store i64 2, i64* %rax.0.reg2mem br i1 %125, label LBL_32, label LBL_39 LBL_32: %126 = icmp eq i32 %6, 0 br i1 %126, label LBL_37, label LBL_33 LBL_33: %127 = trunc i64 %sv_2.0.reload to i32 %128 = and i64 %arg2, 4294967295 store i64 0, i64* %indvars.iv.reg2mem store i32 0, i32* %sv_0.39.reg2mem br label LBL_34 LBL_34: %sv_0.39.reload = load i32, i32* %sv_0.39.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %129 = icmp eq i64 %indvars.iv.next, %128 %130 = icmp eq i1 %129, false %.pre14 = trunc i64 %indvars.iv.reload to i32 store i32 %sv_0.39.reload, i32* %sv_0.2.reg2mem br i1 %130, label LBL_36, label LBL_35 LBL_35: %131 = add i32 %sv_0.39.reload, %.pre14 %132 = zext i32 %131 to i64 %133 = mul i64 %132, 4 %134 = add i64 %133, %123 %135 = inttoptr i64 %134 to i32* store i32 %127, i32* %135, align 4 store i32 1, i32* %sv_0.2.reg2mem br label LBL_36 LBL_36: %sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem %136 = load i64, i64* %20, align 8 %137 = mul i64 %indvars.iv.reload, 4 %138 = add i64 %136, %137 %139 = add i32 %sv_0.2.reload, %.pre14 %140 = zext i32 %139 to i64 %141 = mul i64 %140, 4 %142 = add i64 %141, %123 %143 = inttoptr i64 %138 to i32* %144 = load i32, i32* %143, align 4 %145 = inttoptr i64 %142 to i32* store i32 %144, i32* %145, align 4 %146 = load i32, i32* %18, align 8 %147 = zext i32 %146 to i64 %148 = icmp ult i64 %indvars.iv.next, %147 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i32 %sv_0.2.reload, i32* %sv_0.39.reg2mem br i1 %148, label LBL_34, label LBL_37 LBL_37: %149 = load i64, i64* %20, align 8 %150 = call i64 @FUNC(i64 %149) store i64 %123, i64* %20, align 8 %151 = load i32, i32* %18, align 8 %152 = add i32 %151, 1 %153 = add i64 %17, 8 %154 = inttoptr i64 %153 to i32* store i32 %152, i32* %154, align 4 br label LBL_38 LBL_38: %155 = load i32, i32* %18, align 8 %156 = add i32 %155, 1 %157 = bitcast i64* %arg1 to i32* store i32 %156, i32* %157, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_39 LBL_39: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %sv_0.2.reload, { 1, 0 } uselistorder i64 %indvars.iv.reload, { 2, 1, 0 } uselistorder i32 %sv_0.39.reload, { 1, 0 } uselistorder i64 %123, { 2, 0, 1, 3 } uselistorder i32 %101, { 1, 0 } uselistorder i32 %.reload22, { 1, 0 } uselistorder i32 %sv_0.0.reload, { 1, 0 } uselistorder i32 %storemerge12.reload, { 0, 2, 1, 3 } uselistorder i32 %sv_0.111.reload, { 1, 0 } uselistorder i32 %41, { 1, 0 } uselistorder i64* %20, { 7, 8, 9, 6, 4, 5, 0, 2, 1, 3, 10 } uselistorder i32* %18, { 6, 7, 8, 5, 0, 2, 3, 1, 4 } uselistorder i64 %17, { 3, 5, 1, 2, 0, 6, 4 } uselistorder i64 %9, { 2, 1, 0 } uselistorder i32 %6, { 4, 0, 5, 1, 2, 3, 6, 7 } uselistorder i32 %3, { 2, 0, 1, 3, 4 } uselistorder i64* %sv_2.0.reg2mem, { 0, 2, 3, 1 } uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 3, 1 } uselistorder i32* %storemerge12.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.111.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem, { 0, 2, 1 } uselistorder i32* %.reg2mem21, { 0, 2, 1 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.39.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 11, 1, 2, 10, 3, 9, 8, 7, 4, 6, 5 } uselistorder i64 (i64)* @gf_malloc, { 1, 0 } uselistorder i32 2, { 0, 2, 1 } uselistorder i64* %arg1, { 0, 1, 2, 3, 5, 4 } uselistorder label LBL_39, { 6, 0, 1, 7, 2, 8, 9, 10, 3, 5, 4 } uselistorder label LBL_36, { 1, 0 } uselistorder label LBL_34, { 1, 0 } uselistorder label LBL_30, { 1, 0 } uselistorder label LBL_17, { 1, 0 } uselistorder label LBL_6, { 1, 2, 0 } }
1
BinRealVul
webm_dash_manifest_write_header_17220
webm_dash_manifest_write_header
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i128 %1 = alloca i64 %storemerge.reg2mem = alloca i64 %rdx.1.lcssa.reg2mem = alloca i64 %storemerge24.reg2mem = alloca i32 %rdx.0.reg2mem = alloca i64 %2 = load i64, i64* %1 %3 = load i64, i64* %1 %4 = load i64, i64* %1 %5 = load i64, i64* %1 %6 = load i128, i128* %0 %7 = ptrtoint i64* %arg1 to i64 %8 = call i128 @FUNC(i128 %6, i128 %6) %9 = call i64 @FUNC(i128 %8) %10 = add i64 %7, 8 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = call i64 @FUNC(i64 %7) %14 = call i64 @FUNC(i64 %7) %15 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %5, i64 %3, i64 %2) %16 = call i128 @FUNC(i64 %9) %17 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i64 %9, i64 %5, i64 %3, i64 %2) %18 = add i64 %12, 4 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 %21 = icmp eq i32 %20, 0 %22 = icmp eq i1 %21, false store i64 %9, i64* %rdx.0.reg2mem br i1 %22, label LBL_2, label LBL_1 LBL_1: %23 = call i128 @FUNC(i64 %7) %24 = call i64 @__asm_movq.1(i128 %23) %25 = call i128 @FUNC(i64 %24) %26 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0), i64 %7, i64 %5, i64 %3, i64 %2) store i64 %7, i64* %rdx.0.reg2mem br label LBL_2 LBL_2: %27 = inttoptr i64 %12 to i32* %rdx.0.reload = load i64, i64* %rdx.0.reg2mem %28 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_3, i64 0, i64 0), i64 %rdx.0.reload, i64 %5, i64 %3, i64 %2) %29 = load i32, i32* %27, align 4 %30 = icmp eq i32 %29, 0 store i32 0, i32* %storemerge24.reg2mem store i64 %rdx.0.reload, i64* %rdx.1.lcssa.reg2mem br i1 %30, label LBL_5, label LBL_3 LBL_3: %storemerge24.reload = load i32, i32* %storemerge24.reg2mem %31 = zext i32 %storemerge24.reload to i64 %32 = call i64 @FUNC(i64 %7, i64 %31) %33 = trunc i64 %32 to i32 %34 = icmp slt i32 %33, 0 %35 = icmp eq i1 %34, false store i64 4294967295, i64* %storemerge.reg2mem br i1 %35, label LBL_4, label LBL_6 LBL_4: %36 = add i32 %storemerge24.reload, 1 %37 = load i32, i32* %27, align 4 %38 = zext i32 %37 to i64 %39 = sext i32 %36 to i64 %40 = icmp slt i64 %39, %38 store i32 %36, i32* %storemerge24.reg2mem store i64 %31, i64* %rdx.1.lcssa.reg2mem br i1 %40, label LBL_3, label LBL_5 LBL_5: %rdx.1.lcssa.reload = load i64, i64* %rdx.1.lcssa.reg2mem %41 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_4, i64 0, i64 0), i64 %rdx.1.lcssa.reload, i64 %5, i64 %3, i64 %2) %42 = call i64 @FUNC(i64 %7) store i64 0, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32* %27, { 1, 0 } uselistorder i64 %9, { 0, 2, 1 } uselistorder i64 %7, { 6, 1, 7, 2, 0, 4, 5, 3, 8, 9, 10, 11, 12 } uselistorder i64 %5, { 4, 3, 2, 1, 0 } uselistorder i64 %3, { 4, 3, 2, 1, 0 } uselistorder i64 %2, { 4, 3, 2, 1, 0 } uselistorder i32* %storemerge24.reg2mem, { 2, 0, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %1, { 3, 2, 1, 0 } uselistorder i32 0, { 2, 0, 1, 3 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @avio_printf, { 4, 3, 2, 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
ftp_passive_mode_1423
ftp_passive_mode
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i8* %sv_0.110.reg2mem = alloca i8* %storemerge311.reg2mem = alloca i32 %.reg2mem21 = alloca i64 %.reg2mem19 = alloca i8* %.reg2mem = alloca i8 %rdi = alloca i64, align 8 %0 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i32, align 4 %sv_2 = alloca i8*, align 8 %sv_3 = alloca i64, align 8 store i64 0, i64* %sv_3, align 8 store i8* null, i8** %sv_2, align 8 store i32 227, i32* %sv_1, align 4 %1 = call i64 @FUNC(i64 %0, i64 ptrtoint ([7 x i8]* @gv_0 to i64), i32* nonnull %sv_1, i64* nonnull %sv_3) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 227 %4 = icmp eq i1 %3, false %5 = load i64, i64* %sv_3, align 8 %6 = icmp eq i64 %5, 0 %or.cond = or i1 %6, %4 br i1 %or.cond, label LBL_15, label LBL_1 LBL_1: %7 = inttoptr i64 %5 to i8* %8 = load i8, i8* %7, align 1 %9 = icmp eq i8 %8, 0 %10 = icmp eq i1 %9, false br i1 %10, label LBL_2, label LBL_15 LBL_2: %11 = add i64 %5, 1 store i8 %8, i8* %.reg2mem store i8* %7, i8** %.reg2mem19 store i64 0, i64* %.reg2mem21 store i32 0, i32* %storemerge311.reg2mem store i8* null, i8** %sv_0.110.reg2mem br label LBL_3 LBL_3: %storemerge311.reload = load i32, i32* %storemerge311.reg2mem %.reload = load i8, i8* %.reg2mem %12 = icmp eq i8 %.reload, 40 %13 = icmp eq i1 %12, false br i1 %13, label LBL_5, label LBL_4 LBL_4: %.reload22 = load i64, i64* %.reg2mem21 %14 = add i64 %11, %.reload22 %15 = inttoptr i64 %14 to i8* store i8* %15, i8** %sv_0.0.reg2mem br label LBL_6 LBL_5: %sv_0.110.reload = load i8*, i8** %sv_0.110.reg2mem %16 = icmp eq i8 %.reload, 41 %17 = icmp eq i1 %16, false store i8* %sv_0.110.reload, i8** %sv_0.0.reg2mem br i1 %17, label LBL_6, label LBL_7 LBL_6: %sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem %18 = add i32 %storemerge311.reload, 1 %19 = sext i32 %18 to i64 %20 = add i64 %5, %19 %21 = inttoptr i64 %20 to i8* %22 = load i8, i8* %21, align 1 %23 = icmp eq i8 %22, 0 %24 = icmp eq i1 %23, false store i8 %22, i8* %.reg2mem store i8* %21, i8** %.reg2mem19 store i64 %19, i64* %.reg2mem21 store i32 %18, i32* %storemerge311.reg2mem store i8* %sv_0.0.reload, i8** %sv_0.110.reg2mem br i1 %24, label LBL_3, label LBL_15 LBL_7: %.reload20 = load i8*, i8** %.reg2mem19 store i8* %.reload20, i8** %sv_2, align 8 %25 = icmp eq i8* %sv_0.110.reload, null %26 = icmp eq i8* %.reload20, null %or.cond6 = or i1 %26, %25 br i1 %or.cond6, label LBL_15, label LBL_8 LBL_8: store i8 0, i8* %.reload20, align 1 %27 = ptrtoint i8* %sv_0.110.reload to i64 %28 = bitcast i8** %sv_2 to i64* %29 = call i64 @FUNC(i64 %27, i64* nonnull @gv_1, i64* nonnull %28) %30 = icmp eq i64 %29, 0 br i1 %30, label LBL_15, label LBL_9 LBL_9: %31 = load i8*, i8** %sv_2, align 8 %32 = ptrtoint i8* %31 to i64 %33 = call i64 @FUNC(i64 %32, i64* nonnull @gv_1, i64* nonnull %28) %34 = icmp eq i64 %33, 0 br i1 %34, label LBL_15, label LBL_10 LBL_10: %35 = load i8*, i8** %sv_2, align 8 %36 = ptrtoint i8* %35 to i64 %37 = call i64 @FUNC(i64 %36, i64* nonnull @gv_1, i64* nonnull %28) %38 = icmp eq i64 %37, 0 br i1 %38, label LBL_15, label LBL_11 LBL_11: %39 = load i8*, i8** %sv_2, align 8 %40 = ptrtoint i8* %39 to i64 %41 = call i64 @FUNC(i64 %40, i64* nonnull @gv_1, i64* nonnull %28) %42 = icmp eq i64 %41, 0 br i1 %42, label LBL_15, label LBL_12 LBL_12: %43 = load i8*, i8** %sv_2, align 8 %44 = ptrtoint i8* %43 to i64 %45 = call i64 @FUNC(i64 %44, i64* nonnull @gv_1, i64* nonnull %28) %46 = icmp eq i64 %45, 0 br i1 %46, label LBL_15, label LBL_13 LBL_13: %47 = inttoptr i64 %45 to i8* %48 = call i32 @atoi(i8* %47) %49 = mul i32 %48, 256 %50 = bitcast i64* %arg1 to i32* store i32 %49, i32* %50, align 4 %51 = load i8*, i8** %sv_2, align 8 %52 = ptrtoint i8* %51 to i64 %53 = call i64 @FUNC(i64 %52, i64* nonnull @gv_1, i64* nonnull %28) %54 = icmp eq i64 %53, 0 br i1 %54, label LBL_15, label LBL_14 LBL_14: %55 = inttoptr i64 %53 to i8* %56 = bitcast i64* %rdi to i32* %57 = load i32, i32* %56, align 8 %58 = call i32 @atoi(i8* %55) %59 = add i32 %58, %57 store i32 %59, i32* %50, align 4 %60 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0), i32 %57) %61 = load i64, i64* %sv_3, align 8 %62 = call i64 @FUNC(i64 %61) store i64 0, i64* %storemerge.reg2mem br label LBL_16 LBL_15: %63 = load i64, i64* %sv_3, align 8 %64 = call i64 @FUNC(i64 %63) %65 = bitcast i64* %arg1 to i32* store i32 -1, i32* %65, align 4 store i64 5, i64* %storemerge.reg2mem br label LBL_16 LBL_16: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %57, { 1, 0 } uselistorder i8* %.reload20, { 1, 2, 0 } uselistorder i8* %sv_0.110.reload, { 1, 2, 0 } uselistorder i64* %sv_3, { 2, 3, 0, 1, 4 } uselistorder i8** %sv_2, { 6, 5, 4, 3, 2, 7, 1, 0 } uselistorder i8* %.reg2mem, { 2, 0, 1 } uselistorder i8** %.reg2mem19, { 0, 2, 1 } uselistorder i64* %.reg2mem21, { 2, 0, 1 } uselistorder i32* %storemerge311.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_0.110.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64)* @av_free, { 1, 0 } uselistorder i32 (i8*)* @atoi, { 1, 0 } uselistorder i64 (i64, i64*, i64*)* @av_strtok, { 5, 4, 3, 2, 1, 0 } uselistorder i8 0, { 1, 2, 0, 3, 4 } uselistorder i8* null, { 1, 2, 0, 3 } uselistorder label LBL_15, { 2, 3, 4, 5, 6, 7, 8, 0, 1, 9 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
do_rt_sigreturn_574
do_rt_sigreturn
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %2 = load i64, i64* %0 %3 = add i64 %1, 32 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = add i64 %5, -4 %7 = call i64 @FUNC(i64 %1, i64 %6) %8 = call i64 @FUNC(i64 0, i64 %2, i64 %6, i64 1) %9 = trunc i64 %8 to i32 %10 = icmp eq i32 %9, 0 br i1 %10, label LBL_4, label LBL_1 LBL_1: %11 = call i64 @FUNC(i64* nonnull %sv_0, i64 %2) %12 = call i64 @FUNC(i64* nonnull %sv_0) %13 = add i64 %2, 128 %14 = call i64 @FUNC(i64 %1, i64 %13) %15 = trunc i64 %14 to i32 %16 = icmp eq i32 %15, 0 %17 = icmp eq i1 %16, false br i1 %17, label LBL_4, label LBL_2 LBL_2: %18 = call i64 @FUNC(i64 %1) %19 = add i64 %5, 124 %20 = call i64 @FUNC(i64 %19, i64 0, i64 %18) %21 = trunc i64 %20 to i32 %22 = icmp eq i32 %21, -14 br i1 %22, label LBL_4, label LBL_3 LBL_3: %23 = call i64 @FUNC(i64 %2, i64 %6, i64 0) br label LBL_5 LBL_4: %24 = call i64 @FUNC(i64 %2, i64 %6, i64 0) %25 = call i64 @FUNC(i64 11) br label LBL_5 LBL_5: ret i64 1 uselistorder i64 %6, { 1, 0, 3, 2 } uselistorder i64 (i64, i64, i64)* @unlock_user_struct, { 1, 0 } uselistorder i64 1, { 0, 2, 1 } }
0
BinRealVul
recalculate_thresholds_18422
recalculate_thresholds
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge.reg2mem = alloca i64 %storemerge1.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 12 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = mul i32 %3, 64 %5 = sext i32 %4 to i64 %6 = add i64 %0, -1 %7 = add i64 %6, %5 %8 = call i64 @FUNC(i64 %7, i64 %5) %9 = trunc i64 %8 to i32 %10 = add i64 %0, 8 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = sub i32 %9, %12 %14 = xor i32 %12, %9 %15 = xor i32 %13, %9 %16 = and i32 %15, %14 %17 = icmp slt i32 %16, 0 %18 = icmp slt i32 %13, 0 %19 = icmp ne i1 %18, %17 %20 = zext i1 %19 to i64 %21 = call i64 @FUNC(i64 %20) %22 = icmp ugt i64* %arg1, inttoptr (i64 1073741823 to i64*) store i64 1073741824, i64* %storemerge1.reg2mem br i1 %22, label LBL_1, label LBL_2 LBL_1: %23 = call i64 @FUNC(i64 %0, i64 1073741824) %24 = mul i64 %23, 1073741824 store i64 %24, i64* %storemerge1.reg2mem br label LBL_2 LBL_2: %storemerge1.reload = load i64, i64* %storemerge1.reg2mem %25 = load i32, i32* %11, align 4 %26 = mul i32 %25, 4096 %27 = add i32 %26, 4096 %28 = sext i32 %27 to i64 %29 = icmp ugt i64 %storemerge1.reload, %28 br i1 %29, label LBL_4, label LBL_3 LBL_3: %30 = add i64 %0, 16 %31 = inttoptr i64 %30 to i64* store i64 0, i64* %31, align 8 store i64 %0, i64* %rax.0.reg2mem br label LBL_7 LBL_4: %32 = sub i64 %storemerge1.reload, %28 %33 = call i64 @FUNC(i64 %storemerge1.reload, i64 2) %34 = icmp ult i64 %32, %33 store i64 %32, i64* %storemerge.reg2mem br i1 %34, label LBL_6, label LBL_5 LBL_5: %35 = call i64 @FUNC(i64 %storemerge1.reload, i64 2) store i64 %35, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem %36 = call i64 @FUNC(i64 %storemerge.reload, i64 0) %37 = add i64 %0, 16 %38 = inttoptr i64 %37 to i64* store i64 %36, i64* %38, align 8 store i64 %36, 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 %storemerge1.reload, { 3, 1, 0, 2 } uselistorder i32 %13, { 1, 0 } uselistorder i64 %5, { 1, 0 } uselistorder i64 %0, { 3, 0, 2, 4, 5, 1, 6 } uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } uselistorder i32 4096, { 1, 0 } uselistorder i64 1073741824, { 1, 2, 0 } uselistorder i64 (i64, i64)* @div64_u64, { 4, 3, 2, 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
netdev_del_completion_2061
netdev_del_completion
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge1.reg2mem = alloca i32 %.reg2mem = alloca i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %0 = trunc i64 %arg2 to i32 %1 = icmp eq i32 %0, 2 %2 = icmp eq i1 %1, false br i1 %2, label LBL_7, label LBL_1 LBL_1: %3 = ptrtoint i64* %arg1 to i64 %4 = inttoptr i64 %arg3 to i8* %5 = call i32 @strlen(i8* %4) %6 = zext i32 %5 to i64 %7 = call i64 @FUNC(i64 %3, i64 %6) %8 = call i64 @FUNC(i64 0, i64* nonnull %sv_0, i64 1, i64 10) %9 = trunc i64 %8 to i32 %10 = add i32 %9, -10 %11 = sub i32 9, %9 %12 = and i32 %11, %9 %13 = icmp slt i32 %12, 0 %14 = icmp eq i32 %10, 0 %15 = icmp slt i32 %10, 0 %16 = icmp eq i1 %15, %13 %17 = icmp eq i1 %14, false %18 = icmp eq i1 %16, %17 %19 = and i64 %8, 4294967295 %20 = select i1 %18, i64 10, i64 %19 %21 = icmp eq i64 %20, 0 store i64 0, i64* %rax.0.reg2mem br i1 %21, label LBL_7, label LBL_2 LBL_2: %22 = ptrtoint i64* %sv_1 to i64 %23 = add i64 %22, -112 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge1.reg2mem br label LBL_3 LBL_3: %storemerge1.reload = load i32, i32* %storemerge1.reg2mem %.reload = load i64, i64* %.reg2mem %24 = mul i64 %.reload, 8 %25 = add i64 %23, %24 %26 = inttoptr i64 %25 to i64* %27 = load i64, i64* %26, align 8 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = inttoptr i64 %29 to i8* %31 = call i32 @strncmp(i8* %4, i8* %30, i32 %5) %32 = icmp eq i32 %31, 0 %33 = icmp eq i1 %32, false br i1 %33, label LBL_6, label LBL_4 LBL_4: %34 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i64 0) %35 = call i64 @FUNC(i64 %34, i64 %29) %36 = icmp eq i64 %35, 0 br i1 %36, label LBL_6, label LBL_5 LBL_5: %37 = call i64 @FUNC(i64 %3, i64 %29) br label LBL_6 LBL_6: %38 = add i32 %storemerge1.reload, 1 %39 = sext i32 %38 to i64 %40 = icmp sgt i64 %20, %39 store i64 %39, i64* %.reg2mem store i32 %38, i32* %storemerge1.reg2mem store i64 %20, i64* %rax.0.reg2mem br i1 %40, label LBL_3, label LBL_7 LBL_7: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %20, { 0, 2, 1 } uselistorder i32 %10, { 1, 0 } uselistorder i32 %9, { 0, 2, 1 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 } uselistorder i32 0, { 1, 0, 2, 3, 4 } uselistorder label LBL_6, { 1, 2, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
openpic_gbl_read_16119
openpic_gbl_read
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.in.reg2mem = alloca i32 %rcx.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0), i64 %arg2, i64 %4, i64 %2, i64 %1) %6 = urem i64 %arg2, 16 %7 = icmp eq i64 %6, 0 store i32 -1, i32* %storemerge.in.reg2mem br i1 %7, label LBL_1, label LBL_31 LBL_1: %8 = ptrtoint i64* %arg1 to i64 %9 = icmp eq i64 %arg2, 4320 br i1 %9, label LBL_29, label LBL_2 LBL_2: %10 = icmp ult i64 %arg2, 4321 store i32 -1, i32* %sv_0.0.reg2mem br i1 %10, label LBL_3, label LBL_30 LBL_3: %11 = icmp eq i64 %arg2, 4304 br i1 %11, label LBL_28, label LBL_4 LBL_4: %12 = icmp ult i64 %arg2, 4305 store i32 -1, i32* %sv_0.0.reg2mem br i1 %12, label LBL_5, label LBL_30 LBL_5: %13 = icmp eq i64 %arg2, 4288 br i1 %13, label LBL_28, label LBL_6 LBL_6: %14 = icmp ult i64 %arg2, 4289 store i32 -1, i32* %sv_0.0.reg2mem br i1 %14, label LBL_7, label LBL_30 LBL_7: %15 = icmp eq i64 %arg2, 4272 br i1 %15, label LBL_28, label LBL_8 LBL_8: %16 = icmp ult i64 %arg2, 4273 store i32 -1, i32* %sv_0.0.reg2mem br i1 %16, label LBL_9, label LBL_30 LBL_9: %17 = icmp eq i64 %arg2, 4256 br i1 %17, label LBL_28, label LBL_10 LBL_10: %18 = icmp ult i64 %arg2, 4257 store i32 -1, i32* %sv_0.0.reg2mem br i1 %18, label LBL_11, label LBL_30 LBL_11: %19 = icmp eq i64 %arg2, 4240 store i32 0, i32* %sv_0.0.reg2mem br i1 %19, label LBL_30, label LBL_12 LBL_12: %20 = icmp ult i64 %arg2, 4241 store i32 -1, i32* %sv_0.0.reg2mem br i1 %20, label LBL_13, label LBL_30 LBL_13: %21 = icmp eq i64 %arg2, 4224 br i1 %21, label LBL_25, label LBL_14 LBL_14: %22 = icmp ult i64 %arg2, 4225 store i32 -1, i32* %sv_0.0.reg2mem br i1 %22, label LBL_15, label LBL_30 LBL_15: %23 = icmp eq i64 %arg2, 4128 br i1 %23, label LBL_24, label LBL_16 LBL_16: %24 = icmp ult i64 %arg2, 4129 store i32 -1, i32* %sv_0.0.reg2mem br i1 %24, label LBL_17, label LBL_30 LBL_17: %25 = trunc i64 %3 to i32 %26 = icmp eq i64 %arg2, 4096 store i32 %25, i32* %sv_0.0.reg2mem br i1 %26, label LBL_30, label LBL_18 LBL_18: %27 = icmp ult i64 %arg2, 177 store i32 -1, i32* %sv_0.0.reg2mem br i1 %27, label LBL_19, label LBL_30 LBL_19: %28 = icmp ult i64 %arg2, 128 %29 = icmp eq i1 %28, false br i1 %29, label LBL_22, label LBL_20 LBL_20: %30 = icmp eq i64 %arg2, 0 br i1 %30, label LBL_26, label LBL_21 LBL_21: %31 = icmp ult i64 %arg2, 113 %32 = icmp ult i64 %arg2, 64 %33 = icmp eq i1 %32, false %or.cond = icmp eq i1 %31, %33 store i32 -1, i32* %sv_0.0.reg2mem br i1 %or.cond, label LBL_23, label LBL_30 LBL_22: %34 = add i64 %arg2, 4294967168 %35 = urem i64 %34, 64 %36 = icmp eq i64 %35, 0 br i1 %36, label LBL_27, label %37 LBL_23: %40 = add i64 %arg2, 4294967232 %41 = urem i64 %40, 64 %42 = icmp eq i64 %41, 0 br i1 %42, label LBL_27, label %43 LBL_24: %46 = add i64 %8, 4 %47 = inttoptr i64 %46 to i32* %48 = load i32, i32* %47, align 4 store i32 %48, i32* %sv_0.0.reg2mem br label LBL_30 LBL_25: %49 = add i64 %8, 8 %50 = inttoptr i64 %49 to i32* %51 = load i32, i32* %50, align 4 store i32 %51, i32* %sv_0.0.reg2mem br label LBL_30 LBL_26: %52 = add i64 %8, 12 %53 = inttoptr i64 %52 to i32* %54 = load i32, i32* %53, align 4 store i32 %54, i32* %sv_0.0.reg2mem br label LBL_30 LBL_27: %55 = call i64 @FUNC() %56 = and i64 %55, 4294967295 %57 = call i64 @FUNC(i64 %8, i64 %arg2, i64 %56) %58 = trunc i64 %57 to i32 store i32 %58, i32* %sv_0.0.reg2mem store i64 %arg2, i64* %rcx.0.reg2mem br label LBL_30 LBL_28: %59 = add i64 %arg2, 68719472480 %60 = udiv i64 %59, 16 %61 = trunc i64 %60 to i32 %62 = add i64 %8, 20 %63 = inttoptr i64 %62 to i32* %64 = load i32, i32* %63, align 4 %65 = add i32 %64, %61 %66 = zext i32 %65 to i64 %67 = call i64 @FUNC(i64 %8, i64 %66) %68 = trunc i64 %67 to i32 store i32 %68, i32* %sv_0.0.reg2mem br label LBL_30 LBL_29: %69 = add i64 %8, 16 %70 = inttoptr i64 %69 to i32* %71 = load i32, i32* %70, align 4 store i32 %71, i32* %sv_0.0.reg2mem br label LBL_30 LBL_30: %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %72 = zext i32 %sv_0.0.reload to i64 %73 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0), i64 %72, i64 %rcx.0.reload, i64 %2, i64 %1) store i32 %sv_0.0.reload, i32* %storemerge.in.reg2mem br label LBL_31 LBL_31: %storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem %storemerge = zext i32 %storemerge.in.reload to i64 ret i64 %storemerge uselistorder i64 %41, { 1, 0 } uselistorder i64 %40, { 1, 0 } uselistorder i64 %35, { 1, 0 } uselistorder i64 %34, { 1, 0 } uselistorder i64 %8, { 6, 5, 4, 1, 0, 3, 2 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i32* %sv_0.0.reg2mem, { 0, 20, 19, 16, 14, 18, 17, 13, 15, 12, 11, 1, 10, 9, 8, 2, 7, 6, 5, 4, 3 } uselistorder i64* %rcx.0.reg2mem, { 0, 3, 1, 2 } uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 4294967295, { 1, 2, 0 } uselistorder i1 false, { 4, 5, 6, 1, 2, 3, 0, 7 } uselistorder i32 -1, { 11, 12, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 16, { 2, 0, 1 } uselistorder i64 (i8*, i8*, i64, i64, i64, i64)* @DPRINTF, { 1, 0 } uselistorder i64 %arg2, { 4, 0, 3, 27, 25, 2, 26, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 1, 28 } uselistorder label LBL_31, { 1, 0 } uselistorder label LBL_30, { 14, 15, 16, 17, 18, 19, 13, 12, 11, 10, 0, 9, 8, 7, 1, 6, 5, 4, 3, 2 } uselistorder label LBL_27, { 2, 0, 3, 1 } }
1
BinRealVul
vu_queue_notify_14866
vu_queue_notify
define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = trunc i64 %1 to i32 %4 = icmp eq i32 %3, 0 %5 = icmp eq i1 %4, false %6 = zext i1 %5 to i64 %7 = icmp eq i1 %5, false %8 = icmp eq i1 %7, false store i64 %6, i64* %rax.0.reg2mem br i1 %8, label LBL_5, label LBL_1 LBL_1: %9 = ptrtoint i32* %arg2 to i64 %10 = ptrtoint i32* %arg1 to i64 %11 = call i64 @FUNC(i64 %10, i64 %9) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false br i1 %14, label LBL_3, label LBL_2 LBL_2: %15 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0)) store i64 %15, i64* %rax.0.reg2mem br label LBL_5 LBL_3: %16 = trunc i64 %2 to i32 %17 = call i32 @eventfd_write(i32 %16, i64 1) %18 = sext i32 %17 to i64 %19 = icmp slt i32 %17, 0 %20 = icmp eq i1 %19, false store i64 %18, i64* %rax.0.reg2mem br i1 %20, label LBL_5, label LBL_4 LBL_4: %21 = call i32* @__errno_location() %22 = load i32, i32* %21, align 4 %23 = call i8* @strerror(i32 %22) %24 = ptrtoint i8* %23 to i64 %25 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i64 %24) unreachable LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %0, { 1, 0 } uselistorder i64 1, { 1, 0 } uselistorder i1 false, { 1, 2, 3, 0, 4 } uselistorder label LBL_5, { 1, 2, 0 } }
1
BinRealVul
virtio_scsi_common_exit_2335
virtio_scsi_common_exit
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) ret i64 %2 }
0
BinRealVul
__account_cfs_rq_runtime_6693
__account_cfs_rq_runtime
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = sub i64 %0, %arg2 store i64 %1, i64* %arg1, align 8 %2 = icmp eq i64* %arg1, null %3 = icmp eq i1 %2, false %4 = zext i1 %3 to i64 %5 = icmp eq i1 %3, false %6 = icmp eq i1 %5, false store i64 %4, i64* %rax.0.reg2mem br i1 %6, label LBL_4, label LBL_1 LBL_1: %7 = call i64 @FUNC(i64 %0) %8 = trunc i64 %7 to i32 %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false store i64 %7, i64* %rax.0.reg2mem br i1 %10, label LBL_4, label LBL_2 LBL_2: %11 = add i64 %0, 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = icmp eq i64 %13, 0 %15 = icmp eq i1 %14, false %16 = icmp eq i1 %15, false store i64 0, i64* %rax.0.reg2mem br i1 %16, label LBL_4, label LBL_3 LBL_3: %17 = call i64 @FUNC(i64 %0) %18 = call i64 @FUNC(i64 %17) store i64 %18, 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 i1 false, { 0, 2, 3, 4, 1, 5 } uselistorder label LBL_4, { 1, 2, 3, 0 } }
0