dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | do_delvm_15985 | do_delvm | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.1.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%rcx.11.reg2mem = alloca i64
%storemerge2.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
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%8 = call i64 @FUNC()
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 ptrtoint (i64* @gv_1 to i64), i64* %storemerge2.reg2mem
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_2, i64 0, i64 0), i64 %3, i64 %4, i64 %2, i64 %1)
store i64 %11, i64* %rax.1.reg2mem
br label LBL_8
LBL_2:
%rcx.11.reload = load i64, i64* %rcx.11.reg2mem
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
%12 = add i64 %storemerge2.reload, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %14)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
store i64 %rcx.11.reload, i64* %rcx.0.reg2mem
br i1 %17, label LBL_7, label LBL_3
LBL_3:
%18 = call i64 @FUNC(i64 %14, i64 %7)
%19 = trunc i64 %18 to i32
%20 = icmp slt i32 %19, 0
%21 = icmp eq i1 %20, false
store i64 %rcx.11.reload, i64* %rcx.0.reg2mem
br i1 %21, label LBL_7, label LBL_4
LBL_4:
%22 = icmp eq i32 %19, -95
%23 = icmp eq i1 %22, false
%24 = call i64 @FUNC(i64 %14)
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%25 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_3, i64 0, i64 0), i64 %24, i64 %rcx.11.reload, i64 %2, i64 %1)
store i64 %rcx.11.reload, i64* %rcx.0.reg2mem
br label LBL_7
LBL_6:
%26 = and i64 %18, 4294967295
%27 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_4, i64 0, i64 0), i64 %26, i64 %24, i64 %2, i64 %1)
store i64 %24, i64* %rcx.0.reg2mem
br label LBL_7
LBL_7:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%28 = inttoptr i64 %storemerge2.reload to i64*
%29 = load i64, i64* %28, align 8
%30 = icmp eq i64 %29, 0
%31 = icmp eq i1 %30, false
store i64 %29, i64* %storemerge2.reg2mem
store i64 %rcx.0.reload, i64* %rcx.11.reg2mem
store i64 %29, i64* %rax.1.reg2mem
br i1 %31, label LBL_2, label LBL_8
LBL_8:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %24, { 0, 2, 1 }
uselistorder i64 %rcx.11.reload, { 0, 3, 1, 2 }
uselistorder i64 %6, { 2, 1, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i64* %rcx.11.reg2mem, { 1, 0 }
uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @monitor_printf, { 2, 1, 0 }
uselistorder i1 false, { 2, 0, 1, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | nfs_revalidate_mapping_4417 | nfs_revalidate_mapping | define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = urem i32 %2, 2
%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 i32* %arg1 to i64
%6 = call i64 @FUNC(i64 %5, i64 0)
%7 = trunc i64 %1 to i16
%8 = icmp sgt i16 %7, -1
%.pre = ptrtoint i32* %arg2 to i64
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %.pre)
br label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %.pre)
%11 = add i64 %5, 16
%12 = call i64 @FUNC(i64 %11)
%13 = and i32 %2, -2
store i32 %13, i32* %arg1, align 4
%14 = and i32 %2, 16384
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = add i64 %5, 4
%17 = inttoptr i64 %16 to i64*
%18 = call i64* @memset(i64* %17, i32 0, i32 32)
%19 = call i32 @time(i32* null)
%20 = sext i32 %19 to i64
%21 = add i64 %5, 40
%22 = inttoptr i64 %21 to i64*
store i64 %20, i64* %22, align 8
br label LBL_5
LBL_5:
%23 = call i64 @FUNC(i64 %11)
%24 = add i64 %5, 8
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = inttoptr i64 %28 to i8*
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i8* %29, i64 0)
%31 = sext i32 %30 to i64
store i64 %31, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %5, { 2, 0, 1, 3, 4 }
uselistorder i32 %2, { 1, 2, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | write_strip_header_904 | write_strip_header | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64* %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg5 to i64
%3 = and i64 %arg3, 4294967295
%4 = trunc i64 %arg4 to i32
%5 = icmp eq i32 %4, 0
%. = select i1 %5, i8 17, i8 16
%6 = bitcast i64* %arg5 to i8*
store i8 %., i8* %6, align 1
%7 = add i64 %arg6, 11
%8 = add i64 %2, 1
%9 = and i64 %7, 4294967295
%10 = call i64 @FUNC(i64 %8, i64 %9)
%11 = add i64 %2, 4
%12 = call i64 @FUNC(i64 %11, i64 0)
%13 = add i64 %2, 6
%14 = call i64 @FUNC(i64 %13, i64 0)
%15 = add i64 %2, 8
%16 = call i64 @FUNC(i64 %15, i64 %3)
%17 = add i64 %2, 10
%18 = and i64 %1, 4294967295
%19 = call i64 @FUNC(i64 %17, i64 %18)
ret i64 %19
uselistorder i64 %2, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @AV_WB16, { 3, 2, 1, 0 }
uselistorder i64 4294967295, { 0, 2, 1 }
} | 0 |
BinRealVul | readline_hist_add_14716 | readline_hist_add | define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem50 = alloca i8*
%sv_0.3.reg2mem = alloca i32
%rdi.226.reg2mem = alloca i64
%.pre-phi49.reg2mem = alloca i64*
%sv_0.111.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%.reg2mem = alloca i64
%.pre-phi23.reg2mem = alloca i64
%.pre-phi25.reg2mem = alloca i64*
%storemerge12.reg2mem = alloca i32
%1 = load i64, i64* %0
%sv_1 = alloca i8*, align 8
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_16, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
store i8* null, i8** %sv_1, align 8
%5 = add i64 %4, 80
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, -1
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = sext i32 %7 to i64
%10 = mul i64 %9, 8
%11 = add i64 %10, %4
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = inttoptr i64 %13 to i8*
%15 = call i32 @strcmp(i8* %14, i8* %arg2)
%16 = icmp eq i32 %15, 0
store i64* %12, i64** %.pre-phi25.reg2mem
store i64 %11, i64* %.pre-phi23.reg2mem
store i64 %13, i64* %.reg2mem
store i32 %7, i32* %sv_0.0.reg2mem
br i1 %16, label LBL_6, label LBL_3
LBL_3:
store i32 0, i32* %storemerge12.reg2mem
br label LBL_4
LBL_4:
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%17 = sext i32 %storemerge12.reload to i64
%18 = mul i64 %17, 8
%19 = add i64 %18, %4
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = icmp eq i64 %21, 0
store i32 %storemerge12.reload, i32* %sv_0.3.reg2mem
br i1 %22, label LBL_13, label LBL_5
LBL_5:
%23 = inttoptr i64 %21 to i8*
%24 = call i32 @strcmp(i8* %23, i8* %arg2)
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
store i64* %20, i64** %.pre-phi25.reg2mem
store i64 %19, i64* %.pre-phi23.reg2mem
store i64 %21, i64* %.reg2mem
store i32 %storemerge12.reload, i32* %sv_0.0.reg2mem
br i1 %26, label LBL_9, label LBL_6
LBL_6:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.reload = load i64, i64* %.reg2mem
%.pre-phi23.reload = load i64, i64* %.pre-phi23.reg2mem
%.pre-phi25.reload = load i64*, i64** %.pre-phi25.reg2mem
%27 = bitcast i8** %sv_1 to i64*
store i64 %.reload, i64* %27, align 8
%28 = mul i32 %sv_0.0.reload, 8
%29 = sub i32 88, %28
%30 = add i32 %sv_0.0.reload, 1
%31 = sext i32 %30 to i64
%32 = mul i64 %31, 8
%33 = add i64 %32, %4
%34 = inttoptr i64 %33 to i64*
%35 = call i64* @memmove(i64* %.pre-phi25.reload, i64* %34, i32 %29)
%36 = add i64 %4, 72
%37 = inttoptr i64 %36 to i64*
store i64 0, i64* %37, align 8
%38 = icmp slt i32 %sv_0.0.reload, 10
store i32 %sv_0.0.reload, i32* %sv_0.111.reg2mem
br i1 %38, label LBL_7, label LBL_10
LBL_7:
%sv_0.111.reload = load i32, i32* %sv_0.111.reg2mem
%39 = sext i32 %sv_0.111.reload to i64
%40 = mul i64 %39, 8
%41 = add i64 %40, %4
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = icmp eq i64 %43, 0
store i32 %sv_0.111.reload, i32* %sv_0.3.reg2mem
br i1 %44, label LBL_13, label LBL_8
LBL_8:
%45 = add i32 %sv_0.111.reload, 1
%46 = icmp slt i32 %45, 10
store i32 %45, i32* %sv_0.111.reg2mem
store i64* %37, i64** %.pre-phi49.reg2mem
store i64 %.pre-phi23.reload, i64* %rdi.226.reg2mem
br i1 %46, label LBL_7, label LBL_12
LBL_9:
%47 = add nuw i32 %storemerge12.reload, 1
%48 = icmp ult i32 %47, 10
store i32 %47, i32* %storemerge12.reg2mem
br i1 %48, label LBL_4, label LBL_11
LBL_10:
%49 = icmp eq i32 %sv_0.0.reload, 10
%50 = icmp eq i1 %49, false
store i64* %37, i64** %.pre-phi49.reg2mem
store i64 %.pre-phi23.reload, i64* %rdi.226.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.3.reg2mem
br i1 %50, label LBL_13, label LBL_12
LBL_11:
%.pre = add i64 %4, 72
%.pre48 = inttoptr i64 %.pre to i64*
store i64* %.pre48, i64** %.pre-phi49.reg2mem
store i64 %21, i64* %rdi.226.reg2mem
br label LBL_12
LBL_12:
%rdi.226.reload = load i64, i64* %rdi.226.reg2mem
%.pre-phi49.reload = load i64*, i64** %.pre-phi49.reg2mem
%51 = inttoptr i64 %rdi.226.reload to i64*
call void @free(i64* %51)
%52 = add i64 %4, 8
%53 = inttoptr i64 %52 to i64*
%54 = call i64* @memcpy(i64* %arg1, i64* %53, i32 72)
store i64 0, i64* %.pre-phi49.reload, align 8
store i32 9, i32* %sv_0.3.reg2mem
br label LBL_13
LBL_13:
%sv_0.3.reload = load i32, i32* %sv_0.3.reg2mem
%55 = load i8*, i8** %sv_1, align 8
%56 = icmp eq i8* %55, null
%57 = icmp eq i1 %56, false
store i8* %55, i8** %.reg2mem50
br i1 %57, label LBL_15, label LBL_14
LBL_14:
%58 = call i8* @strdup(i8* %arg2)
store i8* %58, i8** %sv_1, align 8
store i8* %58, i8** %.reg2mem50
br label LBL_15
LBL_15:
%.reload51 = load i8*, i8** %.reg2mem50
%59 = sext i32 %sv_0.3.reload to i64
%60 = ptrtoint i8* %.reload51 to i64
%61 = mul i64 %59, 8
%62 = add i64 %61, %4
%63 = inttoptr i64 %62 to i64*
store i64 %60, i64* %63, align 8
store i32 -1, i32* %6, align 4
store i64 %4, i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.111.reload, { 2, 0, 1 }
uselistorder i64* %37, { 1, 0, 2 }
uselistorder i64 %.pre-phi23.reload, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 0, 4, 1, 3, 2, 5 }
uselistorder i32 %storemerge12.reload, { 2, 1, 0, 3 }
uselistorder i64 %4, { 0, 2, 8, 1, 3, 7, 4, 5, 6, 9 }
uselistorder i8** %sv_1, { 3, 2, 0, 1 }
uselistorder i32* %storemerge12.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.111.reg2mem, { 2, 0, 1 }
uselistorder i64** %.pre-phi49.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rdi.226.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_0.3.reg2mem, { 0, 3, 4, 2, 1 }
uselistorder i8** %.reg2mem50, { 0, 2, 1 }
uselistorder i32 10, { 2, 3, 1, 0 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i8* %arg2, { 2, 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_13, { 2, 3, 1, 0 }
uselistorder label LBL_12, { 1, 2, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | qpci_io_readl_14238 | qpci_io_readl | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%storemerge.reg2mem = alloca i64
%1 = load i32, i32* %0
%2 = icmp ult i64 %arg2, 4096
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
store i64 %3, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%4 = zext i32 %1 to i64
%5 = call i64 @FUNC(i64 %4)
store i64 %5, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | rate_control_2702 | rate_control | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%xmm1.1.reg2mem = alloca i128
%sv_0.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%sv_4.0.reg2mem = alloca i32
%sv_5.0.reg2mem = alloca i32
%xmm1.0.reg2mem = alloca i128
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %4, 12
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = trunc i64 %2 to i32
%sext = mul i64 %2, 4294967296
%12 = ashr exact i64 %sext, 32
%13 = mul nsw i64 %12, 1431655766
%14 = udiv i64 %13, 4294967296
%15 = ashr i32 %11, 31
%16 = trunc i64 %14 to i32
%17 = sub i32 %16, %15
%18 = add i64 %4, 16
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = inttoptr i64 %5 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i128 @FUNC(i64 %22)
%24 = call i64 @__asm_movsd.1(i128 %23)
%25 = call i128 @FUNC(i128 %23, i128 %23)
%26 = call i128 @FUNC(i64 %20)
%27 = call i128 @FUNC(i128 %3, i128 %3)
%28 = call i128 @FUNC(i64 %20)
%29 = call i128 @FUNC(i64 %24)
%30 = call i128 @FUNC(i64 4636737291354636288)
%31 = call i128 @FUNC(i128 %29, i128 %30)
%32 = call i128 @FUNC(i128 %31, i128 %28)
%33 = call i128 @FUNC(i128 %26, i128 %32)
%34 = call i64 @__asm_movsd.1(i128 %33)
%35 = call i64 @FUNC(i64 %4, i32 %7, i32 %10, i32 %11)
%36 = trunc i64 %35 to i32
%37 = and i32 %17, -2
%38 = add i64 %4, 4
%39 = inttoptr i64 %38 to i32*
store i32 2147483647, i32* %sv_5.0.reg2mem
store i32 -1, i32* %sv_4.0.reg2mem
store i32 -1, i32* %sv_3.0.reg2mem
store i32 %11, i32* %sv_1.0.reg2mem
store i32 %37, i32* %sv_2.0.reg2mem
store i32 %36, i32* %sv_0.0.reg2mem
store i128 %32, i128* %xmm1.1.reg2mem
br label LBL_3
LBL_1:
%xmm1.0.reload = load i128, i128* %xmm1.0.reg2mem
%. = select i1 %72, i32 1, i32 -1
%40 = mul i32 %., %sv_2.0.reload
%41 = load i32, i32* %39, align 4
%42 = add i32 %40, %sv_1.0.reload
%43 = zext i32 %41 to i64
%44 = zext i32 %42 to i64
%45 = call i64 @FUNC(i64 %44, i64 0, i64 %43)
%46 = trunc i64 %45 to i32
%47 = call i64 @FUNC(i64 %4, i32 %7, i32 %10, i32 %46)
%48 = trunc i64 %47 to i32
%49 = load i32, i32* %39, align 4
%50 = icmp slt i32 %40, 0
%51 = zext i1 %50 to i32
%52 = add i32 %40, %51
%53 = ashr i32 %52, 1
%54 = zext i32 %49 to i64
%55 = zext i32 %53 to i64
%56 = call i64 @FUNC(i64 %55, i64 1, i64 %54)
%57 = icmp eq i32 %sv_3.0.reload, %46
%58 = icmp eq i1 %57, false
%59 = trunc i64 %56 to i32
store i32 %48, i32* %sv_5.0.reg2mem
store i32 %46, i32* %sv_4.0.reg2mem
store i32 %sv_4.0.reload, i32* %sv_3.0.reg2mem
store i32 %46, i32* %sv_1.0.reg2mem
store i32 %59, i32* %sv_2.0.reg2mem
store i32 %48, i32* %sv_0.0.reg2mem
store i128 %xmm1.0.reload, i128* %xmm1.1.reg2mem
br i1 %58, label LBL_3, label LBL_2
LBL_2:
%60 = icmp slt i32 %sv_5.0.reload, %48
%storemerge.in = select i1 %60, i32 %sv_4.0.reload, i32 %46
%61 = sub i32 %48, %sv_5.0.reload
%62 = xor i32 %sv_5.0.reload, %48
%63 = xor i32 %61, %48
%64 = and i32 %63, %62
%65 = icmp slt i32 %64, 0
%66 = icmp eq i32 %61, 0
%67 = icmp slt i32 %61, 0
%68 = icmp ne i1 %67, %65
%69 = or i1 %66, %68
%70 = select i1 %69, i32 %48, i32 %sv_5.0.reload
store i32 %storemerge.in, i32* %sv_1.1.reg2mem
store i32 %70, i32* %sv_0.1.reg2mem
br label LBL_5
LBL_3:
%xmm1.1.reload = load i128, i128* %xmm1.1.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%sv_5.0.reload = load i32, i32* %sv_5.0.reg2mem
%71 = sext i32 %sv_0.0.reload to i64
%72 = icmp slt i64 %20, %71
store i128 %xmm1.1.reload, i128* %xmm1.0.reg2mem
br i1 %72, label LBL_1, label LBL_4
LBL_4:
%73 = call i128 @FUNC(i128 %xmm1.1.reload, i128 %xmm1.1.reload)
%74 = call i128 @__asm_cvtsi2sd.2(i32 %sv_0.0.reload)
%75 = call i128 @FUNC(i64 %34)
call void @FUNC(i128 %75, i128 %74)
%76 = icmp ugt i64 %20, %71
store i128 %74, i128* %xmm1.0.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %76, label LBL_1, label LBL_5
LBL_5:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%77 = load i32, i32* %39, align 4
%78 = zext i32 %77 to i64
%79 = zext i32 %sv_1.1.reload to i64
%80 = call i64 @FUNC(i64 %79, i64 0, i64 %78)
%81 = trunc i64 %80 to i32
%82 = add i64 %4, 24
%83 = inttoptr i64 %82 to i32*
store i32 %81, i32* %83, align 4
%84 = inttoptr i64 %18 to i32*
%85 = load i32, i32* %84, align 4
%86 = ashr i32 %sv_0.1.reload, 3
%87 = zext i32 %85 to i64
%88 = zext i32 %86 to i64
%89 = call i64 @FUNC(i64 %88, i64 %87)
%90 = trunc i64 %89 to i32
%91 = add i32 %90, 4
%92 = add i64 %4, 20
%93 = inttoptr i64 %92 to i32*
%94 = load i32, i32* %93, align 4
%95 = add i32 %91, %94
%96 = add i64 %4, 28
%97 = inttoptr i64 %96 to i32*
store i32 %95, i32* %97, align 4
ret i64 0
uselistorder i1 %72, { 1, 0 }
uselistorder i32 %sv_5.0.reload, { 0, 2, 3, 1 }
uselistorder i32 %sv_0.0.reload, { 0, 2, 1 }
uselistorder i32 %61, { 1, 2, 0 }
uselistorder i32 %48, { 3, 5, 6, 2, 4, 0, 1 }
uselistorder i32 %46, { 2, 0, 1, 3, 4 }
uselistorder i128 %23, { 2, 1, 0 }
uselistorder i64 %20, { 0, 1, 3, 2 }
uselistorder i32 %11, { 0, 2, 1 }
uselistorder i64 %4, { 0, 1, 2, 3, 4, 8, 7, 6, 5 }
uselistorder i64 %2, { 1, 0 }
uselistorder i128* %xmm1.0.reg2mem, { 1, 2, 0 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder i64 (i64, i64, i64)* @av_clip, { 0, 2, 1 }
uselistorder i32 -1, { 2, 0, 1 }
uselistorder i64 (i64, i32, i32, i32)* @count_hq_slice, { 1, 0 }
uselistorder i64 4294967296, { 3, 0, 1, 2 }
} | 0 |
BinRealVul | curlx_strdup_18535 | curlx_strdup | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = inttoptr i64 %arg1 to i8*
%1 = call i32 @strlen(i8* %0)
%2 = add i32 %1, 1
%3 = call i64* @malloc(i32 %2)
%4 = icmp eq i64* %3, null
%5 = icmp eq i1 %4, false
store i64 0, i64* %storemerge.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%6 = bitcast i64* %3 to i8*
%7 = call i8* @strcpy(i8* %6, i8* %0)
%8 = ptrtoint i64* %3 to i64
store i64 %8, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %3, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | qemu_bh_cancel_16105 | qemu_bh_cancel | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%0 = add i64 %arg1, 8
%1 = inttoptr i64 %0 to i32*
%2 = load i32, i32* %1, align 4
%3 = icmp eq i32 %2, 0
store i64 ptrtoint (i64* @gv_0 to i64), i64* %storemerge.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%4 = inttoptr i64 %storemerge.reload to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, %arg1
%7 = icmp eq i1 %6, false
store i64 %5, i64* %storemerge.reg2mem
br i1 %7, label LBL_1, label LBL_2
LBL_2:
store i64 %arg1, i64* %4, align 8
store i32 0, i32* %1, align 4
store i64 %arg1, 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* %storemerge.reg2mem, { 2, 0, 1 }
uselistorder i64 %arg1, { 0, 2, 1, 3 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | bm_printf_12792 | bm_printf | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i8* %arg4, i8* %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%storemerge.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:
%21 = icmp eq i64* %arg1, null
store i64 0, i64* %storemerge.reg2mem
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = ptrtoint i64* %arg1 to i64
store i32 32, i32* %sv_1, align 4
%23 = ptrtoint i32* %sv_1 to i64
%24 = bitcast i64* %sv_0 to i8*
%25 = call i32 @vsnprintf(i8* nonnull %24, i32 256, i8* %arg4, i64 %23)
%26 = trunc i64 %arg3 to i32
%27 = trunc i64 %arg2 to i32
%28 = call i64 @FUNC(i64 %22, i32 %27, i32 %26, i64* nonnull %sv_0)
store i64 %28, 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 i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | rfc1002mangle_8326 | rfc1002mangle | define i64 @FUNC(i64 %arg1, i32* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%sv_0.04.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%0 = icmp eq i32 %arg3, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = ptrtoint i32* %arg2 to i64
%wide.trip.count = zext i32 %arg3 to i64
store i64 0, i64* %indvars.iv.reg2mem
store i32 0, i32* %sv_0.04.reg2mem
br label LBL_2
LBL_2:
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%2 = add i64 %indvars.iv.reload, %1
%3 = inttoptr i64 %2 to i8*
%4 = load i8, i8* %3, align 1
%5 = udiv i8 %4, 16
%narrow = add nuw nsw i8 %5, 65
%6 = zext i32 %sv_0.04.reload to i64
%7 = add i64 %6, %arg1
%8 = inttoptr i64 %7 to i8*
store i8 %narrow, i8* %8, align 1
%9 = load i8, i8* %3, align 1
%10 = urem i8 %9, 16
%narrow2 = add nuw nsw i8 %10, 65
%11 = or i32 %sv_0.04.reload, 1
%12 = zext i32 %11 to i64
%13 = add i64 %12, %arg1
%14 = inttoptr i64 %13 to i8*
store i8 %narrow2, i8* %14, align 1
%15 = add i32 %sv_0.04.reload, 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
store i32 %15, i32* %sv_0.04.reg2mem
store i64 %wide.trip.count, i64* %.lcssa.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i32 %sv_0.04.reload, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.04.reg2mem, { 1, 0, 2 }
uselistorder i8 16, { 1, 0 }
} | 0 |
BinRealVul | settings_init_8024 | settings_init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
store i8 1, i8* bitcast (i64* @gv_0 to i8*), align 8
store i32 448, i32* bitcast (i64* @gv_1 to i32*), align 8
store i32 11211, i32* bitcast (i64* @gv_2 to i32*), align 8
store i32 11211, i32* bitcast (i64* @gv_3 to i32*), align 8
store i64 0, i64* @gv_4, align 8
store i64 67108864, i64* @gv_5, align 8
store i32 1024, i32* bitcast (i64* @gv_6 to i32*), align 8
store i32 0, i32* bitcast (i64* @gv_7 to i32*), align 8
store i32 0, i32* bitcast (i64* @gv_8 to i32*), align 8
store i32 1, i32* bitcast (i64* @gv_9 to i32*), align 8
store i64 0, i64* @gv_10, align 8
%0 = call i128 @FUNC(i64 4608308318706860032)
%1 = call i64 @__asm_movsd.1(i128 %0)
store i64 %1, i64* @gv_11, align 8
store i32 48, i32* bitcast (i64* @gv_12 to i32*), align 8
store i32 4, i32* bitcast (i64* @gv_13 to i32*), align 8
store i8 58, i8* bitcast (i64* @gv_14 to i8*), align 8
store i32 0, i32* bitcast (i64* @gv_15 to i32*), align 8
store i32 20, i32* bitcast (i64* @gv_16 to i32*), align 8
store i32 1024, i32* bitcast (i64* @gv_17 to i32*), align 8
%2 = load i32, i32* @gv_18, align 4
%3 = zext i32 %2 to i64
store i32 %2, i32* bitcast (i64* @gv_19 to i32*), align 8
store i64 1048576, i64* @gv_20, align 8
ret i64 %3
uselistorder i32 0, { 1, 2, 3, 0 }
} | 0 |
BinRealVul | lbs_set_radio_18273 | lbs_set_radio | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rcx.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sv_1 = alloca i16, align 2
%sext = mul i64 %arg2, 72057594037927936
%4 = ashr exact i64 %sext, 56
%5 = call i64 @FUNC(i64 1)
%6 = call i64 @FUNC(i64 6)
%7 = trunc i64 %6 to i16
store i16 %7, i16* %sv_1, align 2
%8 = call i64 @FUNC(i64 1)
%9 = trunc i64 %3 to i32
%10 = icmp sgt i32 %9, 150994943
br i1 %10, label LBL_3, label LBL_1
LBL_1:
%11 = and i64 %arg2, 4294967295
%12 = urem i64 %4, 256
%13 = icmp ult i64 %12, 3
store i64 4294967274, i64* %sv_0.0.reg2mem
store i64 %11, i64* %rcx.0.reg2mem
br i1 %13, label LBL_2, label LBL_7
LBL_2:
%14 = call i64 @FUNC(i64 %12)
br label LBL_3
LBL_3:
%15 = ptrtoint i64* %arg1 to i64
%sext2 = mul i64 %arg3, 72057594037927936
%16 = ashr exact i64 %sext2, 56
%17 = trunc i64 %16 to i8
%18 = icmp eq i8 %17, 0
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%19 = call i64 @FUNC(i64 1)
br label LBL_6
LBL_5:
%20 = call i64 @FUNC(i64 65534)
%21 = add i64 %15, 4
%22 = inttoptr i64 %21 to i32*
store i32 0, i32* %22, align 4
br label LBL_6
LBL_6:
%23 = urem i64 %4, 256
%. = select i1 %18, i64 ptrtoint ([4 x i8]* @gv_0 to i64), i64 ptrtoint ([3 x i8]* @gv_1 to i64)
%24 = inttoptr i64 %. to i8*
%25 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_2, i64 0, i64 0), i64 %., i64 %23, i8* %24, i64 %2, i64 %1)
%26 = trunc i64 %16 to i32
%27 = urem i32 %26, 256
%28 = add i64 %15, 8
%29 = inttoptr i64 %28 to i32*
store i32 %27, i32* %29, align 4
%30 = call i64 @FUNC(i64 %15, i64 1, i16* nonnull %sv_1)
%phitmp = and i64 %30, 4294967295
store i64 %phitmp, i64* %sv_0.0.reg2mem
store i64 %., i64* %rcx.0.reg2mem
br label LBL_7
LBL_7:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%31 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i64 %sv_0.0.reload, i64 %rcx.0.reload, i64 %2, i64 %1)
ret i64 %sv_0.0.reload
uselistorder i64 %., { 0, 2, 1 }
uselistorder i64 %12, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @cpu_to_le16, { 4, 3, 2, 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | btrfs_parse_early_options_18159 | btrfs_parse_early_options | define i64 @FUNC(i8* %arg1, i64 %arg2, i64 %arg3, i64* %arg4, i64* %arg5, i64* %arg6, i64* %arg7) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.0.be.reg2mem = alloca i32
%sv_0.04.reg2mem = alloca i32
%.reg2mem = alloca i8*
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%0 = icmp eq i8* %arg1, null
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_20
LBL_1:
%2 = ptrtoint i8* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 0)
store i64 %3, i64* %sv_3, align 8
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_20
LBL_2:
%6 = ptrtoint i64* %arg7 to i64
%7 = trunc i64 %arg2 to i32
%8 = bitcast i64* %sv_3 to i8**
%9 = call i8* @strsep(i8** nonnull %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%10 = icmp eq i8* %9, null
%11 = icmp eq i1 %10, false
store i8* %9, i8** %.reg2mem
store i32 0, i32* %sv_0.04.reg2mem
store i32 0, i32* %sv_0.1.reg2mem
br i1 %11, label LBL_3, label LBL_19
LBL_3:
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%.reload = load i8*, i8** %.reg2mem
%12 = load i8, i8* %.reload, align 1
%13 = icmp eq i8 %12, 0
%14 = icmp eq i1 %13, false
store i32 %sv_0.04.reload, i32* %sv_0.0.be.reg2mem
br i1 %14, label LBL_4, label LBL_8
LBL_4:
%15 = ptrtoint i8* %.reload to i64
%16 = call i64 @FUNC(i64 %15, i64* nonnull @gv_1, i64* nonnull %sv_2)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 3
br i1 %18, label LBL_17, label LBL_5
LBL_5:
%19 = icmp sgt i32 %17, 3
store i32 %sv_0.04.reload, i32* %sv_0.0.be.reg2mem
br i1 %19, label LBL_8, label LBL_6
LBL_6:
store i32 %sv_0.04.reload, i32* %sv_0.0.be.reg2mem
switch i32 %17, label LBL_8 [
i32 2, label LBL_13
i32 0, label LBL_7
i32 1, label LBL_9
]
LBL_7:
%20 = call i64 @FUNC(i64* nonnull %sv_2)
store i64 %20, i64* %arg4, align 8
store i32 %sv_0.04.reload, i32* %sv_0.0.be.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.be.reload = load i32, i32* %sv_0.0.be.reg2mem
%21 = call i8* @strsep(i8** nonnull %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%22 = icmp eq i8* %21, null
%23 = icmp eq i1 %22, false
store i8* %21, i8** %.reg2mem
store i32 %sv_0.0.be.reload, i32* %sv_0.04.reg2mem
store i32 %sv_0.0.be.reload, i32* %sv_0.1.reg2mem
br i1 %23, label LBL_3, label LBL_19
LBL_9:
store i32 0, i32* %sv_1, align 4
%24 = call i64 @FUNC(i64* nonnull %sv_2, i32* nonnull %sv_1)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
store i32 %25, i32* %sv_0.0.be.reg2mem
br i1 %27, label LBL_8, label LBL_10
LBL_10:
%28 = load i32, i32* %sv_1, align 4
%29 = icmp eq i32 %28, 0
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_12, label LBL_11
LBL_11:
store i64 0, i64* %arg5, align 8
store i32 %25, i32* %sv_0.0.be.reg2mem
br label LBL_8
LBL_12:
%31 = sext i32 %28 to i64
store i64 %31, i64* %arg5, align 8
store i32 %25, i32* %sv_0.0.be.reg2mem
br label LBL_8
LBL_13:
store i32 0, i32* %sv_1, align 4
%32 = call i64 @FUNC(i64* nonnull %sv_2, i32* nonnull %sv_1)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
store i32 %33, i32* %sv_0.0.be.reg2mem
br i1 %35, label LBL_8, label LBL_14
LBL_14:
%36 = load i32, i32* %sv_1, align 4
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_16, label LBL_15
LBL_15:
store i64 0, i64* %arg6, align 8
store i32 %33, i32* %sv_0.0.be.reg2mem
br label LBL_8
LBL_16:
%39 = sext i32 %36 to i64
store i64 %39, i64* %arg6, align 8
store i32 %33, i32* %sv_0.0.be.reg2mem
br label LBL_8
LBL_17:
%40 = call i64 @FUNC(i64* nonnull %sv_2)
%41 = icmp eq i64 %40, 0
%42 = icmp eq i1 %41, false
store i32 -12, i32* %sv_0.1.reg2mem
br i1 %42, label LBL_18, label LBL_19
LBL_18:
%43 = call i64 @FUNC(i64 %40, i32 %7, i64 %arg3, i64 %6)
%44 = trunc i64 %43 to i32
%45 = call i64 @FUNC(i64 %40)
%46 = icmp eq i32 %44, 0
%47 = icmp eq i1 %46, false
store i32 %44, i32* %sv_0.0.be.reg2mem
store i32 %44, i32* %sv_0.1.reg2mem
br i1 %47, label LBL_19, label LBL_8
LBL_19:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%48 = call i64 @FUNC(i64 %3)
%49 = zext i32 %sv_0.1.reload to i64
store i64 %49, i64* %rax.0.reg2mem
br label LBL_20
LBL_20:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %40, { 1, 0, 2 }
uselistorder i32 %33, { 1, 0, 2, 3 }
uselistorder i32 %25, { 1, 0, 2, 3 }
uselistorder i32 %sv_0.04.reload, { 3, 1, 0, 2 }
uselistorder i8** %8, { 1, 0 }
uselistorder i32* %sv_1, { 2, 0, 3, 4, 1, 5 }
uselistorder i8** %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.04.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.be.reg2mem, { 11, 9, 8, 10, 5, 4, 6, 0, 7, 2, 1, 3 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 3, 1, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64)* @kfree, { 1, 0 }
uselistorder i64 (i64*, i32*)* @match_int, { 1, 0 }
uselistorder i64 (i64*)* @match_strdup, { 1, 0 }
uselistorder i32 3, { 1, 0 }
uselistorder i32 0, { 5, 6, 7, 3, 8, 9, 4, 2, 0, 1 }
uselistorder i8* (i8**, i8*)* @strsep, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 6, 8, 7, 0, 9, 10 }
uselistorder i8* null, { 1, 0, 2 }
uselistorder label LBL_20, { 2, 0, 1 }
uselistorder label LBL_19, { 1, 0, 2, 3 }
uselistorder label LBL_8, { 10, 8, 7, 6, 5, 4, 3, 2, 1, 0, 9 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | m68k_cpu_initfn_3332 | m68k_cpu_initfn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = inttoptr i64 %1 to i64*
store i64 %2, i64* %3, align 8
%4 = call i64 @FUNC()
%5 = trunc i64 %4 to i8
%6 = icmp eq i8 %5, 0
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = load i8, i8* inttoptr (i64 4210717 to i8*), align 1
%8 = icmp eq i8 %7, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_3, label LBL_2
LBL_2:
store i8 1, i8* bitcast (i64* @gv_0 to i8*), align 8
%9 = call i64 @FUNC()
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 i8 1, { 1, 0 }
} | 0 |
BinRealVul | construct_perm_table_15473 | construct_perm_table | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%.pre-phi3.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i32 %1, 0
%9 = icmp eq i1 %8, false
%10 = trunc i64 %0 to i32
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%11 = add i64 %4, 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%.pre = mul i64 %arg2, 4
%.pre2 = and i64 %.pre, 17179869180
store i64 %.pre2, i64* %.pre-phi3.reg2mem
store i32 %10, i32* %sv_0.0.reg2mem
store i32 %13, i32* %storemerge.reg2mem
br label LBL_3
LBL_2:
%14 = mul i64 %arg2, 4
%15 = and i64 %14, 17179869180
%16 = add i64 %4, %15
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = mul i32 %18, %10
%20 = add i64 %4, 12
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = ashr i32 %22, 31
%24 = zext i32 %22 to i64
%25 = zext i32 %23 to i64
%26 = mul i64 %25, 4294967296
%27 = or i64 %26, %24
%28 = zext i32 %18 to i64
%29 = sdiv i64 %27, %28
%30 = trunc i64 %29 to i32
store i64 %15, i64* %.pre-phi3.reg2mem
store i32 %19, i32* %sv_0.0.reg2mem
store i32 %30, i32* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.pre-phi3.reload = load i64, i64* %.pre-phi3.reg2mem
%31 = add i64 %.pre-phi3.reload, %0
%32 = add i64 %31, 40
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = add i64 %31, 32
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = add i64 %31, 24
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = call i64 @FUNC(i64 %7, i32 %40, i32 %sv_0.0.reload, i32 %storemerge.reload, i32 %37, i32 %34)
%42 = load i32, i32* %33, align 4
%43 = load i32, i32* %36, align 4
%44 = load i32, i32* %39, align 4
%45 = mul i64 %arg2, 8
%46 = and i64 %45, 34359738360
%47 = add i64 %0, 48
%48 = add i64 %47, %46
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = zext i32 %42 to i64
%52 = call i64 @FUNC(i64 %50, i64 %7, i32 %44, i32 %43, i64 %51)
%53 = mul i32 %storemerge.reload, %sv_0.0.reload
%54 = zext i32 %53 to i64
%55 = load i64, i64* %49, align 8
%56 = call i64 @FUNC(i64 %55, i64 %55, i32 %sv_0.0.reload, i64 %54)
ret i64 %56
uselistorder i64 %55, { 1, 0 }
uselistorder i64 %31, { 1, 0, 2 }
uselistorder i32 %sv_0.0.reload, { 1, 2, 0 }
uselistorder i32 %storemerge.reload, { 1, 0 }
uselistorder i32 %18, { 1, 0 }
uselistorder i32 %10, { 1, 0 }
uselistorder i64 %4, { 2, 0, 1 }
uselistorder i64 %0, { 2, 0, 1, 3, 4 }
uselistorder i64* %.pre-phi3.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 17179869180, { 1, 0 }
} | 1 |
BinRealVul | cmv_decode_inter_979 | cmv_decode_inter | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%sv_0.210.reg2mem = alloca i8*
%sv_1.111.reg2mem = alloca i32
%storemerge12.reg2mem = alloca i32
%.reg2mem25 = alloca i32
%sv_1.0.lcssa.reg2mem = alloca i32
%sv_0.1.lcssa.reg2mem = alloca i8*
%sv_0.14.reg2mem = alloca i8*
%sv_1.05.reg2mem = alloca i32
%storemerge36.reg2mem = alloca i32
%.reg2mem23 = alloca i32
%sv_0.0.reg2mem = alloca i8*
%.reg2mem21 = alloca i32
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
store i64 %0, i64* %rdi, align 8
%sv_2 = alloca i64, align 8
store i64 %arg3, i64* %sv_2, align 8
%1 = add i64 %0, 4
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = add i32 %3, 3
%5 = icmp slt i32 %3, 0
%6 = select i1 %5, i32 %4, i32 %3
%7 = icmp ult i32 %6, 4
store i64 0, i64* %.lcssa.reg2mem
br i1 %7, label LBL_16, label LBL_1
LBL_1:
%8 = ptrtoint i64* %arg2 to i64
%9 = ptrtoint i64* %sv_2 to i64
%10 = bitcast i64* %rdi to i32*
%11 = trunc i64 %0 to i32
%12 = mul i32 %3, %11
%13 = sdiv i32 %12, 32768
%14 = sext i32 %13 to i64
%15 = add i64 %14, %8
%16 = inttoptr i64 %15 to i8*
%17 = add i64 %0, 8
%18 = inttoptr i64 %17 to i64*
%19 = add i64 %0, 32
%20 = inttoptr i64 %19 to i32*
%21 = add i64 %0, 88
%22 = inttoptr i64 %21 to i64*
%23 = add i64 %0, 112
%24 = inttoptr i64 %23 to i32*
%25 = add i64 %9, -8
%26 = inttoptr i64 %25 to i64*
%27 = add i64 %9, -16
%28 = inttoptr i64 %27 to i64*
%29 = add i64 %9, -24
%30 = inttoptr i64 %29 to i64*
%31 = add i64 %9, -32
%32 = inttoptr i64 %31 to i64*
%33 = add i64 %0, 72
%34 = inttoptr i64 %33 to i32*
%35 = add i64 %0, 48
%36 = inttoptr i64 %35 to i64*
store i32 %11, i32* %.reg2mem25
store i32 0, i32* %storemerge12.reg2mem
store i32 0, i32* %sv_1.111.reg2mem
store i8* %16, i8** %sv_0.210.reg2mem
br label LBL_14
LBL_2:
%storemerge36.reload = load i32, i32* %storemerge36.reg2mem
%.reload24 = load i32, i32* %.reg2mem23
%37 = add i64 %140, %8
%38 = inttoptr i64 %37 to i8*
%39 = load i8, i8* %38, align 1
%40 = icmp eq i8 %39, -1
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_10, label LBL_3
LBL_3:
%42 = load i64, i64* %18, align 8
%43 = load i32, i32* %20, align 4
%44 = mul i32 %storemerge36.reload, 4
%45 = ptrtoint i8* %sv_0.14.reload to i64
%46 = add i64 %45, 16
%47 = icmp ugt i64 %138, %46
br i1 %47, label LBL_4, label LBL_6
LBL_4:
%48 = load i8, i8* %sv_0.14.reload, align 1
%49 = icmp eq i8 %48, -1
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_6, label LBL_5
LBL_5:
%51 = mul i32 %43, %156
%52 = sext i32 %51 to i64
%53 = sext i32 %44 to i64
%54 = add i64 %42, %53
%55 = add i64 %54, %52
%56 = inttoptr i64 %55 to i32*
%57 = add i64 %45, 1
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
store i32 %59, i32* %56, align 4
%60 = add i64 %45, 5
%61 = load i32, i32* %20, align 4
%62 = sext i32 %61 to i64
%63 = add i64 %55, %62
%64 = inttoptr i64 %60 to i32*
%65 = load i32, i32* %64, align 4
%66 = inttoptr i64 %63 to i32*
store i32 %65, i32* %66, align 4
%67 = add i64 %45, 9
%68 = load i32, i32* %20, align 4
%69 = mul i32 %68, 2
%70 = sext i32 %69 to i64
%71 = add i64 %55, %70
%72 = inttoptr i64 %67 to i32*
%73 = load i32, i32* %72, align 4
%74 = inttoptr i64 %71 to i32*
store i32 %73, i32* %74, align 4
%75 = add i64 %45, 13
%76 = load i32, i32* %20, align 4
%77 = mul i32 %76, 3
%78 = sext i32 %77 to i64
%79 = add i64 %55, %78
%80 = inttoptr i64 %75 to i32*
%81 = load i32, i32* %80, align 4
%82 = inttoptr i64 %79 to i32*
store i32 %81, i32* %82, align 4
%83 = add i64 %45, 17
%84 = inttoptr i64 %83 to i8*
%.pre = load i32, i32* %10, align 8
store i32 %.pre, i32* %.reg2mem21
store i8* %84, i8** %sv_0.0.reg2mem
br label LBL_11
LBL_6:
%85 = icmp ugt i64 %138, %45
%86 = icmp eq i1 %85, false
store i32 %.reload24, i32* %.reg2mem21
store i8* %sv_0.14.reload, i8** %sv_0.0.reg2mem
br i1 %86, label LBL_11, label LBL_7
LBL_7:
%87 = load i64, i64* %22, align 8
%88 = icmp eq i64 %87, 0
store i32 %.reload24, i32* %.reg2mem
br i1 %88, label LBL_9, label LBL_8
LBL_8:
%89 = load i8, i8* %sv_0.14.reload, align 1
%90 = udiv i8 %89, 16
%91 = zext i8 %90 to i64
%92 = add nuw nsw i64 %91, 4294967289
%93 = urem i8 %89, 16
%94 = zext i8 %93 to i64
%95 = add nuw nsw i64 %94, 4294967289
%96 = load i64, i64* %rdi, align 8
%97 = add i64 %96, 4
%98 = inttoptr i64 %97 to i32*
%99 = load i32, i32* %98, align 4
%100 = zext i32 %99 to i64
%101 = and i64 %96, 4294967295
%102 = load i32, i32* %24, align 4
store i64 %100, i64* %26, align 8
store i64 %101, i64* %28, align 8
%103 = and i64 %92, 4294967295
store i64 %103, i64* %30, align 8
%104 = and i64 %95, 4294967295
store i64 %104, i64* %32, align 8
%105 = zext i32 %44 to i64
store i64 %42, i64* %rdi, align 8
%106 = call i64 @FUNC(i64 %42, i32 %43, i64 %87, i32 %102, i64 %105, i64 %157)
%107 = trunc i64 %42 to i32
store i32 %107, i32* %.reg2mem
br label LBL_9
LBL_9:
%.reload = load i32, i32* %.reg2mem
%108 = add i64 %45, 1
%109 = inttoptr i64 %108 to i8*
store i32 %.reload, i32* %.reg2mem21
store i8* %109, i8** %sv_0.0.reg2mem
br label LBL_11
LBL_10:
%110 = urem i8 %39, 16
%111 = zext i8 %110 to i64
%112 = add nuw nsw i64 %111, 4294967289
%113 = udiv i8 %39, 16
%114 = zext i8 %113 to i64
%115 = add nuw nsw i64 %114, 4294967289
%116 = load i64, i64* %rdi, align 8
%117 = add i64 %116, 4
%118 = inttoptr i64 %117 to i32*
%119 = load i32, i32* %118, align 4
%120 = zext i32 %119 to i64
%121 = zext i32 %.reload24 to i64
%122 = mul i32 %storemerge36.reload, 4
%123 = load i32, i32* %34, align 4
%124 = load i64, i64* %36, align 8
%125 = load i32, i32* %20, align 4
%126 = load i64, i64* %18, align 8
store i64 %120, i64* %26, align 8
store i64 %121, i64* %28, align 8
%127 = and i64 %115, 4294967295
store i64 %127, i64* %30, align 8
%128 = and i64 %112, 4294967295
store i64 %128, i64* %32, align 8
%129 = zext i32 %122 to i64
store i64 %126, i64* %rdi, align 8
%130 = call i64 @FUNC(i64 %126, i32 %125, i64 %124, i32 %123, i64 %129, i64 %157)
%131 = trunc i64 %126 to i32
store i32 %131, i32* %.reg2mem21
store i8* %sv_0.14.reload, i8** %sv_0.0.reg2mem
br label LBL_11
LBL_11:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%.reload22 = load i32, i32* %.reg2mem21
%132 = add i32 %sv_1.05.reload, 1
%133 = add i32 %storemerge36.reload, 1
%134 = sdiv i32 %.reload22, 8
%135 = zext i32 %134 to i64
%136 = sext i32 %133 to i64
%137 = icmp slt i64 %136, %135
store i32 %.reload22, i32* %.reg2mem23
store i32 %133, i32* %storemerge36.reg2mem
store i32 %132, i32* %sv_1.05.reg2mem
store i8* %sv_0.0.reload, i8** %sv_0.14.reg2mem
store i8* %sv_0.0.reload, i8** %sv_0.1.lcssa.reg2mem
store i32 %132, i32* %sv_1.0.lcssa.reg2mem
br i1 %137, label LBL_12, label LBL_13
LBL_12:
%sv_0.14.reload = load i8*, i8** %sv_0.14.reg2mem
%sv_1.05.reload = load i32, i32* %sv_1.05.reg2mem
%138 = load i64, i64* %sv_2, align 8
%139 = sub i64 %138, %8
%140 = sext i32 %sv_1.05.reload to i64
%141 = icmp sgt i64 %139, %140
store i8* %sv_0.14.reload, i8** %sv_0.1.lcssa.reg2mem
store i32 %sv_1.05.reload, i32* %sv_1.0.lcssa.reg2mem
br i1 %141, label LBL_2, label LBL_13
LBL_13:
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
%sv_0.1.lcssa.reload = load i8*, i8** %sv_0.1.lcssa.reg2mem
%142 = add i32 %storemerge12.reload, 1
%143 = load i64, i64* %rdi, align 8
%144 = add i64 %143, 4
%145 = inttoptr i64 %144 to i32*
%146 = load i32, i32* %145, align 4
%147 = sdiv i32 %146, 8
%148 = zext i32 %147 to i64
%149 = sext i32 %142 to i64
%150 = icmp slt i64 %149, %148
%151 = trunc i64 %143 to i32
store i32 %151, i32* %.reg2mem25
store i32 %142, i32* %storemerge12.reg2mem
store i32 %sv_1.0.lcssa.reload, i32* %sv_1.111.reg2mem
store i8* %sv_0.1.lcssa.reload, i8** %sv_0.210.reg2mem
store i64 %148, i64* %.lcssa.reg2mem
br i1 %150, label LBL_14, label LBL_16
LBL_14:
%sv_0.210.reload = load i8*, i8** %sv_0.210.reg2mem
%sv_1.111.reload = load i32, i32* %sv_1.111.reg2mem
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%.reload26 = load i32, i32* %.reg2mem25
%152 = add i32 %.reload26, 3
%153 = icmp slt i32 %.reload26, 0
%154 = select i1 %153, i32 %152, i32 %.reload26
%155 = icmp ugt i32 %154, 3
store i8* %sv_0.210.reload, i8** %sv_0.1.lcssa.reg2mem
store i32 %sv_1.111.reload, i32* %sv_1.0.lcssa.reg2mem
br i1 %155, label LBL_12.lr.ph, label LBL_13
LBL_15:
%156 = mul i32 %storemerge12.reload, 4
%157 = zext i32 %156 to i64
store i32 %.reload26, i32* %.reg2mem23
store i32 0, i32* %storemerge36.reg2mem
store i32 %sv_1.111.reload, i32* %sv_1.05.reg2mem
store i8* %sv_0.210.reload, i8** %sv_0.14.reg2mem
br label LBL_12
LBL_16:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %157, { 1, 0 }
uselistorder i32 %.reload26, { 3, 2, 1, 0 }
uselistorder i32 %storemerge12.reload, { 1, 0 }
uselistorder i64 %140, { 1, 0 }
uselistorder i64 %138, { 2, 1, 0 }
uselistorder i32 %sv_1.05.reload, { 0, 2, 1 }
uselistorder i8* %sv_0.14.reload, { 0, 2, 3, 5, 1, 4 }
uselistorder i8 %89, { 1, 0 }
uselistorder i32 %44, { 1, 0 }
uselistorder i32 %43, { 1, 0 }
uselistorder i64 %42, { 1, 3, 2, 0 }
uselistorder i32 %storemerge36.reload, { 0, 2, 1 }
uselistorder i64 %9, { 3, 2, 1, 0 }
uselistorder i64 %8, { 2, 0, 1 }
uselistorder i32 %3, { 0, 3, 2, 1 }
uselistorder i64* %sv_2, { 0, 2, 1 }
uselistorder i64 %0, { 6, 5, 2, 1, 4, 3, 0, 7, 8 }
uselistorder i64* %rdi, { 5, 1, 4, 0, 3, 2, 6 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem21, { 0, 4, 2, 3, 1 }
uselistorder i8** %sv_0.0.reg2mem, { 0, 4, 2, 3, 1 }
uselistorder i32* %.reg2mem23, { 2, 1, 0 }
uselistorder i32* %storemerge36.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_1.05.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_0.14.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_0.1.lcssa.reg2mem, { 3, 0, 2, 1 }
uselistorder i32* %sv_1.0.lcssa.reg2mem, { 3, 0, 2, 1 }
uselistorder i64 (i64, i32, i64, i32, i64, i64)* @cmv_motcomp, { 1, 0 }
uselistorder i64 4294967295, { 3, 4, 1, 2, 0 }
uselistorder i64 4294967289, { 3, 2, 0, 1 }
uselistorder i8 16, { 0, 1, 3, 2 }
uselistorder i32 0, { 2, 4, 0, 1, 3 }
uselistorder i32 3, { 0, 2, 3, 1 }
uselistorder i64 4, { 2, 0, 1, 3 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 2, 0, 1 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | get_tlm_438 | get_tlm | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge4.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = udiv i64 %2, 16
%4 = trunc i64 %3 to i8
%5 = urem i8 %4, 4
%6 = udiv i64 %2, 64
%7 = trunc i64 %6 to i8
%8 = urem i8 %7, 2
%9 = add i64 %arg2, 4294967292
%narrow = mul i8 %8, 2
%10 = add nuw nsw i8 %5, 2
%narrow3 = add nuw nsw i8 %10, %narrow
%11 = trunc i64 %9 to i32
%12 = ashr i32 %11, 31
%13 = and i64 %9, 4294967295
%14 = zext i32 %12 to i64
%15 = mul i64 %14, 4294967296
%16 = or i64 %15, %13
%17 = zext i8 %narrow3 to i64
%18 = sdiv i64 %16, %17
%19 = trunc i64 %18 to i8
%20 = icmp eq i8 %19, 0
br i1 %20, label LBL_11, label LBL_1
LBL_1:
%21 = icmp eq i8 %5, 1
%22 = icmp eq i1 %21, false
%23 = icmp eq i8 %8, 0
%24 = icmp eq i1 %23, false
store i32 0, i32* %storemerge4.reg2mem
br label LBL_2
LBL_2:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
switch i8 %5, label LBL_3 [
i8 3, label LBL_6
i8 2, label LBL_5
i8 0, label LBL_7
]
LBL_3:
br i1 %22, label LBL_7, label LBL_4
LBL_4:
%25 = call i64 @FUNC(i64 %0)
br label LBL_7
LBL_5:
%26 = call i64 @FUNC(i64 %0)
br label LBL_7
LBL_6:
%27 = call i64 @FUNC(i64 %0)
br label LBL_7
LBL_7:
br i1 %24, label LBL_9, label LBL_8
LBL_8:
%28 = call i64 @FUNC(i64 %0)
br label LBL_10
LBL_9:
%29 = call i64 @FUNC(i64 %0)
br label LBL_10
LBL_10:
%30 = mul i32 %storemerge4.reload, 16777216
%sext = add i32 %30, 16777216
%31 = ashr exact i32 %sext, 24
%32 = trunc i32 %31 to i8
%33 = icmp ugt i8 %19, %32
store i32 %31, i32* %storemerge4.reg2mem
br i1 %33, label LBL_2, label LBL_11
LBL_11:
ret i64 0
uselistorder i8 %19, { 1, 0 }
uselistorder i8 %8, { 1, 0 }
uselistorder i8 %5, { 1, 0, 2 }
uselistorder i64 %0, { 2, 3, 4, 1, 0, 5, 6 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i32 16777216, { 1, 0 }
uselistorder i64 (i64)* @bytestream2_get_be32, { 1, 0 }
uselistorder i64 (i64)* @bytestream2_get_be16, { 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i8 2, { 2, 3, 0, 1 }
uselistorder i64 (i64)* @bytestream2_get_byte, { 2, 1, 0 }
uselistorder label LBL_7, { 1, 2, 3, 4, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | Pe_r_bin_store_string_10101 | Pe_r_bin_store_string | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_7
LBL_1:
%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_2, label LBL_7
LBL_2:
%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 = call i64 @FUNC(i64 %5, i64 %8)
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%13 = add i64 %5, 24
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = add i64 %5, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18, i64 %15)
%20 = icmp eq i64 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = inttoptr i64 %9 to i64*
call void @free(i64* %22)
%23 = call i64 @FUNC(i64 %2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%24 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64 %9, i64 0)
%25 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %19, i64 0)
%26 = inttoptr i64 %9 to i64*
call void @free(i64* %26)
%27 = inttoptr i64 %19 to i64*
call void @free(i64* %27)
store i64 %2, 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 %19, { 1, 0, 2 }
uselistorder i64 %9, { 1, 0, 2, 3 }
uselistorder i64 %5, { 1, 0, 2, 3 }
uselistorder i64 %2, { 0, 4, 3, 2, 1, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 1, 2 }
uselistorder i64 (i64, i8*, i64, i64)* @sdb_set, { 1, 0 }
uselistorder void (i64*)* @free, { 2, 3, 0, 1 }
uselistorder i64 (i64, i64)* @sdb_encode, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_7, { 2, 3, 4, 0, 1 }
} | 0 |
BinRealVul | colo_packet_compare_tcp_7397 | colo_packet_compare_tcp | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.04.reg2mem = alloca i32
%sv_0.03.reg2mem = alloca i32
%sv_0.0.in.reg2mem = alloca i64
%rdi = alloca i64, align 8
%rsi = alloca i64, align 8
%0 = ptrtoint i64* %arg2 to i64
store i64 %0, i64* %rsi, align 8
%1 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%2 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0))
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = add i64 %1, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = add i64 %0, 10
%10 = inttoptr i64 %9 to i16*
%11 = load i16, i16* %10, align 2
%12 = zext i16 %11 to i64
store i64 %12, i64* %rdi, align 8
%13 = call i16 @ntohs(i16 %11)
%14 = and i16 %13, 16384
%15 = icmp eq i16 %14, 0
br i1 %15, label LBL_2, label LBL_1
LBL_1:
%16 = inttoptr i64 %3 to i16*
%17 = load i16, i16* %16, align 2
%18 = add nuw nsw i64 %12, 8
%19 = inttoptr i64 %18 to i16*
store i16 %17, i16* %19, align 2
%20 = load i64, i64* %rsi, align 8
%21 = load i64, i64* %rdi, align 8
%22 = add i64 %20, 12
%23 = inttoptr i64 %22 to i16*
%24 = load i16, i16* %23, align 2
%25 = add i64 %21, 12
%26 = inttoptr i64 %25 to i16*
store i16 %24, i16* %26, align 2
br label LBL_2
LBL_2:
%27 = add i64 %5, 4
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 1
%30 = icmp ult i8 %29, 6
br i1 %30, label LBL_4, label LBL_3
LBL_3:
%31 = load i64, i64* %4, align 8
%32 = add i64 %0, 16
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = zext i8 %29 to i64
%36 = mul i64 %35, 4
%37 = add i64 %0, 28
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = sext i32 %39 to i64
%41 = add i64 %31, %36
%42 = sub i64 %41, %34
%43 = sub i64 %42, %40
store i64 %1, i64* %rsi, align 8
%44 = call i64 @FUNC(i64 %0, i64 %1, i64 %43)
store i64 %44, i64* %sv_0.0.in.reg2mem
br label LBL_6
LBL_4:
%45 = add i64 %5, 6
%46 = inttoptr i64 %45 to i16*
%47 = load i16, i16* %46, align 2
%48 = add i64 %8, 6
%49 = inttoptr i64 %48 to i16*
%50 = load i16, i16* %49, align 2
%51 = icmp eq i16 %47, %50
%52 = icmp eq i1 %51, false
store i32 -1, i32* %sv_0.03.reg2mem
br i1 %52, label LBL_7, label LBL_5
LBL_5:
store i64 %1, i64* %rsi, align 8
%53 = call i64 @FUNC(i64 %0, i64 %1, i64 14)
store i64 %53, i64* %sv_0.0.in.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%sv_0.0 = trunc i64 %sv_0.0.in.reload to i32
%54 = icmp eq i32 %sv_0.0, 0
store i32 %sv_0.0, i32* %sv_0.03.reg2mem
store i32 0, i32* %sv_0.04.reg2mem
br i1 %54, label LBL_9, label LBL_7
LBL_7:
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%55 = call i64 @FUNC(i64 1)
%56 = trunc i64 %55 to i32
%57 = icmp eq i32 %56, 0
store i32 %sv_0.03.reload, i32* %sv_0.04.reg2mem
br i1 %57, label LBL_9, label LBL_8
LBL_8:
%58 = inttoptr i64 %5 to i16*
%59 = inttoptr i64 %8 to i16*
%60 = bitcast i64* %rsi to i32*
%61 = load i32, i32* %60, align 8
%62 = insertvalue %in_addr undef, i32 %61, 0
%63 = call i8* @inet_ntoa(%in_addr %62)
%64 = ptrtoint i8* %63 to i64
%65 = bitcast i64* %sv_4 to i8*
%66 = call i8* @strcpy(i8* nonnull %65, i8* %63)
%67 = add i64 %64, 4
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = insertvalue %in_addr undef, i32 %69, 0
%71 = call i8* @inet_ntoa(%in_addr %70)
%72 = bitcast i64* %sv_3 to i8*
%73 = call i8* @strcpy(i8* nonnull %72, i8* %71)
%74 = bitcast i64* %rdi to i32*
%75 = load i32, i32* %74, align 8
%76 = insertvalue %in_addr undef, i32 %75, 0
%77 = call i8* @inet_ntoa(%in_addr %76)
%78 = ptrtoint i64* %sv_2 to i64
%79 = bitcast i64* %sv_2 to i8*
%80 = call i8* @strcpy(i8* nonnull %79, i8* %77)
%81 = or i64 %78, 4
%82 = inttoptr i64 %81 to i32*
%83 = load i32, i32* %82, align 4
%84 = insertvalue %in_addr undef, i32 %83, 0
%85 = call i8* @inet_ntoa(%in_addr %84)
%86 = bitcast i64* %sv_1 to i8*
%87 = call i8* @strcpy(i8* nonnull %86, i8* %85)
%88 = add i64 %1, 24
%89 = inttoptr i64 %88 to i32*
%90 = load i32, i32* %89, align 4
%91 = add i64 %0, 24
%92 = inttoptr i64 %91 to i32*
%93 = load i32, i32* %92, align 4
%94 = zext i32 %93 to i64
%95 = call i64 @FUNC(i64 %94, i64* nonnull %sv_4, i64* nonnull %sv_3, i32 %90, i64* nonnull %sv_2, i64* nonnull %sv_1)
%96 = load i32, i32* %92, align 4
%97 = add i64 %5, 5
%98 = inttoptr i64 %97 to i8*
%99 = load i8, i8* %98, align 1
%100 = add i64 %5, 2
%101 = inttoptr i64 %100 to i16*
%102 = load i16, i16* %101, align 2
%103 = zext i16 %102 to i32
%104 = call i32 @ntohl(i32 %103)
%105 = load i16, i16* %58, align 2
%106 = zext i16 %105 to i32
%107 = call i32 @ntohl(i32 %106)
%108 = zext i32 %107 to i64
%109 = zext i32 %96 to i64
%110 = zext i8 %99 to i64
%111 = zext i32 %sv_0.03.reload to i64
%112 = zext i32 %104 to i64
%113 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i64 %108, i64 %112, i64 %111, i64 %110, i64 %109)
%114 = load i32, i32* %89, align 4
%115 = add i64 %8, 5
%116 = inttoptr i64 %115 to i8*
%117 = load i8, i8* %116, align 1
%118 = add i64 %8, 2
%119 = inttoptr i64 %118 to i16*
%120 = load i16, i16* %119, align 2
%121 = zext i16 %120 to i32
%122 = call i32 @ntohl(i32 %121)
%123 = load i16, i16* %59, align 2
%124 = zext i16 %123 to i32
%125 = call i32 @ntohl(i32 %124)
%126 = zext i32 %125 to i64
%127 = zext i32 %114 to i64
%128 = zext i8 %117 to i64
%129 = zext i32 %122 to i64
%130 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0), i64 %126, i64 %129, i64 %111, i64 %128, i64 %127)
%131 = load i32, i32* %92, align 4
%132 = load i64, i64* @gv_3, align 8
%133 = add i64 %0, 16
%134 = inttoptr i64 %133 to i64*
%135 = load i64, i64* %134, align 8
%136 = zext i32 %131 to i64
%137 = call i64 @FUNC(i64 %135, i64 %132, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_4, i64 0, i64 0), i64 %136)
%138 = load i32, i32* %89, align 4
%139 = load i64, i64* @gv_3, align 8
%140 = add i64 %1, 16
%141 = inttoptr i64 %140 to i64*
%142 = load i64, i64* %141, align 8
%143 = zext i32 %138 to i64
%144 = call i64 @FUNC(i64 %142, i64 %139, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_5, i64 0, i64 0), i64 %143)
store i32 %sv_0.03.reload, i32* %sv_0.04.reg2mem
br label LBL_9
LBL_9:
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%145 = zext i32 %sv_0.04.reload to i64
ret i64 %145
uselistorder i32 %sv_0.03.reload, { 1, 2, 0 }
uselistorder i64 %8, { 1, 2, 3, 0 }
uselistorder i64 %5, { 0, 1, 4, 2, 3 }
uselistorder i64 %1, { 4, 5, 3, 2, 1, 0, 6 }
uselistorder i64 %0, { 4, 5, 3, 2, 1, 0, 7, 6, 8 }
uselistorder i64* %rsi, { 3, 1, 0, 2, 4 }
uselistorder i64* %rdi, { 2, 1, 0 }
uselistorder i64* %sv_0.0.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.03.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.04.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i64, i8*, i64)* @qemu_hexdump, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @trace_colo_compare_tcp_info, { 1, 0 }
uselistorder i32 (i32)* @ntohl, { 3, 2, 1, 0 }
uselistorder i8* (i8*, i8*)* @strcpy, { 0, 1, 3, 2 }
uselistorder i8* (%in_addr)* @inet_ntoa, { 0, 3, 2, 1 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i32 0, { 2, 0, 3, 1 }
uselistorder i64 (i64, i64, i64)* @colo_packet_compare_common, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | process_request_7082 | process_request | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
store i32 ptrtoint (i32* @gv_0 to i32), i32* bitcast (i64* @gv_1 to i32*), align 8
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0, i64 400, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @gv_3, i64 0, i64 0))
br label LBL_13
LBL_2:
%6 = call i64 @FUNC(i64 %0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %0)
br label LBL_13
LBL_4:
%10 = load i64, i64* @gv_4, align 8
%11 = icmp eq i64 %10, 0
store i64 %0, i64* %rdi.0.reg2mem
br i1 %11, label LBL_8, label LBL_5
LBL_5:
%12 = add i64 %0, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %14, 0
br i1 %15, label LBL_7, label LBL_6
LBL_6:
%16 = call i64 @FUNC(i64 %14, i64 %10)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
store i64 %14, i64* %rdi.0.reg2mem
br i1 %19, label LBL_8, label LBL_7
LBL_7:
%20 = call i64 @FUNC(i64 %0, i64 401, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_6, i64 0, i64 0))
br label LBL_13
LBL_8:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%21 = inttoptr i64 %rdi.0.reload to i8*
%22 = call i32 @strcmp(i8* %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_7, i64 0, i64 0))
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_10, label LBL_9
LBL_9:
%25 = call i64 @FUNC(i64 %0)
br label LBL_13
LBL_10:
%26 = call i32 @strcmp(i8* %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_8, i64 0, i64 0))
%27 = icmp eq i32 %26, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_12, label LBL_11
LBL_11:
%29 = call i64 @FUNC(i64 %0)
%30 = add i64 %0, 28
%31 = inttoptr i64 %30 to i32*
store i32 1, i32* %31, align 4
br label LBL_13
LBL_12:
%32 = call i64 @FUNC(i64 %0, i64 501, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_9, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_10, i64 0, i64 0))
br label LBL_13
LBL_13:
%33 = add i64 %0, 24
%34 = inttoptr i64 %33 to i32*
store i32 1, i32* %34, align 4
%35 = add i64 %0, 16
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = inttoptr i64 %37 to i64*
call void @free(i64* %38)
store i64 0, i64* %36, align 8
ret i64 %0
uselistorder i64 %0, { 6, 5, 7, 8, 9, 10, 4, 2, 3, 0, 1, 11, 12, 13 }
uselistorder i64 (i64)* @process_get, { 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 0, 2, 1 }
uselistorder i64 (i64, i64, i8*, i8*)* @default_reply, { 2, 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 0 }
} | 0 |
BinRealVul | tcp_disconnect_9290 | tcp_disconnect | 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 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %2)
%5 = call i64 @FUNC(i64 %2)
%6 = trunc i64 %1 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_3, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %2, i64 0)
%9 = icmp eq i32 %6, 1
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %2)
br label LBL_11
LBL_3:
%12 = inttoptr i64 %5 to i32*
%13 = load i32, i32* %12, align 4
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %14)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_5, label LBL_4
LBL_4:
%18 = add i64 %2, 24
%19 = inttoptr i64 %18 to i32*
store i32 103, i32* %19, align 4
br label LBL_11
LBL_5:
%20 = and i64 %1, 4294967295
%21 = call i64 @FUNC(i64 %20)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_8, label LBL_6
LBL_6:
%25 = add i64 %5, 4
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i64 %5, 8
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = icmp eq i32 %27, %30
br i1 %31, label LBL_9, label LBL_7
LBL_7:
%32 = urem i32 %6, 32
%33 = icmp eq i32 %32, 0
br i1 %33, label LBL_8, label %34
LBL_8:
%36 = call i64 @FUNC()
%37 = and i64 %36, 4294967295
%38 = call i64 @FUNC(i64 %2, i64 %37)
%39 = add i64 %2, 24
%40 = inttoptr i64 %39 to i32*
store i32 104, i32* %40, align 4
br label LBL_11
LBL_9:
%41 = icmp eq i32 %6, 2
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_11, label LBL_10
LBL_10:
%43 = add i64 %2, 24
%44 = inttoptr i64 %43 to i32*
store i32 104, i32* %44, align 4
br label LBL_11
LBL_11:
%45 = inttoptr i64 %3 to i32*
%46 = call i64 @FUNC(i64 %2)
%47 = add i64 %2, 32
%48 = call i64 @FUNC(i64 %47)
%49 = call i64 @FUNC(i64 %2)
%50 = call i64 @FUNC(i64 %2)
%51 = add i64 %5, 48
%52 = call i64 @FUNC(i64 %51)
store i32 0, i32* %45, align 4
%53 = add i64 %2, 4
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = urem i32 %55, 2
%57 = icmp eq i32 %56, 0
%58 = icmp eq i1 %57, false
br i1 %58, label LBL_13, label LBL_12
LBL_12:
%59 = call i64 @FUNC(i64 %2)
br label LBL_13
LBL_13:
%60 = inttoptr i64 %4 to i32*
%61 = add i64 %2, 8
%62 = inttoptr i64 %61 to i32*
store i32 0, i32* %62, align 4
%63 = call i64 @FUNC(i64 %2, i64 2)
%64 = add i64 %5, 16
%65 = inttoptr i64 %64 to i32*
store i32 0, i32* %65, align 4
%66 = add i64 %5, 8
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = add i64 %5, 12
%70 = inttoptr i64 %69 to i32*
%71 = load i32, i32* %70, align 4
%72 = add i32 %68, 2
%73 = add i32 %72, %71
%74 = icmp eq i32 %73, 0
%75 = icmp eq i1 %74, false
%spec.store.select = select i1 %75, i32 %73, i32 1
store i32 %spec.store.select, i32* %67, align 4
%76 = add i64 %4, 4
%77 = inttoptr i64 %76 to i32*
store i32 0, i32* %77, align 4
%78 = add i64 %5, 20
%79 = inttoptr i64 %78 to i32*
store i32 2, i32* %79, align 4
%80 = add i64 %4, 8
%81 = inttoptr i64 %80 to i32*
store i32 0, i32* %81, align 4
%82 = add i64 %5, 24
%83 = inttoptr i64 %82 to i32*
store i32 0, i32* %83, align 4
%84 = add i64 %5, 28
%85 = inttoptr i64 %84 to i32*
store i32 -1, i32* %85, align 4
%86 = add i64 %5, 32
%87 = inttoptr i64 %86 to i32*
store i32 0, i32* %87, align 4
%88 = add i64 %5, 36
%89 = inttoptr i64 %88 to i32*
store i32 0, i32* %89, align 4
%90 = call i64 @FUNC(i64 %2, i64 3)
%91 = call i64 @FUNC(i64 %5)
%92 = call i64 @FUNC(i64 %2)
store i32 536, i32* %60, align 4
%93 = call i64 @FUNC(i64 %2)
%94 = add i64 %5, 40
%95 = inttoptr i64 %94 to i64*
%96 = call i64* @memset(i64* %95, i32 0, i32 4)
%97 = call i64 @FUNC(i64 %2)
%98 = call i64 @FUNC(i64 %5)
%99 = call i64 @FUNC(i64 %5)
%100 = add i64 %3, 8
%101 = inttoptr i64 %100 to i32*
store i32 0, i32* %101, align 4
%102 = add i64 %3, 4
%103 = inttoptr i64 %102 to i32*
%104 = load i32, i32* %103, align 4
%105 = icmp eq i32 %104, 0
br i1 %105, label LBL_15, label LBL_14
LBL_14:
%106 = add i64 %4, 12
%107 = inttoptr i64 %106 to i32*
%108 = load i32, i32* %107, align 4
%109 = icmp eq i32 %108, 0
%110 = icmp eq i1 %109, false
store i64 1, i64* %storemerge.reg2mem
br i1 %110, label LBL_15, label LBL_16
LBL_15:
store i64 0, i64* %storemerge.reg2mem
br label LBL_16
LBL_16:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%111 = call i64 @FUNC(i64 %storemerge.reload)
ret i64 0
uselistorder i32 %32, { 1, 0 }
uselistorder i32 %6, { 3, 0, 2, 1 }
uselistorder i64 %5, { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0, 1, 15 }
uselistorder i64 %2, { 4, 5, 7, 6, 8, 9, 11, 10, 15, 14, 13, 12, 3, 17, 16, 2, 1, 0, 18, 19, 20 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 2, { 3, 4, 0, 2, 1 }
uselistorder i32 0, { 2, 3, 4, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0, 15, 16, 17, 18, 19, 20 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_8, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | rcs_set_description_17441 | rcs_set_description | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i8, align 1
%0 = icmp eq i64 %arg2, 0
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = call i64 @FUNC(i64 %arg2, i64 1)
store i64 %1, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_2:
%2 = call i64 @FUNC(i64 64, i64 1)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_0, i64 0, i64 0))
%4 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%5 = call i8* @fgets(i8* nonnull %sv_1, i32 128, %_IO_FILE* %4)
%6 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%7 = call i32 @feof(%_IO_FILE* %6)
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 %2, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_6, label LBL_3
LBL_3:
%10 = bitcast i8* %sv_1 to i64*
br label LBL_4
LBL_4:
%11 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%12 = call i32 @ferror(%_IO_FILE* %11)
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
%15 = load i8, i8* %sv_1, align 1
%16 = icmp eq i8 %15, 46
%or.cond = or i1 %14, %16
store i64 %2, i64* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_6, label LBL_5
LBL_5:
%17 = call i32 @strlen(i8* nonnull %sv_1)
%18 = sext i32 %17 to i64
%19 = call i64 @FUNC(i64 %2, i64* nonnull %10, i64 %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0))
%21 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%22 = call i8* @fgets(i8* nonnull %sv_1, i32 128, %_IO_FILE* %21)
%23 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%24 = call i32 @feof(%_IO_FILE* %23)
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
store i64 %2, i64* %sv_0.0.reg2mem
br i1 %26, label LBL_6, label LBL_4
LBL_6:
%27 = ptrtoint i64* %arg1 to i64
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%28 = call i64 @FUNC(i64 %sv_0.0.reload, i64 0)
%29 = call i64 @FUNC(i64 %sv_0.0.reload)
%30 = call i64 @FUNC(i64 %27, i64 %29)
ret i64 %30
uselistorder i64 %2, { 0, 3, 1, 2 }
uselistorder i8* %sv_1, { 2, 3, 1, 4, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i32 0, { 2, 1, 0 }
uselistorder i32 (%_IO_FILE*)* @feof, { 1, 0 }
uselistorder i8* (i8*, i32, %_IO_FILE*)* @fgets, { 1, 0 }
uselistorder i32 128, { 1, 0 }
uselistorder %_IO_FILE** @gv_1, { 3, 2, 4, 0, 1 }
uselistorder i32 (i8*, ...)* @printf, { 1, 0 }
uselistorder i64 1, { 1, 2, 0, 3, 4 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | ea_read_header_15634 | ea_read_header | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = call i64 @FUNC(i64 %arg1)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp slt i32 %5, 0
%8 = icmp eq i1 %7, false
%9 = icmp eq i1 %6, false
%10 = icmp eq i1 %8, %9
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %10, label LBL_1, label LBL_12
LBL_1:
%11 = add i64 %arg1, 24
%12 = call i64 @FUNC(i64 %arg1, i64 %11)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %15, label LBL_12, label LBL_2
LBL_2:
%16 = add i64 %arg1, 32
%17 = call i64 @FUNC(i64 %arg1, i64 %16)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %19, label LBL_3, label LBL_12
LBL_3:
%20 = trunc i64 %3 to i32
%21 = icmp eq i32 %20, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %21, label LBL_12, label LBL_4
LBL_4:
%22 = add i64 %arg1, 4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%.off = add i32 %24, -1
%25 = icmp ult i32 %.off, 2
br i1 %25, label LBL_6, label LBL_5
LBL_5:
%26 = zext i32 %24 to i64
%27 = call i64 @FUNC(i64 %arg1, i64 1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0), i64 %26, i64 %2, i64 %1)
%28 = inttoptr i64 %arg1 to i32*
store i32 0, i32* %28, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_6:
%29 = add i64 %arg1, 8
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = icmp eq i32 %31, 0
%33 = icmp slt i32 %31, 0
%34 = icmp eq i1 %33, false
%35 = icmp eq i1 %32, false
%36 = icmp eq i1 %34, %35
br i1 %36, label LBL_8, label LBL_7
LBL_7:
%37 = zext i32 %31 to i64
%38 = call i64 @FUNC(i64 %arg1, i64 2, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0), i64 %37, i64 %2, i64 %1)
%39 = inttoptr i64 %arg1 to i32*
store i32 0, i32* %39, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_8:
%40 = add i64 %arg1, 12
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = icmp eq i32 %42, 0
%44 = icmp slt i32 %42, 0
%45 = icmp eq i1 %44, false
%46 = icmp eq i1 %43, false
%47 = icmp eq i1 %45, %46
br i1 %47, label LBL_10, label LBL_9
LBL_9:
%48 = zext i32 %42 to i64
%49 = call i64 @FUNC(i64 %arg1, i64 2, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_2, i64 0, i64 0), i64 %48, i64 %2, i64 %1)
%50 = inttoptr i64 %arg1 to i32*
store i32 0, i32* %50, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_10:
%51 = call i64 @FUNC(i64 %arg1, i64 0)
%52 = icmp eq i64 %51, 0
%53 = icmp eq i1 %52, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %53, label LBL_11, label LBL_12
LBL_11:
%54 = bitcast i64* %rdi to i32*
%55 = inttoptr i64 %51 to i32*
%56 = load i32, i32* %30, align 4
%57 = zext i32 %56 to i64
%58 = call i64 @FUNC(i64 %51, i64 33, i64 1, i64 %57)
%59 = add i64 %51, 8
%60 = inttoptr i64 %59 to i64*
%61 = load i64, i64* %60, align 8
%62 = inttoptr i64 %61 to i32*
store i32 1, i32* %62, align 4
%63 = load i64, i64* %60, align 8
%64 = load i32, i32* %54, align 8
%65 = add i64 %63, 4
%66 = inttoptr i64 %65 to i32*
store i32 %64, i32* %66, align 4
%67 = load i64, i64* %60, align 8
%68 = add i64 %67, 8
%69 = inttoptr i64 %68 to i32*
store i32 0, i32* %69, align 4
%70 = load i64, i64* %60, align 8
%71 = load i32, i32* %23, align 4
%72 = add i64 %70, 12
%73 = inttoptr i64 %72 to i32*
store i32 %71, i32* %73, align 4
%74 = load i64, i64* %60, align 8
%75 = load i32, i32* %30, align 4
%76 = add i64 %74, 16
%77 = inttoptr i64 %76 to i32*
store i32 %75, i32* %77, align 4
%78 = load i32, i32* %41, align 4
%79 = load i64, i64* %60, align 8
%80 = mul i32 %78, 8
%81 = add i64 %79, 20
%82 = inttoptr i64 %81 to i32*
store i32 %80, i32* %82, align 4
%83 = load i64, i64* %60, align 8
%84 = add i64 %83, 12
%85 = inttoptr i64 %84 to i32*
%86 = load i32, i32* %85, align 4
%87 = add i64 %83, 16
%88 = inttoptr i64 %87 to i32*
%89 = load i32, i32* %88, align 4
%90 = sext i32 %86 to i64
%91 = sext i32 %89 to i64
%92 = mul nsw i64 %91, %90
%93 = add i64 %83, 20
%94 = inttoptr i64 %93 to i32*
%95 = load i32, i32* %94, align 4
%96 = sext i32 %95 to i64
%97 = mul i64 %92, %96
%98 = sdiv i64 %97, 8
%99 = add i64 %83, 24
%100 = inttoptr i64 %99 to i64*
store i64 %98, i64* %100, align 8
%101 = load i64, i64* %60, align 8
%102 = add i64 %101, 12
%103 = inttoptr i64 %102 to i32*
%104 = load i32, i32* %103, align 4
%105 = add i64 %101, 20
%106 = inttoptr i64 %105 to i32*
%107 = load i32, i32* %106, align 4
%108 = mul i32 %107, %104
%109 = add i64 %101, 32
%110 = inttoptr i64 %109 to i32*
store i32 %108, i32* %110, align 4
%111 = load i32, i32* %55, align 4
%112 = add i64 %arg1, 16
%113 = inttoptr i64 %112 to i32*
store i32 %111, i32* %113, align 4
%114 = add i64 %51, 16
%115 = inttoptr i64 %114 to i32*
store i32 0, i32* %115, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %42, { 0, 2, 1 }
uselistorder i32 %31, { 0, 2, 1 }
uselistorder i32 %24, { 1, 0 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 8, 7, 9, 1, 5, 4, 6 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 1, 0 }
uselistorder i64 1, { 1, 6, 3, 2, 4, 7, 0, 5 }
uselistorder i64 4294967284, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @init_video_stream, { 1, 0 }
uselistorder i1 false, { 3, 4, 0, 5, 1, 6, 7, 2 }
uselistorder i64 %arg1, { 4, 5, 2, 3, 10, 0, 1, 9, 6, 7, 8, 11, 12, 13, 14, 15 }
uselistorder label LBL_12, { 1, 2, 6, 7, 8, 0, 4, 3, 5 }
} | 1 |
BinRealVul | validate_seg_1607 | validate_seg | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%sext = mul i64 %arg1, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = icmp eq i32 %0, 0
br i1 %2, label LBL_3, label LBL_1
LBL_1:
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 1
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_1.LBL_4_crit_edge, label LBL_3
LBL_2:
%.pre = load i64, i64* @gv_0, align 8
%.pre5 = ashr exact i64 %sext, 29
store i64 %.pre5, i64* %.pre-phi.reg2mem
store i64 %.pre, i64* %.reg2mem
br label LBL_4
LBL_3:
%6 = load i64, i64* @gv_0, align 8
%7 = ashr exact i64 %sext, 29
%8 = add i64 %6, %7
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = and i32 %10, 65532
%12 = icmp eq i32 %11, 0
store i64 %7, i64* %.pre-phi.reg2mem
store i64 %6, i64* %.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_8, label LBL_4
LBL_4:
%.reload = load i64, i64* %.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%13 = or i64 %.pre-phi.reload, 4
%14 = add i64 %13, %.reload
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = urem i32 %16, 2
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = and i32 %16, 2
%20 = zext i32 %19 to i64
%21 = icmp eq i32 %19, 0
%22 = icmp eq i1 %21, false
store i64 %20, i64* %rax.0.reg2mem
br i1 %22, label LBL_8, label LBL_6
LBL_6:
%23 = udiv i32 %16, 32
%24 = urem i32 %23, 4
%25 = zext i32 %24 to i64
%26 = trunc i64 %arg2 to i32
%27 = icmp slt i32 %24, %26
store i64 %25, i64* %rax.0.reg2mem
br i1 %27, label LBL_7, label LBL_8
LBL_7:
%28 = trunc i64 %1 to i32
%29 = call i64 @FUNC(i64 %.reload, i32 %28, i64 0, i64 0, i64 0, i64 0)
store i64 %29, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %16, { 0, 2, 1 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %sext, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 29, { 1, 0 }
uselistorder label LBL_8, { 2, 1, 3, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | au1200fb_setup_8952 | au1200fb_setup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge4.reg2mem = alloca i64
%rcx.0.ph14.reg2mem = alloca i64
%.reg2mem45 = alloca i8*
%sv_0.027.reg2mem = alloca i32
%sv_0.026.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%rdx.1.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%.reg2mem43 = alloca i8*
%rcx.0.ph.ph18.reg2mem = alloca i64
%sv_0.1.ph.ph19.reg2mem = alloca i32
%.reg2mem = alloca i8*
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%sv_2 = alloca i8*, align 8
%sv_3 = alloca i64, align 8
store i64 0, i64* %sv_3, align 8
%3 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_3)
%4 = load i64, i64* %sv_3, align 8
%5 = icmp eq i64 %4, 0
store i64 0, i64* %storemerge4.reg2mem
br i1 %5, label LBL_27, label LBL_1
LBL_1:
%6 = bitcast i64* %sv_3 to i8**
%7 = call i8* @strsep(i8** nonnull %6, i8* inttoptr (i64 4202678 to i8*))
%8 = icmp eq i8* %7, null
%9 = icmp eq i1 %8, false
store i64 0, i64* %storemerge4.reg2mem
br i1 %9, label LBL_2, label LBL_27
LBL_2:
%10 = ptrtoint i8** %sv_2 to i64
%11 = bitcast i8** %sv_2 to i64*
%rcx.0.ph.be = ptrtoint i64* %sv_1 to i64
store i8* %7, i8** %.reg2mem
store i32 -1, i32* %sv_0.1.ph.ph19.reg2mem
br label LBL_3
LBL_3:
%rcx.0.ph.ph18.reload = load i64, i64* %rcx.0.ph.ph18.reg2mem
%sv_0.1.ph.ph19.reload = load i32, i32* %sv_0.1.ph.ph19.reg2mem
%.reload = load i8*, i8** %.reg2mem
store i8* %.reload, i8** %.reg2mem45
store i64 %rcx.0.ph.ph18.reload, i64* %rcx.0.ph14.reg2mem
br label LBL_4.lr.ph
LBL_4:
%.reload44 = load i8*, i8** %.reg2mem43
%12 = call i32 @strncmp(i8* %.reload44, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i32 6)
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_16, label LBL_5
LBL_5:
%15 = ptrtoint i8* %.reload44 to i64
%16 = add i64 %15, 6
%17 = call i64 @FUNC(i64 %16, i64* nonnull %11, i64 0)
%18 = load i8*, i8** %sv_2, align 8
%19 = load i8, i8* %18, align 1
%20 = icmp eq i8 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%22 = trunc i64 %17 to i32
store i64 0, i64* %rdx.1.reg2mem
store i32 %22, i32* %sv_0.0.reg2mem
br label LBL_11
LBL_7:
%23 = inttoptr i64 %16 to i8*
%24 = call i32 @strcmp(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0))
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
store i64 0, i64* %indvars.iv.reg2mem
br i1 %26, label LBL_9, label LBL_8
LBL_8:
%27 = trunc i64 %16 to i32
store i64 0, i64* %rdx.1.reg2mem
store i32 %27, i32* %sv_0.0.reg2mem
br label LBL_11
LBL_9:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%28 = mul i64 %indvars.iv.reload, 8
%29 = add i64 %28, ptrtoint ([3 x i8*]* @gv_3 to i64)
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = inttoptr i64 %31 to i8*
%33 = call i32 @strcmp(i8* %23, i8* %32)
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_10, label LBL_13
LBL_10:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%36 = icmp ult i64 %indvars.iv.next, 3
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %31, i64* %rdx.1.reg2mem
store i32 %sv_0.1.ph.ph19.reload, i32* %sv_0.0.reg2mem
br i1 %36, label LBL_9, label LBL_11
LBL_11:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%37 = icmp ult i32 %sv_0.0.reload, 3
store i32 %sv_0.0.reload, i32* %sv_0.026.reg2mem
br i1 %37, label LBL_14, label LBL_12
LBL_12:
%rdx.1.reload = load i64, i64* %rdx.1.reg2mem
%38 = call i64 @FUNC(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_4, i64 0, i64 0), i64 %16, i64 %rdx.1.reload, i64 %10, i64 %2, i64 %1)
store i32 %sv_0.0.reload, i32* %sv_0.027.reg2mem
br label LBL_15
LBL_13:
%39 = trunc i64 %indvars.iv.reload to i32
store i32 %39, i32* %sv_0.026.reg2mem
br label LBL_14
LBL_14:
%sv_0.026.reload = load i32, i32* %sv_0.026.reg2mem
store i32 %sv_0.026.reload, i32* inttoptr (i64 4210808 to i32*), align 8
store i32 %sv_0.026.reload, i32* %sv_0.027.reg2mem
br label LBL_15
LBL_15:
%sv_0.027.reload = load i32, i32* %sv_0.027.reg2mem
%40 = call i8* @strsep(i8** nonnull %6, i8* inttoptr (i64 4202678 to i8*))
%41 = icmp eq i8* %40, null
%42 = icmp eq i1 %41, false
store i8* %40, i8** %.reg2mem
store i32 %sv_0.027.reload, i32* %sv_0.1.ph.ph19.reg2mem
store i64 %10, i64* %rcx.0.ph.ph18.reg2mem
store i64 0, i64* %storemerge4.reg2mem
br i1 %42, label LBL_3, label LBL_27
LBL_16:
%43 = call i32 @strncmp(i8* %.reload44, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_5, i64 0, i64 0), i32 10)
%44 = icmp eq i32 %43, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_19, label LBL_17
LBL_17:
store i32 1, i32* bitcast (i64* @gv_6 to i32*), align 8
br label LBL_18
LBL_18:
%46 = call i8* @strsep(i8** nonnull %6, i8* inttoptr (i64 4202678 to i8*))
%47 = icmp eq i8* %46, null
%48 = icmp eq i1 %47, false
store i8* %46, i8** %.reg2mem43
store i64 0, i64* %storemerge4.reg2mem
br i1 %48, label LBL_4, label LBL_27
LBL_19:
%49 = call i32 @strncmp(i8* %.reload44, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_7, i64 0, i64 0), i32 8)
%50 = icmp eq i32 %49, 0
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_21, label LBL_20
LBL_20:
%52 = ptrtoint i8* %.reload44 to i64
%53 = add i64 %52, 8
%54 = call i64 @FUNC(i64 %53, i64* nonnull %sv_1, i64 0)
%55 = trunc i64 %54 to i32
%56 = icmp ult i32 %55, 10
%spec.store.select = select i1 %56, i32 %55, i32 10
store i32 %spec.store.select, i32* @gv_8, align 4
br label LBL_23
LBL_21:
%57 = call i32 @strncmp(i8* %.reload44, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_9, i64 0, i64 0), i32 7)
%58 = icmp eq i32 %57, 0
%59 = icmp eq i1 %58, false
br i1 %59, label LBL_25, label LBL_22
LBL_22:
%60 = ptrtoint i8* %.reload44 to i64
%61 = add i64 %60, 7
%62 = call i64 @FUNC(i64 %61, i64* nonnull %sv_1, i64 0)
%63 = trunc i64 %62 to i32
%64 = icmp ult i32 %63, 10
%spec.store.select8 = select i1 %64, i32 %63, i32 0
store i32 %spec.store.select8, i32* @gv_10, align 4
br label LBL_23
LBL_23:
%65 = call i8* @strsep(i8** nonnull %6, i8* inttoptr (i64 4202678 to i8*))
%66 = icmp eq i8* %65, null
%67 = icmp eq i1 %66, false
store i8* %65, i8** %.reg2mem45
store i64 %rcx.0.ph.be, i64* %rcx.0.ph14.reg2mem
store i64 0, i64* %storemerge4.reg2mem
br i1 %67, label LBL_4.lr.ph, label LBL_27
LBL_24:
%rcx.0.ph14.reload = load i64, i64* %rcx.0.ph14.reg2mem
%.reload46 = load i8*, i8** %.reg2mem45
store i8* %.reload46, i8** %.reg2mem43
br label LBL_4
LBL_25:
%68 = call i32 @strncmp(i8* %.reload44, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_11, i64 0, i64 0), i32 3)
%69 = icmp eq i32 %68, 0
%70 = icmp eq i1 %69, false
store i64 1, i64* %storemerge4.reg2mem
br i1 %70, label LBL_26, label LBL_27
LBL_26:
%71 = ptrtoint i8* %.reload44 to i64
%72 = call i64 @FUNC(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_12, i64 0, i64 0), i64 %71, i64 3, i64 %rcx.0.ph14.reload, i64 %2, i64 %1)
br label LBL_18
LBL_27:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
ret i64 %storemerge4.reload
uselistorder i32 %63, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 1, 0, 2 }
uselistorder i64 %16, { 1, 0, 2, 3 }
uselistorder i8* %.reload44, { 0, 1, 8, 2, 7, 3, 4, 6, 5 }
uselistorder i8** %6, { 2, 3, 1, 0 }
uselistorder i64* %sv_3, { 0, 2, 1, 3 }
uselistorder i8** %sv_2, { 1, 2, 0 }
uselistorder i64* %sv_1, { 1, 2, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i8** %.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.1.ph.ph19.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.0.ph.ph18.reg2mem, { 1, 0 }
uselistorder i8** %.reg2mem43, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdx.1.reg2mem, { 0, 1, 3, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i32* %sv_0.027.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge4.reg2mem, { 0, 3, 2, 4, 1, 5, 6 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 10, { 2, 0, 1, 3 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @print_warn, { 1, 0 }
uselistorder i32 3, { 1, 0 }
uselistorder i64 3, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i64 (i64, i64*, i64)* @simple_strtol, { 2, 1, 0 }
uselistorder i32 0, { 9, 0, 10, 11, 12, 13, 14, 15, 1, 2, 3, 4, 5, 6, 7, 8 }
uselistorder i32 (i8*, i8*, i32)* @strncmp, { 4, 3, 2, 1, 0 }
uselistorder i1 false, { 3, 2, 4, 5, 11, 6, 1, 7, 8, 9, 10, 0 }
uselistorder i8* null, { 2, 3, 1, 0 }
uselistorder i8* (i8**, i8*)* @strsep, { 2, 3, 1, 0 }
uselistorder i8* inttoptr (i64 4202678 to i8*), { 2, 3, 1, 0 }
uselistorder label LBL_27, { 2, 1, 3, 0, 4, 5 }
uselistorder label LBL_4.lr.ph, { 1, 0 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | path_parent_directory_8978 | path_parent_directory | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
store i64 %1, i64* %arg1, align 8
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %0)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = zext i1 %5 to i64
%7 = call i64 @FUNC(i64 %6)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%. = select i1 %9, i64 0, i64 4294967294
ret i64 %.
} | 0 |
BinRealVul | mxf_read_index_entry_array_12111 | mxf_read_index_entry_array | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge12.reg2mem = alloca i32
%.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = bitcast i64* %arg2 to i32*
store i32 %5, i32* %6, align 4
%7 = call i64 @FUNC(i64 %3)
%sext = mul i64 %1, 4294967296
%8 = ashr exact i64 %sext, 32
%9 = call i64 @FUNC(i64 %8, i64 4)
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i64*
store i64 %9, i64* %11, align 8
%12 = icmp eq i64 %9, 0
br i1 %12, label LBL_0.LBL_6_crit_edge, label LBL_2
LBL_1:
%.pre = add i64 %2, 16
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_6
LBL_2:
%13 = bitcast i64* %rsi to i32*
%14 = load i32, i32* %13, align 8
%15 = sext i32 %14 to i64
%16 = call i64 @FUNC(i64 %15, i64 4)
%17 = add i64 %2, 16
%18 = inttoptr i64 %17 to i64*
store i64 %16, i64* %18, align 8
%19 = icmp eq i64 %16, 0
store i64 %17, i64* %.pre-phi.reg2mem
br i1 %19, label LBL_6, label LBL_3
LBL_3:
%20 = load i32, i32* %13, align 8
%21 = sext i32 %20 to i64
%22 = call i64 @FUNC(i64 %21, i64 8)
%23 = add i64 %2, 24
%24 = inttoptr i64 %23 to i64*
store i64 %22, i64* %24, align 8
%25 = icmp eq i64 %22, 0
%26 = icmp eq i1 %25, false
store i64 %17, i64* %.pre-phi.reg2mem
br i1 %26, label LBL_4, label LBL_6
LBL_4:
%27 = load i32, i32* %13, align 8
%28 = icmp eq i32 %27, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %28, label LBL_8, label LBL_5
LBL_5:
%29 = add i64 %7, 4294967285
%30 = and i64 %29, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge12.reg2mem
br label LBL_7
LBL_6:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%31 = call i64 @FUNC(i64 %10)
%32 = call i64 @FUNC(i64 %.pre-phi.reload)
store i64 12, i64* %storemerge.reg2mem
br label LBL_8
LBL_7:
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%.reload = load i64, i64* %.reg2mem
%33 = call i64 @FUNC(i64 %3)
%34 = load i64, i64* %11, align 8
%35 = mul i64 %.reload, 4
%36 = add i64 %34, %35
%37 = trunc i64 %33 to i32
%38 = urem i32 %37, 256
%39 = inttoptr i64 %36 to i32*
store i32 %38, i32* %39, align 4
%40 = call i64 @FUNC(i64 %3)
%41 = call i64 @FUNC(i64 %3)
%42 = load i64, i64* %18, align 8
%43 = add i64 %42, %35
%44 = trunc i64 %41 to i32
%45 = urem i32 %44, 256
%46 = inttoptr i64 %43 to i32*
store i32 %45, i32* %46, align 4
%47 = load i64, i64* %24, align 8
%48 = mul i64 %.reload, 8
%49 = add i64 %47, %48
%50 = call i64 @FUNC(i64 %3)
%51 = inttoptr i64 %49 to i64*
store i64 %50, i64* %51, align 8
%52 = call i64 @FUNC(i64 %3, i64 %30)
%53 = add i32 %storemerge12.reload, 1
%54 = load i32, i32* %13, align 8
%55 = zext i32 %54 to i64
%56 = sext i32 %53 to i64
%57 = icmp slt i64 %56, %55
store i64 %56, i64* %.reg2mem
store i32 %53, i32* %storemerge12.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %57, label LBL_7, label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %35, { 1, 0 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i64 %17, { 1, 0, 2 }
uselistorder i32* %13, { 1, 0, 2, 3 }
uselistorder i64 %3, { 0, 1, 3, 2, 4, 5, 6 }
uselistorder i64 %2, { 1, 2, 0, 3 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge12.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 }
uselistorder i64 (i64)* @avio_r8, { 2, 1, 0 }
uselistorder i64 (i64)* @av_freep, { 1, 0 }
uselistorder i64 16, { 1, 0, 2 }
uselistorder i64 0, { 0, 2, 1, 7, 8, 9, 10, 3, 4, 5, 6 }
uselistorder i64 (i64, i64)* @av_calloc, { 2, 1, 0 }
uselistorder i64 (i64)* @avio_rb32, { 1, 0 }
uselistorder label LBL_8, { 0, 2, 1 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 1, 2, 0 }
} | 1 |
BinRealVul | re_yylex_init_extra_12687 | re_yylex_init_extra | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_0)
%1 = icmp eq i64* %arg2, null
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i32* @__errno_location()
store i32 22, i32* %3, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%4 = ptrtoint i64* %sv_0 to i64
%5 = call i64 @FUNC(i64 0, i64* nonnull %sv_0)
store i64 %5, i64* %arg2, align 8
%6 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_0)
%7 = call i64 @FUNC(i64 %4)
store i64 %7, 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* %sv_0, { 0, 1, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64*)* @re_yyset_extra, { 1, 0 }
} | 1 |
BinRealVul | zynqmp_dma_chan_remove_17806 | zynqmp_dma_chan_remove | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %1, i64 %5, i64 %1)
%7 = add i64 %1, 12
%8 = call i64 @FUNC(i64 %7)
%9 = add i64 %1, 16
%10 = call i64 @FUNC(i64 %9)
store i64 %10, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 1, 0, 4, 2, 3 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | paravirt_patch_jmp_13489 | paravirt_patch_jmp | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = icmp ult i32 %arg4, 5
br i1 %0, label LBL_1, label LBL_2
LBL_1:
%1 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i64 %arg3)
%2 = zext i32 %arg4 to i64
store i64 %2, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %arg2, -5
%5 = sub i64 %4, %arg3
%6 = bitcast i64* %arg1 to i8*
store i8 -23, i8* %6, align 1
%7 = add i64 %3, 8
%8 = inttoptr i64 %7 to i64*
store i64 %5, i64* %8, align 8
store i64 5, 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 }
} | 0 |
BinRealVul | journal_file_fsprg_evolve_12955 | journal_file_fsprg_evolve | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.01.reg2mem = alloca i64
%.reg2mem3 = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%4 = icmp eq i64* %arg1, null
%5 = icmp eq i1 %4, false
br i1 %5, 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 ([59 x i8], [59 x i8]* @gv_1, i64 0, i64 0), i32 38, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%6 = trunc i64 %3 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_3, label LBL_10
LBL_3:
%9 = ptrtoint i64* %arg1 to i64
%10 = call i64 @FUNC(i64 %9, i64 %arg2, i64* nonnull %sv_1)
%11 = trunc i64 %10 to i32
%12 = icmp slt i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = and i64 %10, 4294967295
store i64 %14, i64* %rax.0.reg2mem
br label LBL_10
LBL_5:
%15 = add i64 %9, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17)
%19 = load i64, i64* %sv_1, align 8
%20 = icmp ult i64 %18, %19
%21 = icmp eq i1 %20, false
store i64 %19, i64* %.reg2mem
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%22 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_3, i64 0, i64 0), i64 %18, i64 %19, i64 %arg2, i64 %2, i64 %1)
%.pre = load i64, i64* %sv_1, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_7
LBL_7:
%.reload = load i64, i64* %.reg2mem
%23 = icmp ugt i64 %18, %.reload
store i64 %.reload, i64* %.reg2mem3
store i64 %18, i64* %sv_0.01.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %23, label LBL_10, label LBL_8
LBL_8:
%sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem
%.reload4 = load i64, i64* %.reg2mem3
%24 = icmp eq i64 %sv_0.01.reload, %.reload4
%25 = icmp eq i1 %24, false
store i64 0, i64* %rax.0.reg2mem
br i1 %25, label LBL_9, label LBL_10
LBL_9:
%26 = load i64, i64* %16, align 8
%27 = call i64 @FUNC(i64 %26)
%28 = load i64, i64* %16, align 8
%29 = call i64 @FUNC(i64 %28)
%30 = load i64, i64* %sv_1, align 8
%31 = icmp ugt i64 %29, %30
store i64 %30, i64* %.reg2mem3
store i64 %29, i64* %sv_0.01.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %31, label LBL_10, label LBL_8
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %19, { 1, 0, 2 }
uselistorder i64* %16, { 1, 0, 2 }
uselistorder i64* %sv_1, { 2, 0, 3, 1 }
uselistorder i64* %.reg2mem3, { 2, 0, 1 }
uselistorder i64* %sv_0.01.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 3, 5, 4 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @FSPRG_GetEpoch, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_10, { 0, 1, 2, 4, 3 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | mxf_read_pixel_layout_14705 | mxf_read_pixel_layout | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%1 = ptrtoint i64* %sv_2 to i64
store i64 0, i64* %sv_1, align 8
%2 = add i64 %1, -32
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%3 = call i64 @FUNC(i64 %0)
%4 = call i64 @FUNC(i64 %0)
%5 = and i64 %3, 4294967295
%6 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %5)
%7 = icmp sgt i32 %sv_0.0.reload, 14
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = add i32 %sv_0.0.reload, 1
%9 = sext i32 %sv_0.0.reload to i64
%10 = trunc i64 %3 to i8
%11 = add i64 %2, %9
%12 = inttoptr i64 %11 to i8*
store i8 %10, i8* %12, align 1
%13 = add i32 %sv_0.0.reload, 2
%14 = sext i32 %8 to i64
%15 = trunc i64 %4 to i8
%16 = add i64 %2, %14
%17 = inttoptr i64 %16 to i8*
store i8 %15, i8* %17, align 1
store i32 %13, i32* %sv_0.1.reg2mem
br label LBL_3
LBL_3:
%18 = trunc i64 %3 to i32
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
store i32 %sv_0.1.reload, i32* %sv_0.0.reg2mem
br i1 %20, label LBL_1, label LBL_4
LBL_4:
%21 = ptrtoint i64* %arg2 to i64
%22 = call i64 @FUNC(i64* nonnull %sv_1, i64 %21)
ret i64 %22
uselistorder i64 %3, { 2, 0, 1 }
uselistorder i32 %sv_0.0.reload, { 3, 2, 1, 0, 4 }
uselistorder i64 %0, { 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @avio_r8, { 1, 0 }
uselistorder i32 0, { 1, 0 }
} | 1 |
BinRealVul | cirrus_init_common_164 | cirrus_init_common | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%.pre-phi5.reg2mem = alloca i32*
%indvars.iv.reg2mem = alloca i64
%0 = load i32, i32* @gv_0, align 4
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_4, label LBL_1
LBL_1:
store i32 1, i32* @gv_0, align 4
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%3 = mul i64 %indvars.iv.reload, 4
%4 = add i64 %3, ptrtoint (i32** @gv_1 to i64)
%5 = inttoptr i64 %4 to i32*
store i32 0, i32* %5, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 256
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
store i32 0, i32* bitcast (i64* @gv_2 to i32*), align 8
store i32 1, i32* bitcast (i64* @gv_3 to i32*), align 8
store i32 2, i32* bitcast (i64* @gv_4 to i32*), align 8
store i32 3, i32* bitcast (i64* @gv_5 to i32*), align 8
store i32 4, i32* bitcast (i64* @gv_6 to i32*), align 8
store i32 5, i32* bitcast (i64* @gv_7 to i32*), align 8
store i32 6, i32* bitcast (i64* @gv_8 to i32*), align 8
store i32 7, i32* bitcast (i64* @gv_9 to i32*), align 8
store i32 8, i32* bitcast (i64* @gv_10 to i32*), align 8
store i32 9, i32* bitcast (i64* @gv_11 to i32*), align 8
store i32 10, i32* bitcast (i64* @gv_12 to i32*), align 8
store i32 11, i32* bitcast (i64* @gv_13 to i32*), align 8
store i32 12, i32* bitcast (i64* @gv_14 to i32*), align 8
store i32 13, i32* bitcast (i64* @gv_15 to i32*), align 8
store i32 14, i32* bitcast (i64* @gv_16 to i32*), align 8
store i32 15, i32* bitcast (i64* @gv_17 to i32*), align 8
br label LBL_4
LBL_4:
%6 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = call i64 @FUNC(i64 960, i64 16, i64 1, i64 4198980, i64 %6)
%9 = call i64 @FUNC(i64 948, i64 2, i64 1, i64 4198980, i64 %6)
%10 = call i64 @FUNC(i64 980, i64 2, i64 1, i64 4198980, i64 %6)
%11 = call i64 @FUNC(i64 954, i64 1, i64 1, i64 4198980, i64 %6)
%12 = call i64 @FUNC(i64 986, i64 1, i64 1, i64 4198980, i64 %6)
%13 = call i64 @FUNC(i64 960, i64 16, i64 1, i64 4198987, i64 %6)
%14 = call i64 @FUNC(i64 948, i64 2, i64 1, i64 4198987, i64 %6)
%15 = call i64 @FUNC(i64 980, i64 2, i64 1, i64 4198987, i64 %6)
%16 = call i64 @FUNC(i64 954, i64 1, i64 1, i64 4198987, i64 %6)
%17 = call i64 @FUNC(i64 986, i64 1, i64 1, i64 4198987, i64 %6)
%18 = call i64 @FUNC(i64 0, i64 4198832, i64 4198843, i64 %6)
%19 = trunc i64 %18 to i32
%20 = add i64 %6, 856
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
%22 = and i64 %18, 4294967295
%23 = call i64 @FUNC(i64 655360, i64 131072, i64 %22)
%24 = add i64 %6, 6
%25 = inttoptr i64 %24 to i8*
store i8 15, i8* %25, align 1
%26 = trunc i64 %7 to i32
%27 = icmp eq i32 %26, 21574
%28 = icmp eq i1 %27, false
%29 = add i64 %6, 31
%30 = inttoptr i64 %29 to i8*
br i1 %28, label LBL_6, label LBL_5
LBL_5:
store i8 45, i8* %30, align 1
%31 = add i64 %6, 280
%32 = inttoptr i64 %31 to i8*
store i8 15, i8* %32, align 1
%33 = add i64 %6, 15
%34 = inttoptr i64 %33 to i8*
store i8 -104, i8* %34, align 1
%35 = add i64 %6, 23
%36 = inttoptr i64 %35 to i8*
store i8 32, i8* %36, align 1
%37 = add i64 %6, 21
%38 = inttoptr i64 %37 to i8*
store i8 4, i8* %38, align 1
%39 = add i64 %6, 776
%40 = inttoptr i64 %39 to i32*
store i32 4194304, i32* %40, align 4
store i32* %40, i32** %.pre-phi5.reg2mem
br label LBL_7
LBL_6:
store i8 34, i8* %30, align 1
%41 = add i64 %6, 15
%42 = inttoptr i64 %41 to i8*
store i8 2, i8* %42, align 1
%43 = trunc i64 %arg3 to i32
%44 = icmp ne i32 %43, 0
%45 = add i64 %6, 23
%46 = inttoptr i64 %45 to i8*
%. = zext i1 %44 to i8
store i8 %., i8* %46, align 1
%47 = add i64 %6, 776
%48 = inttoptr i64 %47 to i32*
store i32 2097152, i32* %48, align 4
%49 = add i64 %6, 21
%50 = inttoptr i64 %49 to i8*
store i8 3, i8* %50, align 1
store i32* %48, i32** %.pre-phi5.reg2mem
br label LBL_7
LBL_7:
%.pre-phi5.reload = load i32*, i32** %.pre-phi5.reg2mem
%51 = trunc i64 %7 to i8
%52 = add i64 %6, 551
%53 = inttoptr i64 %52 to i8*
store i8 %51, i8* %53, align 1
%54 = load i32, i32* %.pre-phi5.reload, align 4
%55 = add i64 %6, 768
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = inttoptr i64 %57 to i64*
%59 = call i64* @memset(i64* %58, i32 255, i32 %54)
%60 = add i64 %6, 780
%61 = inttoptr i64 %60 to i32*
store i32 5, i32* %61, align 4
%62 = add i64 %6, 784
%63 = inttoptr i64 %62 to i32*
store i32 0, i32* %63, align 4
%64 = call i64 @FUNC(i64 0, i64 4198850, i64 4198861, i64 %6)
%65 = trunc i64 %64 to i32
%66 = add i64 %6, 788
%67 = inttoptr i64 %66 to i32*
store i32 %65, i32* %67, align 4
%68 = and i64 %64, 4294967295
%69 = call i64 @FUNC(i64 %68)
%70 = trunc i64 %69 to i32
%71 = add i64 %6, 792
%72 = inttoptr i64 %71 to i32*
store i32 %70, i32* %72, align 4
%73 = call i64 @FUNC(i64 0, i64 4198868, i64 4198879, i64 %6)
%74 = trunc i64 %73 to i32
%75 = add i64 %6, 796
%76 = inttoptr i64 %75 to i32*
store i32 %74, i32* %76, align 4
%77 = call i64 @FUNC(i64 0, i64 4198886, i64 4198897, i64 %6)
%78 = trunc i64 %77 to i32
%79 = add i64 %6, 800
%80 = inttoptr i64 %79 to i32*
store i32 %78, i32* %80, align 4
%81 = load i32, i32* %.pre-phi5.reload, align 4
%82 = add i32 %81, -1
%83 = add i64 %6, 804
%84 = inttoptr i64 %83 to i32*
store i32 %82, i32* %84, align 4
%85 = load i32, i32* %.pre-phi5.reload, align 4
%86 = add i32 %85, -256
%87 = add i64 %6, 808
%88 = inttoptr i64 %87 to i32*
store i32 %86, i32* %88, align 4
%89 = add i64 %6, 816
%90 = inttoptr i64 %89 to i64*
store i64 4198904, i64* %90, align 8
%91 = add i64 %6, 824
%92 = inttoptr i64 %91 to i64*
store i64 4198915, i64* %92, align 8
%93 = add i64 %6, 832
%94 = inttoptr i64 %93 to i64*
store i64 4198926, i64* %94, align 8
%95 = add i64 %6, 840
%96 = inttoptr i64 %95 to i64*
store i64 4198937, i64* %96, align 8
%97 = add i64 %6, 848
%98 = inttoptr i64 %97 to i64*
store i64 4198944, i64* %98, align 8
%99 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_18, i64 0, i64 0), i64 0, i64 2, i64 4198994, i64 4199001, i64 %6)
ret i64 %99
uselistorder i8* %30, { 1, 0 }
uselistorder i64 %6, { 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 1, 2, 3, 4, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32** %.pre-phi5.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64, i64)* @cpu_register_io_memory, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64)* @register_ioport_read, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64)* @register_ioport_write, { 4, 3, 2, 1, 0 }
uselistorder i32 0, { 1, 2, 4, 3, 5, 0 }
uselistorder i32* @gv_0, { 1, 0 }
} | 1 |
BinRealVul | get_file_params_count_resume_18779 | get_file_params_count_resume | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge2.pre-phi.reg2mem = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.15.reg2mem = alloca i32
%storemerge6.reg2mem = alloca i32
%storemerge37.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = trunc i64 %1 to i8
%5 = icmp eq i8 %4, 34
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_5, label LBL_1
LBL_1:
%7 = add nsw i64 %3, 4294967294
%8 = and i64 %7, 4294967295
%9 = icmp eq i64 %8, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge37.reg2mem
br i1 %9, label LBL_5, label LBL_2
LBL_2:
%storemerge37.reload = load i32, i32* %storemerge37.reg2mem
%.reload = load i64, i64* %.reg2mem
%10 = mul i64 %.reload, 8
%11 = add i64 %10, %2
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = inttoptr i64 %13 to i8*
%15 = call i32 @strlen(i8* %14)
%16 = sext i32 %15 to i64
%17 = add i64 %13, -1
%18 = add i64 %17, %16
%19 = inttoptr i64 %18 to i8*
%20 = load i8, i8* %19, align 1
%21 = icmp eq i8 %20, 34
%22 = icmp eq i1 %21, false
%.pre9 = add i32 %storemerge37.reload, 1
br i1 %22, label LBL_4, label LBL_3
LBL_3:
%23 = zext i32 %.pre9 to i64
%24 = call i64 @FUNC(i64 %2, i64 %23)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
store i64 %23, i64* %storemerge2.pre-phi.reg2mem
br i1 %26, label LBL_4, label LBL_8
LBL_4:
%27 = sext i32 %.pre9 to i64
%28 = icmp sgt i64 %8, %27
store i64 %27, i64* %.reg2mem
store i32 %.pre9, i32* %storemerge37.reg2mem
br i1 %28, label LBL_2, label LBL_5
LBL_5:
%29 = trunc i64 %3 to i32
%30 = add i32 %29, -2
%31 = icmp eq i32 %30, 0
%32 = icmp slt i32 %30, 0
%33 = icmp eq i1 %32, false
%34 = icmp eq i1 %31, false
%35 = icmp eq i1 %33, %34
store i32 %30, i32* %storemerge6.reg2mem
store i32 %30, i32* %sv_0.15.reg2mem
store i32 %30, i32* %sv_0.1.lcssa.reg2mem
br i1 %35, label LBL_6, label LBL_7
LBL_6:
%sv_0.15.reload = load i32, i32* %sv_0.15.reg2mem
%storemerge6.reload = load i32, i32* %storemerge6.reg2mem
%36 = zext i32 %storemerge6.reload to i64
%37 = call i64 @FUNC(i64 %2, i64 %36)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
%spec.select = select i1 %39, i32 %sv_0.15.reload, i32 %storemerge6.reload
%40 = add i32 %storemerge6.reload, -1
%41 = icmp eq i32 %40, 0
%42 = icmp slt i32 %40, 0
%43 = icmp eq i1 %42, false
%44 = icmp eq i1 %41, false
%45 = icmp eq i1 %43, %44
store i32 %40, i32* %storemerge6.reg2mem
store i32 %spec.select, i32* %sv_0.15.reg2mem
store i32 %spec.select, i32* %sv_0.1.lcssa.reg2mem
br i1 %45, label LBL_6, label LBL_7
LBL_7:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%.pre = zext i32 %sv_0.1.lcssa.reload to i64
store i64 %.pre, i64* %storemerge2.pre-phi.reg2mem
br label LBL_8
LBL_8:
%storemerge2.pre-phi.reload = load i64, i64* %storemerge2.pre-phi.reg2mem
ret i64 %storemerge2.pre-phi.reload
uselistorder i32 %storemerge6.reload, { 1, 0, 2 }
uselistorder i64 %8, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge37.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge6.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.15.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge2.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @get_params_match_resume, { 1, 0 }
uselistorder i32 0, { 4, 5, 3, 1, 2, 6, 0 }
uselistorder i1 false, { 3, 2, 0, 1, 4, 5 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | kvm_lapic_sync_to_vapic_17367 | kvm_lapic_sync_to_vapic | 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, i64 %0)
%2 = add i64 %0, 8
%3 = call i64 @FUNC(i64 0, i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %0, i64 0)
%7 = trunc i64 %6 to i32
%8 = urem i32 %7, 256
%9 = call i64 @FUNC(i64 %0)
%10 = trunc i64 %9 to i32
%11 = icmp slt i32 %10, 0
%12 = icmp eq i1 %11, false
%13 = call i64 @FUNC(i64 %0)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
%.op = mul i32 %14, 256
%.op.op = and i32 %.op, 61440
%17 = select i1 %16, i32 %.op.op, i32 0
%.op2 = mul i32 %10, 16777216
%18 = select i1 %12, i32 %.op2, i32 0
%19 = or i32 %18, %8
%20 = or i32 %19, %17
%21 = call i64 @FUNC(i64 %0)
%22 = inttoptr i64 %2 to i32*
%23 = load i32, i32* %22, align 4
%24 = zext i32 %23 to i64
%25 = call i64 @FUNC(i64 %24)
%sext = mul i64 %25, 4294967296
%26 = ashr exact i64 %sext, 32
%27 = add i64 %26, %21
%28 = inttoptr i64 %27 to i32*
store i32 %20, i32* %28, align 4
%29 = call i64 @FUNC(i64 %21)
store i64 %29, 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 %21, { 1, 0 }
uselistorder i64 %0, { 0, 1, 3, 2, 4, 6, 5 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | __drm_atomic_state_free_7084 | __drm_atomic_state_free | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %0)
%5 = load i64, i64* %2, align 8
%6 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 %0)
%7 = inttoptr i64 %3 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
br i1 %11, label LBL_1, label LBL_2
LBL_1:
%12 = call i64 @FUNC(i64 %0)
%13 = call i64 @FUNC(i64 %0)
br label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64 %3)
ret i64 %14
uselistorder i64 %0, { 1, 0, 2, 3, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | WriteUncompressed_4902 | WriteUncompressed | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem6 = alloca i64
%rbx.02.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp sgt i64* %arg1, null
store i64 %0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_8
LBL_1:
%2 = ptrtoint i64* %arg2 to i64
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i64*
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i32*
%.pre = load i64, i64* %4, align 8
store i64 %.pre, i64* %.reg2mem
store i64 0, i64* %storemerge4.reg2mem
br label LBL_2
LBL_2:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%.reload = load i64, i64* %.reg2mem
%7 = call i64 @FUNC(i64 %0, i64 0, i64 %storemerge4.reload, i64 %.reload, i64 1, i64 %2, i64 %storemerge4.reload)
%8 = icmp eq i64 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_8, label LBL_3
LBL_3:
%9 = load i64, i64* %4, align 8
%10 = icmp sgt i64 %9, 0
store i64 0, i64* %storemerge13.reg2mem
store i64 %7, i64* %rbx.02.reg2mem
store i64 %9, i64* %.reg2mem6
br i1 %10, label LBL_4, label LBL_7
LBL_4:
%rbx.02.reload = load i64, i64* %rbx.02.reg2mem
%storemerge13.reload = load i64, i64* %storemerge13.reg2mem
%11 = call i64 @FUNC(i64 %0, i64 %rbx.02.reload)
%12 = urem i64 %11, 256
%13 = call i64 @FUNC(i64 %12)
%14 = urem i64 %13, 256
%15 = call i64 @FUNC(i64 %0, i64 %14)
%16 = call i64 @FUNC(i64 %0, i64 %rbx.02.reload)
%17 = urem i64 %16, 256
%18 = call i64 @FUNC(i64 %17)
%19 = urem i64 %18, 256
%20 = call i64 @FUNC(i64 %0, i64 %19)
%21 = call i64 @FUNC(i64 %0, i64 %rbx.02.reload)
%22 = urem i64 %21, 256
%23 = call i64 @FUNC(i64 %22)
%24 = urem i64 %23, 256
%25 = call i64 @FUNC(i64 %0, i64 %24)
%26 = load i32, i32* %6, align 4
%27 = icmp eq i32 %26, 1
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_6, label LBL_5
LBL_5:
%29 = call i64 @FUNC(i64 %0, i64 %rbx.02.reload)
%30 = urem i64 %29, 256
%31 = call i64 @FUNC(i64 %30)
%32 = urem i64 %31, 256
%33 = call i64 @FUNC(i64 %0, i64 %32)
br label LBL_6
LBL_6:
%34 = call i64 @FUNC(i64 %0)
%35 = add i64 %34, %rbx.02.reload
%36 = add nuw nsw i64 %storemerge13.reload, 1
%37 = load i64, i64* %4, align 8
%38 = icmp slt i64 %36, %37
store i64 %36, i64* %storemerge13.reg2mem
store i64 %35, i64* %rbx.02.reg2mem
store i64 %37, i64* %.reg2mem6
br i1 %38, label LBL_4, label LBL_7
LBL_7:
%.reload7 = load i64, i64* %.reg2mem6
%39 = add nuw nsw i64 %storemerge4.reload, 1
%40 = icmp slt i64 %39, %0
store i64 %.reload7, i64* %.reg2mem
store i64 %39, i64* %storemerge4.reg2mem
store i64 %0, i64* %rax.0.reg2mem
br i1 %40, label LBL_2, label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %rbx.02.reload, { 4, 0, 1, 3, 2 }
uselistorder i64 %storemerge4.reload, { 0, 2, 1 }
uselistorder i64* %4, { 2, 1, 0 }
uselistorder i64 %0, { 0, 2, 5, 4, 3, 6, 9, 8, 11, 10, 12, 14, 7, 13, 1 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge13.reg2mem, { 2, 0, 1 }
uselistorder i64* %rbx.02.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64, i64)* @WriteBlobByte, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @ScaleQuantumToChar, { 3, 2, 1, 0 }
uselistorder i64 1, { 2, 1, 0, 3 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | start_auth_vencrypt_subauth_18619 | start_auth_vencrypt_subauth | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp sgt i32 %2, 5
br i1 %3, label LBL_8, label LBL_1
LBL_1:
%4 = icmp sgt i32 %2, 3
br i1 %4, label LBL_7, label LBL_2
LBL_2:
%5 = icmp sgt i32 %2, 1
br i1 %5, label LBL_4, label LBL_3
LBL_3:
%6 = icmp slt i32 %2, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_5, label LBL_8
LBL_4:
%8 = or i32 %2, 1
%9 = icmp eq i32 %8, 3
br i1 %9, label LBL_6, label LBL_8
LBL_5:
%10 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0))
%11 = ptrtoint i32* %arg1 to i64
%12 = call i64 @FUNC(i64 %11, i64 0)
%13 = call i64 @FUNC(i64 %11)
store i64 %13, i64* %rax.0.reg2mem
br label LBL_11
LBL_6:
%14 = call i32 @puts(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0))
%15 = ptrtoint i32* %arg1 to i64
%16 = call i64 @FUNC(i64 %15)
store i64 %16, i64* %rax.0.reg2mem
br label LBL_11
LBL_7:
%17 = call i32 @puts(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0))
%18 = ptrtoint i32* %arg1 to i64
%19 = call i64 @FUNC(i64 %18)
store i64 %19, i64* %rax.0.reg2mem
br label LBL_11
LBL_8:
%20 = ptrtoint i32* %arg1 to i64
%21 = add i64 %20, 4
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = zext i32 %23 to i64
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_3, i64 0, i64 0), i64 %24)
%26 = call i64 @FUNC(i64 %20, i64 1)
%27 = add i64 %20, 8
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = icmp slt i32 %29, 8
br i1 %30, label LBL_10, label LBL_9
LBL_9:
%31 = call i64 @FUNC(i64 %20, i64 32)
%32 = call i64 @FUNC(i64 %20, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_4, i64 0, i64 0), i64 32)
br label LBL_10
LBL_10:
%33 = call i64 @FUNC(i64 %20)
store i64 %33, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %20, { 2, 1, 0, 4, 3, 5 }
uselistorder i32 %2, { 4, 3, 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64, i64)* @vnc_write_u32, { 1, 0 }
uselistorder i32 (i8*)* @puts, { 2, 1, 0 }
uselistorder i32* %arg1, { 3, 2, 1, 0 }
uselistorder label LBL_8, { 1, 0, 2 }
} | 1 |
BinRealVul | rv34_idct_dc_add_c_2113 | rv34_idct_dc_add_c | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.03.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = mul i32 %arg3, 169
%2 = add i32 %1, 512
%3 = ashr i32 %2, 10
store i32 0, i32* %storemerge4.reg2mem
store i64 %0, i64* %sv_0.03.reg2mem
br label LBL_3
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%4 = add i64 %indvars.iv.reload, %sv_0.03.reload
%5 = inttoptr i64 %4 to i8*
%6 = load i8, i8* %5, align 1
%7 = zext i8 %6 to i32
%8 = add nsw i32 %3, %7
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i8
store i8 %11, i8* %5, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 4
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%12 = add i64 %sv_0.03.reload, %arg2
%13 = add nuw nsw i32 %storemerge4.reload, 1
%exitcond5 = icmp eq i32 %13, 4
store i32 %13, i32* %storemerge4.reg2mem
store i64 %12, i64* %sv_0.03.reg2mem
br i1 %exitcond5, label LBL_4, label LBL_3
LBL_3:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_4:
ret i64 %arg2
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | rgb16tobgr32_17286 | rgb16tobgr32 | define i64 @FUNC(i16* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i64
%sv_1.03.reg2mem = alloca i16*
%.reg2mem = alloca i64
%0 = ptrtoint i16* %arg1 to i64
%1 = and i32 %arg3, -2
%2 = zext i32 %1 to i64
%3 = add i64 %2, %0
%4 = icmp ugt i64 %3, %0
store i64 %0, i64* %.lcssa.reg2mem
br i1 %4, label LBL_1, label LBL_3
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
store i64 %0, i64* %.reg2mem
store i16* %arg1, i16** %sv_1.03.reg2mem
store i64 %5, i64* %sv_0.02.reg2mem
br label LBL_2
LBL_2:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%sv_1.03.reload = load i16*, i16** %sv_1.03.reg2mem
%.reload = load i64, i64* %.reg2mem
%6 = add i64 %.reload, 2
%7 = inttoptr i64 %6 to i16*
%8 = load i16, i16* %sv_1.03.reload, align 2
%9 = udiv i16 %8, 256
%10 = add i64 %sv_0.02.reload, 1
%11 = trunc i16 %9 to i8
%12 = and i8 %11, -8
%13 = inttoptr i64 %sv_0.02.reload to i8*
store i8 %12, i8* %13, align 1
%14 = udiv i16 %8, 8
%15 = add i64 %sv_0.02.reload, 2
%16 = trunc i16 %14 to i8
%17 = and i8 %16, -4
%18 = inttoptr i64 %10 to i8*
store i8 %17, i8* %18, align 1
%19 = trunc i16 %8 to i8
%20 = mul i8 %19, 8
%21 = add i64 %sv_0.02.reload, 3
%22 = inttoptr i64 %15 to i8*
store i8 %20, i8* %22, align 1
%23 = add i64 %sv_0.02.reload, 4
%24 = inttoptr i64 %21 to i8*
store i8 0, i8* %24, align 1
%25 = icmp ugt i64 %3, %6
store i64 %6, i64* %.reg2mem
store i16* %7, i16** %sv_1.03.reg2mem
store i64 %23, i64* %sv_0.02.reg2mem
store i64 %6, i64* %.lcssa.reg2mem
br i1 %25, label LBL_2, label LBL_3
LBL_3:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i16 %8, { 2, 0, 1 }
uselistorder i64 %sv_0.02.reload, { 4, 3, 2, 0, 1 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %0, { 1, 0, 3, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i16** %sv_1.03.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.02.reg2mem, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | block_is_active_485 | block_is_active | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%1 = icmp eq i32 %0, 1
%2 = zext i1 %1 to i64
%3 = and i32 %0, -256
%4 = zext i32 %3 to i64
%5 = or i64 %4, %2
ret i64 %5
} | 0 |
BinRealVul | moduleHandleBlockedClients_17501 | moduleHandleBlockedClients | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i32, align 4
%0 = call i32 @pthread_mutex_lock(i64* nonnull @gv_0)
%1 = load i64, i64* @gv_1, align 8
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_1, label LBL_8
LBL_1:
%6 = bitcast i32* %sv_0 to i64*
br label LBL_2
LBL_2:
%7 = load i64, i64* @gv_1, align 8
%8 = call i64 @FUNC(i64 %7)
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = load i64, i64* @gv_1, align 8
%14 = call i64 @FUNC(i64 %13, i64 %8)
%15 = call i32 @pthread_mutex_unlock(i64* nonnull @gv_0)
%16 = icmp eq i64 %12, 0
br i1 %16, label LBL_5, label LBL_3
LBL_3:
%17 = add i64 %10, 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_6, label LBL_4
LBL_4:
store i32 1, i32* %sv_0, align 4
%21 = call i64 @FUNC(i64* nonnull %6)
%22 = call i64 @FUNC(i64* nonnull %6)
br label LBL_6
LBL_5:
%23 = call i64 @FUNC(i64 %10)
br label LBL_7
LBL_6:
%24 = call i64 @FUNC(i64 %10)
%25 = load i64, i64* %11, align 8
%26 = call i64 @FUNC(i64 %25)
br label LBL_7
LBL_7:
%27 = call i32 @pthread_mutex_lock(i64* nonnull @gv_0)
%28 = load i64, i64* @gv_1, align 8
%29 = call i64 @FUNC(i64 %28)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_2, label LBL_8
LBL_8:
%33 = call i32 @pthread_mutex_unlock(i64* nonnull @gv_0)
%34 = sext i32 %33 to i64
ret i64 %34
uselistorder i64 %10, { 0, 2, 1, 3 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i64 (i64)* @listLength, { 1, 0 }
uselistorder i32 (i64*)* @pthread_mutex_lock, { 1, 0 }
uselistorder i32 1, { 3, 4, 2, 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | av_read_frame_104 | av_read_frame | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rsi.2.reg2mem = alloca i64
%rsi.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.pre-phi27.reg2mem = alloca i64*
%sv_1.0.ph.reg2mem = alloca i1
%sv_2.2.reg2mem = alloca i64
%sv_2.1.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64*
%sv_3.1.lcssa.reg2mem = alloca i64
%sv_2.016.reg2mem = alloca i64
%sv_3.118.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = urem i64 %3, 2
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
%9 = add i64 %5, 8
%10 = inttoptr i64 %9 to i64*
br i1 %8, label LBL_1, label LBL_2
LBL_1:
%11 = add i64 %5, 24
%12 = inttoptr i64 %11 to i64*
%13 = add i64 %5, 16
store i1 true, i1* %sv_1.0.ph.reg2mem
br label LBL_8.outer
LBL_2:
%14 = load i64, i64* %10, align 8
%15 = icmp eq i64 %14, 0
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = add i64 %5, 16
%17 = call i64 @FUNC(i64 %9, i64 %16, i64 %4)
store i64 %16, i64* %rsi.0.reg2mem
store i64 %17, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%18 = call i64 @FUNC(i64 %5, i64 %4)
store i64 %4, i64* %rsi.0.reg2mem
store i64 %18, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%19 = trunc i64 %storemerge.reload to i32
%20 = icmp slt i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_5.LBL_32_crit_edge, label LBL_7
LBL_6:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%.pre24 = add i64 %5, 24
%.pre26 = inttoptr i64 %.pre24 to i64*
store i64* %.pre26, i64** %.pre-phi27.reg2mem
store i64 %storemerge.reload, i64* %sv_0.0.reg2mem
store i64 %rsi.0.reload, i64* %rsi.1.reg2mem
br label LBL_32
LBL_7:
%22 = and i64 %storemerge.reload, 4294967295
store i64 %22, i64* %rax.0.reg2mem
br label LBL_37
LBL_8:
%23 = load i64, i64* %10, align 8
%24 = icmp eq i64 %23, 0
store i64 0, i64* %sv_2.2.reg2mem
br i1 %24, label LBL_27, label LBL_9
LBL_9:
%25 = add i64 %23, 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = icmp eq i64 %27, -1
br i1 %28, label LBL_9.LBL_24_crit_edge, label LBL_11
LBL_10:
%.pre = inttoptr i64 %23 to i64*
store i64* %.pre, i64** %.pre-phi.reg2mem
store i64 %23, i64* %sv_2.1.reg2mem
br label LBL_24
LBL_11:
%29 = add i64 %23, 20
%30 = inttoptr i64 %29 to i32*
%31 = inttoptr i64 %23 to i64*
%32 = load i32, i32* %30, align 4
%33 = sext i32 %32 to i64
%34 = mul i64 %33, 8
%35 = load i64, i64* %12, align 8
%36 = add i64 %34, %35
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = add i64 %38, 4
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = add i32 %41, 63
%43 = urem i32 %42, 64
%44 = icmp eq i32 %43, 0
%45 = zext i32 %43 to i64
%46 = shl i64 2, %45
%storemerge2 = select i1 %44, i64 2, i64 %46
store i64 %27, i64* %sv_3.118.reg2mem
store i64 %23, i64* %sv_2.016.reg2mem
br label LBL_19
LBL_12:
%sv_2.016.reload = load i64, i64* %sv_2.016.reg2mem
%47 = add i64 %sv_2.016.reload, 20
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = load i32, i32* %30, align 4
%51 = icmp eq i32 %49, %50
%52 = icmp eq i1 %51, false
store i64 %sv_3.118.reload, i64* %sv_3.0.reg2mem
br i1 %52, label LBL_18, label LBL_13
LBL_13:
%53 = add i64 %sv_2.016.reload, 8
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = load i64, i64* %26, align 8
%57 = call i64 @FUNC(i64 %56, i64 %55, i64 %storemerge2)
%58 = trunc i64 %57 to i32
%59 = icmp slt i32 %58, 0
%60 = icmp eq i1 %59, false
store i64 %sv_3.118.reload, i64* %sv_3.0.reg2mem
br i1 %60, label LBL_18, label LBL_14
LBL_14:
%61 = load i64, i64* %54, align 8
%62 = inttoptr i64 %sv_2.016.reload to i64*
%63 = load i64, i64* %62, align 8
%64 = call i64 @FUNC(i64 %63, i64 %61, i64 %storemerge2)
%65 = trunc i64 %64 to i32
%66 = icmp eq i32 %65, 0
br i1 %66, label LBL_16, label LBL_15
LBL_15:
%67 = load i64, i64* %54, align 8
store i64 %67, i64* %31, align 8
br label LBL_16
LBL_16:
%68 = icmp eq i64 %sv_3.118.reload, -1
store i64 -1, i64* %sv_3.0.reg2mem
br i1 %68, label LBL_18, label LBL_17
LBL_17:
%69 = load i64, i64* %54, align 8
store i64 %69, i64* %sv_3.0.reg2mem
br label LBL_18
LBL_18:
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%70 = add i64 %sv_2.016.reload, 32
%71 = inttoptr i64 %70 to i64*
%72 = load i64, i64* %71, align 8
%73 = icmp eq i64 %72, 0
store i64 %sv_3.0.reload, i64* %sv_3.118.reg2mem
store i64 %72, i64* %sv_2.016.reg2mem
store i64 %sv_3.0.reload, i64* %sv_3.1.lcssa.reg2mem
br i1 %73, label LBL_20, label LBL_19
LBL_19:
%sv_3.118.reload = load i64, i64* %sv_3.118.reg2mem
%74 = load i64, i64* %31, align 8
%75 = icmp eq i64 %74, -1
store i64 %sv_3.118.reload, i64* %sv_3.1.lcssa.reg2mem
br i1 %75, label LBL_12, label LBL_20
LBL_20:
br i1 %sv_1.0.ph.reload, label LBL_23, label LBL_21
LBL_21:
%sv_3.1.lcssa.reload = load i64, i64* %sv_3.1.lcssa.reg2mem
%76 = load i64, i64* %31, align 8
%77 = icmp eq i64 %76, -1
%78 = icmp eq i1 %77, false
%79 = icmp eq i64 %sv_3.1.lcssa.reload, -1
%or.cond = or i1 %79, %78
br i1 %or.cond, label LBL_23, label LBL_22
LBL_22:
%80 = add i64 %23, 16
%81 = inttoptr i64 %80 to i32*
%82 = load i32, i32* %81, align 4
%83 = sext i32 %82 to i64
%84 = add i64 %sv_3.1.lcssa.reload, %83
store i64 %84, i64* %31, align 8
br label LBL_23
LBL_23:
%85 = load i64, i64* %10, align 8
store i64* %31, i64** %.pre-phi.reg2mem
store i64 %85, i64* %sv_2.1.reg2mem
br label LBL_24
LBL_24:
%.pre-phi.reload = load i64*, i64** %.pre-phi.reg2mem
%86 = load i64, i64* %.pre-phi.reload, align 8
%87 = icmp eq i64 %86, -1
%88 = icmp eq i1 %87, false
br i1 %88, label LBL_26, label LBL_25
LBL_25:
%sv_2.1.reload = load i64, i64* %sv_2.1.reg2mem
%89 = load i64, i64* %26, align 8
%90 = icmp ne i64 %89, -1
%or.cond6 = icmp eq i1 %sv_1.0.ph.reload, %90
store i64 %sv_2.1.reload, i64* %sv_2.2.reg2mem
br i1 %or.cond6, label LBL_27, label LBL_26
LBL_26:
%91 = call i64 @FUNC(i64 %9, i64 %13, i64 %4)
store i64* %12, i64** %.pre-phi27.reg2mem
store i64 %91, i64* %sv_0.0.reg2mem
store i64 %13, i64* %rsi.1.reg2mem
br label LBL_32
LBL_27:
%92 = call i64 @FUNC(i64 %5, i64 %4)
%93 = trunc i64 %92 to i32
%94 = icmp slt i32 %93, 0
%95 = icmp eq i1 %94, false
br i1 %95, label LBL_31, label LBL_28
LBL_28:
%sv_2.2.reload = load i64, i64* %sv_2.2.reg2mem
%96 = icmp eq i64 %sv_2.2.reload, 0
%97 = icmp eq i32 %93, 11
%or.cond8 = or i1 %96, %97
store i1 false, i1* %sv_1.0.ph.reg2mem
br i1 %or.cond8, label LBL_30, label LBL_8.outer
LBL_29:
%sv_1.0.ph.reload = load i1, i1* %sv_1.0.ph.reg2mem
br label LBL_8
LBL_30:
%98 = and i64 %92, 4294967295
store i64 %98, i64* %rax.0.reg2mem
br label LBL_37
LBL_31:
%99 = call i64 @FUNC(i64 %9, i64 %4, i64 %13)
%100 = call i64 @FUNC(i64 %99)
%101 = trunc i64 %100 to i32
%102 = icmp slt i32 %101, 0
%103 = icmp eq i1 %102, false
store i64 12, i64* %rax.0.reg2mem
br i1 %103, label LBL_8, label LBL_37
LBL_32:
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%.pre-phi27.reload = load i64*, i64** %.pre-phi27.reg2mem
%104 = load i64, i64* %.pre-phi27.reload, align 8
%105 = add i64 %4, 20
%106 = inttoptr i64 %105 to i32*
%107 = load i32, i32* %106, align 4
%108 = sext i32 %107 to i64
%109 = mul i64 %108, 8
%110 = add i64 %109, %104
%111 = inttoptr i64 %110 to i64*
%112 = load i64, i64* %111, align 8
%113 = inttoptr i64 %112 to i32*
%114 = load i32, i32* %113, align 4
%115 = icmp eq i32 %114, 0
store i64 %rsi.1.reload, i64* %rsi.2.reg2mem
br i1 %115, label LBL_34, label LBL_33
LBL_33:
%116 = call i64 @FUNC(i64 %4, i64 0, i64 10)
%117 = load i32, i32* %113, align 4
%118 = zext i32 %117 to i64
%119 = call i64 @FUNC(i64 %116, i64 %118)
%120 = load i32, i32* %113, align 4
%121 = zext i32 %120 to i64
%122 = call i64 @FUNC(i64 %5, i64 0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i64 %121, i64 %2, i64 %1)
store i32 0, i32* %113, align 4
store i64 0, i64* %rsi.2.reg2mem
br label LBL_34
LBL_34:
%rsi.2.reload = load i64, i64* %rsi.2.reg2mem
%123 = add i64 %4, 8
%124 = inttoptr i64 %123 to i64*
%125 = load i64, i64* %124, align 8
%126 = call i64 @FUNC(i64 %125)
%127 = call i64 @FUNC(i64 %rsi.2.reload)
%128 = trunc i64 %127 to i32
%129 = icmp eq i32 %128, 0
br i1 %129, label LBL_36, label LBL_35
LBL_35:
store i64 %rsi.2.reload, i64* %arg2, align 8
br label LBL_36
LBL_36:
%130 = and i64 %sv_0.0.reload, 4294967295
store i64 %130, i64* %rax.0.reg2mem
br label LBL_37
LBL_37:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %rsi.2.reload, { 1, 0 }
uselistorder i32* %113, { 0, 2, 1, 3 }
uselistorder i64 %sv_3.1.lcssa.reload, { 1, 0 }
uselistorder i64 %sv_3.118.reload, { 0, 2, 3, 1 }
uselistorder i64* %54, { 1, 0, 2, 3 }
uselistorder i64 %sv_2.016.reload, { 3, 0, 1, 2 }
uselistorder i64* %31, { 0, 2, 1, 4, 3 }
uselistorder i64* %26, { 1, 0, 2 }
uselistorder i64 %23, { 4, 1, 3, 5, 0, 2, 6, 7 }
uselistorder i64 %storemerge.reload, { 2, 0, 1 }
uselistorder i64 %13, { 2, 0, 1 }
uselistorder i64* %10, { 1, 2, 0 }
uselistorder i64 %9, { 2, 1, 0, 3 }
uselistorder i64 %5, { 4, 6, 0, 1, 2, 5, 3, 7 }
uselistorder i64 %4, { 4, 3, 5, 7, 8, 6, 0, 2, 1 }
uselistorder i64* %rsi.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_2.016.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.1.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 4, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @is_relative, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @av_compare_mod, { 1, 0 }
uselistorder i64 -1, { 3, 4, 1, 5, 6, 0, 2, 7 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 0, 8 }
uselistorder i64 (i64, i64)* @read_frame_internal, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @read_from_packet_buffer, { 1, 0 }
uselistorder i64 16, { 1, 2, 0 }
uselistorder i64 8, { 2, 0, 3, 1, 4, 5 }
uselistorder i1 false, { 1, 0, 2, 3, 6, 4, 5, 7, 8 }
uselistorder i64 2, { 1, 2, 0 }
uselistorder label LBL_37, { 1, 0, 2, 3 }
uselistorder label LBL_32, { 1, 0 }
uselistorder label LBL_8.outer, { 1, 0 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | build_vlc_970 | build_vlc | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%rcx.2.reg2mem = alloca i64
%sv_3.1.reg2mem = alloca i32
%rcx.1.reg2mem = alloca i64
%sv_4.0.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg3 to i64
%4 = ptrtoint i64* %arg2 to i64
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%sv_7 = alloca i64, align 8
%sv_8 = alloca i64, align 8
%sv_9 = alloca i64, align 8
%5 = ptrtoint i64* %sv_9 to i64
%6 = call i64 @FUNC(i64 %4)
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%7 = mul i64 %indvars.iv.reload, 4
%8 = add i64 %7, %3
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = mul nuw nsw i64 %indvars.iv.reload, 20
%12 = add i64 %11, %5
%13 = add i64 %12, -10288
%14 = inttoptr i64 %13 to i32*
store i32 %10, i32* %14, align 4
%15 = add i64 %12, -10284
%16 = inttoptr i64 %15 to i32*
%17 = trunc i64 %indvars.iv.reload to i32
store i32 %17, i32* %16, align 4
%18 = add i64 %12, -10280
%19 = inttoptr i64 %18 to i32*
store i32 -2, i32* %19, align 4
%20 = add i64 %12, -10276
%21 = inttoptr i64 %20 to i32*
store i32 %17, i32* %21, align 4
%22 = add i64 %12, -10272
%23 = inttoptr i64 %22 to i32*
store i32 %17, i32* %23, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 256
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%24 = ptrtoint i64* %arg1 to i64
%25 = zext i32 %10 to i64
%26 = add i64 %5, -10288
store i32 256, i32* %sv_3.0.reg2mem
store i32 0, i32* %sv_4.0.reg2mem
store i64 %25, i64* %rcx.1.reg2mem
br label LBL_3
LBL_3:
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
store i32 %sv_3.0.reload, i32* %sv_3.1.reg2mem
store i64 %rcx.1.reload, i64* %rcx.2.reg2mem
br label LBL_4
LBL_4:
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%sv_3.1.reload = load i32, i32* %sv_3.1.reg2mem
%27 = sext i32 %sv_3.1.reload to i64
%28 = mul nsw i64 %27, 20
%29 = add i64 %28, %5
%30 = add i64 %29, -10288
%31 = inttoptr i64 %30 to i32*
store i32 -1, i32* %31, align 4
store i32 %sv_4.0.reload, i32* %sv_2.0.reg2mem
store i32 %sv_3.1.reload, i32* %sv_1.0.reg2mem
store i32 %sv_3.1.reload, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%32 = sext i32 %sv_2.0.reload to i64
%33 = mul nsw i64 %32, 20
%34 = add i64 %33, %26
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = icmp eq i32 %36, 0
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %37, label LBL_8, label LBL_6
LBL_6:
%38 = sext i32 %sv_1.0.reload to i64
%39 = mul nsw i64 %38, 20
%40 = add i64 %39, %26
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = zext i32 %42 to i64
%44 = sext i32 %36 to i64
%45 = icmp slt i64 %44, %43
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %45, label LBL_7, label LBL_8
LBL_7:
%46 = sext i32 %sv_0.0.reload to i64
%47 = mul nsw i64 %46, 20
%48 = add i64 %47, %26
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = zext i32 %50 to i64
%52 = icmp slt i64 %44, %51
%sv_0.0.stack_var_-24.0 = select i1 %52, i32 %sv_0.0.reload, i32 %sv_2.0.reload
%sv_2.0.stack_var_-32.0 = select i1 %52, i32 %sv_2.0.reload, i32 %sv_0.0.reload
store i32 %sv_0.0.stack_var_-24.0, i32* %sv_1.1.reg2mem
store i32 %sv_2.0.stack_var_-32.0, i32* %sv_0.1.reg2mem
br label LBL_8
LBL_8:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%53 = add i32 %sv_2.0.reload, 1
%54 = icmp eq i32 %53, %sv_3.1.reload
%55 = icmp eq i1 %54, false
store i32 %53, i32* %sv_2.0.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.0.reg2mem
br i1 %55, label LBL_5, label LBL_9
LBL_9:
%56 = icmp eq i32 %sv_1.1.reload, %sv_3.1.reload
br i1 %56, label LBL_13, label LBL_10
LBL_10:
%57 = sext i32 %sv_0.1.reload to i64
%58 = mul nsw i64 %57, 20
%59 = add i64 %58, %26
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = sext i32 %sv_1.1.reload to i64
%63 = mul nsw i64 %62, 20
%64 = add i64 %63, %26
%65 = inttoptr i64 %64 to i32*
%66 = load i32, i32* %65, align 4
store i32 0, i32* %60, align 4
store i32 0, i32* %65, align 4
%67 = sub i32 0, %66
%68 = sub i32 %67, 1
%69 = icmp ult i32 %61, %68
br i1 %69, label LBL_12, label LBL_11
LBL_11:
%70 = call i64 @FUNC(i64 %24, i64 0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i64 %rcx.2.reload, i64 %2, i64 %1)
store i64 4294967295, i64* %storemerge1.reg2mem
br label LBL_15
LBL_12:
%71 = add i32 %66, %61
%72 = zext i32 %71 to i64
store i32 %71, i32* %31, align 4
%73 = add i64 %29, -10284
%74 = inttoptr i64 %73 to i32*
store i32 -1, i32* %74, align 4
%75 = add i64 %29, -10280
%76 = inttoptr i64 %75 to i32*
store i32 %sv_3.1.reload, i32* %76, align 4
%77 = add i64 %29, -10276
%78 = inttoptr i64 %77 to i32*
store i32 %sv_1.1.reload, i32* %78, align 4
%79 = add i64 %29, -10272
%80 = inttoptr i64 %79 to i32*
store i32 %sv_0.1.reload, i32* %80, align 4
%81 = add i32 %sv_3.1.reload, 1
store i32 %81, i32* %sv_3.1.reg2mem
store i64 %72, i64* %rcx.2.reg2mem
br label LBL_4
LBL_13:
%82 = add i32 %sv_4.0.reload, 1
%83 = add i32 %sv_3.1.reload, -256
%84 = icmp eq i32 %82, %83
store i32 %sv_3.1.reload, i32* %sv_3.0.reg2mem
store i32 %82, i32* %sv_4.0.reg2mem
store i64 %rcx.2.reload, i64* %rcx.1.reg2mem
br i1 %84, label LBL_3, label LBL_14
LBL_14:
%85 = add i32 %sv_3.1.reload, -1
%86 = zext i32 %85 to i64
%87 = call i64 @FUNC(i64* nonnull %sv_5, i64* nonnull %sv_6, i64* nonnull %sv_7, i64* nonnull %sv_8, i64 %86, i64 0)
%88 = call i64 @FUNC(i64 %4, i64 10, i32 0, i64* nonnull %sv_6, i64 2, i64 2)
store i64 %88, i64* %storemerge1.reg2mem
br label LBL_15
LBL_15:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
ret i64 %storemerge1.reload
uselistorder i32 %66, { 1, 0 }
uselistorder i32 %sv_1.1.reload, { 2, 1, 0, 3 }
uselistorder i32 %sv_0.1.reload, { 1, 0, 2 }
uselistorder i32 %sv_2.0.reload, { 1, 3, 2, 0 }
uselistorder i32 %sv_1.0.reload, { 0, 2, 1 }
uselistorder i32 %sv_0.0.reload, { 4, 3, 2, 0, 1 }
uselistorder i32 %sv_3.1.reload, { 8, 9, 7, 6, 5, 3, 4, 0, 1, 2 }
uselistorder i64 %rcx.2.reload, { 1, 0 }
uselistorder i32 %sv_4.0.reload, { 1, 0 }
uselistorder i64 %5, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_4.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %rcx.1.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_3.1.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.2.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i32 0, { 2, 1, 3, 4, 5, 0 }
uselistorder i64 -10280, { 1, 0 }
uselistorder i64 -10288, { 2, 0, 1 }
uselistorder i64 20, { 1, 2, 3, 4, 5, 6, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | ivshmem_setup_interrupts_16087 | ivshmem_setup_interrupts | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
store i64 %1, i64* %3, align 8
%4 = call i64 @FUNC(i64 %0, i64 1)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = bitcast i64* %rdi to i32*
%8 = load i32, i32* %7, align 8
%9 = call i64 @FUNC(i64 %0)
%10 = zext i32 %8 to i64
%11 = call i64 @FUNC(i64 %9, i64 %10, i64 1)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %13, label LBL_2, label LBL_3
LBL_2:
%14 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_0, i64 0, i64 0), i64 %10)
%15 = call i64 @FUNC(i64 %0)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 3, 1 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder label LBL_3, { 1, 2, 0 }
} | 1 |
BinRealVul | ptrace_attach_13078 | ptrace_attach | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i64, i64* %0
%3 = call i64 @FUNC(i64 %1)
%4 = load i64, i64* @gv_0, align 8
%5 = call i64 @FUNC(i64 %1, i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967295, i64* %sv_0.1.reg2mem
br i1 %8, label LBL_12, label LBL_1
LBL_1:
%9 = load i64, i64* @gv_0, align 8
%10 = add i64 %9, 16
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp slt i32 %12, 0
store i64 %11, i64* %sv_0.1.reg2mem
br i1 %13, label LBL_12, label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64 %1)
%15 = call i64 @FUNC(i64* nonnull @gv_1, i64 %2)
%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_4
LBL_3:
%19 = call i64 @FUNC(i64 %1)
%20 = call i64 @FUNC(i64* nonnull @gv_1, i64 %2)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_6, label LBL_4
LBL_4:
%24 = call i64 @FUNC(i64 %1)
br label LBL_5
LBL_5:
%25 = call i64 @FUNC()
%26 = call i64 @FUNC(i64* nonnull @gv_1)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_5, label LBL_3
LBL_6:
%29 = add i64 %1, 8
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = icmp eq i64 %31, 0
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %32, label LBL_11, label LBL_7
LBL_7:
%33 = call i64 @FUNC(i64 %1, i64 1)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
store i64 %33, i64* %sv_0.0.reg2mem
br i1 %36, label LBL_11, label LBL_8
LBL_8:
%37 = or i64 %1, 1
store i64 %37, i64* %arg1, align 8
%38 = call i64 @FUNC(i64 2)
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label LBL_10, label LBL_9
LBL_9:
store i64 2, i64* %arg1, align 8
br label LBL_10
LBL_10:
%41 = load i64, i64* @gv_0, align 8
%42 = call i64 @FUNC(i64 %1, i64 %41)
%43 = call i64 @FUNC(i64 19, i64 0, i64 %1)
store i64 %33, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_11:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%44 = call i64 @FUNC(i64* nonnull @gv_1, i64 %2)
%45 = call i64 @FUNC(i64 %1)
%46 = load i64, i64* @gv_0, align 8
%47 = add i64 %46, 16
%48 = call i64 @FUNC(i64 %47)
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_12
LBL_12:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%49 = and i64 %sv_0.1.reload, 4294967295
ret i64 %49
uselistorder i64 %1, { 4, 2, 1, 3, 7, 5, 6, 8, 0, 9, 10 }
uselistorder i64 1, { 4, 3, 0, 1, 2 }
uselistorder i64 (i64)* @task_unlock, { 1, 0 }
uselistorder i64 (i64*, i64)* @write_trylock_irqsave, { 1, 0 }
uselistorder i64* @gv_1, { 1, 2, 3, 0 }
uselistorder i64 (i64)* @task_lock, { 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3 }
uselistorder label LBL_12, { 2, 0, 1 }
uselistorder label LBL_11, { 2, 0, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | SMB2_sess_establish_session_11566 | SMB2_sess_establish_session | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.14.reg2mem = alloca i64*
%sv_0.13.reg2mem = alloca i64*
%.pre-phi6.reg2mem = alloca i64*
%sv_0.0.reg2mem = alloca i64*
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 24
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %1 to i8
%4 = icmp eq i8 %3, 0
store i64 %1, i64* %rdi.0.reg2mem
store i64* null, i64** %sv_0.0.reg2mem
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = add i64 %0, 32
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
store i64 %1, i64* %rdi.0.reg2mem
store i64* null, i64** %sv_0.0.reg2mem
br i1 %10, label LBL_4, label LBL_2
LBL_2:
%11 = trunc i64 %0 to i32
%12 = and i64 %0, 4294967295
%13 = inttoptr i64 %12 to i64*
%14 = add i64 %0, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16)
store i64 0, i64* %15, align 8
%18 = icmp eq i32 %11, 0
store i64 %16, i64* %rdi.0.reg2mem
store i64* %13, i64** %sv_0.0.reg2mem
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%19 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0))
%20 = call i64 @FUNC(i64 24)
store i64* %15, i64** %.pre-phi6.reg2mem
store i64* %13, i64** %sv_0.13.reg2mem
br label LBL_8
LBL_4:
%sv_0.0.reload = load i64*, i64** %sv_0.0.reg2mem
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%21 = add i64 %rdi.0.reload, 16
%22 = inttoptr i64 %21 to i8*
%23 = load i8, i8* %22, align 1
%24 = icmp eq i8 %23, 1
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%25 = add i64 %rdi.0.reload, 20
%26 = inttoptr i64 %25 to i32*
store i32 2, i32* %26, align 4
store i8 1, i8* %22, align 1
br label LBL_6
LBL_6:
%27 = add i64 %rdi.0.reload, 24
%28 = call i64 @FUNC(i64 %27)
%29 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_1, i64 0, i64 0))
%30 = call i64 @FUNC(i64* nonnull @gv_2)
%31 = add i64 %0, 16
%32 = inttoptr i64 %31 to i32*
store i32 0, i32* %32, align 4
%33 = add i64 %0, 20
%34 = inttoptr i64 %33 to i8*
store i8 0, i8* %34, align 1
%35 = call i64 @FUNC(i64* nonnull @gv_2)
store i64* %sv_0.0.reload, i64** %sv_0.14.reg2mem
br i1 icmp eq (i8 ptrtoint (i64* @gv_2 to i8), i8 1), label LBL_9, label LBL_6.LBL_8_crit_edge
LBL_7:
%.pre = add i64 %0, 8
%.pre5 = inttoptr i64 %.pre to i64*
store i64* %.pre5, i64** %.pre-phi6.reg2mem
store i64* %sv_0.0.reload, i64** %sv_0.13.reg2mem
br label LBL_8
LBL_8:
%sv_0.13.reload = load i64*, i64** %sv_0.13.reg2mem
%.pre-phi6.reload = load i64*, i64** %.pre-phi6.reg2mem
%36 = load i64, i64* %.pre-phi6.reload, align 8
%37 = call i64 @FUNC(i64 %36)
store i64 0, i64* %.pre-phi6.reload, align 8
store i64* %sv_0.13.reload, i64** %sv_0.14.reg2mem
br label LBL_9
LBL_9:
%sv_0.14.reload = load i64*, i64** %sv_0.14.reg2mem
%38 = ptrtoint i64* %sv_0.14.reload to i64
%39 = and i64 %38, 4294967295
ret i64 %39
uselistorder i64 %rdi.0.reload, { 2, 1, 0 }
uselistorder i64* %sv_0.0.reload, { 1, 0 }
uselistorder i64 %0, { 0, 5, 6, 4, 3, 2, 1, 7 }
uselistorder i64** %.pre-phi6.reg2mem, { 0, 2, 1 }
uselistorder i64** %sv_0.13.reg2mem, { 0, 2, 1 }
uselistorder i64** %sv_0.14.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @mutex_unlock, { 1, 0 }
uselistorder i64 (i64, i8*)* @cifs_dbg, { 1, 0 }
uselistorder i64 (i64)* @kfree, { 1, 0 }
uselistorder i64 24, { 1, 0, 2 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | kex_from_blob_10830 | kex_from_blob | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.03.reg2mem = alloca i32
%sv_0.0468.reg2mem = alloca i32
%.reg2mem = alloca i1
%sv_0.045.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%0 = call i64* @calloc(i32 1, i32 72)
%1 = icmp eq i64* %0, null
br i1 %1, label LBL_20, label LBL_1
LBL_1:
%2 = ptrtoint i64* %0 to i64
%3 = call i64 @FUNC()
store i64 %3, i64* %0, align 8
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_14, label LBL_2
LBL_2:
%5 = call i64 @FUNC()
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
store i64 %5, i64* %7, align 8
%8 = icmp eq i64 %5, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_14
LBL_3:
%10 = add i64 %2, 24
%11 = add i64 %2, 16
%12 = call i64 @FUNC(i64 %arg1, i64 %11, i64 %10)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i32 %13, i32* %sv_0.0.reg2mem
br i1 %15, label LBL_13, label LBL_4
LBL_4:
%16 = add i64 %2, 32
%17 = call i64 @FUNC(i64 %arg1, i64 %16)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
store i32 %18, i32* %sv_0.0.reg2mem
br i1 %20, label LBL_13, label LBL_5
LBL_5:
%21 = add i64 %2, 36
%22 = call i64 @FUNC(i64 %arg1, i64 %21)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
store i32 %23, i32* %sv_0.0.reg2mem
br i1 %25, label LBL_13, label LBL_6
LBL_6:
%26 = add i64 %2, 40
%27 = call i64 @FUNC(i64 %arg1, i64 %26)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
%30 = icmp eq i1 %29, false
store i32 %28, i32* %sv_0.0.reg2mem
br i1 %30, label LBL_13, label LBL_7
LBL_7:
%31 = load i64, i64* %0, align 8
%32 = call i64 @FUNC(i64 %arg1, i64 %31)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
store i32 %33, i32* %sv_0.0.reg2mem
br i1 %35, label LBL_13, label LBL_8
LBL_8:
%36 = load i64, i64* %7, align 8
%37 = call i64 @FUNC(i64 %arg1, i64 %36)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
%40 = icmp eq i1 %39, false
store i32 %38, i32* %sv_0.0.reg2mem
br i1 %40, label LBL_13, label LBL_9
LBL_9:
%41 = add i64 %2, 44
%42 = call i64 @FUNC(i64 %arg1, i64 %41)
%43 = trunc i64 %42 to i32
%44 = icmp eq i32 %43, 0
%45 = icmp eq i1 %44, false
store i32 %43, i32* %sv_0.0.reg2mem
br i1 %45, label LBL_13, label LBL_10
LBL_10:
%46 = add i64 %2, 48
%47 = call i64 @FUNC(i64 %arg1, i64 %46, i64 0)
%48 = trunc i64 %47 to i32
%49 = icmp eq i32 %48, 0
%50 = icmp eq i1 %49, false
store i32 %48, i32* %sv_0.0.reg2mem
br i1 %50, label LBL_13, label LBL_11
LBL_11:
%51 = add i64 %2, 56
%52 = call i64 @FUNC(i64 %arg1, i64 %51, i64 0)
%53 = trunc i64 %52 to i32
%54 = icmp eq i32 %53, 0
%55 = icmp eq i1 %54, false
store i32 %53, i32* %sv_0.0.reg2mem
br i1 %55, label LBL_13, label LBL_12
LBL_12:
%56 = add i64 %2, 64
%57 = inttoptr i64 %56 to i32*
store i32 1, i32* %57, align 4
%58 = add i64 %2, 68
%59 = inttoptr i64 %58 to i32*
store i32 1, i32* %59, align 4
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_13
LBL_13:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%60 = icmp eq i32 %sv_0.0.reload, 0
%61 = icmp eq i64* %arg2, null
%62 = icmp eq i1 %61, false
%or.cond = icmp eq i1 %62, %60
store i32 %sv_0.0.reload, i32* %sv_0.045.reg2mem
store i1 %61, i1* %.reg2mem
br i1 %or.cond, label LBL_22, label LBL_15
LBL_14:
%63 = icmp eq i64* %arg2, null
store i32 -1, i32* %sv_0.045.reg2mem
store i1 %63, i1* %.reg2mem
br label LBL_15
LBL_15:
%.reload = load i1, i1* %.reg2mem
%sv_0.045.reload = load i32, i32* %sv_0.045.reg2mem
%64 = load i64, i64* %0, align 8
%65 = icmp eq i64 %64, 0
br i1 %65, label LBL_17, label LBL_16
LBL_16:
%66 = call i64 @FUNC(i64 %64)
br label LBL_17
LBL_17:
%67 = add i64 %2, 8
%68 = inttoptr i64 %67 to i64*
%69 = load i64, i64* %68, align 8
%70 = icmp eq i64 %69, 0
br i1 %70, label LBL_19, label LBL_18
LBL_18:
%71 = call i64 @FUNC(i64 %69)
br label LBL_19
LBL_19:
call void @free(i64* nonnull %0)
store i32 %sv_0.045.reload, i32* %sv_0.0468.reg2mem
store i32 %sv_0.045.reload, i32* %sv_0.03.reg2mem
br i1 %.reload, label LBL_23, label LBL_21
LBL_20:
%72 = icmp eq i64* %arg2, null
store i32 -1, i32* %sv_0.0468.reg2mem
store i32 -1, i32* %sv_0.03.reg2mem
br i1 %72, label LBL_23, label LBL_21
LBL_21:
%sv_0.0468.reload = load i32, i32* %sv_0.0468.reg2mem
store i64 0, i64* %arg2, align 8
store i32 %sv_0.0468.reload, i32* %sv_0.03.reg2mem
br label LBL_23
LBL_22:
store i64 %2, i64* %arg2, align 8
store i32 0, i32* %sv_0.03.reg2mem
br label LBL_23
LBL_23:
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%73 = zext i32 %sv_0.03.reload to i64
ret i64 %73
uselistorder i64 %2, { 11, 12, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }
uselistorder i64* %0, { 1, 2, 0, 3, 5, 4 }
uselistorder i32* %sv_0.045.reg2mem, { 0, 2, 1 }
uselistorder i1* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.03.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @sshbuf_get_cstring, { 1, 0 }
uselistorder i64 (i64, i64)* @sshbuf_get_stringb, { 1, 0 }
uselistorder i64 (i64, i64)* @sshbuf_get_u32, { 3, 2, 1, 0 }
uselistorder i32 0, { 0, 3, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 2 }
uselistorder i64* null, { 1, 0, 2, 3 }
uselistorder i64* %arg2, { 3, 4, 1, 0, 2 }
uselistorder label LBL_23, { 1, 2, 3, 0 }
uselistorder label LBL_21, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_13, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | __split_vma_17789 | __split_vma | define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0)
%5 = call i64 @FUNC(i64 %4)
%6 = sub i64 0, %5
%7 = sub i64 %6, 1
%8 = and i64 %7, %arg3
%9 = icmp eq i64 %8, 0
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_22
LBL_2:
%10 = load i64, i64* @gv_0, align 8
%11 = call i64 @FUNC(i64 %10, i64 0)
%12 = icmp eq i64 %11, 0
store i64 4294967284, i64* %sv_0.2.reg2mem
br i1 %12, label LBL_21, label LBL_3
LBL_3:
%13 = add i64 %0, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %11 to i64*
store i64 0, i64* %16, align 8
%17 = add i64 %11, 8
%18 = inttoptr i64 %17 to i64*
store i64 %15, i64* %18, align 8
%19 = add i64 %0, 16
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = add i64 %0, 24
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = add i64 %11, 16
%26 = inttoptr i64 %25 to i64*
store i64 %21, i64* %26, align 8
%27 = add i64 %11, 24
%28 = inttoptr i64 %27 to i64*
store i64 %24, i64* %28, align 8
%29 = add i64 %0, 32
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = add i64 %0, 40
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = add i64 %11, 32
%36 = inttoptr i64 %35 to i64*
store i64 %31, i64* %36, align 8
%37 = add i64 %11, 40
%38 = inttoptr i64 %37 to i64*
store i64 %34, i64* %38, align 8
%39 = add i64 %11, 48
%40 = call i64 @FUNC(i64 %39)
%41 = icmp eq i32 %arg4, 0
br i1 %41, label LBL_5, label LBL_4
LBL_4:
store i64 %arg3, i64* %18, align 8
br label LBL_6
LBL_5:
store i64 %arg3, i64* %16, align 8
%42 = load i64, i64* %26, align 8
%43 = udiv i64 %arg3, 4096
%44 = add i64 %42, %43
store i64 %44, i64* %26, align 8
br label LBL_6
LBL_6:
%45 = call i64 @FUNC(i64 %0)
%46 = call i64 @FUNC(i64 %45)
%47 = icmp ult i64 %46, -1000
store i64 %46, i64* %sv_0.1.reg2mem
br i1 %47, label LBL_7, label LBL_20
LBL_7:
%sext = mul i64 %46, 4294967296
%48 = ashr exact i64 %sext, 32
%49 = call i64 @FUNC(i64 %11, i64 %48)
%50 = call i64 @FUNC(i64 %11, i64 %0)
%51 = trunc i64 %50 to i32
%52 = icmp eq i32 %51, 0
%53 = icmp eq i1 %52, false
store i64 4294967284, i64* %sv_0.0.reg2mem
br i1 %53, label LBL_19, label LBL_8
LBL_8:
%54 = load i64, i64* %38, align 8
%55 = icmp eq i64 %54, 0
br i1 %55, label LBL_11, label LBL_9
LBL_9:
%56 = call i64 @FUNC(i64 %54)
%57 = inttoptr i64 %22 to i32*
%58 = load i32, i32* %57, align 4
%59 = urem i32 %58, 2
%60 = icmp eq i32 %59, 0
br i1 %60, label LBL_11, label LBL_10
LBL_10:
%61 = ptrtoint i32* %arg1 to i64
%62 = call i64 @FUNC(i64 %61)
br label LBL_11
LBL_11:
%63 = load i64, i64* %20, align 8
br i1 %41, label LBL_13, label LBL_12
LBL_12:
%64 = load i64, i64* %16, align 8
%65 = sub i64 %arg3, %64
%66 = udiv i64 %65, 4096
%67 = add i64 %66, %63
%68 = load i64, i64* %14, align 8
%69 = call i64 @FUNC(i64 %0, i64 %arg3, i64 %68, i64 %67, i64 %11)
store i64 %69, i64* %storemerge.in.reg2mem
br label LBL_14
LBL_13:
%70 = call i64 @FUNC(i64 %0, i64 %0, i64 %arg3, i64 %63, i64 %11)
store i64 %70, i64* %storemerge.in.reg2mem
br label LBL_14
LBL_14:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = trunc i64 %storemerge.in.reload to i32
%71 = icmp eq i32 %storemerge, 0
%72 = icmp eq i1 %71, false
store i64 0, i64* %rax.0.reg2mem
br i1 %72, label LBL_15, label LBL_22
LBL_15:
%73 = load i64, i64* %38, align 8
%74 = icmp eq i64 %73, 0
store i64 %storemerge.in.reload, i64* %sv_0.0.reg2mem
br i1 %74, label LBL_19, label LBL_16
LBL_16:
%75 = inttoptr i64 %22 to i32*
%76 = load i32, i32* %75, align 4
%77 = urem i32 %76, 2
%78 = icmp eq i32 %77, 0
store i64 %73, i64* %.reg2mem
br i1 %78, label LBL_18, label LBL_17
LBL_17:
%79 = ptrtoint i32* %arg1 to i64
%80 = call i64 @FUNC(i64 %79)
%.pre = load i64, i64* %38, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_18
LBL_18:
%.reload = load i64, i64* %.reg2mem
%81 = call i64 @FUNC(i64 %.reload)
store i64 %storemerge.in.reload, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_19:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%82 = call i64 @FUNC(i64 %48)
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_20
LBL_20:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%83 = load i64, i64* @gv_0, align 8
%84 = call i64 @FUNC(i64 %83, i64 %11)
store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem
br label LBL_21
LBL_21:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%85 = and i64 %sv_0.2.reload, 4294967295
store i64 %85, i64* %rax.0.reg2mem
br label LBL_22
LBL_22:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %63, { 1, 0 }
uselistorder i64 %46, { 1, 0, 2 }
uselistorder i64* %26, { 1, 0, 2 }
uselistorder i64 %22, { 1, 0, 2 }
uselistorder i64 %11, { 2, 0, 1, 4, 3, 5, 6, 7, 8, 9, 10, 11, 12 }
uselistorder i64 %0, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0, 11 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64, i64, i64, i64, i64)* @vma_adjust, { 1, 0 }
uselistorder i64 4294967284, { 1, 0 }
uselistorder i64 %arg3, { 4, 3, 2, 0, 5, 6, 1 }
uselistorder i32* %arg1, { 1, 0 }
uselistorder label LBL_22, { 2, 0, 1 }
uselistorder label LBL_21, { 1, 0 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_19, { 2, 0, 1 }
} | 1 |
BinRealVul | do_adaptive_prediction_14546 | do_adaptive_prediction | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %arg2 to i32
%4 = bitcast i64* %rdi to i32*
%5 = trunc i64 %1 to i32
%6 = add i32 %5, %3
%7 = icmp slt i32 %6, 0
%8 = zext i1 %7 to i32
%9 = add i64 %2, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, %8
%13 = icmp eq i1 %12, false
%14 = zext i1 %13 to i64
%15 = mul i64 %14, 4
%16 = or i64 %15, ptrtoint (i32** @gv_0 to i64)
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i64 %2, 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, %8
%23 = zext i1 %22 to i64
%24 = mul i64 %23, 4
%25 = or i64 %24, ptrtoint (i32** @gv_0 to i64)
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
store i32 %11, i32* %20, align 4
store i32 %8, i32* %10, align 4
%28 = add i64 %2, 12
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = zext i32 %30 to i64
%32 = call i64 @FUNC(i64 %31, i64 4294959105, i64 8191)
%33 = trunc i64 %32 to i32
%34 = mul i32 %18, %33
%35 = ashr i32 %34, 5
%36 = mul i32 %27, 128
%37 = add i32 %35, %36
%38 = add i64 %2, 16
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = mul i32 %40, 127
%42 = ashr i32 %41, 7
%43 = add i32 %37, %42
%44 = zext i32 %43 to i64
%45 = call i64 @FUNC(i64 %44, i64 4294955008, i64 12288)
%46 = trunc i64 %45 to i32
store i32 %46, i32* %39, align 4
%47 = sub i32 15360, %46
%48 = sub i32 0, %47
%49 = zext i32 %48 to i64
%50 = mul i32 %18, -192
%51 = load i32, i32* %29, align 4
%52 = mul i32 %51, 255
%53 = ashr i32 %52, 8
%54 = add i32 %53, %50
%55 = zext i32 %47 to i64
%56 = zext i32 %54 to i64
%57 = call i64 @FUNC(i64 %56, i64 %49, i64 %55)
%58 = trunc i64 %57 to i32
store i32 %58, i32* %29, align 4
%59 = and i64 %arg2, 4294967295
%60 = call i64 @FUNC(i64 %59, i64 %2)
%61 = add i64 %2, 20
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = add i32 %63, %3
%65 = mul i32 %64, 2
%66 = zext i32 %65 to i64
%67 = call i64 @FUNC(i64 %66)
%68 = trunc i64 %67 to i32
%sext1 = mul i32 %68, 65536
%69 = ashr exact i32 %sext1, 16
%70 = load i32, i32* %4, align 8
%71 = load i32, i32* %29, align 4
%72 = mul i64 %67, 281474976710656
%73 = ashr exact i64 %72, 48
%74 = trunc i64 %73 to i32
%75 = mul i32 %71, %74
%76 = ashr i32 %75, 15
%77 = add i32 %76, %70
%78 = load i32, i32* %39, align 4
%79 = add i64 %2, 24
%80 = inttoptr i64 %79 to i32*
%81 = load i32, i32* %80, align 4
%82 = mul i32 %81, %78
%83 = ashr i32 %82, 15
%84 = add i32 %77, %83
%85 = zext i32 %84 to i64
%86 = call i64 @FUNC(i64 %85)
%87 = trunc i64 %86 to i32
%sext2 = mul i32 %87, 65536
%88 = ashr exact i32 %sext2, 16
store i32 %88, i32* %62, align 4
store i32 %69, i32* %80, align 4
ret i64 %2
uselistorder i32 %18, { 1, 0 }
uselistorder i32 %11, { 1, 0 }
uselistorder i32 %8, { 2, 0, 1 }
uselistorder i64 (i64)* @av_clip_int16, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder i64 (i64, i64, i64)* @av_clip, { 3, 2, 1, 0 }
uselistorder i32 0, { 1, 0 }
} | 1 |
BinRealVul | tcp_try_undo_dsack_10251 | tcp_try_undo_dsack | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = add i64 %1, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %storemerge.reg2mem
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0))
%11 = call i64 @FUNC(i64 %0, i64 0)
%12 = call i64 @FUNC(i64 %0)
%13 = call i64 @FUNC(i64 %12, i64 0)
store i64 1, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 2, 1, 0, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 0 |
BinRealVul | pc_init_pci_no_kvmclock_2122 | pc_init_pci_no_kvmclock | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i8 0, i8* bitcast (i64* @gv_0 to i8*), align 8
store i8 0, i8* bitcast (i64* @gv_1 to i8*), align 8
store i8 0, i8* bitcast (i64* @gv_2 to i8*), align 8
store i8 0, i8* bitcast (i64* @gv_3 to i8*), align 8
store i8 1, i8* inttoptr (i64 4210721 to i8*), align 1
store i8 0, i8* inttoptr (i64 4210722 to i8*), align 2
store i8 1, i8* inttoptr (i64 4210723 to i8*), align 1
store i8 0, i8* inttoptr (i64 4210724 to i8*), align 4
%1 = call i64 @FUNC(i64 1, i64 2)
%2 = call i64 @FUNC()
%3 = call i64 @FUNC(i64 %0, i64 1, i64 0)
ret i64 %3
uselistorder i8 0, { 1, 2, 3, 4, 5, 6, 0 }
} | 0 |
BinRealVul | parse_icy_2186 | parse_icy | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%0 = inttoptr i64 %arg3 to i8*
%1 = call i32 @strlen(i8* %0)
%2 = inttoptr i64 %arg2 to i8*
%3 = call i32 @strlen(i8* %2)
%4 = add i32 %1, 4
%5 = add i32 %4, %3
%6 = icmp eq i64 %arg2, 0
store i32 %5, i32* %sv_0.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i32 @strlen(i8* %2)
%8 = add i32 %7, %5
store i32 %8, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%9 = ptrtoint i64* %arg1 to i64
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%10 = sext i32 %sv_0.0.reload to i64
%11 = call i64 @FUNC(i64 %9, i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp slt i32 %12, 0
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = and i64 %11, 4294967295
store i64 %15, i64* %storemerge.reg2mem
br label LBL_7
LBL_4:
%16 = icmp eq i1 %6, false
br i1 %16, label LBL_6, label LBL_5
LBL_5:
%17 = bitcast i64* %arg1 to i8*
store i8 0, i8* %17, align 1
br label LBL_6
LBL_6:
%18 = call i64 @FUNC(i64 %9, i64 %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 %arg2, i64 %arg3)
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %5, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | dlm_free_dead_locks_5367 | dlm_free_dead_locks | define i64 @FUNC(i64* %arg1, i64* %arg2, i8 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdi.5.lcssa.reg2mem = alloca i64
%sv_0.5.lcssa.reg2mem = alloca i32
%rdi.4.reg2mem = alloca i64
%sv_0.4.reg2mem = alloca i32
%.in3435.reg2mem = alloca i64
%rdi.5536.reg2mem = alloca i64
%sv_0.5437.reg2mem = alloca i32
%.reg2mem58 = alloca i64
%.reg2mem56 = alloca i64
%sv_0.3.lcssa29.reg2mem = alloca i32
%rdi.3.lcssa30.reg2mem = alloca i64
%.in33.reg2mem = alloca i64
%sv_0.39.lcssa.reg2mem = alloca i32
%rdi.310.lcssa.reg2mem = alloca i64
%rdi.2.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%.in3239.reg2mem = alloca i64
%rdi.31040.reg2mem = alloca i64
%sv_0.3941.reg2mem = alloca i32
%.reg2mem54 = alloca i64
%.reg2mem52 = alloca i64
%sv_0.1.lcssa27.reg2mem = alloca i32
%rdi.1.lcssa28.reg2mem = alloca i64
%.in31.reg2mem = alloca i64
%sv_0.115.lcssa.reg2mem = alloca i32
%rdi.116.lcssa.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.in44.reg2mem = alloca i64
%rdi.11645.reg2mem = alloca i64
%sv_0.11546.reg2mem = alloca i32
%.reg2mem50 = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 8
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %2, 32
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %2, 40
%9 = icmp eq i64 %8, 0
%.pre = zext i8 %arg3 to i32
store i64 8, i64* %.in31.reg2mem
store i64 -8, i64* %rdi.1.lcssa28.reg2mem
store i32 0, i32* %sv_0.1.lcssa27.reg2mem
br i1 %9, label LBL_6, label LBL_1
LBL_1:
%10 = add i64 %2, 48
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
%14 = icmp eq i1 %13, false
store i64 %12, i64* %.reg2mem
store i64 %10, i64* %.reg2mem50
store i32 0, i32* %sv_0.11546.reg2mem
store i64 %6, i64* %rdi.11645.reg2mem
store i64 %8, i64* %.in44.reg2mem
store i64 %6, i64* %rdi.116.lcssa.reg2mem
store i32 0, i32* %sv_0.115.lcssa.reg2mem
br i1 %14, label LBL_2, label LBL_5
LBL_2:
%.in44.reload = load i64, i64* %.in44.reg2mem
%rdi.11645.reload = load i64, i64* %rdi.11645.reg2mem
%sv_0.11546.reload = load i32, i32* %sv_0.11546.reg2mem
%.reload = load i64, i64* %.reg2mem
%15 = inttoptr i64 %.in44.reload to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, %.pre
%18 = icmp eq i1 %17, false
store i32 %sv_0.11546.reload, i32* %sv_0.0.reg2mem
store i64 %rdi.11645.reload, i64* %rdi.0.reg2mem
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%.reload51 = load i64, i64* %.reg2mem50
%19 = call i64 @FUNC(i64 %.reload51)
%20 = call i64 @FUNC(i64 %.in44.reload)
%21 = call i64 @FUNC(i64 %.in44.reload)
%22 = add i32 %sv_0.11546.reload, 1
store i32 %22, i32* %sv_0.0.reg2mem
store i64 %.in44.reload, i64* %rdi.0.reg2mem
br label LBL_4
LBL_4:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%23 = add i64 %.reload, 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = icmp eq i64 %25, 0
%27 = icmp eq i1 %26, false
store i64 %25, i64* %.reg2mem
store i64 %23, i64* %.reg2mem50
store i32 %sv_0.0.reload, i32* %sv_0.11546.reg2mem
store i64 %rdi.0.reload, i64* %rdi.11645.reg2mem
store i64 %.reload, i64* %.in44.reg2mem
store i64 %rdi.0.reload, i64* %rdi.116.lcssa.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.115.lcssa.reg2mem
br i1 %27, label LBL_2, label LBL_5
LBL_5:
%sv_0.115.lcssa.reload = load i32, i32* %sv_0.115.lcssa.reg2mem
%rdi.116.lcssa.reload = load i64, i64* %rdi.116.lcssa.reg2mem
%28 = icmp eq i64 %10, 0
store i64 %10, i64* %.in31.reg2mem
store i64 %rdi.116.lcssa.reload, i64* %rdi.1.lcssa28.reg2mem
store i32 %sv_0.115.lcssa.reload, i32* %sv_0.1.lcssa27.reg2mem
store i64 8, i64* %.in33.reg2mem
store i64 %rdi.116.lcssa.reload, i64* %rdi.3.lcssa30.reg2mem
store i32 %sv_0.115.lcssa.reload, i32* %sv_0.3.lcssa29.reg2mem
br i1 %28, label LBL_11, label LBL_6
LBL_6:
%sv_0.1.lcssa27.reload = load i32, i32* %sv_0.1.lcssa27.reg2mem
%rdi.1.lcssa28.reload = load i64, i64* %rdi.1.lcssa28.reg2mem
%.in31.reload = load i64, i64* %.in31.reg2mem
%29 = add i64 %.in31.reload, 8
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = icmp eq i64 %31, 0
%33 = icmp eq i1 %32, false
store i64 %31, i64* %.reg2mem52
store i64 %29, i64* %.reg2mem54
store i32 %sv_0.1.lcssa27.reload, i32* %sv_0.3941.reg2mem
store i64 %rdi.1.lcssa28.reload, i64* %rdi.31040.reg2mem
store i64 %.in31.reload, i64* %.in3239.reg2mem
store i64 %rdi.1.lcssa28.reload, i64* %rdi.310.lcssa.reg2mem
store i32 %sv_0.1.lcssa27.reload, i32* %sv_0.39.lcssa.reg2mem
br i1 %33, label LBL_7, label LBL_10
LBL_7:
%.in3239.reload = load i64, i64* %.in3239.reg2mem
%rdi.31040.reload = load i64, i64* %rdi.31040.reg2mem
%sv_0.3941.reload = load i32, i32* %sv_0.3941.reg2mem
%.reload53 = load i64, i64* %.reg2mem52
%34 = inttoptr i64 %.in3239.reload to i32*
%35 = load i32, i32* %34, align 4
%36 = icmp eq i32 %35, %.pre
%37 = icmp eq i1 %36, false
store i32 %sv_0.3941.reload, i32* %sv_0.2.reg2mem
store i64 %rdi.31040.reload, i64* %rdi.2.reg2mem
br i1 %37, label LBL_9, label LBL_8
LBL_8:
%.reload55 = load i64, i64* %.reg2mem54
%38 = call i64 @FUNC(i64 %.reload55)
%39 = call i64 @FUNC(i64 %.in3239.reload)
%40 = call i64 @FUNC(i64 %.in3239.reload)
%41 = add i32 %sv_0.3941.reload, 1
store i32 %41, i32* %sv_0.2.reg2mem
store i64 %.in3239.reload, i64* %rdi.2.reg2mem
br label LBL_9
LBL_9:
%rdi.2.reload = load i64, i64* %rdi.2.reg2mem
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%42 = add i64 %.reload53, 8
%43 = inttoptr i64 %42 to i64*
%44 = load i64, i64* %43, align 8
%45 = icmp eq i64 %44, 0
%46 = icmp eq i1 %45, false
store i64 %44, i64* %.reg2mem52
store i64 %42, i64* %.reg2mem54
store i32 %sv_0.2.reload, i32* %sv_0.3941.reg2mem
store i64 %rdi.2.reload, i64* %rdi.31040.reg2mem
store i64 %.reload53, i64* %.in3239.reg2mem
store i64 %rdi.2.reload, i64* %rdi.310.lcssa.reg2mem
store i32 %sv_0.2.reload, i32* %sv_0.39.lcssa.reg2mem
br i1 %46, label LBL_7, label LBL_10
LBL_10:
%sv_0.39.lcssa.reload = load i32, i32* %sv_0.39.lcssa.reg2mem
%rdi.310.lcssa.reload = load i64, i64* %rdi.310.lcssa.reg2mem
%47 = add i64 %2, 56
%48 = icmp eq i64 %47, 0
store i64 %47, i64* %.in33.reg2mem
store i64 %rdi.310.lcssa.reload, i64* %rdi.3.lcssa30.reg2mem
store i32 %sv_0.39.lcssa.reload, i32* %sv_0.3.lcssa29.reg2mem
store i32 %sv_0.39.lcssa.reload, i32* %sv_0.5.lcssa.reg2mem
store i64 %rdi.310.lcssa.reload, i64* %rdi.5.lcssa.reg2mem
br i1 %48, label LBL_15, label LBL_11
LBL_11:
%sv_0.3.lcssa29.reload = load i32, i32* %sv_0.3.lcssa29.reg2mem
%rdi.3.lcssa30.reload = load i64, i64* %rdi.3.lcssa30.reg2mem
%.in33.reload = load i64, i64* %.in33.reg2mem
%49 = add i64 %.in33.reload, 8
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = icmp eq i64 %51, 0
%53 = icmp eq i1 %52, false
store i64 %51, i64* %.reg2mem56
store i64 %49, i64* %.reg2mem58
store i32 %sv_0.3.lcssa29.reload, i32* %sv_0.5437.reg2mem
store i64 %rdi.3.lcssa30.reload, i64* %rdi.5536.reg2mem
store i64 %.in33.reload, i64* %.in3435.reg2mem
store i32 %sv_0.3.lcssa29.reload, i32* %sv_0.5.lcssa.reg2mem
store i64 %rdi.3.lcssa30.reload, i64* %rdi.5.lcssa.reg2mem
br i1 %53, label LBL_12, label LBL_15
LBL_12:
%.in3435.reload = load i64, i64* %.in3435.reg2mem
%rdi.5536.reload = load i64, i64* %rdi.5536.reg2mem
%sv_0.5437.reload = load i32, i32* %sv_0.5437.reg2mem
%.reload57 = load i64, i64* %.reg2mem56
%54 = inttoptr i64 %.in3435.reload to i32*
%55 = load i32, i32* %54, align 4
%56 = icmp eq i32 %55, %.pre
%57 = icmp eq i1 %56, false
store i32 %sv_0.5437.reload, i32* %sv_0.4.reg2mem
store i64 %rdi.5536.reload, i64* %rdi.4.reg2mem
br i1 %57, label LBL_14, label LBL_13
LBL_13:
%.reload59 = load i64, i64* %.reg2mem58
%58 = call i64 @FUNC(i64 %.reload59)
%59 = call i64 @FUNC(i64 %.in3435.reload)
%60 = call i64 @FUNC(i64 %.in3435.reload)
%61 = add i32 %sv_0.5437.reload, 1
store i32 %61, i32* %sv_0.4.reg2mem
store i64 %.in3435.reload, i64* %rdi.4.reg2mem
br label LBL_14
LBL_14:
%rdi.4.reload = load i64, i64* %rdi.4.reg2mem
%sv_0.4.reload = load i32, i32* %sv_0.4.reg2mem
%62 = add i64 %.reload57, 8
%63 = inttoptr i64 %62 to i64*
%64 = load i64, i64* %63, align 8
%65 = icmp eq i64 %64, 0
%66 = icmp eq i1 %65, false
store i64 %64, i64* %.reg2mem56
store i64 %62, i64* %.reg2mem58
store i32 %sv_0.4.reload, i32* %sv_0.5437.reg2mem
store i64 %rdi.4.reload, i64* %rdi.5536.reg2mem
store i64 %.reload57, i64* %.in3435.reg2mem
store i32 %sv_0.4.reload, i32* %sv_0.5.lcssa.reg2mem
store i64 %rdi.4.reload, i64* %rdi.5.lcssa.reg2mem
br i1 %66, label LBL_12, label LBL_15
LBL_15:
%sv_0.5.lcssa.reload = load i32, i32* %sv_0.5.lcssa.reg2mem
%67 = icmp eq i32 %sv_0.5.lcssa.reload, 0
br i1 %67, label LBL_19, label LBL_16
LBL_16:
%rdi.5.lcssa.reload = load i64, i64* %rdi.5.lcssa.reg2mem
%68 = add i64 %2, 8
%69 = inttoptr i64 %68 to i64*
%70 = load i64, i64* %69, align 8
%71 = zext i32 %sv_0.5.lcssa.reload to i64
%72 = and i64 %1, 4294967295
%73 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @gv_0, i64 0, i64 0), i64 %rdi.5.lcssa.reload, i64 %72, i64 %70, i64 %71)
%74 = add i64 %2, 24
%75 = inttoptr i64 %74 to i64*
%76 = load i64, i64* %75, align 8
%77 = zext i8 %arg3 to i64
%78 = call i64 @FUNC(i64 %77, i64 %76)
%79 = trunc i64 %78 to i32
%80 = icmp eq i32 %79, 0
%81 = icmp eq i1 %80, false
br i1 %81, label LBL_18, label LBL_17
LBL_17:
%82 = load i64, i64* %69, align 8
%83 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @gv_1, i64 0, i64 0), i64 %77, i64 %72, i64 %82, i64 %71)
%84 = call i64 @FUNC(i64 %2)
br label LBL_18
LBL_18:
%85 = add i64 %2, 16
%86 = inttoptr i64 %85 to i32*
%87 = load i32, i32* %86, align 4
%88 = or i32 %87, 2
store i32 %88, i32* %86, align 4
%89 = call i64 @FUNC(i64 %3, i64 %2, i8 %arg3)
br label LBL_21
LBL_19:
%90 = add i64 %2, 24
%91 = inttoptr i64 %90 to i64*
%92 = load i64, i64* %91, align 8
%93 = zext i8 %arg3 to i64
%94 = call i64 @FUNC(i64 %93, i64 %92)
%95 = trunc i64 %94 to i32
%96 = icmp eq i32 %95, 0
br i1 %96, label LBL_21, label LBL_20
LBL_20:
%97 = add i64 %2, 8
%98 = inttoptr i64 %97 to i64*
%99 = load i64, i64* %98, align 8
%100 = and i64 %1, 4294967295
%101 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @gv_2, i64 0, i64 0), i64 %93, i64 %100, i64 %99, i64 %93)
%102 = call i64 @FUNC(i64 %3, i64 %2, i8 %arg3)
br label LBL_21
LBL_21:
%103 = call i64 @FUNC(i64 %3, i64 %2)
ret i64 %103
uselistorder i64 %72, { 1, 0 }
uselistorder i32 %sv_0.5.lcssa.reload, { 1, 0 }
uselistorder i32 %sv_0.5437.reload, { 1, 0 }
uselistorder i32 %sv_0.3941.reload, { 1, 0 }
uselistorder i32 %sv_0.11546.reload, { 1, 0 }
uselistorder i64 %10, { 0, 2, 1, 3 }
uselistorder i64 %3, { 2, 1, 0, 3 }
uselistorder i64 %2, { 7, 5, 6, 8, 2, 3, 1, 4, 9, 10, 0, 11, 12 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem50, { 2, 0, 1 }
uselistorder i32* %sv_0.11546.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.11645.reg2mem, { 2, 0, 1 }
uselistorder i64* %.in44.reg2mem, { 2, 0, 1 }
uselistorder i64* %.in31.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdi.1.lcssa28.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.1.lcssa27.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem52, { 2, 0, 1 }
uselistorder i64* %.reg2mem54, { 2, 0, 1 }
uselistorder i32* %sv_0.3941.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.31040.reg2mem, { 2, 0, 1 }
uselistorder i64* %.in3239.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem56, { 2, 0, 1 }
uselistorder i64* %.reg2mem58, { 2, 0, 1 }
uselistorder i32* %sv_0.5437.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.5536.reg2mem, { 2, 0, 1 }
uselistorder i64* %.in3435.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64, i64, i8)* @dlm_lockres_clear_refmap_bit, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64, i64)* @test_bit, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @mlog, { 2, 1, 0 }
uselistorder i64 (i64)* @dlm_lock_put, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @list_del_init, { 2, 1, 0 }
uselistorder i1 false, { 4, 5, 3, 2, 7, 6, 1, 9, 8, 0 }
uselistorder i32 0, { 3, 4, 5, 1, 2, 0 }
uselistorder i64 (i64)* @assert_spin_locked, { 1, 0 }
uselistorder i64 8, { 4, 5, 6, 3, 7, 2, 0, 8, 1, 9 }
uselistorder i8 %arg3, { 3, 4, 1, 2, 0 }
uselistorder label LBL_15, { 1, 0, 2 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | cond_read_av_list_17702 | cond_read_av_list | define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%1 = load i64, i64* %0
%sv_0 = alloca i32*, align 8
%sv_1 = alloca i32, align 4
store i64 0, i64* %arg3, align 8
%2 = bitcast i32* %sv_1 to i64*
%3 = call i64 @FUNC(i64* nonnull %2, i64 %arg2, i64 4)
%4 = trunc i64 %3 to i32
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_7
LBL_1:
%7 = load i32, i32* %sv_1, align 4
%8 = zext i32 %7 to i64
%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 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_2, label LBL_7
LBL_2:
%13 = ptrtoint i32* %arg1 to i64
%14 = trunc i64 %1 to i32
%15 = bitcast i32** %sv_0 to i64*
store i64 %13, i64* %15, align 8
%16 = add i64 %13, 4
store i32 0, i32* %storemerge4.reg2mem
br label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %arg2, i32 %14, i64 %16, i64 4198729, i64* nonnull %15)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = and i64 %17, 4294967295
store i64 %20, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%21 = add nuw i32 %storemerge4.reload, 1
%22 = icmp ult i32 %21, %10
store i32 %21, i32* %storemerge4.reg2mem
br i1 %22, label LBL_3, label LBL_6
LBL_6:
store i64 0, i64* %arg3, align 8
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 i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i32 0, { 1, 0, 2, 3 }
uselistorder i64 4, { 1, 0 }
uselistorder label LBL_7, { 3, 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | __ksm_enter_9695 | __ksm_enter | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_3
LBL_1:
%3 = call i64 @FUNC(i64* nonnull @gv_0)
%4 = call i64 @FUNC(i64* nonnull @gv_1)
%5 = ptrtoint i32* %arg1 to i64
%6 = call i64 @FUNC(i64 %5, i64 %0)
%7 = load i64, i64* @gv_2, align 8
%8 = call i64 @FUNC(i64 %0, i64 %7)
%9 = call i64 @FUNC(i64* nonnull @gv_1)
%10 = call i64 @FUNC(i64 0, i64 %5)
%11 = add i64 %5, 4
%12 = call i64 @FUNC(i64 %11)
%13 = urem i64 %3, 256
%14 = icmp eq i64 %13, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = call i64 @FUNC(i64* nonnull @gv_3)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder label LBL_3, { 1, 0, 2 }
} | 0 |
BinRealVul | initialize_srand_4603 | initialize_srand | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i32
%0 = load i8, i8* inttoptr (i64 4210749 to i8*), align 1
%1 = zext i8 %0 to i64
%2 = icmp eq i8 %0, 0
%3 = icmp eq i1 %2, false
store i64 %1, i64* %rax.0.reg2mem
br i1 %3, label LBL_4, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 25)
%5 = icmp eq i64 %4, 0
store i32 0, i32* %storemerge.reg2mem
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = inttoptr i64 %4 to i32*
%7 = call i64 @FUNC(i64 1)
%8 = load i32, i32* %6, align 4
store i32 %8, i32* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%9 = call i64 @FUNC(i64 0)
%10 = trunc i64 %9 to i32
%11 = xor i32 %storemerge.reload, %10
%12 = call i64 @FUNC()
%13 = trunc i64 %12 to i32
%14 = xor i32 %11, %13
call void @srand(i32 %14)
store i8 1, i8* bitcast (i64* @gv_0 to i8*), align 8
store i64 ptrtoint (i32* @0 to 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* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | do_sigreturn_16584 | do_sigreturn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%2 = load i64, i64* %0
%3 = call i64 @FUNC(i64 0, i64 %2, i64 %1, i64 1)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_4, label LBL_1
LBL_1:
%6 = bitcast i32* %sv_1 to i64*
%7 = call i64 @FUNC(i64* nonnull %6)
%8 = load i32, i32* %sv_1, align 4
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %9, i64 %2)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_4, label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull %6)
%15 = call i64 @FUNC(i64 2, i64* nonnull %sv_0, i64 0)
%16 = call i64 @FUNC(i64 %1, i64 %2)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_4, label LBL_3
LBL_3:
%20 = call i64 @FUNC(i64 %2, i64 %1, i64 0)
%21 = add i64 %1, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
store i64 %23, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%24 = call i64 @FUNC(i64 %2, i64 %1, i64 0)
%25 = call i64 @FUNC(i64 11)
store i64 %25, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 3, 0, 1, 2, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64)* @unlock_user_struct, { 1, 0 }
uselistorder i64 1, { 1, 0 }
} | 1 |
BinRealVul | FindServiceEventURLPath_13604 | FindServiceEventURLPath | define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.in4.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = icmp ne i64* %arg1, null
%1 = icmp eq i8* %arg2, null
%2 = icmp eq i1 %1, false
%or.cond = icmp eq i1 %0, %2
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_6
LBL_1:
%3 = call i32 @strlen(i8* %arg2)
%4 = sext i32 %3 to i64
%5 = ptrtoint i8* %arg2 to i64
%6 = call i64 @FUNC(i64 %5, i64 %4, i64* nonnull %sv_1)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 %5, i64* %storemerge.in4.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_6, label LBL_2
LBL_2:
%storemerge.in4.reload = load i64, i64* %storemerge.in4.reg2mem
%10 = inttoptr i64 %storemerge.in4.reload to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_5, label LBL_3
LBL_3:
%13 = inttoptr i64 %11 to i8*
%14 = call i32 @strlen(i8* %13)
%15 = sext i32 %14 to i64
%16 = load i64, i64* %10, align 8
%17 = call i64 @FUNC(i64 %16, i64 %15, i64* nonnull %sv_0)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull %sv_1)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
store i64 %storemerge.in4.reload, i64* %rax.0.reg2mem
br i1 %24, label LBL_5, label LBL_6
LBL_5:
%25 = add i64 %storemerge.in4.reload, 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = icmp eq i64 %27, 0
%29 = icmp eq i1 %28, false
store i64 %27, i64* %storemerge.in4.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %29, label LBL_2, label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %10, { 1, 0 }
uselistorder i64 %storemerge.in4.reload, { 2, 0, 1 }
uselistorder i64* %storemerge.in4.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64 (i64, i64, i64*)* @parse_uri, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i1 false, { 3, 1, 2, 4, 0 }
uselistorder i8* %arg2, { 2, 1, 0 }
uselistorder label LBL_6, { 1, 0, 2, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | devres_release_all_4884 | devres_release_all | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
store i64 4294967277, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 8
%6 = call i64 @FUNC(i64 %5, i64 %1)
%7 = call i64 @FUNC(i64 %4, i64 %5, i64 %4, i64 %1)
store i64 %7, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %4, { 1, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | opfxch_8449 | opfxch | define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = trunc i64 %1 to i32
store i64 4294967295, i64* %rax.0.reg2mem
switch i32 %3, label LBL_4 [
i32 0, label LBL_1
i32 1, label LBL_2
]
LBL_1:
%4 = bitcast i64* %arg2 to i8*
store i8 -39, i8* %4, align 1
%5 = add i64 %2, 1
%6 = inttoptr i64 %5 to i8*
store i8 -55, i8* %6, align 1
store i64 2, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%7 = ptrtoint i32* %arg3 to i64
%8 = add i64 %7, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = urem i32 %10, 2
%12 = icmp eq i32 %11, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = bitcast i64* %arg2 to i8*
store i8 -39, i8* %13, align 1
%14 = add i64 %7, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = add i64 %2, 1
%18 = trunc i32 %16 to i8
%19 = or i8 %18, -56
%20 = inttoptr i64 %17 to i8*
store i8 %19, i8* %20, align 1
store i64 2, 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, 4, 1, 3 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64* %arg2, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 3, 0, 2 }
} | 0 |
BinRealVul | tun_xdp_8612 | tun_xdp | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %1 to i32
store i64 4294967274, i64* %rax.0.reg2mem
switch i32 %4, label LBL_3 [
i32 1, label LBL_1
i32 2, label LBL_2
]
LBL_1:
%5 = add i64 %2, 16
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %3, i64 %10, i64 %7)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%12 = call i64 @FUNC(i64 %3)
%13 = trunc i64 %12 to i32
%14 = add i64 %2, 24
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = icmp eq i32 %13, 0
%17 = icmp eq i1 %16, false
%18 = zext i1 %17 to i32
%19 = add i64 %2, 28
%20 = inttoptr i64 %19 to i32*
store i32 %18, i32* %20, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 0, 1, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder label LBL_3, { 1, 2, 0 }
} | 0 |
BinRealVul | gf_isom_text_get_encoded_tx3g_11893 | gf_isom_text_get_encoded_tx3g | define i64 @FUNC(i64 %arg1, i32 %arg2, i32 %arg3, i32 %arg4, i64* %arg5, i64* %arg6) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = zext i32 %arg2 to i64
%1 = call i64 @FUNC(i64 %arg1, i64 %0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 1, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%4 = add i32 %arg3, -1
%5 = inttoptr i64 %1 to i64*
%6 = load i64, i64* %5, align 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = zext i32 %4 to i64
%16 = call i64 @FUNC(i64 %14, i64 %15)
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
store i64 1, i64* %rax.0.reg2mem
br i1 %18, label LBL_2, label LBL_4
LBL_2:
%19 = inttoptr i64 %16 to i32*
%20 = load i32, i32* %19, align 4
%.off = add i32 %20, -1
%switch = icmp ult i32 %.off, 2
store i64 1, i64* %rax.0.reg2mem
br i1 %switch, label LBL_3, label LBL_4
LBL_3:
%21 = ptrtoint i64* %arg6 to i64
%22 = ptrtoint i64* %arg5 to i64
%23 = call i64 @FUNC(i64 0, i64 0, i64 1)
%24 = call i64 @FUNC(i64 %16, i64 %23, i32 %arg3, i32 %arg4)
store i64 0, i64* %arg5, align 8
%25 = bitcast i64* %arg6 to i32*
store i32 0, i32* %25, align 4
%26 = call i64 @FUNC(i64 %23, i64 %22, i64 %21)
%27 = call i64 @FUNC(i64 %23)
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 1, { 3, 0, 1, 2 }
uselistorder label LBL_4, { 3, 0, 1, 2 }
} | 1 |
BinRealVul | poly_port_9458 | poly_port | define i64 @FUNC(i32* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i32*, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_1, label LBL_10
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = ptrtoint i32* %arg1 to i64
store i32 15, i32* %sv_2, align 4
%7 = call i64 @FUNC(i64 %6)
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_5, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %6, i64 %5, i32* nonnull %sv_2)
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_5, label LBL_3
LBL_3:
%13 = ptrtoint i32* %arg3 to i64
%14 = icmp eq i32* %arg3, null
%15 = icmp eq i1 %14, false
%spec.select = select i1 %15, i64 %13, i64 ptrtoint (i64* @gv_0 to i64)
%16 = load i32, i32* %sv_2, align 4
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %6, i64 %11, i64* nonnull %sv_1, i64 %spec.select, i64 %17, i64 0)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_9, label LBL_4
LBL_4:
%21 = call i64 @FUNC(i64 %6)
%22 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_1, i64 0, i64 0), i64 %21, i64 %5, i64 %spec.select, i64 0)
br label LBL_9
LBL_5:
%23 = call i64 @FUNC(i64 %6)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %25, label LBL_6, label LBL_7
LBL_6:
%26 = bitcast i32** %sv_0 to i64*
store i64 %6, i64* %26, align 8
%27 = ptrtoint i32** %sv_0 to i64
store i64 %27, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%28 = load i32, i32* %sv_2, align 4
%29 = zext i32 %28 to i64
%30 = call i64 @FUNC(i64 %6, i64 0, i64* nonnull %sv_1, i64 %5, i64 %29, i64 %storemerge.reload)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
br i1 %32, label LBL_9, label LBL_8
LBL_8:
%33 = call i64 @FUNC(i64 %6, i64 %5)
br label LBL_9
LBL_9:
store i64 0, i64* %sv_1, align 8
br label LBL_10
LBL_10:
ret i64 0
uselistorder i64 %spec.select, { 1, 0 }
uselistorder i64 %6, { 6, 5, 7, 4, 3, 2, 1, 0 }
uselistorder i64 %5, { 2, 3, 0, 1 }
uselistorder i32* %sv_2, { 1, 2, 0, 3 }
uselistorder i64* %sv_1, { 2, 0, 1 }
uselistorder i32** %sv_0, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64*, i64, i64, i64)* @compassPort, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | sr_1d97_int_16064 | sr_1d97_int | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge7.reg2mem = alloca i32
%storemerge38.reg2mem = alloca i32
%storemerge49.reg2mem = alloca i32
%storemerge510.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%3 = ashr exact i64 %sext, 32
%sext2 = mul i64 %arg3, 4294967296
%4 = ashr exact i64 %sext2, 32
%5 = add i64 %arg2, 1
%6 = and i64 %5, 4294967295
%7 = icmp sgt i64 %4, %6
br i1 %7, label LBL_4, label LBL_1
LBL_1:
%8 = trunc i64 %3 to i32
%9 = icmp eq i32 %8, 1
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = add i64 %2, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i32 %13, 65536
%15 = ashr i32 %14, 17
store i32 %15, i32* %12, align 4
store i64 %11, i64* %rax.0.reg2mem
br label LBL_16
LBL_3:
%16 = trunc i64 %1 to i32
%17 = add i32 %16, 32768
%18 = ashr i32 %17, 16
%19 = bitcast i64* %arg1 to i32*
store i32 %18, i32* %19, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_16
LBL_4:
%20 = and i64 %4, 4294967295
%21 = and i64 %3, 4294967295
%22 = call i64 @FUNC(i64 %2, i64 %21, i64 %20)
%23 = trunc i64 %3 to i32
%24 = ashr i32 %23, 1
%25 = add nsw i32 %24, -1
%26 = trunc i64 %4 to i32
%27 = ashr i32 %26, 1
%28 = add nsw i32 %27, 1
%29 = zext i32 %28 to i64
%30 = sext i32 %25 to i64
%31 = icmp sgt i64 %30, %29
br i1 %31, label LBL_7, label LBL_5
LBL_5:
%32 = add i64 %2, -4
store i32 %25, i32* %storemerge510.reg2mem
br label LBL_6
LBL_6:
%storemerge510.reload = load i32, i32* %storemerge510.reg2mem
%33 = mul i32 %storemerge510.reload, 2
%34 = sext i32 %33 to i64
%35 = mul i64 %34, 4
%36 = add i64 %35, %2
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = add i64 %32, %35
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = or i32 %33, 1
%43 = sext i32 %42 to i64
%44 = mul i64 %43, 4
%45 = add i64 %44, %2
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = add i32 %41, 32768
%49 = add i32 %48, %47
%50 = ashr i32 %49, 16
%51 = sub i32 %38, %50
store i32 %51, i32* %37, align 4
%52 = add i32 %storemerge510.reload, 1
%53 = sext i32 %52 to i64
%54 = icmp sgt i64 %53, %29
store i32 %52, i32* %storemerge510.reg2mem
br i1 %54, label LBL_7, label LBL_6
LBL_7:
%55 = zext i32 %27 to i64
%56 = icmp sgt i64 %30, %55
br i1 %56, label LBL_10, label LBL_8
LBL_8:
%57 = add i64 %2, 8
store i32 %25, i32* %storemerge49.reg2mem
br label LBL_9
LBL_9:
%storemerge49.reload = load i32, i32* %storemerge49.reg2mem
%58 = mul i32 %storemerge49.reload, 2
%59 = or i32 %58, 1
%60 = sext i32 %59 to i64
%61 = mul i64 %60, 4
%62 = add i64 %61, %2
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = sext i32 %58 to i64
%66 = mul i64 %65, 4
%67 = add i64 %66, %2
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = add i64 %57, %66
%71 = inttoptr i64 %70 to i32*
%72 = load i32, i32* %71, align 4
%73 = add i32 %69, 32768
%74 = add i32 %73, %72
%75 = ashr i32 %74, 16
%76 = sub i32 %64, %75
store i32 %76, i32* %63, align 4
%77 = add i32 %storemerge49.reload, 1
%78 = sext i32 %77 to i64
%79 = icmp sgt i64 %78, %55
store i32 %77, i32* %storemerge49.reg2mem
br i1 %79, label LBL_10, label LBL_9
LBL_10:
%80 = sext i32 %24 to i64
%81 = icmp sgt i64 %80, %55
br i1 %81, label LBL_13, label LBL_11
LBL_11:
%82 = add i64 %2, -4
store i32 %24, i32* %storemerge38.reg2mem
br label LBL_12
LBL_12:
%storemerge38.reload = load i32, i32* %storemerge38.reg2mem
%83 = mul i32 %storemerge38.reload, 2
%84 = sext i32 %83 to i64
%85 = mul i64 %84, 4
%86 = add i64 %85, %2
%87 = inttoptr i64 %86 to i32*
%88 = load i32, i32* %87, align 4
%89 = add i64 %82, %85
%90 = inttoptr i64 %89 to i32*
%91 = load i32, i32* %90, align 4
%92 = or i32 %83, 1
%93 = sext i32 %92 to i64
%94 = mul i64 %93, 4
%95 = add i64 %94, %2
%96 = inttoptr i64 %95 to i32*
%97 = load i32, i32* %96, align 4
%98 = add i32 %91, 32768
%99 = add i32 %98, %97
%100 = ashr i32 %99, 16
%101 = add i32 %100, %88
store i32 %101, i32* %87, align 4
%102 = add i32 %storemerge38.reload, 1
%103 = sext i32 %102 to i64
%104 = icmp sgt i64 %103, %55
store i32 %102, i32* %storemerge38.reg2mem
br i1 %104, label LBL_13, label LBL_12
LBL_13:
%105 = icmp slt i64 %80, %55
store i64 %55, i64* %rax.0.reg2mem
br i1 %105, label LBL_14, label LBL_16
LBL_14:
%106 = add i64 %2, 8
store i32 %24, i32* %storemerge7.reg2mem
br label LBL_15
LBL_15:
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%107 = mul i32 %storemerge7.reload, 2
%108 = or i32 %107, 1
%109 = sext i32 %108 to i64
%110 = mul i64 %109, 4
%111 = add i64 %110, %2
%112 = inttoptr i64 %111 to i32*
%113 = load i32, i32* %112, align 4
%114 = sext i32 %107 to i64
%115 = mul i64 %114, 4
%116 = add i64 %115, %2
%117 = inttoptr i64 %116 to i32*
%118 = load i32, i32* %117, align 4
%119 = add i64 %106, %115
%120 = inttoptr i64 %119 to i32*
%121 = load i32, i32* %120, align 4
%122 = add i32 %118, 32768
%123 = add i32 %122, %121
%124 = ashr i32 %123, 16
%125 = add i32 %124, %113
store i32 %125, i32* %112, align 4
%126 = add i32 %storemerge7.reload, 1
%127 = sext i32 %126 to i64
%128 = icmp slt i64 %127, %55
store i32 %126, i32* %storemerge7.reg2mem
store i64 %55, i64* %rax.0.reg2mem
br i1 %128, label LBL_15, label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %107, { 1, 0 }
uselistorder i32 %83, { 1, 0 }
uselistorder i32 %58, { 1, 0 }
uselistorder i64 %55, { 0, 2, 1, 4, 3, 5, 7, 6 }
uselistorder i32 %33, { 1, 0 }
uselistorder i64 %29, { 1, 0 }
uselistorder i64 %3, { 2, 1, 0 }
uselistorder i64 %2, { 1, 2, 9, 3, 4, 10, 5, 6, 11, 7, 8, 12, 14, 0, 13 }
uselistorder i32* %storemerge510.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge49.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge38.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge7.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 4, 3 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | idct32_77 | idct32 | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%sv_0.0.in.reg2mem = alloca i64
%sv_1.5.reg2mem = alloca i64
%sv_2.1.in.reg2mem = alloca i64
%sv_2.06.reg2mem = alloca i32*
%indvars.iv12.reg2mem = alloca i64
%sv_1.4.reg2mem = alloca i64
%sv_1.3.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%indvars.iv15.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
store i64 31, i64* %indvars.iv15.reg2mem
br label LBL_1
LBL_1:
%indvars.iv15.reload = load i64, i64* %indvars.iv15.reg2mem
%1 = mul i64 %indvars.iv15.reload, 4
%2 = add i64 %1, %0
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = add i64 %2, -8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i32 %7, %4
store i32 %8, i32* %3, align 4
%indvars.iv.next16 = add nsw i64 %indvars.iv15.reload, -2
%9 = icmp ugt i64 %indvars.iv.next16, 2
store i64 %indvars.iv.next16, i64* %indvars.iv15.reg2mem
br i1 %9, label LBL_1, label LBL_2
LBL_2:
%10 = add i64 %0, 120
%11 = add i64 %0, 8
store i64 %10, i64* %sv_1.0.reg2mem
br label LBL_3
LBL_3:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%12 = inttoptr i64 %sv_1.0.reload to i32*
%13 = load i32, i32* %12, align 4
%14 = add i64 %sv_1.0.reload, -16
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = add i32 %16, %13
store i32 %17, i32* %12, align 4
%18 = add i64 %sv_1.0.reload, 4
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i64 %sv_1.0.reload, -12
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = add i32 %23, %20
store i32 %24, i32* %19, align 4
%25 = icmp eq i64 %14, %11
%26 = icmp eq i1 %25, false
store i64 %14, i64* %sv_1.0.reg2mem
br i1 %26, label LBL_3, label LBL_4
LBL_4:
%27 = ptrtoint i64* %arg1 to i64
%28 = add i64 %0, 112
%29 = add i64 %0, 16
store i64 %28, i64* %sv_1.1.reg2mem
br label LBL_5
LBL_5:
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%30 = inttoptr i64 %sv_1.1.reload to i32*
%31 = load i32, i32* %30, align 4
%32 = add i64 %sv_1.1.reload, -32
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = add i32 %34, %31
store i32 %35, i32* %30, align 4
%36 = add i64 %sv_1.1.reload, 4
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = add i64 %sv_1.1.reload, -28
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = add i32 %41, %38
store i32 %42, i32* %37, align 4
%43 = add i64 %sv_1.1.reload, 8
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = add i64 %sv_1.1.reload, -24
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = add i32 %48, %45
store i32 %49, i32* %44, align 4
%50 = add i64 %sv_1.1.reload, 12
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = add i64 %sv_1.1.reload, -20
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = add i32 %55, %52
store i32 %56, i32* %51, align 4
%57 = icmp eq i64 %32, %29
%58 = icmp eq i1 %57, false
store i64 %32, i64* %sv_1.1.reg2mem
br i1 %58, label LBL_5, label LBL_6
LBL_6:
%59 = add nsw i64 %0, 64
store i64 %0, i64* %sv_1.2.reg2mem
br label LBL_7
LBL_7:
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%60 = add i64 %sv_1.2.reload, 12
%61 = inttoptr i64 %60 to i32*
%62 = load i32, i32* %61, align 4
%63 = sub i32 0, %62
store i32 %63, i32* %61, align 4
%64 = add i64 %sv_1.2.reload, 24
%65 = inttoptr i64 %64 to i32*
%66 = load i32, i32* %65, align 4
%67 = sub i32 0, %66
store i32 %67, i32* %65, align 4
%68 = add i64 %sv_1.2.reload, 44
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = sub i32 0, %70
store i32 %71, i32* %69, align 4
%72 = add i64 %sv_1.2.reload, 48
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = sub i32 0, %74
store i32 %75, i32* %73, align 4
%76 = add i64 %sv_1.2.reload, 52
%77 = inttoptr i64 %76 to i32*
%78 = load i32, i32* %77, align 4
%79 = sub i32 0, %78
store i32 %79, i32* %77, align 4
%80 = add i64 %sv_1.2.reload, 60
%81 = inttoptr i64 %80 to i32*
%82 = load i32, i32* %81, align 4
%83 = sub i32 0, %82
store i32 %83, i32* %81, align 4
%84 = add i64 %sv_1.2.reload, 64
%85 = icmp eq i64 %sv_1.2.reload, %59
%86 = icmp eq i1 %85, false
store i64 %84, i64* %sv_1.2.reg2mem
br i1 %86, label LBL_7, label LBL_8
LBL_8:
%87 = add nsw i64 %0, 28
store i64 %0, i64* %sv_1.3.reg2mem
br label LBL_9
LBL_9:
%sv_1.3.reload = load i64, i64* %sv_1.3.reg2mem
%88 = inttoptr i64 %sv_1.3.reload to i32*
%89 = load i32, i32* %88, align 4
%90 = add i64 %sv_1.3.reload, 32
%91 = inttoptr i64 %90 to i32*
%92 = load i32, i32* %91, align 4
%93 = sub i32 %89, %92
store i32 %93, i32* %91, align 4
%94 = add i64 %sv_1.3.reload, 64
%95 = add i32 %92, %89
%96 = inttoptr i64 %94 to i32*
store i32 %95, i32* %96, align 4
%97 = add i64 %sv_1.3.reload, 96
%98 = inttoptr i64 %97 to i32*
store i32 %89, i32* %98, align 4
%99 = add i64 %sv_1.3.reload, 4
%100 = icmp eq i64 %sv_1.3.reload, %87
%101 = icmp eq i1 %100, false
store i64 %99, i64* %sv_1.3.reg2mem
br i1 %101, label LBL_9, label LBL_10
LBL_10:
%102 = add nsw i64 %0, 12
store i64 %0, i64* %sv_1.4.reg2mem
br label LBL_11
LBL_11:
%sv_1.4.reload = load i64, i64* %sv_1.4.reg2mem
%103 = add i64 %sv_1.4.reload, 112
%104 = inttoptr i64 %103 to i32*
%105 = load i32, i32* %104, align 4
%106 = mul i32 %105, 2
%107 = inttoptr i64 %sv_1.4.reload to i32*
%108 = load i32, i32* %107, align 4
%109 = sub i32 %108, %106
store i32 %109, i32* %104, align 4
%110 = load i32, i32* %107, align 4
%111 = add i32 %110, %106
store i32 %111, i32* %107, align 4
%112 = add i64 %sv_1.4.reload, 16
%113 = inttoptr i64 %112 to i32*
%114 = load i32, i32* %113, align 4
%115 = mul i32 %114, 3
%116 = add i64 %sv_1.4.reload, 96
%117 = inttoptr i64 %116 to i32*
%118 = load i32, i32* %117, align 4
%119 = sub i32 %118, %115
store i32 %119, i32* %113, align 4
%120 = load i32, i32* %117, align 4
%121 = add i32 %120, %115
store i32 %121, i32* %117, align 4
%122 = add i64 %sv_1.4.reload, 80
%123 = inttoptr i64 %122 to i32*
%124 = load i32, i32* %123, align 4
%125 = mul i32 %124, 4
%126 = add i64 %sv_1.4.reload, 32
%127 = inttoptr i64 %126 to i32*
%128 = load i32, i32* %127, align 4
%129 = sub i32 %128, %125
store i32 %129, i32* %123, align 4
%130 = load i32, i32* %127, align 4
%131 = add i32 %130, %125
store i32 %131, i32* %127, align 4
%132 = add i64 %sv_1.4.reload, 48
%133 = inttoptr i64 %132 to i32*
%134 = load i32, i32* %133, align 4
%135 = mul i32 %134, 5
%136 = add i64 %sv_1.4.reload, 64
%137 = inttoptr i64 %136 to i32*
%138 = load i32, i32* %137, align 4
%139 = sub i32 %138, %135
store i32 %139, i32* %133, align 4
%140 = load i32, i32* %137, align 4
%141 = add i32 %140, %135
store i32 %141, i32* %137, align 4
%142 = add i64 %sv_1.4.reload, 4
%143 = icmp eq i64 %sv_1.4.reload, %102
%144 = icmp eq i1 %143, false
store i64 %142, i64* %sv_1.4.reg2mem
br i1 %144, label LBL_11, label LBL_12
LBL_12:
%145 = add i64 %0, 124
%146 = add i64 %0, 116
store i64 0, i64* %indvars.iv12.reg2mem
store i32* bitcast (i64* @gv_0 to i32*), i32** %sv_2.06.reg2mem
br label LBL_13
LBL_13:
%sv_2.06.reload = load i32*, i32** %sv_2.06.reg2mem
%indvars.iv12.reload = load i64, i64* %indvars.iv12.reg2mem
%147 = mul i64 %indvars.iv12.reload, 16
%148 = sub i64 %10, %147
%149 = inttoptr i64 %148 to i32*
%150 = load i32, i32* %149, align 4
%151 = load i32, i32* %sv_2.06.reload, align 4
%152 = mul i32 %151, %150
%153 = add i64 %147, %0
%154 = inttoptr i64 %153 to i32*
%155 = load i32, i32* %154, align 4
%156 = sub i32 %155, %152
store i32 %156, i32* %149, align 4
%157 = load i32, i32* %154, align 4
%158 = add i32 %157, %152
store i32 %158, i32* %154, align 4
%159 = or i64 %147, 8
%160 = add i64 %159, %0
%161 = inttoptr i64 %160 to i32*
%162 = load i32, i32* %161, align 4
%163 = ptrtoint i32* %sv_2.06.reload to i64
%164 = add i64 %163, 4
%165 = inttoptr i64 %164 to i32*
%166 = load i32, i32* %165, align 4
%167 = mul i32 %166, %162
%168 = sub i64 %28, %147
%169 = inttoptr i64 %168 to i32*
%170 = load i32, i32* %169, align 4
%171 = sub i32 %170, %167
store i32 %171, i32* %161, align 4
%172 = load i32, i32* %169, align 4
%173 = add i32 %172, %167
store i32 %173, i32* %169, align 4
%174 = sub i64 %145, %147
%175 = inttoptr i64 %174 to i32*
%176 = load i32, i32* %175, align 4
%177 = load i32, i32* %sv_2.06.reload, align 4
%178 = mul i32 %177, %176
%179 = or i64 %147, 4
%180 = add i64 %179, %0
%181 = inttoptr i64 %180 to i32*
%182 = load i32, i32* %181, align 4
%183 = sub i32 %182, %178
store i32 %183, i32* %175, align 4
%184 = load i32, i32* %181, align 4
%185 = add i32 %184, %178
store i32 %185, i32* %181, align 4
%186 = or i64 %147, 12
%187 = add i64 %186, %0
%188 = inttoptr i64 %187 to i32*
%189 = load i32, i32* %188, align 4
%190 = load i32, i32* %165, align 4
%191 = mul i32 %190, %189
%192 = sub i64 %146, %147
%193 = inttoptr i64 %192 to i32*
%194 = load i32, i32* %193, align 4
%195 = sub i32 %194, %191
store i32 %195, i32* %188, align 4
%196 = load i32, i32* %193, align 4
%197 = add i32 %196, %191
store i32 %197, i32* %193, align 4
%198 = add i64 %163, 8
%199 = inttoptr i64 %198 to i32*
%indvars.iv.next13 = add nuw nsw i64 %indvars.iv12.reload, 1
%exitcond14 = icmp eq i64 %indvars.iv.next13, 4
store i64 %indvars.iv.next13, i64* %indvars.iv12.reg2mem
store i32* %199, i32** %sv_2.06.reg2mem
br i1 %exitcond14, label LBL_14, label LBL_13
LBL_14:
%200 = add i64 %0, 4
store i64 %198, i64* %sv_2.1.in.reg2mem
store i64 %10, i64* %sv_1.5.reg2mem
store i64 %200, i64* %sv_0.0.in.reg2mem
br label LBL_15
LBL_15:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%sv_1.5.reload = load i64, i64* %sv_1.5.reg2mem
%sv_2.1.in.reload = load i64, i64* %sv_2.1.in.reg2mem
%sv_2.1 = inttoptr i64 %sv_2.1.in.reload to i32*
%sv_0.0 = inttoptr i64 %sv_0.0.in.reload to i32*
%201 = load i32, i32* %sv_0.0, align 4
%202 = load i32, i32* %sv_2.1, align 4
%203 = mul i32 %202, %201
%204 = inttoptr i64 %sv_1.5.reload to i32*
%205 = load i32, i32* %204, align 4
%206 = sub i32 %205, %203
store i32 %206, i32* %sv_0.0, align 4
%207 = load i32, i32* %204, align 4
%208 = add i32 %207, %203
store i32 %208, i32* %204, align 4
%209 = add i64 %sv_1.5.reload, -8
%210 = add i64 %sv_0.0.in.reload, 8
%211 = add i64 %sv_2.1.in.reload, 4
%212 = icmp ult i64 %209, %0
%213 = icmp eq i1 %212, false
store i64 %211, i64* %sv_2.1.in.reg2mem
store i64 %209, i64* %sv_1.5.reg2mem
store i64 %210, i64* %sv_0.0.in.reg2mem
br i1 %213, label LBL_15, label LBL_16
LBL_16:
%214 = urem i32 %arg4, 32
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_17
LBL_17:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%215 = mul i64 %indvars.iv.reload, 4
%216 = add i64 %215, ptrtoint (i32** @gv_1 to i64)
%217 = inttoptr i64 %216 to i32*
%218 = load i32, i32* %217, align 4
%219 = sext i32 %218 to i64
%220 = mul i64 %219, 4
%221 = add i64 %220, %0
%222 = inttoptr i64 %221 to i32*
%223 = load i32, i32* %222, align 4
%224 = add i64 %215, %27
%225 = shl i32 %223, %214
%226 = inttoptr i64 %224 to i32*
store i32 %225, i32* %226, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 32
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_18, label LBL_17
LBL_18:
%rsi.0.le = zext i32 %225 to i64
ret i64 %rsi.0.le
uselistorder i64 %215, { 1, 0 }
uselistorder i32* %204, { 1, 0, 2 }
uselistorder i64 %sv_2.1.in.reload, { 1, 0 }
uselistorder i64 %sv_1.5.reload, { 1, 0 }
uselistorder i64 %sv_0.0.in.reload, { 1, 0 }
uselistorder i32* %193, { 1, 0, 2 }
uselistorder i32* %181, { 1, 0, 2 }
uselistorder i32* %169, { 1, 0, 2 }
uselistorder i32* %154, { 1, 0, 2 }
uselistorder i64 %147, { 7, 2, 1, 6, 5, 0, 3, 4 }
uselistorder i32* %137, { 1, 0, 2 }
uselistorder i32* %127, { 1, 0, 2 }
uselistorder i32 %125, { 1, 0 }
uselistorder i32* %117, { 1, 0, 2 }
uselistorder i32* %107, { 1, 0, 2 }
uselistorder i32 %106, { 1, 0 }
uselistorder i64 %sv_1.4.reload, { 9, 8, 6, 7, 4, 5, 2, 3, 0, 1 }
uselistorder i32 %89, { 1, 0, 2 }
uselistorder i64 %sv_1.3.reload, { 5, 4, 3, 2, 0, 1 }
uselistorder i64 %sv_1.2.reload, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %sv_1.1.reload, { 6, 7, 4, 5, 2, 3, 0, 1 }
uselistorder i64 %28, { 1, 0 }
uselistorder i64 %sv_1.0.reload, { 2, 3, 0, 1 }
uselistorder i64 %10, { 0, 2, 1 }
uselistorder i64 %0, { 3, 14, 15, 5, 6, 8, 9, 4, 7, 0, 11, 1, 12, 2, 13, 17, 16, 19, 18, 10 }
uselistorder i64* %indvars.iv15.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.1.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.2.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.3.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.4.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv12.reg2mem, { 2, 0, 1 }
uselistorder i32** %sv_2.06.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.1.in.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.5.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.in.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 64, { 1, 2, 3, 0 }
uselistorder i64 8, { 2, 1, 0, 3, 4 }
uselistorder i64 -8, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | jbd2_journal_lock_updates_12516 | jbd2_journal_lock_updates | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = add i64 %0, 84
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i32 %5, 1
store i32 %6, i32* %4, align 4
%7 = add i64 %0, 80
%8 = call i64 @FUNC(i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 %0)
%12 = call i64 @FUNC(i64 %7)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = zext i1 %14 to i64
%16 = call i64 @FUNC(i64 %15)
%17 = call i64 @FUNC(i64 %0)
br label LBL_2
LBL_2:
%18 = call i64 @FUNC(i64 %0)
%19 = call i64 @FUNC(i64 %0)
%20 = add i64 %0, 40
%21 = call i64 @FUNC(i64 %20)
ret i64 %21
uselistorder i64 %0, { 4, 3, 2, 0, 1, 5, 6, 7, 8 }
uselistorder i64 (i64)* @write_unlock, { 1, 0 }
uselistorder i64 (i64)* @atomic_read, { 1, 0 }
uselistorder i64 (i64)* @write_lock, { 1, 0 }
} | 1 |
BinRealVul | rtadv_read_13615 | rtadv_read | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
store i32 0, i32* %sv_3, align 4
store i32 -1, i32* %sv_2, align 4
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = inttoptr i64 %1 to i64*
store i64 0, i64* %4, align 8
%5 = call i64 @FUNC(i64 %1, i64 1, i32 %3)
%6 = and i64 %2, 4294967295
%7 = call i64 @FUNC(i64 %6, i64* nonnull %sv_0, i64 1024, i64* nonnull %sv_1, i32* nonnull %sv_3, i32* nonnull %sv_2)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = ptrtoint i64* %sv_1 to i64
%12 = ptrtoint i32* %sv_3 to i64
%13 = ptrtoint i32* %sv_2 to i64
%14 = call i32* @__errno_location()
%15 = load i32, i32* %14, align 4
%16 = zext i32 %15 to i64
%17 = call i64 @FUNC(i64 %16)
%18 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0), i64 %17, i64 1024, i64 %11, i64 %12, i64 %13)
%19 = and i64 %7, 4294967295
store i64 %19, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%20 = add i64 %1, 8
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = load i32, i32* %sv_2, align 4
%24 = load i32, i32* %sv_3, align 4
%25 = zext i32 %22 to i64
%26 = call i64 @FUNC(i64* nonnull %sv_0, i32 %8, i32 %24, i32 %23, i64 %25)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %sv_3, { 1, 2, 0, 3 }
uselistorder i32* %sv_2, { 1, 2, 0, 3 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 4294967295, { 2, 3, 1, 0 }
uselistorder i32 0, { 1, 0 }
} | 0 |
BinRealVul | qobject_to_qfloat_1267 | qobject_to_qfloat | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = icmp eq i32* %arg1, null
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = ptrtoint i32* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 1
%spec.select = select i1 %4, i64 %1, i64 0
ret i64 %spec.select
LBL_2:
ret i64 0
} | 0 |
BinRealVul | bnxt_dump_tx_sw_state_17654 | bnxt_dump_tx_sw_state | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i64 %2, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = trunc i64 %1 to i32
%10 = add i64 %2, 16
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = zext i32 %5 to i64
%16 = zext i32 %8 to i64
%17 = call i64 @FUNC(i64 %14, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_0, i64 0, i64 0), i32 %5, i32 %9, i64 %16, i64 %15)
ret i64 %17
uselistorder i32 %5, { 1, 0 }
} | 1 |
BinRealVul | find_dump_kind_9384 | find_dump_kind | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i16*, align 8
%sv_2 = alloca i64, align 8
%4 = trunc i64 %1 to i32
%5 = add i32 %4, -4
%6 = add i64 %2, 4
%7 = call i64 @FUNC(i64* nonnull %sv_2, i64 10, i64 %6, i32 %5)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_1, label LBL_5
LBL_1:
%11 = load i64, i64* %sv_2, align 8
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_2, label LBL_5
LBL_2:
%14 = inttoptr i64 %11 to i16*
%15 = load i16, i16* %14, align 2
%16 = zext i16 %15 to i32
%17 = add nsw i32 %16, -1
%18 = and i32 %17, -4
%19 = add i64 %11, 4
%20 = bitcast i16** %sv_1 to i64*
%21 = call i64 @FUNC(i64* nonnull %20, i64 10, i64 %19, i32 %18)
%22 = trunc i64 %21 to i32
%23 = icmp slt i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_3, label LBL_5
LBL_3:
%25 = load i16*, i16** %sv_1, align 8
%26 = icmp eq i16* %25, null
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_4, label LBL_5
LBL_4:
%28 = load i16, i16* %25, align 2
%29 = zext i16 %28 to i32
%30 = add nsw i32 %29, -4
%31 = ptrtoint i16* %25 to i64
%32 = add i64 %31, 4
%33 = call i64 @FUNC(i64* nonnull %sv_0, i64 10, i64 %32, i32 %30)
%34 = trunc i64 %33 to i32
%35 = icmp slt i32 %34, 0
%36 = icmp eq i1 %35, false
%37 = add i64 %3, 4
%spec.select = select i1 %36, i64 %37, i64 0
ret i64 %spec.select
LBL_5:
ret i64 0
uselistorder i16* %25, { 1, 0, 2 }
uselistorder i64* %sv_2, { 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64*, i64, i64, i32)* @rtattr_parse, { 2, 1, 0 }
uselistorder i64 4, { 1, 2, 3, 0 }
uselistorder i32 -4, { 0, 2, 1 }
} | 0 |
BinRealVul | increment_qlen_12062 | increment_qlen | 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 = 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
%6 = call i64 @FUNC(i64 %5, i64 0, i64 %0)
br label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %1, i64 1)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
store i64 %7, i64* %rax.0.reg2mem
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = and i64 %7, 4294967295
%11 = call i64 @FUNC(i64 %10, i64 1, i64 %0)
store i64 %11, 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 %7, { 1, 0, 2 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @increment_one_qlen, { 1, 0 }
uselistorder i64 (i64, i64)* @sfb_hash, { 1, 0 }
} | 1 |
BinRealVul | xar_hash_check_5758 | xar_hash_check | define i64 @FUNC(i64 %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i32
%0 = icmp ne i64* %arg2, null
%1 = icmp eq i64* %arg3, null
%2 = icmp eq i1 %1, false
%or.cond = icmp eq i1 %0, %2
store i64 1, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_4
LBL_1:
%3 = trunc i64 %arg1 to i32
store i32 20, i32* %storemerge.reg2mem
store i64 1, i64* %rax.0.reg2mem
switch i32 %3, label LBL_4 [
i32 1, label LBL_3
i32 2, label LBL_2
]
LBL_2:
store i32 16, i32* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%4 = call i32 @memcmp(i64* nonnull %arg2, i64* %arg3, i32 %storemerge.reload)
%5 = sext i32 %4 to i64
store i64 %5, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder label LBL_4, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | qemu_popen_cmd_16181 | qemu_popen_cmd | define i64 @FUNC(i8* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = icmp eq i64 %arg2, 0
br i1 %2, label LBL_3, label LBL_1
LBL_1:
%3 = trunc i64 %1 to i8
%4 = icmp ne i8 %3, 114
%5 = icmp eq i8 %3, 119
%6 = icmp eq i1 %5, false
%or.cond = icmp eq i1 %4, %6
br i1 %or.cond, label LBL_3, label LBL_2
LBL_2:
%7 = add i64 %arg2, 1
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = icmp eq i8 %9, 0
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%12 = call i32 @fwrite(i64* bitcast ([44 x i8]* @gv_1 to i64*), i32 1, i32 43, %_IO_FILE* %11)
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_4:
%13 = inttoptr i64 %arg2 to i8*
%14 = call %_IO_FILE* @popen(i8* %arg1, i8* %13)
%15 = icmp eq %_IO_FILE* %14, null
%16 = icmp eq i1 %15, false
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_5, label LBL_8
LBL_5:
%17 = bitcast i64* %rsi to i8*
%18 = ptrtoint %_IO_FILE* %14 to i64
%19 = call i64 @FUNC(i64 16)
%20 = inttoptr i64 %19 to i64*
store i64 %18, i64* %20, align 8
%21 = load i8, i8* %17, align 8
%22 = icmp eq i8 %21, 114
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_7, label LBL_6
LBL_6:
%24 = call i64 @FUNC(i64 %19, i64* nonnull @gv_2)
%25 = add i64 %19, 8
%26 = inttoptr i64 %25 to i64*
store i64 %24, i64* %26, align 8
store i64 %24, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%27 = call i64 @FUNC(i64 %19, i64* nonnull @gv_3)
%28 = add i64 %19, 8
%29 = inttoptr i64 %28 to i64*
store i64 %27, i64* %29, align 8
store i64 %27, 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 %19, { 1, 0, 2, 3, 4 }
uselistorder %_IO_FILE* %14, { 1, 0 }
uselistorder i8 %3, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64 (i64, i64*)* @qemu_fopen_ops, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i32 1, { 2, 3, 1, 0 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder label LBL_8, { 1, 0, 2, 3 }
uselistorder label LBL_3, { 1, 0, 2 }
} | 1 |
BinRealVul | ExprResolveBoolean_13423 | ExprResolveBoolean | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = trunc i64 %3 to i32
%7 = and i64 %3, 4294967295
store i64 %7, i64* @1, align 8
switch i32 %6, label LBL_19 [
i32 0, label LBL_1
i32 1, label LBL_4
i32 2, label LBL_14
i32 3, label LBL_15
i32 4, label LBL_15
i32 5, label LBL_18
i32 6, label LBL_18
i32 7, label LBL_18
i32 8, label LBL_18
i32 9, label LBL_18
i32 10, label LBL_18
i32 11, label LBL_18
]
LBL_1:
%8 = add i64 %arg2, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = zext i32 %10 to i64
%13 = call i64 @FUNC(i64 %12)
%14 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_0, i64 0, i64 0), i64 %13, i64 %5, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_3:
%15 = add i64 %arg2, 8
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = inttoptr i64 %arg3 to i8*
store i8 %17, i8* %18, align 1
store i64 1, i64* %rax.0.reg2mem
br label LBL_20
LBL_4:
%19 = add i64 %arg2, 8
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i64 @FUNC(i64 %arg1, i64 %21)
%23 = icmp eq i64 %22, 0
br i1 %23, label LBL_13, label LBL_5
LBL_5:
%24 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%25 = trunc i64 %24 to i8
%26 = icmp eq i8 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_8, label LBL_6
LBL_6:
%28 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0))
%29 = trunc i64 %28 to i8
%30 = icmp eq i8 %29, 0
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_8, label LBL_7
LBL_7:
%32 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_3, i64 0, i64 0))
%33 = trunc i64 %32 to i8
%34 = icmp eq i8 %33, 0
br i1 %34, label LBL_9, label LBL_8
LBL_8:
%35 = inttoptr i64 %arg3 to i8*
store i8 1, i8* %35, align 1
store i64 1, i64* %rax.0.reg2mem
br label LBL_20
LBL_9:
%36 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0))
%37 = trunc i64 %36 to i8
%38 = icmp eq i8 %37, 0
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_12, label LBL_10
LBL_10:
%40 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_5, i64 0, i64 0))
%41 = trunc i64 %40 to i8
%42 = icmp eq i8 %41, 0
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_12, label LBL_11
LBL_11:
%44 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_6, i64 0, i64 0))
%45 = trunc i64 %44 to i8
%46 = icmp eq i8 %45, 0
br i1 %46, label LBL_13, label LBL_12
LBL_12:
%47 = inttoptr i64 %arg3 to i8*
store i8 0, i8* %47, align 1
store i64 1, i64* %rax.0.reg2mem
br label LBL_20
LBL_13:
%48 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_7, i64 0, i64 0), i64 %22, i64 %5, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_14:
%49 = add i64 %arg2, 16
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = call i64 @FUNC(i64 %arg1, i64 %51)
%53 = add i64 %arg2, 8
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = call i64 @FUNC(i64 %arg1, i64 %55)
%57 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_8, i64 0, i64 0), i64 %56, i64 %52, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_15:
%58 = add i64 %arg2, 8
%59 = inttoptr i64 %58 to i64*
%60 = load i64, i64* %59, align 8
%61 = call i64 @FUNC(i64 %arg1, i64 %60, i64 %arg3)
%62 = trunc i64 %61 to i32
%63 = icmp eq i32 %62, 0
%64 = icmp eq i1 %63, false
%65 = icmp eq i1 %64, false
br i1 %65, label LBL_17, label LBL_16
LBL_16:
%66 = trunc i64 %4 to i8
%67 = icmp eq i8 %66, 0
%68 = zext i1 %67 to i8
%69 = inttoptr i64 %arg3 to i8*
store i8 %68, i8* %69, align 1
br label LBL_17
LBL_17:
%70 = zext i1 %64 to i64
store i64 %70, i64* %rax.0.reg2mem
br label LBL_20
LBL_18:
%71 = call i64 @FUNC(i64 %7)
%72 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_9, i64 0, i64 0), i64 %71, i64 %5, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_19:
%73 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_10, i64 0, i64 0), i32 %6, i64 %5, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_20:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %22, { 5, 0, 1, 2, 3, 4, 6, 7 }
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %5, { 0, 3, 2, 1 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 0, 4, 3, 2, 1 }
uselistorder i64 %1, { 0, 4, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 9, 8, 7, 5, 6, 4, 3 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i8 0, { 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1 }
uselistorder i64 (i64, i8*)* @istreq, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @xkb_atom_text, { 2, 1, 0 }
uselistorder i64 1, { 1, 2, 0, 3 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @log_err, { 3, 2, 1, 0 }
uselistorder i64 %arg3, { 3, 4, 1, 2, 0 }
uselistorder i64 %arg2, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 8, 7, 6, 5, 4, 3, 1, 2, 0 }
} | 0 |
BinRealVul | perf_yield_676 | perf_yield | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i32, align 4
store i32 100000000, i32* %sv_0, align 4
%0 = call i64 @FUNC(i64 4198820, i32* nonnull %sv_0)
%1 = call i64 @FUNC()
%2 = load i32, i32* %sv_0, align 4
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = call i64 @FUNC(i64 %0)
%6 = load i32, i32* %sv_0, align 4
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_1, label LBL_2
LBL_2:
%9 = call i128 @FUNC()
%10 = call i64 @__asm_movq.1(i128 %9)
%11 = call i128 @FUNC(i64 %10)
%12 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i64 100000000)
ret i64 %12
uselistorder i32* %sv_0, { 2, 0, 1, 3 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder i32 1, { 4, 1, 0, 3, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
reposvul_c_test | rbuf_alloc_62 | rbuf_alloc | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 1, i64* %storemerge.reg2mem
br i1 %1, label LBL_4, label LBL_1
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 24
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7)
store i64 %8, i64* %arg1, align 8
%9 = icmp eq i64 %7, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %2)
%12 = load i64, i64* %4, align 8
%13 = add i64 %12, 8
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = add i32 %15, 1
store i32 %16, i32* %14, align 4
%17 = call i64 @FUNC(i64 %2)
store i64 0, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
%18 = add i64 %2, 8
%19 = inttoptr i64 %18 to i64*
store i64 1024, i64* %19, align 8
%20 = add i64 %2, 16
%21 = inttoptr i64 %20 to i64*
store i64 %7, i64* %21, align 8
store i64 1, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %2, { 1, 2, 0, 3, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 0 |
BinRealVul | amdgpu_ttm_io_mem_reserve_18014 | amdgpu_ttm_io_mem_reserve | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %1, 4294967296
%4 = ashr exact i64 %sext, 30
%5 = add i64 %4, %3
%6 = call i64 @FUNC(i64 %3)
%7 = add i64 %2, 16
%8 = inttoptr i64 %7 to i64*
store i64 0, i64* %8, align 8
%9 = add i64 %2, 24
%10 = inttoptr i64 %9 to i64*
store i64 0, i64* %10, align 8
%11 = add i64 %2, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = mul i32 %13, 4096
%15 = sext i32 %14 to i64
%16 = add i64 %2, 32
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
%18 = add i64 %2, 40
%19 = inttoptr i64 %18 to i64*
store i64 0, i64* %19, align 8
%20 = add i64 %2, 48
%21 = inttoptr i64 %20 to i32*
store i32 0, i32* %21, align 4
%22 = inttoptr i64 %5 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
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %26, label LBL_1, label LBL_8
LBL_1:
%27 = bitcast i64* %rsi to i32*
%28 = load i32, i32* %27, align 8
%29 = icmp eq i32 %28, 2
br i1 %29, label LBL_3, label LBL_2
LBL_2:
%switch = icmp ult i32 %28, 2
%spec.select = select i1 %switch, i64 0, i64 4294967274
ret i64 %spec.select
LBL_3:
%30 = add i64 %2, 8
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = mul i32 %32, 4096
%34 = sext i32 %33 to i64
store i64 %34, i64* %10, align 8
%35 = load i64, i64* %17, align 8
%36 = add i64 %35, %34
%37 = inttoptr i64 %6 to i64*
%38 = load i64, i64* %37, align 8
%39 = icmp ugt i64 %36, %38
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %39, label LBL_8, label LBL_4
LBL_4:
%40 = add i64 %6, 8
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
store i64 %42, i64* %19, align 8
store i32 1, i32* %21, align 4
%43 = add i64 %2, 56
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = urem i32 %45, 2
%47 = icmp eq i32 %46, 0
%48 = load i64, i64* %17, align 8
%49 = load i64, i64* %19, align 8
%50 = load i64, i64* %10, align 8
%51 = add i64 %50, %49
br i1 %47, label LBL_6, label LBL_5
LBL_5:
%52 = call i64 @FUNC(i64 %51, i64 %48)
store i64 %52, i64* %storemerge.reg2mem
br label LBL_7
LBL_6:
%53 = call i64 @FUNC(i64 %51, i64 %48)
store i64 %53, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
store i64 %storemerge.reload, i64* %8, align 8
%54 = load i64, i64* %19, align 8
%55 = and i64 %54, 4294967295
%56 = add i64 %6, 16
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = inttoptr i64 %58 to i64*
%60 = load i64, i64* %59, align 8
%61 = inttoptr i64 %60 to i64*
%62 = load i64, i64* %61, align 8
%63 = add i64 %62, %55
store i64 %63, i64* %19, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %51, { 1, 0 }
uselistorder i64 %48, { 1, 0 }
uselistorder i64* %19, { 1, 0, 2, 3, 4 }
uselistorder i64 %6, { 0, 2, 1 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 0, 1, 2, 3, 5, 4, 6, 7 }
uselistorder i64 4294967274, { 0, 2, 1 }
uselistorder i32 2, { 0, 2, 3, 1 }
} | 1 |
BinRealVul | get_pci_config_device_14969 | get_pci_config_device | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = ptrtoint i64* %sv_0 to i64
%2 = add i64 %arg3, 15
%3 = udiv i64 %2, 16
%4 = mul i64 %3, 16
%5 = sub i64 %1, %4
%6 = call i64 @FUNC(i64 %0, i64 %5, i64 %arg3)
store i32 0, i32* %storemerge1.reg2mem
br label LBL_1
LBL_1:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%7 = sext i32 %storemerge1.reload to i64
%8 = icmp ult i64 %7, %arg3
%9 = add i32 %storemerge1.reload, 1
store i32 %9, i32* %storemerge1.reg2mem
br i1 %8, label LBL_1, label LBL_2
LBL_2:
%10 = ptrtoint i64* %arg2 to i64
%11 = inttoptr i64 %5 to i64*
%12 = trunc i64 %arg3 to i32
%13 = call i64* @memcpy(i64* %11, i64* %11, i32 %12)
%14 = call i64 @FUNC(i64 %10)
ret i64 0
uselistorder i32 %storemerge1.reload, { 1, 0 }
uselistorder i32* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64 %arg3, { 1, 0, 2, 3 }
} | 1 |
BinRealVul | vtd_class_init_17132 | vtd_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 4198662, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %2, align 8
%3 = load i64, i64* @gv_1, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
store i64 %3, i64* %5, align 8
%6 = add i64 %0, 24
%7 = inttoptr i64 %6 to i8*
store i8 0, i8* %7, align 1
store i64 4198669, i64* %arg1, align 8
store i64 4198676, i64* %2, align 8
ret i64 %0
} | 1 |
BinRealVul | gf_m2ts_sync_5876 | gf_m2ts_sync | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i32
%sv_0.03.in.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = icmp eq i32 %1, 0
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = trunc i64 %0 to i8
%4 = icmp eq i8 %3, 71
%5 = icmp eq i1 %4, false
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %5, label LBL_2, label LBL_14
LBL_2:
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %9, label LBL_14, label LBL_3
LBL_3:
%10 = zext i32 %8 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%11 = add nuw nsw i64 %indvars.iv.reload, 188
%12 = icmp ult i64 %11, %10
store i32 %8, i32* %rax.0.shrunk.reg2mem
br i1 %12, label LBL_5, label LBL_14
LBL_5:
%13 = add i64 %indvars.iv.reload, %0
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = icmp eq i8 %15, 71
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_7, label LBL_6
LBL_6:
%18 = add i64 %11, %0
%19 = inttoptr i64 %18 to i8*
%20 = load i8, i8* %19, align 1
%21 = icmp eq i8 %20, 71
store i64 %indvars.iv.reload, i64* %sv_0.03.in.reg2mem
br i1 %21, label LBL_12, label LBL_7
LBL_7:
%22 = add nuw nsw i64 %indvars.iv.reload, 192
%23 = icmp ult i64 %22, %10
store i32 %8, i32* %rax.0.shrunk.reg2mem
br i1 %23, label LBL_8, label LBL_14
LBL_8:
br i1 %17, label LBL_11, label LBL_9
LBL_9:
%24 = add i64 %22, %0
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = icmp eq i8 %26, 71
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_11, label LBL_10
LBL_10:
%29 = add i64 %0, 12
%30 = inttoptr i64 %29 to i32*
store i32 1, i32* %30, align 4
store i64 %indvars.iv.reload, i64* %sv_0.03.in.reg2mem
br label LBL_12
LBL_11:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%31 = icmp ult i64 %indvars.iv.next, %10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %indvars.iv.next, i64* %sv_0.03.in.reg2mem
br i1 %31, label LBL_4, label LBL_12
LBL_12:
%sv_0.03.in.reload = load i64, i64* %sv_0.03.in.reg2mem
%sv_0.03 = trunc i64 %sv_0.03.in.reload to i32
%32 = icmp eq i32 %sv_0.03, 0
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %32, label LBL_14, label LBL_13
LBL_13:
%33 = and i64 %sv_0.03.in.reload, 4294967295
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i64 %33)
store i32 %sv_0.03, i32* %rax.0.shrunk.reg2mem
br label LBL_14
LBL_14:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i64 %sv_0.03.in.reload, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 2, 1, 3, 0, 5, 4 }
uselistorder i64 %0, { 4, 0, 1, 2, 5, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.03.in.reg2mem, { 0, 1, 3, 2 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 5, 4, 1, 2, 3, 6 }
uselistorder i32 0, { 1, 4, 0, 3, 2, 5 }
uselistorder label LBL_14, { 4, 3, 0, 1, 2, 5 }
uselistorder label LBL_12, { 1, 2, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | vm_completion_17060 | vm_completion | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%.reg2mem8 = alloca i64
%storemerge4.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = inttoptr i64 %arg2 to i8*
%2 = call i32 @strlen(i8* %1)
%3 = sext i32 %2 to i64
%4 = call i64 @FUNC(i64 %0, i64 %3)
%5 = call i64 @FUNC(i64 0, i64* nonnull %sv_1)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 %5, i64* %.reg2mem
store i64 %5, i64* %.lcssa.reg2mem
br i1 %7, label LBL_1, label LBL_13
LBL_1:
%.reload = load i64, i64* %.reg2mem
%8 = load i64, i64* %sv_1, align 8
%9 = call i64 @FUNC(i64 %8)
%10 = call i64 @FUNC(i64 %9)
%11 = load i64, i64* %sv_1, align 8
%12 = call i64 @FUNC(i64 %11)
%13 = trunc i64 %12 to i8
%14 = icmp eq i8 %13, 0
br i1 %14, label LBL_2, label LBL_3
LBL_2:
%15 = call i64 @FUNC(i64 %9)
br label LBL_12
LBL_3:
%16 = load i64, i64* %sv_1, align 8
%17 = call i64 @FUNC(i64 %16, i64* nonnull %sv_0, i64 0)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = call i64 @FUNC(i64 %9)
br i1 %19, label LBL_4, label LBL_12
LBL_4:
%storemerge3 = load i64, i64* %sv_0, align 8
%21 = icmp eq i64 %storemerge3, 0
%22 = icmp eq i1 %21, false
store i64 %storemerge3, i64* %storemerge4.reg2mem
store i64 %storemerge3, i64* %.reg2mem8
br i1 %22, label LBL_5, label LBL_11
LBL_5:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%23 = add i64 %storemerge4.reload, 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = inttoptr i64 %27 to i8*
%29 = call i32 @strncmp(i8* %1, i8* %28, i32 %2)
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_7, label LBL_6
LBL_6:
%32 = call i64 @FUNC(i64 %0, i64 %27)
br label LBL_7
LBL_7:
%33 = load i64, i64* %24, align 8
%34 = add i64 %33, 8
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = inttoptr i64 %36 to i8*
%38 = call i32 @strncmp(i8* %1, i8* %37, i32 %2)
%39 = icmp eq i32 %38, 0
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_9, label LBL_8
LBL_8:
%41 = call i64 @FUNC(i64 %0, i64 %36)
br label LBL_9
LBL_9:
%42 = inttoptr i64 %storemerge4.reload to i64*
%storemerge = load i64, i64* %42, align 8
%43 = icmp eq i64 %storemerge, 0
%44 = icmp eq i1 %43, false
store i64 %storemerge, i64* %storemerge4.reg2mem
br i1 %44, label LBL_5, label LBL_10
LBL_10:
%.pre = load i64, i64* %sv_0, align 8
store i64 %.pre, i64* %.reg2mem8
br label LBL_11
LBL_11:
%.reload9 = load i64, i64* %.reg2mem8
%45 = call i64 @FUNC(i64 %.reload9)
br label LBL_12
LBL_12:
%46 = call i64 @FUNC(i64 %.reload, i64* nonnull %sv_1)
%47 = icmp eq i64 %46, 0
%48 = icmp eq i1 %47, false
store i64 %46, i64* %.reg2mem
store i64 %46, i64* %.lcssa.reg2mem
br i1 %48, label LBL_1, label LBL_13
LBL_13:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %9, { 1, 0, 2 }
uselistorder i64* %sv_1, { 1, 2, 3, 4, 0 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge4.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem8, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @readline_add_completion, { 1, 0 }
uselistorder i64 (i64)* @aio_context_release, { 1, 0 }
uselistorder i1 false, { 5, 4, 2, 3, 1, 0 }
uselistorder i64 (i64, i64*)* @bdrv_next, { 1, 0 }
uselistorder label LBL_12, { 1, 2, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | getPakVersion_17339 | getPakVersion | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
store i64 %arg2, i64* %sv_0, align 8
%0 = icmp eq i64 %arg2, 0
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = call i64 @FUNC(i64 %arg2, i64* nonnull @gv_0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_1.dec_label_pc_401305_crit_edge, label LBL_3
LBL_2:
%.pre1 = load i64, i64* %sv_0, align 8
store i64 %.pre1, i64* %storemerge.reg2mem
br label LBL_9
LBL_3:
%4 = call i64 @FUNC(i64 %arg1)
%5 = call i64 @FUNC(i64 %4, i64* nonnull @gv_1, i64* nonnull %sv_0)
%6 = load i64, i64* %sv_0, align 8
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 %6, i64* %storemerge.reg2mem
br i1 %8, label LBL_9, label LBL_4
LBL_4:
%9 = load i64, i64* @gv_2, align 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11, i64 %5)
%13 = call i64 @FUNC(i64 %12, i64 1)
%14 = call i64 @FUNC(i64 %13, i64 4198918, i64 0)
%15 = call i64 @FUNC(i64 %13)
%16 = icmp eq i64 %15, 0
br i1 %16, label LBL_4.LBL_7_crit_edge, label LBL_6
LBL_5:
%.pre = load i64, i64* %sv_0, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_7
LBL_6:
%17 = inttoptr i64 %15 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18)
store i64 %19, i64* %sv_0, align 8
store i64 %19, i64* %.reg2mem
br label LBL_7
LBL_7:
%.reload = load i64, i64* %.reg2mem
%20 = icmp eq i64 %.reload, 0
%21 = icmp eq i1 %20, false
store i64 %.reload, i64* %storemerge.reg2mem
br i1 %21, label LBL_9, label LBL_8
LBL_8:
%22 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_3, i64 0, i64 0), i64 %5)
store i64 0, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %sv_0, { 3, 1, 4, 2, 0, 5 }
uselistorder i64* %storemerge.reg2mem, { 0, 4, 2, 1, 3 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder label LBL_9, { 3, 1, 0, 2 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | apply_paravirt_18378 | apply_paravirt | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = load i32, i32* @gv_0, align 4
%1 = zext i32 %0 to i64
%2 = icmp eq i32 %0, 0
%3 = icmp eq i1 %2, false
store i64 %1, i64* %rax.0.reg2mem
br i1 %3, label LBL_8, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = icmp ult i64* %arg1, %arg2
store i64 %4, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_8
LBL_2:
%6 = ptrtoint i64* %arg2 to i64
%7 = ptrtoint i64* %sv_0 to i64
store i64 %4, i64* %storemerge3.reg2mem
br label LBL_3
LBL_3:
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%8 = inttoptr i64 %storemerge3.reload to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp ult i32 %9, 257
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%11 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%12 = call i32 @fwrite(i64* bitcast ([15 x i8]* @gv_2 to i64*), i32 1, i32 14, %_IO_FILE* %11)
call void @exit(i32 1)
unreachable
LBL_5:
%13 = add i64 %storemerge3.reload, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp ult i32 %9, %15
br i1 %16, label LBL_6, label LBL_7
LBL_6:
%17 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%18 = call i32 @fwrite(i64* bitcast ([15 x i8]* @gv_2 to i64*), i32 1, i32 14, %_IO_FILE* %17)
call void @exit(i32 1)
unreachable
LBL_7:
%19 = sub i32 %9, %15
%20 = zext i32 %15 to i64
%21 = add i64 %20, %7
%22 = zext i32 %19 to i64
%23 = call i64 @FUNC(i64 %21, i64 %22)
%24 = load i32, i32* %8, align 4
%25 = add i64 %storemerge3.reload, 16
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = call i64 @FUNC(i64 %27, i64* nonnull %sv_0, i32 %24)
%29 = add i64 %storemerge3.reload, 24
%30 = icmp ult i64 %29, %6
store i64 %29, i64* %storemerge3.reg2mem
store i64 %29, i64* %rax.0.reg2mem
br i1 %30, label LBL_3, label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %15, { 2, 1, 0 }
uselistorder i32 %9, { 1, 0, 2 }
uselistorder i64 %storemerge3.reload, { 0, 1, 3, 2 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder void (i32)* @exit, { 1, 0 }
uselistorder %_IO_FILE** @gv_1, { 1, 0 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | kvm_iommu_map_pages_12631 | kvm_iommu_map_pages | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%sv_1.0.be.reg2mem = alloca i64
%sv_1.010.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_16
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = sext i32 %7 to i64
%9 = add i64 %8, %4
%10 = add i64 %4, 12
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp ugt i64 %9, %4
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_2, label LBL_16
LBL_2:
%14 = ptrtoint i64* %arg1 to i64
%15 = and i32 %12, 8
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
%spec.select = select i1 %17, i32 1, i32 3
%18 = add i64 %14, 8
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
%23 = or i32 %spec.select, 4
%spec.select4 = select i1 %22, i32 %spec.select, i32 %23
%24 = zext i32 %spec.select4 to i64
store i64 %4, i64* %sv_1.010.reg2mem
br label LBL_3
LBL_3:
%sv_1.010.reload = load i64, i64* %sv_1.010.reg2mem
%25 = call i64 @FUNC(i64 %sv_1.010.reload)
%26 = call i64 @FUNC(i64 %14, i64 %25)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_6, label LBL_4
LBL_4:
%29 = add i64 %sv_1.010.reload, 1
store i64 %29, i64* %sv_1.0.be.reg2mem
br label LBL_5
LBL_5:
%sv_1.0.be.reload = load i64, i64* %sv_1.0.be.reg2mem
%30 = icmp ult i64 %sv_1.0.be.reload, %9
store i64 %sv_1.0.be.reload, i64* %sv_1.010.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %30, label LBL_3, label LBL_16
LBL_6:
%31 = call i64 @FUNC(i64 %14, i64 %sv_1.010.reload)
store i64 %31, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%32 = udiv i64 %storemerge.reload, 4096
%33 = add i64 %32, %sv_1.010.reload
%34 = icmp ult i64 %9, %33
%35 = udiv i64 %storemerge.reload, 2
store i64 %35, i64* %storemerge.reg2mem
br i1 %34, label LBL_7, label LBL_8
LBL_8:
%36 = mul i64 %sv_1.010.reload, 4096
store i64 %storemerge.reload, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%37 = add i64 %sv_0.0.reload, -1
%38 = and i64 %37, %36
%39 = icmp eq i64 %38, 0
%40 = icmp eq i1 %39, false
%41 = udiv i64 %sv_0.0.reload, 2
store i64 %41, i64* %sv_0.0.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br i1 %40, label LBL_9, label LBL_10
LBL_10:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%42 = call i64 @FUNC(i64 %4, i64 %sv_1.010.reload)
%43 = add i64 %sv_0.1.reload, -1
%44 = and i64 %43, %42
%45 = icmp eq i64 %44, 0
%46 = icmp eq i1 %45, false
%47 = udiv i64 %sv_0.1.reload, 2
store i64 %47, i64* %sv_0.1.reg2mem
br i1 %46, label LBL_10, label LBL_11
LBL_11:
%48 = call i64 @FUNC(i64 %4, i64 %sv_1.010.reload, i64 %sv_0.1.reload)
%49 = call i64 @FUNC(i64 %48)
%50 = trunc i64 %49 to i32
%51 = icmp eq i32 %50, 0
br i1 %51, label LBL_13, label LBL_12
LBL_12:
%52 = add i64 %sv_1.010.reload, 1
store i64 %52, i64* %sv_1.0.be.reg2mem
br label LBL_5
LBL_13:
%sext = mul i64 %48, 4294967296
%53 = ashr exact i64 %sext, 32
%54 = call i64 @FUNC(i64 %53)
%55 = call i64 @FUNC(i64 %sv_1.010.reload)
%56 = call i64 @FUNC(i64 %14, i64 %55, i64 %54, i64 %sv_0.1.reload, i64 %24)
%57 = trunc i64 %56 to i32
%58 = icmp eq i32 %57, 0
br i1 %58, label LBL_15, label LBL_14
LBL_14:
%59 = call i64 @FUNC(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @gv_0, i64 0, i64 0), i64 %53, i64 %54, i64 %sv_0.1.reload, i64 %24, i64 %1)
%60 = call i64 @FUNC(i64 %14, i64 %53, i64 %sv_0.1.reload)
%61 = sub i64 %sv_1.010.reload, %48
%62 = and i64 %61, 4294967295
%63 = call i64 @FUNC(i64 %14, i64 %53, i64 %62)
%64 = and i64 %56, 4294967295
store i64 %64, i64* %rax.0.reg2mem
br label LBL_16
LBL_15:
%65 = udiv i64 %sv_0.1.reload, 4096
%66 = add i64 %65, %sv_1.010.reload
store i64 %66, i64* %sv_1.0.be.reg2mem
br label LBL_5
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %53, { 1, 0, 2, 3 }
uselistorder i64 %48, { 1, 0, 2 }
uselistorder i64 %sv_0.1.reload, { 6, 4, 3, 2, 1, 5, 0 }
uselistorder i64 %sv_0.0.reload, { 0, 2, 1 }
uselistorder i64 %storemerge.reload, { 0, 2, 1 }
uselistorder i64 %sv_1.0.be.reload, { 1, 0 }
uselistorder i64 %sv_1.010.reload, { 8, 9, 1, 0, 2, 3, 10, 7, 4, 5, 6 }
uselistorder i64 %14, { 1, 0, 2, 3, 4, 5 }
uselistorder i64 %9, { 1, 2, 0 }
uselistorder i64 %4, { 3, 4, 0, 2, 5, 1, 6 }
uselistorder i64* %sv_1.010.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.be.reg2mem, { 3, 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 4096, { 4, 0, 5, 3, 1, 2 }
uselistorder i64 (i64)* @gfn_to_gpa, { 1, 0 }
uselistorder i32 8, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_16, { 3, 0, 1, 2 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_5, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | blk_mq_delay_queue_17953 | blk_mq_delay_queue | 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 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i64
%5 = icmp eq i1 %3, false
%6 = icmp eq i1 %5, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %arg2)
%8 = call i64 @FUNC(i64 %0)
%9 = and i64 %8, 4294967295
%10 = call i64 @FUNC(i64 %9, i64 %0, i64 %7)
store i64 %10, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | logor_6389 | logor | 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()
%6 = call i64 @FUNC(i64 %arg1, i64 %0)
%7 = call i64 @FUNC(i64 2, i64 %1, i64 %6)
%8 = call i64 @FUNC()
store i64 %7, 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 }
uselistorder i32 1, { 2, 1, 0 }
} | 0 |
BinRealVul | config_props_output_7568 | config_props_output | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 24
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = inttoptr i64 %9 to i32*
%11 = add i64 %7, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = add i64 %4, 8
%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 = add i64 %15, 8
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = zext i32 %23 to i64
%25 = call i64 @FUNC(i64 %24)
%26 = load i32, i32* %10, align 4
%27 = and i32 %26, 4
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_2, label LBL_1
LBL_1:
%29 = call i64 @FUNC(i64 %7, i64 1, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
%30 = load i32, i32* %10, align 4
%31 = urem i32 %30, 4
store i32 %31, i32* %10, align 4
%32 = add i64 %9, 4
%33 = inttoptr i64 %32 to i32*
store i32 1, i32* %33, align 4
br label LBL_2
LBL_2:
%34 = inttoptr i64 %15 to i32*
%35 = load i32, i32* %34, align 4
%36 = add i64 %15, 4
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = icmp ult i32 %35, %38
%.pre8 = add i64 %9, 4
%.pre = inttoptr i64 %.pre8 to i32*
br i1 %39, label LBL_4, label LBL_3
LBL_3:
%40 = load i32, i32* %.pre, align 4
%41 = icmp eq i32 %40, 1
br i1 %41, label LBL_6, label LBL_4
LBL_4:
%42 = icmp ugt i32 %35, %38
br i1 %42, label LBL_7, label LBL_5
LBL_5:
%43 = load i32, i32* %.pre, align 4
%44 = icmp eq i32 %43, 2
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_7, label LBL_6
LBL_6:
%46 = zext i32 %35 to i64
%47 = zext i32 %38 to i64
%48 = call i64 @FUNC(i64 %7, i64 2, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i64 %46, i64 %47, i64 %46)
br label LBL_18
LBL_7:
%49 = inttoptr i64 %20 to i32*
%50 = inttoptr i64 %25 to i32*
store i32 0, i32* %.pre, align 4
%51 = add i64 %25, 4
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = add i64 %9, 8
%55 = inttoptr i64 %54 to i32*
store i32 %53, i32* %55, align 4
%56 = add i64 %25, 8
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = add i64 %9, 12
%60 = inttoptr i64 %59 to i32*
store i32 %58, i32* %60, align 4
%61 = load i32, i32* %50, align 4
%62 = add i64 %9, 16
%63 = inttoptr i64 %62 to i32*
store i32 %61, i32* %63, align 4
%64 = load i32, i32* %50, align 4
%65 = load i32, i32* %49, align 4
%66 = icmp eq i32 %64, %65
%67 = zext i1 %66 to i64
%68 = call i64 @FUNC(i64 %67)
%69 = add i64 %9, 20
%70 = call i64 @FUNC(i64 %69, i64 0, i64 %20)
%71 = load i32, i32* %37, align 4
%72 = bitcast i64* %arg1 to i32*
store i32 %71, i32* %72, align 4
%73 = load i32, i32* %34, align 4
%74 = add i64 %4, 4
%75 = inttoptr i64 %74 to i32*
store i32 %73, i32* %75, align 4
%76 = add i64 %15, 12
%77 = inttoptr i64 %76 to i32*
%78 = load i32, i32* %77, align 4
%79 = icmp eq i32 %78, 0
%80 = inttoptr i64 %76 to i64*
%81 = load i64, i64* %80, align 8
br i1 %79, label LBL_9, label LBL_8
LBL_8:
%82 = call i64 @FUNC(i64 4294967297, i64 %81)
%83 = add i64 %4, 12
%84 = inttoptr i64 %83 to i64*
store i64 %82, i64* %84, align 8
br label LBL_10
LBL_9:
%85 = add i64 %4, 12
%86 = inttoptr i64 %85 to i64*
store i64 %81, i64* %86, align 8
br label LBL_10
LBL_10:
store i64 %9, i64* @0, align 8
switch i64 %9, label LBL_17 [
i64 1, label LBL_11
i64 2, label LBL_12
i64 3, label LBL_13
i64 4, label LBL_14
i64 6, label LBL_15
i64 8, label LBL_16
]
LBL_11:
%87 = load i64, i64* @gv_2, align 8
store i64 %87, i64* inttoptr (i64 57 to i64*), align 8
%88 = load i64, i64* @gv_3, align 8
store i64 %88, i64* inttoptr (i64 65 to i64*), align 8
br label LBL_17
LBL_12:
%89 = load i64, i64* @gv_4, align 8
store i64 %89, i64* inttoptr (i64 58 to i64*), align 8
%90 = load i64, i64* @gv_5, align 8
store i64 %90, i64* inttoptr (i64 66 to i64*), align 8
br label LBL_17
LBL_13:
%91 = load i64, i64* @gv_6, align 8
store i64 %91, i64* inttoptr (i64 59 to i64*), align 8
%92 = load i64, i64* @gv_7, align 8
store i64 %92, i64* inttoptr (i64 67 to i64*), align 8
br label LBL_17
LBL_14:
%93 = load i64, i64* @gv_8, align 8
store i64 %93, i64* inttoptr (i64 60 to i64*), align 8
%94 = load i64, i64* @gv_9, align 8
store i64 %94, i64* inttoptr (i64 68 to i64*), align 8
br label LBL_17
LBL_15:
%95 = load i64, i64* @gv_10, align 8
store i64 %95, i64* inttoptr (i64 62 to i64*), align 8
%96 = load i64, i64* @gv_11, align 8
store i64 %96, i64* inttoptr (i64 70 to i64*), align 8
br label LBL_17
LBL_16:
%97 = load i64, i64* @gv_12, align 8
store i64 %97, i64* inttoptr (i64 64 to i64*), align 64
%98 = load i64, i64* @gv_13, align 8
store i64 %98, i64* inttoptr (i64 72 to i64*), align 8
br label LBL_17
LBL_17:
%99 = load i32, i32* %10, align 4
%100 = load i32, i32* %37, align 4
%101 = load i32, i32* %34, align 4
%102 = zext i32 %99 to i64
%103 = zext i32 %100 to i64
%104 = zext i32 %101 to i64
%105 = call i64 @FUNC(i64 %7, i64 2, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_14, i64 0, i64 0), i64 %104, i64 %103, i64 %102)
br label LBL_18
LBL_18:
ret i64 0
uselistorder i64 %81, { 1, 0 }
uselistorder i64 %46, { 1, 0 }
uselistorder i32* %10, { 2, 1, 0, 3 }
uselistorder i64 %9, { 1, 2, 3, 4, 5, 6, 0, 7, 8 }
uselistorder i64 %7, { 2, 1, 0, 3, 4 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 2, { 0, 2, 1 }
uselistorder i64 4, { 1, 2, 3, 0, 4, 5 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64)* @av_pix_fmt_desc_get, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | RelinquishVirtualMemory_11000 | RelinquishVirtualMemory | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rdi.11.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
store i64 %arg1, i64* %rdi.0.reg2mem
br i1 %1, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_1, i64 0, i64 0), i32 45, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([34 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%2 = add i64 %arg1, 24
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 3735928559
br i1 %5, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_1, i64 0, i64 0), i32 46, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([42 x i8]* @gv_3 to i64), i64* %rdi.11.reg2mem
br label LBL_5
LBL_4:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%6 = icmp eq i64 %rdi.0.reload, 0
store i64 %rdi.0.reload, i64* %rdi.11.reg2mem
br i1 %6, label LBL_10, label LBL_5
LBL_5:
%rdi.11.reload = load i64, i64* %rdi.11.reg2mem
%7 = add i64 %arg1, 32
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
switch i32 %9, label LBL_9 [
i32 1, label LBL_6
i32 2, label LBL_7
]
LBL_6:
%10 = call i64 @FUNC(i64 %rdi.11.reload)
%11 = inttoptr i64 %arg1 to i64*
store i64 %10, i64* %11, align 8
%12 = add i64 %arg1, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 1, i64 %14)
br label LBL_10
LBL_7:
%16 = add i64 %arg1, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %rdi.11.reload, i64 %18)
%20 = inttoptr i64 %arg1 to i64*
store i64 0, i64* %20, align 8
%21 = load i64, i64* %17, align 8
%22 = call i64 @FUNC(i64 2, i64 %21)
%23 = add i64 %arg1, 16
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = icmp eq i8 %27, 0
br i1 %28, label LBL_10, label LBL_8
LBL_8:
%29 = call i64 @FUNC(i64 %25)
br label LBL_10
LBL_9:
%30 = call i64 @FUNC(i64 %rdi.11.reload)
%31 = inttoptr i64 %arg1 to i64*
store i64 %30, i64* %31, align 8
br label LBL_10
LBL_10:
store i64 559038736, i64* %3, align 8
%32 = call i64 @FUNC(i64 %arg1)
ret i64 %32
uselistorder i64 %rdi.11.reload, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @RelinquishMagickResource, { 1, 0 }
uselistorder i64 (i64)* @RelinquishAlignedMemory, { 1, 0 }
uselistorder [42 x i8]* @gv_3, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder [34 x i8]* @gv_0, { 1, 0 }
uselistorder i64 %arg1, { 8, 1, 2, 4, 3, 5, 6, 7, 9, 0, 10 }
uselistorder label LBL_10, { 2, 1, 0, 3, 4 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | do_rfi_172 | do_rfi | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %1)
%3 = inttoptr i64 %2 to i32*
%4 = and i64 %arg3, -2
%5 = call i64 @FUNC(i64 %0, i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
%9 = and i64 %arg2, 4294967292
%spec.select = select i1 %8, i64 %arg2, i64 %9
%10 = and i64 %spec.select, -4
store i64 %10, i64* %arg1, align 8
%11 = call i64 @FUNC(i64 %0, i64 %4, i64 1)
%12 = load i32, i32* %3, align 4
%13 = or i32 %12, 1
store i32 %13, i32* %3, align 4
%14 = call i64 @FUNC(i64 %0, i64 0)
ret i64 %14
uselistorder i32* %3, { 1, 0 }
uselistorder i64 %0, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | nfs4_xdr_dec_open_confirm_9513 | nfs4_xdr_dec_open_confirm | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%2 = bitcast i32* %sv_0 to i64*
%3 = call i64 @FUNC(i64* nonnull %2, i64 %1, i64 %0)
%4 = call i64 @FUNC(i64* nonnull %2, i64* nonnull %2)
%5 = trunc i64 %4 to i32
store i32 %5, i32* %sv_0, align 4
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 %4, i64* %.reg2mem
br i1 %7, label LBL_3, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64* nonnull %2)
%9 = trunc i64 %8 to i32
store i32 %9, i32* %sv_0, align 4
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 %8, i64* %.reg2mem
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = ptrtoint i64* %arg3 to i64
%13 = call i64 @FUNC(i64* nonnull %2, i64 %12)
%14 = trunc i64 %13 to i32
store i32 %14, i32* %sv_0, align 4
store i64 %13, i64* %.reg2mem
br label LBL_3
LBL_3:
%.reload = load i64, i64* %.reg2mem
%15 = and i64 %.reload, 4294967295
ret i64 %15
uselistorder i64* %2, { 0, 1, 3, 2, 4 }
uselistorder i32* %sv_0, { 2, 1, 0, 3 }
uselistorder i64* %.reg2mem, { 0, 1, 3, 2 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | dca_subframe_footer_106 | dca_subframe_footer | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%.reg2mem29 = alloca i64
%.reg2mem27 = alloca i32
%.reg2mem25 = alloca i32
%.reg2mem23 = alloca i32
%.reg2mem21 = alloca i32
%.reg2mem19 = alloca i32
%.reg2mem17 = alloca i32
%storemerge23.reg2mem = alloca i32
%.reg2mem15 = alloca i64
%.pre-phi8.reg2mem = alloca i32*
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = trunc i64 %arg2 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_33, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = trunc i64 %3 to i32
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = add i64 %7, 40
%11 = call i64 @FUNC(i64 %10, i64 32)
br label LBL_3
LBL_3:
%12 = add i64 %7, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_30, label LBL_4
LBL_4:
%16 = add i64 %7, 40
%17 = call i64 @FUNC(i64 %16, i64 6)
%18 = call i64 @FUNC(i64 %16)
%19 = sub i64 0, %18
%20 = urem i64 %19, 32
%21 = call i64 @FUNC(i64 %16, i64 %20)
%22 = call i64 @FUNC(i64 %16)
%23 = call i64 @FUNC(i64 %16, i64 32)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 305419896
br i1 %25, label LBL_6, label LBL_5
LBL_5:
%26 = add i64 %7, 32
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = and i64 %23, 4294967295
%30 = call i64 @FUNC(i64 %28, i64 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %29, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_33
LBL_6:
%31 = call i64 @FUNC(i64 %16)
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 0
br i1 %33, label LBL_8, label LBL_7
LBL_7:
%34 = add i64 %7, 32
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = call i64 @FUNC(i64 %36, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0))
%38 = call i64 @FUNC(i64 %16)
%39 = sub i64 0, %38
%40 = and i64 %39, 4
%41 = call i64 @FUNC(i64 %16, i64 %40)
%42 = call i64 @FUNC(i64 %16, i64 44)
br label LBL_8
LBL_8:
%43 = call i64 @FUNC(i64 %16)
%44 = trunc i64 %43 to i32
%45 = add i64 %7, 8
%46 = inttoptr i64 %45 to i32*
store i32 %44, i32* %46, align 4
%47 = icmp eq i32 %44, 0
br i1 %47, label LBL_26, label LBL_9
LBL_9:
%48 = call i64 @FUNC(i64 %16, i64 3)
%49 = trunc i64 %48 to i32
%50 = and i64 %48, 4294967295
store i64 %50, i64* @0, align 8
switch i32 %49, label LBL_17 [
i32 0, label LBL_10
i32 1, label LBL_11
i32 2, label LBL_12
i32 3, label LBL_13
i32 4, label LBL_14
i32 5, label LBL_15
i32 6, label LBL_16
]
LBL_10:
%51 = add i64 %7, 12
%52 = inttoptr i64 %51 to i32*
store i32 0, i32* %52, align 4
store i32 0, i32* %.reg2mem
store i32* %52, i32** %.pre-phi8.reg2mem
br label LBL_18
LBL_11:
%53 = add i64 %7, 12
%54 = inttoptr i64 %53 to i32*
store i32 1, i32* %54, align 4
store i32 1, i32* %.reg2mem
store i32* %54, i32** %.pre-phi8.reg2mem
br label LBL_18
LBL_12:
%55 = add i64 %7, 12
%56 = inttoptr i64 %55 to i32*
store i32 2, i32* %56, align 4
store i32 2, i32* %.reg2mem
store i32* %56, i32** %.pre-phi8.reg2mem
br label LBL_18
LBL_13:
%57 = add i64 %7, 12
%58 = inttoptr i64 %57 to i32*
store i32 3, i32* %58, align 4
store i32 3, i32* %.reg2mem
store i32* %58, i32** %.pre-phi8.reg2mem
br label LBL_18
LBL_14:
%59 = add i64 %7, 12
%60 = inttoptr i64 %59 to i32*
store i32 4, i32* %60, align 4
store i32 4, i32* %.reg2mem
store i32* %60, i32** %.pre-phi8.reg2mem
br label LBL_18
LBL_15:
%61 = add i64 %7, 12
%62 = inttoptr i64 %61 to i32*
store i32 5, i32* %62, align 4
store i32 5, i32* %.reg2mem
store i32* %62, i32** %.pre-phi8.reg2mem
br label LBL_18
LBL_16:
%63 = add i64 %7, 12
%64 = inttoptr i64 %63 to i32*
store i32 6, i32* %64, align 4
store i32 6, i32* %.reg2mem
store i32* %64, i32** %.pre-phi8.reg2mem
br label LBL_18
LBL_17:
%65 = add i64 %7, 32
%66 = inttoptr i64 %65 to i64*
%67 = load i64, i64* %66, align 8
%68 = call i64 @FUNC(i64 %67, i64 0, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_2, i64 0, i64 0), i64 %50, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_33
LBL_18:
%.reload = load i32, i32* %.reg2mem
%69 = mul i32 %.reload, 4
%70 = zext i32 %69 to i64
%71 = add i64 %70, ptrtoint (i32** @gv_3 to i64)
%72 = inttoptr i64 %71 to i32*
%73 = load i32, i32* %72, align 4
%74 = icmp eq i32 %73, 0
br i1 %74, label LBL_26, label LBL_19
LBL_19:
%.pre-phi8.reload = load i32*, i32** %.pre-phi8.reg2mem
%75 = add i64 %7, 24
%76 = inttoptr i64 %75 to i32*
%77 = add i64 %7, 44
%78 = inttoptr i64 %77 to i32*
%79 = add i64 %7, 48
%.pre = load i32, i32* %76, align 4
%.pre6 = load i32, i32* %78, align 4
store i32 %.reload, i32* %.reg2mem23
store i32 %.pre6, i32* %.reg2mem25
store i32 %.pre, i32* %.reg2mem27
store i64 0, i64* %.reg2mem29
store i32 0, i32* %storemerge4.reg2mem
br label LBL_25
LBL_20:
%80 = call i64 @FUNC(i64 %16, i64 9)
%81 = trunc i64 %80 to i32
%sext = mul i32 %81, 65536
%82 = ashr exact i32 %sext, 16
%83 = and i64 %80, 254
%84 = icmp ult i64 %83, 242
br i1 %84, label LBL_22, label LBL_21
LBL_21:
%85 = add i64 %7, 32
%86 = inttoptr i64 %85 to i64*
%87 = load i64, i64* %86, align 8
%88 = urem i32 %82, 65536
%89 = zext i32 %88 to i64
%90 = call i64 @FUNC(i64 %87, i64 0, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_4, i64 0, i64 0), i64 %89, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_33
LBL_22:
%storemerge23.reload = load i32, i32* %storemerge23.reg2mem
%.reload16 = load i64, i64* %.reg2mem15
%91 = mul i64 %.reload16, 8
%92 = add nsw i64 %91, %.reload30
%93 = trunc i32 %82 to i16
%94 = mul i64 %92, 2
%95 = add i64 %79, %94
%96 = inttoptr i64 %95 to i16*
store i16 %93, i16* %96, align 2
%97 = add i32 %storemerge23.reload, 1
%98 = load i32, i32* %76, align 4
%99 = load i32, i32* %78, align 4
%100 = icmp eq i32 %99, 0
%101 = icmp eq i1 %100, false
%102 = zext i1 %101 to i32
%103 = add i32 %98, %102
%104 = zext i32 %103 to i64
%105 = sext i32 %97 to i64
%106 = icmp slt i64 %105, %104
store i64 %105, i64* %.reg2mem15
store i32 %97, i32* %storemerge23.reg2mem
br i1 %106, label LBL_20, label LBL_23
LBL_23:
%.pre7 = load i32, i32* %.pre-phi8.reload, align 4
store i32 %.pre7, i32* %.reg2mem17
store i32 %99, i32* %.reg2mem19
store i32 %98, i32* %.reg2mem21
br label LBL_24
LBL_24:
%.reload22 = load i32, i32* %.reg2mem21
%.reload20 = load i32, i32* %.reg2mem19
%.reload18 = load i32, i32* %.reg2mem17
%107 = add i32 %storemerge4.reload, 1
%108 = sext i32 %.reload18 to i64
%109 = mul i64 %108, 4
%110 = add i64 %109, ptrtoint (i32** @gv_3 to i64)
%111 = inttoptr i64 %110 to i32*
%112 = load i32, i32* %111, align 4
%113 = zext i32 %112 to i64
%114 = sext i32 %107 to i64
%115 = icmp slt i64 %114, %113
store i32 %.reload18, i32* %.reg2mem23
store i32 %.reload20, i32* %.reg2mem25
store i32 %.reload22, i32* %.reg2mem27
store i64 %114, i64* %.reg2mem29
store i32 %107, i32* %storemerge4.reg2mem
br i1 %115, label LBL_25, label LBL_26
LBL_25:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%.reload30 = load i64, i64* %.reg2mem29
%.reload28 = load i32, i32* %.reg2mem27
%.reload26 = load i32, i32* %.reg2mem25
%.reload24 = load i32, i32* %.reg2mem23
%116 = icmp eq i32 %.reload26, 0
%117 = icmp eq i1 %116, false
%118 = sext i1 %117 to i32
%119 = icmp eq i32 %.reload28, %118
store i64 0, i64* %.reg2mem15
store i32 0, i32* %storemerge23.reg2mem
store i32 %.reload24, i32* %.reg2mem17
store i32 %.reload26, i32* %.reg2mem19
store i32 %.reload28, i32* %.reg2mem21
br i1 %119, label LBL_24, label LBL_20
LBL_26:
%.tr = trunc i64 %17 to i32
%120 = mul i32 %.tr, 8
%121 = trunc i64 %22 to i32
%122 = add i32 %120, %121
%123 = call i64 @FUNC(i64 %16)
%124 = call i64 @FUNC(i64 %16, i64 16)
%125 = call i64 @FUNC(i64 %16)
%126 = trunc i64 %125 to i32
%127 = sub i32 %122, %126
%128 = icmp slt i32 %127, 0
%129 = icmp eq i1 %128, false
br i1 %129, label LBL_28, label LBL_27
LBL_27:
%130 = sub i32 0, %127
%131 = add i64 %7, 32
%132 = inttoptr i64 %131 to i64*
%133 = load i64, i64* %132, align 8
%134 = zext i32 %130 to i64
%135 = call i64 @FUNC(i64 %133, i64 0, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_5, i64 0, i64 0), i64 %134, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_33
LBL_28:
%136 = icmp eq i32 %127, 0
br i1 %136, label LBL_30, label LBL_29
LBL_29:
%137 = add i64 %7, 32
%138 = inttoptr i64 %137 to i64*
%139 = load i64, i64* %138, align 8
%140 = call i64 @FUNC(i64 %139, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_6, i64 0, i64 0))
%141 = zext i32 %127 to i64
%142 = call i64 @FUNC(i64 %16, i64 %141)
br label LBL_30
LBL_30:
%143 = add i64 %7, 16
%144 = inttoptr i64 %143 to i32*
%145 = load i32, i32* %144, align 4
%146 = icmp eq i32 %145, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %146, label LBL_33, label LBL_31
LBL_31:
%147 = add i64 %7, 20
%148 = inttoptr i64 %147 to i32*
%149 = load i32, i32* %148, align 4
%150 = icmp eq i32 %149, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %150, label LBL_33, label LBL_32
LBL_32:
%151 = add i64 %7, 40
%152 = call i64 @FUNC(i64 %151, i64 16)
store i64 0, i64* %rax.0.reg2mem
br label LBL_33
LBL_33:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload26, { 1, 0 }
uselistorder i32 %.reload28, { 1, 0 }
uselistorder i32 %82, { 1, 0 }
uselistorder i64 %80, { 1, 0 }
uselistorder i32* %78, { 1, 0 }
uselistorder i32* %76, { 1, 0 }
uselistorder i64 %16, { 5, 6, 7, 8, 3, 4, 9, 0, 1, 2, 10, 11, 12, 13, 14, 15 }
uselistorder i64 %7, { 19, 18, 17, 14, 13, 8, 0, 10, 9, 12, 11, 7, 6, 5, 4, 3, 2, 15, 1, 16, 21, 20, 22 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i32* %.reg2mem, { 0, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i32** %.pre-phi8.reg2mem, { 0, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %.reg2mem15, { 1, 2, 0 }
uselistorder i32* %storemerge23.reg2mem, { 1, 2, 0 }
uselistorder i32* %.reg2mem17, { 2, 0, 1 }
uselistorder i32* %.reg2mem19, { 2, 0, 1 }
uselistorder i32* %.reg2mem21, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 8, 6, 7, 5, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 16, { 0, 2, 1 }
uselistorder i32 65536, { 1, 0 }
uselistorder i64 ptrtoint (i32** @gv_3 to i64), { 1, 0 }
uselistorder i32 6, { 0, 2, 1 }
uselistorder i32 5, { 0, 2, 1 }
uselistorder i32 4, { 1, 0, 3, 2 }
uselistorder i32 3, { 0, 2, 1 }
uselistorder i32 2, { 0, 2, 1 }
uselistorder i64 44, { 1, 0 }
uselistorder i64 (i64, i64)* @skip_bits, { 1, 0 }
uselistorder i64 (i64, i8*)* @avpriv_request_sample, { 1, 0 }
uselistorder i64 (i64)* @get_bits1, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 3, 1, 0 }
uselistorder i64 (i64)* @get_bits_count, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @get_bits, { 2, 3, 1, 0 }
uselistorder i64 (i64, i64)* @skip_bits_long, { 3, 2, 1, 0 }
uselistorder i64 32, { 4, 5, 3, 6, 7, 8, 1, 0, 2 }
uselistorder i1 false, { 2, 0, 1, 3 }
uselistorder i32 0, { 8, 9, 10, 11, 12, 1, 4, 6, 0, 3, 2, 7, 5, 13, 14, 15, 16, 17 }
uselistorder label LBL_33, { 3, 2, 1, 5, 4, 6, 7, 0 }
uselistorder label LBL_25, { 1, 0 }
} | 1 |
BinRealVul | ff_dxva2_commit_buffer_3670 | ff_dxva2_commit_buffer | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3, i32 %arg4, i64 %arg5, i32 %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.3.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i64
%rsi.1.reg2mem = alloca i64
%.reg2mem6 = alloca i32
%rsi.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%sv_2 = alloca i32, align 4
%sv_3 = alloca i64, align 8
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 1
%5 = icmp eq i1 %4, false
store i64 0, i64* %sv_1.0.reg2mem
store i64 %arg5, i64* %r8.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = ptrtoint i64* %sv_3 to i64
%10 = bitcast i32* %sv_2 to i64*
%11 = call i64 @FUNC(i64 %8, i64 %8, i32 %arg4, i64* nonnull %10, i64* nonnull %sv_3)
store i64 %11, i64* %sv_1.0.reg2mem
store i64 %9, i64* %r8.0.reg2mem
br label LBL_2
LBL_2:
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%12 = icmp eq i32 %3, 2
%13 = icmp eq i1 %12, false
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = add i64 %2, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = bitcast i32* %sv_2 to i64*
%18 = call i64 @FUNC(i64 %16, i32 %arg4, i64* nonnull %sv_3, i64* nonnull %17)
store i64 %18, i64* %sv_1.1.reg2mem
br label LBL_4
LBL_4:
%19 = sext i32 %arg6 to i64
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%20 = icmp slt i64 %sv_1.1.reload, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = ptrtoint i32* %arg1 to i64
%23 = zext i32 %arg4 to i64
%24 = call i64 @FUNC(i64 %22, i64 0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i64 %23, i64 %sv_1.1.reload, i64 %19)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_19
LBL_6:
%25 = load i32, i32* %sv_2, align 4
%26 = icmp ult i32 %25, %arg6
br i1 %26, label LBL_11, label LBL_7
LBL_7:
%27 = ptrtoint i64* %arg3 to i64
%sext = mul i64 %arg7, 4294967296
%28 = ashr exact i64 %sext, 32
%29 = bitcast i64* %rdi to i32*
%30 = load i64, i64* %sv_3, align 8
%31 = inttoptr i64 %30 to i64*
%32 = inttoptr i64 %arg5 to i64*
%33 = call i64* @memcpy(i64* %31, i64* %32, i32 %arg6)
store i32 %3, i32* %.reg2mem
store i64 %arg5, i64* %rsi.0.reg2mem
br i1 %5, label LBL_9, label LBL_8
LBL_8:
%34 = call i64* @memset(i64* %arg3, i32 0, i32 12)
%35 = bitcast i64* %arg3 to i32*
store i32 %arg4, i32* %35, align 4
%36 = add i64 %27, 4
%37 = inttoptr i64 %36 to i32*
store i32 %arg6, i32* %37, align 4
%38 = trunc i64 %28 to i32
%39 = add i64 %27, 8
%40 = inttoptr i64 %39 to i32*
store i32 %38, i32* %40, align 4
%.pre = load i32, i32* %29, align 8
store i32 %.pre, i32* %.reg2mem
store i64 0, i64* %rsi.0.reg2mem
br label LBL_9
LBL_9:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%.reload = load i32, i32* %.reg2mem
%41 = icmp eq i32 %.reload, 2
%42 = icmp eq i1 %41, false
store i32 %.reload, i32* %.reg2mem6
store i64 %rsi.0.reload, i64* %rsi.1.reg2mem
store i64 0, i64* %storemerge4.reg2mem
br i1 %42, label LBL_12, label LBL_10
LBL_10:
%43 = call i64* @memset(i64* %arg3, i32 0, i32 12)
%44 = bitcast i64* %arg3 to i32*
store i32 %arg4, i32* %44, align 4
%45 = add i64 %27, 4
%46 = inttoptr i64 %45 to i32*
store i32 %arg6, i32* %46, align 4
%47 = trunc i64 %28 to i32
%48 = add i64 %27, 8
%49 = inttoptr i64 %48 to i32*
store i32 %47, i32* %49, align 4
%.pre5 = load i32, i32* %29, align 8
store i32 %.pre5, i32* %.reg2mem6
store i64 0, i64* %rsi.1.reg2mem
store i64 0, i64* %storemerge4.reg2mem
br label LBL_12
LBL_11:
%50 = ptrtoint i32* %arg1 to i64
%51 = zext i32 %arg4 to i64
%52 = call i64 @FUNC(i64 %50, i64 0, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), i64 %51, i64 %r8.0.reload, i64 %19)
store i32 %3, i32* %.reg2mem6
store i64 0, i64* %rsi.1.reg2mem
store i64 4294967295, i64* %storemerge4.reg2mem
br label LBL_12
LBL_12:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%.reload7 = load i32, i32* %.reg2mem6
%53 = icmp eq i32 %.reload7, 1
%54 = icmp eq i1 %53, false
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
br i1 %54, label LBL_14, label LBL_13
LBL_13:
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%55 = add i64 %2, 8
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = call i64 @FUNC(i64 %rsi.1.reload, i64 %57, i32 %arg4)
store i64 %58, i64* %sv_1.2.reg2mem
br label LBL_14
LBL_14:
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%59 = icmp eq i32 %.reload7, 2
%60 = icmp eq i1 %59, false
store i64 %sv_1.2.reload, i64* %sv_1.3.reg2mem
br i1 %60, label LBL_16, label LBL_15
LBL_15:
%61 = add i64 %2, 8
%62 = inttoptr i64 %61 to i64*
%63 = load i64, i64* %62, align 8
%64 = zext i32 %arg4 to i64
%65 = call i64 @FUNC(i64 %63, i64 %64)
store i64 %65, i64* %sv_1.3.reg2mem
br label LBL_16
LBL_16:
%sv_1.3.reload = load i64, i64* %sv_1.3.reg2mem
%66 = icmp slt i64 %sv_1.3.reload, 0
%67 = icmp eq i1 %66, false
store i64 %storemerge4.reload, i64* %sv_0.0.reg2mem
br i1 %67, label LBL_18, label LBL_17
LBL_17:
%68 = ptrtoint i32* %arg1 to i64
%69 = zext i32 %arg4 to i64
%70 = call i64 @FUNC(i64 %68, i64 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_2, i64 0, i64 0), i64 %69, i64 %sv_1.3.reload, i64 %19)
store i64 4294967295, i64* %sv_0.0.reg2mem
br label LBL_18
LBL_18:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%71 = and i64 %sv_0.0.reload, 4294967295
store i64 %71, i64* %storemerge.reg2mem
br label LBL_19
LBL_19:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %28, { 1, 0 }
uselistorder i64 %27, { 3, 2, 1, 0 }
uselistorder i64 %19, { 1, 2, 0 }
uselistorder i64 %8, { 1, 0 }
uselistorder i64* %sv_3, { 2, 0, 1, 3 }
uselistorder i32* %sv_2, { 0, 2, 1 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i32* %.reg2mem6, { 0, 3, 1, 2 }
uselistorder i64* %rsi.1.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %storemerge4.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 1, 0 }
uselistorder i32 %arg6, { 2, 1, 3, 0, 4 }
uselistorder i64 %arg5, { 0, 2, 1 }
uselistorder i32 %arg4, { 7, 6, 5, 8, 4, 3, 2, 1, 0 }
uselistorder i32* %arg1, { 1, 2, 0 }
uselistorder label LBL_12, { 2, 1, 0 }
} | 0 |
BinRealVul | initCIELabConversion_8949 | initCIELabConversion | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32*, align 8
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 %4, i64* %rdi.0.reg2mem
br i1 %9, label LBL_3, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 0)
store i64 %10, i64* %6, align 8
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 0, i64* %rdi.0.reg2mem
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_1, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_3:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%14 = bitcast i32** %sv_1 to i64*
%15 = call i64 @FUNC(i64 %rdi.0.reload, i64 0, i64* nonnull %14)
%16 = call i128 @FUNC(i32 1120403456)
%17 = call i64 @__asm_movss.1(i128 %16)
%18 = trunc i64 %17 to i32
%19 = load i32*, i32** %sv_1, align 8
%20 = load i32, i32* %19, align 4
%21 = call i128 @FUNC(i32 %20)
%22 = load i32*, i32** %sv_1, align 8
%23 = ptrtoint i32* %22 to i64
%24 = add i64 %23, 4
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = call i128 @FUNC(i32 %26)
%28 = call i128 @__asm_movaps.2(i128 %21)
%29 = call i128 @FUNC(i128 %28, i128 %27)
%30 = call i128 @FUNC(i32 %18)
%31 = call i128 @FUNC(i128 %30, i128 %29)
%32 = call i64 @__asm_movss.1(i128 %31)
%33 = trunc i64 %32 to i32
store i32 %33, i32* %sv_0, align 4
%34 = load i32*, i32** %sv_1, align 8
%35 = load i32, i32* %34, align 4
%36 = call i128 @FUNC(i32 %35)
%37 = load i32, i32* inttoptr (i64 4202700 to i32*), align 4
%38 = call i128 @FUNC(i32 %37)
%39 = call i128 @FUNC(i128 %38, i128 %36)
%40 = load i32*, i32** %sv_1, align 8
%41 = ptrtoint i32* %40 to i64
%42 = add i64 %41, 4
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = call i128 @FUNC(i32 %44)
%46 = call i128 @FUNC(i128 %39, i128 %45)
%47 = load i32*, i32** %sv_1, align 8
%48 = ptrtoint i32* %47 to i64
%49 = add i64 %48, 4
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = call i128 @FUNC(i32 %51)
%53 = call i128 @__asm_movaps.2(i128 %46)
%54 = call i128 @FUNC(i128 %53, i128 %52)
%55 = call i128 @FUNC(i32 %18)
%56 = call i128 @FUNC(i128 %55, i128 %54)
%57 = call i64 @__asm_movss.1(i128 %56)
%58 = load i64, i64* %6, align 8
%59 = call i64 @FUNC(i64 %58, i64* nonnull @gv_2, i32* nonnull %sv_0)
%60 = trunc i64 %59 to i32
%61 = icmp slt i32 %60, 0
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_5, label LBL_4
LBL_4:
%63 = call i64 @FUNC(i64 %58, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_3, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
%64 = load i64, i64* %6, align 8
%65 = call i64 @FUNC(i64 %64)
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%66 = load i64, i64* @gv_4, align 8
store i64 %66, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %18, { 1, 0 }
uselistorder i64* %6, { 1, 2, 0, 3 }
uselistorder i32** %sv_1, { 4, 3, 2, 1, 0, 5 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i8*, i8*, i64, i64, i64)* @TIFFErrorExt, { 1, 0 }
} | 0 |
BinRealVul | fix_table_storage_name_18333 | fix_table_storage_name | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = inttoptr i64 %arg1 to i8*
%1 = call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i32 9)
%2 = icmp eq i32 %1, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%3 = add i64 %arg1, 9
%4 = bitcast i64* %sv_0 to i8*
%5 = inttoptr i64 %3 to i8*
%6 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %4, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i8* %0, i8* %5)
%7 = call i64 @FUNC(i64* nonnull %sv_0)
%8 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = trunc i64 %7 to i32
%11 = icmp eq i32 %10, 0
%12 = select i1 %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_4, i64 0, i64 0), i8* %0, i8* %12)
br label LBL_3
LBL_3:
%14 = and i64 %7, 4294967295
store i64 %14, 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 i64 0, { 5, 6, 1, 2, 3, 4, 7, 8, 9, 10, 0, 11, 12, 13, 14 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | migration_bitmap_clear_dirty_17260 | migration_bitmap_clear_dirty | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = udiv i64 %arg2, 4096
%2 = call i64 @FUNC(i64 %0)
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = and i64 %1, 4294967295
%6 = call i64 @FUNC(i64 %5, i64 %4)
%7 = trunc i64 %6 to i8
%8 = icmp eq i8 %7, 0
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = add i64 %0, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = add i32 %11, -1
store i32 %12, i32* %10, align 4
br label LBL_2
LBL_2:
%13 = urem i64 %6, 256
ret i64 %13
} | 1 |
BinRealVul | __unwind_start_18442 | __unwind_start | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64* @memset(i64* %arg1, i32 0, i32 24)
store i64 %1, i64* %arg1, align 8
%4 = add i64 %2, 8
%5 = inttoptr i64 %4 to i64*
store i64 %0, i64* %5, align 8
%6 = add i64 %2, 16
%7 = call i64 @FUNC(i64 %0, i64 %2, i64 %6, i64 %6)
%8 = call i64 @FUNC(i64 %2)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 %8, i64* %rax.0.reg2mem
br i1 %11, label LBL_4, label LBL_1
LBL_1:
%12 = call i64 @FUNC(i64 %6, i64 %0, i64 8)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = call i64 @FUNC(i64 %6)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
store i64 %15, i64* %rax.0.reg2mem
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%19 = call i64 @FUNC(i64 %2)
store i64 %19, 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 %6, { 1, 0, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i32 0, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | do_store_xer_18672 | do_store_xer | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%1 = trunc i32 %0 to i8
%2 = urem i8 %1, 2
store i8 %2, i8* bitcast (i32* @gv_1 to i8*), align 4
%3 = udiv i32 %0, 2
%4 = trunc i32 %3 to i8
%5 = urem i8 %4, 2
store i8 %5, i8* bitcast (i32* @gv_2 to i8*), align 4
%6 = udiv i32 %0, 4
%7 = trunc i32 %6 to i8
%8 = urem i8 %7, 2
store i8 %8, i8* bitcast (i32* @gv_3 to i8*), align 4
%9 = udiv i32 %0, 8
%10 = trunc i32 %9 to i8
store i8 %10, i8* bitcast (i32* @gv_4 to i8*), align 4
%11 = udiv i32 %0, 16
%12 = urem i32 %11, 64
%13 = zext i32 %12 to i64
%14 = trunc i32 %12 to i8
store i8 %14, i8* bitcast (i32* @gv_5 to i8*), align 4
ret i64 %13
uselistorder i32 %12, { 1, 0 }
} | 1 |
BinRealVul | get_cpsr_16958 | get_cpsr | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = urem i64 %2, 2
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i32
%6 = add i64 %0, 4
%7 = inttoptr i64 %6 to i32*
store i32 %5, i32* %7, align 4
%8 = call i64 @FUNC(i64 %0)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = and i64 %2, 4294967295
%12 = call i64 @FUNC(i64 %0, i64 %11)
br label LBL_3
LBL_2:
%13 = trunc i64 %2 to i32
%14 = urem i32 %13, 32
%15 = bitcast i64* %arg2 to i32*
store i32 %14, i32* %15, align 4
%16 = call i64 @FUNC(i64 %0, i32 %13, i64 4294967295, i64 0)
br label LBL_3
LBL_3:
ret i64 0
uselistorder i32 %13, { 1, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i64 4294967295, { 2, 1, 0 }
} | 1 |
BinRealVul | px_crypt_des_11621 | px_crypt_des | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i8*
%sv_1.1.reg2mem = alloca i64
%sv_2.1.reg2mem = alloca i64
%sv_3.2.reg2mem = alloca i64
%sv_3.1.lcssa.reg2mem = alloca i64
%sv_3.16.reg2mem = alloca i64
%sv_4.17.reg2mem = alloca i8*
%.reg2mem23 = alloca i64
%sv_1.010.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_2.012.reg2mem = alloca i64
%indvars.iv18.reg2mem = alloca i64
%sv_3.013.reg2mem = alloca i64
%sv_4.014.reg2mem = alloca i8*
%.reg2mem = alloca i64
%rsi = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%sv_7 = alloca i64, align 8
%0 = load i32, i32* @gv_0, align 4
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC()
br label LBL_2
LBL_2:
%4 = bitcast i64* %sv_7 to i8*
%5 = ptrtoint i64* %sv_7 to i64
store i64 %5, i64* %.reg2mem
store i8* %4, i8** %sv_4.014.reg2mem
store i64 %arg1, i64* %sv_3.013.reg2mem
br label LBL_3
LBL_3:
%sv_3.013.reload = load i64, i64* %sv_3.013.reg2mem
%sv_4.014.reload = load i8*, i8** %sv_4.014.reg2mem
%.reload = load i64, i64* %.reg2mem
%6 = inttoptr i64 %sv_3.013.reload to i8*
%7 = load i8, i8* %6, align 1
%8 = add i64 %.reload, 1
%9 = inttoptr i64 %8 to i8*
%10 = mul i8 %7, 2
store i8 %10, i8* %sv_4.014.reload, align 1
%11 = icmp ne i8 %10, 0
%12 = zext i1 %11 to i64
%spec.select = add i64 %sv_3.013.reload, %12
%13 = sub i64 %8, %5
%14 = icmp eq i64 %13, 8
%15 = icmp eq i1 %14, false
store i64 %8, i64* %.reg2mem
store i8* %9, i8** %sv_4.014.reg2mem
store i64 %spec.select, i64* %sv_3.013.reg2mem
br i1 %15, label LBL_3, label LBL_4
LBL_4:
%16 = call i64 @FUNC(i64* nonnull %sv_7)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_15, label LBL_5
LBL_5:
%19 = bitcast i64* %rsi to i8*
%20 = load i8, i8* %19, align 8
%21 = icmp eq i8 %20, 36
%22 = icmp eq i1 %21, false
store i64 1, i64* %indvars.iv18.reg2mem
store i64 0, i64* %sv_2.012.reg2mem
br i1 %22, label LBL_14, label LBL_6
LBL_6:
%sv_2.012.reload = load i64, i64* %sv_2.012.reg2mem
%indvars.iv18.reload = load i64, i64* %indvars.iv18.reg2mem
%23 = add i64 %indvars.iv18.reload, %arg2
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = sext i8 %25 to i64
%27 = and i64 %26, 4294967295
%28 = call i64 @FUNC(i64 %27)
%29 = mul nuw nsw i64 %indvars.iv18.reload, 6
%30 = add nuw nsw i64 %29, 58
%31 = and i64 %30, 62
%32 = shl i64 %28, %31
%33 = or i64 %32, %sv_2.012.reload
%indvars.iv.next19 = add nuw nsw i64 %indvars.iv18.reload, 1
%exitcond20 = icmp eq i64 %indvars.iv.next19, 5
store i64 %indvars.iv.next19, i64* %indvars.iv18.reg2mem
store i64 %33, i64* %sv_2.012.reg2mem
store i64 5, i64* %indvars.iv.reg2mem
store i64 0, i64* %sv_1.010.reg2mem
br i1 %exitcond20, label LBL_7, label LBL_6
LBL_7:
%sv_1.010.reload = load i64, i64* %sv_1.010.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%34 = add i64 %indvars.iv.reload, %arg2
%35 = inttoptr i64 %34 to i8*
%36 = load i8, i8* %35, align 1
%37 = sext i8 %36 to i64
%38 = and i64 %37, 4294967295
%39 = call i64 @FUNC(i64 %38)
%40 = mul nuw nsw i64 %indvars.iv.reload, 6
%41 = add nuw nsw i64 %40, 34
%42 = and i64 %41, 62
%43 = shl i64 %39, %42
%44 = or i64 %43, %sv_1.010.reload
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 9
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %44, i64* %sv_1.010.reg2mem
store i64 %spec.select, i64* %sv_3.2.reg2mem
br i1 %exitcond, label LBL_12, label LBL_7
LBL_8:
%45 = call i64 @FUNC(i64* nonnull %sv_7, i64* nonnull %sv_7, i64 0, i64 1)
%46 = trunc i64 %45 to i32
%47 = icmp eq i32 %46, 0
store i64 %5, i64* %.reg2mem23
store i8* %4, i8** %sv_4.17.reg2mem
store i64 %sv_3.2.reload, i64* %sv_3.16.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %47, label LBL_10, label LBL_17
LBL_9:
%sv_4.17.reload = load i8*, i8** %sv_4.17.reg2mem
%.reload24 = load i64, i64* %.reg2mem23
%48 = add i64 %sv_3.16.reload, 1
%49 = mul i8 %57, 2
%50 = add i64 %.reload24, 1
%51 = inttoptr i64 %50 to i8*
%52 = load i8, i8* %sv_4.17.reload, align 1
%53 = xor i8 %52, %49
store i8 %53, i8* %sv_4.17.reload, align 1
%54 = sub i64 %50, %5
%55 = icmp eq i64 %54, 8
store i64 %50, i64* %.reg2mem23
store i8* %51, i8** %sv_4.17.reg2mem
store i64 %48, i64* %sv_3.16.reg2mem
store i64 %48, i64* %sv_3.1.lcssa.reg2mem
br i1 %55, label LBL_11, label LBL_10
LBL_10:
%sv_3.16.reload = load i64, i64* %sv_3.16.reg2mem
%56 = inttoptr i64 %sv_3.16.reload to i8*
%57 = load i8, i8* %56, align 1
%58 = icmp eq i8 %57, 0
%59 = icmp eq i1 %58, false
store i64 %sv_3.16.reload, i64* %sv_3.1.lcssa.reg2mem
br i1 %59, label LBL_9, label LBL_11
LBL_11:
%sv_3.1.lcssa.reload = load i64, i64* %sv_3.1.lcssa.reg2mem
%60 = call i64 @FUNC(i64* nonnull %sv_7)
%61 = trunc i64 %60 to i32
%62 = icmp eq i32 %61, 0
store i64 %sv_3.1.lcssa.reload, i64* %sv_3.2.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %62, label LBL_12, label LBL_17
LBL_12:
%sv_3.2.reload = load i64, i64* %sv_3.2.reg2mem
%63 = inttoptr i64 %sv_3.2.reload to i8*
%64 = load i8, i8* %63, align 1
%65 = icmp eq i8 %64, 0
%66 = icmp eq i1 %65, false
br i1 %66, label LBL_8, label LBL_13
LBL_13:
%67 = inttoptr i64 %arg2 to i8*
%68 = call i8* @strncpy(i8* bitcast (i8** @gv_1 to i8*), i8* %67, i32 9)
store i8 0, i8* bitcast (i64* @gv_2 to i8*), align 8
%69 = call i32 @strlen(i8* bitcast (i8** @gv_1 to i8*))
%70 = sext i32 %69 to i64
%71 = add i64 %70, ptrtoint (i8** @gv_1 to i64)
%72 = inttoptr i64 %71 to i8*
store i64 %33, i64* %sv_2.1.reg2mem
store i64 %44, i64* %sv_1.1.reg2mem
store i8* %72, i8** %sv_0.0.reg2mem
br label LBL_15
LBL_14:
%73 = add i64 %arg2, 1
%74 = inttoptr i64 %73 to i8*
%75 = load i8, i8* %74, align 1
%76 = sext i8 %75 to i64
%77 = and i64 %76, 4294967295
%78 = call i64 @FUNC(i64 %77)
%79 = mul i64 %78, 64
%80 = sext i8 %20 to i64
%81 = and i64 %80, 4294967295
%82 = call i64 @FUNC(i64 %81)
%83 = or i64 %82, %79
store i8 %20, i8* bitcast (i8** @gv_1 to i8*), align 8
%84 = load i8, i8* %74, align 1
%85 = icmp eq i8 %84, 0
%storemerge.in = select i1 %85, i8 %20, i8 %84
store i8 %storemerge.in, i8* bitcast (i64* @gv_3 to i8*), align 8
store i64 25, i64* %sv_2.1.reg2mem
store i64 %83, i64* %sv_1.1.reg2mem
store i8* bitcast (i64* @gv_4 to i8*), i8** %sv_0.0.reg2mem
br label LBL_15
LBL_15:
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%sv_2.1.reload = load i64, i64* %sv_2.1.reg2mem
%86 = call i64 @FUNC(i64 %sv_1.1.reload)
%87 = call i64 @FUNC(i64 0, i64 0, i64* nonnull %sv_5, i64* nonnull %sv_6, i64 %sv_2.1.reload)
%88 = trunc i64 %87 to i32
%89 = icmp eq i32 %88, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %89, label LBL_16, label LBL_17
LBL_16:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%90 = load i64, i64* %sv_5, align 8
%91 = udiv i64 %90, 256
%92 = udiv i64 %90, 67108864
%93 = urem i64 %92, 64
%94 = ptrtoint i8* %sv_0.0.reload to i64
%95 = add i64 %94, 1
%96 = add i64 %93, ptrtoint ([65 x i8]* @gv_5 to i64)
%97 = inttoptr i64 %96 to i8*
%98 = load i8, i8* %97, align 1
store i8 %98, i8* %sv_0.0.reload, align 1
%99 = udiv i64 %90, 1048576
%100 = urem i64 %99, 64
%101 = add i64 %94, 2
%102 = add i64 %100, ptrtoint ([65 x i8]* @gv_5 to i64)
%103 = inttoptr i64 %102 to i8*
%104 = load i8, i8* %103, align 1
%105 = inttoptr i64 %95 to i8*
store i8 %104, i8* %105, align 1
%106 = udiv i64 %90, 16384
%107 = urem i64 %106, 64
%108 = add i64 %94, 3
%109 = add i64 %107, ptrtoint ([65 x i8]* @gv_5 to i64)
%110 = inttoptr i64 %109 to i8*
%111 = load i8, i8* %110, align 1
%112 = inttoptr i64 %101 to i8*
store i8 %111, i8* %112, align 1
%113 = urem i64 %91, 64
%114 = add i64 %94, 4
%115 = add i64 %113, ptrtoint ([65 x i8]* @gv_5 to i64)
%116 = inttoptr i64 %115 to i8*
%117 = load i8, i8* %116, align 1
%118 = inttoptr i64 %108 to i8*
store i8 %117, i8* %118, align 1
%119 = load i64, i64* %sv_5, align 8
%120 = mul i64 %119, 65536
%121 = load i64, i64* %sv_6, align 8
%122 = udiv i64 %121, 65536
%123 = and i64 %122, 61440
%124 = or i64 %123, %120
%125 = udiv i64 %119, 4
%126 = urem i64 %125, 64
%127 = add i64 %94, 5
%128 = add i64 %126, ptrtoint ([65 x i8]* @gv_5 to i64)
%129 = inttoptr i64 %128 to i8*
%130 = load i8, i8* %129, align 1
%131 = inttoptr i64 %114 to i8*
store i8 %130, i8* %131, align 1
%132 = udiv i64 %124, 4096
%133 = urem i64 %132, 64
%134 = add i64 %94, 6
%135 = add i64 %133, ptrtoint ([65 x i8]* @gv_5 to i64)
%136 = inttoptr i64 %135 to i8*
%137 = load i8, i8* %136, align 1
%138 = inttoptr i64 %127 to i8*
store i8 %137, i8* %138, align 1
%139 = udiv i64 %121, 4194304
%140 = urem i64 %139, 64
%141 = add i64 %94, 7
%142 = add i64 %140, ptrtoint ([65 x i8]* @gv_5 to i64)
%143 = inttoptr i64 %142 to i8*
%144 = load i8, i8* %143, align 1
%145 = inttoptr i64 %134 to i8*
store i8 %144, i8* %145, align 1
%146 = urem i64 %122, 64
%147 = add i64 %94, 8
%148 = add i64 %146, ptrtoint ([65 x i8]* @gv_5 to i64)
%149 = inttoptr i64 %148 to i8*
%150 = load i8, i8* %149, align 1
%151 = inttoptr i64 %141 to i8*
store i8 %150, i8* %151, align 1
%152 = load i64, i64* %sv_6, align 8
%153 = udiv i64 %152, 1024
%154 = urem i64 %153, 64
%155 = add i64 %94, 9
%156 = add i64 %154, ptrtoint ([65 x i8]* @gv_5 to i64)
%157 = inttoptr i64 %156 to i8*
%158 = load i8, i8* %157, align 1
%159 = inttoptr i64 %147 to i8*
store i8 %158, i8* %159, align 1
%160 = udiv i64 %152, 16
%161 = urem i64 %160, 64
%162 = add i64 %94, 10
%163 = add i64 %161, ptrtoint ([65 x i8]* @gv_5 to i64)
%164 = inttoptr i64 %163 to i8*
%165 = load i8, i8* %164, align 1
%166 = inttoptr i64 %155 to i8*
store i8 %165, i8* %166, align 1
%167 = mul i64 %152, 4
%168 = and i64 %167, 60
%169 = add i64 %94, 11
%170 = add i64 %168, ptrtoint ([65 x i8]* @gv_5 to i64)
%171 = inttoptr i64 %170 to i8*
%172 = load i8, i8* %171, align 4
%173 = inttoptr i64 %162 to i8*
store i8 %172, i8* %173, align 1
%174 = inttoptr i64 %169 to i8*
store i8 0, i8* %174, align 1
store i64 ptrtoint (i8** @gv_1 to i64), i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %122, { 1, 0 }
uselistorder i64 %119, { 1, 0 }
uselistorder i64 %94, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i8 %57, { 1, 0 }
uselistorder i8* %sv_4.17.reload, { 1, 0 }
uselistorder i8 %20, { 2, 1, 0, 3 }
uselistorder i8 %10, { 1, 0 }
uselistorder i64 %sv_3.013.reload, { 1, 0 }
uselistorder i64 %5, { 2, 0, 3, 1 }
uselistorder i64* %sv_7, { 1, 2, 3, 4, 5, 0 }
uselistorder i64* %sv_6, { 1, 2, 0 }
uselistorder i64* %sv_5, { 1, 2, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i8** %sv_4.014.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.013.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv18.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.012.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.010.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem23, { 2, 0, 1 }
uselistorder i8** %sv_4.17.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_3.16.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_3.1.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_3.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_2.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 2, 1 }
uselistorder i8** %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i64 65536, { 1, 0 }
uselistorder i64 64, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0 }
uselistorder i8* bitcast (i8** @gv_1 to i8*), { 2, 0, 1 }
uselistorder i64 9, { 1, 0 }
uselistorder i64 5, { 2, 0, 1 }
uselistorder i64 62, { 1, 0 }
uselistorder i64 6, { 2, 1, 0 }
uselistorder i64 (i64)* @ascii_to_bin, { 3, 2, 1, 0 }
uselistorder i64 (i64*)* @des_setkey, { 1, 0 }
uselistorder i64 8, { 2, 0, 1 }
uselistorder i8 0, { 1, 2, 4, 5, 3, 6, 0 }
uselistorder i64 1, { 4, 5, 6, 7, 3, 2, 1, 0, 8 }
uselistorder i1 false, { 1, 0, 2, 3, 4 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 0 }
uselistorder i32* @gv_0, { 1, 0 }
uselistorder i32 1, { 22, 21, 20, 19, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 18, 23, 0 }
uselistorder i64 %arg2, { 3, 2, 0, 1 }
uselistorder label LBL_17, { 3, 2, 0, 1 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.