dataset
stringclasses
3 values
file
stringlengths
7
83
fun_name
stringlengths
2
83
llvm_ir_function
stringlengths
61
121k
label
stringclasses
2 values
reposvul_c_test
__inode_permission_74
__inode_permission
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = and i64 %arg2, 2 %2 = icmp eq i64 %1, 0 %3 = icmp eq i1 %2, false %4 = zext i1 %3 to i64 %5 = call i64 @FUNC(i64 %4) %6 = trunc i64 %5 to i8 %7 = icmp eq i8 %6, 0 br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = call i64 @FUNC(i64 %0) %9 = trunc i64 %8 to i32 %10 = icmp eq i32 %9, 0 store i64 4294967283, i64* %rax.0.reg2mem br i1 %10, label LBL_2, label LBL_7 LBL_2: %11 = and i64 %arg2, 4294967295 %12 = call i64 @FUNC(i64 %0, i64 %11) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 br i1 %14, label LBL_4, label LBL_3 LBL_3: %15 = and i64 %12, 4294967295 store i64 %15, i64* %rax.0.reg2mem br label LBL_7 LBL_4: %16 = call i64 @FUNC(i64 %0, i64 %11) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %17, 0 br i1 %18, label LBL_6, label LBL_5 LBL_5: %19 = and i64 %16, 4294967295 store i64 %19, i64* %rax.0.reg2mem br label LBL_7 LBL_6: %20 = call i64 @FUNC(i64 %0, i64 %11) store i64 %20, i64* %rax.0.reg2mem br label LBL_7 LBL_7: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %0, { 1, 2, 3, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder label LBL_7, { 1, 2, 3, 0 } }
0
BinRealVul
sgtable_alloc_4299
sgtable_alloc
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = icmp eq i64 %arg1, 0 %4 = icmp eq i1 %3, false %5 = urem i64 %arg1, 4096 %6 = icmp eq i64 %5, 0 %or.cond5 = icmp eq i1 %4, %6 store i64 -22, i64* %rax.0.reg2mem br i1 %or.cond5, label LBL_1, label LBL_8 LBL_1: %7 = urem i64 %arg2, 4 %8 = icmp eq i64 %7, 3 br i1 %8, label LBL_2, label LBL_3 LBL_2: %9 = call i64 @FUNC(i64 %arg1) %10 = trunc i64 %9 to i32 %11 = icmp eq i32 %10, 0 %12 = icmp eq i1 %11, false store i64 %9, i64* %sv_0.0.reg2mem store i64 -22, i64* %rax.0.reg2mem br i1 %12, label LBL_4, label LBL_8 LBL_3: %13 = udiv i64 %arg1, 4096 store i64 %13, i64* %sv_0.0.reg2mem br label LBL_4 LBL_4: %14 = call i64 @FUNC(i64 0, i64 0) %15 = icmp eq i64 %14, 0 %16 = icmp eq i1 %15, false store i64 -12, i64* %rax.0.reg2mem br i1 %16, label LBL_5, label LBL_8 LBL_5: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %17 = and i64 %sv_0.0.reload, 4294967295 %18 = call i64 @FUNC(i64 %14, i64 %17, i64 0) %19 = trunc i64 %18 to i32 %20 = icmp eq i32 %19, 0 br i1 %20, label LBL_7, label LBL_6 LBL_6: %21 = call i64 @FUNC(i64 %14) %sext2 = mul i64 %18, 4294967296 %22 = ashr exact i64 %sext2, 32 store i64 %22, i64* %rax.0.reg2mem br label LBL_8 LBL_7: %23 = call i64 @FUNC(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0), i64 %14, i64 %17, i64 %2, i64 %1) store i64 %14, i64* %rax.0.reg2mem br label LBL_8 LBL_8: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %17, { 1, 0 } uselistorder i64 %14, { 0, 2, 1, 3, 4 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 1, 2, 3 } uselistorder i64* %0, { 1, 0 } uselistorder i32 1, { 4, 3, 2, 1, 0, 5 } uselistorder i64 %arg1, { 0, 2, 1, 3 } uselistorder label LBL_8, { 3, 4, 0, 1, 2 } }
0
BinRealVul
lpfc_sli4_rb_alloc_17592
lpfc_sli4_rb_alloc
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 40, i64 0) %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false store i64 0, i64* %rax.0.reg2mem br i1 %2, label LBL_1, label LBL_6 LBL_1: %3 = add i64 %0, 8 %4 = call i64 @FUNC(i64 40, i64 0, i64 %3) %5 = inttoptr i64 %0 to i64* store i64 %4, i64* %5, align 8 %6 = icmp eq i64 %4, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_3, label LBL_2 LBL_2: %8 = call i64 @FUNC(i64 %0) store i64 0, i64* %rax.0.reg2mem br label LBL_6 LBL_3: %9 = ptrtoint i64* %arg1 to i64 %10 = add i64 %0, 24 %11 = add i64 %9, 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = call i64 @FUNC(i64 %13, i64 0, i64 %10) %15 = add i64 %0, 16 %16 = inttoptr i64 %15 to i64* store i64 %14, i64* %16, align 8 %17 = icmp eq i64 %14, 0 %18 = icmp eq i1 %17, false br i1 %18, label LBL_5, label LBL_4 LBL_4: %19 = inttoptr i64 %3 to i64* %20 = load i64, i64* %19, align 8 %21 = load i64, i64* %5, align 8 %22 = call i64 @FUNC(i64 %13, i64 %21, i64 %20) %23 = call i64 @FUNC(i64 %0) store i64 0, i64* %rax.0.reg2mem br label LBL_6 LBL_5: %24 = add i64 %0, 32 %25 = inttoptr i64 %24 to i64* store i64 1024, i64* %25, align 8 store i64 %0, i64* %rax.0.reg2mem br label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %0, { 0, 2, 1, 3, 5, 4, 7, 6, 8 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64 (i64)* @kfree, { 1, 0 } uselistorder i64 (i64, i64, i64)* @pci_pool_alloc, { 1, 0 } uselistorder label LBL_6, { 1, 2, 3, 0 } }
1
BinRealVul
fdctrl_read_data_14640
fdctrl_read_data
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rdx.0.reg2mem = alloca i64 %rcx.1.reg2mem = alloca i64 %rcx.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = load i64, i64* %0 %6 = ptrtoint i64* %arg1 to i64 %7 = call i64 @FUNC(i64 %6) %8 = trunc i64 %3 to i32 %9 = and i32 %8, -2 %10 = bitcast i64* %arg1 to i32* store i32 %9, i32* %10, align 4 %11 = add i64 %6, 4 %12 = inttoptr i64 %11 to i32* %13 = load i32, i32* %12, align 4 %14 = and i32 %13, 2 %15 = icmp eq i32 %14, 0 br i1 %15, label LBL_2, label LBL_1 LBL_1: %16 = and i32 %13, 4 %17 = icmp eq i32 %16, 0 %18 = icmp eq i1 %17, false br i1 %18, label LBL_3, label LBL_2 LBL_2: %19 = zext i32 %9 to i64 %20 = call i64 @FUNC(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %19, i64 %5, i64 %2, i64 %1) store i64 0, i64* %rax.0.reg2mem br label LBL_15 LBL_3: %21 = add i64 %6, 8 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = and i32 %13, 8 %25 = icmp eq i32 %24, 0 store i32 %23, i32* %sv_0.0.reg2mem br i1 %25, label LBL_10, label LBL_4 LBL_4: %26 = srem i32 %23, 512 %27 = icmp eq i32 %26, 0 %28 = icmp eq i1 %27, false store i32 %26, i32* %sv_0.0.reg2mem br i1 %28, label LBL_10, label LBL_5 LBL_5: %29 = icmp eq i32 %23, 0 br i1 %29, label LBL_8, label LBL_6 LBL_6: %30 = call i64 @FUNC(i64 %6, i64 %7) %31 = trunc i64 %30 to i32 %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 %7) %35 = and i64 %34, 4294967295 %36 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0), i64 %35, i64 %7, i64 %5, i64 %2, i64 %1) store i64 0, i64* %rax.0.reg2mem br label LBL_15 LBL_8: %37 = inttoptr i64 %7 to i32* %38 = add i64 %6, 16 %39 = call i64 @FUNC(i64 %7) %40 = and i64 %39, 4294967295 %41 = load i32, i32* %37, align 4 %42 = zext i32 %41 to i64 %43 = call i64 @FUNC(i64 %42, i64 %40, i64 %38, i64 1) %44 = trunc i64 %43 to i32 %45 = icmp slt i32 %44, 0 %46 = icmp eq i1 %45, false store i32 %26, i32* %sv_0.0.reg2mem store i64 1, i64* %rcx.0.reg2mem br i1 %46, label LBL_10, label LBL_9 LBL_9: %47 = call i64 @FUNC(i64 %7) %48 = and i64 %47, 4294967295 %49 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_2, i64 0, i64 0), i64 %48, i64 %38, i64 1, i64 %2, i64 %1) %50 = inttoptr i64 %38 to i64* %51 = call i64* @memset(i64* %50, i32 0, i32 512) store i32 %26, i32* %sv_0.0.reg2mem store i64 1, i64* %rcx.0.reg2mem br label LBL_10 LBL_10: %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %52 = sext i32 %sv_0.0.reload to i64 %53 = add i64 %6, 16 %54 = add i64 %53, %52 %55 = inttoptr i64 %54 to i8* %56 = load i8, i8* %55, align 1 %57 = load i32, i32* %22, align 4 %58 = add i32 %57, 1 store i32 %58, i32* %22, align 4 %59 = zext i32 %58 to i64 %60 = add i64 %6, 12 %61 = inttoptr i64 %60 to i32* %62 = load i32, i32* %61, align 4 %63 = icmp eq i32 %58, %62 %64 = icmp eq i1 %63, false store i64 %rcx.0.reload, i64* %rcx.1.reg2mem store i64 %59, i64* %rdx.0.reg2mem br i1 %64, label LBL_14, label LBL_11 LBL_11: store i32 0, i32* %22, align 4 %65 = load i32, i32* %12, align 4 %66 = and i32 %65, 8 %67 = icmp eq i32 %66, 0 br i1 %67, label LBL_13, label LBL_12 LBL_12: %68 = call i64 @FUNC(i64 %6, i64 0, i64 0, i64 0) store i64 0, i64* %rcx.1.reg2mem store i64 0, i64* %rdx.0.reg2mem br label LBL_14 LBL_13: %69 = call i64 @FUNC(i64 %6) %70 = call i64 @FUNC(i64 %6) store i64 %rcx.0.reload, i64* %rcx.1.reg2mem store i64 %59, i64* %rdx.0.reg2mem br label LBL_14 LBL_14: %rdx.0.reload = load i64, i64* %rdx.0.reg2mem %rcx.1.reload = load i64, i64* %rcx.1.reg2mem %71 = zext i8 %56 to i64 %72 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_3, i64 0, i64 0), i64 %71, i64 %rdx.0.reload, i64 %rcx.1.reload, i64 %2, i64 %1) store i64 %71, i64* %rax.0.reg2mem br label LBL_15 LBL_15: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %58, { 1, 0, 2 } uselistorder i32 %23, { 2, 1, 0 } uselistorder i32* %22, { 0, 2, 1, 3 } uselistorder i32 %9, { 1, 0 } uselistorder i64 %7, { 0, 1, 5, 3, 2, 4 } uselistorder i64 %6, { 3, 4, 2, 5, 6, 1, 0, 7, 8, 9 } uselistorder i64 %5, { 1, 0 } uselistorder i64 %2, { 3, 2, 1, 0 } uselistorder i64 %1, { 3, 2, 1, 0 } uselistorder i64* %rcx.1.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %rdx.0.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %0, { 4, 3, 2, 1, 0 } uselistorder i64 (i64)* @fd_sector, { 2, 1, 0 } uselistorder i32 512, { 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @FLOPPY_DPRINTF, { 3, 2, 1, 0 } uselistorder i32 0, { 1, 2, 0, 3, 4, 5, 6, 7, 8, 9 } }
1
BinRealVul
ext4_meta_trans_blocks_8627
ext4_meta_trans_blocks
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %sext2 = mul i64 %arg3, 4294967296 %1 = ashr exact i64 %sext2, 32 %2 = and i64 %1, 4294967295 %3 = and i64 %arg2, 4294967295 %4 = call i64 @FUNC(i64 %0, i64 %3, i64 %2) %5 = trunc i64 %4 to i32 %6 = trunc i64 %1 to i32 %7 = icmp eq i32 %6, 0 %8 = trunc i64 %arg2 to i32 %.pn = select i1 %7, i32 %8, i32 1 %storemerge = add i32 %.pn, %5 %9 = trunc i64 %0 to i32 %10 = and i64 %0, 4294967295 %11 = sext i32 %storemerge to i64 %12 = icmp slt i64 %10, %11 %spec.select = select i1 %12, i32 %9, i32 %storemerge %13 = add i64 %0, 4 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = zext i32 %15 to i64 %17 = sext i32 %spec.select to i64 %18 = icmp sgt i64 %17, %16 %sv_0.0 = select i1 %18, i32 %15, i32 %storemerge %19 = add i32 %5, 4 %20 = add i32 %19, %spec.select %21 = add i32 %20, %sv_0.0 %22 = zext i32 %21 to i64 ret i64 %22 uselistorder i32 %5, { 1, 0 } uselistorder i64 %0, { 1, 0, 2, 3 } }
0
BinRealVul
sws_rgb2rgb_init_1407
sws_rgb2rgb_init
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC() ret i64 %0 }
0
BinRealVul
nvdimm_realize_1665
nvdimm_realize
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = call i64 @FUNC(i64 %1, i64 %0) %3 = call i64 @FUNC(i64 %2) %4 = call i64 @FUNC(i64 %2) %5 = sub i64 %3, %2 %6 = call i64 @FUNC(i64 %2) %7 = add i64 %6, %5 %8 = add i64 %1, 8 %9 = inttoptr i64 %8 to i64* store i64 %7, i64* %9, align 8 %10 = sub i64 0, %4 %11 = and i64 %5, %10 %12 = icmp ugt i64 %3, %2 %13 = icmp eq i64 %11, 0 %14 = icmp eq i1 %13, false %or.cond = icmp eq i1 %12, %14 br i1 %or.cond, label LBL_2, label LBL_1 LBL_1: %15 = call i64 @FUNC(i64 %2) %16 = call i64 @FUNC(i64 %2) %17 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([100 x i8], [100 x i8]* @gv_0, i64 0, i64 0), i64 %15, i64 %16, i64 %2, i64 %4) %18 = call i64 @FUNC(i64 %15) store i64 %18, i64* %rax.0.reg2mem br label LBL_3 LBL_2: %19 = add i64 %1, 16 %20 = call i64 @FUNC(i64 %19, i64 %1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0), i64 %2, i64 0, i64 %11) %21 = inttoptr i64 %19 to i64* store i64 %4, i64* %21, align 8 store i64 %1, 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 %11, { 1, 0 } uselistorder i64 %5, { 1, 0 } uselistorder i64 %4, { 1, 0, 2 } uselistorder i64 %2, { 3, 2, 0, 1, 4, 5, 6, 7, 8 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } uselistorder i64 (i64)* @memory_region_size, { 1, 0 } }
0
reposvul_c_test
dir_is_in_dump_location_284
dir_is_in_dump_location
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = load [14 x i8]*, [14 x i8]** @gv_0, align 8 %1 = getelementptr inbounds [14 x i8], [14 x i8]* %0, i64 0, i64 0 %2 = call i32 @strlen(i8* %1) %3 = load [14 x i8]*, [14 x i8]** @gv_0, align 8 %4 = inttoptr i64 %arg1 to i8* %5 = getelementptr inbounds [14 x i8], [14 x i8]* %3, i64 0, i64 0 %6 = call i32 @strncmp(i8* %4, i8* %5, i32 %2) %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false br i1 %8, label LBL_3, label LBL_1 LBL_1: %9 = zext i32 %2 to i64 %10 = add i64 %9, %arg1 %11 = inttoptr i64 %10 to i8* %12 = load i8, i8* %11, align 1 %13 = icmp eq i8 %12, 47 %14 = icmp eq i1 %13, false br i1 %14, label LBL_3, label LBL_2 LBL_2: %15 = call i8* @strstr(i8* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0)) %16 = icmp eq i8* %15, null %17 = icmp eq i1 %16, false store i64 1, i64* %storemerge.reg2mem br i1 %17, label LBL_3, label LBL_4 LBL_3: store i64 0, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
SkipDXTMipmaps_12694
SkipDXTMipmaps
define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.07.reg2mem = alloca i64 %sv_1.08.reg2mem = alloca i64 %storemerge9.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = and i32 %2, 4194304 %4 = icmp eq i32 %3, 0 store i64 0, i64* %rax.0.reg2mem br i1 %4, label LBL_6, label LBL_1 LBL_1: %5 = ptrtoint i64* %arg2 to i64 %6 = and i32 %2, 4096 %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false br i1 %8, label LBL_3, label LBL_2 LBL_2: %9 = add i64 %5, 4 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = and i32 %11, 512 %13 = icmp eq i32 %12, 0 store i64 0, i64* %rax.0.reg2mem br i1 %13, label LBL_6, label LBL_3 LBL_3: %14 = add i64 %5, 8 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = ashr i32 %16, 1 %18 = add i64 %5, 12 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 %21 = ashr i32 %20, 1 %22 = add i64 %5, 16 %23 = inttoptr i64 %22 to i32* %24 = load i32, i32* %23, align 4 %25 = sext i32 %24 to i64 %26 = icmp sgt i32 %24, 1 %27 = icmp ne i32 %17, 0 %or.cond.not5 = icmp eq i1 %27, %26 %28 = icmp eq i32 %21, 0 %29 = icmp eq i1 %28, false %or.cond46 = icmp eq i1 %29, %or.cond.not5 store i64 %25, i64* %rax.0.reg2mem br i1 %or.cond46, label LBL_4, label LBL_6 LBL_4: %30 = sext i32 %21 to i64 %31 = sext i32 %17 to i64 %32 = sext i32 %arg3 to i64 %33 = ptrtoint i32* %arg1 to i64 store i64 1, i64* %storemerge9.reg2mem store i64 %30, i64* %sv_1.08.reg2mem store i64 %31, i64* %sv_0.07.reg2mem br label LBL_5 LBL_5: %sv_0.07.reload = load i64, i64* %sv_0.07.reg2mem %sv_1.08.reload = load i64, i64* %sv_1.08.reg2mem %storemerge9.reload = load i64, i64* %storemerge9.reg2mem %34 = add i64 %sv_0.07.reload, 3 %35 = udiv i64 %34, 4 %36 = add i64 %sv_1.08.reload, 3 %37 = udiv i64 %36, 4 %38 = mul i64 %37, %32 %39 = mul i64 %38, %35 %40 = call i64 @FUNC(i64 %33, i64 %39, i64 1) %41 = udiv i64 %sv_0.07.reload, 2 %42 = udiv i64 %sv_1.08.reload, 2 %43 = add nuw nsw i64 %storemerge9.reload, 1 %44 = load i32, i32* %23, align 4 %45 = sext i32 %44 to i64 %46 = icmp slt i64 %43, %45 %47 = icmp ugt i64 %sv_0.07.reload, 1 %or.cond.not = icmp eq i1 %47, %46 %48 = icmp ult i64 %sv_1.08.reload, 2 %49 = icmp eq i1 %48, false %or.cond4 = icmp eq i1 %49, %or.cond.not store i64 %43, i64* %storemerge9.reg2mem store i64 %42, i64* %sv_1.08.reg2mem store i64 %41, i64* %sv_0.07.reg2mem store i64 %45, i64* %rax.0.reg2mem br i1 %or.cond4, label LBL_5, label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %sv_1.08.reload, { 2, 1, 0 } uselistorder i64 %sv_0.07.reload, { 2, 1, 0 } uselistorder i32* %23, { 1, 0 } uselistorder i32 %21, { 1, 0 } uselistorder i32 %17, { 1, 0 } uselistorder i64 %5, { 1, 2, 3, 0 } uselistorder i32 %2, { 1, 0 } uselistorder i64* %storemerge9.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_1.08.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.07.reg2mem, { 1, 0, 2 } uselistorder i64 1, { 1, 3, 2, 0 } uselistorder i1 false, { 1, 0, 2 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
helper_load_slb_vsid_14748
helper_load_slb_vsid
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %1 = call i64 @FUNC(i64 %0, i64 %arg2, i64* nonnull %sv_0) %2 = trunc i64 %1 to i32 %3 = icmp slt i32 %2, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = call i64 @FUNC(i64 %0, i64 1, i64 2) br label LBL_2 LBL_2: %6 = load i64, i64* %sv_0, align 8 ret i64 %6 uselistorder i64* %sv_0, { 1, 0 } }
1
BinRealVul
update_dimensions_16877
update_dimensions
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = trunc i64 %arg2 to i32 %sext2 = mul i64 %arg3, 4294967296 %2 = ashr exact i64 %sext2, 32 %3 = trunc i64 %0 to i32 %4 = icmp eq i32 %3, %1 %5 = icmp eq i1 %4, false br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = add i64 %0, 4 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = trunc i64 %2 to i32 %10 = icmp eq i32 %8, %9 store i64 %0, i64* %rdi.0.reg2mem br i1 %10, label LBL_4, label LBL_2 LBL_2: %11 = and i64 %arg2, 4294967295 %12 = and i64 %2, 4294967295 %13 = call i64 @FUNC(i64 %11, i64 %12, i64 0, i64 %0) %14 = trunc i64 %13 to i32 %15 = icmp eq i32 %14, 0 store i64 4294967295, i64* %rax.0.reg2mem br i1 %15, label LBL_3, label LBL_9 LBL_3: %16 = call i64 @FUNC(i64 %11, i64 1, i64 0, i64 1) %17 = call i64 @FUNC(i64 %11, i64 %11, i64 %12) store i64 %11, i64* %rdi.0.reg2mem br label LBL_4 LBL_4: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %18 = add i64 %rdi.0.reload, 8 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 %21 = sdiv i32 %20, 1073741824 %22 = add i64 %0, 8 %23 = inttoptr i64 %22 to i32* store i32 %21, i32* %23, align 4 %24 = add i64 %rdi.0.reload, 12 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = sdiv i32 %26, 1073741824 %28 = add i64 %0, 12 %29 = inttoptr i64 %28 to i32* store i32 %27, i32* %29, align 4 %30 = load i32, i32* %23, align 4 %31 = mul i32 %27, 2 %32 = add i32 %30, 1 %33 = add i32 %32, %31 %34 = sext i32 %33 to i64 %35 = call i64 @FUNC(i64 %34) %36 = add i64 %0, 16 %37 = inttoptr i64 %36 to i64* store i64 %35, i64* %37, align 8 %38 = load i32, i32* %23, align 4 %39 = sext i32 %38 to i64 %40 = call i64 @FUNC(i64 %39) %41 = add i64 %0, 32 %42 = inttoptr i64 %41 to i64* store i64 %40, i64* %42, align 8 %43 = load i32, i32* %23, align 4 %44 = mul i32 %43, 4 %45 = sext i32 %44 to i64 %46 = call i64 @FUNC(i64 %45) %47 = add i64 %0, 40 %48 = inttoptr i64 %47 to i64* store i64 %46, i64* %48, align 8 %49 = load i32, i32* %23, align 4 %50 = sext i32 %49 to i64 %51 = call i64 @FUNC(i64 %50) %52 = add i64 %0, 48 %53 = inttoptr i64 %52 to i64* store i64 %51, i64* %53, align 8 %54 = load i32, i32* %23, align 4 %55 = add i32 %54, 1 %56 = sext i32 %55 to i64 %57 = call i64 @FUNC(i64 %56) %58 = add i64 %0, 56 %59 = inttoptr i64 %58 to i64* store i64 %57, i64* %59, align 8 %60 = load i64, i64* %37, align 8 %61 = icmp eq i64 %60, 0 store i64 4294967284, i64* %rax.0.reg2mem br i1 %61, label LBL_9, label LBL_5 LBL_5: %62 = load i64, i64* %42, align 8 %63 = icmp eq i64 %62, 0 store i64 4294967284, i64* %rax.0.reg2mem br i1 %63, label LBL_9, label LBL_6 LBL_6: %64 = load i64, i64* %48, align 8 %65 = icmp eq i64 %64, 0 store i64 4294967284, i64* %rax.0.reg2mem br i1 %65, label LBL_9, label LBL_7 LBL_7: %66 = load i64, i64* %53, align 8 %67 = icmp ne i64 %66, 0 %68 = icmp eq i64 %57, 0 %69 = icmp eq i1 %68, false %or.cond = icmp eq i1 %69, %67 store i64 4294967284, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_8, label LBL_9 LBL_8: %70 = add i64 %60, 1 %71 = add i64 %0, 24 %72 = inttoptr i64 %71 to i64* store i64 %70, i64* %72, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %11, { 0, 3, 2, 1, 4 } uselistorder i64 %0, { 4, 5, 6, 7, 8, 9, 10, 11, 1, 0, 2, 3 } uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 4, 3, 2, 1, 5 } uselistorder i64 4294967284, { 3, 2, 1, 0 } uselistorder i64 (i64)* @av_mallocz, { 4, 3, 2, 1, 0 } uselistorder i64 1, { 2, 1, 0 } uselistorder i64 32, { 1, 0 } uselistorder label LBL_9, { 5, 0, 3, 2, 1, 4 } }
1
BinRealVul
rv34_decoder_alloc_16473
rv34_decoder_alloc
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = mul i32 %3, 4 %5 = add i32 %4, 4 %6 = add i64 %2, 64 %7 = inttoptr i64 %6 to i32* store i32 %5, i32* %7, align 4 %8 = add i64 %2, 8 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = add i64 %2, 4 %12 = inttoptr i64 %11 to i32* %13 = load i32, i32* %12, align 4 %14 = mul i32 %13, %10 %15 = sext i32 %14 to i64 %16 = mul i64 %15, 4 %17 = call i64 @FUNC(i64 %16) %18 = add i64 %2, 16 %19 = inttoptr i64 %18 to i64* store i64 %17, i64* %19, align 8 %20 = load i32, i32* %9, align 4 %21 = load i32, i32* %12, align 4 %22 = mul i32 %21, %20 %23 = sext i32 %22 to i64 %24 = mul i64 %23, 4 %25 = call i64 @FUNC(i64 %24) %26 = add i64 %2, 24 %27 = inttoptr i64 %26 to i64* store i64 %25, i64* %27, align 8 %28 = load i32, i32* %9, align 4 %29 = load i32, i32* %12, align 4 %30 = mul i32 %29, %28 %31 = sext i32 %30 to i64 %32 = mul i64 %31, 4 %33 = call i64 @FUNC(i64 %32) %34 = add i64 %2, 32 %35 = inttoptr i64 %34 to i64* store i64 %33, i64* %35, align 8 %36 = load i32, i32* %7, align 4 %37 = mul i32 %36, 8 %38 = sext i32 %37 to i64 %39 = mul i64 %38, 4 %40 = call i64 @FUNC(i64 %39) %41 = add i64 %2, 40 %42 = inttoptr i64 %41 to i64* store i64 %40, i64* %42, align 8 %43 = load i32, i32* %9, align 4 %44 = load i32, i32* %12, align 4 %45 = mul i32 %44, %43 %46 = sext i32 %45 to i64 %47 = mul i64 %46, 4 %48 = call i64 @FUNC(i64 %47) %49 = add i64 %2, 56 %50 = inttoptr i64 %49 to i64* store i64 %48, i64* %50, align 8 %51 = load i64, i64* %19, align 8 %52 = icmp eq i64 %51, 0 br i1 %52, label LBL_4, label LBL_1 LBL_1: %53 = load i64, i64* %27, align 8 %54 = icmp eq i64 %53, 0 br i1 %54, label LBL_4, label LBL_2 LBL_2: %55 = load i64, i64* %35, align 8 %56 = icmp eq i64 %55, 0 br i1 %56, label LBL_4, label LBL_3 LBL_3: %57 = load i64, i64* %42, align 8 %58 = icmp ne i64 %57, 0 %59 = icmp eq i64 %48, 0 %60 = icmp eq i1 %59, false %or.cond = icmp eq i1 %60, %58 br i1 %or.cond, label LBL_5, label LBL_4 LBL_4: %61 = call i64 @FUNC(i64 %2) store i64 12, i64* %storemerge.reg2mem br label LBL_6 LBL_5: %62 = load i32, i32* %7, align 4 %63 = mul i32 %62, 4 %64 = sext i32 %63 to i64 %65 = mul i64 %64, 4 %66 = add i64 %65, %57 %67 = add i64 %2, 48 %68 = inttoptr i64 %67 to i64* store i64 %66, i64* %68, align 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* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64)* @av_malloc, { 3, 2, 1, 0 } uselistorder i32 4, { 0, 2, 1 } }
1
BinRealVul
spapr_set_associativity_14346
spapr_set_associativity
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.1.lcssa.reg2mem = alloca i32 %rsi.1.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %sv_0.16.reg2mem = alloca i32 %rsi.27.reg2mem = alloca i64 %.in.reg2mem = alloca i64 %rsi.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %sv_1 = alloca i64, align 8 %sv_2 = alloca i32, align 4 %1 = call i64 @FUNC() %2 = icmp eq i64* %arg2, null %3 = icmp eq i1 %2, false store i64 %0, i64* %rsi.0.reg2mem br i1 %3, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_1, i64 0, i64 0), i32 39, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0)) store i64 ptrtoint ([57 x i8]* @gv_1 to i64), i64* %rsi.0.reg2mem br label LBL_2 LBL_2: %4 = load i32*, i32** @gv_3, align 8 %5 = icmp eq i32* %4, null %6 = icmp eq i1 %5, false store i32 0, i32* %sv_0.1.lcssa.reg2mem br i1 %6, label LBL_3, label LBL_9 LBL_3: %rsi.0.reload = load i64, i64* %rsi.0.reg2mem %7 = ptrtoint i32* %4 to i64 %8 = and i64 %1, 4294967295 %9 = bitcast i64* %sv_1 to i8* store i64 %7, i64* %.in.reg2mem store i64 %rsi.0.reload, i64* %rsi.27.reg2mem store i32 0, i32* %sv_0.16.reg2mem br label LBL_4 LBL_4: %sv_0.16.reload = load i32, i32* %sv_0.16.reg2mem %rsi.27.reload = load i64, i64* %rsi.27.reg2mem %.in.reload = load i64, i64* %.in.reg2mem %10 = inttoptr i64 %.in.reload to i32* %11 = call i64 @FUNC(i64 5) %12 = trunc i64 %11 to i32 store i32 %12, i32* %sv_2, align 4 %13 = call i64 @FUNC(i64 0) %14 = call i64 @FUNC(i64 0) %15 = call i64 @FUNC(i64 0) %16 = add i64 %.in.reload, 4 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = zext i32 %18 to i64 %20 = call i64 @FUNC(i64 %19) %21 = load i32, i32* %10, align 4 %22 = zext i32 %21 to i64 %23 = call i64 @FUNC(i64 %22) %24 = load i32, i32* %10, align 4 %25 = ashr i32 %24, 31 %26 = zext i32 %24 to i64 %27 = zext i32 %25 to i64 %28 = mul i64 %27, 4294967296 %29 = or i64 %28, %26 %30 = srem i64 %29, %8 %31 = trunc i64 %30 to i32 %32 = icmp eq i32 %31, 0 %33 = icmp eq i1 %32, false store i32 %sv_0.16.reload, i32* %sv_0.0.reg2mem store i64 %rsi.27.reload, i64* %rsi.1.reg2mem br i1 %33, label LBL_8, label LBL_5 LBL_5: %34 = inttoptr i64 %rsi.27.reload to i8* %35 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %9, i32 32, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_4, i64 0, i64 0), i8* %34, i32 %24) %36 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_1) %37 = trunc i64 %36 to i32 %38 = icmp slt i32 %37, 0 %39 = icmp eq i1 %38, false %40 = and i64 %36, 4294967295 store i64 %40, i64* %rax.0.reg2mem br i1 %39, label LBL_6, label LBL_10 LBL_6: %41 = call i64 @FUNC(i64 %arg1, i32 %37, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_5, i64 0, i64 0), i32* nonnull %sv_2, i64 24) %42 = trunc i64 %41 to i32 %43 = icmp slt i32 %42, 0 %44 = icmp eq i1 %43, false store i32 %42, i32* %sv_0.0.reg2mem store i64 %40, i64* %rsi.1.reg2mem br i1 %44, label LBL_8, label LBL_7 LBL_7: %45 = and i64 %41, 4294967295 store i64 %45, i64* %rax.0.reg2mem br label LBL_10 LBL_8: %rsi.1.reload = load i64, i64* %rsi.1.reg2mem %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %46 = add i64 %.in.reload, 8 %47 = inttoptr i64 %46 to i64* %48 = load i64, i64* %47, align 8 %49 = icmp eq i64 %48, 0 %50 = icmp eq i1 %49, false store i64 %48, i64* %.in.reg2mem store i64 %rsi.1.reload, i64* %rsi.27.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.16.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem br i1 %50, label LBL_4, label LBL_9 LBL_9: %sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem %51 = zext i32 %sv_0.1.lcssa.reload to i64 store i64 %51, 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 %40, { 1, 0 } uselistorder i32* %10, { 1, 0 } uselistorder i64 %.in.reload, { 2, 1, 0 } uselistorder i64 %rsi.27.reload, { 1, 0 } uselistorder i32* %4, { 1, 0 } uselistorder i64* %.in.reg2mem, { 1, 0, 2 } uselistorder i64* %rsi.27.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.16.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 } uselistorder i64 4, { 1, 0 } uselistorder i64 (i64)* @cpu_to_be32, { 5, 4, 3, 2, 1, 0 } uselistorder i32 0, { 2, 3, 4, 1, 0 } uselistorder [57 x i8]* @gv_1, { 1, 0 } uselistorder i1 false, { 4, 1, 2, 3, 0, 5 } uselistorder label LBL_10, { 2, 1, 0 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
lm4549_write_samples_3372
lm4549_write_samples
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 4096 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = icmp ult i32 %3, 1023 br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = call i32 @puts(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0)) store i64 0, i64* %storemerge.reg2mem br label LBL_4 LBL_2: %6 = add i32 %3, 1 store i32 %6, i32* %2, align 4 %7 = trunc i64 %arg2 to i32 %8 = udiv i32 %7, 16 %9 = zext i32 %3 to i64 %10 = mul i64 %9, 4 %11 = add i64 %10, %0 %12 = inttoptr i64 %11 to i32* store i32 %8, i32* %12, align 4 %13 = load i32, i32* %2, align 4 %14 = add i32 %13, 1 store i32 %14, i32* %2, align 4 %15 = udiv i32 %arg3, 16 %16 = zext i32 %13 to i64 %17 = mul i64 %16, 4 %18 = add i64 %17, %0 %19 = inttoptr i64 %18 to i32* store i32 %15, i32* %19, align 4 %20 = load i32, i32* %2, align 4 %21 = icmp eq i32 %20, 1024 %22 = icmp eq i1 %21, false store i64 1, i64* %storemerge.reg2mem br i1 %22, label LBL_4, label LBL_3 LBL_3: %23 = call i64 @FUNC(i64 %0) store i64 1, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %3, { 1, 0, 2 } uselistorder i32* %2, { 0, 2, 1, 3, 4 } uselistorder i64 %0, { 2, 0, 1, 3 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 } uselistorder i64 1, { 1, 0 } uselistorder label LBL_4, { 1, 0, 2 } }
0
BinRealVul
gf_sg_vrml_mf_get_item_13023
gf_sg_vrml_mf_get_item
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 store i64 0, i64* %arg3, align 8 %0 = and i64 %arg2, 4294967295 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 store i64 1, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_5 LBL_1: %sext = mul i64 %arg2, 4294967296 %4 = ashr exact i64 %sext, 32 %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 1 %7 = icmp eq i1 %6, false store i64 1, i64* %rax.0.reg2mem br i1 %7, label LBL_2, label LBL_5 LBL_2: %8 = and i64 %4, 4294967295 %9 = call i64 @FUNC(i64 %8) %10 = trunc i64 %9 to i32 %11 = icmp eq i32 %10, 0 %12 = icmp eq i1 %11, false store i64 1, i64* %rax.0.reg2mem br i1 %12, label LBL_3, label LBL_5 LBL_3: %13 = ptrtoint i64* %arg1 to i64 %14 = add i64 %13, 8 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = trunc i64 %arg4 to i32 %18 = icmp ugt i32 %16, %17 store i64 1, i64* %rax.0.reg2mem br i1 %18, label LBL_4, label LBL_5 LBL_4: %19 = mul i64 %9, %arg4 %20 = and i64 %19, 4294967295 %21 = add nuw nsw i64 %20, %8 store i64 %21, i64* %arg3, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %4, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 } uselistorder label LBL_5, { 4, 0, 1, 2, 3 } }
1
BinRealVul
DestroyExceptionElement_8379
DestroyExceptionElement
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = icmp eq i64 %arg1, 0 br i1 %0, label LBL_2, label LBL_1 LBL_1: %1 = call i64 @FUNC(i64 %arg1) %2 = inttoptr i64 %arg1 to i64* store i64 %1, i64* %2, align 8 br label LBL_2 LBL_2: %3 = add i64 %arg1, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = icmp eq i64 %5, 0 br i1 %6, label LBL_4, label LBL_3 LBL_3: %7 = call i64 @FUNC(i64 %5) store i64 %7, i64* %4, align 8 br label LBL_4 LBL_4: %8 = call i64 @FUNC(i64 %arg1) ret i64 0 uselistorder i64 (i64)* @DestroyString, { 1, 0 } uselistorder i64 %arg1, { 2, 3, 0, 1, 4 } }
0
BinRealVul
vgic_v2_to_sgi_12319
vgic_v2_to_sgi
define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i32 %0 = trunc i64 %arg2 to i32 %1 = udiv i32 %0, 65536 %2 = urem i32 %1, 256 %3 = icmp eq i32 %2, 3 store i32 2, i32* %sv_0.0.reg2mem br i1 %3, label LBL_5, label LBL_1 LBL_1: %4 = icmp ugt i32 %2, 3 br i1 %4, label LBL_4, label LBL_2 LBL_2: %trunc = trunc i32 %1 to i8 store i32 0, i32* %sv_0.0.reg2mem switch i8 %trunc, label LBL_4 [ i8 1, label LBL_5 i8 2, label LBL_3 ] LBL_3: store i32 1, i32* %sv_0.0.reg2mem br label LBL_5 LBL_4: %5 = call i64 @FUNC() br label LBL_5 LBL_5: %6 = urem i32 %0, 256 %7 = udiv i64 %arg2, 16777216 %8 = urem i64 %7, 256 %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %9 = ptrtoint i32* %arg1 to i64 %10 = call i64 @FUNC(i64 %9, i32 %0, i32 %sv_0.0.reload, i32 %6, i64 %8) ret i64 %10 uselistorder i32 %2, { 1, 0 } uselistorder i32 %0, { 2, 1, 0 } uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 2, 1 } uselistorder label LBL_5, { 2, 3, 1, 0 } }
1
BinRealVul
gen_wsr_17106
gen_wsr
define i64 @FUNC(i32* %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 = mul i64 %arg2, 8 %5 = and i64 %4, 34359738360 %6 = add i64 %5, ptrtoint (i64* @gv_0 to i64) %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = icmp eq i64 %8, 0 br i1 %9, label LBL_4, label LBL_1 LBL_1: %10 = add i64 %5, ptrtoint (i64* @gv_1 to i64) %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = icmp eq i64 %12, 0 br i1 %13, label LBL_3, label LBL_2 LBL_2: %14 = ptrtoint i32* %arg1 to i64 store i64 %14, i64* %rax.0.reg2mem br label LBL_5 LBL_3: %15 = mul i64 %arg2, 4 %16 = and i64 %15, 17179869180 %17 = add i64 %16, ptrtoint (i32** @gv_2 to i64) %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = sext i32 %19 to i64 %21 = zext i32 %arg3 to i64 %22 = call i64 @FUNC(i64 %20, i64 %21) store i64 %22, i64* %rax.0.reg2mem br label LBL_5 LBL_4: %23 = and i64 %arg2, 4294967295 %24 = sext i32 %arg3 to i64 %25 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_3, i64 0, i64 0), i64 %23, i64 %24, i64 %3, i64 %2, i64 %1) store i64 %25, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i32 %arg3, { 1, 0 } uselistorder i64 %arg2, { 2, 0, 1 } }
1
BinRealVul
name_parse_11796
name_parse
define i64 @FUNC(i64* %arg1, i64 %arg2, i32* %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i64 %sv_1.019.reg2mem = alloca i32 %sv_0.020.reg2mem = alloca i64 %sv_0.0.ph.reg2mem = alloca i64 %sv_2.0.ph.reg2mem = alloca i32 %sv_1.0.ph.reg2mem = alloca i32 %sv_3.0.ph.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg4 to i64 %3 = ptrtoint i64* %arg1 to i64 %4 = trunc i64 %1 to i32 %sext5 = mul i64 %arg5, 4294967296 %5 = ashr exact i64 %sext5, 32 %6 = add i64 %5, %2 %7 = trunc i64 %arg2 to i32 store i32 -1, i32* %sv_3.0.ph.reg2mem store i32 %4, i32* %sv_1.0.ph.reg2mem store i32 0, i32* %sv_2.0.ph.reg2mem store i64 %2, i64* %sv_0.0.ph.reg2mem br label LBL_1 LBL_1: %sv_0.0.ph.reload = load i64, i64* %sv_0.0.ph.reg2mem %sv_2.0.ph.reload = load i32, i32* %sv_2.0.ph.reg2mem %sv_1.0.ph.reload = load i32, i32* %sv_1.0.ph.reg2mem %sv_3.0.ph.reload = load i32, i32* %sv_3.0.ph.reg2mem %8 = icmp slt i32 %sv_1.0.ph.reload, %7 store i64 %sv_0.0.ph.reload, i64* %sv_0.020.reg2mem store i32 %sv_1.0.ph.reload, i32* %sv_1.019.reg2mem store i64 4294967295, i64* %rax.0.reg2mem br i1 %8, label LBL_2, label LBL_15 LBL_2: %sv_1.019.reload = load i32, i32* %sv_1.019.reg2mem %sv_0.020.reload = load i64, i64* %sv_0.020.reg2mem %9 = add i32 %sv_1.019.reload, 1 %10 = sext i32 %sv_1.019.reload to i64 %11 = add i64 %10, %3 %12 = inttoptr i64 %11 to i8* %13 = load i8, i8* %12, align 1 %14 = icmp eq i8 %13, 0 br i1 %14, label LBL_13, label LBL_3 LBL_3: %15 = sext i8 %13 to i32 %16 = and i32 %15, 192 %17 = icmp eq i32 %16, 0 br i1 %17, label LBL_7, label LBL_4 LBL_4: %18 = icmp slt i32 %9, %7 store i64 4294967295, i64* %rax.0.reg2mem br i1 %18, label LBL_5, label LBL_15 LBL_5: %19 = sext i32 %9 to i64 %20 = add i64 %19, %3 %21 = inttoptr i64 %20 to i8* %22 = load i8, i8* %21, align 1 %23 = zext i8 %22 to i32 %24 = mul i32 %15, 256 %25 = and i32 %24, 16128 %26 = or i32 %25, %23 %27 = icmp slt i32 %26, %7 store i64 4294967295, i64* %rax.0.reg2mem br i1 %27, label LBL_6, label LBL_15 LBL_6: %28 = icmp slt i32 %sv_3.0.ph.reload, 0 %29 = icmp eq i1 %28, false %30 = add i32 %sv_1.019.reload, 2 %spec.select = select i1 %29, i32 %sv_3.0.ph.reload, i32 %30 %31 = add i32 %sv_2.0.ph.reload, 1 %32 = icmp sgt i32 %31, %7 store i32 %spec.select, i32* %sv_3.0.ph.reg2mem store i32 %26, i32* %sv_1.0.ph.reg2mem store i32 %31, i32* %sv_2.0.ph.reg2mem store i64 %sv_0.020.reload, i64* %sv_0.0.ph.reg2mem store i64 4294967295, i64* %rax.0.reg2mem br i1 %32, label LBL_15, label LBL_1 LBL_7: %33 = icmp ult i8 %13, 64 store i64 4294967295, i64* %rax.0.reg2mem br i1 %33, label LBL_8, label LBL_15 LBL_8: %34 = icmp eq i64 %sv_0.020.reload, %2 store i64 %2, i64* %sv_0.1.reg2mem br i1 %34, label LBL_11, label LBL_9 LBL_9: %35 = add i64 %sv_0.020.reload, 1 %36 = icmp ugt i64 %6, %35 store i64 4294967295, i64* %rax.0.reg2mem br i1 %36, label LBL_10, label LBL_15 LBL_10: %37 = inttoptr i64 %sv_0.020.reload to i8* store i8 46, i8* %37, align 1 store i64 %35, i64* %sv_0.1.reg2mem br label LBL_11 LBL_11: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %38 = urem i32 %15, 256 %39 = zext i32 %38 to i64 %40 = add i64 %sv_0.1.reload, %39 %41 = icmp ugt i64 %6, %40 store i64 4294967295, i64* %rax.0.reg2mem br i1 %41, label LBL_12, label LBL_15 LBL_12: %42 = sext i32 %9 to i64 %43 = add i64 %42, %3 %44 = inttoptr i64 %sv_0.1.reload to i64* %45 = inttoptr i64 %43 to i64* %46 = call i64* @memcpy(i64* %44, i64* %45, i32 %38) %47 = add i32 %38, %9 %48 = icmp slt i32 %47, %7 store i64 %40, i64* %sv_0.020.reg2mem store i32 %47, i32* %sv_1.019.reg2mem store i64 4294967295, i64* %rax.0.reg2mem br i1 %48, label LBL_2, label LBL_15 LBL_13: %49 = icmp ult i64 %sv_0.020.reload, %6 store i64 4294967295, i64* %rax.0.reg2mem br i1 %49, label LBL_14, label LBL_15 LBL_14: %50 = inttoptr i64 %sv_0.020.reload to i8* store i8 0, i8* %50, align 1 %51 = icmp slt i32 %sv_3.0.ph.reload, 0 %52 = icmp eq i1 %51, false %sv_3.0. = select i1 %52, i32 %sv_3.0.ph.reload, i32 %9 store i32 %sv_3.0., i32* %arg3, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_15 LBL_15: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %38, { 2, 1, 0 } uselistorder i32 %15, { 1, 0, 2 } uselistorder i32 %9, { 0, 3, 4, 2, 1 } uselistorder i64 %sv_0.020.reload, { 3, 4, 2, 1, 0, 5 } uselistorder i32 %sv_1.019.reload, { 2, 0, 1 } uselistorder i32 %sv_3.0.ph.reload, { 2, 3, 0, 1 } uselistorder i32 %7, { 4, 0, 1, 2, 3 } uselistorder i64 %6, { 2, 1, 0 } uselistorder i64 %2, { 0, 3, 1, 2 } uselistorder i32* %sv_3.0.ph.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_1.0.ph.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_2.0.ph.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.0.ph.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.020.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_1.019.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 10, 9, 5, 8, 7, 6, 3, 4, 2, 1 } uselistorder i32 256, { 1, 0 } uselistorder i64 4294967295, { 8, 4, 7, 6, 5, 2, 3, 1, 0 } uselistorder label LBL_15, { 9, 8, 4, 7, 6, 5, 2, 3, 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
object_delete_2685
object_delete
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = call i64 @FUNC(i64 %arg1) %3 = trunc i64 %1 to i32 %4 = icmp eq i32 %3, 1 %5 = zext i1 %4 to i64 %6 = call i64 @FUNC(i64 %5) %7 = call i64 @FUNC(i64 %arg1) ret i64 %7 }
0
BinRealVul
hexdump_12449
hexdump
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %.pre-phi.reg2mem = alloca i64 %sv_0.3.reg2mem = alloca i32 %sv_0.2.lcssa.reg2mem = alloca i32 %sv_0.25.reg2mem = alloca i32 %storemerge26.reg2mem = alloca i32 %.pn.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %sv_0.47.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sext = mul i64 %arg2, 4294967296 %0 = ashr exact i64 %sext, 32 %1 = urem i64 %0, 16 %2 = icmp eq i64 %1, 0 %3 = sub nsw i64 16, %1 %spec.select = select i1 %2, i64 0, i64 %3 %4 = add nsw i64 %spec.select, %0 %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 = and i64 %4, 4294967295 store i64 %.pre, i64* %.pre-phi.reg2mem br label LBL_19 LBL_2: %7 = ptrtoint i64* %sv_2 to i64 %8 = ptrtoint i64* %sv_1 to i64 %9 = trunc i64 %0 to i32 %10 = add i64 %7, -96 %11 = and i64 %0, 4294967295 %wide.trip.count = and i64 %4, 4294967295 store i64 0, i64* %indvars.iv.reg2mem store i32 0, i32* %sv_0.47.reg2mem br label LBL_3 LBL_3: %sv_0.47.reload = load i32, i32* %sv_0.47.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %12 = trunc i64 %indvars.iv.reload to i32 %13 = urem i32 %12, 16 %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false store i32 %sv_0.47.reload, i32* %sv_0.0.reg2mem br i1 %15, label LBL_5, label LBL_4 LBL_4: %16 = sext i32 %sv_0.47.reload to i64 %17 = add i64 %16, %8 %18 = inttoptr i64 %17 to i8* %19 = call i32 (i8*, i8*, ...) @sprintf(i8* %18, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i32 %12) %20 = add i32 %19, %sv_0.47.reload store i32 %20, i32* %sv_0.0.reg2mem br label LBL_5 LBL_5: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %21 = icmp ult i64 %indvars.iv.reload, %11 %22 = icmp eq i1 %21, false br i1 %22, label LBL_7, label LBL_6 LBL_6: %23 = add i64 %indvars.iv.reload, %arg1 %24 = inttoptr i64 %23 to i8* %25 = load i8, i8* %24, align 1 %26 = sext i32 %sv_0.0.reload to i64 %27 = add i64 %26, %8 %28 = zext i8 %25 to i32 %29 = inttoptr i64 %27 to i8* %30 = call i32 (i8*, i8*, ...) @sprintf(i8* %29, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i32 %28) store i32 %30, i32* %.pn.reg2mem br label LBL_8 LBL_7: %31 = sext i32 %sv_0.0.reload to i64 %32 = add i64 %31, %8 %33 = inttoptr i64 %32 to i8* %34 = call i32 (i8*, i8*, ...) @sprintf(i8* %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0)) store i32 %34, i32* %.pn.reg2mem br label LBL_8 LBL_8: %.pn.reload = load i32, i32* %.pn.reg2mem %storemerge3 = add i32 %.pn.reload, %sv_0.0.reload %35 = icmp eq i32 %13, 15 %36 = icmp eq i1 %35, false store i32 %storemerge3, i32* %sv_0.3.reg2mem br i1 %36, label LBL_18, label LBL_9 LBL_9: %37 = icmp ult i64 %indvars.iv.reload, 15 store i32 %storemerge3, i32* %sv_0.2.lcssa.reg2mem br i1 %37, label LBL_17, label LBL_10 LBL_10: %38 = add i32 %12, -15 store i32 %38, i32* %storemerge26.reg2mem store i32 %storemerge3, i32* %sv_0.25.reg2mem br label LBL_11 LBL_11: %sv_0.25.reload = load i32, i32* %sv_0.25.reg2mem %storemerge26.reload = load i32, i32* %storemerge26.reg2mem %39 = icmp ult i32 %storemerge26.reload, %9 br i1 %39, label LBL_13, label LBL_12 LBL_12: %40 = sext i32 %sv_0.25.reload to i64 %41 = add i64 %10, %40 %42 = inttoptr i64 %41 to i8* store i8 32, i8* %42, align 1 br label LBL_16 LBL_13: %43 = call i16** @__ctype_b_loc() %44 = load i16*, i16** %43, align 8 %45 = ptrtoint i16* %44 to i64 %46 = zext i32 %storemerge26.reload to i64 %47 = add i64 %46, %arg1 %48 = inttoptr i64 %47 to i8* %49 = load i8, i8* %48, align 1 %50 = sext i8 %49 to i64 %51 = mul i64 %50, 2 %52 = add i64 %51, %45 %53 = inttoptr i64 %52 to i16* %54 = load i16, i16* %53, align 2 %55 = and i16 %54, 16384 %56 = icmp eq i16 %55, 0 %57 = sext i32 %sv_0.25.reload to i64 %58 = add i64 %10, %57 %59 = inttoptr i64 %58 to i8* br i1 %56, label LBL_15, label LBL_14 LBL_14: store i8 %49, i8* %59, align 1 br label LBL_16 LBL_15: store i8 46, i8* %59, align 1 br label LBL_16 LBL_16: %sv_0.1 = add i32 %sv_0.25.reload, 1 %60 = add i32 %storemerge26.reload, 1 %61 = zext i32 %60 to i64 %62 = icmp ult i64 %indvars.iv.reload, %61 store i32 %60, i32* %storemerge26.reg2mem store i32 %sv_0.1, i32* %sv_0.25.reg2mem store i32 %sv_0.1, i32* %sv_0.2.lcssa.reg2mem br i1 %62, label LBL_17, label LBL_11 LBL_17: %sv_0.2.lcssa.reload = load i32, i32* %sv_0.2.lcssa.reg2mem %63 = add i32 %sv_0.2.lcssa.reload, 1 %64 = sext i32 %sv_0.2.lcssa.reload to i64 %65 = add i64 %10, %64 %66 = inttoptr i64 %65 to i8* store i8 10, i8* %66, align 1 %67 = sext i32 %63 to i64 %68 = add i64 %10, %67 %69 = inttoptr i64 %68 to i8* store i8 0, i8* %69, align 1 %70 = call i64 @FUNC(i64* nonnull %sv_1) store i32 0, i32* %sv_0.3.reg2mem br label LBL_18 LBL_18: %sv_0.3.reload = load i32, i32* %sv_0.3.reg2mem %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i32 %sv_0.3.reload, i32* %sv_0.47.reg2mem store i64 %wide.trip.count, i64* %.pre-phi.reg2mem br i1 %exitcond, label LBL_19, label LBL_3 LBL_19: %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem ret i64 %.pre-phi.reload uselistorder i32 %sv_0.2.lcssa.reload, { 1, 0 } uselistorder i8* %59, { 1, 0 } uselistorder i32 %sv_0.25.reload, { 0, 2, 1 } uselistorder i32 %storemerge3, { 2, 1, 0 } uselistorder i32 %sv_0.0.reload, { 2, 0, 1 } uselistorder i32 %13, { 1, 0 } uselistorder i32 %12, { 1, 2, 0 } uselistorder i64 %indvars.iv.reload, { 0, 4, 3, 5, 1, 2 } uselistorder i32 %sv_0.47.reload, { 2, 1, 0 } uselistorder i64 %10, { 1, 2, 0, 3 } uselistorder i64 %4, { 1, 0, 2 } uselistorder i64 %1, { 1, 0 } uselistorder i64 %0, { 2, 3, 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.47.reg2mem, { 1, 0, 2 } uselistorder i32* %.pn.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge26.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.25.reg2mem, { 1, 0, 2 } uselistorder i32 (i8*, i8*, ...)* @sprintf, { 2, 1, 0 } uselistorder i64 4294967295, { 1, 2, 0 } uselistorder i32 0, { 0, 3, 1, 2 } uselistorder i64 16, { 1, 0 } uselistorder i32 1, { 10, 13, 9, 12, 11, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder label LBL_11, { 1, 0 } }
1
BinRealVul
disk_seqf_stop_13748
disk_seqf_stop
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = icmp eq i64* %arg1, null br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = call i64 @FUNC(i64 %0) %3 = call i64 @FUNC(i64 %0) store i64 0, i64* %arg1, align 8 br label LBL_2 LBL_2: ret i64 %0 uselistorder i64 %0, { 0, 2, 1 } }
0
BinRealVul
get_native_type_cdr_alignment_12469
get_native_type_cdr_alignment
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %sext = mul i64 %arg2, 4294967296 %0 = ashr exact i64 %sext, 32 store i64 %arg1, i64* @0, align 8 store i64 1, i64* %sv_0.0.reg2mem store i64 1, i64* %sv_0.0.reg2mem store i64 1, i64* %sv_0.0.reg2mem switch i64 %arg1, label LBL_10 [ i64 0, label LBL_11 i64 1, label LBL_11 i64 2, label LBL_11 i64 3, label LBL_1 i64 4, label LBL_2 i64 5, label LBL_3 i64 6, label LBL_3 i64 7, label LBL_4 i64 8, label LBL_5 i64 9, label LBL_6 i64 10, label LBL_7 i64 11, label LBL_8 i64 12, label LBL_9 ] LBL_1: store i64 2, i64* %sv_0.0.reg2mem br label LBL_11 LBL_2: store i64 2, i64* %sv_0.0.reg2mem br label LBL_11 LBL_3: store i64 4, i64* %sv_0.0.reg2mem br label LBL_11 LBL_4: store i64 4, i64* %sv_0.0.reg2mem br label LBL_11 LBL_5: %1 = trunc i64 %0 to i32 %2 = icmp eq i32 %1, 1 %3 = icmp eq i1 %2, false %. = select i1 %3, i64 4, i64 8 store i64 %., i64* %sv_0.0.reg2mem br label LBL_11 LBL_6: %4 = trunc i64 %0 to i32 %5 = icmp eq i32 %4, 1 %6 = icmp eq i1 %5, false %.5 = select i1 %6, i64 4, i64 8 store i64 %.5, i64* %sv_0.0.reg2mem br label LBL_11 LBL_7: store i64 4, i64* %sv_0.0.reg2mem br label LBL_11 LBL_8: %7 = trunc i64 %0 to i32 %8 = icmp eq i32 %7, 1 %9 = icmp eq i1 %8, false %.6 = select i1 %9, i64 4, i64 8 store i64 %.6, i64* %sv_0.0.reg2mem br label LBL_11 LBL_9: %10 = trunc i64 %0 to i32 %11 = icmp eq i32 %10, 1 %12 = icmp eq i1 %11, false %.7 = select i1 %12, i64 4, i64 8 store i64 %.7, i64* %sv_0.0.reg2mem br label LBL_11 LBL_10: store i64 4294967295, i64* %sv_0.0.reg2mem br label LBL_11 LBL_11: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem ret i64 %sv_0.0.reload uselistorder i64 %0, { 3, 2, 1, 0 } uselistorder i64* %sv_0.0.reg2mem, { 0, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 1, 2, 3 } uselistorder i64 8, { 3, 2, 1, 0, 4 } uselistorder i64 4, { 6, 5, 2, 4, 3, 1, 0, 7 } uselistorder i64 2, { 1, 0, 2 } uselistorder i32 1, { 4, 3, 2, 1, 0 } uselistorder i64 %arg1, { 1, 0 } uselistorder label LBL_11, { 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 0, 2 } }
1
BinRealVul
__end_that_request_first_18188
__end_that_request_first
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.26.reg2mem = alloca i32 %sv_1.17.reg2mem = alloca i32 %sv_2.18.reg2mem = alloca i32 %sv_3.09.reg2mem = alloca i32* %sv_4.110.reg2mem = alloca i32 %rdi.3.reg2mem = alloca i64 %sv_2.1.reg2mem = alloca i32 %sv_1.1.reg2mem = alloca i32 %.reg2mem132 = alloca i32* %sv_4.021.reg2mem = alloca i32 %sv_0.134.reg2mem = alloca i32 %storemerge4.reg2mem = alloca i32 %rdi.1.reg2mem = alloca i64 %rcx.0.reg2mem = alloca i64 %sv_5.0.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %rdi.0.reg2mem = alloca i64 %sv_0.138.reg2mem = alloca i32 %sv_1.039.reg2mem = alloca i32 %sv_2.040.reg2mem = alloca i32 %rcx.142.reg2mem = alloca i64 %rdi.243.reg2mem = alloca i64 %sv_4.044.reg2mem = alloca i32 %.reg2mem = alloca i32* %storemerge5.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg1 to i64 %5 = add i64 %4, 16 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = call i64 @FUNC(i64 %7, i64 %4) %9 = call i64 @FUNC(i64 %4) %10 = trunc i64 %9 to i32 %11 = icmp eq i32 %10, 0 %12 = icmp eq i1 %11, false br i1 %12, label LBL_2, label LBL_1 LBL_1: %13 = add i64 %4, 8 %14 = inttoptr i64 %13 to i32* store i32 0, i32* %14, align 4 br label LBL_2 LBL_2: %sext = mul i64 %arg2, 4294967296 %15 = ashr exact i64 %sext, 32 %16 = trunc i64 %15 to i32 %17 = icmp eq i32 %16, 0 br i1 %17, label LBL_8, label LBL_3 LBL_3: %18 = call i64 @FUNC(i64 %4) %19 = trunc i64 %18 to i32 %20 = icmp eq i32 %19, 0 br i1 %20, label LBL_8, label LBL_4 LBL_4: %21 = add i64 %4, 12 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = urem i32 %23, 2 %25 = icmp eq i32 %24, 0 %26 = icmp eq i1 %25, false br i1 %26, label LBL_8, label LBL_5 LBL_5: %27 = add i64 %4, 32 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = add i64 %4, 24 %31 = inttoptr i64 %30 to i64* %32 = load i64, i64* %31, align 8 %33 = icmp eq i64 %32, 0 store i64 ptrtoint (i64* @gv_0 to i64), i64* %storemerge5.reg2mem br i1 %33, label LBL_7, label LBL_6 LBL_6: %34 = inttoptr i64 %32 to i64* %35 = load i64, i64* %34, align 8 store i64 %35, i64* %storemerge5.reg2mem br label LBL_7 LBL_7: %storemerge5.reload = load i64, i64* %storemerge5.reg2mem %36 = call i64 @FUNC(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i64 %storemerge5.reload, i64 %29, i64 %3, i64 %2, i64 %1) br label LBL_8 LBL_8: %37 = zext i32 %arg3 to i64 %38 = call i64 @FUNC(i64 %4, i64 %37) %39 = bitcast i64* %arg1 to i32* %40 = icmp eq i64* %arg1, null %41 = icmp eq i1 %40, false store i32 0, i32* %sv_0.134.reg2mem store i32 %arg3, i32* %sv_4.021.reg2mem store i32* %39, i32** %.reg2mem132 store i32 0, i32* %sv_1.1.reg2mem store i32 0, i32* %sv_2.1.reg2mem store i64 %4, i64* %rdi.3.reg2mem br i1 %41, label LBL_9, label LBL_21 LBL_9: %42 = and i64 %15, 4294967295 store i32* %39, i32** %.reg2mem store i32 %arg3, i32* %sv_4.044.reg2mem store i64 %4, i64* %rdi.243.reg2mem store i32 0, i32* %sv_2.040.reg2mem store i32 0, i32* %sv_1.039.reg2mem store i32 0, i32* %sv_0.138.reg2mem br label LBL_10 LBL_10: %sv_2.040.reload = load i32, i32* %sv_2.040.reg2mem %rdi.243.reload = load i64, i64* %rdi.243.reg2mem %sv_4.044.reload = load i32, i32* %sv_4.044.reg2mem %.reload = load i32*, i32** %.reg2mem %43 = load i32, i32* %.reload, align 4 %44 = zext i32 %43 to i64 %45 = sext i32 %sv_4.044.reload to i64 %46 = icmp slt i64 %45, %44 br i1 %46, label LBL_12, label LBL_11 LBL_11: %47 = add i64 %rdi.243.reload, 16 %48 = inttoptr i64 %47 to i64* %49 = load i64, i64* %48, align 8 store i64 %49, i64* %arg1, align 8 %50 = load i32, i32* %.reload, align 4 %51 = call i64 @FUNC(i64 %4, i64 %rdi.243.reload, i32 %50, i32 %16) store i32 0, i32* %sv_0.0.reg2mem store i32 %50, i32* %sv_5.0.reg2mem store i64 %42, i64* %rcx.0.reg2mem store i64 %4, i64* %rdi.1.reg2mem store i32 0, i32* %storemerge4.reg2mem br label LBL_19 LBL_12: %sv_0.138.reload = load i32, i32* %sv_0.138.reg2mem %sv_1.039.reload = load i32, i32* %sv_1.039.reg2mem %52 = add i64 %rdi.243.reload, 4 %53 = inttoptr i64 %52 to i32* %54 = load i32, i32* %53, align 4 %55 = add i64 %rdi.243.reload, 8 %56 = inttoptr i64 %55 to i32* %57 = load i32, i32* %56, align 4 %58 = sub i32 %54, %57 %59 = xor i32 %57, %54 %60 = xor i32 %58, %54 %61 = and i32 %60, %59 %62 = icmp slt i32 %61, 0 %63 = icmp slt i32 %58, 0 %64 = icmp eq i1 %63, %62 %65 = icmp eq i1 %64, false br i1 %65, label LBL_14, label LBL_13 LBL_13: %66 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0)) %67 = load i32, i32* %56, align 4 %68 = load i32, i32* %53, align 4 %69 = zext i32 %67 to i64 %70 = zext i32 %68 to i64 %71 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_3, i64 0, i64 0), i64 ptrtoint ([25 x i8]* @gv_4 to i64), i64 %70, i64 %69, i64 %2, i64 %1) store i32 %sv_4.044.reload, i32* %sv_4.110.reg2mem store i32* %.reload, i32** %sv_3.09.reg2mem store i32 %sv_2.040.reload, i32* %sv_2.18.reg2mem store i32 %sv_1.039.reload, i32* %sv_1.17.reg2mem store i32 %sv_0.138.reload, i32* %sv_0.26.reg2mem br label LBL_22 LBL_14: %rcx.142.reload = load i64, i64* %rcx.142.reg2mem %72 = add i32 %54, %sv_0.138.reload %73 = zext i32 %72 to i64 %74 = call i64 @FUNC(i64 %rdi.243.reload, i64 %73) %75 = inttoptr i64 %74 to i32* %76 = load i32, i32* %75, align 4 %77 = load i32, i32* %.reload, align 4 %78 = zext i32 %77 to i64 %79 = sext i32 %76 to i64 %80 = icmp sgt i64 %79, %78 store i64 %rdi.243.reload, i64* %rdi.0.reg2mem br i1 %80, label LBL_15, label LBL_16 LBL_15: %81 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_5, i64 0, i64 0), i64 %73, i64 %73, i64 %rcx.142.reload, i64 %2, i64 %1) store i64 ptrtoint ([25 x i8]* @gv_5 to i64), i64* %rdi.0.reg2mem br label LBL_16 LBL_16: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %82 = sub i32 %76, %sv_4.044.reload %83 = xor i32 %76, %sv_4.044.reload %84 = xor i32 %82, %76 %85 = and i32 %84, %83 %86 = icmp slt i32 %85, 0 %87 = icmp eq i32 %82, 0 %88 = icmp slt i32 %82, 0 %89 = icmp eq i1 %88, %86 %90 = icmp eq i1 %87, false %91 = icmp eq i1 %89, %90 %92 = icmp eq i1 %91, false br i1 %92, label LBL_18, label LBL_17 LBL_17: %93 = add i32 %sv_1.039.reload, %sv_4.044.reload %94 = add i32 %sv_2.040.reload, %sv_4.044.reload store i32 %sv_0.138.reload, i32* %sv_0.134.reg2mem store i32 %sv_4.044.reload, i32* %sv_4.021.reg2mem store i32* %.reload, i32** %.reg2mem132 store i32 %93, i32* %sv_1.1.reg2mem store i32 %94, i32* %sv_2.1.reg2mem store i64 %rdi.0.reload, i64* %rdi.3.reg2mem br label LBL_21 LBL_18: %95 = add i32 %sv_0.138.reload, 1 %96 = add i32 %76, %sv_1.039.reload store i32 %95, i32* %sv_0.0.reg2mem store i32 %76, i32* %sv_5.0.reg2mem store i64 %rcx.142.reload, i64* %rcx.0.reg2mem store i64 %rdi.0.reload, i64* %rdi.1.reg2mem store i32 %96, i32* %storemerge4.reg2mem br label LBL_19 LBL_19: %rdi.1.reload = load i64, i64* %rdi.1.reg2mem %97 = icmp eq i64 %rdi.1.reload, 0 store i64 0, i64* %storemerge.reg2mem br i1 %97, label LBL_25, label LBL_20 LBL_20: %storemerge4.reload = load i32, i32* %storemerge4.reg2mem %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %sv_5.0.reload = load i32, i32* %sv_5.0.reg2mem %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %98 = add i32 %sv_5.0.reload, %sv_2.040.reload %99 = sub i32 %sv_4.044.reload, %sv_5.0.reload %100 = icmp slt i32 %99, 1 %101 = icmp eq i1 %100, false %102 = icmp eq i1 %101, false %103 = inttoptr i64 %rdi.1.reload to i32* store i32* %103, i32** %.reg2mem store i32 %99, i32* %sv_4.044.reg2mem store i64 %rdi.1.reload, i64* %rdi.243.reg2mem store i64 %rcx.0.reload, i64* %rcx.142.reg2mem store i32 %98, i32* %sv_2.040.reg2mem store i32 %storemerge4.reload, i32* %sv_1.039.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.138.reg2mem store i32 %99, i32* %sv_4.110.reg2mem store i32* %103, i32** %sv_3.09.reg2mem store i32 %98, i32* %sv_2.18.reg2mem store i32 %storemerge4.reload, i32* %sv_1.17.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.26.reg2mem br i1 %102, label LBL_22, label LBL_10 LBL_21: %rdi.3.reload = load i64, i64* %rdi.3.reg2mem %sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem %sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem %.reload133 = load i32*, i32** %.reg2mem132 %sv_4.021.reload = load i32, i32* %sv_4.021.reg2mem %sv_0.134.reload = load i32, i32* %sv_0.134.reg2mem %104 = icmp eq i64 %rdi.3.reload, 0 %105 = icmp eq i1 %104, false store i32 %sv_4.021.reload, i32* %sv_4.110.reg2mem store i32* %.reload133, i32** %sv_3.09.reg2mem store i32 %sv_2.1.reload, i32* %sv_2.18.reg2mem store i32 %sv_1.1.reload, i32* %sv_1.17.reg2mem store i32 %sv_0.134.reload, i32* %sv_0.26.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %105, label LBL_22, label LBL_25 LBL_22: %sv_1.17.reload = load i32, i32* %sv_1.17.reg2mem %sv_2.18.reload = load i32, i32* %sv_2.18.reg2mem %106 = icmp eq i32 %sv_1.17.reload, 0 br i1 %106, label LBL_24, label LBL_23 LBL_23: %sv_0.26.reload = load i32, i32* %sv_0.26.reg2mem %sv_3.09.reload = load i32*, i32** %sv_3.09.reg2mem %sv_4.110.reload = load i32, i32* %sv_4.110.reg2mem %107 = ptrtoint i32* %sv_3.09.reload to i64 %108 = call i64 @FUNC(i64 %4, i64 %107, i32 %sv_1.17.reload, i32 %16) %109 = add i64 %107, 4 %110 = inttoptr i64 %109 to i32* %111 = load i32, i32* %110, align 4 %112 = add i32 %111, %sv_0.26.reload store i32 %112, i32* %110, align 4 %113 = call i64 @FUNC(i64 %107) %114 = add i64 %113, 4 %115 = inttoptr i64 %114 to i32* %116 = load i32, i32* %115, align 4 %117 = add i32 %116, %sv_4.110.reload store i32 %117, i32* %115, align 4 %118 = call i64 @FUNC(i64 %107) %119 = inttoptr i64 %118 to i32* %120 = load i32, i32* %119, align 4 %121 = sub i32 %120, %sv_4.110.reload store i32 %121, i32* %119, align 4 br label LBL_24 LBL_24: %122 = ashr i32 %sv_2.18.reload, 9 %123 = zext i32 %122 to i64 %124 = call i64 @FUNC(i64 %4, i64 %123) %125 = call i64 @FUNC(i64 %4) store i64 1, i64* %storemerge.reg2mem br label LBL_25 LBL_25: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %rdi.1.reload, { 2, 1, 0 } uselistorder i32 %82, { 1, 2, 0 } uselistorder i64 %rdi.0.reload, { 1, 0 } uselistorder i32 %58, { 1, 0 } uselistorder i32 %sv_1.039.reload, { 1, 2, 0 } uselistorder i32 %sv_0.138.reload, { 2, 1, 3, 0 } uselistorder i32* %.reload, { 1, 3, 0, 2, 4 } uselistorder i32 %sv_4.044.reload, { 4, 1, 7, 6, 5, 2, 0, 3 } uselistorder i32 %sv_2.040.reload, { 1, 2, 0 } uselistorder i32* %39, { 1, 0 } uselistorder i64 %4, { 12, 11, 10, 9, 1, 8, 2, 0, 13, 5, 6, 4, 7, 3, 14, 15, 16 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i64* %storemerge5.reg2mem, { 0, 2, 1 } uselistorder i32** %.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_4.044.reg2mem, { 1, 0, 2 } uselistorder i64* %rdi.243.reg2mem, { 1, 0, 2 } uselistorder i64* %rcx.142.reg2mem, { 1, 0 } uselistorder i32* %sv_2.040.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.039.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.138.reg2mem, { 1, 0, 2 } uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_5.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rdi.1.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge4.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.134.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_4.021.reg2mem, { 0, 2, 1 } uselistorder i32** %.reg2mem132, { 0, 2, 1 } uselistorder i32* %sv_1.1.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_2.1.reg2mem, { 0, 2, 1 } uselistorder i64* %rdi.3.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_4.110.reg2mem, { 0, 3, 1, 2 } uselistorder i32** %sv_3.09.reg2mem, { 0, 3, 1, 2 } uselistorder i32* %sv_2.18.reg2mem, { 0, 3, 1, 2 } uselistorder i32* %sv_1.17.reg2mem, { 0, 3, 1, 2 } uselistorder i32* %sv_0.26.reg2mem, { 0, 3, 1, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64)* @bio_iovec, { 1, 0 } uselistorder [25 x i8]* @gv_5, { 1, 0 } uselistorder i64 (i64, i64, i32, i32)* @req_bio_endio, { 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @printk, { 2, 1, 0 } uselistorder i64 32, { 1, 0 } uselistorder i1 false, { 4, 5, 3, 1, 6, 2, 0, 7, 8 } uselistorder i32 0, { 8, 9, 10, 11, 12, 13, 3, 4, 5, 6, 7, 0, 1, 2, 14, 15, 16, 17, 18 } uselistorder i32 %arg3, { 1, 0, 2 } uselistorder i64* %arg1, { 2, 0, 1, 3 } uselistorder label LBL_25, { 2, 1, 0 } uselistorder label LBL_22, { 2, 0, 1 } uselistorder label LBL_21, { 1, 0 } uselistorder label LBL_16, { 1, 0 } uselistorder label LBL_7, { 1, 0 } }
1
BinRealVul
open_self_cmdline_2417
open_self_cmdline
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.ph.reg2mem = alloca i32 %sv_0.14.reg2mem = alloca i32 %sv_1.05.reg2mem = alloca i64 %sv_2.06.reg2mem = alloca i32 %sv_1.0.in.reg2mem = alloca i64* %sv_3 = alloca i64, align 8 %0 = call i32 (i8*, i32, ...) @open(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i32 0) %1 = icmp slt i32 %0, 0 %2 = icmp eq i1 %1, false br i1 %2, label LBL_1, label LBL_2 LBL_1: %3 = ptrtoint i64* %sv_3 to i64 %4 = trunc i64 %arg2 to i32 store i32 0, i32* %sv_0.0.ph.reg2mem br label LBL_3.outer LBL_2: %5 = zext i32 %0 to i64 store i64 %5, i64* %rax.0.reg2mem br label LBL_15 LBL_3: %6 = call i32 @read(i32 %0, i64* nonnull %sv_3, i32 128) %7 = icmp slt i32 %6, 0 %8 = icmp eq i1 %7, false br i1 %8, label LBL_5, label LBL_4 LBL_4: %9 = call i32 @close(i32 %0) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_15 LBL_5: %10 = icmp eq i32 %6, 0 %11 = icmp eq i1 %10, false br i1 %11, label LBL_7, label LBL_6 LBL_6: %12 = call i32 @close(i32 %0) %13 = sext i32 %12 to i64 store i64 %13, i64* %rax.0.reg2mem br label LBL_15 LBL_7: store i64* %sv_3, i64** %sv_1.0.in.reg2mem br i1 %25, label LBL_10, label LBL_8 LBL_8: %14 = call i64* @memchr(i64* nonnull %sv_3, i32 0, i32 128) %15 = icmp eq i64* %14, null store i64* null, i64** %sv_1.0.in.reg2mem br i1 %15, label LBL_10, label LBL_9 LBL_9: %16 = ptrtoint i64* %14 to i64 %17 = add i64 %16, 1 %18 = sub i64 %3, %17 %19 = trunc i64 %18 to i32 %20 = add i32 %6, %19 store i32 %20, i32* %sv_2.06.reg2mem store i64 %17, i64* %sv_1.05.reg2mem store i32 1, i32* %sv_0.14.reg2mem br label LBL_12 LBL_10: br i1 %26, label LBL_3, label LBL_11 LBL_11: %sv_1.0.in.reload = load i64*, i64** %sv_1.0.in.reg2mem %sv_1.0 = ptrtoint i64* %sv_1.0.in.reload to i64 store i32 %6, i32* %sv_2.06.reg2mem store i64 %sv_1.0, i64* %sv_1.05.reg2mem store i32 %sv_0.0.ph.reload, i32* %sv_0.14.reg2mem br label LBL_12 LBL_12: %sv_0.14.reload = load i32, i32* %sv_0.14.reg2mem %sv_1.05.reload = load i64, i64* %sv_1.05.reg2mem %sv_2.06.reload = load i32, i32* %sv_2.06.reg2mem %21 = inttoptr i64 %sv_1.05.reload to i64* %22 = call i32 @write(i32 %4, i64* %21, i32 %sv_2.06.reload) %23 = icmp eq i32 %sv_2.06.reload, %22 store i32 %sv_0.14.reload, i32* %sv_0.0.ph.reg2mem br i1 %23, label LBL_3.outer, label LBL_14 LBL_13: %sv_0.0.ph.reload = load i32, i32* %sv_0.0.ph.reg2mem %24 = trunc i32 %sv_0.0.ph.reload to i8 %25 = icmp eq i8 %24, 1 %26 = icmp eq i8 %24, 0 br label LBL_3 LBL_14: %27 = call i32 @close(i32 %0) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_15 LBL_15: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %0, { 2, 1, 0, 3, 4, 5 } uselistorder i64* %sv_3, { 2, 0, 3, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64 4294967295, { 1, 0 } uselistorder i32 (i32)* @close, { 2, 1, 0 } uselistorder label LBL_3.outer, { 1, 0 } }
0
BinRealVul
pgp_finish_4877
pgp_finish
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = icmp eq i64* %arg1, null %1 = icmp eq i1 %0, false br i1 %1, label LBL_1, label LBL_2 LBL_1: %2 = ptrtoint i64* %arg1 to i64 %3 = call i64 @FUNC(i64 %2, i64 99, i64 4198710) call void @free(i64* %arg1) store i64 0, i64* %arg1, align 8 br label LBL_2 LBL_2: ret i64 0 uselistorder i64* %arg1, { 0, 1, 3, 2 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
uv_rwlock_trywrlock_7143
uv_rwlock_trywrlock
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = call i32 @pthread_rwlock_trywrlock(i64* %arg1) store i64 0, i64* %storemerge.reg2mem switch i32 %0, label LBL_1 [ i32 0, label LBL_3 i32 16, label LBL_2 i32 11, label LBL_2 ] LBL_1: call void @abort() unreachable LBL_2: store i64 4294967295, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
qemu_fopen_rdma_16954
qemu_fopen_rdma
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %rsi = alloca i64, align 8 %0 = call i64 @FUNC(i64 16) %1 = call i64 @FUNC(i64 %arg2) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 store i64 0, i64* %storemerge.reg2mem br i1 %3, label LBL_1, label LBL_4 LBL_1: %4 = ptrtoint i64* %arg1 to i64 %5 = inttoptr i64 %0 to i64* store i64 %4, i64* %5, align 8 %6 = bitcast i64* %rsi to i8* %7 = load i8, i8* %6, align 8 %8 = icmp eq i8 %7, 119 %9 = icmp eq i1 %8, false br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = call i64 @FUNC(i64 %0, i64* nonnull @gv_0) %11 = add i64 %0, 8 %12 = inttoptr i64 %11 to i64* store i64 %10, i64* %12, align 8 store i64 %10, i64* %storemerge.reg2mem br label LBL_4 LBL_3: %13 = call i64 @FUNC(i64 %0, i64* nonnull @gv_1) %14 = add i64 %0, 8 %15 = inttoptr i64 %14 to i64* store i64 %13, i64* %15, align 8 store i64 %13, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %0, { 1, 0, 2, 3, 4 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 } uselistorder i64 (i64, i64*)* @qemu_fopen_ops, { 1, 0 } uselistorder i32 0, { 1, 0 } uselistorder label LBL_4, { 1, 0, 2 } }
1
BinRealVul
shut_19218
shut
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %sv_0.07.reg2mem = alloca i32 %.reg2mem = alloca i8* %sv_1 = alloca i32, align 4 %sv_2 = alloca i64, align 8 %sv_3 = alloca i8*, align 8 %0 = call i64 @FUNC() %1 = call i64 @FUNC() %2 = and i64 %arg1, 4294967295 %3 = call i64 @FUNC(i64 %2) %4 = call i64 @FUNC() %5 = icmp eq i64 %3, 0 br i1 %5, label LBL_4, label LBL_1 LBL_1: %6 = inttoptr i64 %3 to i8* %7 = call i32 @strcmp(i8* %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0)) %8 = icmp eq i32 %7, 0 br i1 %8, label LBL_3, label LBL_2 LBL_2: %9 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %10 = call i32 @fwrite(i64* bitcast ([39 x i8]* @gv_2 to i64*), i32 1, i32 38, %_IO_FILE* %9) call void @exit(i32 1) unreachable LBL_3: %sext = mul i64 %arg1, 4294967296 %11 = ashr exact i64 %sext, 32 %12 = inttoptr i64 %3 to i64* call void @free(i64* %12) %13 = call i32 @getuid() %14 = icmp eq i32 %13, 0 %.pre = and i64 %11, 4294967295 br i1 %14, label LBL_7, label LBL_5 LBL_4: %15 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_3, i64 0, i64 0)) unreachable LBL_5: %16 = call i64 @FUNC(i64 %.pre) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %13, %17 br i1 %18, label LBL_7, label LBL_6 LBL_6: %19 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %20 = call i32 @fwrite(i64* bitcast ([80 x i8]* @gv_4 to i64*), i32 1, i32 79, %_IO_FILE* %19) call void @exit(i32 1) unreachable LBL_7: %21 = trunc i64 %11 to i32 %22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_5, i64 0, i64 0), i32 %21) %23 = call i32 @kill(i32 %21, i32 15) %24 = call i32 @sleep(i32 2) %25 = call i32 (i8**, i8*, ...) @asprintf(i8** nonnull %sv_3, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_6, i64 0, i64 0), i64 %.pre) %26 = icmp eq i32 %25, -1 %27 = icmp eq i1 %26, false br i1 %27, label LBL_8, label LBL_9 LBL_8: %28 = load i8*, i8** %sv_3, align 8 store i8* %28, i8** %.reg2mem store i32 8, i32* %sv_0.07.reg2mem br label LBL_10 LBL_9: %29 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_7, i64 0, i64 0)) unreachable LBL_10: %.reload = load i8*, i8** %.reg2mem %30 = call %_IO_FILE* @fopen(i8* %.reload, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_8, i64 0, i64 0)) %31 = icmp eq %_IO_FILE* %30, null %32 = icmp eq i1 %31, false br i1 %32, label LBL_11, label LBL_13 LBL_11: %33 = call i32 @fread(i64* nonnull %sv_2, i32 1, i32 1, %_IO_FILE* %30) %34 = call i32 @fclose(%_IO_FILE* %30) %35 = icmp eq i32 %33, 0 %36 = icmp eq i1 %35, false br i1 %36, label LBL_12, label LBL_13 LBL_12: %sv_0.07.reload = load i32, i32* %sv_0.07.reg2mem %37 = call i32 @sleep(i32 1) %38 = add nsw i32 %sv_0.07.reload, -1 %39 = icmp eq i32 %38, 0 %40 = icmp eq i1 %39, false %41 = load i8*, i8** %sv_3, align 8 store i8* %41, i8** %.reg2mem store i32 %38, i32* %sv_0.07.reg2mem br i1 %40, label LBL_10, label LBL_14 LBL_13: %42 = load i8*, i8** %sv_3, align 8 %43 = bitcast i8* %42 to i64* call void @free(i64* %43) br label LBL_17 LBL_14: %44 = bitcast i8* %41 to i64* call void @free(i64* %44) %45 = bitcast i32* %sv_1 to i64* %46 = call i64 @FUNC(i64 %.pre, i64* nonnull %45) %47 = trunc i64 %46 to i32 %48 = icmp eq i32 %47, 0 %49 = icmp eq i1 %48, false br i1 %49, label LBL_16, label LBL_15 LBL_15: %50 = load i32, i32* %sv_1, align 4 %51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_9, i64 0, i64 0), i32 %50) %52 = load i32, i32* %sv_1, align 4 %53 = call i32 @kill(i32 %52, i32 9) br label LBL_16 LBL_16: %54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_9, i64 0, i64 0), i32 %21) %55 = call i32 @kill(i32 %21, i32 9) br label LBL_17 LBL_17: %56 = call i64 @FUNC() %57 = call i64 @FUNC(i64 %.pre) ret i64 %57 uselistorder i8* %41, { 1, 0 } uselistorder %_IO_FILE* %30, { 1, 0, 2 } uselistorder i32 %21, { 1, 0, 2, 3 } uselistorder i64 %.pre, { 1, 0, 2, 3 } uselistorder i64 %11, { 1, 0 } uselistorder i8** %sv_3, { 2, 1, 0, 3 } uselistorder i32* %sv_1, { 1, 0, 2 } uselistorder i8** %.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.07.reg2mem, { 1, 0, 2 } uselistorder i32 (%_IO_FILE*)* @fclose, { 4, 3, 2, 1, 0 } uselistorder %_IO_FILE* (i8*, i8*)* @fopen, { 2, 3, 1, 0 } uselistorder i1 false, { 2, 3, 0, 1, 4, 5, 6, 7, 8, 9, 10 } uselistorder i32 (i32)* @sleep, { 1, 0 } uselistorder i32 (i32, i32)* @kill, { 0, 2, 1 } uselistorder i32 (i8*, ...)* @printf, { 2, 1, 0 } uselistorder i64 (i8*)* @errExit, { 1, 0 } uselistorder void (i64*)* @free, { 0, 3, 2, 1 } uselistorder void (i32)* @exit, { 2, 1, 0 } uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 } uselistorder i32 0, { 1, 2, 0, 3, 4 } uselistorder i64 4294967295, { 2, 4, 3, 0, 5, 1, 6, 7 } uselistorder i64 ()* @EUID_ROOT, { 1, 0 } uselistorder label LBL_17, { 1, 0 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_7, { 1, 0 } }
1
BinRealVul
virtio_pci_load_config_14858
virtio_pci_load_config
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %rdi = alloca i64, align 8 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = call i64 @FUNC(i64 %1, i64 %0) %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, 0 br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = and i64 %2, 4294967295 store i64 %5, i64* %rax.0.reg2mem br label LBL_10 LBL_2: %6 = call i64 @FUNC(i64 %1, i64 %0) %7 = call i64 @FUNC(i64 %1) %8 = trunc i64 %7 to i32 %9 = icmp eq i32 %8, 0 %10 = add i64 %1, 64 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 br i1 %9, label LBL_4, label LBL_3 LBL_3: %13 = call i64 @FUNC(i64 %0, i64 %12) br label LBL_5 LBL_4: %14 = inttoptr i64 %12 to i16* store i16 0, i16* %14, align 2 br label LBL_5 LBL_5: %15 = load i64, i64* %11, align 8 %16 = inttoptr i64 %15 to i16* %17 = load i16, i16* %16, align 2 %18 = icmp eq i16 %17, 0 br i1 %18, label LBL_7, label LBL_6 LBL_6: %19 = zext i16 %17 to i64 %20 = call i64 @FUNC(i64 %1, i64 %19) store i64 %20, i64* %rax.0.reg2mem br label LBL_10 LBL_7: %21 = add i64 %15, 2 %22 = inttoptr i64 %21 to i8* %23 = load i8, i8* %22, align 1 %24 = urem i8 %23, 2 %25 = icmp eq i8 %24, 0 %26 = icmp eq i1 %25, false store i64 0, i64* %rax.0.reg2mem br i1 %26, label LBL_10, label LBL_8 LBL_8: %27 = bitcast i64* %rdi to i8* %28 = load i8, i8* %27, align 8 %29 = and i8 %28, 4 %30 = icmp eq i8 %29, 0 %31 = icmp eq i1 %30, false store i64 0, i64* %rax.0.reg2mem br i1 %31, label LBL_10, label LBL_9 LBL_9: %32 = add i64 %1, 72 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = or i32 %34, 1 store i32 %35, i32* %33, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_10 LBL_10: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %12, { 1, 0 } uselistorder i64 %1, { 1, 0, 2, 4, 3, 5 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 5, 4 } uselistorder label LBL_10, { 2, 1, 0, 3, 4 } }
1
BinRealVul
d_instantiate_10133
d_instantiate
define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i32* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = zext i1 %3 to i64 %5 = call i64 @FUNC(i64 %4) %6 = icmp eq i32* %arg2, null store i64 %5, i64* %rax.0.reg2mem br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = ptrtoint i32* %arg2 to i64 %8 = call i64 @FUNC(i64 %0, i64 %7) %9 = call i64 @FUNC(i64 %7) %10 = call i64 @FUNC(i64 %0, i64 %7) %11 = call i64 @FUNC(i64 %7) store i64 %11, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %7, { 1, 0, 2, 3 } uselistorder i32* %arg2, { 1, 0 } }
0
BinRealVul
vnc_disconnect_finish_16159
vnc_disconnect_finish
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = call i64 @FUNC(i64 %arg1) %3 = call i64 @FUNC(i64 %arg1) %4 = call i64 @FUNC(i64 %arg1, i64 1) %5 = add i64 %arg1, 8 %6 = call i64 @FUNC(i64 %5) %7 = add i64 %arg1, 16 %8 = call i64 @FUNC(i64 %7) %9 = add i64 %arg1, 24 %10 = call i64 @FUNC(i64 %9) %11 = add i64 %arg1, 32 %12 = call i64 @FUNC(i64 %11) %13 = add i64 %arg1, 40 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = call i64 @FUNC(i64 %15) %17 = call i64 @FUNC(i64 %arg1) %18 = call i64 @FUNC(i64 %arg1) %19 = call i64 @FUNC(i64 %arg1) %20 = call i64 @FUNC(i64 %arg1) %21 = call i64 @FUNC(i64 %arg1) %22 = call i64 @FUNC(i64 %arg1) %23 = call i64 @FUNC(i64 %arg1) %24 = trunc i64 %1 to i32 %25 = icmp eq i32 %24, 0 br i1 %25, label LBL_2, label LBL_1 LBL_1: %26 = add i64 %arg1, 80 %27 = call i64 @FUNC(i64 %26) br label LBL_2 LBL_2: %28 = add i64 %arg1, 48 %29 = inttoptr i64 %28 to i64* %30 = load i64, i64* %29, align 8 %31 = add i64 %30, 8 %32 = inttoptr i64 %31 to i32* %33 = load i32, i32* %32, align 4 %34 = icmp eq i32 %33, 0 br i1 %34, label LBL_4, label LBL_3 LBL_3: %35 = add i64 %arg1, 88 %36 = inttoptr i64 %35 to i64* %37 = load i64, i64* %36, align 8 %38 = call i64 @FUNC(i64 %37) br label LBL_4 LBL_4: %39 = call i64 @FUNC(i64 %arg1) %40 = add i64 %arg1, 96 %41 = call i64 @FUNC(i64 %40) %42 = add i64 %arg1, 56 %43 = inttoptr i64 %42 to i64* %44 = load i64, i64* %43, align 8 %45 = icmp eq i64 %44, 0 br i1 %45, label LBL_6, label LBL_5 LBL_5: %46 = call i64 @FUNC(i64 %44) br label LBL_6 LBL_6: %47 = add i64 %arg1, 64 %48 = call i64 @FUNC(i64 %47) %49 = add i64 %arg1, 72 %50 = inttoptr i64 %49 to i64* %51 = load i64, i64* %50, align 8 store i64 0, i64* %indvars.iv.reg2mem store i64 %51, i64* %.reg2mem br label LBL_7 LBL_7: %.reload = load i64, i64* %.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %52 = mul i64 %indvars.iv.reload, 8 %53 = add i64 %52, %.reload %54 = inttoptr i64 %53 to i64* %55 = load i64, i64* %54, align 8 %56 = call i64 @FUNC(i64 %55) %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %57 = load i64, i64* %50, align 8 %exitcond = icmp eq i64 %indvars.iv.next, 10 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 %57, i64* %.reg2mem br i1 %exitcond, label LBL_8, label LBL_7 LBL_8: %58 = call i64 @FUNC(i64 %57) %59 = call i64 @FUNC(i64 %arg1) ret i64 %59 uselistorder i64 %57, { 1, 0 } uselistorder i64* %50, { 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i64 (i64)* @g_free, { 1, 0, 2 } uselistorder i64 (i64)* @buffer_free, { 4, 3, 2, 1, 0 } uselistorder i64 %arg1, { 2, 1, 3, 6, 5, 4, 8, 7, 0, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 } }
1
BinRealVul
hls_write_header_17000
hls_write_header
define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.in.reg2mem = alloca i32 %sv_0.04.reg2mem = alloca i32 %.pre-phi10.reg2mem = alloca i64* %.lcssa.reg2mem = alloca i32 %rcx.0.lcssa.reg2mem = alloca i64 %storemerge35.reg2mem = alloca i32 %.reg2mem15 = alloca i64 %.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %rdi = alloca i64, align 8 %3 = ptrtoint i32* %arg1 to i64 %4 = add i64 %3, 24 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = add i64 %3, 16 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = inttoptr i64 %9 to i8* %11 = call i32 @strlen(i8* %10) %12 = call i32 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0)) %13 = inttoptr i64 %6 to i32* store i32 0, i32* %13, align 4 %14 = add i64 %6, 40 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = mul i32 %16, 1000000 %18 = add i64 %6, 4 %19 = inttoptr i64 %18 to i32* store i32 %17, i32* %19, align 4 %20 = add i64 %6, 8 %21 = inttoptr i64 %20 to i32* store i32 -1, i32* %21, align 4 %22 = bitcast i64* %rdi to i32* %23 = load i32, i32* %22, align 8 %24 = icmp eq i32 %23, 0 %25 = add i64 %6, 12 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 store i32 %27, i32* %.lcssa.reg2mem br i1 %24, label LBL_3, label LBL_1 LBL_1: %28 = add i64 %3, 8 %29 = inttoptr i64 %28 to i64* store i32 %27, i32* %.reg2mem store i64 0, i64* %.reg2mem15 store i32 0, i32* %storemerge35.reg2mem br label LBL_2 LBL_2: %storemerge35.reload = load i32, i32* %storemerge35.reg2mem %.reload16 = load i64, i64* %.reg2mem15 %.reload = load i32, i32* %.reg2mem %30 = load i64, i64* %29, align 8 %31 = mul i64 %.reload16, 8 %32 = add i64 %30, %31 %33 = inttoptr i64 %32 to i64* %34 = load i64, i64* %33, align 8 %35 = inttoptr i64 %34 to i64* %36 = load i64, i64* %35, align 8 %37 = inttoptr i64 %36 to i32* %38 = load i32, i32* %37, align 4 %39 = icmp eq i32 %38, 0 %40 = zext i1 %39 to i32 %41 = add i32 %.reload, %40 store i32 %41, i32* %26, align 4 %42 = add i32 %storemerge35.reload, 1 %43 = load i32, i32* %22, align 8 %44 = zext i32 %43 to i64 %45 = sext i32 %42 to i64 %46 = icmp slt i64 %45, %44 store i32 %41, i32* %.reg2mem store i64 %45, i64* %.reg2mem15 store i32 %42, i32* %storemerge35.reg2mem store i64 %30, i64* %rcx.0.lcssa.reg2mem store i32 %41, i32* %.lcssa.reg2mem br i1 %46, label LBL_2, label LBL_3 LBL_3: %.lcssa.reload = load i32, i32* %.lcssa.reg2mem %47 = icmp slt i32 %.lcssa.reload, 2 br i1 %47, label LBL_5, label LBL_4 LBL_4: %rcx.0.lcssa.reload = load i64, i64* %rcx.0.lcssa.reg2mem %48 = call i64 @FUNC(i64 %3, i64 1, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @gv_1, i64 0, i64 0), i64 %rcx.0.lcssa.reload, i64 %2, i64 %1) br label LBL_5 LBL_5: %49 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i64 0, i64 0) %50 = add i64 %6, 16 %51 = inttoptr i64 %50 to i64* store i64 %49, i64* %51, align 8 %52 = icmp eq i64 %49, 0 %53 = icmp eq i1 %52, false br i1 %53, label LBL_7, label LBL_5.LBL_14_crit_edge LBL_6: %.pre = add i64 %6, 24 %.pre9 = inttoptr i64 %.pre to i64* store i64* %.pre9, i64** %.pre-phi10.reg2mem store i32 -1, i32* %sv_0.04.reg2mem br label LBL_14 LBL_7: %54 = add i32 %12, %11 %55 = sext i32 %54 to i64 %56 = call i64 @FUNC(i64 %55) %57 = add i64 %6, 24 %58 = inttoptr i64 %57 to i64* store i64 %56, i64* %58, align 8 %59 = icmp eq i64 %56, 0 %60 = icmp eq i1 %59, false store i64* %58, i64** %.pre-phi10.reg2mem store i32 -12, i32* %sv_0.04.reg2mem br i1 %60, label LBL_8, label LBL_14 LBL_8: %61 = load i64, i64* %8, align 8 %62 = inttoptr i64 %56 to i8* %63 = inttoptr i64 %61 to i8* %64 = call i8* @strcpy(i8* %62, i8* %63) %65 = load i64, i64* %58, align 8 %66 = inttoptr i64 %65 to i8* %67 = call i8* @strrchr(i8* %66, i32 46) %68 = icmp eq i8* %67, null br i1 %68, label LBL_10, label LBL_9 LBL_9: store i8 0, i8* %67, align 1 br label LBL_10 LBL_10: %69 = load i64, i64* %58, align 8 %70 = call i64 @FUNC(i64 %69, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i64 %55) %71 = call i64 @FUNC(i64 %3) %72 = trunc i64 %71 to i32 %73 = icmp slt i32 %72, 0 store i64* %58, i64** %.pre-phi10.reg2mem store i32 %72, i32* %sv_0.04.reg2mem br i1 %73, label LBL_14, label LBL_11 LBL_11: %74 = call i64 @FUNC(i64 %3) %75 = trunc i64 %74 to i32 %76 = icmp slt i32 %75, 0 store i64* %58, i64** %.pre-phi10.reg2mem store i32 %75, i32* %sv_0.04.reg2mem br i1 %76, label LBL_14, label LBL_12 LBL_12: %77 = add i64 %6, 32 %78 = inttoptr i64 %77 to i64* %79 = load i64, i64* %78, align 8 %80 = call i64 @FUNC(i64 %79, i64 0) %81 = trunc i64 %80 to i32 %82 = icmp slt i32 %81, 0 %83 = icmp eq i1 %82, false store i32 %81, i32* %storemerge.in.reg2mem br i1 %83, label LBL_13, label LBL_16 LBL_13: %84 = icmp eq i32 %81, 0 store i64* %58, i64** %.pre-phi10.reg2mem store i32 %81, i32* %sv_0.04.reg2mem store i32 0, i32* %storemerge.in.reg2mem br i1 %84, label LBL_16, label LBL_14 LBL_14: %sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem %.pre-phi10.reload = load i64*, i64** %.pre-phi10.reg2mem %85 = load i64, i64* %.pre-phi10.reload, align 8 %86 = call i64 @FUNC(i64 %85) %87 = add i64 %6, 32 %88 = inttoptr i64 %87 to i64* %89 = load i64, i64* %88, align 8 %90 = icmp eq i64 %89, 0 store i32 %sv_0.04.reload, i32* %storemerge.in.reg2mem br i1 %90, label LBL_16, label LBL_15 LBL_15: %91 = call i64 @FUNC(i64 %89) store i32 %sv_0.04.reload, i32* %storemerge.in.reg2mem br label LBL_16 LBL_16: %storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem %storemerge = zext i32 %storemerge.in.reload to i64 ret i64 %storemerge uselistorder i32 %sv_0.04.reload, { 1, 0 } uselistorder i32 %81, { 1, 2, 0, 3 } uselistorder i64* %58, { 0, 2, 1, 4, 5, 3, 6 } uselistorder i64 %56, { 1, 0, 2 } uselistorder i32 %27, { 1, 0 } uselistorder i32* %26, { 1, 0 } uselistorder i32* %22, { 1, 0 } uselistorder i64 %6, { 2, 1, 3, 0, 4, 5, 6, 7, 8, 9 } uselistorder i64 %3, { 1, 2, 0, 3, 4, 5 } uselistorder i32* %.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem15, { 1, 0, 2 } uselistorder i32* %storemerge35.reg2mem, { 1, 0, 2 } uselistorder i64** %.pre-phi10.reg2mem, { 0, 1, 3, 2, 4, 5 } uselistorder i32* %sv_0.04.reg2mem, { 0, 1, 3, 2, 4, 5 } uselistorder i32* %storemerge.in.reg2mem, { 0, 3, 2, 1, 4 } uselistorder i64* %0, { 1, 0 } uselistorder i32 (i8*)* @strlen, { 2, 0, 1 } uselistorder i64 24, { 1, 0, 2 } uselistorder label LBL_16, { 2, 1, 0, 3 } uselistorder label LBL_14, { 4, 2, 3, 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
put_ebml_uint_13972
put_ebml_uint
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.lcssa.reg2mem = alloca i64 %storemerge48.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 store i64 1, i64* %indvars.iv.reg2mem br label LBL_1 LBL_1: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %0 = mul i64 %indvars.iv.reload, 8 %1 = and i64 %0, 56 %2 = lshr i64 %arg3, %1 %3 = icmp ne i64 %2, 0 %4 = icmp ult i64 %indvars.iv.reload, 8 %or.cond = icmp eq i1 %4, %3 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %or.cond, label LBL_1, label LBL_2 LBL_2: %5 = ptrtoint i64* %arg1 to i64 %6 = and i64 %arg2, 4294967295 %7 = trunc i64 %indvars.iv.reload to i32 %8 = call i64 @FUNC(i64 %5, i64 %6) %9 = call i64 @FUNC(i64 %5, i64 %indvars.iv.reload, i64 0) %10 = add i32 %7, -1 %11 = zext i32 %10 to i64 %12 = icmp slt i32 %10, 0 %13 = icmp eq i1 %12, false store i32 %10, i32* %storemerge48.reg2mem store i64 %11, i64* %rax.0.lcssa.reg2mem br i1 %13, label LBL_3, label LBL_4 LBL_3: %storemerge48.reload = load i32, i32* %storemerge48.reg2mem %.tr2 = zext i32 %storemerge48.reload to i64 %14 = mul i64 %.tr2, 8 %15 = and i64 %14, 56 %16 = lshr i64 %arg3, %15 %17 = urem i64 %16, 256 %18 = call i64 @FUNC(i64 %5, i64 %17) %19 = add i32 %storemerge48.reload, -1 %20 = icmp slt i32 %19, 0 %21 = icmp eq i1 %20, false store i32 %19, i32* %storemerge48.reg2mem store i64 %18, i64* %rax.0.lcssa.reg2mem br i1 %21, label LBL_3, label LBL_4 LBL_4: %rax.0.lcssa.reload = load i64, i64* %rax.0.lcssa.reg2mem ret i64 %rax.0.lcssa.reload uselistorder i64 %5, { 0, 2, 1 } uselistorder i64 %indvars.iv.reload, { 3, 2, 0, 1, 4 } uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge48.reg2mem, { 2, 0, 1 } uselistorder i1 false, { 1, 0 } uselistorder i32 0, { 1, 0 } uselistorder i64 8, { 0, 2, 1 } uselistorder i64 1, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
fpm_stdio_init_child_6488
fpm_stdio_init_child
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8 %1 = icmp slt i32 %0, 1 br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = call i32 @close(i32 %0) br label LBL_2 LBL_2: store i32 -1, i32* bitcast (i64* @gv_0 to i32*), align 8 %3 = call i64 @FUNC(i64 4294967295) ret i64 0 }
0
BinRealVul
isp1362_sw_reset_5288
isp1362_sw_reset
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = ptrtoint i32* %arg1 to i64 %2 = load i64, i64* %0 %3 = call i64 @FUNC(i64 %1, i64 %2) %4 = call i64 @FUNC(i64 %1) %5 = call i64 @FUNC(i64 %1, i64 %2) ret i64 %5 uselistorder i64 %2, { 1, 0 } }
0
BinRealVul
set_frame_distances_947
set_frame_distances
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.reg2mem8 = alloca i32 %.pre-phi3.reg2mem = alloca i32* %.pre-phi7.reg2mem = alloca i32* %.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 %1 = trunc i64 %0 to i32 %2 = icmp eq i32 %1, -1 %3 = icmp eq i1 %2, false store i32 %1, i32* %.reg2mem br i1 %3, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_1, i64 0, i64 0), i32 34, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0)) store i32 ptrtoint ([49 x i8]* @gv_0 to i32), i32* %.reg2mem br label LBL_2 LBL_2: %.reload = load i32, i32* %.reg2mem %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = mul i32 %8, %.reload %10 = add i64 %0, 24 %11 = inttoptr i64 %10 to i32* store i32 %9, i32* %11, align 4 %12 = add i64 %0, 16 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = icmp eq i32 %14, 1 %16 = icmp eq i1 %15, false br i1 %16, label LBL_2.LBL_7_crit_edge, label LBL_4 LBL_3: %.pre1 = add i64 %0, 36 %.pre2 = inttoptr i64 %.pre1 to i32* %.pre4 = add i64 %0, 28 %.pre6 = inttoptr i64 %.pre4 to i32* store i32* %.pre6, i32** %.pre-phi7.reg2mem store i32* %.pre2, i32** %.pre-phi3.reg2mem store i32 %9, i32* %.reg2mem8 br label LBL_7 LBL_4: %17 = add i64 %0, 28 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = add i64 %0, 36 %21 = inttoptr i64 %20 to i32* %22 = load i32, i32* %21, align 4 %23 = sub i32 %9, %22 %24 = add i32 %23, %19 %25 = add i64 %0, 32 %26 = inttoptr i64 %25 to i32* store i32 %24, i32* %26, align 4 %27 = icmp slt i32 %24, 1 br i1 %27, label LBL_6, label LBL_5 LBL_5: %28 = load i32, i32* %18, align 4 %29 = zext i32 %28 to i64 %30 = icmp ult i32 %24, %28 store i64 %29, i64* %rax.0.reg2mem br i1 %30, label LBL_10, label LBL_6 LBL_6: call void @__assert_fail(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_1, i64 0, i64 0), i32 38, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0)) %.pre = load i32, i32* %11, align 4 store i32* %18, i32** %.pre-phi7.reg2mem store i32* %21, i32** %.pre-phi3.reg2mem store i32 %.pre, i32* %.reg2mem8 br label LBL_7 LBL_7: %.reload9 = load i32, i32* %.reg2mem8 %.pre-phi3.reload = load i32*, i32** %.pre-phi3.reg2mem %.pre-phi7.reload = load i32*, i32** %.pre-phi7.reg2mem %31 = load i32, i32* %.pre-phi3.reload, align 4 %32 = sub i32 %.reload9, %31 store i32 %32, i32* %.pre-phi7.reload, align 4 %33 = load i32, i32* %11, align 4 store i32 %33, i32* %.pre-phi3.reload, align 4 %34 = add i64 %0, 20 %35 = inttoptr i64 %34 to i32* %36 = load i32, i32* %35, align 4 %37 = icmp eq i32 %36, 0 store i64 0, i64* %rax.0.reg2mem br i1 %37, label LBL_10, label LBL_8 LBL_8: %38 = load i32, i32* %.pre-phi7.reload, align 4 %39 = zext i32 %38 to i64 %40 = icmp eq i32 %38, 0 %41 = icmp slt i32 %38, 0 %42 = icmp eq i1 %41, false %43 = icmp eq i1 %40, false %44 = icmp eq i1 %42, %43 store i64 %39, i64* %rax.0.reg2mem br i1 %44, label LBL_10, label LBL_9 LBL_9: call void @__assert_fail(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_1, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0)) store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem br label LBL_10 LBL_10: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %38, { 1, 0, 2 } uselistorder i32 %24, { 1, 0, 2 } uselistorder i32* %11, { 1, 0, 2 } uselistorder i32 %9, { 1, 0, 2 } uselistorder i64 %0, { 3, 7, 5, 6, 0, 1, 4, 9, 8, 2 } uselistorder i32* %.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 1 } uselistorder i64 28, { 1, 0 } uselistorder i64 36, { 1, 0 } uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 2, 1, 0 } uselistorder i1 false, { 1, 0, 2, 3 } uselistorder label LBL_7, { 1, 0 } }
0
BinRealVul
luaC_barrier__6136
luaC_barrier_
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 %arg1) %1 = call i64 @FUNC(i64 %arg2) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 br i1 %3, label LBL_4, label LBL_1 LBL_1: %4 = call i64 @FUNC(i64 %arg3) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 br i1 %6, label LBL_4, label LBL_2 LBL_2: %7 = call i64 @FUNC(i64 %0, i64 %arg3) %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 = call i64 @FUNC(i64 %0, i64 %arg2) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false store i64 1, i64* %storemerge.reg2mem br i1 %14, 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 %15 = call i64 @FUNC(i64 %storemerge.reload) %16 = call i64 @FUNC(i64 %0) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %17, 0 br i1 %18, label LBL_8, label LBL_6 LBL_6: %19 = call i64 @FUNC(i64 %0, i64 %arg3) %20 = call i64 @FUNC(i64 %arg2) %21 = trunc i64 %20 to i32 %22 = icmp eq i32 %21, 0 store i64 %20, i64* %rax.0.reg2mem br i1 %22, label LBL_10, label LBL_7 LBL_7: %23 = call i64 @FUNC(i64 %arg3) %24 = trunc i64 %23 to i32 %25 = icmp eq i32 %24, 0 %26 = zext i1 %25 to i64 %27 = call i64 @FUNC(i64 %26) %28 = call i64 @FUNC(i64 %arg3, i64 0) store i64 %28, i64* %rax.0.reg2mem br label LBL_10 LBL_8: %29 = inttoptr i64 %0 to i32* %30 = call i64 @FUNC(i64 %0) %31 = and i64 %30, 4294967295 %32 = call i64 @FUNC(i64 %31) %33 = load i32, i32* %29, align 4 %34 = zext i32 %33 to i64 %35 = icmp eq i32 %33, 1 %36 = icmp eq i1 %35, false store i64 %34, i64* %rax.0.reg2mem br i1 %36, label LBL_10, label LBL_9 LBL_9: %37 = call i64 @FUNC(i64 %0, i64 %arg2) store i64 %37, 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 %0, { 0, 1, 6, 2, 3, 4, 5 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 1, 2 } uselistorder i64 (i64)* @isold, { 1, 0 } uselistorder i64 (i64)* @lua_assert, { 2, 1, 0 } uselistorder i64 (i64, i64)* @isdead, { 1, 0 } uselistorder i32 1, { 6, 4, 3, 5, 2, 1, 0 } uselistorder i64 %arg3, { 3, 2, 4, 0, 1 } uselistorder i64 %arg2, { 2, 1, 0, 3 } uselistorder label LBL_5, { 1, 0 } }
0
BinRealVul
evhttp_parse_response_line_18037
evhttp_parse_response_line
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = ptrtoint i64* %arg2 to i64 %sv_0 = alloca i64, align 8 store i64 %5, i64* %sv_0, align 8 %6 = bitcast i64* %sv_0 to i8** %7 = call i8* @strsep(i8** nonnull %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0)) %8 = load i64, i64* %sv_0, align 8 %9 = icmp eq i64 %8, 0 %10 = icmp eq i1 %9, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %10, label LBL_1, label LBL_6 LBL_1: %11 = ptrtoint i64* %arg1 to i64 %12 = ptrtoint i8* %7 to i64 %13 = call i8* @strsep(i8** nonnull %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0)) %14 = load i64, i64* %sv_0, align 8 %15 = call i64 @FUNC(i64 %12, i64 %11) %16 = trunc i64 %15 to i32 %17 = icmp slt i32 %16, 0 %18 = icmp eq i1 %17, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %18, label LBL_2, label LBL_6 LBL_2: %19 = call i32 @atoi(i8* %13) %20 = bitcast i64* %arg1 to i32* store i32 %19, i32* %20, align 4 %21 = and i64 %3, 4294967295 %22 = call i64 @FUNC(i64 %21) %23 = trunc i64 %22 to i32 %24 = icmp eq i32 %23, 0 %25 = icmp eq i1 %24, false br i1 %25, label LBL_4, label LBL_3 LBL_3: %26 = ptrtoint i8* %13 to i64 %27 = call i64 @FUNC(i64 %26, i64 %11, i64 %11, i64 %4, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_6 LBL_4: %28 = icmp eq i64 %14, 0 %spec.select = select i1 %28, i64 ptrtoint (i64* @gv_1 to i64), i64 %14 %29 = call i64 @FUNC(i64 %spec.select) %30 = add i64 %11, 8 %31 = inttoptr i64 %30 to i64* store i64 %29, i64* %31, align 8 %32 = icmp eq i64 %29, 0 %33 = icmp eq i1 %32, false store i64 0, i64* %rax.0.reg2mem br i1 %33, label LBL_6, label LBL_5 LBL_5: %34 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_3, i64 0, i64 0), i64 %11, i64 %4, i64 %2, i64 %1) store i64 4294967295, 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 %11, { 2, 3, 0, 1, 4 } uselistorder i64* %sv_0, { 1, 2, 0, 3 } uselistorder i64 %4, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 4, 2, 3 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i8* (i8**, i8*)* @strsep, { 1, 0 } uselistorder label LBL_6, { 3, 0, 4, 1, 2 } }
1
BinRealVul
virtio_common_init_4774
virtio_common_init
define i64 @FUNC(i8* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %indvars.iv.reg2mem = alloca i64 %0 = trunc i64 %arg2 to i16 %1 = call i64 @FUNC(i64 %arg4) %2 = inttoptr i64 %1 to i16* store i16 %0, i16* %2, align 2 %3 = add i64 %1, 4 %4 = inttoptr i64 %3 to i32* store i32 0, i32* %4, align 4 %5 = add i64 %1, 8 %6 = inttoptr i64 %5 to i32* store i32 0, i32* %6, align 4 %7 = add i64 %1, 12 %8 = inttoptr i64 %7 to i32* store i32 0, i32* %8, align 4 %9 = add i64 %1, 16 %10 = inttoptr i64 %9 to i32* store i32 0, i32* %10, align 4 %11 = call i64 @FUNC(i64 256) %12 = add i64 %1, 24 %13 = inttoptr i64 %12 to i64* store i64 %11, i64* %13, align 8 %14 = load i32, i32* inttoptr (i64 4210748 to i32*), align 4 %15 = add i64 %1, 32 %16 = inttoptr i64 %15 to i32* store i32 %14, i32* %16, align 4 store i64 0, i64* %indvars.iv.reg2mem br label LBL_1 LBL_1: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %17 = load i64, i64* %13, align 8 %18 = mul i64 %indvars.iv.reload, 16 %19 = add i64 %17, %18 %20 = inttoptr i64 %19 to i32* store i32 0, i32* %20, align 4 %21 = load i64, i64* %13, align 8 %22 = or i64 %18, 8 %23 = add i64 %21, %22 %24 = inttoptr i64 %23 to i64* store i64 %1, i64* %24, align 8 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 16 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_2, label LBL_1 LBL_2: %25 = ptrtoint i8* %arg1 to i64 %26 = add i64 %1, 40 %27 = inttoptr i64 %26 to i64* store i64 %25, i64* %27, align 8 %28 = add i64 %1, 48 %29 = inttoptr i64 %28 to i64* store i64 %arg3, i64* %29, align 8 %30 = icmp eq i64 %arg3, 0 br i1 %30, label LBL_4, label LBL_3 LBL_3: %31 = call i64 @FUNC(i64 %arg3) %32 = add i64 %1, 56 %33 = inttoptr i64 %32 to i64* store i64 %31, i64* %33, align 8 br label LBL_5 LBL_4: %34 = add i64 %1, 56 %35 = inttoptr i64 %34 to i64* store i64 0, i64* %35, align 8 br label LBL_5 LBL_5: %36 = call i64 @FUNC(i64 4198823, i64 %1) %37 = add i64 %1, 64 %38 = inttoptr i64 %37 to i64* store i64 %36, i64* %38, align 8 ret i64 %1 uselistorder i64 %18, { 1, 0 } uselistorder i64 %1, { 1, 3, 2, 4, 0, 5, 7, 6, 8, 9, 10, 11, 12, 13, 14 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64 16, { 1, 0, 2 } uselistorder i32 0, { 1, 2, 3, 4, 5, 0 } uselistorder i64 (i64)* @qemu_mallocz, { 2, 1, 0 } uselistorder i64 %arg3, { 1, 0, 2 } }
0
BinRealVul
hvcs_get_partner_info_17864
hvcs_get_partner_info
define i64 @FUNC(i64 %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sext614.reg2mem = alloca i64 %.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = call i64* @memset(i64* %arg3, i32 0, i32 4096) %4 = icmp ne i64* %arg2, null %5 = icmp eq i64* %arg3, null %6 = icmp eq i1 %5, false %or.cond8 = icmp eq i1 %4, %6 store i64 4294967274, i64* %rax.0.reg2mem br i1 %or.cond8, label LBL_1, label LBL_8 LBL_1: %7 = ptrtoint i64* %arg3 to i64 %8 = ptrtoint i64* %arg2 to i64 %9 = and i64 %arg1, 4294967295 %10 = call i64 @FUNC(i64 %8) %11 = call i64 @FUNC(i64 %9, i64 -1, i64 -1, i64 %7) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 store i64 %11, i64* %.lcssa.reg2mem br i1 %13, label LBL_2, label LBL_3 LBL_2: %14 = add i64 %7, 8 %15 = inttoptr i64 %14 to i64* %16 = add i64 %7, 16 %17 = inttoptr i64 %16 to i8* store i64 -1, i64* %.reg2mem store i64 -4294967296, i64* %sext614.reg2mem br label LBL_4 LBL_3: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem %18 = call i64 @FUNC(i64 %8) %19 = trunc i64 %18 to i32 %20 = icmp eq i32 %19, 0 %21 = icmp eq i1 %20, false %22 = and i64 %.lcssa.reload, 4294967295 %spec.select = select i1 %21, i64 %22, i64 0 ret i64 %spec.select LBL_4: %sext614.reload = load i64, i64* %sext614.reg2mem %23 = load i64, i64* %15, align 8 %24 = trunc i64 %23 to i32 %25 = icmp eq i64 %sext614.reload, -4294967296 %26 = icmp eq i32 %24, -1 %or.cond = icmp eq i1 %25, %26 store i64 0, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_8, label LBL_5 LBL_5: %.reload = load i64, i64* %.reg2mem %27 = call i64 @FUNC(i64 280, i64 0) %28 = icmp eq i64 %27, 0 %29 = icmp eq i1 %28, false br i1 %29, label LBL_7, label LBL_6 LBL_6: %30 = call i64 @FUNC(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 %.reload, i64 %7, i64 %2, i64 %1) %31 = call i64 @FUNC(i64 %8) store i64 4294967284, i64* %rax.0.reg2mem br label LBL_8 LBL_7: %32 = trunc i64 %.reload to i32 %33 = inttoptr i64 %27 to i32* store i32 %24, i32* %33, align 4 %34 = add i64 %27, 4 %35 = inttoptr i64 %34 to i32* store i32 %32, i32* %35, align 4 %36 = call i32 @strlen(i8* %17) %37 = add i32 %36, 1 %38 = add i64 %27, 8 %39 = inttoptr i64 %38 to i8* %40 = call i8* @strncpy(i8* %39, i8* %17, i32 %37) %41 = add i64 %27, 264 %42 = call i64 @FUNC(i64 %41, i64 %8) %sext6 = mul i64 %23, 4294967296 %43 = ashr exact i64 %sext6, 32 %44 = call i64 @FUNC(i64 %9, i64 %.reload, i64 %43, i64 %7) %45 = trunc i64 %44 to i32 %46 = icmp eq i32 %45, 0 store i64 %44, i64* %.lcssa.reg2mem store i64 %43, i64* %.reg2mem store i64 %sext6, i64* %sext614.reg2mem br i1 %46, label LBL_4, label LBL_3 LBL_8: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %.reload, { 1, 0, 2 } uselistorder i64 %9, { 1, 0 } uselistorder i64 %8, { 2, 1, 0, 3 } uselistorder i64 %7, { 4, 1, 2, 3, 0 } uselistorder i64* %.lcssa.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i64* %sext614.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64)* @list_empty, { 2, 1, 0 } uselistorder i64 -4294967296, { 1, 0 } uselistorder i64 (i64, i64, i64, i64)* @hvcs_next_partner, { 1, 0 } uselistorder i1 false, { 1, 2, 0 } uselistorder i32 0, { 4, 3, 0, 2, 5, 1 } uselistorder i64* %arg3, { 2, 0, 1 } uselistorder i64* %arg2, { 1, 0 } uselistorder label LBL_8, { 2, 0, 1 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
credential_write_item_5570
credential_write_item
define i64 @FUNC(i64 %arg1, i8* %arg2, i8* %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = icmp eq i8* %arg3, null br i1 %0, label LBL_4, label LBL_1 LBL_1: %1 = call i8* @strchr(i8* nonnull %arg3, i32 10) %2 = icmp eq i8* %1, null br i1 %2, label LBL_3, label LBL_2 LBL_2: %3 = ptrtoint i8* %arg2 to i64 %4 = call i64 @FUNC(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_0, i64 0, i64 0), i64 %3) unreachable LBL_3: %5 = inttoptr i64 %arg1 to %_IO_FILE* %6 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i8* %arg2, i8* nonnull %arg3) %7 = sext i32 %6 to i64 store i64 %7, 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 i8* %arg2, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
get_ruser_19142
get_ruser
define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.reg2mem5 = alloca i8* %.reg2mem = alloca i8* %sv_0 = alloca i8*, align 8 %0 = icmp ne i64* %arg2, null %1 = icmp eq i64 %arg3, 0 %2 = icmp eq i1 %1, false %or.cond = icmp eq i1 %0, %2 store i64 4294967294, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_1, label LBL_12 LBL_1: %3 = bitcast i8** %sv_0 to i64* %4 = call i64 @FUNC(i64 %arg1, i64 1, i64* nonnull %3) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 br i1 %6, label LBL_3, label LBL_2 LBL_2: store i8* null, i8** %sv_0, align 8 br label LBL_5 LBL_3: %.pr = load i8*, i8** %sv_0, align 8 %7 = icmp eq i8* %.pr, null br i1 %7, label LBL_5, label LBL_4 LBL_4: %8 = load i8, i8* %.pr, align 1 %9 = icmp eq i8 %8, 0 %10 = icmp eq i1 %9, false store i8* %.pr, i8** %.reg2mem5 br i1 %10, label LBL_9, label LBL_5 LBL_5: %11 = call i32 @getuid() %12 = zext i32 %11 to i64 %13 = call i64 @FUNC(i64 %arg1, i64 %12) %14 = icmp eq i64 %13, 0 br i1 %14, label LBL_5.LBL_8thread-pre-split_crit_edge, label LBL_7 LBL_6: %.pr3.pre = load i8*, i8** %sv_0, align 8 store i8* %.pr3.pre, i8** %.reg2mem br label LBL_8 LBL_7: %15 = inttoptr i64 %13 to i64* %16 = load i64, i64* %15, align 8 %17 = inttoptr i64 %16 to i8* store i8* %17, i8** %sv_0, align 8 store i8* %17, i8** %.reg2mem br label LBL_8 LBL_8: %.reload = load i8*, i8** %.reg2mem %18 = icmp eq i8* %.reload, null store i8* %.reload, i8** %.reg2mem5 br i1 %18, label LBL_10, label LBL_9 LBL_9: %.reload6 = load i8*, i8** %.reg2mem5 %19 = call i32 @strlen(i8* nonnull %.reload6) %20 = sext i32 %19 to i64 %21 = icmp ult i64 %20, %arg3 br i1 %21, label LBL_11, label LBL_10 LBL_10: %22 = bitcast i64* %arg2 to i8* store i8 0, i8* %22, align 1 store i64 4294967295, i64* %rax.0.reg2mem br label LBL_12 LBL_11: %23 = load i8*, i8** %sv_0, align 8 %24 = bitcast i64* %arg2 to i8* %25 = call i8* @strcpy(i8* %24, i8* %23) store i64 0, i64* %rax.0.reg2mem br label LBL_12 LBL_12: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i8* %.pr, { 0, 2, 1 } uselistorder i8** %sv_0, { 4, 3, 0, 1, 2, 5 } uselistorder i8** %.reg2mem, { 0, 2, 1 } uselistorder i8** %.reg2mem5, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 } uselistorder i64 %arg3, { 1, 0 } uselistorder label LBL_12, { 1, 2, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_5, { 1, 2, 0 } }
1
BinRealVul
spapr_set_vsmt_mode_381
spapr_set_vsmt_mode
define i64 @FUNC(i32* %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 = load i64, i64* %0 %sv_0 = alloca i64, align 8 store i64 0, i64* %sv_0, align 8 %6 = call i64 @FUNC() %7 = call i64 @FUNC() %8 = trunc i64 %7 to i8 %9 = icmp eq i8 %8, 1 br i1 %9, label LBL_3, label LBL_1 LBL_1: %10 = load i32, i32* inttoptr (i64 4210716 to i32*), align 4 %11 = icmp slt i32 %10, 2 br i1 %11, label LBL_3, label LBL_2 LBL_2: %12 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %5, i64 %2, i64 %1) br label LBL_17 LBL_3: %13 = load i32, i32* @gv_1, align 4 %14 = zext i32 %13 to i64 %15 = call i64 @FUNC(i64 %14) %16 = trunc i64 %15 to i8 %17 = icmp eq i8 %16, 1 br i1 %17, label LBL_5, label LBL_4 LBL_4: %18 = load i32, i32* @gv_1, align 4 %19 = zext i32 %18 to i64 %20 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @gv_2, i64 0, i64 0), i64 %19, i64 %5, i64 %2, i64 %1) br label LBL_17 LBL_5: %21 = trunc i64 %3 to i32 %22 = icmp eq i32 %21, 0 %23 = icmp eq i1 %22, false %24 = icmp eq i1 %23, false br i1 %24, label LBL_8, label LBL_6 LBL_6: %25 = load i32, i32* @gv_1, align 4 %26 = icmp ugt i32 %25, %21 br i1 %26, label LBL_7, label LBL_9 LBL_7: %27 = zext i32 %25 to i64 %28 = and i64 %3, 4294967295 %29 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @gv_3, i64 0, i64 0), i64 %28, i64 %27, i64 %2, i64 %1) br label LBL_17 LBL_8: store i32 8, i32* %arg1, align 4 br label LBL_9 LBL_9: %30 = trunc i64 %6 to i32 %31 = call i64 @FUNC() %32 = trunc i64 %31 to i8 %33 = icmp eq i8 %32, 0 %34 = icmp eq i32 %21, %30 %or.cond = or i1 %34, %33 br i1 %or.cond, label LBL_17, label LBL_10 LBL_10: %35 = and i64 %3, 4294967295 %36 = call i64 @FUNC(i64 %35) %37 = trunc i64 %36 to i32 %38 = icmp eq i32 %37, 0 br i1 %38, label LBL_17, label LBL_11 LBL_11: %39 = and i64 %36, 4294967295 %40 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_4, i64 0, i64 0), i64 %35, i64 %39, i64 %2, i64 %1) %41 = load i32, i32* @gv_1, align 4 %42 = zext i32 %41 to i64 %sext = mul i64 %6, 4294967296 %43 = ashr exact i64 %sext, 32 %44 = icmp slt i64 %43, %42 br i1 %44, label LBL_14, label LBL_12 LBL_12: %45 = ashr i32 %21, 31 %46 = zext i32 %45 to i64 %47 = mul i64 %46, 4294967296 %48 = or i64 %47, %35 %49 = and i64 %6, 4294967295 %50 = srem i64 %48, %49 %51 = trunc i64 %50 to i32 %52 = icmp eq i32 %51, 0 %53 = icmp eq i1 %52, false br i1 %53, label LBL_14, label LBL_13 LBL_13: %54 = load i64, i64* %sv_0, align 8 %55 = call i64 @FUNC(i64 %54) store i64 0, i64* %sv_0, align 8 br label LBL_17 LBL_14: br i1 %23, label LBL_16, label LBL_15 LBL_15: %56 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([100 x i8], [100 x i8]* @gv_5, i64 0, i64 0), i32 %41, i32 %30, i64 %35, i64 %1) br label LBL_16 LBL_16: %57 = call i64 @FUNC(i64* nonnull %sv_0) br label LBL_17 LBL_17: %58 = ptrtoint i64* %arg2 to i64 %59 = load i64, i64* %sv_0, align 8 %60 = call i64 @FUNC(i64 %58, i64 %59) ret i64 %60 uselistorder i64 %35, { 3, 0, 2, 1 } uselistorder i32 %30, { 1, 0 } uselistorder i32 %25, { 1, 0 } uselistorder i32 %21, { 2, 0, 1, 3 } uselistorder i64 %6, { 1, 0, 2 } uselistorder i64* %sv_0, { 6, 0, 1, 7, 8, 2, 3, 4, 5, 9 } uselistorder i64 %5, { 1, 0 } uselistorder i64 %3, { 1, 2, 0 } uselistorder i64 %2, { 3, 2, 1, 0 } uselistorder i64 %1, { 4, 3, 2, 1, 0 } uselistorder i64* %0, { 4, 3, 2, 1, 0 } uselistorder i64 4294967295, { 2, 3, 1, 0, 4 } uselistorder i1 false, { 1, 0, 2, 3 } uselistorder i32* @gv_1, { 3, 2, 1, 0 } uselistorder i64 (i64*, i8*, i64, i64, i64, i64)* @error_setg, { 3, 2, 1, 0 } uselistorder i64 ()* @kvm_enabled, { 1, 0 } uselistorder label LBL_17, { 2, 3, 1, 0, 4, 5, 6 } uselistorder label LBL_9, { 1, 0 } }
0
BinRealVul
moof_Write_10543
moof_Write
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, null %1 = icmp eq i1 %0, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %1, label LBL_1, label LBL_6 LBL_1: %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i64* %arg1 to i64 %4 = call i64 @FUNC(i64 %3, i64 %2) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 br i1 %6, label LBL_3, label LBL_2 LBL_2: %7 = and i64 %4, 4294967295 store i64 %7, i64* %rax.0.reg2mem br label LBL_6 LBL_3: %8 = call i64 @FUNC(i64 %3, i64 %2) %9 = trunc i64 %8 to i32 %10 = icmp eq i32 %9, 0 br i1 %10, label LBL_5, label LBL_4 LBL_4: %11 = and i64 %8, 4294967295 store i64 %11, i64* %rax.0.reg2mem br label LBL_6 LBL_5: %12 = add i64 %3, 8 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = call i64 @FUNC(i64 %3, i64 %14, i64 %2) store i64 %15, i64* %rax.0.reg2mem br label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %2, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_6, { 1, 2, 3, 0 } }
0
BinRealVul
enable_kernel_spe_9259
enable_kernel_spe
define i64 @FUNC() local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = call i64 @FUNC() %1 = trunc i64 %0 to i32 %2 = icmp eq i32 %1, 0 br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i32 @puts(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0)) br label LBL_2 LBL_2: %4 = load i64, i64* @gv_1, align 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = icmp eq i64 %6, 0 br i1 %7, label LBL_5, label LBL_3 LBL_3: %8 = inttoptr i64 %6 to i64* %9 = load i64, i64* %8, align 8 %10 = urem i64 %9, 2 %11 = icmp eq i64 %10, 0 br i1 %11, label LBL_5, label LBL_4 LBL_4: %12 = call i64 @FUNC(i64 %4) store i64 %12, i64* %storemerge.reg2mem br label LBL_6 LBL_5: %13 = call i64 @FUNC(i64 0) store i64 %13, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64)* @giveup_spe, { 1, 0 } uselistorder i32 (i8*)* @puts, { 2, 1, 0 } }
0
BinRealVul
logand_12427
logand
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %0 = and i64 %arg2, 4294967295 %1 = call i64 @FUNC(i64 %arg1, i64 %0) %2 = call i64 @FUNC(i64 %arg1, i64 1) %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, 0 store i64 %1, i64* %sv_0.0.reg2mem br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = call i64 @FUNC(i64 %arg1, i64 %0) %6 = call i64 @FUNC(i64 2, i64 %1, i64 %5) store i64 %6, i64* %sv_0.0.reg2mem br label LBL_2 LBL_2: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem ret i64 %sv_0.0.reload uselistorder i64 %1, { 1, 0 } }
1
BinRealVul
dpp1_cm_set_regamma_pwl_18250
dpp1_cm_set_regamma_pwl
define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %arg3 to i32 %4 = icmp eq i32 %3, 3 store i64 %2, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_6 LBL_1: %5 = bitcast i32* %arg2 to i64* %6 = call i32 @memcmp(i64* %arg1, i64* %5, i32 8) %7 = icmp eq i32 %6, 0 store i64 0, i64* %rax.0.reg2mem br i1 %7, label LBL_6, label LBL_2 LBL_2: %8 = call i64 @FUNC(i64 %2, i64 1) %9 = add i64 %2, 8 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = zext i32 %11 to i64 %13 = call i64 @FUNC(i64 %2, i64 %12) %14 = load i32, i32* %10, align 4 %15 = icmp eq i32 %14, 0 %16 = ptrtoint i32* %arg2 to i64 br i1 %15, label LBL_4, label LBL_3 LBL_3: %17 = call i64 @FUNC(i64 %2, i64 %16) br label LBL_5 LBL_4: %18 = call i64 @FUNC(i64 %2, i64 %16) br label LBL_5 LBL_5: %19 = add i64 %16, 4 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = and i64 %1, 4294967295 %23 = call i64 @FUNC(i64 %2, i64 %22, i32 %21) store i64 %22, i64* %arg1, align 8 %24 = load i32, i32* %10, align 4 %25 = icmp eq i32 %24, 0 %26 = zext i1 %25 to i32 store i32 %26, i32* %10, align 4 store i64 %2, 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 %22, { 1, 0 } uselistorder i64 %16, { 0, 2, 1 } uselistorder i32* %10, { 1, 0, 2, 3 } uselistorder i64 %2, { 1, 2, 3, 4, 7, 5, 6, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 } uselistorder label LBL_6, { 2, 1, 0 } }
1
BinRealVul
CurvesAlloc_18940
CurvesAlloc
define i64 @FUNC(i64 %arg1, i32 %arg2, i32 %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %indvars.iv8.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %indvars.iv12.reg2mem = alloca i64 %.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 %arg1, i64 16) %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false store i64 0, i64* %rax.0.reg2mem br i1 %2, label LBL_1, label LBL_13 LBL_1: %3 = inttoptr i64 %0 to i32* store i32 %arg2, i32* %3, align 4 %4 = add i64 %0, 4 %5 = inttoptr i64 %4 to i32* store i32 %arg3, i32* %5, align 4 %6 = sext i32 %arg2 to i64 %7 = call i64 @FUNC(i64 %arg1, i64 %6, i64 8) %8 = add i64 %0, 8 %9 = inttoptr i64 %8 to i64* store i64 %7, i64* %9, align 8 %10 = icmp eq i64 %7, 0 %11 = icmp eq i1 %10, false store i64 0, i64* %rax.0.reg2mem br i1 %11, label LBL_2, label LBL_13 LBL_2: %12 = icmp sgt i32 %arg2, 0 store i64 %0, i64* %rax.0.reg2mem br i1 %12, label LBL_3, label LBL_13 LBL_3: %13 = ptrtoint i64* %arg4 to i64 %14 = sext i32 %arg3 to i64 %15 = icmp eq i32 %arg3, 256 %16 = icmp eq i1 %15, false %17 = icmp sgt i32 %arg3, 0 %wide.trip.count = zext i32 %arg3 to i64 %wide.trip.count14 = zext i32 %arg2 to i64 store i64 %7, i64* %.reg2mem store i64 0, i64* %indvars.iv12.reg2mem br label LBL_4 LBL_4: %indvars.iv12.reload = load i64, i64* %indvars.iv12.reg2mem %.reload = load i64, i64* %.reg2mem %18 = mul i64 %indvars.iv12.reload, 8 %19 = add i64 %18, %.reload %20 = call i64 @FUNC(i64 %arg1, i64 %14, i64 2) %21 = inttoptr i64 %19 to i64* store i64 %20, i64* %21, align 8 br i1 %16, label LBL_7, label LBL_5 LBL_5: br i1 %17, label LBL_6, label LBL_11 LBL_6: %22 = add i64 %18, %13 %23 = inttoptr i64 %22 to i64* store i64 0, i64* %indvars.iv.reg2mem br label LBL_9 LBL_7: br i1 %17, label LBL_8, label LBL_11 LBL_8: %24 = add i64 %18, %13 %25 = inttoptr i64 %24 to i64* store i64 0, i64* %indvars.iv8.reg2mem br label LBL_10 LBL_9: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %26 = call i64 @FUNC(i64 %indvars.iv.reload) %27 = load i64, i64* %23, align 8 %28 = load i64, i64* %9, align 8 %29 = add i64 %28, %18 %30 = inttoptr i64 %29 to i64* %31 = load i64, i64* %30, align 8 %32 = mul i64 %indvars.iv.reload, 2 %33 = add i64 %31, %32 %34 = urem i64 %26, 65536 %35 = call i64 @FUNC(i64 %27, i64 %34) %36 = trunc i64 %35 to i16 %37 = inttoptr i64 %33 to i16* store i16 %36, i16* %37, align 2 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_11, label LBL_9 LBL_10: %indvars.iv8.reload = load i64, i64* %indvars.iv8.reg2mem %38 = load i64, i64* %25, align 8 %39 = load i64, i64* %9, align 8 %40 = add i64 %39, %18 %41 = inttoptr i64 %40 to i64* %42 = load i64, i64* %41, align 8 %43 = mul i64 %indvars.iv8.reload, 2 %44 = add i64 %42, %43 %45 = urem i64 %indvars.iv8.reload, 65536 %46 = call i64 @FUNC(i64 %38, i64 %45) %47 = trunc i64 %46 to i16 %48 = inttoptr i64 %44 to i16* store i16 %47, i16* %48, align 2 %indvars.iv.next9 = add nuw nsw i64 %indvars.iv8.reload, 1 %exitcond11 = icmp eq i64 %indvars.iv.next9, %wide.trip.count store i64 %indvars.iv.next9, i64* %indvars.iv8.reg2mem br i1 %exitcond11, label LBL_11, label LBL_10 LBL_11: %indvars.iv.next13 = add nuw nsw i64 %indvars.iv12.reload, 1 %exitcond15 = icmp eq i64 %indvars.iv.next13, %wide.trip.count14 store i64 %0, i64* %rax.0.reg2mem br i1 %exitcond15, label LBL_13, label LBL_11.LBL_4_crit_edge LBL_12: %.pre = load i64, i64* %9, align 8 store i64 %.pre, i64* %.reg2mem store i64 %indvars.iv.next13, i64* %indvars.iv12.reg2mem br label LBL_4 LBL_13: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %indvars.iv.reload, { 0, 2, 1 } uselistorder i64 %18, { 4, 2, 3, 1, 0 } uselistorder i64* %9, { 0, 2, 1, 3 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv12.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv8.reg2mem, { 1, 0, 2 } uselistorder i64 (i64, i64)* @cmsEvalToneCurve16, { 1, 0 } uselistorder i64 (i64, i64, i64)* @_cmsCalloc, { 1, 0 } uselistorder i64 8, { 0, 2, 1 } uselistorder label LBL_11, { 1, 0, 3, 2 } }
1
BinRealVul
do_dev_config_7607
do_dev_config
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rdx.1.reg2mem = alloca i64 %r8.1.lcssa.reg2mem = alloca i64 %rcx.1.lcssa.reg2mem = alloca i64 %rcx.155.reg2mem = alloca i64 %r8.157.reg2mem = alloca i64 %storemerge59.reg2mem = alloca i32 %.lcssa.reg2mem = alloca i64 %r8.0.lcssa.reg2mem = alloca i64 %rcx.0.lcssa.reg2mem = alloca i64 %r8.052.reg2mem = alloca i64 %.reg2mem213 = alloca i64 %.reg2mem = alloca i32 %1 = load i64, i64* %0 %rdi = alloca i64, align 8 %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %4 = add i64 %3, 16 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = inttoptr i64 %6 to i8* store i64 0, i64* %sv_2, align 8 store i8 0, i8* %7, align 1 %8 = bitcast i64* %rdi to i32* %9 = bitcast i64* %sv_1 to i8* %10 = add i64 %6, 64 %11 = inttoptr i64 %10 to i32* %12 = add i64 %6, 68 %13 = inttoptr i64 %12 to i32* %14 = add i64 %6, 72 %15 = inttoptr i64 %14 to i64* %16 = bitcast i64* %sv_0 to i8* %17 = ptrtoint i64* %sv_0 to i64 store i32 0, i32* %storemerge59.reg2mem br label LBL_17 LBL_1: %18 = icmp ult i32 %.pr, 16 br i1 %18, label LBL_3, label LBL_2 LBL_2: %19 = add i64 %3, 8 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = call i64 @FUNC(i64 %21, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i32 %.pr, i64 %rcx.155.reload, i64 %r8.157.reload, i64 %1) store i64 4294967274, i64* %rax.0.reg2mem br label LBL_20 LBL_3: %23 = load i32, i32* %8, align 8 %24 = icmp eq i32 %.pr, %23 %25 = icmp eq i1 %24, false br i1 %25, label LBL_5, label LBL_4 LBL_4: %26 = add i64 %3, 8 %27 = inttoptr i64 %26 to i64* %28 = load i64, i64* %27, align 8 %29 = call i64 @FUNC(i64 %28, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_1, i64 0, i64 0), i32 %storemerge59.reload, i64 %rcx.155.reload, i64 %r8.157.reload, i64 %1) store i64 4294967274, i64* %rax.0.reg2mem br label LBL_20 LBL_5: %30 = zext i32 %.pr to i64 %31 = call i64 @FUNC(i64 %30, i64* nonnull %sv_2) %32 = trunc i64 %31 to i32 %33 = icmp eq i32 %32, 0 br i1 %33, label LBL_7, label LBL_6 LBL_6: %34 = add i64 %3, 8 %35 = inttoptr i64 %34 to i64* %36 = load i64, i64* %35, align 8 %37 = call i64 @FUNC(i64 %36, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_2, i64 0, i64 0), i32 %.pr, i64 %rcx.155.reload, i64 %r8.157.reload, i64 %1) store i64 4294967274, i64* %rax.0.reg2mem br label LBL_20 LBL_7: %38 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %9, i32 18, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_3, i64 0, i64 0), i32 %.pr) %39 = call i64 @FUNC(i64* nonnull %sv_1) %40 = icmp eq i64 %39, 0 %41 = icmp eq i1 %40, false br i1 %41, label LBL_8, label LBL_9 LBL_8: %42 = call i64 @FUNC(i64 %39, i64 0, i64 0) %43 = trunc i64 %42 to i32 %44 = icmp slt i32 %43, 0 %45 = icmp eq i1 %44, false store i32 %43, i32* %.reg2mem store i64 %42, i64* %.reg2mem213 store i64 %r8.157.reload, i64* %r8.052.reg2mem store i64 %30, i64* %rcx.0.lcssa.reg2mem store i64 %r8.157.reload, i64* %r8.0.lcssa.reg2mem store i64 0, i64* %.lcssa.reg2mem br i1 %45, label LBL_10, label LBL_16 LBL_9: %46 = add i64 %3, 8 %47 = inttoptr i64 %46 to i64* %48 = load i64, i64* %47, align 8 %49 = call i64 @FUNC(i64 %48, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_4, i64 0, i64 0), i32 %.pr, i64 %30, i64 %r8.157.reload, i64 %1) store i64 4294967277, i64* %rax.0.reg2mem br label LBL_20 LBL_10: %.reload214 = load i64, i64* %.reg2mem213 %50 = and i64 %.reload214, 4294967295 %51 = call i64 @FUNC(i64 %39, i64 %50) %52 = trunc i64 %51 to i32 %53 = icmp eq i32 %52, 0 %54 = icmp slt i32 %52, 0 %55 = icmp eq i1 %54, false %56 = icmp eq i1 %53, false %57 = icmp eq i1 %55, %56 br i1 %57, label LBL_12, label LBL_11 LBL_11: %58 = add i64 %3, 8 %59 = inttoptr i64 %58 to i64* %60 = load i64, i64* %59, align 8 %61 = call i64 @FUNC(i64 %60, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_5, i64 0, i64 0), i32 %52, i64 %30, i64 %50, i64 %1) store i64 4294967274, i64* %rax.0.reg2mem br label LBL_20 LBL_12: %62 = call i64 @FUNC(i64 24, i64 0) %63 = icmp eq i64 %62, 0 %64 = icmp eq i1 %63, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %64, label LBL_13, label LBL_20 LBL_13: %r8.052.reload = load i64, i64* %r8.052.reg2mem %.reload = load i32, i32* %.reg2mem %65 = inttoptr i64 %62 to i64* store i64 %39, i64* %65, align 8 %66 = add i64 %62, 8 %67 = inttoptr i64 %66 to i32* store i32 %.pr, i32* %67, align 4 %68 = add i64 %62, 12 %69 = inttoptr i64 %68 to i32* store i32 %.reload, i32* %69, align 4 %70 = add i64 %62, 16 %71 = inttoptr i64 %70 to i32* store i32 %52, i32* %71, align 4 %72 = load i32, i32* %11, align 4 %73 = add i32 %72, %52 store i32 %73, i32* %11, align 4 %74 = load i32, i32* %13, align 4 %75 = add i32 %74, 1 %76 = sext i32 %75 to i64 %77 = mul i64 %76, 8 %78 = load i64, i64* %15, align 8 %79 = call i64 @FUNC(i64 %78, i64 %77, i64 0) %80 = icmp eq i64 %79, 0 %81 = icmp eq i1 %80, false br i1 %81, label LBL_15, label LBL_14 LBL_14: %82 = add i64 %3, 8 %83 = inttoptr i64 %82 to i64* %84 = load i64, i64* %83, align 8 %85 = call i64 @FUNC(i64 %84, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_6, i64 0, i64 0), i32 0, i64 %77, i64 %r8.052.reload, i64 %1) store i64 4294967284, i64* %rax.0.reg2mem br label LBL_20 LBL_15: store i64 %79, i64* %15, align 8 %86 = load i32, i32* %13, align 4 %87 = add i32 %86, 1 store i32 %87, i32* %13, align 4 %88 = sext i32 %86 to i64 %89 = mul i64 %88, 8 %90 = add i64 %89, %79 %91 = inttoptr i64 %90 to i64* store i64 %62, i64* %91, align 8 %92 = call i32 @strlen(i8* %7) %93 = sub i32 63, %92 %94 = load i32, i32* %69, align 4 %95 = load i32, i32* %67, align 4 %96 = zext i32 %94 to i64 %97 = zext i32 %95 to i64 %98 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %16, i32 20, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_7, i64 0, i64 0), i64 %97, i64 %96) %99 = call i8* @strncat(i8* %7, i8* nonnull %16, i32 %93) %100 = add i64 %.reload214, 1 %101 = and i64 %100, 4294967295 %102 = call i64 @FUNC(i64 %39, i64 0, i64 %101) %103 = trunc i64 %102 to i32 %104 = icmp slt i32 %103, 0 %105 = icmp eq i1 %104, false store i32 %103, i32* %.reg2mem store i64 %102, i64* %.reg2mem213 store i64 %96, i64* %r8.052.reg2mem store i64 %17, i64* %rcx.0.lcssa.reg2mem store i64 %96, i64* %r8.0.lcssa.reg2mem store i64 %101, i64* %.lcssa.reg2mem br i1 %105, label LBL_10, label LBL_16 LBL_16: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem %r8.0.lcssa.reload = load i64, i64* %r8.0.lcssa.reg2mem %rcx.0.lcssa.reload = load i64, i64* %rcx.0.lcssa.reg2mem %106 = add nuw i32 %storemerge59.reload, 1 %107 = icmp ugt i32 %storemerge59.reload, 6 store i32 %106, i32* %storemerge59.reg2mem store i64 %r8.0.lcssa.reload, i64* %r8.157.reg2mem store i64 %rcx.0.lcssa.reload, i64* %rcx.155.reg2mem store i64 %rcx.0.lcssa.reload, i64* %rcx.1.lcssa.reg2mem store i64 %r8.0.lcssa.reload, i64* %r8.1.lcssa.reg2mem store i64 %.lcssa.reload, i64* %rdx.1.reg2mem br i1 %107, label LBL_18, label LBL_17 LBL_17: %rcx.155.reload = load i64, i64* %rcx.155.reg2mem %r8.157.reload = load i64, i64* %r8.157.reg2mem %storemerge59.reload = load i32, i32* %storemerge59.reg2mem %108 = icmp eq i32 %storemerge59.reload, 0 %.pre = sext i32 %storemerge59.reload to i64 %.pre109 = mul i64 %.pre, 4 %.pre111 = add i64 %.pre109, %2 %.pre113 = inttoptr i64 %.pre111 to i32* %.pr = load i32, i32* %.pre113, align 4 %109 = icmp eq i32 %.pr, 0 %110 = icmp eq i1 %109, false %or.cond = or i1 %108, %110 store i64 %rcx.155.reload, i64* %rcx.1.lcssa.reg2mem store i64 %r8.157.reload, i64* %r8.1.lcssa.reg2mem store i64 %.pre, i64* %rdx.1.reg2mem br i1 %or.cond, label LBL_1, label LBL_18 LBL_18: %111 = load i32, i32* %11, align 4 %112 = icmp eq i32 %111, 0 %113 = icmp eq i1 %112, false store i64 0, i64* %rax.0.reg2mem br i1 %113, label LBL_20, label LBL_19 LBL_19: %rdx.1.reload = load i64, i64* %rdx.1.reg2mem %r8.1.lcssa.reload = load i64, i64* %r8.1.lcssa.reg2mem %rcx.1.lcssa.reload = load i64, i64* %rcx.1.lcssa.reg2mem %114 = add i64 %3, 8 %115 = inttoptr i64 %114 to i64* %116 = load i64, i64* %115, align 8 %117 = trunc i64 %rdx.1.reload to i32 %118 = call i64 @FUNC(i64 %116, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_8, i64 0, i64 0), i32 %117, i64 %rcx.1.lcssa.reload, i64 %r8.1.lcssa.reload, i64 %1) store i64 4294967274, 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 i32 %.pr, { 8, 3, 2, 6, 7, 1, 5, 0, 4 } uselistorder i32 %storemerge59.reload, { 2, 1, 4, 0, 3 } uselistorder i64 %r8.157.reload, { 0, 1, 2, 3, 5, 6, 4 } uselistorder i64 %77, { 1, 0 } uselistorder i32 %52, { 1, 2, 0, 4, 3 } uselistorder i64 %.reload214, { 1, 0 } uselistorder i64 %39, { 3, 1, 2, 0, 4 } uselistorder i64 %30, { 1, 2, 0, 3 } uselistorder i32* %13, { 1, 0, 2 } uselistorder i64 %3, { 6, 5, 4, 3, 2, 1, 0, 7 } uselistorder i64 %1, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i32* %.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem213, { 2, 0, 1 } uselistorder i64* %r8.052.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 9, 2, 8, 1, 7, 6, 5, 4, 3 } uselistorder i64 4294967284, { 1, 0 } uselistorder i64 (i64, i64, i64)* @comedi_find_subdevice_by_type, { 1, 0 } uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 1, 0 } uselistorder i1 false, { 9, 0, 6, 3, 4, 5, 2, 1, 7, 8 } uselistorder i64 4294967274, { 4, 3, 2, 1, 0 } uselistorder i64 (i64, i8*, i32, i64, i64, i64)* @dev_err, { 0, 6, 5, 4, 3, 2, 1 } uselistorder i32 0, { 8, 1, 9, 6, 3, 4, 5, 2, 7, 0 } uselistorder i64 64, { 4, 1, 0, 3, 2 } uselistorder i8 0, { 1, 2, 0 } uselistorder label LBL_20, { 8, 1, 2, 0, 3, 4, 5, 6, 7 } uselistorder label LBL_17, { 1, 0 } uselistorder label LBL_10, { 1, 0 } }
1
BinRealVul
mod_sysfs_setup_4436
mod_sysfs_setup
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i32 %arg4) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false store i64 %1, i64* %sv_0.1.reg2mem br i1 %4, label LBL_6, label LBL_1 LBL_1: %5 = ptrtoint i64* %arg3 to i64 %6 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 %0) store i64 %6, i64* %arg1, align 8 %7 = call i64 @FUNC(i64 %0, i64 %5, i32 %arg4) %8 = trunc i64 %7 to i32 %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false store i64 %7, i64* %sv_0.0.reg2mem br i1 %10, label LBL_5, label LBL_2 LBL_2: %11 = call i64 @FUNC(i64 %0) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false br i1 %14, label LBL_4, label LBL_3 LBL_3: %15 = ptrtoint i64* %arg2 to i64 %16 = call i64 @FUNC(i64 %0) %17 = call i64 @FUNC(i64 %0, i64 %15) %18 = call i64 @FUNC(i64 %0, i64 %15) %19 = call i64 @FUNC(i64 %0, i64 1) store i64 0, i64* %storemerge.reg2mem br label LBL_7 LBL_4: %20 = call i64 @FUNC(i64 %0) store i64 %11, i64* %sv_0.0.reg2mem br label LBL_5 LBL_5: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %21 = call i64 @FUNC(i64 %0) %22 = call i64 @FUNC(i64 %0) store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem br label LBL_6 LBL_6: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %23 = and i64 %sv_0.1.reload, 4294967295 store i64 %23, i64* %storemerge.reg2mem br label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %15, { 1, 0 } uselistorder i64 %0, { 7, 0, 1, 2, 3, 4, 5, 6, 8, 9, 10 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 1, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_5, { 1, 0 } }
0
BinRealVul
exitErrorHandler_6241
exitErrorHandler
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = trunc i64 %0 to i32 %2 = insertvalue [8 x i32] undef, i32 %1, 0 %3 = insertvalue %__jmp_buf_tag undef, [8 x i32] %2, 0 %4 = insertvalue [1 x %__jmp_buf_tag] undef, %__jmp_buf_tag %3, 0 call void @longjmp([1 x %__jmp_buf_tag] %4, i32 1) ret i64 ptrtoint (i32* @0 to i64) }
0
BinRealVul
qemu_aio_flush_2971
qemu_aio_flush
define i64 @FUNC() local_unnamed_addr { LBL_0: %sv_0.01.reg2mem = alloca i32 %storemerge2.reg2mem = alloca i64 br label LBL_1 LBL_1: %0 = call i64 @FUNC() store i64 ptrtoint (i64* @gv_0 to i64), i64* %storemerge2.reg2mem store i32 0, i32* %sv_0.01.reg2mem br label LBL_2 LBL_2: %sv_0.01.reload = load i32, i32* %sv_0.01.reg2mem %storemerge2.reload = load i64, i64* %storemerge2.reg2mem %1 = add i64 %storemerge2.reload, 16 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = trunc i64 %3 to i32 %5 = or i32 %sv_0.01.reload, %4 %6 = inttoptr i64 %storemerge2.reload to i64* %7 = load i64, i64* %6, align 8 %8 = icmp eq i64 %7, 0 %9 = icmp eq i1 %8, false store i64 %7, i64* %storemerge2.reg2mem store i32 %5, i32* %sv_0.01.reg2mem br i1 %9, label LBL_2, label LBL_3 LBL_3: %10 = call i64 @FUNC() %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_1.backedge, label LBL_5 LBL_4: br label LBL_1 LBL_5: %14 = icmp eq i32 %5, 0 %15 = icmp slt i32 %5, 0 %16 = icmp eq i1 %15, false %17 = icmp eq i1 %14, false %18 = icmp eq i1 %16, %17 br i1 %18, label LBL_1.backedge, label LBL_6 LBL_6: ret i64 %10 uselistorder i32 %5, { 2, 1, 0 } uselistorder i64* %storemerge2.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.01.reg2mem, { 1, 0, 2 } uselistorder i1 false, { 1, 0, 2, 3 } uselistorder i32 0, { 1, 2, 3, 0 } uselistorder i32 1, { 2, 1, 0 } uselistorder label LBL_1.backedge, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
usb_packet_map_16959
usb_packet_map
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge2.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i32 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %sv_0 = alloca i64, align 8 %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, 0 store i64 0, i64* %storemerge2.reg2mem br i1 %4, label LBL_6, label LBL_1 LBL_1: %5 = ptrtoint i64* %arg2 to i64 %6 = trunc i64 %1 to i32 %7 = icmp eq i32 %6, 1 %8 = zext i1 %7 to i32 %9 = ptrtoint i32* %arg1 to i64 %10 = add i64 %9, 8 %11 = and i64 %2, 4294967295 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge3.reg2mem br label LBL_2 LBL_2: %.reload = load i64, i64* %.reg2mem %12 = mul i64 %.reload, 16 %13 = add i64 %12, %5 %14 = add i64 %13, 16 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = sext i32 %16 to i64 store i64 %17, i64* %sv_0, align 8 %18 = add i64 %13, 8 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = call i64 @FUNC(i64 %20, i64* nonnull %sv_0, i32 %8) %22 = icmp eq i64 %21, 0 br i1 %22, label LBL_5, label LBL_3 LBL_3: %23 = load i64, i64* %sv_0, align 8 %24 = call i64 @FUNC(i64 %10, i64 %21, i64 %23) %25 = load i32, i32* %15, align 4 %26 = sext i32 %25 to i64 %27 = load i64, i64* %sv_0, align 8 %28 = icmp eq i64 %27, %26 %29 = icmp eq i1 %28, false br i1 %29, label LBL_5, label LBL_4 LBL_4: %storemerge3.reload = load i32, i32* %storemerge3.reg2mem %30 = add i32 %storemerge3.reload, 1 %31 = sext i32 %30 to i64 %32 = icmp sgt i64 %11, %31 store i64 %31, i64* %.reg2mem store i32 %30, i32* %storemerge3.reg2mem store i64 0, i64* %storemerge2.reg2mem br i1 %32, label LBL_2, label LBL_6 LBL_5: %33 = call i64 @FUNC(i64 %9) store i64 4294967295, i64* %storemerge2.reg2mem br label LBL_6 LBL_6: %storemerge2.reload = load i64, i64* %storemerge2.reg2mem ret i64 %storemerge2.reload uselistorder i64* %sv_0, { 1, 2, 0, 3 } uselistorder i64 %2, { 1, 0 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge2.reg2mem, { 0, 3, 1, 2 } uselistorder i64* %0, { 1, 0 } uselistorder i64 16, { 1, 0 } uselistorder i64 8, { 1, 0, 2 } uselistorder label LBL_6, { 2, 0, 1 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
double_evtchn_unlock_13231
double_evtchn_unlock
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = icmp eq i64* %arg1, %arg2 store i64 %0, i64* %rax.0.reg2mem br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = ptrtoint i64* %arg2 to i64 %4 = call i64 @FUNC(i64 %3) store i64 %4, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 (i64)* @spin_unlock, { 1, 0 } uselistorder i64* %arg2, { 1, 0 } }
1
BinRealVul
gf_bs_read_ue_log_idx3_6979
gf_bs_read_ue_log_idx3
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3, i32 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %sv_2.0.lcssa13.reg2mem = alloca i8* %sv_2.03.reg2mem = alloca i8* %sv_0.04.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = sext i32 %arg4 to i64 %3 = ptrtoint i64* %arg1 to i64 store i32 0, i32* %sv_0.04.reg2mem store i8* inttoptr (i32 -1 to i8*), i8** %sv_2.03.reg2mem br label LBL_1 LBL_1: %sv_2.03.reload = load i8*, i8** %sv_2.03.reg2mem %4 = ptrtoint i8* %sv_2.03.reload to i64 %5 = trunc i64 %4 to i32 %6 = icmp sgt i32 %5, 31 store i8* %sv_2.03.reload, i8** %sv_2.0.lcssa13.reg2mem br i1 %6, label LBL_4, label LBL_2 LBL_2: %sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem %7 = call i64 @FUNC(i64 %3, i64 1) %8 = trunc i64 %7 to i32 %9 = add nuw nsw i32 %sv_0.04.reload, 1 %10 = add i64 %4, 1 %11 = and i64 %10, 4294967295 %12 = inttoptr i64 %11 to i8* %13 = icmp eq i32 %8, 0 store i32 %9, i32* %sv_0.04.reg2mem store i8* %12, i8** %sv_2.03.reg2mem br i1 %13, label LBL_1, label LBL_3 LBL_3: %.pre11 = trunc i64 %10 to i32 %14 = icmp slt i32 %.pre11, 32 store i8* %12, i8** %sv_2.0.lcssa13.reg2mem br i1 %14, label LBL_7, label LBL_4 LBL_4: %15 = call i64 @FUNC(i64 %3) %16 = trunc i64 %15 to i32 %17 = icmp eq i32 %16, 0 %18 = icmp eq i1 %17, false br i1 %18, label LBL_6, label LBL_5 LBL_5: %19 = call i64 @FUNC(i64 1, i64 2, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @gv_0, i64 0, i64 0), i64 %2, i64 %arg5, i64 %1) store i64 0, i64* %storemerge.reg2mem br label LBL_12 LBL_6: %sv_2.0.lcssa13.reload = load i8*, i8** %sv_2.0.lcssa13.reg2mem %20 = call i64 @FUNC(i64 1, i64 2, i8* %sv_2.0.lcssa13.reload, i64 %2, i64 %arg5, i64 %1) store i64 0, i64* %storemerge.reg2mem br label LBL_12 LBL_7: %21 = icmp eq i32 %.pre11, 0 store i32 0, i32* %sv_1.0.reg2mem store i32 %9, i32* %sv_0.1.reg2mem br i1 %21, label LBL_9, label LBL_8 LBL_8: %22 = call i64 @FUNC(i64 %3, i64 %11) %23 = trunc i64 %22 to i32 %24 = urem i32 %.pre11, 32 %25 = icmp eq i32 %24, 0 %notmask = shl nsw i32 -1, %24 %26 = sub i32 0, %notmask %phitmp = sub i32 %26, 1 %sv_3.0 = select i1 %25, i32 0, i32 %phitmp %27 = add i32 %sv_3.0, %23 %28 = add i32 %9, %.pre11 store i32 %27, i32* %sv_1.0.reg2mem store i32 %28, i32* %sv_0.1.reg2mem br label LBL_9 LBL_9: %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %29 = icmp eq i64 %arg2, 0 br i1 %29, label LBL_11, label LBL_10 LBL_10: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %30 = call i64 @FUNC(i64 %3, i32 %sv_0.1.reload, i64 %arg2, i32 %sv_1.0.reload, i32 %arg3, i32 %arg4) br label LBL_11 LBL_11: %31 = zext i32 %sv_1.0.reload to i64 store i64 %31, i64* %storemerge.reg2mem br label LBL_12 LBL_12: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %.pre11, { 1, 0, 3, 2 } uselistorder i32 %9, { 2, 0, 1 } uselistorder i64 %3, { 3, 2, 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i32* %sv_0.04.reg2mem, { 1, 0, 2 } uselistorder i8** %sv_2.03.reg2mem, { 1, 0, 2 } uselistorder i8** %sv_2.0.lcssa13.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @GF_LOG, { 1, 0 } uselistorder i64 (i64, i64)* @gf_bs_read_int, { 1, 0 } uselistorder i64 1, { 2, 3, 1, 4, 0 } uselistorder i64 %arg5, { 1, 0 } uselistorder i64 %arg2, { 1, 0 } uselistorder label LBL_12, { 2, 1, 0 } uselistorder label LBL_4, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
kvm_init_debug_7891
kvm_init_debug
define i64 @FUNC() local_unnamed_addr { LBL_0: %.lcssa.reg2mem = alloca i64 %sv_0.02.reg2mem = alloca i8* %.reg2mem6 = alloca i64 %.reg2mem = alloca i64 %0 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64 0) store i64 %0, i64* @gv_1, align 8 store i32 0, i32* bitcast (i64* @gv_2 to i32*), align 8 %1 = load [7 x i8]*, [7 x i8]** @gv_3, align 8 %2 = ptrtoint [7 x i8]* %1 to i64 %3 = icmp eq [7 x i8]* %1, null %4 = icmp eq i1 %3, false store i64 %0, i64* %.reg2mem store i64 %2, i64* %.reg2mem6 store i8* bitcast ([7 x i8]** @gv_3 to i8*), i8** %sv_0.02.reg2mem store i64 %2, i64* %.lcssa.reg2mem br i1 %4, label LBL_1, label LBL_3 LBL_1: %sv_0.02.reload = load i8*, i8** %sv_0.02.reg2mem %.reload7 = load i64, i64* %.reg2mem6 %.reload = load i64, i64* %.reg2mem %5 = ptrtoint i8* %sv_0.02.reload to i64 %6 = add i64 %5, 12 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = sext i32 %8 to i64 %10 = mul i64 %9, 8 %11 = add i64 %10, ptrtoint (i64* @gv_4 to i64) %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = add i64 %5, 8 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = sext i32 %16 to i64 %18 = call i64 @FUNC(i64 %.reload7, i64 420, i64 %.reload, i64 %17, i64 %13) %19 = add i64 %5, 16 store i32 ptrtoint (i32* @gv_5 to i32), i32* bitcast (i64* @gv_2 to i32*), align 8 %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 store i64 %21, i64* %.lcssa.reg2mem br i1 %23, label LBL_1.LBL_1_crit_edge, label LBL_3 LBL_2: %24 = inttoptr i64 %19 to i8* %.pre = load i64, i64* @gv_1, align 8 store i64 %.pre, i64* %.reg2mem store i64 %21, i64* %.reg2mem6 store i8* %24, i8** %sv_0.02.reg2mem br label LBL_1 LBL_3: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem ret i64 %.lcssa.reload uselistorder i64 %21, { 1, 0, 2 } uselistorder i64 %19, { 1, 0 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem6, { 2, 0, 1 } uselistorder i8** %sv_0.02.reg2mem, { 2, 0, 1 } uselistorder i64 8, { 1, 0 } uselistorder i1 false, { 1, 0 } uselistorder [7 x i8]** @gv_3, { 1, 0 } uselistorder i32* bitcast (i64* @gv_2 to i32*), { 1, 0 } uselistorder i32 1, { 4, 3, 2, 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
migrate_vma_check_page_12049
migrate_vma_check_page
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i8 %3 = icmp eq i8 %2, 0 store i64 0, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_4 LBL_1: %4 = call i64 @FUNC(i64 %0) %5 = trunc i64 %4 to i8 %6 = icmp eq i8 %5, 0 %spec.select = select i1 %6, i32 1, i32 2 %7 = call i64 @FUNC(i64 %0) %8 = icmp eq i64 %7, 0 store i32 %spec.select, i32* %sv_0.1.reg2mem br i1 %8, label LBL_3, label LBL_2 LBL_2: %9 = call i64 @FUNC(i64 %0) %10 = trunc i64 %9 to i32 %11 = urem i32 %10, 256 %12 = add nuw nsw i32 %spec.select, 1 %13 = add nuw nsw i32 %12, %11 store i32 %13, i32* %sv_0.1.reg2mem br label LBL_3 LBL_3: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %14 = call i64 @FUNC(i64 %0) %15 = trunc i64 %14 to i32 %16 = sub i32 %15, %sv_0.1.reload %17 = zext i32 %16 to i64 %18 = call i64 @FUNC(i64 %0) %19 = icmp sge i64 %18, %17 %. = zext i1 %19 to i64 store i64 %., i64* %rax.0.reg2mem br label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %spec.select, { 1, 0 } uselistorder i64 %0, { 2, 1, 0, 3, 4, 5 } }
1
BinRealVul
Jsi_ValueToNumber_5922
Jsi_ValueToNumber
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 %sv_0 = alloca i64, align 8 %sv_1 = alloca i32*, align 8 store i32* %arg2, i32** %sv_1, align 8 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 2 %4 = icmp eq i1 %3, false store i64 0, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_3 LBL_1: %5 = ptrtoint i64* %arg1 to i64 %6 = ptrtoint i32* %arg2 to i64 %7 = call i64 @FUNC(i64 %5, i64 %6, i64 0, i64* nonnull %sv_0) %8 = trunc i64 %7 to i32 %9 = icmp eq i32 %8, 0 store i64 1, i64* %rax.0.reg2mem br i1 %9, label LBL_2, label LBL_3 LBL_2: %10 = bitcast i32** %sv_1 to i64* %11 = call i64 @FUNC(i64 %5, i64* nonnull %10) %12 = load i64, i64* %sv_0, align 8 %13 = call i128 @FUNC(i64 %12) %14 = call i64 @FUNC(i64 %5, i64* nonnull %10) store i64 0, i64* %rax.0.reg2mem br label LBL_3 LBL_3: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %5, { 1, 0, 2 } uselistorder i32** %sv_1, { 1, 0 } uselistorder i64* %sv_0, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder label LBL_3, { 2, 0, 1 } }
0
BinRealVul
exynos4210_ltick_recalc_count_16133
exynos4210_ltick_recalc_count
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i64 %.reg2mem10 = alloca i64 %.pre-phi4.reg2mem = 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 br i1 %4, label LBL_3, label LBL_1 LBL_1: %5 = add i64 %2, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = icmp eq i64 %7, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_1.LBL_6_crit_edge, label LBL_3 LBL_2: %.pre5 = add i64 %2, 16 %.pre7 = inttoptr i64 %.pre5 to i64* %.pre9 = load i64, i64* %.pre7, align 8 store i64 %.pre9, i64* %.reg2mem store i64* %6, i64** %.pre-phi4.reg2mem br label LBL_6 LBL_3: %10 = add i64 %2, 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_7, label LBL_4 LBL_4: %14 = add i64 %2, 16 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = icmp eq i64 %16, 0 br i1 %17, label LBL_7, label LBL_4.LBL_6_crit_edge LBL_5: %.pre = add i64 %2, 8 %.pre3 = inttoptr i64 %.pre to i64* store i64 %16, i64* %.reg2mem store i64* %.pre3, i64** %.pre-phi4.reg2mem br label LBL_6 LBL_6: %.pre-phi4.reload = load i64*, i64** %.pre-phi4.reg2mem %.reload = load i64, i64* %.reg2mem %18 = load i64, i64* %.pre-phi4.reload, align 8 %19 = icmp eq i64 %18, 0 %20 = select i1 %19, i64 1, i64 %18 %spec.select = mul i64 %20, %.reload store i64 %spec.select, i64* %sv_0.0.reg2mem br label LBL_11 LBL_7: %21 = add i64 %2, 32 %22 = inttoptr i64 %21 to i64* %23 = load i64, i64* %22, align 8 %24 = icmp eq i64 %23, 0 %25 = add i64 %2, 24 %26 = inttoptr i64 %25 to i64* %27 = load i64, i64* %26, align 8 br i1 %24, label LBL_9, label LBL_8 LBL_8: %28 = mul i64 %27, %23 %29 = add i64 %2, 40 %30 = inttoptr i64 %29 to i64* store i64 %28, i64* %30, align 8 store i64 %28, i64* %.reg2mem10 br label LBL_10 LBL_9: %31 = add i64 %2, 40 %32 = inttoptr i64 %31 to i64* store i64 %27, i64* %32, align 8 store i64 %27, i64* %.reg2mem10 br label LBL_10 LBL_10: %.reload11 = load i64, i64* %.reg2mem10 %33 = add i64 %2, 48 %34 = inttoptr i64 %33 to i64* store i64 0, i64* %34, align 8 store i64 %.reload11, i64* %sv_0.0.reg2mem br label LBL_11 LBL_11: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %35 = add i64 %2, 56 %36 = inttoptr i64 %35 to i64* %37 = icmp ult i64 %sv_0.0.reload, 1000 %sv_0.0. = select i1 %37, i64 %sv_0.0.reload, i64 1000 store i64 %sv_0.0., i64* %36, align 8 ret i64 %2 uselistorder i64 %sv_0.0.reload, { 1, 0 } uselistorder i64 %27, { 0, 2, 1 } uselistorder i64 %2, { 2, 3, 4, 6, 8, 7, 5, 1, 10, 9, 0, 11 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64** %.pre-phi4.reg2mem, { 0, 2, 1 } uselistorder i64* %.reg2mem10, { 0, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64 16, { 1, 0 } uselistorder label LBL_11, { 1, 0 } }
1
BinRealVul
socketReceivedUDP_6322
socketReceivedUDP
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rsi.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %2 = call i64 @FUNC(i64* %arg2) %3 = icmp ult i64 %2, 16 store i64 %2, i64* %rax.0.reg2mem br i1 %3, label LBL_6, label LBL_1 LBL_1: %4 = ptrtoint i64* %sv_2 to i64 %5 = call i64 @FUNC(i64* %arg2, i64 0, i64 %4, i64 16) %6 = add i64 %4, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = add i64 %8, 16 %10 = icmp ugt i64 %2, %9 store i64 %9, i64* %rax.0.reg2mem br i1 %10, label LBL_6, label LBL_2 LBL_2: %11 = call i64 @FUNC() %12 = icmp eq i64 %11, 0 store i64 0, i64* %rax.0.reg2mem br i1 %12, label LBL_6, label LBL_3 LBL_3: %13 = load i64, i64* %7, align 8 %14 = call i64 @FUNC(i64 0, i64 16, i64 %13) %15 = load i64, i64* %7, align 8 %16 = add i64 %15, 16 %17 = icmp ugt i64 %2, %16 store i64 0, i64* %sv_0.0.reg2mem store i64 16, i64* %rsi.0.reg2mem br i1 %17, label LBL_4, label LBL_5 LBL_4: %18 = call i64 @FUNC(i64 16, i64 %16, i64 1024) store i64 %18, i64* %sv_0.0.reg2mem store i64 %16, i64* %rsi.0.reg2mem br label LBL_5 LBL_5: %19 = bitcast i64* %sv_2 to i8* %rsi.0.reload = load i64, i64* %rsi.0.reg2mem %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %20 = call i64 @FUNC(i64 %rsi.0.reload) store i64 %sv_0.0.reload, i64* %arg2, align 8 %21 = or i64 %4, 3 %22 = inttoptr i64 %21 to i8* %23 = load i8, i8* %22, align 1 %24 = or i64 %4, 2 %25 = inttoptr i64 %24 to i8* %26 = load i8, i8* %25, align 2 %27 = zext i8 %26 to i64 %28 = or i64 %4, 1 %29 = inttoptr i64 %28 to i8* %30 = load i8, i8* %29, align 1 %31 = zext i8 %30 to i64 %32 = load i8, i8* %19, align 8 %33 = zext i8 %23 to i64 %34 = zext i8 %32 to i64 %35 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 %34, i64 %31, i64 %27, i64 %33, i64 %1) %36 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i64 %35) %37 = or i64 %4, 4 %38 = inttoptr i64 %37 to i16* %39 = load i16, i16* %38, align 4 %40 = zext i16 %39 to i64 %41 = call i64 @FUNC(i64 %40) %42 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64 %41) %43 = load i64, i64* %7, align 8 %44 = urem i64 %43, 65536 %45 = call i64 @FUNC(i64 %44) %46 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i64 %45) store i64 %14, i64* %sv_1, align 8 %47 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_4, i64 0, i64 0), i64* nonnull %sv_1, i64 2) %48 = call i64 @FUNC(i64 %14, i64 %11) store i64 %48, 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 %14, { 1, 0 } uselistorder i64 %11, { 1, 0, 2, 3, 4 } uselistorder i64 %4, { 0, 3, 2, 1, 4, 5 } uselistorder i64 %2, { 1, 2, 0, 3 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rsi.0.reg2mem, { 0, 2, 1 } uselistorder i64 (i64)* @jsvNewFromInteger, { 1, 0 } uselistorder i64 (i64, i8*, i64)* @jsvObjectSetChildAndUnLock, { 2, 1, 0 } uselistorder i64 2, { 1, 0 } uselistorder i64 (i64, i64, i64)* @jsvNewFromStringVar, { 1, 0 } uselistorder i64 16, { 1, 0, 5, 3, 6, 4, 2 } uselistorder label LBL_6, { 2, 3, 0, 1 } uselistorder label LBL_5, { 1, 0 } }
0
BinRealVul
av_get_cpu_flags_1559
av_get_cpu_flags
define i64 @FUNC() local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i32 %0 = load i32, i32* bitcast (i32** @gv_0 to i32*), align 8 %1 = icmp eq i32 %0, -1 %2 = icmp eq i1 %1, false store i32 %0, i32* %sv_0.0.reg2mem br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64 @FUNC() %4 = trunc i64 %3 to i32 store i32 %4, i32* bitcast (i32** @gv_0 to i32*), align 8 store i32 %4, i32* %sv_0.0.reg2mem br label LBL_2 LBL_2: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %5 = zext i32 %sv_0.0.reload to i64 ret i64 %5 }
0
BinRealVul
omap_gpmc_init_14739
omap_gpmc_init
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC(i64 8) %1 = call i64 @FUNC(i64 %0, i64* nonnull @gv_0, i64 %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_1, i64 0, i64 0), i64 4096) %2 = call i64 @FUNC() %3 = call i64 @FUNC(i64 %2, i64 %arg1, i64 %0) %4 = call i64 @FUNC(i64 %0) ret i64 %0 uselistorder i64 %0, { 0, 1, 2, 4, 3 } }
1
BinRealVul
IRQ_get_next_586
IRQ_get_next
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, -1 %4 = icmp eq i1 %3, false br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = ptrtoint i64* %arg1 to i64 %6 = ptrtoint i32* %arg2 to i64 %7 = call i64 @FUNC(i64 %5, i64 %6) br label LBL_2 LBL_2: %8 = and i64 %1, 4294967295 ret i64 %8 uselistorder i64 %1, { 1, 0 } }
0
BinRealVul
local_create_mapped_attr_dir_2098
local_create_mapped_attr_dir
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i32 %sv_1 = alloca i64, align 8 %0 = call i64 @FUNC(i64 %arg2) %1 = call i64 @FUNC(i64 %0) %2 = bitcast i64* %sv_1 to i8* %3 = inttoptr i64 %1 to i8* %4 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %2, i32 4096, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64* %arg1, i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0)) %5 = call i32 @mkdir(i8* nonnull %2, i32 448) %6 = icmp slt i32 %5, 0 %7 = icmp eq i1 %6, false store i32 %5, i32* %sv_0.0.reg2mem br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = call i32* @__errno_location() %9 = load i32, i32* %8, align 4 %10 = icmp eq i32 %9, 17 %11 = icmp eq i1 %10, false %spec.select = select i1 %11, i32 %5, i32 0 store i32 %spec.select, i32* %sv_0.0.reg2mem br label LBL_2 LBL_2: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %12 = call i64 @FUNC(i64 %0) %13 = zext i32 %sv_0.0.reload to i64 ret i64 %13 uselistorder i32 %5, { 1, 0, 2 } }
0
BinRealVul
do_rt_sigreturn_v2_1180
do_rt_sigreturn_v2
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 104 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = call i64 @FUNC(i64 %0, i64 %3) %5 = urem i64 %3, 8 %6 = icmp eq i64 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_4, label LBL_1 LBL_1: %8 = call i64 @FUNC(i64 0, i64 0, i64 %3, i64 1) %9 = trunc i64 %8 to i32 %10 = icmp eq i32 %9, 0 br i1 %10, label LBL_4, label LBL_2 LBL_2: %11 = call i64 @FUNC(i64 %0, i64 %3, i64 0) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false br i1 %14, label LBL_4, label LBL_3 LBL_3: %15 = call i64 @FUNC(i64 0, i64 %3, i64 0) br label LBL_5 LBL_4: %16 = call i64 @FUNC(i64 0, i64 %3, i64 0) %17 = call i64 @FUNC(i64 11) br label LBL_5 LBL_5: ret i64 1 uselistorder i64 %3, { 4, 1, 2, 3, 0, 5 } uselistorder i64 (i64, i64, i64)* @unlock_user_struct, { 1, 0 } uselistorder i64 1, { 0, 2, 1 } }
0
BinRealVul
print_error_9614
print_error
define i64 @FUNC(i64 %arg1, i8* %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr { LBL_0: %0 = alloca i128 %1 = alloca i64 %rax.0.reg2mem = alloca i64 %2 = load i64, i64* %1 %3 = load i128, i128* %0 %4 = load i128, i128* %0 %5 = load i128, i128* %0 %6 = load i128, i128* %0 %7 = load i128, i128* %0 %8 = load i128, i128* %0 %9 = load i128, i128* %0 %10 = load i128, i128* %0 %sv_0 = alloca i64, align 8 %sv_1 = alloca i32, align 4 %11 = trunc i64 %2 to i8 %12 = icmp eq i8 %11, 0 br i1 %12, label LBL_2, label LBL_1 LBL_1: %13 = call i64 @FUNC(i128 %10) %14 = call i64 @FUNC(i128 %9) %15 = call i64 @FUNC(i128 %8) %16 = call i64 @FUNC(i128 %7) %17 = call i64 @FUNC(i128 %6) %18 = call i64 @FUNC(i128 %5) %19 = call i64 @FUNC(i128 %4) %20 = call i64 @FUNC(i128 %3) br label LBL_2 LBL_2: store i32 16, i32* %sv_1, align 4 %21 = ptrtoint i32* %sv_1 to i64 %22 = bitcast i64* %sv_0 to i8* %23 = call i32 @vsnprintf(i8* nonnull %22, i32 9998, i8* %arg2, i64 %21) call void (i32, i8*, ...) @syslog(i32 6, i8* nonnull %22) %24 = icmp eq i64 %arg1, 0 store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem br i1 %24, label LBL_4, label LBL_3 LBL_3: %25 = inttoptr i64 %arg1 to %_IO_FILE* %26 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %25, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0) %27 = sext i32 %26 to i64 store i64 %27, 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 i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i8 0, { 1, 0 } uselistorder i64 %arg1, { 1, 0 } }
0
BinRealVul
get_chroma_qp_14723
get_chroma_qp
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = add i64 %arg2, %arg1 %1 = and i64 %0, 4294967295 %2 = call i64 @FUNC(i64 %1, i64 0, i64 51) %sext1 = mul i64 %2, 4294967296 %3 = ashr exact i64 %sext1, 30 %4 = add i64 %3, ptrtoint (i32** @gv_0 to i64) %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = zext i32 %6 to i64 ret i64 %7 }
1
BinRealVul
_process_request_metaflags_6787
_process_request_metaflags
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rdi.0.ph8.reg2mem = alloca i64 %rcx.0.ph7.reg2mem = alloca i64 %sv_0.1.ph6.reg2mem = alloca i32 %rdi.0.ph.reg2mem = alloca i64 %rcx.0.ph.reg2mem = alloca i64 %sv_0.1.ph.reg2mem = alloca i32 %sv_1.1.ph.reg2mem = alloca i8* %sv_0.1.ph.be.reg2mem = alloca i32 %sv_1.1.ph.be.reg2mem = alloca i8* %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %4 = ashr exact i64 %sext, 32 %5 = add i64 %3, 24 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = zext i32 %7 to i64 %9 = icmp slt i64 %4, %8 br i1 %9, label LBL_2, label LBL_1 LBL_1: store i64 0, i64* %arg1, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_15 LBL_2: %10 = add i64 %3, 8 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = add i64 %3, 16 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = ashr exact i64 %sext, 30 %17 = add i64 %15, %16 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = sext i32 %19 to i64 %21 = add i64 %12, %20 %22 = inttoptr i64 %21 to i8* %23 = add i64 %3, 28 %24 = inttoptr i64 %23 to i32* %25 = load i32, i32* %24, align 4 %26 = sext i32 %25 to i64 %27 = add i64 %12, %26 store i8* %22, i8** %sv_1.1.ph.reg2mem store i32 0, i32* %sv_0.1.ph.reg2mem store i64 %15, i64* %rcx.0.ph.reg2mem store i64 %3, i64* %rdi.0.ph.reg2mem br label LBL_10 LBL_3: switch i32 %sv_0.1.ph6.reload, label LBL_12 [ i32 0, label LBL_4 i32 1, label LBL_9 ] LBL_4: %28 = load i8, i8* %sv_1.1.ph.reload, align 1 %29 = icmp eq i8 %28, 32 %30 = icmp eq i1 %29, false br i1 %30, label LBL_7, label LBL_5 LBL_5: %31 = add i64 %49, 1 %32 = inttoptr i64 %31 to i8* store i8* %32, i8** %sv_1.1.ph.be.reg2mem store i32 0, i32* %sv_0.1.ph.be.reg2mem br label LBL_6 LBL_6: %sv_0.1.ph.be.reload = load i32, i32* %sv_0.1.ph.be.reg2mem %sv_1.1.ph.be.reload = load i8*, i8** %sv_1.1.ph.be.reg2mem store i8* %sv_1.1.ph.be.reload, i8** %sv_1.1.ph.reg2mem store i32 %sv_0.1.ph.be.reload, i32* %sv_0.1.ph.reg2mem store i64 %rcx.0.ph7.reload, i64* %rcx.0.ph.reg2mem store i64 %rdi.0.ph8.reload, i64* %rdi.0.ph.reg2mem br label LBL_10 LBL_7: %.off = add i8 %28, -65 %33 = icmp ult i8 %.off, 58 store i64 4294967295, i64* %rax.0.reg2mem br i1 %33, label LBL_8, label LBL_15 LBL_8: %34 = sext i8 %28 to i64 %35 = add nsw i64 %34, 4294967231 %36 = and i64 %35, 4294967295 %37 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_1, i64 0, i64 0), i64 %36, i64 %rcx.0.ph7.reload, i64 %2, i64 %1) %38 = load i8, i8* %sv_1.1.ph.reload, align 1 %39 = sext i8 %38 to i64 %40 = add nsw i64 %39, 4294967231 %41 = and i64 %40, 4294967295 %42 = urem i64 %40, 64 %43 = shl i64 1, %42 %44 = or i64 %43, ptrtoint ([27 x i8]* @gv_0 to i64) store i64 %44, i64* %arg1, align 8 store i32 1, i32* %sv_0.1.ph6.reg2mem store i64 %41, i64* %rcx.0.ph7.reg2mem store i64 ptrtoint ([27 x i8]* @gv_0 to i64), i64* %rdi.0.ph8.reg2mem br label LBL_105 LBL_9: %45 = load i8, i8* %sv_1.1.ph.reload, align 1 %46 = icmp eq i8 %45, 32 %47 = add i64 %49, 1 %48 = inttoptr i64 %47 to i8* %sv_1.0 = select i1 %46, i8* %sv_1.1.ph.reload, i8* %48 %not. = icmp ne i1 %46, true %sv_0.0 = zext i1 %not. to i32 store i8* %sv_1.0, i8** %sv_1.1.ph.be.reg2mem store i32 %sv_0.0, i32* %sv_0.1.ph.be.reg2mem br label LBL_6 LBL_10: %rdi.0.ph.reload = load i64, i64* %rdi.0.ph.reg2mem %rcx.0.ph.reload = load i64, i64* %rcx.0.ph.reg2mem %sv_0.1.ph.reload = load i32, i32* %sv_0.1.ph.reg2mem %sv_1.1.ph.reload = load i8*, i8** %sv_1.1.ph.reg2mem %49 = ptrtoint i8* %sv_1.1.ph.reload to i64 %50 = icmp eq i64 %27, %49 %51 = icmp eq i1 %50, false store i32 %sv_0.1.ph.reload, i32* %sv_0.1.ph6.reg2mem store i64 %rcx.0.ph.reload, i64* %rcx.0.ph7.reg2mem store i64 %rdi.0.ph.reload, i64* %rdi.0.ph8.reg2mem br label LBL_105 LBL_11: %rdi.0.ph8.reload = load i64, i64* %rdi.0.ph8.reg2mem %rcx.0.ph7.reload = load i64, i64* %rcx.0.ph7.reg2mem %sv_0.1.ph6.reload = load i32, i32* %sv_0.1.ph6.reg2mem br label LBL_12 LBL_12: br i1 %51, label LBL_3, label LBL_13 LBL_13: %52 = urem i64 %rdi.0.ph8.reload, 281474976710657 %53 = icmp eq i64 %52, 0 store i64 0, i64* %rax.0.reg2mem br i1 %53, label LBL_15, label LBL_14 LBL_14: %54 = add i64 %3, 32 %55 = inttoptr i64 %54 to i8* store i8 1, i8* %55, align 1 store i64 0, i64* %rax.0.reg2mem br label LBL_15 LBL_15: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %rcx.0.ph7.reload, { 1, 0 } uselistorder i64 %49, { 2, 0, 1 } uselistorder i8* %sv_1.1.ph.reload, { 2, 3, 1, 4, 0 } uselistorder i8 %28, { 1, 0, 2 } uselistorder i64 %sext, { 1, 0 } uselistorder i64 %3, { 1, 0, 2, 4, 3, 5 } uselistorder i8** %sv_1.1.ph.be.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.1.ph.be.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.1.ph6.reg2mem, { 0, 2, 1 } uselistorder i64* %rcx.0.ph7.reg2mem, { 0, 2, 1 } uselistorder i64* %rdi.0.ph8.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4 } uselistorder i64* %0, { 1, 0 } uselistorder [27 x i8]* @gv_0, { 1, 0 } uselistorder i64 1, { 1, 0, 2 } uselistorder i1 false, { 1, 0 } uselistorder i8 32, { 1, 0 } uselistorder i32 0, { 1, 2, 0 } uselistorder i64 32, { 1, 0 } uselistorder label LBL_15, { 2, 1, 0, 3 } uselistorder label LBL_6, { 1, 0 } }
0
BinRealVul
calculate_operand_data_length_6830
calculate_operand_data_length
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.04.reg2mem = alloca i64 %storemerge25.reg2mem = alloca i32 %0 = ptrtoint i64* %arg1 to i64 store i32 0, i32* %storemerge25.reg2mem store i64 4, i64* %sv_0.04.reg2mem br label LBL_1 LBL_1: %sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem %storemerge25.reload = load i32, i32* %storemerge25.reg2mem %1 = sext i32 %storemerge25.reload to i64 %2 = mul i64 %1, 4 %3 = add i64 %2, %0 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = sext i32 %5 to i64 %7 = mul i64 %sv_0.04.reload, %6 %8 = icmp ult i64 %7, 2147483648 store i64 0, i64* %storemerge.reg2mem br i1 %8, label LBL_2, label LBL_3 LBL_2: %9 = add nuw i32 %storemerge25.reload, 1 %10 = icmp ult i32 %9, 4 store i32 %9, i32* %storemerge25.reg2mem store i64 %7, i64* %sv_0.04.reg2mem store i64 %7, i64* %storemerge.reg2mem br i1 %10, label LBL_1, label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32* %storemerge25.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.04.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 4, { 1, 0 } uselistorder label LBL_3, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
quota_mailbox_delete_shrink_quota_4609
quota_mailbox_delete_shrink_quota
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %sv_4 = alloca i64, align 8 %1 = call i64 @FUNC(i64 %0, i64 1) %2 = trunc i64 %1 to i32 %3 = icmp slt i32 %2, 0 %4 = icmp eq i1 %3, false store i64 4294967295, i64* %storemerge.reg2mem br i1 %4, label LBL_1, label LBL_7 LBL_1: %5 = call i64 @FUNC(i64 %0, i64 0) store i64 %5, i64* %sv_4, align 8 %6 = call i64 @FUNC(i64 %0) store i64 %6, i64* %sv_3, align 8 %7 = call i64 @FUNC() store i64 %7, i64* %sv_2, align 8 %8 = call i64 @FUNC(i64 %7) %9 = call i64 @FUNC(i64 %5, i64 %7, i64 0) store i64 %9, i64* %sv_1, align 8 %10 = call i64 @FUNC(i64* nonnull %sv_2) %11 = call i64 @FUNC(i64 %5, i64 0, i64 0) store i64 %11, i64* %sv_0, align 8 %12 = call i64 @FUNC(i64 %9, i64 %11) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false br i1 %15, label LBL_2, label LBL_4 LBL_2: %16 = call i64 @FUNC(i64 %6, i64 %11) %17 = load i64, i64* %sv_0, align 8 %18 = load i64, i64* %sv_1, align 8 %19 = call i64 @FUNC(i64 %18, i64 %17) %20 = trunc i64 %19 to i32 %21 = icmp eq i32 %20, 0 %22 = icmp eq i1 %21, false br i1 %22, label LBL_3, label LBL_4 LBL_3: %.pre = load i64, i64* %sv_0, align 8 %.pre1 = load i64, i64* %sv_3, align 8 %23 = call i64 @FUNC(i64 %.pre1, i64 %.pre) %24 = load i64, i64* %sv_0, align 8 %25 = load i64, i64* %sv_1, align 8 %26 = call i64 @FUNC(i64 %25, i64 %24) %27 = trunc i64 %26 to i32 %28 = icmp eq i32 %27, 0 %29 = icmp eq i1 %28, false br i1 %29, label LBL_3, label LBL_4 LBL_4: %30 = call i64 @FUNC(i64* nonnull %sv_0) %31 = call i64 @FUNC(i64* nonnull %sv_1) %32 = trunc i64 %31 to i32 %33 = icmp slt i32 %32, 0 %34 = icmp eq i1 %33, false br i1 %34, label LBL_6, label LBL_5 LBL_5: %35 = load i64, i64* %sv_3, align 8 %36 = call i64 @FUNC(i64 %35) br label LBL_6 LBL_6: %37 = call i64 @FUNC(i64* nonnull %sv_3) %38 = call i64 @FUNC(i64* nonnull %sv_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 i64* %sv_3, { 1, 2, 0, 3 } uselistorder i64* %sv_1, { 1, 2, 0, 3 } uselistorder i64* %sv_0, { 2, 3, 1, 0, 4 } uselistorder i64 %0, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i64)* @quota_free, { 1, 0 } uselistorder i64 (i64, i64)* @mailbox_search_next, { 2, 0, 1 } uselistorder i1 false, { 2, 3, 0, 1, 4 } uselistorder i32 0, { 2, 3, 0, 1, 4 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_4, { 1, 0, 2 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
psf_fwrite_11480
psf_fwrite
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.0.ph.reg2mem = alloca i128 %sv_1.0.ph.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = udiv i64 %arg1, %arg2 store i64 %4, i64* %rax.0.reg2mem br label LBL_14 LBL_2: %5 = mul i64 %arg3, %arg2 %6 = icmp eq i64 %5, 0 %7 = icmp slt i64 %5, 0 %8 = icmp eq i1 %7, false %9 = icmp eq i1 %6, false %10 = icmp eq i1 %8, %9 store i64 0, i64* %rax.0.reg2mem br i1 %10, label LBL_3, label LBL_14 LBL_3: %11 = ptrtoint i64* %arg4 to i64 %12 = add i64 %11, 40 %13 = inttoptr i64 %12 to i32* store i64 %5, i64* %sv_1.0.ph.reg2mem store i128 0, i128* %sv_0.0.ph.reg2mem br label LBL_9 LBL_4: %14 = load i32, i32* %13, align 4 %15 = call i32 @write(i32 %14, i64* %47, i32 %49) %16 = icmp eq i32 %15, -1 %17 = icmp eq i1 %16, false br i1 %17, label LBL_7, label LBL_5 LBL_5: %18 = call i32* @__errno_location() %19 = load i32, i32* %18, align 4 %20 = icmp eq i32 %19, 4 %21 = icmp eq i1 %20, false br i1 %21, label LBL_6, label LBL_10 LBL_6: %22 = call i32* @__errno_location() %23 = load i32, i32* %22, align 4 %24 = zext i32 %23 to i64 %25 = call i64 @FUNC(i64 %11, i64 %24) br label LBL_11 LBL_7: %26 = icmp eq i32 %15, 0 br i1 %26, label LBL_11, label LBL_8 LBL_8: %27 = sext i32 %15 to i64 %28 = add i64 %27, %45 %29 = sext i64 %28 to i128 %30 = sub i64 %sv_1.0.ph.reload, %27 store i64 %30, i64* %sv_1.0.ph.reg2mem store i128 %29, i128* %sv_0.0.ph.reg2mem br label LBL_9 LBL_9: %sv_0.0.ph.reload = load i128, i128* %sv_0.0.ph.reg2mem %sv_1.0.ph.reload = load i64, i64* %sv_1.0.ph.reg2mem %31 = icmp eq i64 %sv_1.0.ph.reload, 0 %32 = icmp slt i64 %sv_1.0.ph.reload, 0 %33 = icmp eq i1 %32, false %34 = icmp eq i1 %31, false %35 = icmp eq i1 %33, %34 %36 = add i64 %sv_1.0.ph.reload, -4096 %37 = sub i64 4095, %sv_1.0.ph.reload %38 = and i64 %37, %sv_1.0.ph.reload %39 = icmp slt i64 %38, 0 %40 = icmp eq i64 %36, 0 %41 = icmp slt i64 %36, 0 %42 = icmp eq i1 %41, %39 %43 = icmp eq i1 %40, false %44 = icmp eq i1 %42, %43 %45 = trunc i128 %sv_0.0.ph.reload to i64 %46 = add i64 %45, %arg1 %47 = inttoptr i64 %46 to i64* %48 = trunc i64 %sv_1.0.ph.reload to i32 %49 = select i1 %44, i32 4096, i32 %48 br label LBL_10 LBL_10: br i1 %35, label LBL_4, label LBL_11 LBL_11: %50 = add i64 %11, 24 %51 = inttoptr i64 %50 to i32* %52 = load i32, i32* %51, align 4 %53 = icmp eq i32 %52, 0 br i1 %53, label LBL_13, label LBL_12 LBL_12: %54 = add i64 %11, 32 %55 = inttoptr i64 %54 to i64* %56 = load i64, i64* %55, align 8 %57 = add i64 %56, %45 store i64 %57, i64* %55, align 8 br label LBL_13 LBL_13: %58 = and i128 %sv_0.0.ph.reload, 18446744073709551615 %59 = zext i64 %arg2 to i128 %60 = udiv i128 %58, %59 %61 = trunc i128 %60 to i64 store i64 %61, 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 %45, { 0, 2, 1 } uselistorder i64 %36, { 1, 0 } uselistorder i64 %sv_1.0.ph.reload, { 4, 6, 3, 5, 2, 1, 0 } uselistorder i128 %sv_0.0.ph.reload, { 1, 0 } uselistorder i64 %27, { 1, 0 } uselistorder i32 %15, { 1, 0, 2 } uselistorder i64 %11, { 2, 1, 0, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i32* ()* @__errno_location, { 1, 0 } uselistorder i1 false, { 4, 5, 0, 2, 3, 6, 1 } uselistorder i32 0, { 1, 0, 2 } uselistorder i64 %arg2, { 2, 1, 0 } uselistorder i64 %arg1, { 1, 0 } uselistorder label LBL_14, { 1, 0, 2 } uselistorder label LBL_11, { 1, 0, 2 } uselistorder label LBL_9, { 1, 0 } }
1
BinRealVul
cJSON_DetachItemFromObject_3637
cJSON_DetachItemFromObject
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.06.reg2mem = alloca i32 %storemerge17.reg2mem = alloca i64 %0 = add i64 %arg1, 8 %storemerge1.in3 = inttoptr i64 %0 to i64* %storemerge14 = load i64, i64* %storemerge1.in3, align 8 %cond5 = icmp eq i64 %storemerge14, 0 store i64 %storemerge14, i64* %storemerge17.reg2mem store i32 0, i32* %sv_0.06.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %cond5, label LBL_4, label LBL_2 LBL_1: %1 = add i32 %sv_0.06.reload, 1 %storemerge1.in = inttoptr i64 %storemerge17.reload to i64* %storemerge1 = load i64, i64* %storemerge1.in, align 8 %cond = icmp eq i64 %storemerge1, 0 store i64 %storemerge1, i64* %storemerge17.reg2mem store i32 %1, i32* %sv_0.06.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %cond, label LBL_4, label LBL_2 LBL_2: %sv_0.06.reload = load i32, i32* %sv_0.06.reg2mem %storemerge17.reload = load i64, i64* %storemerge17.reg2mem %2 = add i64 %storemerge17.reload, 16 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = call i64 @FUNC(i64 %4, i64 %arg2) %6 = trunc i64 %5 to i32 %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false br i1 %8, label LBL_1, label LBL_3 LBL_3: %9 = zext i32 %sv_0.06.reload to i64 %10 = call i64 @FUNC(i64 %arg1, i64 %9) store i64 %10, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %sv_0.06.reload, { 1, 0 } uselistorder i64* %storemerge17.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.06.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 3, 1, 2 } uselistorder i32 0, { 1, 0 } uselistorder i32 1, { 3, 2, 1, 0 } uselistorder label LBL_4, { 2, 0, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
mxf_read_sequence_14732
mxf_read_sequence
define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = icmp eq i32 %arg3, 4097 br i1 %2, label LBL_6, label LBL_1 LBL_1: %3 = icmp sgt i32 %arg3, 4097 store i64 0, i64* %rax.0.reg2mem br i1 %3, label LBL_7, label LBL_2 LBL_2: %4 = icmp eq i32 %arg3, 513 br i1 %4, label LBL_5, label LBL_3 LBL_3: %5 = icmp eq i32 %arg3, 514 %6 = icmp eq i1 %5, false store i64 0, i64* %rax.0.reg2mem br i1 %6, label LBL_7, label LBL_4 LBL_4: %7 = call i64 @FUNC(i64 %0) store i64 %7, i64* %arg1, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_7 LBL_5: %8 = add i64 %1, 8 %9 = call i64 @FUNC(i64 %0, i64 %8, i64 16) store i64 0, i64* %rax.0.reg2mem br label LBL_7 LBL_6: %10 = call i64 @FUNC(i64 %0) %11 = trunc i64 %10 to i32 %12 = add i64 %1, 24 %13 = inttoptr i64 %12 to i32* store i32 %11, i32* %13, align 4 store i64 4294967295, 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 %1, { 1, 0 } uselistorder i64 %0, { 2, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 2, 1 } uselistorder i32 4097, { 1, 0 } uselistorder label LBL_7, { 4, 3, 2, 1, 0 } }
1
BinRealVul
cgit_get_cmd_19152
cgit_get_cmd
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, null %1 = icmp eq i1 %0, false br i1 %1, label LBL_4, label LBL_1 LBL_1: %2 = ptrtoint i64* %arg1 to i64 %3 = add i64 %2, 8 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = icmp eq i32 %5, 0 br i1 %6, label LBL_3, label LBL_2 LBL_2: store i64 ptrtoint ([8 x i8]* @gv_0 to i64), i64* %arg1, align 8 br label LBL_4 LBL_3: store i64 ptrtoint ([9 x i8]* @gv_1 to i64), i64* %arg1, align 8 br label LBL_4 LBL_4: %7 = bitcast i64* %arg1 to i8* store i64 0, i64* %indvars.iv.reg2mem br label LBL_5 LBL_5: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %8 = mul i64 %indvars.iv.reload, 16 %9 = add i64 %8, ptrtoint ([6 x i8]** @gv_2 to i64) %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = inttoptr i64 %11 to i8* %13 = call i32 @strcmp(i8* %7, i8* %12) %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false store i64 %9, i64* %storemerge.reg2mem br i1 %15, label LBL_6, label LBL_7 LBL_6: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %16 = icmp ult i64 %indvars.iv.next, 13 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %16, label LBL_5, label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %arg1, { 0, 1, 2, 4, 3 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
ERROR_520
ERROR
define i64 @FUNC(i8* %arg1) local_unnamed_addr { LBL_0: %0 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %1 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i8* %arg1) call void @exit(i32 1) ret i64 ptrtoint (i32* @0 to i64) }
0
BinRealVul
process_frame_obj_6084
process_frame_obj
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rcx.0.reg2mem = alloca i64 %.pre-phi21.reg2mem = alloca i64* %.pre-phi17.reg2mem = alloca i32 %.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = ptrtoint i64* %arg1 to i64 %6 = add i64 %5, 16 %7 = call i64 @FUNC(i64 %6) %8 = call i64 @FUNC(i64 %6) %9 = call i64 @FUNC(i64 %6) %10 = call i64 @FUNC(i64 %6) %11 = trunc i64 %10 to i16 %12 = call i64 @FUNC(i64 %6) %13 = icmp eq i16 %11, 0 br i1 %13, label LBL_2, label LBL_1 LBL_1: %14 = trunc i64 %12 to i32 %sext8 = mul i32 %14, 65536 %15 = ashr exact i32 %sext8, 16 %16 = trunc i32 %15 to i16 %17 = icmp eq i16 %16, 0 %18 = icmp eq i1 %17, false br i1 %18, label LBL_3, label LBL_2 LBL_2: %19 = add i64 %5, 8 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = call i64 @FUNC(i64 %21, i64 16, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_19 LBL_3: %23 = trunc i64 %8 to i32 %sext6 = mul i32 %23, 65536 %24 = ashr exact i32 %sext6, 16 %25 = trunc i64 %9 to i32 %sext7 = mul i32 %25, 65536 %26 = ashr exact i32 %sext7, 16 %27 = trunc i64 %10 to i32 %28 = urem i32 %27, 65536 %29 = trunc i64 %3 to i32 %30 = urem i32 %24, 65536 %31 = add nuw nsw i32 %28, %30 %32 = icmp ugt i32 %31, %29 %.pre = add i64 %5, 4 %.pre10 = inttoptr i64 %.pre to i32* br i1 %32, label LBL_3.LBL_7_crit_edge, label LBL_5 LBL_4: %.pre12 = urem i32 %15, 65536 %.pre14 = urem i32 %26, 65536 %.pre16 = add nuw nsw i32 %.pre12, %.pre14 %.pre22 = load i32, i32* %.pre10, align 4 store i32 %.pre22, i32* %.reg2mem store i32 %.pre16, i32* %.pre-phi17.reg2mem br label LBL_7 LBL_5: %33 = load i32, i32* %.pre10, align 4 %34 = urem i32 %26, 65536 %35 = urem i32 %15, 65536 %36 = add nuw nsw i32 %35, %34 %37 = icmp ult i32 %33, %36 store i32 %33, i32* %.reg2mem store i32 %36, i32* %.pre-phi17.reg2mem br i1 %37, label LBL_7, label LBL_5.LBL_10_crit_edge LBL_6: %38 = zext i32 %34 to i64 %.pre18 = add i64 %5, 8 %.pre20 = inttoptr i64 %.pre18 to i64* store i64* %.pre20, i64** %.pre-phi21.reg2mem store i64 %38, i64* %rcx.0.reg2mem br label LBL_10 LBL_7: %.pre-phi17.reload = load i32, i32* %.pre-phi17.reg2mem %.reload = load i32, i32* %.reg2mem %39 = add i64 %5, 8 %40 = inttoptr i64 %39 to i64* %41 = load i64, i64* %40, align 8 %42 = sub i32 %.reload, %.pre-phi17.reload %43 = xor i32 %42, -2147483648 %44 = and i32 %43, %.reload %45 = icmp slt i32 %44, 0 %46 = icmp slt i32 %42, 0 %47 = icmp eq i1 %46, %45 %48 = select i1 %47, i32 %.reload, i32 %.pre-phi17.reload %49 = sub i32 %29, %31 %50 = xor i32 %49, -2147483648 %51 = and i32 %50, %29 %52 = icmp slt i32 %51, 0 %53 = icmp slt i32 %49, 0 %54 = icmp eq i1 %53, %52 %55 = select i1 %54, i32 %29, i32 %31 %56 = zext i32 %55 to i64 %57 = call i64 @FUNC(i64 %56, i32 %48, i64 0, i64 %41) %58 = trunc i64 %57 to i32 %59 = icmp slt i32 %58, 0 %60 = icmp eq i1 %59, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %60, label LBL_8, label LBL_19 LBL_8: %61 = load i32, i32* %.pre10, align 4 %62 = sub i32 %61, %.pre-phi17.reload %63 = xor i32 %62, -2147483648 %64 = and i32 %63, %61 %65 = icmp slt i32 %64, 0 %66 = icmp slt i32 %62, 0 %67 = icmp eq i1 %66, %65 %68 = select i1 %67, i32 %61, i32 %.pre-phi17.reload %69 = load i64, i64* %40, align 8 %70 = zext i32 %68 to i64 %71 = call i64 @FUNC(i64 %69, i64 %56, i64 %70) %72 = load i32, i32* %.pre10, align 4 %73 = sub i32 %72, %.pre-phi17.reload %74 = xor i32 %73, -2147483648 %75 = and i32 %74, %72 %76 = icmp slt i32 %75, 0 %77 = icmp slt i32 %73, 0 %78 = icmp eq i1 %77, %76 %79 = select i1 %78, i32 %72, i32 %.pre-phi17.reload %80 = zext i32 %79 to i64 %81 = call i64 @FUNC(i64 %5, i64 %56, i64 %80) %82 = call i64 @FUNC(i64 %5) %83 = trunc i64 %82 to i32 %84 = icmp eq i32 %83, 0 store i64* %40, i64** %.pre-phi21.reg2mem store i64 %56, i64* %rcx.0.reg2mem br i1 %84, label LBL_10, label LBL_9 LBL_9: %85 = load i64, i64* %40, align 8 %86 = call i64 @FUNC(i64 %85, i64 16, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0), i64 %56, i64 %2, i64 %1) store i64 4294967284, i64* %rax.0.reg2mem br label LBL_19 LBL_10: %87 = trunc i64 %7 to i32 %sext = mul i32 %87, 65536 %88 = ashr exact i32 %sext, 16 %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %.pre-phi21.reload = load i64*, i64** %.pre-phi21.reg2mem %89 = call i64 @FUNC(i64 %6, i64 4) %90 = trunc i32 %88 to i16 %91 = load i64, i64* %.pre-phi21.reload, align 8 %92 = call i64 @FUNC(i64 %91, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0), i16 %90, i64 %rcx.0.reload, i64 %2, i64 %1) %93 = urem i32 %88, 65536 %94 = icmp eq i32 %93, 47 br i1 %94, label LBL_17, label LBL_11 LBL_11: %95 = icmp ugt i32 %93, 47 br i1 %95, label LBL_18, label LBL_12 LBL_12: %96 = icmp eq i32 %93, 37 br i1 %96, label LBL_16, label LBL_13 LBL_13: %97 = icmp ugt i32 %93, 37 br i1 %97, label LBL_18, label LBL_14 LBL_14: %98 = icmp ne i32 %93, 1 %99 = icmp eq i32 %93, 3 %100 = icmp eq i1 %99, false %or.cond = icmp eq i1 %98, %100 br i1 %or.cond, label LBL_18, label LBL_15 LBL_15: %101 = trunc i32 %24 to i16 %102 = trunc i32 %26 to i16 %103 = urem i32 %15, 65536 %104 = zext i32 %103 to i64 %105 = call i64 @FUNC(i64 %5, i16 %102, i16 %101, i16 %11, i64 %104) store i64 %105, i64* %rax.0.reg2mem br label LBL_19 LBL_16: %106 = trunc i32 %24 to i16 %107 = trunc i32 %26 to i16 %108 = urem i32 %15, 65536 %109 = zext i32 %108 to i64 %110 = call i64 @FUNC(i64 %5, i16 %107, i16 %106, i16 %11, i64 %109) store i64 %110, i64* %rax.0.reg2mem br label LBL_19 LBL_17: %111 = trunc i32 %24 to i16 %112 = trunc i32 %26 to i16 %113 = urem i32 %15, 65536 %114 = zext i32 %113 to i64 %115 = call i64 @FUNC(i64 %5, i16 %112, i16 %111, i16 %11, i64 %114) store i64 %115, i64* %rax.0.reg2mem br label LBL_19 LBL_18: %116 = load i64, i64* %.pre-phi21.reload, align 8 %117 = call i64 @FUNC(i64 %116, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_3, i64 0, i64 0), i16 %90, i64 %rcx.0.reload, i64 %2, i64 %1) store i64 4294967294, 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 i32 %93, { 5, 2, 4, 1, 3, 0 } uselistorder i64 %rcx.0.reload, { 1, 0 } uselistorder i32 %73, { 1, 0 } uselistorder i32 %72, { 1, 0, 2 } uselistorder i32 %62, { 1, 0 } uselistorder i32 %61, { 1, 0, 2 } uselistorder i64 %56, { 2, 0, 1, 3, 4 } uselistorder i32 %49, { 1, 0 } uselistorder i32 %42, { 1, 0 } uselistorder i64* %40, { 1, 0, 2, 3 } uselistorder i32 %.reload, { 1, 0, 2 } uselistorder i32 %.pre-phi17.reload, { 1, 0, 3, 2, 4, 5 } uselistorder i32* %.pre10, { 1, 2, 3, 0 } uselistorder i32 %31, { 2, 1, 0 } uselistorder i32 %29, { 2, 0, 3, 1 } uselistorder i32 %26, { 4, 3, 2, 0, 1 } uselistorder i32 %24, { 3, 2, 1, 0 } uselistorder i64 %5, { 4, 3, 2, 6, 5, 7, 0, 1, 8, 9 } uselistorder i64 %2, { 1, 0, 3, 2 } uselistorder i64 %1, { 1, 0, 3, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 6, 4, 3, 2, 1, 7 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 4, { 1, 0 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 } uselistorder i64 8, { 1, 0, 2 } uselistorder i32 16, { 3, 1, 2, 0 } uselistorder i32 65536, { 4, 5, 6, 7, 3, 8, 9, 10, 11, 12, 13, 1, 2, 0 } uselistorder i64 (i64)* @bytestream2_get_le16u, { 4, 3, 2, 1, 0 } uselistorder label LBL_19, { 1, 2, 3, 4, 5, 0, 6 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_7, { 1, 0 } }
0
BinRealVul
lookup_bytestring_4856
lookup_bytestring
define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge4.in8.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i64* %storemerge4.lcssa.reg2mem = alloca i32* %storemerge4.in.lcssa.reg2mem = alloca i64 %.reg2mem38 = alloca i64 %storemerge4.in10.reg2mem = alloca i64 %storemerge411.reg2mem = alloca i32* %.reg2mem36 = alloca i64* %.reg2mem = alloca i64 %r13.0.reg2mem = alloca i64 %r12.0.reg2mem = alloca i64 %rbx.0.reg2mem = alloca i64 %.pre-phi.reg2mem = alloca i32 %0 = ptrtoint i32* %arg1 to i64 %1 = trunc i64 %arg2 to i32 %sext = mul i64 %arg2, 4294967296 %2 = ashr exact i64 %sext, 32 %3 = icmp ult i32 %1, 6 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = mul i64 %0, 256 %5 = and i64 %4, 65280 %6 = add i64 %0, 1 %7 = inttoptr i64 %6 to i8* %8 = load i8, i8* %7, align 1 %9 = zext i8 %8 to i64 %10 = or i64 %5, %9 %11 = add i64 %0, 2 %12 = inttoptr i64 %11 to i8* %13 = load i8, i8* %12, align 1 %14 = zext i8 %13 to i64 %15 = mul i64 %14, 256 %16 = add i64 %0, 3 %17 = inttoptr i64 %16 to i8* %18 = load i8, i8* %17, align 1 %19 = zext i8 %18 to i64 %20 = or i64 %15, %19 %21 = add i64 %0, 4 %22 = inttoptr i64 %21 to i8* %23 = load i8, i8* %22, align 1 %24 = zext i8 %23 to i64 %25 = mul i64 %24, 256 %26 = add i64 %0, 5 %27 = inttoptr i64 %26 to i8* %28 = load i8, i8* %27, align 1 %29 = zext i8 %28 to i64 %30 = or i64 %25, %29 %.pre35 = trunc i64 %2 to i32 store i32 %.pre35, i32* %.pre-phi.reg2mem store i64 %20, i64* %rbx.0.reg2mem store i64 %10, i64* %r12.0.reg2mem store i64 %30, i64* %r13.0.reg2mem br label LBL_4 LBL_2: %31 = trunc i64 %2 to i32 %32 = icmp ult i32 %31, 4 store i32 %31, i32* %.pre-phi.reg2mem store i64 0, i64* %rbx.0.reg2mem store i64 0, i64* %r12.0.reg2mem store i64 0, i64* %r13.0.reg2mem br i1 %32, label LBL_4, label LBL_3 LBL_3: %33 = mul i64 %0, 256 %34 = and i64 %33, 65280 %35 = add i64 %0, 1 %36 = inttoptr i64 %35 to i8* %37 = load i8, i8* %36, align 1 %38 = zext i8 %37 to i64 %39 = or i64 %34, %38 %40 = add i64 %0, 2 %41 = inttoptr i64 %40 to i8* %42 = load i8, i8* %41, align 1 %43 = zext i8 %42 to i64 %44 = mul i64 %43, 256 %45 = add i64 %0, 3 %46 = inttoptr i64 %45 to i8* %47 = load i8, i8* %46, align 1 %48 = zext i8 %47 to i64 %49 = or i64 %44, %48 store i32 %31, i32* %.pre-phi.reg2mem store i64 %49, i64* %rbx.0.reg2mem store i64 %39, i64* %r12.0.reg2mem store i64 0, i64* %r13.0.reg2mem br label LBL_4 LBL_4: %r13.0.reload = load i64, i64* %r13.0.reg2mem %r12.0.reload = load i64, i64* %r12.0.reg2mem %rbx.0.reload = load i64, i64* %rbx.0.reg2mem %.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem %50 = xor i64 %r13.0.reload, %rbx.0.reload %51 = mul i64 %50, 32 %52 = and i64 %51, 8160 %53 = add i64 %52, ptrtoint (i32** @gv_0 to i64) %storemerge49 = inttoptr i64 %53 to i32* %54 = add i64 %52, add (i64 ptrtoint (i32** @gv_0 to i64), i64 24) %55 = inttoptr i64 %54 to i64* %56 = load i64, i64* %55, align 8 %57 = icmp eq i64 %56, 0 %58 = icmp eq i1 %57, false %59 = trunc i64 %r13.0.reload to i32 %60 = trunc i64 %rbx.0.reload to i32 %61 = trunc i64 %r12.0.reload to i32 store i64 %53, i64* %storemerge4.in.lcssa.reg2mem store i32* %storemerge49, i32** %storemerge4.lcssa.reg2mem store i64* %55, i64** %.lcssa.reg2mem br i1 %58, label LBL_5, label LBL_12 LBL_5: %62 = bitcast i32* %arg1 to i64* store i64 %56, i64* %.reg2mem store i64* %55, i64** %.reg2mem36 store i32* %storemerge49, i32** %storemerge411.reg2mem store i64 %53, i64* %storemerge4.in10.reg2mem br label LBL_6 LBL_6: %storemerge411.reload = load i32*, i32** %storemerge411.reg2mem %.reload = load i64, i64* %.reg2mem %63 = load i32, i32* %storemerge411.reload, align 4 %64 = icmp eq i32 %63, %59 %65 = icmp eq i1 %64, false store i64 %.reload, i64* %.reg2mem38 br i1 %65, label LBL_11, label LBL_7 LBL_7: %storemerge4.in10.reload = load i64, i64* %storemerge4.in10.reg2mem %66 = add i64 %storemerge4.in10.reload, 4 %67 = inttoptr i64 %66 to i32* %68 = load i32, i32* %67, align 4 %69 = icmp eq i32 %68, %60 %70 = icmp eq i1 %69, false store i64 %.reload, i64* %.reg2mem38 br i1 %70, label LBL_11, label LBL_8 LBL_8: %71 = add i64 %storemerge4.in10.reload, 8 %72 = inttoptr i64 %71 to i32* %73 = load i32, i32* %72, align 4 %74 = icmp eq i32 %73, %61 %75 = icmp eq i1 %74, false store i64 %.reload, i64* %.reg2mem38 br i1 %75, label LBL_11, label LBL_9 LBL_9: %76 = add i64 %storemerge4.in10.reload, 16 %77 = inttoptr i64 %76 to i64* %78 = load i64, i64* %77, align 8 %79 = inttoptr i64 %78 to i64* %80 = call i32 @memcmp(i64* %62, i64* %79, i32 %.pre-phi.reload) %81 = icmp eq i32 %80, 0 %82 = icmp eq i1 %81, false store i64 %storemerge4.in10.reload, i64* %storemerge4.in8.reg2mem br i1 %82, label LBL_9.LBL_11_crit_edge, label LBL_16 LBL_10: %.reload37 = load i64*, i64** %.reg2mem36 %.pre = load i64, i64* %.reload37, align 8 store i64 %.pre, i64* %.reg2mem38 br label LBL_11 LBL_11: %.reload39 = load i64, i64* %.reg2mem38 %storemerge4 = inttoptr i64 %.reload39 to i32* %83 = add i64 %.reload39, 24 %84 = inttoptr i64 %83 to i64* %85 = load i64, i64* %84, align 8 %86 = icmp eq i64 %85, 0 %87 = icmp eq i1 %86, false store i64 %85, i64* %.reg2mem store i64* %84, i64** %.reg2mem36 store i32* %storemerge4, i32** %storemerge411.reg2mem store i64 %.reload39, i64* %storemerge4.in10.reg2mem store i64 %.reload39, i64* %storemerge4.in.lcssa.reg2mem store i32* %storemerge4, i32** %storemerge4.lcssa.reg2mem store i64* %84, i64** %.lcssa.reg2mem br i1 %87, label LBL_6, label LBL_12 LBL_12: %.lcssa.reload = load i64*, i64** %.lcssa.reg2mem %storemerge4.lcssa.reload = load i32*, i32** %storemerge4.lcssa.reg2mem %storemerge4.in.lcssa.reload = load i64, i64* %storemerge4.in.lcssa.reg2mem store i32 %59, i32* %storemerge4.lcssa.reload, align 4 %88 = add i64 %storemerge4.in.lcssa.reload, 4 %89 = inttoptr i64 %88 to i32* store i32 %60, i32* %89, align 4 %90 = add i64 %storemerge4.in.lcssa.reload, 8 %91 = inttoptr i64 %90 to i32* store i32 %61, i32* %91, align 4 %92 = add i32 %.pre-phi.reload, 1 %93 = call i64* @calloc(i32 1, i32 %92) %94 = ptrtoint i64* %93 to i64 %95 = add i64 %storemerge4.in.lcssa.reload, 16 %96 = inttoptr i64 %95 to i64* store i64 %94, i64* %96, align 8 %97 = icmp eq i64* %93, null %98 = icmp eq i1 %97, false br i1 %98, label LBL_14, label LBL_13 LBL_13: %99 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0)) unreachable LBL_14: %100 = bitcast i32* %arg1 to i64* %101 = call i64* @memcpy(i64* %93, i64* %100, i32 %.pre-phi.reload) %102 = call i64* @calloc(i32 1, i32 32) %103 = ptrtoint i64* %102 to i64 store i64 %103, i64* %.lcssa.reload, align 8 %104 = icmp eq i64* %102, null %105 = icmp eq i1 %104, false store i64 %storemerge4.in.lcssa.reload, i64* %storemerge4.in8.reg2mem br i1 %105, label LBL_16, label LBL_15 LBL_15: %106 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0)) unreachable LBL_16: %storemerge4.in8.reload = load i64, i64* %storemerge4.in8.reg2mem ret i64 %storemerge4.in8.reload uselistorder i64* %93, { 1, 0, 2 } uselistorder i64 %.reload39, { 0, 3, 2, 1 } uselistorder i64 %.reload, { 2, 1, 0 } uselistorder i64* %55, { 1, 0, 2 } uselistorder i32* %storemerge49, { 1, 0 } uselistorder i64 %53, { 1, 0, 2 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %0, { 9, 8, 7, 0, 2, 3, 4, 5, 6, 1 } uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 3, 1 } uselistorder i64* %rbx.0.reg2mem, { 0, 2, 3, 1 } uselistorder i64* %r12.0.reg2mem, { 0, 2, 3, 1 } uselistorder i64* %r13.0.reg2mem, { 0, 2, 3, 1 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i64** %.reg2mem36, { 1, 0, 2 } uselistorder i32** %storemerge411.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge4.in10.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem38, { 0, 4, 3, 2, 1 } uselistorder i64* %storemerge4.in8.reg2mem, { 0, 2, 1 } uselistorder i64 (i8*)* @error, { 1, 0 } uselistorder i64* (i32, i32)* @calloc, { 1, 0 } uselistorder i1 false, { 1, 6, 7, 2, 3, 4, 5, 0 } uselistorder label LBL_16, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_4, { 1, 0, 2 } }
0
BinRealVul
wl1271_spi_init_4952
wl1271_spi_init
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %0 = call i64 @FUNC(i64 8, i64 0) %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64 @FUNC(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0)) store i64 %3, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %4 = inttoptr i64 %0 to i8* %5 = ptrtoint i64* %arg1 to i64 %6 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 5) %7 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 16) %8 = call i64 @FUNC(i64* nonnull %sv_0) %9 = add i64 %0, 2 %10 = inttoptr i64 %9 to i8* store i8 -1, i8* %10, align 1 %11 = add i64 %0, 3 %12 = inttoptr i64 %11 to i8* store i8 -1, i8* %12, align 1 %13 = add i64 %0, 1 %14 = inttoptr i64 %13 to i8* store i8 3, i8* %14, align 1 store i8 0, i8* %4, align 1 %15 = add i64 %0, 7 %16 = inttoptr i64 %15 to i8* store i8 0, i8* %16, align 1 %17 = add i64 %0, 6 %18 = inttoptr i64 %17 to i8* %19 = load i8, i8* %18, align 1 %20 = or i8 %19, 25 store i8 %20, i8* %18, align 1 %21 = add i64 %0, 5 %22 = inttoptr i64 %21 to i8* %23 = load i8, i8* %22, align 1 %24 = or i8 %23, -16 store i8 %24, i8* %22, align 1 %25 = load i8, i8* %14, align 1 %26 = sext i8 %25 to i64 store i64 %26, i64* %sv_1, align 8 %27 = call i64 @FUNC(i64 0, i64* nonnull %sv_1, i64 5) %.tr = trunc i64 %27 to i8 %28 = mul i8 %.tr, 2 %29 = add i64 %0, 4 %30 = inttoptr i64 %29 to i8* %31 = load i8, i8* %30, align 1 %32 = or i8 %31, %28 %33 = or i8 %32, 4 store i8 %33, i8* %30, align 1 store i64 %0, i64* %sv_0, align 8 %34 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull %sv_0) %35 = call i64 @FUNC(i64 %5) %36 = call i64 @FUNC(i64 %35, i64* nonnull %sv_0) %37 = call i64 @FUNC(i64 %0) %38 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64 %0, i64 8) store i64 %38, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %sv_1, { 0, 2, 1 } uselistorder i64* %sv_0, { 0, 1, 2, 5, 3, 4 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i8 0, { 1, 2, 0 } uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 } }
0
BinRealVul
assoc_array_rcu_cleanup_9534
assoc_array_rcu_cleanup
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %indvars.iv.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = ptrtoint i64* %arg1 to i64 %6 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0), i64 %3, i64 %4, i64 %2, i64 %1) %7 = call i64 @FUNC(i64 ptrtoint ([9 x i8]* @gv_0 to i64)) %8 = add i64 %5, 8 store i64 0, i64* %indvars.iv.reg2mem br label LBL_1 LBL_1: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %9 = mul i64 %indvars.iv.reload, 8 %10 = add i64 %8, %9 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = icmp eq i64 %12, 0 br i1 %13, label LBL_3, label LBL_2 LBL_2: %14 = call i64 @FUNC(i64 %12) %15 = call i64 @FUNC(i64 %14) br label LBL_3 LBL_3: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 10 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_4, label LBL_1 LBL_4: %16 = add i64 %5, 88 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = icmp eq i64 %18, 0 br i1 %19, label LBL_9, label LBL_5 LBL_5: %20 = call i64 @FUNC(i64 %18) %21 = and i64 %20, 4294967295 %22 = call i64 @FUNC(i64 %21) %23 = load i64, i64* %17, align 8 %24 = call i64 @FUNC(i64 %23) %25 = trunc i64 %24 to i32 %26 = icmp eq i32 %25, 0 %27 = load i64, i64* %17, align 8 br i1 %26, label LBL_7, label LBL_6 LBL_6: %28 = call i64 @FUNC(i64 %27) %29 = inttoptr i64 %28 to i64* store i64 0, i64* %29, align 8 br label LBL_8 LBL_7: %30 = call i64 @FUNC(i64 %27) %31 = inttoptr i64 %30 to i64* store i64 0, i64* %31, align 8 br label LBL_8 LBL_8: %32 = add i64 %5, 104 %33 = inttoptr i64 %32 to i64* %34 = load i64, i64* %33, align 8 %35 = load i64, i64* %17, align 8 %36 = call i64 @FUNC(i64 %35, i64 %34) br label LBL_9 LBL_9: %37 = call i64 @FUNC(i64 %5) ret i64 %37 uselistorder i64 %27, { 1, 0 } uselistorder i64 %5, { 1, 0, 3, 2 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 1, { 1, 0 } uselistorder i64 (i64)* @kfree, { 1, 0 } uselistorder [9 x i8]* @gv_0, { 1, 0 } }
0
BinRealVul
ra144_decode_init_17131
ra144_decode_init
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 store i64 %0, i64* %arg1, align 8 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = add i64 %0, 24 %5 = inttoptr i64 %4 to i64* store i64 %3, i64* %5, align 8 %6 = add i64 %0, 16 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = add i64 %0, 32 %10 = inttoptr i64 %9 to i64* store i64 %8, i64* %10, align 8 %11 = inttoptr i64 %1 to i32* store i32 1, i32* %11, align 4 %12 = add i64 %0, 12 %13 = inttoptr i64 %12 to i32* store i32 1, i32* %13, align 4 %14 = inttoptr i64 %6 to i32* store i32 2, i32* %14, align 4 ret i64 0 }
1
BinRealVul
dup_task_struct_4920
dup_task_struct
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC() %3 = icmp eq i64 %2, 0 %4 = icmp eq i1 %3, false store i64 0, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_7 LBL_1: %5 = call i64 @FUNC(i64 %2) %6 = icmp eq i64 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_3, label LBL_2 LBL_2: %8 = call i64 @FUNC(i64 %2) store i64 0, i64* %rax.0.reg2mem br label LBL_7 LBL_3: %9 = call i64 @FUNC(i64 %2, i64 %0) %10 = trunc i64 %9 to i32 %11 = icmp eq i32 %10, 0 %12 = icmp eq i1 %11, false br i1 %12, label LBL_6, label LBL_4 LBL_4: %13 = inttoptr i64 %2 to i64* store i64 %5, i64* %13, align 8 %14 = add i64 %2, 32 %15 = call i64 @FUNC(i64 %14) %16 = trunc i64 %15 to i32 %17 = icmp eq i32 %16, 0 %18 = icmp eq i1 %17, false br i1 %18, label LBL_6, label LBL_5 LBL_5: %19 = call i64 @FUNC(i64 %2, i64 %0) %20 = call i64 @FUNC(i64 %2) %21 = call i64 @FUNC(i64 %2) %22 = call i64 @FUNC(i64 %2) %23 = inttoptr i64 %22 to i64* store i64 3735928559, i64* %23, align 8 %24 = call i64 @FUNC() %sext = mul i64 %24, 4294967296 %25 = ashr exact i64 %sext, 32 %26 = add i64 %2, 40 %27 = inttoptr i64 %26 to i64* store i64 %25, i64* %27, align 8 %28 = add i64 %2, 8 %29 = call i64 @FUNC(i64 %28, i64 2) %30 = add i64 %2, 12 %31 = call i64 @FUNC(i64 %30, i64 0) %32 = add i64 %2, 16 %33 = inttoptr i64 %32 to i32* store i32 0, i32* %33, align 4 %34 = add i64 %2, 24 %35 = inttoptr i64 %34 to i64* store i64 0, i64* %35, align 8 %36 = call i64 @FUNC(i64 %5, i64 1) store i64 %2, i64* %rax.0.reg2mem br label LBL_7 LBL_6: %37 = call i64 @FUNC(i64 %5) %38 = call i64 @FUNC(i64 %2) 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 %5, { 2, 0, 1, 3 } uselistorder i64 %2, { 13, 0, 2, 5, 4, 3, 6, 10, 9, 8, 7, 11, 12, 14, 1, 15, 16 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64 (i64, i64)* @atomic_set, { 1, 0 } uselistorder i32 0, { 1, 2, 3, 0 } uselistorder label LBL_7, { 1, 2, 3, 0 } }
0
BinRealVul
tcos_decipher_19145
tcos_decipher
define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = alloca i32 %2 = alloca i8 %sv_0.0.reg2mem = alloca i32 %.lcssa.reg2mem = alloca i64 %storemerge5.lcssa.reg2mem = alloca i32 %storemerge511.reg2mem = alloca i32 %.reg2mem = alloca i64 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %5 = load i8, i8* %2 %6 = load i32, i32* %1 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sv_3 = alloca i8*, align 8 %7 = icmp ne i32* %arg1, null %8 = icmp ne i64* %arg2, null %or.cond.not = icmp eq i1 %7, %8 %9 = icmp eq i64* %arg4, null %10 = icmp eq i1 %9, false %or.cond8 = icmp eq i1 %or.cond.not, %10 br i1 %or.cond8, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_1, i64 0, i64 0), i32 78, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %11 = trunc i64 %4 to i32 %12 = ptrtoint i32* %arg1 to i64 %13 = add i64 %12, 16 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = icmp eq i32 %11, 1 %17 = zext i1 %16 to i32 %18 = add i64 %12, 8 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = inttoptr i64 %20 to i32* %22 = call i64 @FUNC(i64 %15) %23 = load i32, i32* %21, align 4 %24 = urem i32 %23, 2 %25 = icmp eq i32 %24, 0 %26 = icmp eq i1 %25, false %27 = zext i1 %26 to i64 %28 = call i64 @FUNC(i64 %15, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0), i32 %17, i64 %27, i64 %arg5, i64 %3) %29 = icmp ult i64 %arg3, 256 %30 = zext i1 %29 to i64 %31 = bitcast i8** %sv_3 to i64* %32 = call i64 @FUNC(i64 %12, i64* nonnull %31, i64 %30, i64 42, i64 128, i64 134) %33 = bitcast i64* %sv_2 to i8* store i8* %33, i8** %sv_3, align 8 %34 = trunc i64 %arg3 to i32 %35 = call i64* @memcpy(i64* nonnull %sv_1, i64* %arg2, i32 %34) %36 = call i64 @FUNC(i64 %12, i64* nonnull %31) %37 = load i64, i64* %14, align 8 %38 = and i64 %36, 4294967295 %39 = call i64 @FUNC(i64 %37, i64 %38, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0)) %40 = trunc i32 %6 to i8 %41 = icmp eq i8 %40, -112 %42 = icmp eq i8 %5, 0 %43 = icmp eq i1 %42, %41 br i1 %43, label LBL_3, label LBL_12 LBL_3: %44 = icmp ult i64 %arg5, 256 %45 = select i1 %44, i64 %arg5, i64 256 %46 = icmp eq i1 %16, false store i32 0, i32* %sv_0.0.reg2mem br i1 %46, label LBL_11, label LBL_4 LBL_4: %47 = load i32, i32* %21, align 4 %48 = urem i32 %47, 2 %49 = icmp eq i32 %48, 0 store i32 0, i32* %sv_0.0.reg2mem br i1 %49, label LBL_11, label LBL_5 LBL_5: %50 = load i8*, i8** %sv_3, align 8 %51 = load i8, i8* %50, align 1 %52 = icmp eq i8 %51, 0 %53 = icmp eq i1 %52, false store i32 0, i32* %sv_0.0.reg2mem br i1 %53, label LBL_11, label LBL_6 LBL_6: %54 = ptrtoint i8* %50 to i64 %55 = add i64 %54, 1 %56 = inttoptr i64 %55 to i8* %57 = load i8, i8* %56, align 1 %58 = icmp eq i8 %57, 2 %59 = icmp eq i1 %58, false store i32 0, i32* %sv_0.0.reg2mem br i1 %59, label LBL_11, label LBL_7 LBL_7: %60 = icmp ugt i64 %45, 2 store i64 2, i64* %.reg2mem store i32 2, i32* %storemerge511.reg2mem store i32 2, i32* %storemerge5.lcssa.reg2mem store i64 2, i64* %.lcssa.reg2mem br i1 %60, label LBL_9, label LBL_10 LBL_8: %61 = add i32 %storemerge511.reload, 1 %62 = zext i32 %61 to i64 %63 = icmp ugt i64 %45, %62 store i64 %62, i64* %.reg2mem store i32 %61, i32* %storemerge511.reg2mem store i32 %61, i32* %storemerge5.lcssa.reg2mem store i64 %62, i64* %.lcssa.reg2mem br i1 %63, label LBL_9, label LBL_10 LBL_9: %storemerge511.reload = load i32, i32* %storemerge511.reg2mem %.reload = load i64, i64* %.reg2mem %64 = add i64 %.reload, %54 %65 = inttoptr i64 %64 to i8* %66 = load i8, i8* %65, align 1 %67 = icmp eq i8 %66, 0 %68 = icmp eq i1 %67, false store i32 %storemerge511.reload, i32* %storemerge5.lcssa.reg2mem store i64 %.reload, i64* %.lcssa.reg2mem br i1 %68, label LBL_8, label LBL_10 LBL_10: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem %storemerge5.lcssa.reload = load i32, i32* %storemerge5.lcssa.reg2mem %69 = add nsw i64 %45, -1 %70 = icmp ugt i64 %69, %.lcssa.reload %71 = icmp eq i1 %70, false %72 = add i32 %storemerge5.lcssa.reload, 1 %storemerge = select i1 %71, i32 0, i32 %72 store i32 %storemerge, i32* %sv_0.0.reg2mem br label LBL_11 LBL_11: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %73 = load i8*, i8** %sv_3, align 8 %74 = ptrtoint i8* %73 to i64 %75 = zext i32 %sv_0.0.reload to i64 %76 = add i64 %74, %75 %77 = inttoptr i64 %76 to i64* %78 = trunc i64 %45 to i32 %79 = sub i32 %78, %sv_0.0.reload %80 = call i64* @memcpy(i64* %arg4, i64* %77, i32 %79) %81 = sub nsw i64 %45, %75 %82 = load i64, i64* %14, align 8 %83 = call i64 @FUNC(i64 %82, i64 1, i64 %81) br label LBL_12 LBL_12: %84 = zext i8 %5 to i64 %85 = urem i32 %6, 256 %86 = zext i32 %85 to i64 %87 = call i64 @FUNC(i64 %12, i64 %86, i64 %84) %sext = mul i64 %87, 4294967296 %88 = ashr exact i64 %sext, 32 %89 = load i64, i64* %14, align 8 %90 = call i64 @FUNC(i64 %89, i64 1, i64 %88) ret i64 %90 uselistorder i64 %75, { 1, 0 } uselistorder i64 %45, { 3, 4, 1, 2, 0 } uselistorder i64* %14, { 1, 0, 2, 3 } uselistorder i8** %sv_3, { 2, 1, 0, 3 } uselistorder i32 %6, { 1, 0 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge511.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge5.lcssa.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %.lcssa.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64, i64, i64)* @SC_FUNC_RETURN, { 1, 0 } uselistorder i8 0, { 1, 2, 0, 3, 4 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 } uselistorder i1 false, { 2, 3, 4, 5, 1, 6, 0 } uselistorder i64* %arg4, { 1, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
alloc_bottom_6330
alloc_bottom
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %0 = load i64, i64* @gv_0, align 8 %1 = add i64 %0, %arg1 store i64 %1, i64* @gv_0, align 8 %2 = load i64, i64* @gv_1, align 8 %3 = icmp ugt i64 %1, %2 store i64 %0, i64* %sv_0.0.reg2mem br i1 %3, label LBL_1, label LBL_2 LBL_1: %4 = call i64 @FUNC(i64 %arg1) %5 = call i64 @FUNC() %6 = load i64, i64* @gv_0, align 8 %7 = add i64 %6, %arg1 store i64 %7, i64* @gv_0, align 8 store i64 %6, i64* %sv_0.0.reg2mem br label LBL_2 LBL_2: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem ret i64 %sv_0.0.reload uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i32 1, { 1, 0 } uselistorder i64 %arg1, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
streamIteratorStart_10451
streamIteratorStart
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %rsi.1.reg2mem = alloca i64 %rsi.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg3 to i64 %1 = ptrtoint i64* %arg2 to i64 %2 = ptrtoint i64* %arg1 to i64 %3 = icmp eq i64* %arg3, null br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = call i64 @FUNC(i64 %2, i64 %0) store i64 %0, i64* %rsi.0.reg2mem br label LBL_3 LBL_2: store i64 0, i64* %arg1, align 8 store i64 %1, i64* %rsi.0.reg2mem br label LBL_3 LBL_3: %5 = icmp eq i64* %arg4, null %6 = add i64 %2, 16 br i1 %5, label LBL_5, label LBL_4 LBL_4: %7 = ptrtoint i64* %arg4 to i64 %8 = call i64 @FUNC(i64 %6, i64 %7) store i64 %7, i64* %rsi.1.reg2mem br label LBL_6 LBL_5: %rsi.0.reload = load i64, i64* %rsi.0.reg2mem %9 = inttoptr i64 %6 to i64* store i64 -1, i64* %9, align 8 store i64 %rsi.0.reload, i64* %rsi.1.reg2mem br label LBL_6 LBL_6: %rsi.1.reload = load i64, i64* %rsi.1.reg2mem %10 = add i64 %2, 32 %11 = call i64 @FUNC(i64 %10, i64 %rsi.1.reload) %12 = trunc i64 %arg5 to i32 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false br i1 %14, label LBL_13, label LBL_7 LBL_7: br i1 %3, label LBL_12, label LBL_8 LBL_8: %15 = icmp eq i64 %10, 0 %16 = icmp eq i1 %15, false br i1 %16, label LBL_10, label LBL_9 LBL_9: %17 = add i64 %0, 8 %18 = inttoptr i64 %17 to i64* %19 = load i64, i64* %18, align 8 %20 = icmp eq i64 %19, 0 br i1 %20, label LBL_12, label LBL_10 LBL_10: %21 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 %2, i64 16) %22 = call i64 @FUNC(i64 %10) %23 = trunc i64 %22 to i32 %24 = icmp eq i32 %23, 0 br i1 %24, label LBL_17, label LBL_11 LBL_11: %25 = call i64 @FUNC(i64 %10, i8* inttoptr (i64 4202515 to i8*), i64 0, i64 0) br label LBL_17 LBL_12: %26 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0), i64 0, i64 0) br label LBL_17 LBL_13: br i1 %5, label LBL_16, label LBL_14 LBL_14: %27 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 %6, i64 16) %28 = call i64 @FUNC(i64 %10) %29 = trunc i64 %28 to i32 %30 = icmp eq i32 %29, 0 br i1 %30, label LBL_17, label LBL_15 LBL_15: %31 = call i64 @FUNC(i64 %10, i8* inttoptr (i64 4202517 to i8*), i64 0, i64 0) br label LBL_17 LBL_16: %32 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_2, i64 0, i64 0), i64 0, i64 0) br label LBL_17 LBL_17: %33 = add i64 %2, 40 %34 = inttoptr i64 %33 to i64* store i64 %1, i64* %34, align 8 %35 = add i64 %2, 48 %36 = inttoptr i64 %35 to i64* store i64 0, i64* %36, align 8 %37 = add i64 %2, 56 %38 = inttoptr i64 %37 to i64* store i64 0, i64* %38, align 8 %39 = add i64 %2, 64 %40 = inttoptr i64 %39 to i32* store i32 %12, i32* %40, align 4 ret i64 %2 uselistorder i64 %10, { 7, 6, 4, 5, 3, 2, 0, 1, 8, 9 } uselistorder i64 %6, { 0, 2, 1 } uselistorder i64 %2, { 1, 2, 3, 4, 5, 0, 6, 7, 8 } uselistorder i64 %1, { 1, 0 } uselistorder i64 %0, { 2, 0, 1 } uselistorder i64* %rsi.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rsi.1.reg2mem, { 0, 2, 1 } uselistorder i64 (i64)* @raxEOF, { 1, 0 } uselistorder i64 (i64, i8*, i64, i64)* @raxSeek, { 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64, i64)* @streamEncodeID, { 1, 0 } uselistorder i64* %arg4, { 1, 0 } }
0
BinRealVul
clcdfb_of_get_mode_5281
clcdfb_of_get_mode
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge1.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = call i64 @FUNC(i64 %0) %2 = icmp eq i64 %1, 0 %3 = icmp eq i1 %2, false store i64 4294967277, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_6 LBL_1: %4 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0)) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 store i64 4294967294, i64* %storemerge1.reg2mem br i1 %6, label LBL_3, label LBL_2 LBL_2: %7 = ptrtoint i64* %arg3 to i64 %8 = call i64 @FUNC(i64 %1, i64 %7) %9 = trunc i64 %8 to i32 %10 = icmp eq i32 %9, 0 store i64 %8, i64* %storemerge1.reg2mem br i1 %10, label LBL_4, label LBL_3 LBL_3: %storemerge1.reload = load i64, i64* %storemerge1.reg2mem %11 = and i64 %storemerge1.reload, 4294967295 store i64 %11, i64* %rax.0.reg2mem br label LBL_6 LBL_4: %12 = ptrtoint i64* %arg1 to i64 %13 = call i64 @FUNC(i64 0, i64 0, i64 %7) %14 = mul i64 %13, 4294967296 %sext = add i64 %14, 4294967296 %15 = ashr exact i64 %sext, 32 %16 = call i64 @FUNC(i64 %12, i64 %15, i64 0) %17 = icmp eq i64 %16, 0 %18 = icmp eq i1 %17, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %18, label LBL_5, label LBL_6 LBL_5: %19 = add i64 %13, 1 %20 = and i64 %19, 4294967295 %21 = call i64 @FUNC(i64 %16, i64 %20, i64 %7) store i64 %16, i64* %arg3, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %16, { 1, 0, 2 } uselistorder i64 %13, { 1, 0 } uselistorder i64 %7, { 1, 2, 0 } uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 } uselistorder i64 1, { 1, 0 } uselistorder i64 4294967296, { 1, 0 } uselistorder i64 (i64, i64, i64)* @clcdfb_snprintf_mode, { 1, 0 } uselistorder label LBL_6, { 2, 0, 3, 1 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
try_to_free_buffers_18001
try_to_free_buffers
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_2 = alloca i64, align 8 store i64 0, i64* %sv_2, align 8 %1 = icmp eq i64* %arg1, null %2 = icmp eq i1 %1, false br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64 @FUNC(i64 %0, i64* nonnull %sv_2) store i64 %3, i64* %sv_1.0.reg2mem br label LBL_4 LBL_2: %4 = call i64 @FUNC(i64 %0) %5 = call i64 @FUNC(i64 %0, i64* nonnull %sv_2) %6 = trunc i64 %5 to i32 %7 = call i64 @FUNC(i64 %0) %8 = icmp eq i32 %6, 0 store i64 %5, i64* %sv_1.0.reg2mem br i1 %8, label LBL_4, label LBL_3 LBL_3: %9 = call i64 @FUNC(i64 %0, i64 4096) store i64 %5, i64* %sv_1.0.reg2mem br label LBL_4 LBL_4: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %10 = load i64, i64* %sv_2, align 8 %11 = icmp eq i64 %10, 0 store i64 %10, i64* %sv_0.0.reg2mem br i1 %11, label LBL_6, label LBL_5 LBL_5: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %12 = inttoptr i64 %sv_0.0.reload to i64* %13 = load i64, i64* %12, align 8 %14 = call i64 @FUNC(i64 %sv_0.0.reload) %15 = load i64, i64* %sv_2, align 8 %16 = icmp eq i64 %13, %15 %17 = icmp eq i1 %16, false store i64 %13, i64* %sv_0.0.reg2mem br i1 %17, label LBL_5, label LBL_6 LBL_6: %18 = and i64 %sv_1.0.reload, 4294967295 ret i64 %18 uselistorder i64* %sv_2, { 2, 3, 0, 1, 4 } uselistorder i64 %0, { 1, 4, 2, 3, 0 } uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 3, 1 } uselistorder i64* %sv_0.0.reg2mem, { 2, 0, 1 } uselistorder i64 (i64, i64*)* @drop_buffers, { 1, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_4, { 1, 0, 2 } }
1
BinRealVul
lag_calc_zero_run_449
lag_calc_zero_run
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = mul i64 %arg1, 2 %1 = and i64 %0, 510 %2 = trunc i64 %arg1 to i8 %3 = ashr i8 %2, 7 %4 = zext i8 %3 to i64 %5 = xor i64 %1, %4 ret i64 %5 uselistorder i64 %arg1, { 1, 0 } }
0
BinRealVul
v4l2_receive_frame_15398
v4l2_receive_frame
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i32, align 4 store i32 0, i32* %sv_0, align 4 %1 = call i64 @FUNC(i64 %0, i32* nonnull %sv_0) %2 = trunc i64 %1 to i32 %3 = icmp slt i32 %2, 0 %4 = icmp eq i1 %3, false %5 = icmp eq i32 %2, -1 %or.cond = or i1 %5, %4 br i1 %or.cond, label LBL_2, label LBL_1 LBL_1: %6 = and i64 %1, 4294967295 store i64 %6, i64* %rax.0.reg2mem br label LBL_8 LBL_2: %7 = add i64 %0, 16 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = icmp eq i32 %9, 0 %11 = icmp eq i1 %10, false br i1 %11, label LBL_7, label LBL_3 LBL_3: %12 = add i64 %0, 8 %13 = call i64 @FUNC(i64 %12, i32* nonnull %sv_0) %14 = trunc i64 %13 to i32 %15 = icmp slt i32 %14, 0 %16 = icmp eq i1 %15, false %17 = icmp eq i32 %14, -12 %or.cond3 = or i1 %17, %16 br i1 %or.cond3, label LBL_5, label LBL_4 LBL_4: %18 = and i64 %13, 4294967295 store i64 %18, i64* %rax.0.reg2mem br label LBL_8 LBL_5: %19 = load i32, i32* %sv_0, align 4 %20 = icmp eq i32 %19, 0 br i1 %20, label LBL_7, label LBL_6 LBL_6: %21 = call i64 @FUNC(i64 %0) %22 = trunc i64 %21 to i32 %23 = icmp eq i32 %22, 0 store i64 0, i64* %rax.0.reg2mem br i1 %23, label LBL_7, label LBL_8 LBL_7: %24 = ptrtoint i64* %arg2 to i64 %25 = call i64 @FUNC(i64 %0, i64 %24) store i64 %25, i64* %rax.0.reg2mem br label LBL_8 LBL_8: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32* %sv_0, { 2, 0, 1, 3 } uselistorder i64 %0, { 1, 0, 4, 2, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 } uselistorder i32 0, { 1, 2, 3, 4, 5, 0 } uselistorder label LBL_8, { 1, 0, 2, 3 } uselistorder label LBL_7, { 1, 0, 2 } }
1
BinRealVul
cirrus_bitblt_solidfill_6589
cirrus_bitblt_solidfill
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 store i64 0, i64* %storemerge.reg2mem br i1 %3, label LBL_1, label LBL_2 LBL_1: %4 = add i64 %0, 16 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = add i64 %0, 12 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = add i64 %0, 8 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = add i64 %0, 4 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = zext i32 %6 to i64 %17 = call i64 @FUNC(i64 %0, i32 %15, i32 %12, i32 %9, i64 %16) %18 = call i64 @FUNC(i64 %0) store i64 1, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %0, { 4, 5, 2, 3, 1, 0, 6 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
calipso_doi_putdef_12881
calipso_doi_putdef
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_3, label LBL_1 LBL_1: %1 = call i64 @FUNC(i64 %arg1) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 store i64 %1, i64* %rax.0.reg2mem br i1 %3, label LBL_3, label LBL_2 LBL_2: %4 = call i64 @FUNC(i64* nonnull @gv_0) %5 = add i64 %arg1, 8 %6 = call i64 @FUNC(i64 %5) %7 = call i64 @FUNC(i64* nonnull @gv_0) %8 = add i64 %arg1, 24 %9 = call i64 @FUNC(i64 %8, i64 4198736) store i64 %9, 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 %arg1, { 1, 0, 2, 3 } uselistorder label LBL_3, { 2, 0, 1 } }
1
BinRealVul
qemu_system_powerdown_368
qemu_system_powerdown
define i64 @FUNC() local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = load i32*, i32** @gv_0, align 8 %1 = icmp eq i32* %0, null %2 = icmp eq i1 %1, false br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64 @FUNC() store i64 %3, i64* %rax.0.reg2mem br label LBL_4 LBL_2: %4 = load i32, i32* %0, align 4 %5 = urem i32 %4, 2 %6 = icmp eq i32 %5, 0 store i64 0, i64* %rax.0.reg2mem br i1 %6, label LBL_4, label LBL_3 LBL_3: %7 = ptrtoint i32* %0 to i64 %8 = add i64 %7, 4 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = or i32 %10, 1 store i32 %11, i32* %9, align 4 %12 = load i32*, i32** @gv_0, align 8 %13 = ptrtoint i32* %12 to i64 %14 = call i64 @FUNC(i64 %13) 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* %rax.0.reg2mem, { 0, 2, 3, 1 } }
0
BinRealVul
bdrv_is_first_non_filter_3110
bdrv_is_first_non_filter
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %storemerge23.reg2mem = alloca i64 %sv_0 = alloca i8, align 1 %0 = bitcast i8* %sv_0 to i64* %1 = call i64 @FUNC(i64* nonnull %0) %2 = icmp eq i64 %1, 0 %3 = icmp eq i1 %2, false store i64 %1, i64* %storemerge23.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %3, label LBL_1, label LBL_3 LBL_1: %storemerge23.reload = load i64, i64* %storemerge23.reg2mem %4 = call i64 @FUNC(i64 %storemerge23.reload, i64 %arg1) %5 = trunc i64 %4 to i8 store i8 %5, i8* %sv_0, align 1 %6 = icmp eq i8 %5, 0 store i64 1, i64* %storemerge.reg2mem br i1 %6, label LBL_2, label LBL_3 LBL_2: %7 = call i64 @FUNC(i64* nonnull %0) %8 = icmp eq i64 %7, 0 %9 = icmp eq i1 %8, false store i64 %7, i64* %storemerge23.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %9, label LBL_1, label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge23.reg2mem, { 2, 0, 1 } uselistorder i1 false, { 1, 0 } uselistorder i32 1, { 2, 1, 0 } uselistorder label LBL_3, { 1, 0, 2 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
smb2cli_session_security_mode_4526
smb2cli_session_security_mode
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.in.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = icmp eq i64* %arg1, null %3 = icmp eq i1 %2, false store i64 0, i64* %storemerge.in.reg2mem br i1 %3, label LBL_1, label LBL_2 LBL_1: %4 = trunc i64 %1 to i32 %5 = ptrtoint i64* %arg1 to i64 %6 = add i64 %5, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = or i32 %10, %4 %12 = icmp eq i32 %11, 0 %sv_0.1 = select i1 %12, i64 1, i64 3 store i64 %sv_0.1, i64* %storemerge.in.reg2mem br label LBL_2 LBL_2: %storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem ret i64 %storemerge.in.reload uselistorder i64* %arg1, { 1, 0 } }
0
BinRealVul
qemu_gluster_complete_aio_15236
qemu_gluster_complete_aio
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) store i64 0, i64* %arg1, align 8 %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = call i64 @FUNC(i64 %4, i64 0) ret i64 %5 }
1
BinRealVul
mount_load_proc_self_mountinfo_18270
mount_load_proc_self_mountinfo
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rbx.2.reg2mem = alloca i64 %r12.0.ph.reg2mem = alloca i1 %rbx.1.ph.reg2mem = alloca i64 %sv_0.2.ph.reg2mem = alloca i32 %rbx.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %sv_4 = alloca i64, align 8 %sv_5 = alloca i64, align 8 store i64 0, i64* %sv_5, align 8 store i64 0, i64* %sv_4, align 8 %0 = icmp eq i64* %arg1, null %1 = icmp eq i1 %0, false br i1 %1, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([64 x i8], [64 x i8]* @gv_1, i64 0, i64 0), i32 93, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %2 = call i64 @FUNC() store i64 %2, i64* %sv_5, align 8 %3 = icmp eq i64 %2, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_4, label LBL_3 LBL_3: %5 = call i64 @FUNC() %6 = and i64 %5, 4294967295 store i64 %6, i64* %rbx.2.reg2mem br label LBL_18 LBL_4: %7 = call i64 @FUNC(i64 0) store i64 %7, i64* %sv_4, align 8 %8 = icmp eq i64 %7, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_6, label LBL_5 LBL_5: %10 = call i64 @FUNC() %11 = and i64 %10, 4294967295 store i64 %11, i64* %rbx.2.reg2mem br label LBL_18 LBL_6: %12 = ptrtoint i64* %arg1 to i64 %13 = urem i64 %arg2, 256 %14 = load i64, i64* %sv_5, align 8 %15 = call i64 @FUNC(i64 %14, i64 0) %16 = trunc i64 %15 to i32 %17 = icmp slt i32 %16, 0 %18 = icmp eq i1 %17, false store i32 0, i32* %sv_0.0.reg2mem br i1 %18, label LBL_8, label LBL_7 LBL_7: %19 = and i64 %15, 4294967295 %20 = call i64 @FUNC(i64 %19, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_3, i64 0, i64 0)) %21 = and i64 %20, 4294967295 store i64 %21, i64* %rbx.2.reg2mem br label LBL_18 LBL_8: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem store i64 0, i64* %sv_3, align 8 store i64 0, i64* %sv_2, align 8 %22 = load i64, i64* %sv_4, align 8 %23 = load i64, i64* %sv_5, align 8 %24 = call i64 @FUNC(i64 %23, i64 %22, i64* nonnull %sv_1) %25 = trunc i64 %24 to i32 %26 = icmp eq i32 %25, 1 %27 = icmp eq i1 %26, false br i1 %27, label LBL_9, label LBL_17 LBL_9: %28 = icmp slt i32 %25, 0 %29 = icmp eq i1 %28, false br i1 %29, label LBL_11, label LBL_10 LBL_10: %30 = and i64 %24, 4294967295 %31 = call i64 @FUNC(i64 %30, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_4, i64 0, i64 0)) %32 = and i64 %31, 4294967295 store i32 %sv_0.0.reload, i32* %sv_0.2.ph.reg2mem store i64 %32, i64* %rbx.1.ph.reg2mem store i1 true, i1* %r12.0.ph.reg2mem br label LBL_16 LBL_11: %33 = load i64, i64* %sv_1, align 8 %34 = call i64 @FUNC(i64 %33) %35 = load i64, i64* %sv_1, align 8 %36 = call i64 @FUNC(i64 %35) %37 = load i64, i64* %sv_1, align 8 %38 = call i64 @FUNC(i64 %37) %39 = load i64, i64* %sv_1, align 8 %40 = call i64 @FUNC(i64 %39) %41 = call i64 @FUNC(i64 %34, i64 0, i64* nonnull %sv_3) %42 = trunc i64 %41 to i32 %43 = icmp slt i32 %42, 0 %44 = icmp eq i1 %43, false br i1 %44, label LBL_13, label LBL_12 LBL_12: %45 = call i64 @FUNC() %46 = and i64 %45, 4294967295 store i32 %sv_0.0.reload, i32* %sv_0.2.ph.reg2mem store i64 %46, i64* %rbx.1.ph.reg2mem store i1 true, i1* %r12.0.ph.reg2mem br label LBL_16 LBL_13: %47 = call i64 @FUNC(i64 %36, i64 0, i64* nonnull %sv_2) %48 = trunc i64 %47 to i32 %49 = icmp slt i32 %48, 0 %50 = icmp eq i1 %49, false br i1 %50, label LBL_15, label LBL_14 LBL_14: %51 = call i64 @FUNC() %52 = and i64 %51, 4294967295 store i32 %sv_0.0.reload, i32* %sv_0.2.ph.reg2mem store i64 %52, i64* %rbx.1.ph.reg2mem store i1 true, i1* %r12.0.ph.reg2mem br label LBL_16 LBL_15: %rbx.0.reload = load i64, i64* %rbx.0.reg2mem %53 = load i64, i64* %sv_3, align 8 %54 = call i64 @FUNC(i64 %12, i64 %53, i64 1, i64 0, i64 %13) %55 = load i64, i64* %sv_2, align 8 %56 = load i64, i64* %sv_3, align 8 %57 = call i64 @FUNC(i64 %12, i64 %56, i64 %55, i64 %38, i64 %40, i64 %13) %58 = trunc i64 %57 to i32 %59 = icmp eq i32 %sv_0.0.reload, 0 %60 = icmp slt i32 %58, 0 %61 = icmp eq i1 %59, %60 %sv_0.1 = select i1 %61, i32 %58, i32 %sv_0.0.reload store i32 %sv_0.1, i32* %sv_0.2.ph.reg2mem store i64 %rbx.0.reload, i64* %rbx.1.ph.reg2mem store i1 false, i1* %r12.0.ph.reg2mem br label LBL_16 LBL_16: %r12.0.ph.reload = load i1, i1* %r12.0.ph.reg2mem %rbx.1.ph.reload = load i64, i64* %rbx.1.ph.reg2mem %sv_0.2.ph.reload = load i32, i32* %sv_0.2.ph.reg2mem call void @free(i64* nonnull %sv_2) call void @free(i64* nonnull %sv_3) store i32 %sv_0.2.ph.reload, i32* %sv_0.0.reg2mem store i64 %rbx.1.ph.reload, i64* %rbx.0.reg2mem store i64 %rbx.1.ph.reload, i64* %rbx.2.reg2mem br i1 %r12.0.ph.reload, label LBL_18, label LBL_8 LBL_17: call void @free(i64* nonnull %sv_2) call void @free(i64* nonnull %sv_3) %62 = zext i32 %sv_0.0.reload to i64 store i64 %62, i64* %rbx.2.reg2mem br label LBL_18 LBL_18: %rbx.2.reload = load i64, i64* %rbx.2.reg2mem %63 = call i64 @FUNC(i64* nonnull %sv_4) %64 = call i64 @FUNC(i64* nonnull %sv_5) %65 = and i64 %rbx.2.reload, 4294967295 ret i64 %65 uselistorder i32 %sv_0.0.reload, { 5, 4, 3, 0, 1, 2 } uselistorder i64 %13, { 1, 0 } uselistorder i64* %sv_3, { 0, 1, 3, 4, 2, 5 } uselistorder i64* %sv_2, { 1, 0, 3, 2, 4 } uselistorder i64* %sv_1, { 1, 2, 3, 4, 0 } uselistorder i32* %sv_0.0.reg2mem, { 2, 0, 1 } uselistorder i64* %rbx.0.reg2mem, { 1, 0 } uselistorder i32* %sv_0.2.ph.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64* %rbx.1.ph.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i1* %r12.0.ph.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64* %rbx.2.reg2mem, { 0, 5, 1, 4, 3, 2 } uselistorder void (i64*)* @free, { 0, 4, 5, 1, 3, 2 } uselistorder i64 (i64, i64, i64*)* @cunescape, { 1, 0 } uselistorder i64 (i64, i8*)* @log_error_errno, { 1, 0 } uselistorder i32 0, { 1, 5, 6, 7, 8, 0, 9, 2, 10, 11, 3, 4 } uselistorder i64 4294967295, { 8, 3, 4, 5, 1, 6, 2, 7, 9, 10, 0 } uselistorder i64 ()* @log_oom, { 3, 2, 1, 0 } uselistorder i1 false, { 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_18, { 1, 0, 2, 3, 4 } uselistorder label LBL_16, { 3, 0, 1, 2 } uselistorder label LBL_8, { 1, 0 } }
1
BinRealVul
H264SwDecMalloc_6234
H264SwDecMalloc
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = trunc i64 %arg1 to i32 %sext3 = mul i64 %arg2, 4294967296 %5 = ashr exact i64 %sext3, 32 %.rhs.trunc = trunc i64 %arg2 to i32 %6 = udiv i32 -1, %.rhs.trunc %7 = icmp ult i32 %6, %4 br i1 %7, label LBL_1, label LBL_2 LBL_1: %8 = and i64 %arg1, 4294967295 %9 = trunc i64 %5 to i32 %10 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i64 %8, i32 %9, i64 %3, i64 %2, i64 %1) %11 = call i64 @FUNC(i64 1397638484, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0)) store i64 0, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %sext = mul i64 %arg1, 4294967296 %12 = ashr exact i64 %sext, 32 %13 = mul nsw i64 %5, %12 %14 = trunc i64 %13 to i32 %15 = call i64* @malloc(i32 %14) %16 = ptrtoint i64* %15 to i64 store i64 %16, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i32 1, { 3, 2, 4, 1, 0 } uselistorder i64 %arg2, { 1, 0 } }
0
BinRealVul
bsdauth_respond_17779
bsdauth_respond
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, null %1 = icmp eq i1 %0, false br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0)) unreachable LBL_2: %3 = trunc i64 %arg2 to i32 %4 = icmp eq i32 %3, 1 store i64 4294967295, i64* %rax.0.reg2mem br i1 %4, label LBL_3, label LBL_4 LBL_3: %5 = ptrtoint i64* %arg3 to i64 %6 = ptrtoint i64* %arg1 to i64 %7 = call i64 @FUNC(i64 %6, i64 %5, i64 0) %8 = trunc i64 %7 to i32 store i64 0, i64* %arg1, align 8 %9 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0), i64 0, i32 %8) %10 = icmp eq i32 %8, 0 %11 = icmp eq i1 %10, false %. = select i1 %11, i64 0, i64 4294967295 store i64 %., i64* %rax.0.reg2mem br label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %8, { 1, 0 } uselistorder i64* %arg1, { 0, 2, 1 } }
1
BinRealVul
server_connection_input_one_3802
server_connection_input_one
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem3 = alloca i32 %rdi.1.reg2mem = alloca i64 %rdx.0.reg2mem = alloca i64 %rcx.0.reg2mem = alloca i64 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %sv_0 = alloca i32, align 4 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 store i64 %arg1, i64* %sv_2, align 8 %4 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_1) %5 = load i64, i64* %sv_1, align 8 %6 = icmp eq i64 %5, 0 %7 = icmp eq i1 %6, false store i64 0, i64* %rax.0.reg2mem br i1 %7, label LBL_1, label LBL_21 LBL_1: %8 = add i64 %arg1, 8 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = icmp eq i64 %10, 0 store i64 %arg1, i64* %.reg2mem br i1 %11, label LBL_3, label LBL_2 LBL_2: %12 = call i64 @FUNC(i64 %arg1) %.pre = load i64, i64* %sv_2, align 8 store i64 %.pre, i64* %.reg2mem br label LBL_3 LBL_3: %13 = ptrtoint i64* %sv_1 to i64 %.reload = load i64, i64* %.reg2mem %14 = add i64 %.reload, 16 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = icmp eq i32 %16, 2 store i64 %13, i64* %rdx.0.reg2mem store i64 %arg1, i64* %rdi.1.reg2mem br i1 %17, label LBL_8, label LBL_4 LBL_4: %18 = icmp sgt i32 %16, 2 br i1 %18, label LBL_20, label LBL_5 LBL_5: switch i32 %16, label LBL_20 [ i32 0, label LBL_6 i32 1, label LBL_7 ] LBL_6: %19 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0), i64 %13, i64 %13, i64 %3, i64 %2, i64 %1) %20 = call i64 @FUNC(i64* nonnull %sv_2) store i64 0, i64* %rax.0.reg2mem br label LBL_21 LBL_7: %21 = load i64, i64* %sv_1, align 8 %22 = call i64 @FUNC(i64 %.reload, i64 %4, i64 %21) %23 = load i64, i64* %sv_2, align 8 %24 = add i64 %23, 16 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = icmp eq i32 %26, 2 store i64 %4, i64* %rcx.0.reg2mem store i64 %21, i64* %rdx.0.reg2mem store i64 %.reload, i64* %rdi.1.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %27, label LBL_8, label LBL_21 LBL_8: %rdi.1.reload = load i64, i64* %rdi.1.reg2mem %28 = call i64 @FUNC(i64 %rdi.1.reload) %29 = icmp eq i64 %28, 0 %30 = icmp eq i1 %29, false store i64 0, i64* %rax.0.reg2mem br i1 %30, label LBL_9, label LBL_21 LBL_9: %31 = inttoptr i64 %28 to i8* %32 = load i8, i8* %31, align 1 %33 = icmp eq i8 %32, 43 %34 = icmp eq i1 %33, false br i1 %34, label LBL_11, label LBL_10 LBL_10: %35 = load i64, i64* %sv_2, align 8 %36 = call i64 @FUNC(i64 %35, i64 0, i64* nonnull @gv_1) br label LBL_18 LBL_11: %37 = icmp eq i8 %32, 45 %38 = icmp eq i1 %37, false br i1 %38, label LBL_17, label LBL_12 LBL_12: %39 = add i64 %28, 1 %40 = call i64 @FUNC(i64 %39) %41 = trunc i64 %40 to i32 store i32 %41, i32* %sv_0, align 4 %42 = icmp eq i32 %41, -1 %43 = icmp eq i1 %42, false store i32 %41, i32* %.reg2mem3 br i1 %43, label LBL_16, label LBL_13 LBL_13: %44 = call i64 @FUNC(i64 %39, i32* nonnull %sv_0) %45 = trunc i64 %44 to i32 %46 = icmp slt i32 %45, 0 %47 = icmp eq i1 %46, false br i1 %47, label LBL_13.LBL_16_crit_edge, label LBL_15 LBL_14: %.pre2 = load i32, i32* %sv_0, align 4 store i32 %.pre2, i32* %.reg2mem3 br label LBL_16 LBL_15: store i32 1, i32* %sv_0, align 4 store i32 1, i32* %.reg2mem3 br label LBL_16 LBL_16: %.reload4 = load i32, i32* %.reg2mem3 %48 = load i64, i64* %sv_2, align 8 %49 = zext i32 %.reload4 to i64 %50 = inttoptr i64 %39 to i64* %51 = call i64 @FUNC(i64 %48, i64 %49, i64* %50) br label LBL_18 LBL_17: %rdx.0.reload = load i64, i64* %rdx.0.reg2mem %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %52 = call i64 @FUNC(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @gv_2, i64 0, i64 0), i64 %28, i64 %rdx.0.reload, i64 %rcx.0.reload, i64 %2, i64 %1) %53 = call i64 @FUNC(i64* nonnull %sv_2) store i64 0, i64* %rax.0.reg2mem br label LBL_21 LBL_18: %54 = load i64, i64* %sv_2, align 8 %55 = add i64 %54, 24 %56 = inttoptr i64 %55 to i64* %57 = load i64, i64* %56, align 8 %58 = icmp eq i64 %57, 0 %59 = icmp eq i1 %58, false store i64 1, i64* %rax.0.reg2mem br i1 %59, label LBL_21, label LBL_19 LBL_19: %60 = call i64 @FUNC(i64* nonnull %sv_2) store i64 0, i64* %rax.0.reg2mem br label LBL_21 LBL_20: %61 = call i64 @FUNC() store i64 %61, 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 %13, { 1, 2, 0 } uselistorder i64* %sv_2, { 1, 4, 2, 5, 6, 7, 3, 0, 8 } uselistorder i64* %sv_1, { 1, 3, 2, 0 } uselistorder i32* %sv_0, { 2, 0, 1, 3 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i32* %.reg2mem3, { 0, 2, 3, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 7, 1, 8, 2, 3, 5, 4 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64, i64, i64*)* @server_connection_callback, { 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @i_error, { 1, 0 } uselistorder i32 0, { 1, 0 } uselistorder i32 2, { 0, 2, 1 } uselistorder i64 %arg1, { 0, 3, 1, 2, 4, 5 } uselistorder label LBL_21, { 4, 5, 0, 6, 1, 2, 7, 3 } uselistorder label LBL_16, { 1, 0, 2 } }
0
BinRealVul
test_acpi_q35_tcg_cphp_16250
test_acpi_q35_tcg_cphp
define i64 @FUNC() local_unnamed_addr { LBL_0: %sv_0 = alloca i64, align 8 %0 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 16) store i64 1, i64* %sv_0, align 8 %1 = call i64 @FUNC(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0) %2 = call i64 @FUNC(i64* nonnull %sv_0) ret i64 %2 uselistorder i64* %sv_0, { 0, 1, 3, 2 } uselistorder i32 1, { 2, 1, 0 } }
1