dataset
stringclasses
3 values
file
stringlengths
7
83
fun_name
stringlengths
2
83
llvm_ir_function
stringlengths
61
121k
label
stringclasses
2 values
BinRealVul
kvm_irqchip_add_adapter_route_834
kvm_irqchip_add_adapter_route
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.shrunk.reg2mem = alloca i64 %sv_0 = alloca i32, align 4 store i32 0, i32* %sv_0, align 4 %0 = call i64 @FUNC() %1 = trunc i64 %0 to i32 %2 = icmp eq i32 %1, 0 %3 = icmp eq i1 %2, false store i64 4294967258, i64* %rax.0.shrunk.reg2mem br i1 %3, label LBL_1, label LBL_3 LBL_1: %4 = ptrtoint i64* %arg1 to i64 %5 = call i64 @FUNC(i64 %4) %6 = trunc i64 %5 to i32 %7 = icmp slt i32 %6, 0 %8 = icmp eq i1 %7, false store i64 %5, i64* %rax.0.shrunk.reg2mem br i1 %8, label LBL_2, label LBL_3 LBL_2: store i32 %6, i32* %sv_0, align 4 %9 = bitcast i32* %sv_0 to i64* %10 = call i64 @FUNC(i64 %4, i64* nonnull %9) %11 = call i64 @FUNC(i64 %4) store i64 %5, i64* %rax.0.shrunk.reg2mem br label LBL_3 LBL_3: %rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem %rax.0 = and i64 %rax.0.shrunk.reload, 4294967295 ret i64 %rax.0 uselistorder i64 %5, { 1, 0, 2 } uselistorder i64 %4, { 1, 0, 2 } uselistorder i32* %sv_0, { 2, 1, 0 } uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 3, 1, 2 } uselistorder i32 0, { 1, 2, 0 } uselistorder label LBL_3, { 2, 0, 1 } }
0
BinRealVul
l2cap_connect_rsp_4922
l2cap_connect_rsp
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.in.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg3 to i64 %5 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %6 = urem i64 %3, 65536 %7 = call i64 @FUNC(i64 %6) %8 = trunc i64 %7 to i16 %9 = add i64 %4, 2 %10 = inttoptr i64 %9 to i16* %11 = load i16, i16* %10, align 2 %12 = zext i16 %11 to i64 %13 = call i64 @FUNC(i64 %12) %14 = add i64 %4, 4 %15 = inttoptr i64 %14 to i16* %16 = load i16, i16* %15, align 2 %17 = zext i16 %16 to i64 %18 = call i64 @FUNC(i64 %17) %19 = trunc i64 %18 to i16 %20 = add i64 %4, 6 %21 = inttoptr i64 %20 to i16* %22 = load i16, i16* %21, align 2 %23 = zext i16 %22 to i64 %24 = call i64 @FUNC(i64 %23) %25 = urem i64 %24, 65536 %26 = urem i64 %13, 65536 %27 = call i64 @FUNC(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @gv_0, i64 0, i64 0), i64 %26, i16 %8, i16 %19, i64 %25, i64 %1) %28 = icmp eq i16 %8, 0 br i1 %28, label LBL_2, label LBL_1 LBL_1: %29 = urem i64 %7, 65536 %30 = call i64 @FUNC(i64 %5, i64 %29) %31 = icmp eq i64 %30, 0 %32 = icmp eq i1 %31, false store i64 %30, i64* %sv_0.0.in.reg2mem br i1 %32, label LBL_3, label LBL_8 LBL_2: %33 = urem i64 %2, 256 %34 = call i64 @FUNC(i64 %5, i64 %33) %35 = icmp eq i64 %34, 0 %36 = icmp eq i1 %35, false store i64 %34, i64* %sv_0.0.in.reg2mem br i1 %36, label LBL_3, label LBL_8 LBL_3: %sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem switch i16 %19, label LBL_6 [ i16 0, label LBL_4 i16 1, label LBL_5 ] LBL_4: %37 = trunc i64 %13 to i16 %sv_0.0 = inttoptr i64 %sv_0.0.in.reload to i32* store i32 1, i32* %sv_0.0, align 4 %38 = call i64 @FUNC(i64 %sv_0.0.in.reload) %39 = inttoptr i64 %38 to i8* store i8 0, i8* %39, align 1 %40 = call i64 @FUNC(i64 %sv_0.0.in.reload) %41 = add i64 %40, 2 %42 = inttoptr i64 %41 to i16* store i16 %37, i16* %42, align 2 %43 = call i64 @FUNC(i64 %sv_0.0.in.reload) %44 = add i64 %43, 4 %45 = inttoptr i64 %44 to i16* %46 = load i16, i16* %45, align 2 %47 = or i16 %46, 4 store i16 %47, i16* %45, align 2 %48 = call i64 @FUNC(i64 %sv_0.0.in.reload) %49 = add i64 %48, 4 %50 = inttoptr i64 %49 to i16* %51 = load i16, i16* %50, align 2 %52 = and i16 %51, -9 store i16 %52, i16* %50, align 2 %53 = call i64 @FUNC(i64 %sv_0.0.in.reload, i64* nonnull %sv_1) %54 = call i64 @FUNC(i64 %5) %55 = urem i64 %54, 256 %56 = urem i64 %53, 65536 %57 = call i64 @FUNC(i64 %5, i64 %55, i64 2, i64 %56, i64* nonnull %sv_1) %58 = call i64 @FUNC(i64 %sv_0.0.in.reload) %59 = add i64 %58, 8 %60 = inttoptr i64 %59 to i32* %61 = load i32, i32* %60, align 4 %62 = add i32 %61, 1 store i32 %62, i32* %60, align 4 br label LBL_7 LBL_5: %63 = call i64 @FUNC(i64 %sv_0.0.in.reload) %64 = add i64 %63, 4 %65 = inttoptr i64 %64 to i16* %66 = load i16, i16* %65, align 2 %67 = or i16 %66, 8 store i16 %67, i16* %65, align 2 br label LBL_7 LBL_6: %68 = call i64 @FUNC(i64 %sv_0.0.in.reload, i64 111) br label LBL_7 LBL_7: %69 = call i64 @FUNC(i64 %sv_0.0.in.reload) br label LBL_8 LBL_8: ret i64 0 uselistorder i64 %sv_0.0.in.reload, { 3, 2, 1, 9, 8, 7, 6, 5, 4, 0 } uselistorder i64 %13, { 1, 0 } uselistorder i16 %8, { 1, 0 } uselistorder i64 %5, { 2, 1, 3, 0 } uselistorder i64* %sv_0.0.in.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64)* @l2cap_pi, { 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64)* @__le16_to_cpu, { 3, 2, 1, 0 } uselistorder label LBL_8, { 2, 0, 1 } }
0
BinRealVul
get_mtu_17981
get_mtu
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = inttoptr i64 %arg1 to i8* %1 = call i32 @if_nametoindex(i8* %0) %2 = zext i32 %1 to i64 %3 = call i64 @FUNC(i64 %2) ret i64 %3 }
1
BinRealVul
ffurl_close_4757
ffurl_close
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = icmp eq i64 %arg1, 0 %3 = icmp eq i1 %2, false store i64 0, i64* %storemerge.reg2mem br i1 %3, label LBL_1, label LBL_8 LBL_1: %4 = trunc i64 %1 to i32 %5 = icmp eq i32 %4, 0 %.pre = add i64 %arg1, 8 %.pre2 = inttoptr i64 %.pre to i64* store i64 0, i64* %sv_0.0.reg2mem br i1 %5, label LBL_3, label LBL_2 LBL_2: %6 = load i64, i64* %.pre2, align 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = icmp eq i64 %8, 0 %10 = and i64 %arg1, 4294967295 %spec.select = select i1 %9, i64 0, i64 %10 store i64 %spec.select, i64* %sv_0.0.reg2mem br label LBL_3 LBL_3: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %11 = call i64 @FUNC() %12 = load i64, i64* %.pre2, align 8 %13 = add i64 %12, 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = icmp eq i64 %15, 0 br i1 %16, label LBL_7, label LBL_4 LBL_4: %17 = add i64 %12, 16 %18 = inttoptr i64 %17 to i64* %19 = load i64, i64* %18, align 8 %20 = icmp eq i64 %19, 0 %.pre4 = add i64 %arg1, 16 %.pre6 = inttoptr i64 %.pre4 to i64* br i1 %20, label LBL_6, label LBL_5 LBL_5: %21 = load i64, i64* %.pre6, align 8 %22 = call i64 @FUNC(i64 %21) br label LBL_6 LBL_6: %23 = load i64, i64* %.pre6, align 8 %24 = call i64 @FUNC(i64 %23) br label LBL_7 LBL_7: %25 = call i64 @FUNC(i64 %arg1) store i64 %sv_0.0.reload, i64* %storemerge.reg2mem br label LBL_8 LBL_8: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64)* @av_free, { 1, 0 } uselistorder i32 1, { 3, 2, 1, 0 } uselistorder i64 %arg1, { 3, 0, 2, 1, 4 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
num_entries_8127
num_entries
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i32 %rdx.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %sv_2.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = icmp eq i64* %arg1, null %4 = icmp eq i1 %3, false store i64 0, i64* %storemerge.reg2mem br i1 %4, label LBL_1, label LBL_11 LBL_1: %5 = ptrtoint i64* %arg2 to i64 %6 = ptrtoint i64* %arg1 to i64 store i32 0, i32* %sv_0.0.reg2mem store i64 0, i64* %sv_2.0.reg2mem store i64 %6, i64* %sv_1.0.reg2mem br label LBL_2 LBL_2: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %7 = and i64 %sv_2.0.reload, 4294967295 %8 = add i64 %sv_1.0.reload, %7 %9 = icmp ugt i64 %8, %5 store i64 %7, i64* %rdx.0.reg2mem br i1 %9, label LBL_4, label LBL_3 LBL_3: %10 = add i64 %7, %arg4 %11 = add i64 %10, %sv_1.0.reload %12 = icmp ugt i64 %11, %5 %13 = icmp eq i1 %12, false store i64 %10, i64* %rdx.0.reg2mem br i1 %13, label LBL_5, label LBL_4 LBL_4: %rdx.0.reload = load i64, i64* %rdx.0.reg2mem %14 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_0, i64 0, i64 0), i64 %rdx.0.reload, i64 %arg4, i64 %2, i64 %1) store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br label LBL_10 LBL_5: %15 = inttoptr i64 %8 to i32* %16 = load i32, i32* %15, align 4 %17 = zext i32 %16 to i64 %18 = call i64 @FUNC(i64 %17) %19 = trunc i64 %18 to i32 %20 = icmp slt i32 %19, 0 br i1 %20, label LBL_8, label LBL_6 LBL_6: %sext = mul i64 %18, 4294967296 %21 = ashr exact i64 %sext, 32 %22 = add i64 %21, %8 %23 = icmp ugt i64 %22, %5 br i1 %23, label LBL_8, label LBL_7 LBL_7: %24 = add i64 %22, %arg4 %25 = icmp ugt i64 %24, %5 %26 = icmp eq i1 %25, false br i1 %26, label LBL_9, label LBL_8 LBL_8: %27 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_1, i64 0, i64 0), i64 %5, i64 %arg4, i64 %2, i64 %1) store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br label LBL_10 LBL_9: store i64 %8, i64* %arg3, align 8 %28 = add i32 %sv_0.0.reload, 1 %29 = add i64 %8, 4 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = zext i32 %31 to i64 %33 = call i64 @FUNC(i64 %32) %34 = trunc i64 %33 to i32 %35 = icmp eq i32 %34, 0 store i32 %28, i32* %sv_0.0.reg2mem store i64 %33, i64* %sv_2.0.reg2mem store i64 %8, i64* %sv_1.0.reg2mem store i32 %28, i32* %sv_0.1.reg2mem br i1 %35, label LBL_10, label LBL_2 LBL_10: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %36 = zext i32 %sv_0.1.reload to i64 store i64 %36, i64* %storemerge.reg2mem br label LBL_11 LBL_11: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %8, { 0, 4, 3, 1, 2, 5 } uselistorder i64 %7, { 1, 0, 2 } uselistorder i32 %sv_0.0.reload, { 2, 0, 1 } uselistorder i64 %sv_1.0.reload, { 1, 0 } uselistorder i64 %5, { 4, 0, 1, 2, 3 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_2.0.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_1.0.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64)* @le32_to_cpu, { 1, 0 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @cifs_dbg, { 1, 0 } uselistorder i32 0, { 1, 2, 0 } uselistorder i64 %arg4, { 2, 0, 3, 1 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_11, { 1, 0 } }
0
BinRealVul
keyctl_invalidate_key_10386
keyctl_invalidate_key
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i32 %0 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64 %arg1) %1 = call i64 @FUNC(i64 %arg1, i64 0, i64 1) %2 = icmp eq i64 %1, 0 %3 = icmp eq i1 %2, false br i1 %3, label LBL_3, label LBL_1 LBL_1: %4 = call i64 @FUNC(i64 1) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 store i32 -1, i32* %sv_0.0.reg2mem br i1 %6, label LBL_4, label LBL_2 LBL_2: %7 = call i64 @FUNC(i64 %arg1, i64 0, i64 0) %8 = icmp eq i64 %7, 0 store i32 -1, i32* %sv_0.0.reg2mem br i1 %8, label LBL_4, label LBL_3 LBL_3: store i32 0, i32* %sv_0.0.reg2mem br label LBL_4 LBL_4: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i32 %sv_0.0.reload) %10 = sext i32 %sv_0.0.reload to i64 ret i64 %10 uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64 (i64, i64, i64)* @lookup_user_key, { 1, 0 } uselistorder label LBL_4, { 2, 0, 1 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
op_div_5047
op_div
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = call i64 @FUNC() ret i64 %0 }
0
BinRealVul
auth_client_request_abort_12434
auth_client_request_abort
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 store i64 0, i64* %arg1, align 8 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = zext i32 %3 to i64 %5 = call i64 @FUNC(i64 %0, i64 %4) %6 = call i64 @FUNC(i64 %0, i64 0, i64 0, i64 0) ret i64 %6 }
1
BinRealVul
ipv6_addr_from_str_7883
ipv6_addr_from_str
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.2.reg2mem = alloca i32 %storemerge34.reg2mem = alloca i32 %sv_0.1.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i8 %sv_2.0.reg2mem = alloca i32 %sv_3.0.reg2mem = alloca i64 %sv_0.0.ph13.reg2mem = alloca i32 %sv_1.0.ph12.reg2mem = alloca i8 %sv_2.0.ph11.reg2mem = alloca i32 %sv_3.0.ph10.reg2mem = alloca i64 %sv_0.0.ph.reg2mem = alloca i32 %sv_1.0.ph.reg2mem = alloca i8 %sv_2.0.ph.reg2mem = alloca i32 %sv_4.0.ph.reg2mem = alloca i64 %sv_3.0.ph8.reg2mem = alloca i64 %sv_5.0.in.reg2mem = alloca i8* %sv_6.0.reg2mem = alloca i8* %sv_3.0.ph.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = icmp ne i64* %arg1, null %3 = icmp eq i64 %arg2, 0 %4 = icmp eq i1 %3, false %or.cond = icmp eq i1 %2, %4 store i64 0, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_1, label LBL_25 LBL_1: %5 = ptrtoint i64* %arg1 to i64 %6 = trunc i64 %1 to i8 %7 = call i64 @FUNC(i64 %5) %8 = icmp eq i8 %6, 58 %9 = icmp eq i1 %8, false store i64 %arg2, i64* %sv_3.0.ph.reg2mem br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = add i64 %arg2, 1 %11 = inttoptr i64 %10 to i8* %12 = load i8, i8* %11, align 1 %13 = icmp eq i8 %12, 58 store i64 %10, i64* %sv_3.0.ph.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %13, label LBL_3, label LBL_25 LBL_3: %sv_3.0.ph.reload = load i64, i64* %sv_3.0.ph.reg2mem store i64 %sv_3.0.ph.reload, i64* %sv_3.0.ph8.reg2mem store i64 0, i64* %sv_4.0.ph.reg2mem store i32 0, i32* %sv_2.0.ph.reg2mem store i8 0, i8* %sv_1.0.ph.reg2mem store i32 0, i32* %sv_0.0.ph.reg2mem br label LBL_12 LBL_4: %14 = sext i8 %52 to i32 %15 = call i8* @strchr(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i32 %14) %16 = icmp eq i8* %15, null %17 = icmp eq i1 %16, false store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i8** %sv_6.0.reg2mem store i8* %15, i8** %sv_5.0.in.reg2mem br i1 %17, label LBL_6, label LBL_5 LBL_5: %18 = call i8* @strchr(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0), i32 %14) store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0), i8** %sv_6.0.reg2mem store i8* %18, i8** %sv_5.0.in.reg2mem br label LBL_6 LBL_6: %19 = add i64 %sv_3.0.reload, 1 %sv_5.0.in.reload = load i8*, i8** %sv_5.0.in.reg2mem %20 = icmp eq i8* %sv_5.0.in.reload, null br i1 %20, label LBL_8, label LBL_7 LBL_7: %sv_6.0.reload = load i8*, i8** %sv_6.0.reg2mem %sv_5.0 = ptrtoint i8* %sv_5.0.in.reload to i64 %21 = mul i32 %sv_2.0.reload, 16 %22 = ptrtoint i8* %sv_6.0.reload to i64 %23 = sub i64 %sv_5.0, %22 %24 = trunc i64 %23 to i32 %25 = or i32 %21, %24 %26 = icmp ult i32 %25, 65536 store i64 %19, i64* %sv_3.0.reg2mem store i32 %25, i32* %sv_2.0.reg2mem store i8 1, i8* %sv_1.0.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %26, label LBL_16, label LBL_25 LBL_8: %27 = icmp eq i8 %52, 58 %28 = icmp eq i1 %27, false store i64 0, i64* %rax.0.reg2mem br i1 %28, label LBL_25, label LBL_9 LBL_9: %29 = icmp eq i8 %sv_1.0.reload, 0 %30 = icmp eq i1 %29, false br i1 %30, label LBL_13, label LBL_10 LBL_10: %31 = icmp eq i64 %sv_4.0.ph.reload, 0 store i64 0, i64* %rax.0.reg2mem br i1 %31, label LBL_11, label LBL_25 LBL_11: %32 = urem i32 %sv_0.0.ph13.reload, 256 %33 = zext i32 %32 to i64 %34 = add i64 %33, %5 store i64 %19, i64* %sv_3.0.ph8.reg2mem store i64 %34, i64* %sv_4.0.ph.reg2mem store i32 %sv_2.0.reload, i32* %sv_2.0.ph.reg2mem store i8 %sv_1.0.reload, i8* %sv_1.0.ph.reg2mem store i32 %sv_0.0.ph13.reload, i32* %sv_0.0.ph.reg2mem br label LBL_12 LBL_12: %sv_0.0.ph.reload = load i32, i32* %sv_0.0.ph.reg2mem %sv_1.0.ph.reload = load i8, i8* %sv_1.0.ph.reg2mem %sv_2.0.ph.reload = load i32, i32* %sv_2.0.ph.reg2mem %sv_4.0.ph.reload = load i64, i64* %sv_4.0.ph.reg2mem %sv_3.0.ph8.reload = load i64, i64* %sv_3.0.ph8.reg2mem store i64 %sv_3.0.ph8.reload, i64* %sv_3.0.ph10.reg2mem store i32 %sv_2.0.ph.reload, i32* %sv_2.0.ph11.reg2mem store i8 %sv_1.0.ph.reload, i8* %sv_1.0.ph12.reg2mem store i32 %sv_0.0.ph.reload, i32* %sv_0.0.ph13.reg2mem br label LBL_129 LBL_13: %35 = trunc i32 %sv_0.0.ph13.reload to i8 %36 = icmp ult i8 %35, 17 store i64 0, i64* %rax.0.reg2mem br i1 %36, label LBL_14, label LBL_25 LBL_14: %37 = udiv i32 %sv_2.0.reload, 256 %38 = urem i32 %sv_0.0.ph13.reload, 256 %39 = zext i32 %38 to i64 %40 = trunc i32 %37 to i8 %41 = add i64 %39, %5 %42 = inttoptr i64 %41 to i8* store i8 %40, i8* %42, align 1 %43 = add i32 %sv_0.0.ph13.reload, 1 %44 = mul i32 %43, 16777216 %sext6 = add i32 %44, 16777216 %45 = ashr exact i32 %sext6, 24 %46 = urem i32 %43, 256 %47 = zext i32 %46 to i64 %48 = trunc i32 %sv_2.0.reload to i8 %49 = add i64 %47, %5 %50 = inttoptr i64 %49 to i8* store i8 %48, i8* %50, align 1 store i64 %19, i64* %sv_3.0.ph10.reg2mem store i32 0, i32* %sv_2.0.ph11.reg2mem store i8 0, i8* %sv_1.0.ph12.reg2mem store i32 %45, i32* %sv_0.0.ph13.reg2mem br label LBL_129 LBL_15: %sv_0.0.ph13.reload = load i32, i32* %sv_0.0.ph13.reg2mem %sv_1.0.ph12.reload = load i8, i8* %sv_1.0.ph12.reg2mem %sv_2.0.ph11.reload = load i32, i32* %sv_2.0.ph11.reg2mem %sv_3.0.ph10.reload = load i64, i64* %sv_3.0.ph10.reg2mem store i64 %sv_3.0.ph10.reload, i64* %sv_3.0.reg2mem store i32 %sv_2.0.ph11.reload, i32* %sv_2.0.reg2mem store i8 %sv_1.0.ph12.reload, i8* %sv_1.0.reg2mem br label LBL_16 LBL_16: %sv_1.0.reload = load i8, i8* %sv_1.0.reg2mem %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem %51 = inttoptr i64 %sv_3.0.reload to i8* %52 = load i8, i8* %51, align 1 %53 = icmp eq i8 %52, 0 %54 = icmp eq i1 %53, false br i1 %54, label LBL_4, label LBL_17 LBL_17: %55 = icmp eq i8 %sv_1.0.reload, 0 store i32 %sv_0.0.ph13.reload, i32* %sv_0.1.reg2mem br i1 %55, label LBL_20, label LBL_18 LBL_18: %56 = urem i32 %sv_0.0.ph13.reload, 256 %57 = icmp ult i32 %56, 15 store i64 0, i64* %rax.0.reg2mem br i1 %57, label LBL_19, label LBL_25 LBL_19: %58 = udiv i32 %sv_2.0.reload, 256 %59 = zext i32 %56 to i64 %60 = trunc i32 %58 to i8 %61 = add i64 %59, %5 %62 = inttoptr i64 %61 to i8* store i8 %60, i8* %62, align 1 %63 = add i32 %sv_0.0.ph13.reload, 1 %64 = mul i32 %63, 16777216 %sext = add i32 %64, 16777216 %65 = ashr exact i32 %sext, 24 %66 = urem i32 %63, 256 %67 = zext i32 %66 to i64 %68 = trunc i32 %sv_2.0.reload to i8 %69 = add i64 %67, %5 %70 = inttoptr i64 %69 to i8* store i8 %68, i8* %70, align 1 store i32 %65, i32* %sv_0.1.reg2mem br label LBL_20 LBL_20: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %71 = icmp eq i64 %sv_4.0.ph.reload, 0 store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem br i1 %71, label LBL_24, label LBL_21 LBL_21: %72 = urem i32 %sv_0.1.reload, 256 %73 = sub i64 %5, %sv_4.0.ph.reload %74 = trunc i64 %73 to i32 %75 = add i32 %72, %74 %76 = icmp slt i32 %75, 1 store i32 16, i32* %sv_0.2.reg2mem br i1 %76, label LBL_24, label LBL_22 LBL_22: %77 = add i64 %5, 16 store i32 1, i32* %storemerge34.reg2mem br label LBL_23 LBL_23: %storemerge34.reload = load i32, i32* %storemerge34.reg2mem %78 = sub i32 %75, %storemerge34.reload %79 = sext i32 %78 to i64 %80 = add i64 %sv_4.0.ph.reload, %79 %81 = sext i32 %storemerge34.reload to i64 %82 = inttoptr i64 %80 to i8* %83 = load i8, i8* %82, align 1 %84 = sub i64 %77, %81 %85 = inttoptr i64 %84 to i8* store i8 %83, i8* %85, align 1 store i8 0, i8* %82, align 1 %86 = add i32 %storemerge34.reload, 1 %87 = icmp sgt i32 %86, %75 store i32 %86, i32* %storemerge34.reg2mem store i32 16, i32* %sv_0.2.reg2mem br i1 %87, label LBL_24, label LBL_23 LBL_24: %sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem %88 = trunc i32 %sv_0.2.reload to i8 %89 = icmp eq i8 %88, 16 %. = select i1 %89, i64 %5, i64 0 store i64 %., i64* %rax.0.reg2mem br label LBL_25 LBL_25: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %storemerge34.reload, { 0, 2, 1 } uselistorder i32 %75, { 2, 1, 0 } uselistorder i32 %sv_0.1.reload, { 1, 0 } uselistorder i32 %63, { 1, 0 } uselistorder i32 %56, { 1, 0 } uselistorder i8 %52, { 2, 1, 0 } uselistorder i64 %sv_3.0.reload, { 1, 0 } uselistorder i32 %sv_2.0.reload, { 0, 3, 4, 5, 2, 1 } uselistorder i32 %sv_0.0.ph13.reload, { 3, 6, 0, 4, 7, 1, 5, 2 } uselistorder i32 %43, { 1, 0 } uselistorder i64 %sv_4.0.ph.reload, { 3, 2, 1, 0 } uselistorder i64 %19, { 1, 2, 0 } uselistorder i64 %5, { 7, 6, 5, 3, 4, 0, 1, 2, 8 } uselistorder i64* %sv_3.0.ph.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge34.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 6, 3, 1, 2, 4, 7, 8 } uselistorder i32 24, { 1, 0 } uselistorder i32 16777216, { 3, 0, 2, 1 } uselistorder i32 256, { 0, 2, 1, 3, 5, 6, 4, 7 } uselistorder i8* (i8*, i32)* @strchr, { 1, 0 } uselistorder i8 0, { 2, 4, 5, 0, 3, 1 } uselistorder i1 false, { 4, 1, 2, 3, 5, 0 } uselistorder i64 %arg2, { 2, 0, 1 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_25, { 4, 5, 2, 0, 1, 3, 6, 7 } uselistorder label LBL_23, { 1, 0 } uselistorder label LBL_129, { 1, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
reposvul_c_test
wc_ecc_set_curve_14
wc_ecc_set_curve
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.lcssa4.reg2mem = alloca i64 %storemerge.lcssa.reg2mem = alloca i32 %.reg2mem29 = alloca i32 %storemerge5.reg2mem = alloca i32 %.reg2mem27 = alloca i64 %.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = trunc i64 %arg2 to i32 %sext2 = mul i64 %arg3, 4294967296 %3 = ashr exact i64 %sext2, 32 %4 = icmp eq i32 %2, 0 %5 = icmp slt i32 %2, 0 %6 = icmp eq i1 %5, false %7 = icmp eq i1 %4, false %8 = icmp eq i1 %6, %7 br i1 %8, label LBL_2, label LBL_1 LBL_1: %9 = trunc i64 %3 to i32 %10 = icmp slt i32 %9, 0 %11 = icmp eq i1 %10, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %11, label LBL_2, label LBL_13 LBL_2: %12 = icmp slt i32 %2, 65 store i64 4294967294, i64* %rax.0.reg2mem br i1 %12, label LBL_3, label LBL_13 LBL_3: %13 = trunc i64 %1 to i32 %14 = icmp eq i32 %13, 0 store i64 0, i64* %rax.0.reg2mem br i1 %14, label LBL_13, label LBL_4 LBL_4: %15 = ptrtoint i64* %arg1 to i64 %16 = bitcast i64* %arg1 to i32* store i32 0, i32* %16, align 4 %17 = add i64 %15, 8 %18 = inttoptr i64 %17 to i64* store i64 0, i64* %18, align 8 %19 = load i32, i32* bitcast (i32** @gv_0 to i32*), align 8 %20 = icmp eq i32 %19, 0 %21 = icmp eq i1 %20, false store i32 %19, i32* %.reg2mem29 store i32 0, i32* %storemerge.lcssa.reg2mem store i64 0, i64* %.lcssa4.reg2mem br i1 %21, label LBL_5, label LBL_10 LBL_5: %sext = mul i64 %arg2, 4294967296 %22 = trunc i64 %3 to i32 %23 = icmp slt i32 %22, 1 %24 = ashr exact i64 %sext, 32 store i32 %19, i32* %.reg2mem store i64 0, i64* %.reg2mem27 store i32 0, i32* %storemerge5.reg2mem br label LBL_6 LBL_6: %storemerge5.reload = load i32, i32* %storemerge5.reg2mem %.reload28 = load i64, i64* %.reg2mem27 %.reload = load i32, i32* %.reg2mem br i1 %23, label LBL_8, label LBL_7 LBL_7: %25 = add i64 %.reload28, ptrtoint (i32** @gv_1 to i64) %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 8 %28 = icmp eq i32 %27, %22 %29 = icmp eq i1 %28, false store i32 %.reload, i32* %.reg2mem29 store i32 %storemerge5.reload, i32* %storemerge.lcssa.reg2mem store i64 %.reload28, i64* %.lcssa4.reg2mem br i1 %29, label LBL_9, label LBL_10 LBL_8: %30 = zext i32 %.reload to i64 %31 = icmp sgt i64 %24, %30 store i32 %.reload, i32* %.reg2mem29 store i32 %storemerge5.reload, i32* %storemerge.lcssa.reg2mem store i64 %.reload28, i64* %.lcssa4.reg2mem br i1 %31, label LBL_9, label LBL_10 LBL_9: %32 = add i32 %storemerge5.reload, 1 %33 = sext i32 %32 to i64 %34 = mul i64 %33, 8 %35 = add i64 %34, ptrtoint (i32** @gv_0 to i64) %36 = inttoptr i64 %35 to i32* %37 = load i32, i32* %36, align 8 %38 = icmp eq i32 %37, 0 %39 = icmp eq i1 %38, false store i32 %37, i32* %.reg2mem store i64 %34, i64* %.reg2mem27 store i32 %32, i32* %storemerge5.reg2mem store i32 %37, i32* %.reg2mem29 store i32 %32, i32* %storemerge.lcssa.reg2mem store i64 %34, i64* %.lcssa4.reg2mem br i1 %39, label LBL_6, label LBL_10 LBL_10: %.reload30 = load i32, i32* %.reg2mem29 %40 = icmp eq i32 %.reload30, 0 %41 = icmp eq i1 %40, false br i1 %41, label LBL_12, label LBL_11 LBL_11: %42 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0)) store i64 4294967293, i64* %rax.0.reg2mem br label LBL_13 LBL_12: %.lcssa4.reload = load i64, i64* %.lcssa4.reg2mem %storemerge.lcssa.reload = load i32, i32* %storemerge.lcssa.reg2mem store i32 %storemerge.lcssa.reload, i32* %16, align 4 %43 = add i64 %.lcssa4.reload, ptrtoint (i32** @gv_1 to i64) store i64 %43, i64* %18, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_13 LBL_13: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %.reload, { 0, 2, 1 } uselistorder i32 %storemerge5.reload, { 2, 0, 1 } uselistorder i32 %19, { 1, 0, 2 } uselistorder i32 %2, { 0, 2, 1 } uselistorder i32* %.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem27, { 1, 0, 2 } uselistorder i32* %storemerge5.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem29, { 0, 2, 1, 3, 4 } uselistorder i32* %storemerge.lcssa.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i64* %.lcssa4.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 5, 1, 3, 4 } uselistorder i64 ptrtoint (i32** @gv_1 to i64), { 1, 0 } uselistorder i32** @gv_0, { 1, 0 } uselistorder i1 false, { 2, 4, 3, 0, 5, 6, 1 } uselistorder i32 0, { 3, 4, 1, 0, 2, 5, 6, 7, 8, 9 } uselistorder i64 4294967296, { 1, 0 } uselistorder label LBL_13, { 1, 4, 0, 2, 3 } uselistorder label LBL_10, { 1, 2, 0, 3 } uselistorder label LBL_6, { 1, 0 } }
0
BinRealVul
cin_decode_rle_268
cin_decode_rle
define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.0.in.reg2mem = alloca i64 %rcx.0.reg2mem = alloca i64 %.pre-phi.reg2mem = alloca i64 %rcx.15.reg2mem = alloca i64 %sv_1.06.reg2mem = alloca i64 %sv_0.17.reg2mem = alloca i32* %.reg2mem11 = alloca i64 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg3 to i64 %4 = ptrtoint i32* %arg1 to i64 %sext = mul i64 %arg4, 4294967296 %5 = ashr exact i64 %sext, 32 %6 = add i64 %5, %3 %sext2 = mul i64 %arg2, 4294967296 %7 = ashr exact i64 %sext2, 32 %8 = add i64 %7, %4 %9 = add i64 %4, 1 %10 = icmp ugt i64 %8, %9 %11 = icmp ugt i64 %6, %3 %or.cond4 = icmp eq i1 %10, %11 store i64 %9, i64* %.reg2mem store i64 %4, i64* %.reg2mem11 store i32* %arg1, i32** %sv_0.17.reg2mem store i64 %3, i64* %sv_1.06.reg2mem store i64 %arg4, i64* %rcx.15.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %or.cond4, label LBL_1, label LBL_7 LBL_1: %sv_1.06.reload = load i64, i64* %sv_1.06.reg2mem %sv_0.17.reload = load i32*, i32** %sv_0.17.reg2mem %.reload = load i64, i64* %.reg2mem %12 = bitcast i32* %sv_0.17.reload to i8* %13 = load i8, i8* %12, align 1 %14 = zext i8 %13 to i32 %15 = icmp sgt i8 %13, -1 br i1 %15, label LBL_3, label LBL_2 LBL_2: %.reload12 = load i64, i64* %.reg2mem11 %16 = add nsw i32 %14, -127 %17 = sub i64 %6, %sv_1.06.reload %18 = sext i32 %16 to i64 %19 = sub i64 %17, %18 %20 = xor i64 %17, %18 %21 = xor i64 %19, %17 %22 = and i64 %21, %20 %23 = icmp slt i64 %22, 0 %24 = icmp eq i64 %19, 0 %25 = icmp slt i64 %19, 0 %26 = icmp ne i1 %25, %23 %27 = or i1 %24, %26 %28 = select i1 %27, i64 %17, i64 %18 %29 = add i64 %.reload12, 2 %30 = inttoptr i64 %.reload to i8* %31 = load i8, i8* %30, align 1 %32 = zext i8 %31 to i64 %33 = zext i8 %31 to i32 %34 = inttoptr i64 %sv_1.06.reload to i64* %35 = trunc i64 %28 to i32 %36 = call i64* @memset(i64* %34, i32 %33, i32 %35) store i64 %18, i64* %.pre-phi.reg2mem store i64 %32, i64* %rcx.0.reg2mem store i64 %29, i64* %sv_0.0.in.reg2mem br label LBL_6 LBL_3: %37 = add nuw nsw i32 %14, 1 %38 = zext i32 %37 to i64 %39 = sub i64 %8, %.reload %40 = icmp slt i64 %39, %38 br i1 %40, label LBL_4, label LBL_5 LBL_4: %rcx.15.reload = load i64, i64* %rcx.15.reg2mem %41 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i64 %rcx.15.reload, i64 %2, i64 %1) store i64 4294967295, i64* %storemerge.reg2mem br label LBL_7 LBL_5: %42 = sub i64 %6, %sv_1.06.reload %43 = sub i64 %42, %38 %44 = xor i64 %43, -9223372036854775808 %45 = and i64 %44, %42 %46 = icmp slt i64 %45, 0 %47 = icmp eq i64 %43, 0 %48 = icmp slt i64 %43, 0 %49 = icmp ne i1 %48, %46 %50 = or i1 %47, %49 %51 = select i1 %50, i64 %42, i64 %38 %52 = inttoptr i64 %sv_1.06.reload to i64* %53 = inttoptr i64 %.reload to i64* %54 = trunc i64 %51 to i32 %55 = call i64* @memcpy(i64* %52, i64* %53, i32 %54) %56 = add i64 %.reload, %38 store i64 %38, i64* %.pre-phi.reg2mem store i64 %.reload, i64* %rcx.0.reg2mem store i64 %56, 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 %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %sv_0.0 = inttoptr i64 %sv_0.0.in.reload to i32* %57 = add i64 %.pre-phi.reload, %sv_1.06.reload %58 = add i64 %sv_0.0.in.reload, 1 %59 = icmp ugt i64 %8, %58 %60 = icmp ugt i64 %6, %57 %or.cond = icmp eq i1 %60, %59 store i64 %58, i64* %.reg2mem store i64 %sv_0.0.in.reload, i64* %.reg2mem11 store i32* %sv_0.0, i32** %sv_0.17.reg2mem store i64 %57, i64* %sv_1.06.reg2mem store i64 %rcx.0.reload, i64* %rcx.15.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %or.cond, label LBL_1, label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %sv_0.0.in.reload, { 2, 1, 0 } uselistorder i64 %43, { 1, 2, 0 } uselistorder i64 %42, { 2, 0, 1 } uselistorder i64 %38, { 0, 1, 4, 3, 2 } uselistorder i64 %19, { 1, 2, 0 } uselistorder i64 %18, { 0, 3, 1, 2 } uselistorder i64 %17, { 3, 1, 0, 2 } uselistorder i64 %.reload, { 0, 4, 1, 2, 3 } uselistorder i64 %sv_1.06.reload, { 4, 2, 3, 0, 1 } uselistorder i64 %8, { 2, 1, 0 } uselistorder i64 %6, { 1, 3, 2, 0 } uselistorder i64 %4, { 0, 2, 1 } uselistorder i64 %3, { 0, 2, 1 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem11, { 2, 0, 1 } uselistorder i32** %sv_0.17.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.06.reg2mem, { 2, 0, 1 } uselistorder i64* %rcx.15.reg2mem, { 2, 0, 1 } uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 } uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.in.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 } uselistorder i64* %0, { 1, 0 } uselistorder label LBL_7, { 0, 2, 1 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
truemotion1_decode_end_4327
truemotion1_decode_end
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = add i64 %0, 8 %3 = call i64 @FUNC(i64 %2) ret i64 0 }
0
BinRealVul
relay_set_digest_9096
relay_set_digest
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i32, align 4 %2 = call i64 @FUNC(i64 %1, i64 %0, i64 512) %3 = bitcast i32* %sv_1 to i64* %4 = call i64 @FUNC(i64 %1, i64* nonnull %3, i64 4) %5 = call i64 @FUNC(i64* nonnull %sv_0, i64 %0) %6 = load i32, i32* %sv_1, align 4 %7 = sext i32 %6 to i64 store i64 %7, i64* %sv_0, align 8 %8 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0) ret i64 %8 uselistorder i64* %sv_0, { 0, 2, 1 } }
0
BinRealVul
adx_read_packet_2798
adx_read_packet
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp slt i32 %2, 0 %5 = icmp eq i1 %4, false %6 = icmp eq i1 %3, false %7 = icmp eq i1 %5, %6 br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = and i64 %1, 4294967295 %9 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %10 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %9, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_1, i64 0, i64 0), i64 %8) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_5 LBL_2: %11 = ptrtoint i64* %arg2 to i64 %12 = ptrtoint i64* %arg1 to i64 %13 = add i64 %12, 16 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = mul i32 %2, 2048 %17 = add i64 %12, 8 %18 = inttoptr i64 %17 to i64* %19 = load i64, i64* %18, align 8 %20 = call i64 @FUNC(i64 %19) %21 = trunc i64 %20 to i32 %22 = add i64 %11, 12 %23 = inttoptr i64 %22 to i32* store i32 %21, i32* %23, align 4 %24 = add i64 %11, 16 %25 = inttoptr i64 %24 to i32* store i32 0, i32* %25, align 4 %26 = load i64, i64* %18, align 8 %27 = inttoptr i64 %26 to %_IO_FILE* %28 = call i32 @fread(i64* %arg2, i32 1, i32 %16, %_IO_FILE* %27) %29 = icmp eq i32 %28, %16 br i1 %29, label LBL_4, label LBL_3 LBL_3: call void @free(i64* inttoptr (i64 1 to i64*)) %30 = icmp slt i32 %28, 0 %31 = icmp eq i1 %30, false %32 = zext i32 %28 to i64 %spec.select = select i1 %31, i64 5, i64 %32 ret i64 %spec.select LBL_4: %33 = inttoptr i64 %15 to i32* %34 = add i64 %11, 8 %35 = inttoptr i64 %34 to i32* store i32 %16, i32* %35, align 4 %36 = add i64 %11, 20 %37 = inttoptr i64 %36 to i32* store i32 1, i32* %37, align 4 %38 = load i32, i32* %23, align 4 %39 = load i32, i32* %33, align 4 %40 = sub i32 %38, %39 %41 = ashr i32 %40, 31 %42 = zext i32 %40 to i64 %43 = zext i32 %41 to i64 %44 = mul i64 %43, 4294967296 %45 = or i64 %44, %42 %46 = zext i32 %16 to i64 %47 = sdiv i64 %45, %46 %48 = trunc i64 %47 to i32 %49 = add i64 %11, 24 %50 = inttoptr i64 %49 to i32* store i32 %48, i32* %50, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %28, { 1, 0, 2 } uselistorder i32 %16, { 3, 2, 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } }
0
BinRealVul
asf_write_header_15351
asf_write_header
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 = add i64 %0, 24 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = bitcast i64* %arg1 to i32* store i32 4096, i32* %4, align 4 %5 = add i64 %0, 4 %6 = inttoptr i64 %5 to i32* store i32 0, i32* %6, align 4 %7 = inttoptr i64 %3 to i32* store i32 0, i32* %7, align 4 %8 = call i64 @FUNC(i64 0) %9 = add i64 %3, 8 %10 = inttoptr i64 %9 to i64* store i64 %8, i64* %10, align 8 %11 = add i64 %3, 16 %12 = inttoptr i64 %11 to i32* store i32 100, i32* %12, align 4 %13 = add i64 %3, 20 %14 = inttoptr i64 %13 to i32* store i32 0, i32* %14, align 4 %15 = call i64 @FUNC(i64 %0, i64 0, i64 128) %16 = trunc i64 %15 to i32 %17 = icmp slt i32 %16, 0 %18 = icmp eq i1 %17, false store i64 4294967295, i64* %storemerge.reg2mem br i1 %18, label LBL_1, label LBL_3 LBL_1: %19 = add i64 %0, 16 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = call i64 @FUNC(i64 %21) %23 = add i64 %3, 24 %24 = inttoptr i64 %23 to i32* store i32 0, i32* %24, align 4 %25 = add i64 %3, 28 %26 = inttoptr i64 %25 to i32* store i32 -1, i32* %26, align 4 %27 = add i64 %3, 32 %28 = inttoptr i64 %27 to i32* store i32 -1, i32* %28, align 4 %29 = bitcast i64* %rdi to i32* %30 = load i32, i32* %29, align 8 %31 = add i64 %3, 36 %32 = add i64 %3, 4136 %33 = zext i32 %30 to i64 %34 = call i64 @FUNC(i64 %32, i64 %31, i64 %33, i64 1, i64 0, i64 0) %35 = add i64 %0, 8 %36 = inttoptr i64 %35 to i32* %37 = load i32, i32* %36, align 4 %38 = icmp slt i32 %37, 0 %39 = icmp eq i1 %38, false store i64 0, i64* %storemerge.reg2mem br i1 %39, label LBL_3, label LBL_2 LBL_2: store i32 1, i32* %36, align 4 store i64 0, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %3, { 1, 0, 2, 3, 4, 5, 6, 7, 8 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 } uselistorder label LBL_3, { 1, 0, 2 } }
1
BinRealVul
arm_pmu_acpi_probe_18156
arm_pmu_acpi_probe
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.shrunk.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %rcx.0.reg2mem = alloca i64 %rcx.112.reg2mem = alloca i64 %sv_0.113.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i32, i32* @gv_0, align 4 %4 = icmp eq i32 %3, 0 store i64 0, i64* %indvars.iv.reg2mem store i32 0, i32* %sv_0.113.reg2mem store i64 0, i64* %rax.0.shrunk.reg2mem br i1 %4, label LBL_1, label LBL_10 LBL_1: %rcx.112.reload = load i64, i64* %rcx.112.reg2mem %sv_0.113.reload = load i32, i32* %sv_0.113.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %5 = call i64 @FUNC(i64* nonnull @gv_1, i64 %indvars.iv.reload) %6 = icmp eq i64 %5, 0 store i64 %rcx.112.reload, i64* %rcx.0.reg2mem store i32 %sv_0.113.reload, i32* %sv_0.0.reg2mem br i1 %6, label LBL_9, label LBL_2 LBL_2: %7 = inttoptr i64 %5 to i64* %8 = load i64, i64* %7, align 8 %9 = icmp eq i64 %8, 0 %10 = icmp eq i1 %9, false store i64 %rcx.112.reload, i64* %rcx.0.reg2mem store i32 %sv_0.113.reload, i32* %sv_0.0.reg2mem br i1 %10, label LBL_9, label LBL_3 LBL_3: %11 = trunc i64 %5 to i32 store i64 %rcx.112.reload, i64* %rcx.0.reg2mem store i32 %sv_0.113.reload, i32* %sv_0.0.reg2mem switch i32 %11, label LBL_4 [ i32 19, label LBL_9 i32 0, label LBL_5 ] LBL_4: %12 = call i64 @FUNC(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_2, i64 0, i64 0), i64 %indvars.iv.reload, i64 %arg1, i64 %rcx.112.reload, i64 %2, i64 %1) store i64 %5, i64* %rax.0.shrunk.reg2mem br label LBL_10 LBL_5: %13 = zext i32 %sv_0.113.reload to i64 %14 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0), i64 %8, i64 %13, i64 %2, i64 %1) store i64 %14, i64* %7, align 8 %15 = icmp eq i64 %14, 0 %16 = icmp eq i1 %15, false br i1 %16, label LBL_7, label LBL_6 LBL_6: %17 = call i64 @FUNC(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_4, i64 0, i64 0), i64 %indvars.iv.reload, i64 %5, i64 %13, i64 %2, i64 %1) store i64 12, i64* %rax.0.shrunk.reg2mem br label LBL_10 LBL_7: %18 = add i32 %sv_0.113.reload, 1 %19 = call i64 @FUNC(i64 %5) %20 = trunc i64 %19 to i32 %21 = icmp eq i32 %20, 0 store i64 %13, i64* %rcx.0.reg2mem store i32 %18, i32* %sv_0.0.reg2mem br i1 %21, label LBL_9, label LBL_8 LBL_8: %22 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_5, i64 0, i64 0), i64 %indvars.iv.reload, i64 %5, i64 %13, i64 %2, i64 %1) store i64 %19, i64* %rax.0.shrunk.reg2mem br label LBL_10 LBL_9: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %23 = icmp ult i64 %indvars.iv.next, 4 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.113.reg2mem store i64 %rcx.0.reload, i64* %rcx.112.reg2mem store i64 0, i64* %rax.0.shrunk.reg2mem br i1 %23, label LBL_1, label LBL_10 LBL_10: %rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem %rax.0 = and i64 %rax.0.shrunk.reload, 4294967295 ret i64 %rax.0 uselistorder i64 %13, { 1, 0, 2, 3 } uselistorder i64 %5, { 1, 3, 2, 0, 4, 5, 6 } uselistorder i64 %indvars.iv.reload, { 0, 3, 2, 4, 1 } uselistorder i32 %sv_0.113.reload, { 3, 4, 0, 1, 2 } uselistorder i64 %rcx.112.reload, { 3, 0, 1, 2 } uselistorder i64 %2, { 2, 1, 3, 0 } uselistorder i64 %1, { 2, 1, 3, 0 } uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.113.reg2mem, { 2, 0, 1 } uselistorder i64* %rcx.112.reg2mem, { 1, 0 } uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 1, 5, 4, 3, 2 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @pr_warn, { 2, 1, 0 } uselistorder i32 0, { 3, 1, 0, 4, 2 } uselistorder i32 1, { 11, 10, 9, 8, 7, 6, 5, 4, 13, 12, 3, 1, 14, 2, 0 } uselistorder label LBL_10, { 0, 2, 3, 4, 1 } uselistorder label LBL_9, { 3, 0, 2, 1 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
netif_set_real_num_tx_queues_10447
netif_set_real_num_tx_queues
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %arg2 to i32 %3 = icmp eq i32 %2, 0 store i64 4294967274, i64* %rax.0.reg2mem br i1 %3, label LBL_8, label LBL_1 LBL_1: %sext = mul i64 %arg2, 4294967296 %4 = ashr exact i64 %sext, 32 %5 = trunc i64 %1 to i32 %6 = trunc i64 %4 to i32 %7 = icmp ult i32 %5, %6 store i64 4294967274, i64* %rax.0.reg2mem br i1 %7, label LBL_8, label LBL_2 LBL_2: %8 = ptrtoint i64* %arg1 to i64 %9 = add i64 %8, 8 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = icmp eq i32 %11, 1 %13 = icmp eq i1 %12, false %.pre = add i64 %8, 4 %.pre2 = inttoptr i64 %.pre to i32* br i1 %13, label LBL_7, label LBL_3 LBL_3: %14 = load i32, i32* %.pre2, align 4 %15 = zext i32 %14 to i64 %16 = call i64 @FUNC(i64 %8, i64 %15, i32 %6) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %17, 0 br i1 %18, label LBL_5, label LBL_4 LBL_4: %19 = and i64 %16, 4294967295 store i64 %19, i64* %rax.0.reg2mem br label LBL_8 LBL_5: %20 = load i32, i32* %.pre2, align 4 %21 = icmp ugt i32 %20, %6 %22 = icmp eq i1 %21, false br i1 %22, label LBL_7, label LBL_6 LBL_6: %23 = and i64 %4, 4294967295 %24 = call i64 @FUNC(i64 %8, i64 %23) br label LBL_7 LBL_7: store i32 %6, i32* %.pre2, align 4 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 i32* %.pre2, { 0, 2, 1 } uselistorder i64 %8, { 1, 3, 0, 2 } uselistorder i32 %6, { 1, 0, 2, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64 4294967274, { 1, 0 } uselistorder label LBL_8, { 2, 3, 1, 0 } uselistorder label LBL_7, { 1, 2, 0 } }
0
BinRealVul
flask_security_set_bool_12157
flask_security_set_bool
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.in.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i32, align 4 %sv_2 = alloca i64, align 8 %3 = call i64 @FUNC(i64 %2) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 store i64 %3, i64* %rax.0.in.reg2mem br i1 %5, label LBL_1, label LBL_13 LBL_1: %6 = load i64, i64* @gv_0, align 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = call i64 @FUNC(i64 %8, i64 1) %10 = trunc i64 %9 to i32 %11 = icmp eq i32 %10, 0 store i64 %9, i64* %rax.0.in.reg2mem br i1 %11, label LBL_2, label LBL_13 LBL_2: %12 = trunc i64 %1 to i32 %13 = call i64 @FUNC(i64* nonnull @gv_1) %14 = icmp eq i32 %12, 0 br i1 %14, label LBL_8, label LBL_3 LBL_3: %15 = bitcast i32* %sv_1 to i64* %16 = call i64 @FUNC(i64* nonnull %15, i64 0, i64* nonnull %sv_2) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %17, 0 %19 = icmp eq i1 %18, false store i64 %16, i64* %sv_0.0.reg2mem br i1 %19, label LBL_12, label LBL_4 LBL_4: %20 = add i64 %2, 4 %21 = inttoptr i64 %20 to i32* %22 = load i32, i32* %21, align 4 %23 = load i32, i32* %sv_1, align 4 %24 = icmp ult i32 %22, %23 store i64 4294967294, i64* %sv_0.0.reg2mem br i1 %24, label LBL_5, label LBL_12 LBL_5: %25 = add i64 %2, 8 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = icmp eq i32 %27, 0 %29 = icmp eq i1 %28, false %30 = load i64, i64* %sv_2, align 8 %31 = sext i32 %22 to i64 %32 = mul i64 %31, 4 %33 = add i64 %30, %32 %34 = zext i1 %29 to i32 %35 = inttoptr i64 %33 to i32* store i32 %34, i32* %35, align 4 %36 = load i32, i32* %26, align 4 %37 = icmp eq i32 %36, 0 %38 = icmp eq i1 %37, false %39 = zext i1 %38 to i32 %40 = add i64 %2, 16 %41 = inttoptr i64 %40 to i32* store i32 %39, i32* %41, align 4 %42 = add i64 %2, 12 %43 = inttoptr i64 %42 to i32* store i32 %39, i32* %43, align 4 %44 = load i64, i64* @gv_2, align 8 %45 = icmp eq i64 %44, 0 br i1 %45, label LBL_7, label LBL_6 LBL_6: %46 = load i32, i32* %26, align 4 %47 = icmp eq i32 %46, 0 %48 = icmp eq i1 %47, false %49 = load i32, i32* %21, align 4 %50 = sext i32 %49 to i64 %51 = mul i64 %50, 4 %52 = add i64 %51, %44 %53 = zext i1 %48 to i32 %54 = inttoptr i64 %52 to i32* store i32 %53, i32* %54, align 4 br label LBL_7 LBL_7: %55 = load i64, i64* %sv_2, align 8 %56 = load i32, i32* %sv_1, align 4 %57 = zext i32 %56 to i64 %58 = call i64 @FUNC(i64 %57, i64 %55) %59 = load i64, i64* %sv_2, align 8 %60 = call i64 @FUNC(i64 %59) store i64 %58, i64* %sv_0.0.reg2mem br label LBL_12 LBL_8: %61 = load i64, i64* @gv_2, align 8 %62 = icmp eq i64 %61, 0 %63 = icmp eq i1 %62, false br i1 %63, label LBL_10, label LBL_9 LBL_9: %64 = call i64 @FUNC() br label LBL_10 LBL_10: %65 = add i64 %2, 4 %66 = inttoptr i64 %65 to i32* %67 = load i32, i32* %66, align 4 %68 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4 %69 = icmp ult i32 %67, %68 store i64 %9, i64* %sv_0.0.reg2mem br i1 %69, label LBL_11, label LBL_12 LBL_11: %70 = add i64 %2, 8 %71 = inttoptr i64 %70 to i32* %72 = load i32, i32* %71, align 4 %73 = icmp eq i32 %72, 0 %74 = icmp eq i1 %73, false %75 = load i64, i64* @gv_2, align 8 %76 = sext i32 %67 to i64 %77 = mul i64 %76, 4 %78 = add i64 %75, %77 %79 = zext i1 %74 to i32 %80 = inttoptr i64 %78 to i32* store i32 %79, i32* %80, align 4 %81 = load i32, i32* %71, align 4 %82 = icmp eq i32 %81, 0 %83 = icmp eq i1 %82, false %84 = zext i1 %83 to i32 %85 = add i64 %2, 16 %86 = inttoptr i64 %85 to i32* store i32 %84, i32* %86, align 4 %87 = load i32, i32* %66, align 4 %88 = zext i32 %87 to i64 %89 = call i64 @FUNC(i64 %88) %90 = trunc i64 %89 to i32 %91 = add i64 %2, 12 %92 = inttoptr i64 %91 to i32* store i32 %90, i32* %92, align 4 store i64 0, i64* %sv_0.0.reg2mem br label LBL_12 LBL_12: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %93 = call i64 @FUNC(i64* nonnull @gv_1) store i64 %sv_0.0.reload, i64* %rax.0.in.reg2mem br label LBL_13 LBL_13: %rax.0.in.reload = load i64, i64* %rax.0.in.reg2mem %rax.0 = and i64 %rax.0.in.reload, 4294967295 ret i64 %rax.0 uselistorder i64 %9, { 1, 0, 2 } uselistorder i64* %sv_2, { 1, 2, 3, 0 } uselistorder i32* %sv_1, { 1, 0, 2 } uselistorder i64 %2, { 4, 5, 7, 6, 0, 1, 3, 2, 8 } uselistorder i64* %sv_0.0.reg2mem, { 0, 5, 4, 2, 1, 3 } uselistorder i64* %rax.0.in.reg2mem, { 0, 3, 1, 2 } uselistorder i64 4, { 0, 3, 1, 2, 4 } uselistorder label LBL_13, { 2, 0, 1 } uselistorder label LBL_12, { 3, 1, 4, 0, 2 } }
1
BinRealVul
http_open_13430
http_open
define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rcx.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 1 %6 = icmp eq i1 %5, false %7 = add i64 %arg1, 8 %8 = inttoptr i64 %7 to i32* %. = zext i1 %6 to i32 store i32 %., i32* %8, align 4 %9 = inttoptr i64 %7 to i64* store i64 -1, i64* %9, align 8 %10 = call i64 @FUNC(i64 %arg2) %11 = add i64 %arg1, 16 %12 = inttoptr i64 %11 to i64* store i64 %10, i64* %12, align 8 %13 = icmp eq i64 %10, 0 %14 = icmp eq i1 %13, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %14, label LBL_1, label LBL_14 LBL_1: %15 = ptrtoint i64* %arg4 to i64 %16 = icmp eq i64* %arg4, null store i64 %15, i64* %rcx.0.reg2mem br i1 %16, label LBL_3, label LBL_2 LBL_2: %17 = add i64 %arg1, 24 %18 = call i64 @FUNC(i64 %17, i64 %15, i64 0) store i64 %17, i64* %rcx.0.reg2mem br label LBL_3 LBL_3: %19 = add i64 %arg1, 32 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = icmp eq i64 %21, 0 br i1 %22, label LBL_9, label LBL_4 LBL_4: %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %23 = inttoptr i64 %21 to i8* %24 = call i32 @strlen(i8* %23) %25 = icmp slt i32 %24, 2 br i1 %25, label LBL_6, label LBL_5 LBL_5: %26 = load i64, i64* %20, align 8 %27 = sext i32 %24 to i64 %28 = add nsw i64 %27, -2 %29 = add i64 %28, %26 %30 = inttoptr i64 %29 to i8* %31 = call i32 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* %30) %32 = icmp eq i32 %31, 0 br i1 %32, label LBL_9, label LBL_6 LBL_6: %33 = call i64 @FUNC(i64 %arg1, i64 1, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_1, i64 0, i64 0), i64 %rcx.0.reload, i64 %2, i64 %1) %34 = add i32 %24, 3 %35 = sext i32 %34 to i64 %36 = call i64 @FUNC(i64 %19, i64 %35) %37 = trunc i64 %36 to i32 %38 = icmp slt i32 %37, 0 %39 = icmp eq i1 %38, false br i1 %39, label LBL_8, label LBL_7 LBL_7: %40 = and i64 %36, 4294967295 store i64 %40, i64* %rax.0.reg2mem br label LBL_14 LBL_8: %41 = load i64, i64* %20, align 8 %42 = sext i32 %24 to i64 %43 = add i64 %41, %42 %44 = inttoptr i64 %43 to i8* store i8 13, i8* %44, align 1 %45 = load i64, i64* %20, align 8 %46 = add nsw i64 %42, 1 %47 = add i64 %46, %45 %48 = inttoptr i64 %47 to i8* store i8 10, i8* %48, align 1 %49 = load i64, i64* %20, align 8 %50 = add nsw i64 %42, 2 %51 = add i64 %50, %49 %52 = inttoptr i64 %51 to i8* store i8 0, i8* %52, align 1 br label LBL_9 LBL_9: %53 = add i64 %arg1, 40 %54 = inttoptr i64 %53 to i32* %55 = load i32, i32* %54, align 4 %56 = icmp eq i32 %55, 0 br i1 %56, label LBL_11, label LBL_10 LBL_10: %57 = call i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3, i64 %15) store i64 %57, i64* %rax.0.reg2mem br label LBL_14 LBL_11: %58 = call i64 @FUNC(i64 %arg1, i64 %15) %59 = trunc i64 %58 to i32 %60 = icmp slt i32 %59, 0 %61 = icmp eq i1 %60, false br i1 %61, label LBL_13, label LBL_12 LBL_12: %62 = add i64 %arg1, 24 %63 = call i64 @FUNC(i64 %62) br label LBL_13 LBL_13: %64 = and i64 %58, 4294967295 store i64 %64, i64* %rax.0.reg2mem br label LBL_14 LBL_14: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %42, { 1, 2, 0 } uselistorder i64* %20, { 1, 2, 3, 0, 4 } uselistorder i64 %15, { 2, 3, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 1, { 1, 0 } uselistorder i64 %arg1, { 2, 3, 1, 4, 0, 5, 6, 7, 8 } uselistorder label LBL_14, { 1, 2, 3, 0 } }
0
BinRealVul
gf_bifs_decode_command_list_6991
gf_bifs_decode_command_list
define i64 @FUNC(i64* %arg1, i16 %arg2, i64* %arg3, i32 %arg4, i64* %arg5) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.reg2mem = alloca i64 %0 = icmp ne i64* %arg1, null %1 = icmp ne i64* %arg3, null %or.cond.not = icmp eq i1 %0, %1 %2 = icmp eq i64* %arg5, null %3 = icmp eq i1 %2, false %or.cond5 = icmp eq i1 %or.cond.not, %3 store i64 4294967295, i64* %rax.0.reg2mem br i1 %or.cond5, label LBL_1, label LBL_10 LBL_1: %4 = ptrtoint i64* %arg1 to i64 %5 = zext i16 %arg2 to i64 %6 = call i64 @FUNC(i64 %4, i64 %5) %7 = add i64 %4, 8 %8 = inttoptr i64 %7 to i64* store i64 %6, i64* %8, align 8 %9 = icmp eq i64 %6, 0 %10 = icmp eq i1 %9, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %10, label LBL_2, label LBL_10 LBL_2: %11 = inttoptr i64 %6 to i64* %12 = load i64, i64* %11, align 8 %13 = icmp eq i64 %12, 0 store i64 4294967294, i64* %rax.0.reg2mem br i1 %13, label LBL_3, label LBL_10 LBL_3: %14 = add i64 %4, 16 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = icmp eq i64 %16, 0 %18 = icmp eq i1 %17, false store i64 %16, i64* %.reg2mem br i1 %18, label LBL_5, label LBL_4 LBL_4: call void @__assert_fail(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_1, i64 0, i64 0), i32 105, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_2, i64 0, i64 0)) %.pre = load i64, i64* %15, align 8 store i64 %.pre, i64* %.reg2mem br label LBL_5 LBL_5: %19 = ptrtoint i64* %arg5 to i64 %20 = ptrtoint i64* %arg3 to i64 %.reload = load i64, i64* %.reg2mem %21 = add i64 %4, 24 %22 = inttoptr i64 %21 to i64* store i64 %.reload, i64* %22, align 8 %23 = load i64, i64* %15, align 8 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 %26 = add i64 %4, 32 %27 = inttoptr i64 %26 to i64* store i64 %25, i64* %27, align 8 %28 = zext i32 %arg4 to i64 %29 = call i64 @FUNC(i64 %20, i64 %28, i64 0) %30 = call i64 @FUNC(i64 %29, i64 4198941, i64 %4) %31 = call i64 @FUNC(i64 %4, i64 %29, i64 %19) %32 = trunc i64 %31 to i32 %33 = call i64 @FUNC(i64 %29) %34 = icmp eq i32 %32, 0 %35 = icmp eq i1 %34, false br i1 %35, label LBL_7, label LBL_6 LBL_6: %36 = call i64 @FUNC(i64 %4) br label LBL_7 LBL_7: %37 = add i64 %4, 40 %38 = inttoptr i64 %37 to i64* %39 = load i64, i64* %38, align 8 %40 = call i64 @FUNC(i64 %39) %41 = trunc i64 %40 to i32 %42 = icmp eq i32 %41, 0 %43 = icmp eq i1 %42, false br i1 %43, label LBL_8, label LBL_9 LBL_8: %44 = load i64, i64* %38, align 8 %45 = call i64 @FUNC(i64 %44, i64 0) %46 = inttoptr i64 %45 to i64* %47 = load i64, i64* %46, align 8 %48 = call i64 @FUNC(i64 %47, i64 0) %49 = call i64 @FUNC(i64 %45) %50 = load i64, i64* %38, align 8 %51 = call i64 @FUNC(i64 %50, i64 0) %52 = load i64, i64* %38, align 8 %53 = call i64 @FUNC(i64 %52) %54 = trunc i64 %53 to i32 %55 = icmp eq i32 %54, 0 %56 = icmp eq i1 %55, false br i1 %56, label LBL_8, label LBL_9 LBL_9: store i64 0, i64* %8, align 8 store i64 0, i64* %22, align 8 %57 = and i64 %31, 4294967295 store i64 %57, i64* %rax.0.reg2mem br label LBL_10 LBL_10: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %38, { 3, 1, 2, 0 } uselistorder i64* %15, { 1, 0, 2 } uselistorder i64 %6, { 1, 0, 2 } uselistorder i64 %4, { 1, 0, 3, 2, 4, 5, 6, 8, 7 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64 (i64)* @gf_list_count, { 1, 0 } uselistorder i32 0, { 3, 0, 4, 1, 2 } uselistorder i1 false, { 2, 0, 3, 4, 5, 1 } uselistorder i64* %arg5, { 1, 0 } uselistorder i64* %arg3, { 1, 0 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_10, { 3, 0, 1, 2 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_7, { 1, 0 } }
0
BinRealVul
PredictorDecodeRow_11046
PredictorDecodeRow
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i16 %arg4) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = icmp eq i64 %1, 0 %3 = icmp eq i1 %2, false br i1 %3, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i32 24, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %4 = inttoptr i64 %1 to i64* %5 = load i64, i64* %4, align 8 %6 = icmp eq i64 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_4, label LBL_3 LBL_3: call void @__assert_fail(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i32 25, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0)) br label LBL_4 LBL_4: %8 = add i64 %1, 8 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = icmp eq i64 %10, 0 %12 = icmp eq i1 %11, false br i1 %12, label LBL_6, label LBL_5 LBL_5: call void @__assert_fail(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i32 26, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0)) br label LBL_6 LBL_6: %13 = trunc i64 %0 to i32 %14 = icmp ne i32 %13, 0 %. = zext i1 %14 to i64 ret i64 %. uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 2, 1, 0 } }
1
BinRealVul
cleanup_17999
cleanup
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.lcssa.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %0 = load i8, i8* bitcast (i8** @gv_0 to i8*), align 8 %1 = icmp eq i8 %0, 0 br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = call i32 @unlink(i8* bitcast (i8** @gv_0 to i8*)) br label LBL_2 LBL_2: %3 = trunc i64 %arg1 to i32 %4 = icmp sgt i32 %3, 0 store i64 0, i64* %storemerge.lcssa.reg2mem br i1 %4, label LBL_3, label LBL_7 LBL_3: %wide.trip.count = and i64 %arg1, 4294967295 store i64 0, i64* %indvars.iv.reg2mem br label LBL_4 LBL_4: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %5 = mul i64 %indvars.iv.reload, 8 %6 = add i64 %5, %arg2 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = icmp eq i64 %8, 0 br i1 %9, label LBL_6, label LBL_5 LBL_5: %10 = inttoptr i64 %8 to i8* %11 = call i32 @unlink(i8* %10) %12 = load i64, i64* %7, align 8 %13 = inttoptr i64 %12 to i64* call void @free(i64* %13) br label LBL_6 LBL_6: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 %wide.trip.count, i64* %storemerge.lcssa.reg2mem br i1 %exitcond, label LBL_7, label LBL_4 LBL_7: %storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem ret i64 %storemerge.lcssa.reload uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 } uselistorder i32 (i8*)* @unlink, { 1, 0 } uselistorder i32 1, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
init_vlcs_16304
init_vlcs
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = load i32, i32* @gv_0, align 4 %1 = zext i32 %0 to i64 %2 = icmp eq i32 %0, 0 %3 = icmp eq i1 %2, false store i64 %1, i64* %rax.0.reg2mem br i1 %3, label LBL_2, label LBL_1 LBL_1: store i32 1, i32* @gv_0, align 4 %4 = call i64 @FUNC(i64* nonnull @gv_1, i64 256, i64 17, i64* nonnull @gv_2, i64 2, i64 1) %5 = call i64 @FUNC(i64* nonnull @gv_3, i64 256, i64 8, i64* nonnull @gv_4, i64 2, i64 1) %6 = call i64 @FUNC(i64* nonnull @gv_5, i64 256, i64 16, i64* nonnull @gv_6, i64 2, i64 1) %7 = call i64 @FUNC(i64* nonnull @gv_7, i64 256, i64 7, i64* nonnull @gv_8, i64 2, i64 1) %8 = call i64 @FUNC(i64* nonnull @gv_9, i64 128, i64 63, i64* nonnull @gv_10, i64 2, i64 1) store i64 %8, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 (i64*, i64, i64, i64*, i64, i64)* @init_vlc, { 4, 3, 2, 1, 0 } uselistorder i32 0, { 1, 0 } uselistorder i32* @gv_0, { 1, 0 } }
1
BinRealVul
gluster_compare_hosts_8313
gluster_compare_hosts
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = trunc i64 %1 to i32 %4 = trunc i64 %2 to i32 %5 = icmp eq i32 %3, %4 store i64 0, i64* %rax.0.reg2mem br i1 %5, label LBL_1, label LBL_8 LBL_1: %6 = icmp sgt i32 %3, 3 br i1 %6, label LBL_7, label LBL_2 LBL_2: %7 = ptrtoint i64* %arg2 to i64 %8 = icmp eq i32 %3, 1 br i1 %8, label LBL_4, label LBL_3 LBL_3: %9 = icmp sgt i32 %3, 0 %10 = or i32 %3, 1 %11 = icmp eq i32 %10, 3 %or.cond3 = icmp eq i1 %9, %11 br i1 %or.cond3, label LBL_5, label LBL_7 LBL_4: %12 = add i64 %7, 8 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = ptrtoint i32* %arg1 to i64 %16 = add i64 %15, 8 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = inttoptr i64 %18 to i8* %20 = inttoptr i64 %14 to i8* %21 = call i32 @strcmp(i8* %19, i8* %20) %22 = icmp eq i32 %21, 0 %23 = icmp eq i1 %22, false store i64 1, i64* %rax.0.reg2mem br i1 %23, label LBL_7, label LBL_8 LBL_5: %24 = add i64 %7, 8 %25 = inttoptr i64 %24 to i64* %26 = load i64, i64* %25, align 8 %27 = ptrtoint i32* %arg1 to i64 %28 = add i64 %27, 8 %29 = inttoptr i64 %28 to i64* %30 = load i64, i64* %29, align 8 %31 = inttoptr i64 %30 to i8* %32 = inttoptr i64 %26 to i8* %33 = call i32 @strcmp(i8* %31, i8* %32) %34 = icmp eq i32 %33, 0 %35 = icmp eq i1 %34, false br i1 %35, label LBL_7, label LBL_6 LBL_6: %36 = add i64 %7, 16 %37 = inttoptr i64 %36 to i64* %38 = load i64, i64* %37, align 8 %39 = add i64 %27, 16 %40 = inttoptr i64 %39 to i64* %41 = load i64, i64* %40, align 8 %42 = inttoptr i64 %41 to i8* %43 = inttoptr i64 %38 to i8* %44 = call i32 @strcmp(i8* %42, i8* %43) %45 = icmp eq i32 %44, 0 %46 = icmp eq i1 %45, false store i64 1, i64* %rax.0.reg2mem br i1 %46, label LBL_7, label LBL_8 LBL_7: 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 i32 %3, { 2, 4, 1, 3, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i64* %0, { 1, 0 } uselistorder i32 (i8*, i8*)* @strcmp, { 2, 0, 1 } uselistorder i32 3, { 1, 0 } uselistorder label LBL_8, { 3, 0, 1, 2 } uselistorder label LBL_7, { 2, 1, 3, 0, 4 } }
0
BinRealVul
int_x509_param_set_hosts_11382
int_x509_param_set_hosts
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = icmp eq i64 %arg3, 0 store i64 %0, i64* %rdi.0.reg2mem br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = inttoptr i64 %arg3 to i64* %3 = trunc i64 %arg4 to i32 %4 = call i64* @memchr(i64* %2, i32 0, i32 %3) %5 = icmp eq i64* %4, null store i64 %arg3, i64* %rdi.0.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %5, label LBL_2, label LBL_9 LBL_2: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %6 = trunc i64 %arg2 to i32 %7 = icmp eq i32 %6, 1 %8 = icmp eq i1 %7, false %9 = icmp eq i64 %rdi.0.reload, 0 %or.cond = or i1 %8, %9 br i1 %or.cond, label LBL_4, label LBL_3 LBL_3: %10 = call i64 @FUNC(i64 %rdi.0.reload) store i64 0, i64* %arg1, align 8 br label LBL_4 LBL_4: %11 = icmp ne i64 %arg3, 0 %12 = icmp eq i64 %arg4, 0 %13 = icmp eq i1 %12, false %or.cond4 = icmp eq i1 %11, %13 store i64 1, i64* %rax.0.reg2mem br i1 %or.cond4, label LBL_5, label LBL_9 LBL_5: %14 = inttoptr i64 %arg3 to i8* %15 = trunc i64 %arg4 to i32 %16 = call i8* @strndup(i8* %14, i32 %15) %17 = icmp eq i8* %16, null %18 = icmp eq i1 %17, false store i64 0, i64* %rax.0.reg2mem br i1 %18, label LBL_6, label LBL_9 LBL_6: %19 = ptrtoint i8* %16 to i64 %20 = call i64 @FUNC(i64 %arg3, i64 %19) %21 = trunc i64 %20 to i32 %22 = icmp eq i32 %21, 0 %23 = icmp eq i1 %22, false store i64 1, i64* %rax.0.reg2mem br i1 %23, label LBL_9, label LBL_7 LBL_7: %24 = bitcast i8* %16 to i64* call void @free(i64* %24) %25 = call i64 @FUNC(i64 %19) %26 = icmp eq i64 %25, 0 %27 = icmp eq i1 %26, false store i64 0, i64* %rax.0.reg2mem br i1 %27, label LBL_9, label LBL_8 LBL_8: %28 = call i64 @FUNC(i64 %19) store i64 0, i64* %arg1, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i8* %16, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4, 5, 6 } uselistorder void (i64*)* @free, { 2, 1, 0 } uselistorder i1 false, { 1, 2, 3, 0, 4, 5 } uselistorder i32 0, { 1, 0 } uselistorder i64 %arg4, { 1, 0, 2 } uselistorder i64 %arg3, { 2, 4, 3, 0, 1, 5 } uselistorder label LBL_9, { 2, 1, 0, 3, 4, 5 } }
1
BinRealVul
checkpoint_18620
checkpoint
define i64 @FUNC() local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.reg2mem13 = alloca i64 %.pre-phi.reg2mem = alloca i64 %.reg2mem11 = alloca i64 %.reg2mem9 = alloca i64 %.reg2mem7 = alloca i64 %.reg2mem = alloca i64 %0 = load i64, i64* @gv_0, align 8 %1 = call i64 @FUNC(i64 %0, i64 0) %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = icmp eq i32 %3, 2 br i1 %4, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_2, i64 0, i64 0), i32 44, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0)) br label LBL_2 LBL_2: %5 = load i64, i64* @gv_0, align 8 %6 = call i64 @FUNC(i64 %5) %7 = load i64, i64* @gv_0, align 8 %8 = call i64 @FUNC(i64 %7) %9 = load i64, i64* @gv_0, align 8 %10 = add i64 %9, 64 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = icmp eq i64 %12, 0 store i64 %9, i64* %.reg2mem br i1 %13, label LBL_6, label LBL_3 LBL_3: %14 = add i64 %9, 72 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = icmp eq i32 %16, 0 %18 = icmp eq i1 %17, false store i64 %9, i64* %.reg2mem br i1 %18, label LBL_6, label LBL_4 LBL_4: %19 = add i64 %12, 4 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = urem i32 %21, 2 %23 = icmp eq i32 %22, 0 %24 = icmp eq i1 %23, false store i64 %9, i64* %.reg2mem br i1 %24, label LBL_6, label LBL_5 LBL_5: call void @__assert_fail(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_2, i64 0, i64 0), i32 47, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0)) %.pre = load i64, i64* @gv_0, align 8 store i64 %.pre, i64* %.reg2mem br label LBL_6 LBL_6: %.reload = load i64, i64* %.reg2mem %25 = add i64 %.reload, 56 %26 = inttoptr i64 %25 to i64* %27 = load i64, i64* %26, align 8 %28 = add i64 %27, 16 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = icmp eq i32 %30, 15 store i64 %.reload, i64* %.reg2mem7 br i1 %31, label LBL_8, label LBL_7 LBL_7: %32 = load %_IO_FILE*, %_IO_FILE** @gv_5, align 8 %33 = call i32 @fwrite(i64* bitcast ([9 x i8]* @gv_6 to i64*), i32 1, i32 8, %_IO_FILE* %32) %.pre1 = load i64, i64* @gv_0, align 8 store i64 %.pre1, i64* %.reg2mem7 br label LBL_8 LBL_8: %.reload8 = load i64, i64* %.reg2mem7 %34 = inttoptr i64 %.reload8 to i64* %35 = load i64, i64* %34, align 8 %36 = add i64 %.reload8, 8 %37 = inttoptr i64 %36 to i64* %38 = load i64, i64* %37, align 8 %39 = add i64 %.reload8, 16 %40 = inttoptr i64 %39 to i64* %41 = load i64, i64* %40, align 8 %42 = mul i64 %41, %38 %43 = icmp ult i64 %35, %42 %44 = icmp eq i1 %43, false store i64 %.reload8, i64* %.reg2mem9 br i1 %44, label LBL_10, label LBL_9 LBL_9: call void @__assert_fail(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @gv_7, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_2, i64 0, i64 0), i32 52, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0)) %.pre2 = load i64, i64* @gv_0, align 8 store i64 %.pre2, i64* %.reg2mem9 br label LBL_10 LBL_10: %.reload10 = load i64, i64* %.reg2mem9 %45 = add i64 %.reload10, 32 %46 = inttoptr i64 %45 to i64* %47 = load i64, i64* %46, align 8 %48 = add i64 %.reload10, 40 %49 = inttoptr i64 %48 to i64* %50 = load i64, i64* %49, align 8 %51 = add i64 %.reload10, 48 %52 = inttoptr i64 %51 to i64* %53 = load i64, i64* %52, align 8 %54 = mul i64 %53, %50 %55 = icmp ult i64 %47, %54 %56 = icmp eq i1 %55, false store i64 %.reload10, i64* %.reg2mem11 br i1 %56, label LBL_12, label LBL_11 LBL_11: call void @__assert_fail(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @gv_8, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_2, i64 0, i64 0), i32 53, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0)) %.pre3 = load i64, i64* @gv_0, align 8 store i64 %.pre3, i64* %.reg2mem11 br label LBL_12 LBL_12: %.reload12 = load i64, i64* %.reg2mem11 %57 = add i64 %.reload12, 16 %58 = inttoptr i64 %57 to i64* %59 = load i64, i64* %58, align 8 %60 = icmp ult i64 %59, 47 store i64 %59, i64* %rax.0.reg2mem br i1 %60, label LBL_20, label LBL_13 LBL_13: %61 = call i64 @FUNC(i64 %.reload12, i64 47) %62 = icmp eq i64 %61, 0 %63 = icmp eq i1 %62, false br i1 %63, label LBL_15, label LBL_14 LBL_14: call void @__assert_fail(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_9, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_2, i64 0, i64 0), i32 56, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0)) br label LBL_15 LBL_15: %64 = add i64 %61, 8 %65 = inttoptr i64 %64 to i32* %66 = load i32, i32* %65, align 4 %67 = sext i32 %66 to i64 %68 = load i64, i64* @gv_0, align 8 %69 = add i64 %68, 48 %70 = inttoptr i64 %69 to i64* %71 = load i64, i64* %70, align 8 %72 = icmp ugt i64 %71, %67 store i64 %67, i64* %.pre-phi.reg2mem store i64 %68, i64* %.reg2mem13 br i1 %72, label LBL_17, label LBL_16 LBL_16: call void @__assert_fail(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_10, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_2, i64 0, i64 0), i32 57, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0)) %.pre4 = load i32, i32* %65, align 4 %.pre5 = load i64, i64* @gv_0, align 8 %.pre6 = sext i32 %.pre4 to i64 store i64 %.pre6, i64* %.pre-phi.reg2mem store i64 %.pre5, i64* %.reg2mem13 br label LBL_17 LBL_17: %.reload14 = load i64, i64* %.reg2mem13 %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %73 = add i64 %.reload14, 32 %74 = call i64 @FUNC(i64 %73, i64 %.pre-phi.reload) %75 = add i64 %74, 4 %76 = inttoptr i64 %75 to i64* %77 = call i32 @memcmp(i64* %76, i64* bitcast ([12 x i8]* @gv_11 to i64*), i32 11) %78 = icmp eq i32 %77, 0 store i64 0, i64* %rax.0.reg2mem br i1 %78, label LBL_20, label LBL_18 LBL_18: %79 = inttoptr i64 %75 to i8* %80 = load i8, i8* %79, align 1 %81 = icmp eq i8 %80, 0 store i64 0, i64* %rax.0.reg2mem br i1 %81, label LBL_20, label LBL_19 LBL_19: call void @__assert_fail(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @gv_12, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_2, i64 0, i64 0), i32 59, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0)) store i64 ptrtoint (i32* @0 to i64), 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 %9, { 2, 1, 3, 0, 4 } uselistorder i64* %.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64* %.reg2mem7, { 0, 2, 1 } uselistorder i64* %.reg2mem9, { 0, 2, 1 } uselistorder i64* %.reg2mem11, { 0, 2, 1 } uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 } uselistorder i64* %.reg2mem13, { 0, 2, 1 } uselistorder i8 0, { 1, 0 } uselistorder i64 47, { 1, 0 } uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64, i64)* @array_get, { 2, 1, 0 } uselistorder i32 1, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder label LBL_20, { 3, 1, 0, 2 } }
1
BinRealVul
PMIi_WriteSimpleCommand_7652
PMIi_WriteSimpleCommand
define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %0 = alloca i64 %rsi.2.reg2mem = alloca i64 %rdx.0.reg2mem = alloca i64 %rcx.2.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_1.0.ph.reg2mem = alloca i64 %sv_2.3.lcssa.reg2mem = alloca i32 %sv_3.2.lcssa.reg2mem = alloca i8* %sv_2.2.lcssa.reg2mem = alloca i32 %sv_3.2.in.lcssa.reg2mem = alloca i64 %sv_2.1.reg2mem = alloca i32 %sv_3.1.reg2mem = alloca i8* %.reg2mem86 = alloca i8 %sv_3.2.in14.reg2mem = alloca i64 %sv_2.215.reg2mem = alloca i32 %storemerge516.reg2mem = alloca i32 %sv_3.217.reg2mem = alloca i8* %.reg2mem84 = alloca i64 %.reg2mem82 = alloca i64 %sv_2.32147.reg2mem = alloca i32 %sv_3.32048.reg2mem = alloca i8* %.reg2mem80 = alloca i64 %.reg2mem = alloca i64* %indvars.iv.reg2mem = alloca i64 %rsi.0.reg2mem = alloca i64 %rcx.0.reg2mem = alloca i64 %sv_2.0.reg2mem = alloca i32 %sv_3.0.reg2mem = alloca i8* %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg4 to i64 %3 = ptrtoint i64* %arg2 to i64 %sv_4 = alloca i64, align 8 %sv_5 = alloca i64, align 8 %sv_6 = alloca i64, align 8 %4 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %arg3, i64 %2, i64 %arg5, i64 %1) %5 = call i64* @memset(i64* nonnull %sv_5, i32 32, i32 10) %6 = inttoptr i64 %arg3 to i8* %7 = call i32 @strlen(i8* %6) %8 = icmp ult i32 %7, 257 store i64 4294967295, i64* %sv_0.0.reg2mem store i64 %2, i64* %rcx.2.reg2mem store i64 10, i64* %rdx.0.reg2mem store i64 32, i64* %rsi.2.reg2mem br i1 %8, label LBL_1, label LBL_28 LBL_1: %9 = ptrtoint i64* %sv_5 to i64 %10 = add i64 %9, 10 %11 = inttoptr i64 %10 to i8* %12 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %11, i32 1024, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i8* %6) %13 = icmp slt i32 %12, 1024 store i64 4294967295, i64* %sv_0.0.reg2mem store i64 %arg3, i64* %rcx.2.reg2mem store i64 ptrtoint ([8 x i8]* @gv_1 to i64), i64* %rdx.0.reg2mem store i64 1024, i64* %rsi.2.reg2mem br i1 %13, label LBL_2, label LBL_28 LBL_2: %14 = sext i32 %12 to i64 %15 = add i64 %10, %14 %16 = inttoptr i64 %15 to i8* %17 = sub i32 1024, %12 %18 = icmp eq i64* %arg2, null store i8* %16, i8** %sv_3.0.reg2mem store i32 %17, i32* %sv_2.0.reg2mem store i64 %arg3, i64* %rcx.0.reg2mem store i64 1024, i64* %rsi.0.reg2mem br i1 %18, label LBL_5, label LBL_3 LBL_3: %19 = sext i32 %17 to i64 %20 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %16, i32 %17, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %arg2) %21 = icmp sgt i32 %17, %20 store i64 4294967295, i64* %sv_0.0.reg2mem store i64 %3, i64* %rcx.2.reg2mem store i64 ptrtoint ([10 x i8]* @gv_2 to i64), i64* %rdx.0.reg2mem store i64 %19, i64* %rsi.2.reg2mem br i1 %21, label LBL_4, label LBL_28 LBL_4: %22 = sext i32 %20 to i64 %23 = add i64 %15, %22 %24 = inttoptr i64 %23 to i8* %25 = sub i32 %17, %20 store i8* %24, i8** %sv_3.0.reg2mem store i32 %25, i32* %sv_2.0.reg2mem store i64 %3, i64* %rcx.0.reg2mem store i64 %19, i64* %rsi.0.reg2mem br label LBL_5 LBL_5: %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %26 = trunc i64 %arg5 to i32 %27 = icmp sgt i32 %26, 0 store i32 %sv_2.0.reload, i32* %sv_2.3.lcssa.reg2mem br i1 %27, label LBL_6, label LBL_16 LBL_6: %rsi.0.reload = load i64, i64* %rsi.0.reg2mem %rcx.0.reload = load i64, i64* %rcx.0.reg2mem %28 = load i64, i64* %arg4, align 8 %29 = inttoptr i64 %28 to i8* %30 = call i32 @strlen(i8* %29) %31 = icmp ult i32 %30, 257 store i64 4294967295, i64* %sv_0.0.reg2mem store i64 %rcx.0.reload, i64* %rcx.2.reg2mem store i64 0, i64* %rdx.0.reg2mem store i64 %rsi.0.reload, i64* %rsi.2.reg2mem br i1 %31, label LBL_7, label LBL_28 LBL_7: %sv_3.0.reload = load i8*, i8** %sv_3.0.reg2mem %sext = mul i64 %arg5, 4294967296 %32 = ashr exact i64 %sext, 32 store i64 0, i64* %indvars.iv.reg2mem store i64* %arg4, i64** %.reg2mem store i64 0, i64* %.reg2mem80 store i8* %sv_3.0.reload, i8** %sv_3.32048.reg2mem store i32 %sv_2.0.reload, i32* %sv_2.32147.reg2mem br label LBL_9 LBL_8: %sv_3.2.in.lcssa.reload = load i64, i64* %sv_3.2.in.lcssa.reg2mem %33 = add i64 %sv_3.2.in.lcssa.reload, 1 %34 = inttoptr i64 %33 to i8* %35 = mul i64 %indvars.iv.next, 8 %36 = add i64 %35, %2 %37 = inttoptr i64 %36 to i64* %38 = load i64, i64* %37, align 8 %39 = inttoptr i64 %38 to i8* %40 = call i32 @strlen(i8* %39) %41 = icmp ult i32 %40, 257 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64* %37, i64** %.reg2mem store i64 %35, i64* %.reg2mem80 store i8* %34, i8** %sv_3.32048.reg2mem store i32 %77, i32* %sv_2.32147.reg2mem store i64 4294967295, i64* %sv_0.0.reg2mem store i64 %42, i64* %rcx.2.reg2mem store i64 %35, i64* %rdx.0.reg2mem store i64 %43, i64* %rsi.2.reg2mem br i1 %41, label LBL_9, label LBL_28 LBL_9: %sv_2.32147.reload = load i32, i32* %sv_2.32147.reg2mem %sv_3.32048.reload = load i8*, i8** %sv_3.32048.reg2mem %.reload = load i64*, i64** %.reg2mem %42 = load i64, i64* %.reload, align 8 %43 = sext i32 %sv_2.32147.reload to i64 %44 = inttoptr i64 %42 to i8* %45 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %sv_3.32048.reload, i32 %sv_2.32147.reload, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_3, i64 0, i64 0), i8* %44) %46 = icmp sgt i32 %sv_2.32147.reload, %45 store i64 4294967295, i64* %sv_0.0.reg2mem store i64 %42, i64* %rcx.2.reg2mem store i64 ptrtoint ([4 x i8]* @gv_3 to i64), i64* %rdx.0.reg2mem store i64 %43, i64* %rsi.2.reg2mem br i1 %46, label LBL_10, label LBL_28 LBL_10: %.reload81 = load i64, i64* %.reg2mem80 %47 = load i64, i64* %.reload, align 8 %48 = add i64 %47, 512 %49 = inttoptr i64 %48 to i32* %50 = load i32, i32* %49, align 4 %51 = icmp slt i32 %50, 257 store i64 4294967295, i64* %sv_0.0.reg2mem store i64 %42, i64* %rcx.2.reg2mem store i64 %.reload81, i64* %rdx.0.reg2mem store i64 %43, i64* %rsi.2.reg2mem br i1 %51, label LBL_11, label LBL_28 LBL_11: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %52 = sext i32 %45 to i64 %53 = ptrtoint i8* %sv_3.32048.reload to i64 %54 = add i64 %52, %53 %55 = sub i32 %sv_2.32147.reload, %45 %sv_3.213 = inttoptr i64 %54 to i8* %56 = icmp eq i32 %50, 0 store i64 0, i64* %.reg2mem82 store i64 %47, i64* %.reg2mem84 store i8* %sv_3.213, i8** %sv_3.217.reg2mem store i32 0, i32* %storemerge516.reg2mem store i32 %55, i32* %sv_2.215.reg2mem store i64 %54, i64* %sv_3.2.in14.reg2mem store i64 %54, i64* %sv_3.2.in.lcssa.reg2mem store i32 %55, i32* %sv_2.2.lcssa.reg2mem store i8* %sv_3.213, i8** %sv_3.2.lcssa.reg2mem br i1 %56, label LBL_15, label LBL_12 LBL_12: %sv_2.215.reload = load i32, i32* %sv_2.215.reg2mem %storemerge516.reload = load i32, i32* %storemerge516.reg2mem %sv_3.217.reload = load i8*, i8** %sv_3.217.reg2mem %.reload85 = load i64, i64* %.reg2mem84 %.reload83 = load i64, i64* %.reg2mem82 %57 = add nsw i64 %.reload83, 256 %58 = add i64 %57, %.reload85 %59 = inttoptr i64 %58 to i8* %60 = load i8, i8* %59, align 1 %61 = icmp eq i8 %60, 59 %62 = icmp eq i1 %61, false store i8 %60, i8* %.reg2mem86 store i8* %sv_3.217.reload, i8** %sv_3.1.reg2mem store i32 %sv_2.215.reload, i32* %sv_2.1.reg2mem br i1 %62, label LBL_14, label LBL_13 LBL_13: %sv_3.2.in14.reload = load i64, i64* %sv_3.2.in14.reg2mem store i8 59, i8* %sv_3.217.reload, align 1 %63 = add i64 %sv_3.2.in14.reload, 1 %64 = inttoptr i64 %63 to i8* %65 = add i32 %sv_2.215.reload, -1 %.pre = load i64, i64* %.reload, align 8 %.pre34 = add i64 %.pre, %57 %.pre35 = inttoptr i64 %.pre34 to i8* %.pre79 = load i8, i8* %.pre35, align 1 store i8 %.pre79, i8* %.reg2mem86 store i8* %64, i8** %sv_3.1.reg2mem store i32 %65, i32* %sv_2.1.reg2mem br label LBL_14 LBL_14: %sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem %sv_3.1.reload = load i8*, i8** %sv_3.1.reg2mem %.reload87 = load i8, i8* %.reg2mem86 store i8 %.reload87, i8* %sv_3.1.reload, align 1 %66 = ptrtoint i8* %sv_3.1.reload to i64 %67 = add i64 %66, 1 %68 = add i32 %sv_2.1.reload, -1 %69 = add i32 %storemerge516.reload, 1 %sv_3.2 = inttoptr i64 %67 to i8* %70 = load i64, i64* %.reload, align 8 %71 = add i64 %70, 512 %72 = inttoptr i64 %71 to i32* %73 = load i32, i32* %72, align 4 %74 = zext i32 %73 to i64 %75 = sext i32 %69 to i64 %76 = icmp slt i64 %75, %74 store i64 %75, i64* %.reg2mem82 store i64 %70, i64* %.reg2mem84 store i8* %sv_3.2, i8** %sv_3.217.reg2mem store i32 %69, i32* %storemerge516.reg2mem store i32 %68, i32* %sv_2.215.reg2mem store i64 %67, i64* %sv_3.2.in14.reg2mem store i64 %67, i64* %sv_3.2.in.lcssa.reg2mem store i32 %68, i32* %sv_2.2.lcssa.reg2mem store i8* %sv_3.2, i8** %sv_3.2.lcssa.reg2mem br i1 %76, label LBL_12, label LBL_15 LBL_15: %sv_3.2.lcssa.reload = load i8*, i8** %sv_3.2.lcssa.reg2mem %sv_2.2.lcssa.reload = load i32, i32* %sv_2.2.lcssa.reg2mem store i8 59, i8* %sv_3.2.lcssa.reload, align 1 %77 = add i32 %sv_2.2.lcssa.reload, -1 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %78 = icmp slt i64 %indvars.iv.next, %32 store i32 %77, i32* %sv_2.3.lcssa.reg2mem br i1 %78, label LBL_8, label LBL_16 LBL_16: %sv_2.3.lcssa.reload = load i32, i32* %sv_2.3.lcssa.reg2mem %79 = sub i32 1024, %sv_2.3.lcssa.reload %80 = zext i32 %79 to i64 %81 = bitcast i64* %sv_4 to i8* %82 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %81, i32 11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, i64 0, i64 0), i64 %80) %83 = icmp slt i32 %82, 10 store i64 4294967295, i64* %sv_0.0.reg2mem store i64 %80, i64* %rcx.2.reg2mem store i64 ptrtoint ([3 x i8]* @gv_4 to i64), i64* %rdx.0.reg2mem store i64 11, i64* %rsi.2.reg2mem br i1 %83, label LBL_17, label LBL_28 LBL_17: %84 = ptrtoint i64* %sv_6 to i64 %85 = sext i32 %82 to i64 %86 = ptrtoint i64* %sv_4 to i64 %87 = call i64* @memcpy(i64* nonnull %sv_5, i64* nonnull %sv_4, i32 %82) %88 = add i32 %79, 10 %89 = sext i32 %88 to i64 %90 = add i64 %84, -1088 %91 = add i64 %90, %89 %92 = inttoptr i64 %91 to i8* store i8 0, i8* %92, align 1 %93 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_5, i64 0, i64 0), i64 %9, i64 %85, i64 %86, i64 %arg5, i64 %1) %94 = call i64 @FUNC(i64* nonnull @gv_6) %95 = load i32, i32* @gv_7, align 4 %96 = icmp eq i32 %95, 0 %97 = icmp eq i1 %96, false br i1 %97, label LBL_18, label LBL_19 LBL_18: %98 = call i64 @FUNC(i64* nonnull @gv_8, i64* nonnull @gv_6) %99 = load i32, i32* @gv_7, align 4 %100 = icmp eq i32 %99, 0 %101 = icmp eq i1 %100, false br i1 %101, label LBL_18, label LBL_19 LBL_19: store i32 1, i32* @gv_7, align 4 %102 = call i64 @FUNC(i64* nonnull @gv_6) %103 = load i32, i32* @gv_9, align 4 %104 = icmp eq i32 %103, 0 br i1 %104, label LBL_21, label LBL_20 LBL_20: %105 = call i64 @FUNC(i64 %3) br label LBL_21 LBL_21: %106 = trunc i64 %arg1 to i32 store i64 0, i64* %sv_1.0.ph.reg2mem br label LBL_22 LBL_22: %sv_1.0.ph.reload = load i64, i64* %sv_1.0.ph.reg2mem %107 = sub i64 %89, %sv_1.0.ph.reload %108 = add i64 %sv_1.0.ph.reload, %9 %109 = inttoptr i64 %108 to i64* %110 = trunc i64 %107 to i32 br label LBL_23 LBL_23: %111 = call i32 @write(i32 %106, i64* %109, i32 %110) %112 = icmp eq i32 %111, -1 %113 = icmp eq i1 %112, false br i1 %113, label LBL_25, label LBL_24 LBL_24: %114 = call i32* @__errno_location() %115 = load i32, i32* %114, align 4 %116 = icmp eq i32 %115, 4 br i1 %116, label LBL_23, label LBL_25 LBL_25: %117 = icmp eq i32 %111, 0 %118 = icmp slt i32 %111, 0 %119 = icmp eq i1 %118, false %120 = icmp eq i1 %117, false %121 = icmp eq i1 %119, %120 store i64 4294967295, i64* %sv_0.0.reg2mem store i64 %108, i64* %rcx.2.reg2mem store i64 %107, i64* %rdx.0.reg2mem store i64 %108, i64* %rsi.2.reg2mem br i1 %121, label LBL_26, label LBL_28 LBL_26: %122 = sext i32 %111 to i64 %123 = add i64 %sv_1.0.ph.reload, %122 %124 = icmp slt i64 %123, %89 store i64 %123, i64* %sv_1.0.ph.reg2mem br i1 %124, label LBL_22, label LBL_27 LBL_27: %125 = call i64 @FUNC(i64* nonnull @gv_6) store i32 0, i32* @gv_7, align 4 %126 = call i64 @FUNC(i64* nonnull @gv_8) %127 = call i64 @FUNC(i64* nonnull @gv_6) store i64 0, i64* %sv_0.0.reg2mem store i64 %108, i64* %rcx.2.reg2mem store i64 %107, i64* %rdx.0.reg2mem store i64 %108, i64* %rsi.2.reg2mem br label LBL_28 LBL_28: %rsi.2.reload = load i64, i64* %rsi.2.reg2mem %rdx.0.reload = load i64, i64* %rdx.0.reg2mem %rcx.2.reload = load i64, i64* %rcx.2.reg2mem %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %128 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_10, i64 0, i64 0), i64 %rsi.2.reload, i64 %rdx.0.reload, i64 %rcx.2.reload, i64 %arg5, i64 %1) ret i64 %sv_0.0.reload uselistorder i32 %111, { 2, 0, 1, 3 } uselistorder i64 %108, { 1, 3, 0, 2, 4 } uselistorder i64 %107, { 1, 0, 2 } uselistorder i64 %sv_1.0.ph.reload, { 2, 1, 0 } uselistorder i32 %82, { 1, 0, 2 } uselistorder i64 %indvars.iv.next, { 2, 1, 0 } uselistorder i8* %sv_3.217.reload, { 1, 0 } uselistorder i32 %sv_2.215.reload, { 1, 0 } uselistorder i32 %45, { 1, 2, 0 } uselistorder i64 %43, { 2, 1, 0 } uselistorder i64 %42, { 2, 1, 3, 0 } uselistorder i64* %.reload, { 1, 0, 2, 3 } uselistorder i8* %sv_3.32048.reload, { 1, 0 } uselistorder i32 %sv_2.32147.reload, { 2, 3, 0, 1 } uselistorder i32 %sv_2.0.reload, { 1, 0 } uselistorder i32 %20, { 1, 2, 0 } uselistorder i64 %19, { 1, 0 } uselistorder i32 %17, { 2, 1, 4, 3, 0 } uselistorder i8* %16, { 1, 0 } uselistorder i64* %sv_5, { 0, 2, 1 } uselistorder i64* %sv_4, { 0, 2, 1 } uselistorder i64 %3, { 2, 1, 0, 3 } uselistorder i64 %2, { 1, 0, 2 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i64* %.reg2mem82, { 2, 0, 1 } uselistorder i64* %.reg2mem84, { 2, 0, 1 } uselistorder i8** %sv_3.217.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge516.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_2.215.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_3.2.in14.reg2mem, { 2, 0, 1 } uselistorder i8* %.reg2mem86, { 0, 2, 1 } uselistorder i8** %sv_3.1.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_2.1.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_3.2.in.lcssa.reg2mem, { 1, 2, 0 } uselistorder i64* %sv_1.0.ph.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 10, 5, 6, 4, 3, 2, 1, 7, 8, 9 } uselistorder i64* %rcx.2.reg2mem, { 0, 10, 5, 6, 4, 3, 2, 1, 7, 8, 9 } uselistorder i64* %rdx.0.reg2mem, { 0, 10, 5, 6, 4, 3, 2, 1, 7, 8, 9 } uselistorder i64* %rsi.2.reg2mem, { 0, 10, 5, 6, 4, 3, 2, 1, 7, 8, 9 } uselistorder i64 (i64*)* @MPID_Thread_mutex_unlock, { 1, 0 } uselistorder i64* @gv_8, { 1, 0 } uselistorder i32* @gv_7, { 3, 2, 1, 0 } uselistorder i64 (i64*)* @MPID_Thread_mutex_lock, { 1, 0 } uselistorder i64* @gv_6, { 1, 2, 3, 0, 4 } uselistorder i8 0, { 1, 2, 0 } uselistorder [3 x i8]* @gv_4, { 1, 0 } uselistorder i32 -1, { 3, 2, 0, 1 } uselistorder i1 false, { 2, 1, 3, 4, 0, 5 } uselistorder i8 59, { 2, 1, 0 } uselistorder [4 x i8]* @gv_3, { 1, 0 } uselistorder i32 0, { 8, 4, 5, 9, 10, 3, 0, 1, 2, 6, 7 } uselistorder [10 x i8]* @gv_2, { 1, 0 } uselistorder i64 1024, { 1, 0 } uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 1, 0, 2, 3 } uselistorder [8 x i8]* @gv_1, { 1, 0 } uselistorder i32 1024, { 3, 0, 1, 2 } uselistorder i64 32, { 1, 0 } uselistorder i64 10, { 1, 0 } uselistorder i32 257, { 1, 2, 0, 3 } uselistorder i32 10, { 2, 0, 1 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @PMI2U_printf, { 2, 1, 0 } uselistorder i64 0, { 16, 17, 1, 2, 8, 9, 10, 11, 3, 6, 7, 4, 5, 0, 12, 13, 14, 15, 18, 19, 20, 21, 22 } uselistorder i64 %arg5, { 3, 2, 0, 1, 4 } uselistorder i64 %arg3, { 1, 0, 2, 3 } uselistorder label LBL_28, { 9, 4, 5, 3, 2, 1, 0, 6, 7, 8 } uselistorder label LBL_23, { 1, 0 } uselistorder label LBL_18, { 1, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_9, { 1, 0 } }
1
BinRealVul
getcode_6131
getcode
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = trunc i64 %arg1 to i8 %1 = icmp eq i8 %0, 47 %2 = icmp eq i1 %1, false store i64 63, i64* %rax.0.reg2mem br i1 %2, label LBL_1, label LBL_12 LBL_1: %sext = mul i64 %arg1, 72057594037927936 %3 = ashr exact i64 %sext, 56 %4 = trunc i64 %3 to i8 %5 = icmp eq i8 %4, 95 %6 = icmp eq i1 %5, false store i64 62, i64* %rax.0.reg2mem br i1 %6, label LBL_2, label LBL_12 LBL_2: %7 = icmp eq i8 %4, 43 %8 = icmp eq i1 %7, false store i64 61, i64* %rax.0.reg2mem br i1 %8, label LBL_3, label LBL_12 LBL_3: %9 = icmp eq i8 %4, 45 %10 = icmp eq i1 %9, false store i64 60, i64* %rax.0.reg2mem br i1 %10, label LBL_4, label LBL_12 LBL_4: %11 = icmp eq i8 %4, 61 %12 = icmp eq i1 %11, false store i64 64, i64* %rax.0.reg2mem br i1 %12, label LBL_5, label LBL_12 LBL_5: %13 = icmp sgt i8 %4, 47 store i64 4294967295, i64* %rax.0.reg2mem br i1 %13, label LBL_6, label LBL_12 LBL_6: %14 = icmp sgt i8 %4, 57 br i1 %14, label LBL_8, label LBL_7 LBL_7: %15 = urem i64 %3, 256 %16 = add nuw nsw i64 %15, 4294967291 %17 = and i64 %16, 4294967295 store i64 %17, i64* %rax.0.reg2mem br label LBL_12 LBL_8: %.off = add i8 %4, -65 %18 = icmp ugt i8 %.off, 25 br i1 %18, label LBL_10, label LBL_9 LBL_9: %19 = urem i64 %3, 256 %20 = add nuw nsw i64 %19, 4294967231 %21 = and i64 %20, 4294967295 store i64 %21, i64* %rax.0.reg2mem br label LBL_12 LBL_10: %.off4 = add i8 %4, -97 %22 = icmp ugt i8 %.off4, 25 store i64 4294967295, i64* %rax.0.reg2mem br i1 %22, label LBL_12, label LBL_11 LBL_11: %23 = urem i64 %3, 256 %24 = add nuw nsw i64 %23, 4294967200 %25 = and i64 %24, 4294967295 store i64 %25, i64* %rax.0.reg2mem br label LBL_12 LBL_12: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64* %rax.0.reg2mem, { 0, 10, 1, 9, 8, 2, 3, 4, 5, 6, 7 } uselistorder i64 4294967295, { 2, 0, 3, 4, 1 } uselistorder i8 47, { 1, 0 } uselistorder label LBL_12, { 7, 0, 8, 9, 1, 2, 3, 4, 5, 6 } }
0
BinRealVul
gdImageCrop_5776
gdImageCrop
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem48 = alloca i32 %.reg2mem46 = alloca i32 %.reg2mem44 = alloca i32 %.reg2mem42 = alloca i32 %storemerge13.reg2mem = alloca i32 %.reg2mem40 = alloca i32 %.reg2mem38 = alloca i64 %.reg2mem36 = alloca i32 %storemerge4.reg2mem = alloca i32 %.reg2mem34 = alloca i64 %.reg2mem32 = alloca i32 %.reg2mem30 = alloca i32 %.reg2mem28 = alloca i32 %.reg2mem26 = alloca i32 %sv_0.05.reg2mem = alloca i32 %sv_1.06.reg2mem = alloca i32 %.reg2mem24 = alloca i64 %.reg2mem22 = alloca i32 %.reg2mem20 = alloca i32 %.reg2mem18 = alloca i32 %.reg2mem = alloca i32 %sv_2.0.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %rsi = alloca i64, align 8 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg2 to i64 %4 = trunc i64 %1 to i32 %5 = icmp eq i32 %4, 0 %6 = add i64 %3, 4 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = zext i32 %8 to i64 %10 = and i64 %2, 4294967295 br i1 %5, label LBL_3, label LBL_1 LBL_1: %11 = call i64 @FUNC(i64 %10, i64 %9) %12 = icmp eq i64 %11, 0 %13 = icmp eq i1 %12, false store i64 0, i64* %rax.0.reg2mem br i1 %13, label LBL_2, label LBL_24 LBL_2: %14 = call i64 @FUNC(i64 %11, i64 1) store i64 %11, i64* %sv_2.0.reg2mem br label LBL_5 LBL_3: %15 = call i64 @FUNC(i64 %10, i64 %9) %16 = icmp eq i64 %15, 0 %17 = icmp eq i1 %16, false store i64 0, i64* %rax.0.reg2mem br i1 %17, label LBL_4, label LBL_24 LBL_4: %18 = call i64 @FUNC(i64 %15, i64 %arg1) store i64 %15, i64* %sv_2.0.reg2mem br label LBL_5 LBL_5: %sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem %19 = add i64 %arg1, 4 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = add i64 %sv_2.0.reload, 4 %23 = inttoptr i64 %22 to i32* store i32 %21, i32* %23, align 4 %24 = add i64 %3, 8 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = icmp slt i32 %26, 0 store i64 %sv_2.0.reload, i64* %rax.0.reg2mem br i1 %27, label LBL_24, label LBL_6 LBL_6: %28 = add i64 %arg1, 8 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = icmp ugt i32 %30, %26 store i64 %sv_2.0.reload, i64* %rax.0.reg2mem br i1 %31, label LBL_7, label LBL_24 LBL_7: %32 = add i64 %3, 12 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = icmp slt i32 %34, 0 store i64 %sv_2.0.reload, i64* %rax.0.reg2mem br i1 %35, label LBL_24, label LBL_8 LBL_8: %36 = add i64 %arg1, 12 %37 = inttoptr i64 %36 to i32* %38 = load i32, i32* %37, align 4 %39 = icmp ult i32 %34, %38 store i64 %sv_2.0.reload, i64* %rax.0.reg2mem br i1 %39, label LBL_9, label LBL_24 LBL_9: %40 = bitcast i64* %rsi to i32* %41 = load i32, i32* %40, align 8 %42 = sub i32 %30, %41 %43 = icmp ult i32 %42, %26 store i32 %34, i32* %.reg2mem store i32 %38, i32* %.reg2mem18 br i1 %43, label LBL_10, label LBL_11 LBL_10: %44 = sub i32 %30, %26 %45 = bitcast i64* %arg2 to i32* store i32 %44, i32* %45, align 4 %.pre = load i32, i32* %37, align 4 %.pre7 = load i32, i32* %33, align 4 store i32 %.pre7, i32* %.reg2mem store i32 %.pre, i32* %.reg2mem18 br label LBL_11 LBL_11: %.reload19 = load i32, i32* %.reg2mem18 %.reload = load i32, i32* %.reg2mem %46 = load i32, i32* %7, align 4 %47 = sub i32 %.reload19, %46 %48 = icmp ult i32 %47, %.reload store i32 %46, i32* %.reg2mem20 store i32 %.reload, i32* %.reg2mem22 br i1 %48, label LBL_12, label LBL_13 LBL_12: %49 = sub i32 %.reload19, %.reload store i32 %49, i32* %7, align 4 %.pre8 = load i32, i32* %33, align 4 store i32 %49, i32* %.reg2mem20 store i32 %.pre8, i32* %.reg2mem22 br label LBL_13 LBL_13: %50 = bitcast i64* %rdi to i32* %.reload23 = load i32, i32* %.reg2mem22 %.reload21 = load i32, i32* %.reg2mem20 %51 = load i32, i32* %50, align 8 %52 = icmp eq i32 %51, 0 %53 = add i32 %.reload21, -1 %54 = add i32 %53, %.reload23 %55 = zext i32 %54 to i64 %56 = sext i32 %.reload23 to i64 %57 = icmp slt i64 %56, %55 br i1 %52, label LBL_16, label LBL_14 LBL_14: store i64 %sv_2.0.reload, i64* %rax.0.reg2mem br i1 %57, label LBL_15, label LBL_24 LBL_15: %58 = add i64 %arg1, 16 %59 = inttoptr i64 %58 to i64* %60 = add i64 %sv_2.0.reload, 16 %61 = inttoptr i64 %60 to i64* %.pre9 = load i32, i32* %40, align 8 %62 = mul i32 %.pre9, 4 store i64 %56, i64* %.reg2mem24 store i32 0, i32* %sv_1.06.reg2mem store i32 %.reload23, i32* %sv_0.05.reg2mem br label LBL_18 LBL_16: store i64 %sv_2.0.reload, i64* %rax.0.reg2mem br i1 %57, label LBL_17, label LBL_24 LBL_17: %63 = add i64 %arg1, 24 %64 = inttoptr i64 %63 to i64* %65 = add i64 %sv_2.0.reload, 24 %66 = inttoptr i64 %65 to i64* %.pre10 = load i32, i32* %25, align 4 %.pre11 = load i32, i32* %40, align 8 store i32 %.reload21, i32* %.reg2mem26 store i32 %.reload23, i32* %.reg2mem28 store i32 %.pre11, i32* %.reg2mem30 store i32 %.pre10, i32* %.reg2mem32 store i64 %56, i64* %.reg2mem34 store i32 %.reload23, i32* %storemerge4.reg2mem br label LBL_19 LBL_18: %sv_0.05.reload = load i32, i32* %sv_0.05.reg2mem %sv_1.06.reload = load i32, i32* %sv_1.06.reg2mem %.reload25 = load i64, i64* %.reg2mem24 %67 = load i64, i64* %59, align 8 %68 = add i32 %sv_0.05.reload, 1 %69 = mul i64 %.reload25, 8 %70 = add i64 %67, %69 %71 = inttoptr i64 %70 to i64* %72 = load i64, i64* %71, align 8 %73 = load i32, i32* %25, align 4 %74 = sext i32 %73 to i64 %75 = mul i64 %74, 4 %76 = add i64 %75, %72 %77 = load i64, i64* %61, align 8 %78 = add i32 %sv_1.06.reload, 1 %79 = zext i32 %sv_1.06.reload to i64 %80 = mul i64 %79, 8 %81 = add i64 %77, %80 %82 = inttoptr i64 %81 to i64* %83 = load i64, i64* %82, align 8 %84 = inttoptr i64 %83 to i64* %85 = inttoptr i64 %76 to i64* %86 = call i64* @memcpy(i64* %84, i64* %85, i32 %62) %87 = load i32, i32* %33, align 4 %88 = load i32, i32* %7, align 4 %89 = add i32 %87, -1 %90 = add i32 %89, %88 %91 = zext i32 %90 to i64 %92 = sext i32 %68 to i64 %93 = icmp slt i64 %92, %91 store i64 %92, i64* %.reg2mem24 store i32 %78, i32* %sv_1.06.reg2mem store i32 %68, i32* %sv_0.05.reg2mem store i64 %sv_2.0.reload, i64* %rax.0.reg2mem br i1 %93, label LBL_18, label LBL_24 LBL_19: %storemerge4.reload = load i32, i32* %storemerge4.reg2mem %.reload33 = load i32, i32* %.reg2mem32 %.reload31 = load i32, i32* %.reg2mem30 %.reload29 = load i32, i32* %.reg2mem28 %.reload27 = load i32, i32* %.reg2mem26 %94 = add i32 %.reload31, -1 %95 = add i32 %94, %.reload33 %96 = zext i32 %95 to i64 %97 = sext i32 %.reload33 to i64 %98 = icmp slt i64 %97, %96 store i32 %.reload27, i32* %.reg2mem42 store i32 %.reload29, i32* %.reg2mem44 store i32 %.reload31, i32* %.reg2mem46 store i32 %.reload33, i32* %.reg2mem48 br i1 %98, label LBL_20, label LBL_23 LBL_20: %.reload35 = load i64, i64* %.reg2mem34 %99 = mul i64 %.reload35, 8 store i32 %.reload29, i32* %.reg2mem36 store i64 %97, i64* %.reg2mem38 store i32 %.reload33, i32* %.reg2mem40 store i32 %.reload33, i32* %storemerge13.reg2mem br label LBL_21 LBL_21: %storemerge13.reload = load i32, i32* %storemerge13.reg2mem %.reload41 = load i32, i32* %.reg2mem40 %.reload39 = load i64, i64* %.reg2mem38 %.reload37 = load i32, i32* %.reg2mem36 %100 = load i64, i64* %64, align 8 %101 = add i64 %100, %99 %102 = inttoptr i64 %101 to i64* %103 = load i64, i64* %102, align 8 %104 = add i64 %103, %.reload39 %105 = load i64, i64* %66, align 8 %106 = sub i32 %storemerge4.reload, %.reload37 %107 = sext i32 %106 to i64 %108 = mul i64 %107, 8 %109 = add i64 %105, %108 %110 = inttoptr i64 %109 to i64* %111 = load i64, i64* %110, align 8 %112 = sub i32 %storemerge13.reload, %.reload41 %113 = sext i32 %112 to i64 %114 = add i64 %111, %113 %115 = inttoptr i64 %104 to i8* %116 = load i8, i8* %115, align 1 %117 = inttoptr i64 %114 to i8* store i8 %116, i8* %117, align 1 %118 = add i32 %storemerge13.reload, 1 %119 = load i32, i32* %25, align 4 %120 = load i32, i32* %40, align 8 %121 = add i32 %119, -1 %122 = add i32 %121, %120 %123 = zext i32 %122 to i64 %124 = sext i32 %118 to i64 %125 = icmp slt i64 %124, %123 %.pre12 = load i32, i32* %33, align 4 store i32 %.pre12, i32* %.reg2mem36 store i64 %124, i64* %.reg2mem38 store i32 %119, i32* %.reg2mem40 store i32 %118, i32* %storemerge13.reg2mem br i1 %125, label LBL_21, label LBL_22 LBL_22: %.pre14 = load i32, i32* %7, align 4 store i32 %.pre14, i32* %.reg2mem42 store i32 %.pre12, i32* %.reg2mem44 store i32 %120, i32* %.reg2mem46 store i32 %119, i32* %.reg2mem48 br label LBL_23 LBL_23: %.reload49 = load i32, i32* %.reg2mem48 %.reload47 = load i32, i32* %.reg2mem46 %.reload45 = load i32, i32* %.reg2mem44 %.reload43 = load i32, i32* %.reg2mem42 %126 = add i32 %storemerge4.reload, 1 %127 = add i32 %.reload43, -1 %128 = add i32 %127, %.reload45 %129 = zext i32 %128 to i64 %130 = sext i32 %126 to i64 %131 = icmp slt i64 %130, %129 store i32 %.reload43, i32* %.reg2mem26 store i32 %.reload45, i32* %.reg2mem28 store i32 %.reload47, i32* %.reg2mem30 store i32 %.reload49, i32* %.reg2mem32 store i64 %130, i64* %.reg2mem34 store i32 %126, i32* %storemerge4.reg2mem store i64 %sv_2.0.reload, i64* %rax.0.reg2mem br i1 %131, label LBL_19, label LBL_24 LBL_24: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %.reload43, { 1, 0 } uselistorder i32 %.reload45, { 1, 0 } uselistorder i32 %.reload29, { 1, 0 } uselistorder i32 %.reload33, { 1, 2, 0, 3, 4 } uselistorder i32 %sv_1.06.reload, { 1, 0 } uselistorder i1 %57, { 1, 0 } uselistorder i32 %.reload, { 1, 0, 2 } uselistorder i32* %40, { 2, 0, 1, 3 } uselistorder i32* %33, { 0, 3, 1, 2, 4 } uselistorder i32 %30, { 1, 2, 0 } uselistorder i32 %26, { 1, 2, 0, 3 } uselistorder i32* %25, { 2, 1, 0, 3 } uselistorder i64 %sv_2.0.reload, { 1, 0, 9, 3, 10, 2, 6, 5, 7, 4, 8 } uselistorder i64 %9, { 1, 0 } uselistorder i32* %7, { 0, 1, 3, 2, 4 } uselistorder i64 %3, { 1, 0, 2 } uselistorder i64* %sv_2.0.reg2mem, { 0, 2, 1 } uselistorder i64* %.reg2mem24, { 1, 0, 2 } uselistorder i32* %sv_1.06.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.05.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem26, { 1, 0, 2 } uselistorder i32* %.reg2mem28, { 1, 0, 2 } uselistorder i32* %.reg2mem30, { 1, 0, 2 } uselistorder i32* %.reg2mem32, { 1, 0, 2 } uselistorder i64* %.reg2mem34, { 1, 0, 2 } uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem36, { 1, 0, 2 } uselistorder i64* %.reg2mem38, { 1, 0, 2 } uselistorder i32* %.reg2mem40, { 1, 0, 2 } uselistorder i32* %storemerge13.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem42, { 0, 2, 1 } uselistorder i32* %.reg2mem44, { 0, 2, 1 } uselistorder i32* %.reg2mem46, { 0, 2, 1 } uselistorder i32* %.reg2mem48, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3, 7, 6, 8, 5, 9, 10 } uselistorder i64* %0, { 1, 0 } uselistorder i32 -1, { 3, 2, 1, 4, 0 } uselistorder i64 8, { 0, 1, 2, 3, 6, 7, 4, 8, 5, 9 } uselistorder i64 1, { 6, 4, 0, 2, 5, 1, 3 } uselistorder i32 0, { 0, 3, 4, 5, 6, 1, 7, 2 } uselistorder i64 %arg1, { 1, 0, 3, 2, 4, 5 } uselistorder label LBL_24, { 1, 0, 3, 2, 6, 5, 7, 4, 8, 9 } uselistorder label LBL_19, { 1, 0 } uselistorder label LBL_18, { 1, 0 } uselistorder label LBL_13, { 1, 0 } uselistorder label LBL_11, { 1, 0 } }
0
BinRealVul
out_string_4042
out_string
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i8* %.pre-phi.reg2mem = alloca i64 %.pre-phi4.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = icmp eq i64 %arg1, 0 %3 = icmp eq i1 %2, false br i1 %3, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_1, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %4 = inttoptr i64 %arg2 to i8* %5 = add i64 %arg1, 4 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = icmp eq i32 %7, 0 br i1 %8, label LBL_6, label LBL_3 LBL_3: %9 = load i32, i32* inttoptr (i64 4210772 to i32*), align 4 %10 = icmp slt i32 %9, 2 br i1 %10, label LBL_5, label LBL_4 LBL_4: %11 = and i64 %1, 4294967295 %12 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8 %13 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %12, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_4, i64 0, i64 0), i64 %11, i8* %4) br label LBL_5 LBL_5: store i32 0, i32* %6, align 4 %14 = call i64 @FUNC(i64 %arg1, i64 4198805) store i64 %14, i64* %rax.0.reg2mem br label LBL_11 LBL_6: %15 = load i32, i32* @gv_5, align 4 %16 = icmp slt i32 %15, 2 br i1 %16, label LBL_8, label LBL_7 LBL_7: %17 = and i64 %1, 4294967295 %18 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8 %19 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %18, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_6, i64 0, i64 0), i64 %17, i8* %4) br label LBL_8 LBL_8: %20 = call i32 @strlen(i8* %4) %21 = sext i32 %20 to i64 %22 = add nsw i64 %21, 2 %23 = add i64 %arg1, 8 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 %26 = icmp ugt i64 %22, %25 store i64 %22, i64* %.pre-phi4.reg2mem store i64 %21, i64* %.pre-phi.reg2mem store i8* %4, i8** %sv_1.0.reg2mem store i32 %20, i32* %sv_0.0.reg2mem br i1 %26, label LBL_9, label LBL_10 LBL_9: %27 = call i32 @strlen(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_7, i64 0, i64 0)) %.pre = sext i32 %27 to i64 %.pre3 = add nsw i64 %.pre, 2 store i64 %.pre3, i64* %.pre-phi4.reg2mem store i64 %.pre, i64* %.pre-phi.reg2mem store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_7, i64 0, i64 0), i8** %sv_1.0.reg2mem store i32 %27, i32* %sv_0.0.reg2mem br label LBL_10 LBL_10: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %sv_1.0.reload = load i8*, i8** %sv_1.0.reg2mem %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %.pre-phi4.reload = load i64, i64* %.pre-phi4.reg2mem %28 = add i64 %arg1, 16 %29 = inttoptr i64 %28 to i64* %30 = load i64, i64* %29, align 8 %31 = inttoptr i64 %30 to i64* %32 = bitcast i8* %sv_1.0.reload to i64* %33 = call i64* @memcpy(i64* %31, i64* %32, i32 %sv_0.0.reload) %34 = load i64, i64* %29, align 8 %35 = add i64 %34, %.pre-phi.reload %36 = inttoptr i64 %35 to i64* %37 = call i64* @memcpy(i64* %36, i64* bitcast ([3 x i8]* @gv_8 to i64*), i32 2) %38 = add i64 %arg1, 24 %39 = inttoptr i64 %38 to i64* store i64 %.pre-phi4.reload, i64* %39, align 8 %40 = load i64, i64* %29, align 8 %41 = add i64 %arg1, 32 %42 = inttoptr i64 %41 to i64* store i64 %40, i64* %42, align 8 %43 = call i64 @FUNC(i64 %arg1, i64 4198812) %44 = add i64 %arg1, 40 %45 = inttoptr i64 %44 to i64* store i64 4198805, i64* %45, align 8 store i64 %arg1, 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 i8* %4, { 0, 3, 2, 1 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 } uselistorder i32 (i8*)* @strlen, { 1, 0 } uselistorder i64 (i64, i64)* @conn_set_state, { 1, 0 } uselistorder i64 4198805, { 1, 0 } uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0 } uselistorder i32 2, { 2, 0, 1, 3 } uselistorder i64 %arg1, { 0, 3, 2, 4, 5, 6, 7, 1, 8, 9 } uselistorder label LBL_10, { 1, 0 } }
0
BinRealVul
ff_mpeg_er_init_17027
ff_mpeg_er_init
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge1.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 1080 %2 = add i64 %0, 24 %3 = inttoptr i64 %2 to i32* %4 = load i32, i32* %3, align 4 %5 = add i64 %0, 28 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = mul i32 %7, %4 %9 = inttoptr i64 %1 to i64* store i64 %0, i64* %9, align 8 %10 = add i64 %0, 8 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = add i64 %0, 1088 %14 = inttoptr i64 %13 to i64* store i64 %12, i64* %14, align 8 %15 = add i64 %0, 16 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = add i64 %0, 1096 %19 = inttoptr i64 %18 to i32* store i32 %17, i32* %19, align 4 %20 = add i64 %0, 20 %21 = inttoptr i64 %20 to i32* %22 = load i32, i32* %21, align 4 %23 = add i64 %0, 1100 %24 = inttoptr i64 %23 to i32* store i32 %22, i32* %24, align 4 %25 = load i32, i32* %3, align 4 %26 = add i64 %0, 1104 %27 = inttoptr i64 %26 to i32* store i32 %25, i32* %27, align 4 %28 = load i32, i32* %6, align 4 %29 = add i64 %0, 1108 %30 = inttoptr i64 %29 to i32* store i32 %28, i32* %30, align 4 %31 = add i64 %0, 32 %32 = inttoptr i64 %31 to i32* %33 = load i32, i32* %32, align 4 %34 = add i64 %0, 1112 %35 = inttoptr i64 %34 to i32* store i32 %33, i32* %35, align 4 %36 = load i32, i32* %3, align 4 %37 = load i32, i32* %6, align 4 %38 = mul i32 %37, %36 %39 = sext i32 %38 to i64 %40 = call i64 @FUNC(i64 %39) %41 = add i64 %0, 1120 %42 = inttoptr i64 %41 to i64* store i64 %40, i64* %42, align 8 %43 = sext i32 %8 to i64 %44 = call i64 @FUNC(i64 %43) %45 = add i64 %0, 1128 %46 = inttoptr i64 %45 to i64* store i64 %44, i64* %46, align 8 %47 = load i64, i64* %42, align 8 %48 = icmp eq i64 %47, 0 %49 = icmp eq i64 %44, 0 %or.cond = or i1 %49, %48 br i1 %or.cond, label LBL_4, label LBL_1 LBL_1: %50 = add i64 %0, 40 %51 = inttoptr i64 %50 to i64* %52 = load i64, i64* %51, align 8 %53 = add i64 %0, 1136 %54 = inttoptr i64 %53 to i64* store i64 %52, i64* %54, align 8 %55 = add i64 %0, 48 %56 = inttoptr i64 %55 to i64* %57 = load i64, i64* %56, align 8 %58 = add i64 %0, 1144 %59 = inttoptr i64 %58 to i64* store i64 %57, i64* %59, align 8 store i64 0, i64* %indvars.iv.reg2mem br label LBL_2 LBL_2: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %60 = mul i64 %indvars.iv.reload, 4 %61 = add i64 %60, %0 %62 = add i64 %61, 56 %63 = inttoptr i64 %62 to i32* %64 = load i32, i32* %63, align 4 %65 = add i64 %61, 1152 %66 = inttoptr i64 %65 to i32* store i32 %64, i32* %66, 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: %67 = add i64 %0, 2176 %68 = inttoptr i64 %67 to i64* store i64 4198855, i64* %68, align 8 %69 = add i64 %0, 2184 %70 = inttoptr i64 %69 to i64* store i64 %0, i64* %70, align 8 store i64 0, i64* %storemerge1.reg2mem br label LBL_5 LBL_4: %71 = call i64 @FUNC(i64 %41) %72 = call i64 @FUNC(i64 %45) store i64 4294967284, i64* %storemerge1.reg2mem br label LBL_5 LBL_5: %storemerge1.reload = load i64, i64* %storemerge1.reg2mem ret i64 %storemerge1.reload uselistorder i64 %0, { 5, 1, 2, 0, 3, 6, 4, 7, 8, 9, 10, 16, 11, 12, 13, 17, 14, 18, 15, 19, 20, 21, 22, 23 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 } uselistorder i64 (i64)* @av_freep, { 1, 0 } }
1
BinRealVul
generate_2_noise_channels_14882
generate_2_noise_channels
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.0.lcssa.reg2mem = alloca i32 %sv_0.05.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = mul i64 %arg2, 16 %2 = and i64 %1, 68719476720 %3 = add i64 %2, %0 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = add i64 %3, 4 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = add i64 %3, 8 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = icmp eq i32 %11, 0 store i32 %5, i32* %sv_0.0.lcssa.reg2mem br i1 %12, label LBL_3, label LBL_1 LBL_1: %13 = add i64 %3, 12 %14 = inttoptr i64 %13 to i32* %15 = add i64 %0, 8 %16 = inttoptr i64 %15 to i64* %17 = add i32 %8, 1 %18 = zext i32 %17 to i64 %19 = mul i64 %18, 2 %20 = add i32 %8, 2 %21 = zext i32 %20 to i64 %22 = mul i64 %21, 2 store i64 0, i64* %indvars.iv.reg2mem store i32 %5, i32* %sv_0.05.reg2mem br label LBL_2 LBL_2: %sv_0.05.reload = load i32, i32* %sv_0.05.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %23 = mul i32 %sv_0.05.reload, 512 %24 = ashr i32 %23, 16 %25 = udiv i32 %sv_0.05.reload, 32768 %26 = zext i32 %25 to i64 %sext = mul i64 %26, 72057594037927936 %27 = ashr exact i64 %sext, 56 %28 = load i32, i32* %14, align 4 %29 = urem i32 %28, 32 %30 = icmp eq i32 %29, 0 %31 = trunc i64 %27 to i32 %32 = shl i32 %31, %29 %33 = zext i32 %32 to i64 %rdx.0 = select i1 %30, i64 %27, i64 %33 %34 = load i64, i64* %16, align 8 %35 = mul i64 %indvars.iv.reload, 8 %36 = add i64 %34, %35 %37 = inttoptr i64 %36 to i64* %38 = load i64, i64* %37, align 8 %39 = add i64 %38, %19 %40 = trunc i64 %rdx.0 to i16 %41 = inttoptr i64 %39 to i16* store i16 %40, i16* %41, align 2 %42 = zext i32 %24 to i64 %sext3 = mul i64 %42, 72057594037927936 %43 = ashr exact i64 %sext3, 56 %44 = load i32, i32* %14, align 4 %45 = urem i32 %44, 32 %46 = icmp eq i32 %45, 0 %47 = trunc i64 %43 to i32 %48 = shl i32 %47, %45 %49 = zext i32 %48 to i64 %rdx.1 = select i1 %46, i64 %43, i64 %49 %50 = load i64, i64* %16, align 8 %51 = add i64 %50, %35 %52 = inttoptr i64 %51 to i64* %53 = load i64, i64* %52, align 8 %54 = add i64 %53, %22 %55 = trunc i64 %rdx.1 to i16 %56 = inttoptr i64 %54 to i16* store i16 %55, i16* %56, align 2 %57 = mul i32 %sv_0.05.reload, 65536 %58 = urem i32 %24, 65536 %59 = or i32 %58, %57 %60 = mul i32 %24, 32 %61 = and i32 %60, 2097120 %62 = xor i32 %61, %59 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %63 = load i32, i32* %10, align 4 %64 = zext i32 %63 to i64 %65 = icmp ult i64 %indvars.iv.next, %64 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i32 %62, i32* %sv_0.05.reg2mem store i32 %62, i32* %sv_0.0.lcssa.reg2mem br i1 %65, label LBL_2, label LBL_3 LBL_3: %sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem store i32 %sv_0.0.lcssa.reload, i32* %4, align 4 ret i64 %3 uselistorder i32 %45, { 1, 0 } uselistorder i64 %35, { 1, 0 } uselistorder i32 %29, { 1, 0 } uselistorder i32 %sv_0.05.reload, { 2, 0, 1 } uselistorder i32* %10, { 1, 0 } uselistorder i32 %5, { 1, 0 } uselistorder i64 %3, { 1, 0, 2, 4, 3 } uselistorder i64 %0, { 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.05.reg2mem, { 1, 0, 2 } uselistorder i32 65536, { 1, 0 } uselistorder i32 0, { 1, 2, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
s390x_new_cpu_1848
s390x_new_cpu
define i64 @FUNC(i8* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %0 = ptrtoint i8* %arg1 to i64 %sv_1 = alloca i64, align 8 %1 = trunc i64 %arg2 to i32 %2 = call i64 @FUNC(i64 %0) %3 = call i64 @FUNC(i64 %2) store i64 0, i64* %sv_1, align 8 %4 = call i64 @FUNC(i64 %3, i32 %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_1) %5 = load i64, i64* %sv_1, align 8 %6 = icmp eq i64 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = call i64 @FUNC(i64 %3, i64 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_1) br label LBL_2 LBL_2: %9 = call i64 @FUNC(i64 %3) %10 = load i64, i64* %sv_1, align 8 %11 = icmp eq i64 %10, 0 store i64 %3, i64* %sv_0.0.reg2mem br i1 %11, label LBL_4, label LBL_3 LBL_3: %12 = ptrtoint i64* %arg3 to i64 %13 = call i64 @FUNC(i64 %12, i64 %10) store i64 0, i64* %sv_0.0.reg2mem br label LBL_4 LBL_4: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem ret i64 %sv_0.0.reload uselistorder i64 %3, { 0, 2, 1, 3 } uselistorder i64* %sv_1, { 2, 0, 3, 1, 4 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
match_ext_17551
match_ext
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge3.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i8* %sv_0.0.lcssa.reg2mem = alloca i8* %sv_1.0.lcssa.reg2mem = alloca i64 %sv_1.06.reg2mem = alloca i64 %sv_0.07.reg2mem = alloca i8* %.reg2mem = alloca i8 %storemerge.reg2mem = alloca i64 %sv_2 = alloca i64, align 8 %0 = inttoptr i64 %arg1 to i8* %1 = call i8* @strrchr(i8* %0, i32 46) %2 = icmp eq i8* %1, null store i64 0, i64* %storemerge3.reg2mem br i1 %2, label LBL_6, label LBL_1 LBL_1: %3 = ptrtoint i8* %1 to i64 %4 = add i64 %3, 1 %5 = inttoptr i64 %4 to i8* %6 = bitcast i64* %sv_2 to i8* store i64 %arg2, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem %7 = inttoptr i64 %storemerge.reload to i8* %8 = load i8, i8* %7, align 1 %9 = icmp ne i8 %8, 0 %10 = icmp eq i8 %8, 44 %11 = icmp eq i1 %10, false %or.cond5 = icmp eq i1 %9, %11 store i8 %8, i8* %.reg2mem store i8* %6, i8** %sv_0.07.reg2mem store i64 %storemerge.reload, i64* %sv_1.06.reg2mem store i64 %storemerge.reload, i64* %sv_1.0.lcssa.reg2mem store i8* %6, i8** %sv_0.0.lcssa.reg2mem store i8* %7, i8** %.lcssa.reg2mem br i1 %or.cond5, label LBL_3, label LBL_4 LBL_3: %sv_1.06.reload = load i64, i64* %sv_1.06.reg2mem %sv_0.07.reload = load i8*, i8** %sv_0.07.reg2mem %.reload = load i8, i8* %.reg2mem %12 = add i64 %sv_1.06.reload, 1 %13 = ptrtoint i8* %sv_0.07.reload to i64 %14 = add i64 %13, 1 %15 = inttoptr i64 %14 to i8* store i8 %.reload, i8* %sv_0.07.reload, align 1 %16 = inttoptr i64 %12 to i8* %17 = load i8, i8* %16, align 1 %18 = icmp ne i8 %17, 0 %19 = icmp eq i8 %17, 44 %20 = icmp eq i1 %19, false %or.cond = icmp eq i1 %18, %20 store i8 %17, i8* %.reg2mem store i8* %15, i8** %sv_0.07.reg2mem store i64 %12, i64* %sv_1.06.reg2mem store i64 %12, i64* %sv_1.0.lcssa.reg2mem store i8* %15, i8** %sv_0.0.lcssa.reg2mem store i8* %16, i8** %.lcssa.reg2mem br i1 %or.cond, label LBL_3, label LBL_4 LBL_4: %sv_0.0.lcssa.reload = load i8*, i8** %sv_0.0.lcssa.reg2mem store i8 0, i8* %sv_0.0.lcssa.reload, align 1 %21 = call i32 @strcasecmp(i8* nonnull %6, i8* %5) %22 = icmp eq i32 %21, 0 %23 = icmp eq i1 %22, false store i64 1, i64* %storemerge3.reg2mem br i1 %23, label LBL_5, label LBL_6 LBL_5: %.lcssa.reload = load i8*, i8** %.lcssa.reg2mem %sv_1.0.lcssa.reload = load i64, i64* %sv_1.0.lcssa.reg2mem %24 = load i8, i8* %.lcssa.reload, align 1 %25 = icmp eq i8 %24, 0 %26 = add i64 %sv_1.0.lcssa.reload, 1 store i64 %26, i64* %storemerge.reg2mem store i64 0, i64* %storemerge3.reg2mem br i1 %25, label LBL_6, label LBL_2 LBL_6: %storemerge3.reload = load i64, i64* %storemerge3.reg2mem ret i64 %storemerge3.reload uselistorder i8* %sv_0.07.reload, { 1, 0 } uselistorder i8* %6, { 2, 0, 1 } uselistorder i64* %storemerge.reg2mem, { 2, 0, 1 } uselistorder i8* %.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_0.07.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.06.reg2mem, { 2, 0, 1 } uselistorder i1 false, { 2, 1, 0 } uselistorder i8 44, { 1, 0 } uselistorder i8 0, { 1, 2, 3, 0 } uselistorder i64 1, { 1, 0, 2, 3, 4 } uselistorder i32 1, { 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
crypto_rng_report_11159
crypto_rng_report
define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %1 = bitcast i64* %sv_0 to i8* %2 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %1, i32 64, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0)) %3 = call i64 @FUNC(i64 %0, i64 1, i64 68, i64* nonnull %sv_0) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 %6 = icmp eq i1 %5, false %. = select i1 %6, i64 4294967206, i64 0 ret i64 %. }
1
BinRealVul
init_proc_750gx_16489
init_proc_750gx
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 = call i64 @FUNC(i64 %0, i64 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 0, i64 4198735) %4 = call i64 @FUNC(i64 %0) %5 = call i64 @FUNC(i64 %0) %6 = call i64 @FUNC(i64 %0, i64 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 0, i64 0, i64 4198735) %7 = call i64 @FUNC(i64 %0, i64 3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64 0, i64 0, i64 4198735) %8 = call i64 @FUNC(i64 %0, i64 4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i64 0, i64 0, i64 4198735) %9 = call i64 @FUNC(i64 %0, i64 5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0), i64 0, i64 0, i64 4198735) %10 = call i64 @FUNC(i64 %0) %11 = call i64 @FUNC(i64 %0) %12 = call i64 @FUNC(i64 %0) %13 = bitcast i64* %arg1 to i32* store i32 32, i32* %13, align 4 %14 = add i64 %0, 4 %15 = inttoptr i64 %14 to i32* store i32 32, i32* %15, align 4 %16 = call i64 @FUNC(i64 %0) ret i64 %16 uselistorder i64 %0, { 7, 6, 5, 4, 3, 2, 1, 0, 8, 9, 10, 11, 12, 13 } uselistorder i64 4, { 1, 0 } uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @spr_register, { 4, 3, 2, 1, 0 } }
1
BinRealVul
vmxnet3_verify_driver_magic_16788
vmxnet3_verify_driver_magic
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 305419896 %4 = zext i1 %3 to i64 %5 = and i64 %1, 4294967040 %6 = or i64 %5, %4 ret i64 %6 uselistorder i64 %1, { 1, 0 } }
1
BinRealVul
iakerb_gss_export_sec_context_11051
iakerb_gss_export_sec_context
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false store i64 1, i64* %storemerge.reg2mem br i1 %4, label LBL_1, label LBL_4 LBL_1: %5 = ptrtoint i64* %arg2 to i64 %6 = ptrtoint i64* %arg1 to i64 %7 = ptrtoint i64* %arg3 to i64 %8 = add i64 %5, 8 %9 = call i64 @FUNC(i64 %6, i64 %8, i64 %7) %10 = inttoptr i64 %8 to i64* %11 = load i64, i64* %10, align 8 %12 = icmp eq i64 %11, 0 %13 = icmp eq i1 %12, false br i1 %13, label LBL_3, label LBL_2 LBL_2: %14 = call i64 @FUNC(i64 %5) store i64 0, i64* %arg2, align 8 br label LBL_3 LBL_3: %15 = and i64 %9, 4294967295 store i64 %15, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
prep_new_huge_page_8637
prep_new_huge_page
define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i32* %arg1 to i64 %4 = call i64 @FUNC(i64 %2) %5 = call i64 @FUNC(i64 %2, i64 0) %6 = call i64 @FUNC(i64* nonnull @gv_0) %7 = call i64 @FUNC(i64 %2, i64 0) %8 = trunc i64 %1 to i32 %9 = add i32 %8, 1 store i32 %9, i32* %arg1, align 4 %10 = sext i32 %arg3 to i64 %11 = mul i64 %10, 4 %12 = add i64 %3, 4 %13 = add i64 %12, %11 %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* nonnull @gv_0) %18 = call i64 @FUNC(i64 %2) ret i64 %18 uselistorder i64 4, { 1, 0 } }
0
BinRealVul
_6lo_frag_size_6882
_6lo_frag_size
define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = icmp eq i64 %arg2, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = trunc i64 %1 to i8 %6 = icmp eq i8 %5, 0 %7 = sext i1 %6 to i64 %spec.select = add i64 %7, %2 ret i64 %spec.select LBL_2: ret i64 %2 uselistorder i64 %2, { 1, 0 } }
0
BinRealVul
vorbis_finish_frame_11636
vorbis_finish_frame
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %storemerge813.reg2mem = alloca i32 %.reg2mem32 = alloca i64 %.reg2mem30 = alloca i32 %.reg2mem28 = alloca i32 %storemerge912.reg2mem = alloca i32 %.reg2mem26 = alloca i32 %.reg2mem24 = alloca i32 %.pre-phi.reg2mem = alloca i32* %storemerge1015.reg2mem = alloca i32 %.reg2mem22 = alloca i64 %.reg2mem20 = alloca i32 %.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sext4 = mul i64 %arg3, 4294967296 %3 = ashr exact i64 %sext4, 32 %4 = add i64 %2, 4 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = icmp eq i32 %6, 0 br i1 %7, label LBL_0.LBL_10_crit_edge, label LBL_2 LBL_1: %.pre18 = bitcast i64* %rdi to i32* store i32* %.pre18, i32** %.pre-phi.reg2mem store i32 0, i32* %.reg2mem24 br label LBL_10 LBL_2: %8 = trunc i64 %1 to i32 %9 = zext i32 %6 to i64 %10 = call i64 @FUNC(i64 %2, i64 %9) %11 = bitcast i64* %rdi to i32* %12 = icmp eq i32 %8, 0 br i1 %12, label LBL_9, label LBL_3 LBL_3: %13 = icmp sgt i32 %6, 0 %14 = add i64 %2, 8 %15 = inttoptr i64 %14 to i64* %16 = add i64 %2, 16 %17 = inttoptr i64 %16 to i64* store i32 %8, i32* %.reg2mem20 store i64 0, i64* %.reg2mem22 store i32 0, i32* %storemerge1015.reg2mem br label LBL_7 LBL_4: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %18 = load i64, i64* %15, align 8 %19 = add i64 %18, %66 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = add nsw i64 %indvars.iv.reload, %3 %sext19 = mul i64 %22, 4294967296 %23 = ashr exact i64 %sext19, 30 %24 = add i64 %23, %21 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = call i128 @FUNC(i32 %26) %28 = mul i64 %indvars.iv.reload, 4 %29 = add i64 %28, %10 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = call i128 @FUNC(i32 %31) %33 = call i128 @FUNC(i128 %27, i128 %32) %34 = load i64, i64* %17, align 8 %35 = add i64 %34, %66 %36 = inttoptr i64 %35 to i64* %37 = load i64, i64* %36, align 8 %38 = add i64 %37, %28 %39 = inttoptr i64 %38 to i32* %40 = load i32, i32* %39, align 4 %41 = call i128 @FUNC(i32 %40) %42 = trunc i64 %indvars.iv.reload to i32 %43 = sub i32 0, %42 %44 = sub i32 %43, 1 %45 = add i32 %6, %44 %46 = sext i32 %45 to i64 %47 = mul i64 %46, 4 %48 = add i64 %47, %10 %49 = inttoptr i64 %48 to i32* %50 = load i32, i32* %49, align 4 %51 = call i128 @FUNC(i32 %50) %52 = call i128 @FUNC(i128 %51, i128 %41) %53 = load i64, i64* %15, align 8 %54 = add i64 %53, %66 %55 = inttoptr i64 %54 to i64* %56 = load i64, i64* %55, align 8 %57 = add i64 %56, %23 %58 = call i128 @FUNC(i128 %52, i128 %33) %59 = call i64 @__asm_movss.1(i128 %58) %60 = trunc i64 %59 to i32 %61 = inttoptr i64 %57 to i32* store i32 %60, i32* %61, align 4 %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 br i1 %exitcond, label LBL_5, label LBL_4 LBL_5: %.pre = load i32, i32* %11, align 8 store i32 %.pre, i32* %.reg2mem br label LBL_6 LBL_6: %.reload = load i32, i32* %.reg2mem %62 = add i32 %storemerge1015.reload, 1 %63 = zext i32 %.reload to i64 %64 = sext i32 %62 to i64 %65 = icmp slt i64 %64, %63 store i32 %.reload, i32* %.reg2mem20 store i64 %64, i64* %.reg2mem22 store i32 %62, i32* %storemerge1015.reg2mem br i1 %65, label LBL_7, label LBL_9 LBL_7: %storemerge1015.reload = load i32, i32* %storemerge1015.reg2mem %.reload21 = load i32, i32* %.reg2mem20 store i32 %.reload21, i32* %.reg2mem br i1 %13, label LBL_4.lr.ph, label LBL_6 LBL_8: %.reload23 = load i64, i64* %.reg2mem22 %66 = mul i64 %.reload23, 8 store i64 0, i64* %indvars.iv.reg2mem br label LBL_4 LBL_9: %.pre16 = load i32, i32* %5, align 4 store i32* %11, i32** %.pre-phi.reg2mem store i32 %.pre16, i32* %.reg2mem24 br label LBL_10 LBL_10: %sext = mul i64 %arg2, 4294967296 %67 = ashr exact i64 %sext, 32 %sext5 = mul i64 %arg4, 4294967296 %68 = ashr exact i64 %sext5, 32 %.reload25 = load i32, i32* %.reg2mem24 %.pre-phi.reload = load i32*, i32** %.pre-phi.reg2mem %69 = trunc i64 %67 to i32 %70 = trunc i64 %68 to i32 %71 = sub i32 %69, %70 store i32 %71, i32* %5, align 4 %72 = load i32, i32* %.pre-phi.reload, align 8 %73 = icmp eq i32 %72, 0 br i1 %73, label LBL_17, label LBL_11 LBL_11: %74 = and i64 %68, 4294967295 %75 = icmp sgt i64 %67, %74 %76 = add i64 %2, 8 %77 = inttoptr i64 %76 to i64* %78 = add i64 %2, 16 %79 = inttoptr i64 %78 to i64* store i32 %72, i32* %.reg2mem30 store i64 0, i64* %.reg2mem32 store i32 0, i32* %storemerge813.reg2mem br label LBL_15 LBL_12: %storemerge912.reload = load i32, i32* %storemerge912.reg2mem %.reload27 = load i32, i32* %.reg2mem26 %80 = load i64, i64* %77, align 8 %81 = add i64 %80, %108 %82 = inttoptr i64 %81 to i64* %83 = load i64, i64* %82, align 8 %84 = sext i32 %.reload27 to i64 %85 = mul i64 %84, 4 %86 = add i64 %83, %85 %87 = load i64, i64* %79, align 8 %88 = add i64 %87, %108 %89 = inttoptr i64 %88 to i64* %90 = load i64, i64* %89, align 8 %91 = sext i32 %storemerge912.reload to i64 %92 = mul i64 %91, 4 %93 = add i64 %90, %92 %94 = inttoptr i64 %86 to i32* %95 = load i32, i32* %94, align 4 %96 = call i128 @FUNC(i32 %95) %97 = call i64 @__asm_movss.1(i128 %96) %98 = trunc i64 %97 to i32 %99 = inttoptr i64 %93 to i32* store i32 %98, i32* %99, align 4 %100 = add i32 %storemerge912.reload, 1 %101 = add i32 %100, %70 %102 = zext i32 %101 to i64 %103 = icmp sgt i64 %67, %102 store i32 %101, i32* %.reg2mem26 store i32 %100, i32* %storemerge912.reg2mem br i1 %103, label LBL_12, label LBL_13 LBL_13: %.pre17 = load i32, i32* %.pre-phi.reload, align 8 store i32 %.pre17, i32* %.reg2mem28 br label LBL_14 LBL_14: %.reload29 = load i32, i32* %.reg2mem28 %104 = add i32 %storemerge813.reload, 1 %105 = zext i32 %.reload29 to i64 %106 = sext i32 %104 to i64 %107 = icmp slt i64 %106, %105 store i32 %.reload29, i32* %.reg2mem30 store i64 %106, i64* %.reg2mem32 store i32 %104, i32* %storemerge813.reg2mem br i1 %107, label LBL_15, label LBL_17 LBL_15: %storemerge813.reload = load i32, i32* %storemerge813.reg2mem %.reload31 = load i32, i32* %.reg2mem30 store i32 %.reload31, i32* %.reg2mem28 br i1 %75, label LBL_12.lr.ph, label LBL_14 LBL_16: %.reload33 = load i64, i64* %.reg2mem32 %108 = mul i64 %.reload33, 8 store i32 %70, i32* %.reg2mem26 store i32 0, i32* %storemerge912.reg2mem br label LBL_12 LBL_17: %109 = icmp eq i32 %.reload25, 0 %110 = icmp eq i1 %109, false store i64 0, i64* %storemerge.reg2mem br i1 %110, label LBL_18, label LBL_19 LBL_18: %111 = icmp slt i32 %69, %70 %spec.select = select i1 %111, i64 %67, i64 %68 %112 = add i64 %2, 24 %113 = inttoptr i64 %112 to i32* %114 = load i32, i32* %113, align 4 %115 = trunc i64 %spec.select to i32 %116 = trunc i64 %3 to i32 %117 = sub i32 %115, %116 %118 = add i32 %117, %114 store i32 %118, i32* %113, align 4 %119 = sub nsw i64 %spec.select, %3 %120 = and i64 %119, 4294967295 store i64 %120, i64* %storemerge.reg2mem br label LBL_19 LBL_19: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %spec.select, { 1, 0 } uselistorder i32 %70, { 2, 0, 1, 3 } uselistorder i64 %68, { 1, 0, 2 } uselistorder i64 %67, { 1, 2, 0, 3 } uselistorder i64 %28, { 1, 0 } uselistorder i64 %indvars.iv.reload, { 0, 1, 3, 2 } uselistorder i32* %5, { 1, 0, 2 } uselistorder i64 %3, { 1, 2, 0 } uselistorder i64 %2, { 3, 5, 4, 0, 1, 2, 6 } uselistorder i64* %rdi, { 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 } uselistorder i32* %.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem26, { 2, 1, 0 } uselistorder i32* %storemerge912.reg2mem, { 2, 1, 0 } uselistorder i32* %.reg2mem28, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 4, { 0, 1, 2, 3, 5, 4 } uselistorder i64 32, { 0, 2, 1 } uselistorder i64 4294967296, { 1, 3, 0, 2 } uselistorder label LBL_19, { 1, 0 } uselistorder label LBL_15, { 1, 0 } uselistorder label LBL_14, { 1, 0 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
url_find_protocol_1670
url_find_protocol
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge4.reg2mem = alloca i32 %.reg2mem = alloca i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %0 = inttoptr i64 %arg1 to i8* %1 = call i32 @strspn(i8* %0, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @gv_0, i64 0, i64 0)) %2 = sext i32 %1 to i64 %3 = add i64 %2, %arg1 %4 = inttoptr i64 %3 to i8* %5 = load i8, i8* %4, align 1 %6 = icmp eq i8 %5, 58 br i1 %6, label LBL_3, label LBL_1 LBL_1: %7 = call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i32 8) %8 = icmp eq i32 %7, 0 %9 = icmp eq i1 %8, false br i1 %9, label LBL_4, label LBL_2 LBL_2: %10 = add i64 %3, 1 %11 = inttoptr i64 %10 to i8* %12 = call i8* @strchr(i8* %11, i32 58) %13 = icmp eq i8* %12, null br i1 %13, label LBL_4, label LBL_3 LBL_3: %14 = call i64 @FUNC(i64 %arg1) %15 = trunc i64 %14 to i32 %16 = icmp eq i32 %15, 0 br i1 %16, label LBL_5, label LBL_4 LBL_4: store i64 1701603686, i64* %sv_2, align 8 br label LBL_6 LBL_5: %17 = add nsw i64 %2, 1 %18 = icmp ult i64 %17, 128 %19 = select i1 %18, i64 %17, i64 128 %20 = call i64 @FUNC(i64* nonnull %sv_2, i64 %arg1, i64 %19) br label LBL_6 LBL_6: %21 = bitcast i64* %sv_2 to i8* %22 = call i8* @strchr(i8* nonnull %21, i32 44) %23 = icmp eq i8* %22, null br i1 %23, label LBL_8, label LBL_7 LBL_7: store i8 0, i8* %22, align 1 br label LBL_8 LBL_8: %24 = ptrtoint i64* %sv_2 to i64 %25 = call i64 @FUNC(i64* nonnull %sv_1, i64 %24, i64 128) %26 = bitcast i64* %sv_1 to i8* %27 = call i8* @strchr(i8* nonnull %26, i32 43) %28 = icmp eq i8* %27, null br i1 %28, label LBL_10, label LBL_9 LBL_9: store i8 0, i8* %27, align 1 br label LBL_10 LBL_10: %29 = call i64 @FUNC(i64 0, i64 0) store i64 %29, i64* %sv_0, align 8 %30 = icmp eq i64 %29, 0 %31 = icmp eq i1 %30, false store i64 0, i64* %rax.0.reg2mem br i1 %31, label LBL_11, label LBL_19 LBL_11: %32 = inttoptr i64 %29 to i64* %33 = load i64, i64* %32, align 8 %34 = icmp eq i64 %33, 0 %35 = icmp eq i1 %34, false store i64 %33, i64* %.reg2mem store i32 0, i32* %storemerge4.reg2mem br i1 %35, label LBL_12, label LBL_18 LBL_12: %.reload = load i64, i64* %.reg2mem %36 = inttoptr i64 %.reload to i64* %37 = load i64, i64* %36, align 8 %38 = inttoptr i64 %37 to i8* %39 = call i32 @strcmp(i8* nonnull %21, i8* %38) %40 = icmp eq i32 %39, 0 %41 = icmp eq i1 %40, false br i1 %41, label LBL_14, label LBL_13 LBL_13: %42 = call i64 @FUNC(i64* nonnull %sv_0) store i64 %.reload, i64* %rax.0.reg2mem br label LBL_19 LBL_14: %storemerge4.reload = load i32, i32* %storemerge4.reg2mem %43 = add i64 %.reload, 8 %44 = inttoptr i64 %43 to i32* %45 = load i32, i32* %44, align 4 %46 = urem i32 %45, 2 %47 = icmp eq i32 %46, 0 br i1 %47, label LBL_17, label LBL_15 LBL_15: %48 = load i64, i64* %36, align 8 %49 = inttoptr i64 %48 to i8* %50 = call i32 @strcmp(i8* nonnull %26, i8* %49) %51 = icmp eq i32 %50, 0 %52 = icmp eq i1 %51, false br i1 %52, label LBL_17, label LBL_16 LBL_16: %53 = call i64 @FUNC(i64* nonnull %sv_0) store i64 %.reload, i64* %rax.0.reg2mem br label LBL_19 LBL_17: %54 = add i32 %storemerge4.reload, 1 %55 = load i64, i64* %sv_0, align 8 %56 = sext i32 %54 to i64 %57 = mul i64 %56, 8 %58 = add i64 %55, %57 %59 = inttoptr i64 %58 to i64* %60 = load i64, i64* %59, align 8 %61 = icmp eq i64 %60, 0 %62 = icmp eq i1 %61, false store i64 %60, i64* %.reg2mem store i32 %54, i32* %storemerge4.reg2mem br i1 %62, label LBL_12, label LBL_18 LBL_18: %63 = call i64 @FUNC(i64* nonnull %sv_0) store i64 0, i64* %rax.0.reg2mem br label LBL_19 LBL_19: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %.reload, { 1, 2, 0, 3 } uselistorder i64 %2, { 1, 0 } uselistorder i64* %sv_2, { 2, 0, 1, 3 } uselistorder i64* %sv_0, { 0, 3, 1, 2, 4 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge4.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 4, 3, 1 } uselistorder i64 (i64*)* @av_freep, { 0, 2, 1 } uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 } uselistorder i64 (i64*, i64, i64)* @av_strlcpy, { 1, 0 } uselistorder i64 128, { 2, 0, 1 } uselistorder i8* (i8*, i32)* @strchr, { 2, 1, 0 } uselistorder i32 0, { 1, 2, 3, 0, 4, 5 } uselistorder i64 %arg1, { 1, 2, 0, 3 } uselistorder label LBL_19, { 3, 1, 2, 0 } uselistorder label LBL_12, { 1, 0 } }
0
BinRealVul
__nfs4_close_13638
__nfs4_close
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.2.reg2mem = alloca i32 %sv_1.2.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %0 = ptrtoint i64* %arg2 to i64 %1 = call i64 @FUNC(i64 %0) %2 = add i64 %0, 4 %3 = call i64 @FUNC(i64 %2) %4 = urem i64 %arg3, 4 %5 = icmp eq i64 %4, 3 br i1 %5, label LBL_4, label LBL_1 LBL_1: %6 = trunc i64 %4 to i32 switch i32 %6, label LBL_5 [ i32 1, label LBL_2 i32 2, label LBL_3 ] LBL_2: %7 = add i64 %0, 8 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = add i32 %9, -1 store i32 %10, i32* %8, align 4 br label LBL_5 LBL_3: %11 = add i64 %0, 12 %12 = inttoptr i64 %11 to i32* %13 = load i32, i32* %12, align 4 %14 = add i32 %13, -1 store i32 %14, i32* %12, align 4 br label LBL_5 LBL_4: %15 = add i64 %0, 16 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = add i32 %17, -1 store i32 %18, i32* %16, align 4 br label LBL_5 LBL_5: %19 = add i64 %0, 16 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = icmp eq i32 %21, 0 %23 = icmp eq i1 %22, false store i32 0, i32* %sv_1.2.reg2mem store i32 3, i32* %sv_0.2.reg2mem br i1 %23, label LBL_11, label LBL_6 LBL_6: %24 = add i64 %0, 8 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = icmp eq i32 %26, 0 %28 = icmp eq i1 %27, false store i32 0, i32* %sv_1.0.reg2mem store i32 3, i32* %sv_0.0.reg2mem br i1 %28, label LBL_8, label LBL_7 LBL_7: %29 = add i64 %0, 20 %30 = call i64 @FUNC(i64 0, i64 %29) %31 = call i64 @FUNC(i64 2, i64 %29) %32 = or i64 %31, %30 %33 = trunc i64 %32 to i32 store i32 %33, i32* %sv_1.0.reg2mem store i32 2, i32* %sv_0.0.reg2mem br label LBL_8 LBL_8: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %34 = add i64 %0, 12 %35 = inttoptr i64 %34 to i32* %36 = load i32, i32* %35, align 4 %37 = icmp eq i32 %36, 0 %38 = icmp eq i1 %37, false store i32 %sv_1.0.reload, i32* %sv_1.2.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem br i1 %38, label LBL_11, label LBL_9 LBL_9: %39 = urem i32 %sv_0.0.reload, 2 %40 = add i64 %0, 20 %41 = call i64 @FUNC(i64 1, i64 %40) %42 = trunc i64 %41 to i32 %43 = or i32 %sv_1.0.reload, %42 %44 = call i64 @FUNC(i64 2, i64 %40) %45 = trunc i64 %44 to i32 %46 = or i32 %43, %45 %47 = icmp eq i32 %39, 0 %48 = icmp eq i1 %47, false store i32 %46, i32* %sv_1.2.reg2mem store i32 %39, i32* %sv_0.2.reg2mem br i1 %48, label LBL_11, label LBL_10 LBL_10: %49 = call i64 @FUNC(i64 3, i64 %40) store i32 %46, i32* %sv_1.2.reg2mem store i32 %39, i32* %sv_0.2.reg2mem br label LBL_11 LBL_11: %sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem %sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem %50 = zext i32 %sv_0.2.reload to i64 %51 = call i64 @FUNC(i64 %0, i64 %50) %52 = call i64 @FUNC(i64 %2) %53 = icmp eq i32 %sv_1.2.reload, 0 %54 = icmp eq i1 %53, false br i1 %54, label LBL_13, label LBL_12 LBL_12: %55 = call i64 @FUNC(i64 %0) %56 = call i64 @FUNC(i64 %0) store i64 %56, i64* %storemerge.reg2mem br label LBL_14 LBL_13: %57 = ptrtoint i64* %arg1 to i64 %58 = and i64 %arg4, 4294967295 %59 = call i64 @FUNC(i64 %57, i64 %0, i64 %58) store i64 %59, i64* %storemerge.reg2mem br label LBL_14 LBL_14: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %sv_1.0.reload, { 1, 0 } uselistorder i32 %sv_0.0.reload, { 1, 0 } uselistorder i64 %4, { 1, 0 } uselistorder i64 %0, { 7, 5, 6, 8, 3, 4, 2, 10, 9, 11, 0, 1, 12, 13 } uselistorder i32* %sv_1.2.reg2mem, { 0, 2, 3, 1, 4 } uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 3, 1, 4 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i64)* @test_bit, { 3, 2, 1, 0 } uselistorder i32 3, { 1, 0 } uselistorder i32 -1, { 2, 4, 3, 0, 1 } uselistorder i32 2, { 1, 0, 2 } uselistorder label LBL_11, { 1, 2, 0, 3 } uselistorder label LBL_5, { 1, 2, 3, 0 } }
0
BinRealVul
export_13824
export
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %3 = trunc i64 %1 to i32 %4 = icmp slt i32 %3, 2 %5 = add i64 %2, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 br i1 %4, label LBL_2, label LBL_1 LBL_1: %8 = trunc i64 %arg3 to i32 %9 = call i64 @FUNC(i64* nonnull %sv_0, i64 1024, i64 %7, i32 %8) %10 = trunc i64 %9 to i32 %11 = icmp eq i32 %10, 0 %12 = zext i1 %11 to i64 %13 = call i64 @FUNC(i64 %12) br label LBL_3 LBL_2: %14 = call i64 @FUNC(i64* nonnull %sv_0, i64 %7, i64 1024) %15 = icmp ult i64 %14, 1024 store i64 4294967274, i64* %rax.0.reg2mem br i1 %15, label LBL_3, label LBL_6 LBL_3: %16 = ptrtoint i64* %arg2 to i64 %17 = add i64 %2, 16 %18 = inttoptr i64 %17 to i32* %19 = load i32, i32* %18, align 4 %20 = icmp eq i32 %19, 1 %21 = icmp eq i1 %20, false br i1 %21, label LBL_5, label LBL_4 LBL_4: %22 = call i64 @FUNC(i64 %2, i64 %16, i64* nonnull %sv_0) store i64 %22, i64* %rax.0.reg2mem br label LBL_6 LBL_5: %23 = call i64 @FUNC(i64 %2, i64 %16, i64* nonnull %sv_0) store i64 %23, 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 %7, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder label LBL_6, { 1, 2, 0 } }
0
BinRealVul
copy_templates_17505
copy_templates
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %storemerge4.in.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %0 = ptrtoint i64* %sv_3 to i64 %1 = inttoptr i64 %arg3 to i8* %2 = icmp eq i64 %arg3, 0 %3 = icmp eq i1 %2, false %spec.select = select i1 %3, i8* %1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0) %4 = bitcast i64* %sv_2 to i8* %5 = call i8* @strcpy(i8* nonnull %4, i8* %spec.select) %6 = call i32 @strlen(i8* nonnull %4) %7 = add i32 %6, -1 %8 = sext i32 %7 to i64 %9 = add i64 %0, -8208 %10 = add i64 %9, %8 %11 = inttoptr i64 %10 to i8* %12 = load i8, i8* %11, align 1 %13 = icmp eq i8 %12, 47 store i32 %6, i32* %sv_0.0.reg2mem br i1 %13, label LBL_2, label LBL_1 LBL_1: %14 = add i32 %6, 1 %15 = sext i32 %6 to i64 %16 = add i64 %9, %15 %17 = inttoptr i64 %16 to i8* store i8 47, i8* %17, align 1 %18 = sext i32 %14 to i64 %19 = add i64 %9, %18 %20 = inttoptr i64 %19 to i8* store i8 0, i8* %20, align 1 store i32 %14, i32* %sv_0.0.reg2mem br label LBL_2 LBL_2: %21 = call %__dirstream* @opendir(i8* nonnull %4) %22 = icmp eq %__dirstream* %21, null %23 = icmp eq i1 %22, false br i1 %23, label LBL_4, label LBL_3 LBL_3: %24 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %25 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %24, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_2, i64 0, i64 0), i8* %spec.select) store i32 %25, i32* %storemerge4.in.reg2mem br label LBL_5 LBL_4: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %26 = trunc i64 %arg2 to i32 %27 = inttoptr i64 %arg1 to i64* %28 = call i64* @memcpy(i64* nonnull %sv_1, i64* %27, i32 %26) %29 = ptrtoint %__dirstream* %21 to i64 %30 = call i64 @FUNC(i64* nonnull %sv_1, i32 %26, i64* nonnull %sv_2, i32 %sv_0.0.reload, i64 %29) %31 = call i32 @closedir(%__dirstream* %21) store i32 %31, i32* %storemerge4.in.reg2mem br label LBL_5 LBL_5: %storemerge4.in.reload = load i32, i32* %storemerge4.in.reg2mem %storemerge4 = sext i32 %storemerge4.in.reload to i64 ret i64 %storemerge4 uselistorder %__dirstream* %21, { 1, 0, 2 } uselistorder i32 %6, { 2, 1, 0, 3 } uselistorder i32* %storemerge4.in.reg2mem, { 0, 2, 1 } uselistorder i8 0, { 1, 0 } uselistorder i8 47, { 1, 0 } uselistorder i64 %arg3, { 1, 0 } }
1
BinRealVul
scsi_command_complete_15835
scsi_command_complete
define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3) 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 i32* %arg1 to i64 %5 = trunc i64 %arg2 to i32 %6 = and i64 %arg3, 4294967295 %7 = and i64 %3, 4294967295 %8 = call i64 @FUNC(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_0, i64 0, i64 0), i64 %7, i32 %5, i64 %6, i64 %2, i64 %1) %9 = and i64 %arg2, 4294967295 %10 = call i64 @FUNC(i64 %4, i64 %9, i64 %6) %11 = call i64 @FUNC(i64 %4) %12 = call i64 @FUNC(i64 %4) ret i64 %12 uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 4294967295, { 2, 0, 1 } }
1
BinRealVul
rtsp_cmd_teardown_16293
rtsp_cmd_teardown
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg3 to i64 %5 = ptrtoint i64* %arg1 to i64 %6 = call i64 @FUNC(i64 %arg2, i64 %4) %7 = icmp eq i64 %6, 0 %8 = icmp eq i1 %7, false br i1 %8, label LBL_2, label LBL_1 LBL_1: %9 = call i64 @FUNC(i64 %5, i64 404) store i64 %9, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %10 = call i64 @FUNC(i64 %6) %11 = call i64 @FUNC(i64 %5, i64 200) %12 = inttoptr i64 %6 to i64* %13 = load i64, i64* %12, align 8 %14 = add i64 %5, 8 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i64 %13, i64 %3, i64 %2, i64 %1) %18 = load i64, i64* %15, align 8 %19 = call i64 @FUNC(i64 %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 %13, i64 %3, i64 %2, i64 %1) store i64 %19, i64* %storemerge.reg2mem br label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %13, { 1, 0 } uselistorder i64 %6, { 1, 0, 2 } uselistorder i64 %5, { 2, 1, 0 } uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @url_fprintf, { 1, 0 } }
1
BinRealVul
qcow2_expand_zero_clusters_3134
qcow2_expand_zero_clusters
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %sv_1.1.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i32 %storemerge12.reg2mem = alloca i32 %.reg2mem24 = alloca i64 %sv_1.03.reg2mem = alloca i64 %storemerge4.reg2mem = alloca i32 %.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = mul i64 %5, 512 %7 = call i64 @FUNC(i64 %0, i64 %6) store i64 %7, i64* %sv_3, align 8 %8 = add i64 %7, 7 %9 = udiv i64 %8, 8 %10 = call i64 @FUNC(i64 %9) store i64 %10, i64* %sv_2, align 8 %11 = icmp eq i64 %10, 0 %12 = icmp eq i1 %11, false store i64 0, i64* %sv_1.1.reg2mem store i64 4294967284, i64* %sv_0.0.reg2mem br i1 %12, label LBL_1, label LBL_9 LBL_1: %13 = inttoptr i64 %1 to i32* %14 = load i32, i32* %13, align 4 %15 = call i64 @FUNC(i64 %0, i64 %9, i32 %14, i64* nonnull %sv_2, i64* nonnull %sv_3) %16 = trunc i64 %15 to i32 %17 = icmp slt i32 %16, 0 store i64 0, i64* %sv_1.1.reg2mem store i64 %15, i64* %sv_0.0.reg2mem br i1 %17, label LBL_9, label LBL_2 LBL_2: %18 = add i64 %0, 24 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = call i64 @FUNC(i64 %0, i64 %20) %22 = trunc i64 %21 to i32 %23 = icmp slt i32 %22, 0 store i64 0, i64* %sv_1.1.reg2mem store i64 %21, i64* %sv_0.0.reg2mem br i1 %23, label LBL_9, label LBL_3 LBL_3: %24 = add i64 %0, 16 %25 = inttoptr i64 %24 to i64* %26 = add i64 %0, 12 %27 = inttoptr i64 %26 to i32* %28 = load i32, i32* %27, align 4 %29 = icmp eq i32 %28, 0 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge4.reg2mem store i64 0, i64* %sv_1.03.reg2mem store i64 0, i64* %sv_1.1.reg2mem store i64 0, i64* %sv_0.0.reg2mem br i1 %29, label LBL_9, label LBL_4 LBL_4: %sv_1.03.reload = load i64, i64* %sv_1.03.reg2mem %.reload = load i64, i64* %.reg2mem %30 = load i64, i64* %25, align 8 %31 = mul i64 %.reload, 16 %32 = add i64 %30, %31 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = sext i32 %34 to i64 %36 = mul i64 %35, 8 %37 = add nsw i64 %36, 511 %38 = udiv i64 %37, 512 %39 = trunc i64 %38 to i32 %40 = mul i64 %37, 4294967296 %sext = ashr exact i64 %40, 32 %41 = and i64 %sext, -512 %42 = call i64 @FUNC(i64 %sv_1.03.reload, i64 %41) %43 = load i64, i64* %25, align 8 %44 = or i64 %31, 8 %45 = add i64 %43, %44 %46 = inttoptr i64 %45 to i64* %47 = load i64, i64* %46, align 8 %48 = udiv i64 %47, 512 %49 = load i64, i64* %2, align 8 %50 = call i64 @FUNC(i64 %49, i64 %48, i64 %42, i32 %39) %51 = trunc i64 %50 to i32 %52 = icmp slt i32 %51, 0 store i64 %42, i64* %sv_1.1.reg2mem store i64 %50, i64* %sv_0.0.reg2mem br i1 %52, label LBL_9, label LBL_5 LBL_5: %storemerge4.reload = load i32, i32* %storemerge4.reg2mem %53 = load i64, i64* %25, align 8 %54 = add i64 %53, %31 %55 = inttoptr i64 %54 to i32* %56 = load i32, i32* %55, align 4 %57 = icmp eq i32 %56, 0 store i64 0, i64* %.reg2mem24 store i32 0, i32* %storemerge12.reg2mem store i32 0, i32* %.lcssa.reg2mem br i1 %57, label LBL_7, label LBL_6 LBL_6: %storemerge12.reload = load i32, i32* %storemerge12.reg2mem %.reload25 = load i64, i64* %.reg2mem24 %58 = mul i64 %.reload25, 8 %59 = add i64 %58, %42 %60 = call i64 @FUNC(i64 %59) %61 = add i32 %storemerge12.reload, 1 %62 = load i64, i64* %25, align 8 %63 = add i64 %62, %31 %64 = inttoptr i64 %63 to i32* %65 = load i32, i32* %64, align 4 %66 = zext i32 %65 to i64 %67 = sext i32 %61 to i64 %68 = icmp slt i64 %67, %66 store i64 %67, i64* %.reg2mem24 store i32 %61, i32* %storemerge12.reg2mem store i32 %65, i32* %.lcssa.reg2mem br i1 %68, label LBL_6, label LBL_7 LBL_7: %.lcssa.reload = load i32, i32* %.lcssa.reg2mem %69 = call i64 @FUNC(i64 %0, i64 %42, i32 %.lcssa.reload, i64* nonnull %sv_2, i64* nonnull %sv_3) %70 = trunc i64 %69 to i32 %71 = icmp slt i32 %70, 0 store i64 %42, i64* %sv_1.1.reg2mem store i64 %69, i64* %sv_0.0.reg2mem br i1 %71, label LBL_9, label LBL_8 LBL_8: %72 = add i32 %storemerge4.reload, 1 %73 = load i32, i32* %27, align 4 %74 = zext i32 %73 to i64 %75 = sext i32 %72 to i64 %76 = icmp slt i64 %75, %74 store i64 %75, i64* %.reg2mem store i32 %72, i32* %storemerge4.reg2mem store i64 %42, i64* %sv_1.03.reg2mem store i64 %42, i64* %sv_1.1.reg2mem store i64 0, i64* %sv_0.0.reg2mem br i1 %76, label LBL_4, label LBL_9 LBL_9: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem %77 = load i64, i64* %sv_2, align 8 %78 = call i64 @FUNC(i64 %77) %79 = call i64 @FUNC(i64 %sv_1.1.reload) %80 = and i64 %sv_0.0.reload, 4294967295 ret i64 %80 uselistorder i64 %42, { 2, 3, 1, 5, 4, 0, 6 } uselistorder i64 %31, { 3, 2, 0, 1 } uselistorder i32* %27, { 1, 0 } uselistorder i64* %25, { 1, 0, 2, 3 } uselistorder i64 %9, { 1, 0 } uselistorder i64* %sv_2, { 2, 0, 1, 3 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge4.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.03.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem24, { 2, 0, 1 } uselistorder i32* %storemerge12.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.1.reg2mem, { 0, 3, 2, 1, 4, 6, 7, 5 } uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1, 4, 6, 7, 5 } uselistorder i64 (i64)* @g_free, { 1, 0 } uselistorder i32 0, { 5, 0, 1, 3, 6, 2, 4, 7, 8 } uselistorder i64 (i64, i64, i32, i64*, i64*)* @expand_zero_clusters_in_l1, { 1, 0 } uselistorder i64 512, { 1, 2, 0, 3 } uselistorder i64 8, { 0, 3, 1, 2, 4 } uselistorder label LBL_9, { 2, 1, 0, 3, 5, 6, 4 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
unimp_class_init_13986
unimp_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 = load i64, i64* @gv_0, align 8 %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i64* store i64 %1, i64* %3, align 8 ret i64 %0 uselistorder i64 %0, { 1, 0 } }
1
BinRealVul
dump_iterate_2764
dump_iterate
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %.pn.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 store i64 0, i64* %sv_0, align 8 %2 = add i64 %1, 8 %3 = inttoptr i64 %2 to i64* %4 = add i64 %1, 32 %5 = inttoptr i64 %4 to i32* %6 = add i64 %1, 16 %7 = inttoptr i64 %6 to i64* %8 = add i64 %1, 24 %9 = inttoptr i64 %8 to i64* br label LBL_1 LBL_1: %10 = load i64, i64* %3, align 8 %11 = load i32, i32* %5, align 4 %12 = icmp eq i32 %11, 0 store i64 %10, i64* %.pn.reg2mem br i1 %12, label LBL_3, label LBL_2 LBL_2: %13 = load i64, i64* %7, align 8 %14 = load i64, i64* %9, align 8 %15 = add i64 %14, %13 %16 = icmp slt i64 %15, %10 %17 = sub i64 %15, %10 %spec.select = select i1 %16, i64 %17, i64 0 store i64 %spec.select, i64* %.pn.reg2mem br label LBL_3 LBL_3: %.pn.reload = load i64, i64* %.pn.reg2mem %sv_1.0 = sub i64 %.pn.reload, %1 %18 = call i64 @FUNC(i64 %1, i64 %1, i64 %10, i64 %sv_1.0, i64* nonnull %sv_0) %19 = load i64, i64* %sv_0, align 8 %20 = icmp eq i64 %19, 0 br i1 %20, label LBL_5, label LBL_4 LBL_4: %21 = call i64 @FUNC(i64 %0, i64 %19) store i64 %21, i64* %storemerge.reg2mem br label LBL_7 LBL_5: %22 = call i64 @FUNC(i64 %1, i64 %1) %23 = trunc i64 %22 to i32 %24 = icmp eq i32 %23, 0 br i1 %24, label LBL_1, label LBL_6 LBL_6: %25 = call i64 @FUNC(i64 %1) store i64 %25, i64* %storemerge.reg2mem br label LBL_7 LBL_7: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %10, { 1, 3, 2, 0 } uselistorder i64* %sv_0, { 1, 0, 2 } uselistorder i64 %1, { 6, 3, 7, 2, 8, 0, 5, 4, 9, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } }
0
BinRealVul
slip_write_wakeup_7350
slip_write_wakeup
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC() %2 = call i64 @FUNC(i64 %0) %3 = icmp eq i64 %2, 0 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = call i64 @FUNC(i64 %2) br label LBL_2 LBL_2: %5 = call i64 @FUNC() ret i64 %5 uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
opdiv_12482
opdiv
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg2 to i64 %4 = ptrtoint i32* %arg1 to i64 %5 = or i64 %2, %1 %6 = trunc i64 %5 to i32 store i32 %6, i32* %arg1, align 4 %7 = call i64 @FUNC(i64 %4, i64 1) %8 = call i64 @FUNC(i64 %3, i64 1) %9 = add i64 %4, 8 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = call i128 @FUNC(i64 %11) %13 = add i64 %3, 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = call i128 @FUNC(i64 %15) %17 = call i128 @FUNC(i128 %12, i128 %16) %18 = call i64 @__asm_movsd.1(i128 %17) store i64 %18, i64* %10, align 8 ret i64 %4 uselistorder i64 %3, { 1, 0 } uselistorder i64* %0, { 1, 0 } uselistorder i64 (i64, i64)* @checktype, { 1, 0 } }
1
BinRealVul
readUInt32_12979
readUInt32
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC(i64 %arg1) %1 = trunc i64 %0 to i32 %2 = call i64 @FUNC(i64 %arg1) %3 = trunc i64 %2 to i32 %4 = mul i32 %3, 256 %5 = and i32 %4, 65280 %6 = urem i32 %1, 256 %7 = or i32 %5, %6 %8 = call i64 @FUNC(i64 %arg1) %9 = trunc i64 %8 to i32 %10 = mul i32 %9, 65536 %11 = and i32 %10, 16711680 %12 = or i32 %7, %11 %13 = call i64 @FUNC(i64 %arg1) %14 = trunc i64 %13 to i32 %15 = mul i32 %14, 16777216 %16 = or i32 %12, %15 %17 = sext i32 %16 to i64 ret i64 %17 uselistorder i32 256, { 1, 0 } uselistorder i64 (i64)* @readUInt8, { 3, 2, 1, 0 } }
1
BinRealVul
in_mqtt_exit_6261
in_mqtt_exit
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %0) ret i64 0 }
0
BinRealVul
ehci_trace_itd_15012
ehci_trace_itd
define i64 @FUNC(i64* %arg1, i64 %arg2, i32* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = and i64 %1, 4294967295 %3 = call i64 @FUNC(i64 %arg2, i64 %2) ret i64 %3 }
1
BinRealVul
init_bundles_3033
init_bundles
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = add i32 %3, 7 %5 = udiv i32 %4, 8 %6 = add i64 %2, 4 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = add i32 %8, 7 %10 = ashr i32 %9, 3 %11 = mul i32 %5, 64 %12 = mul i32 %11, %10 %13 = sext i32 %12 to i64 store i64 0, i64* %indvars.iv.reg2mem br label LBL_1 LBL_1: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %14 = call i64 @FUNC(i64 %13) %15 = mul i64 %indvars.iv.reload, 16 %16 = add i64 %15, %2 %17 = add i64 %16, 8 %18 = inttoptr i64 %17 to i64* store i64 %14, i64* %18, align 8 %19 = icmp eq i64 %14, 0 %20 = icmp eq i1 %19, false store i64 4294967284, i64* %storemerge.reg2mem br i1 %20, label LBL_2, label LBL_3 LBL_2: %21 = add i64 %14, %13 %22 = add i64 %16, 16 %23 = inttoptr i64 %22 to i64* store i64 %21, i64* %23, align 8 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %24 = icmp ult i64 %indvars.iv.next, 10 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 0, i64* %storemerge.reg2mem br i1 %24, label LBL_1, label LBL_3 LBL_3: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64 16, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
avcodec_default_reget_buffer_16932
avcodec_default_reget_buffer
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC(i64 0) ret i64 %0 }
1
BinRealVul
_write_lock_7316
_write_lock
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i32* %arg1 to i64 %1 = call i64 @FUNC() %2 = call i64 @FUNC() %3 = and i64 %2, 4294967295 %4 = call i64 @FUNC(i64 %0, i64 0, i64 %3) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 store i64 %4, i64* %rax.0.reg2mem br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = call i64 @FUNC(i64 %0) store i64 %7, 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 4294967295, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
xfrm_policy_flush_4780
xfrm_policy_flush
define i64 @FUNC(i64 %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %sv_0.529.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %sv_0.4.lcssa.reg2mem = alloca i64 %sv_1.2.lcssa.reg2mem = alloca i32 %sv_1.224.reg2mem = alloca i32 %sv_0.425.reg2mem = alloca i64 %storemerge426.reg2mem = alloca i32 %sv_0.3.lcssa.reg2mem = alloca i64 %sv_1.1.lcssa.reg2mem = alloca i32 %sv_0.315.reg2mem = alloca i64 %sv_1.120.reg2mem = alloca i32 %sv_0.1.lcssa.reg2mem = alloca i64 %sv_1.0.lcssa.reg2mem = alloca i32 %sv_0.17.reg2mem = alloca i64 %sv_1.011.reg2mem = alloca i32 %rsi = alloca i64, align 8 %0 = call i64 @FUNC(i64* nonnull @gv_0) %1 = ptrtoint i32* %arg2 to i64 %2 = urem i64 %arg1, 256 %3 = call i64 @FUNC(i64 %2, i64 %1) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 %6 = icmp eq i1 %5, false br i1 %6, label LBL_18, label LBL_1 LBL_1: %7 = trunc i64 %arg1 to i8 %8 = add i64 %1, 8 %9 = inttoptr i64 %8 to i32* %10 = add i64 %1, 4 %11 = inttoptr i64 %10 to i32* %12 = bitcast i64* %rsi to i32* store i64 0, i64* %indvars.iv.reg2mem br label LBL_15 LBL_2: %sv_1.011.reload = load i32, i32* %sv_1.011.reg2mem %13 = load i8, i8* %74, align 1 %14 = icmp eq i8 %13, %7 %15 = icmp eq i1 %14, false store i64 %sv_0.529.reload, i64* %sv_0.17.reg2mem br label LBL_3 LBL_3: br i1 %15, label LBL_5, label LBL_4 LBL_4: %16 = call i64 @FUNC(i64 %sv_0.529.reload) %17 = call i64 @FUNC(i64 %75) %18 = call i64 @FUNC(i64 %76) %19 = call i64 @FUNC(i64* nonnull @gv_0) %20 = load i32, i32* %9, align 4 %21 = load i32, i32* %11, align 4 %22 = load i32, i32* %12, align 8 %23 = zext i32 %20 to i64 %24 = call i64 @FUNC(i64 %73, i64 1, i32 %22, i32 %21, i64 %23) %25 = call i64 @FUNC(i64 %73) %26 = add i32 %sv_1.011.reload, 1 %27 = call i64 @FUNC(i64* nonnull @gv_0) store i32 %26, i32* %sv_1.011.reg2mem br label LBL_2 LBL_5: %sv_0.17.reload = load i64, i64* %sv_0.17.reg2mem %28 = inttoptr i64 %sv_0.17.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* %sv_0.17.reg2mem store i32 %sv_1.011.reload, i32* %sv_1.0.lcssa.reg2mem store i64 %29, i64* %sv_0.1.lcssa.reg2mem br i1 %31, label LBL_3, label LBL_6 LBL_6: %sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem %sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem %32 = mul i64 %indvars.iv.reload, 16 %33 = add i64 %32, ptrtoint (i32** @gv_1 to i64) %34 = inttoptr i64 %33 to i32* %35 = load i32, i32* %34, align 8 %36 = icmp slt i32 %35, 0 %37 = icmp eq i1 %36, false store i32 %35, i32* %storemerge426.reg2mem store i64 %sv_0.1.lcssa.reload, i64* %sv_0.425.reg2mem store i32 %sv_1.0.lcssa.reload, i32* %sv_1.224.reg2mem store i32 %sv_1.0.lcssa.reload, i32* %sv_1.2.lcssa.reg2mem store i64 %sv_0.1.lcssa.reload, i64* %sv_0.4.lcssa.reg2mem br i1 %37, label LBL_12, label LBL_14 LBL_7: %sv_1.120.reload = load i32, i32* %sv_1.120.reg2mem %38 = load i8, i8* %63, align 1 %39 = icmp eq i8 %38, %7 %40 = icmp eq i1 %39, false store i64 %sv_0.425.reload, i64* %sv_0.315.reg2mem br label LBL_8 LBL_8: br i1 %40, label LBL_10, label LBL_9 LBL_9: %41 = call i64 @FUNC(i64 %sv_0.425.reload) %42 = call i64 @FUNC(i64 %64) %43 = call i64 @FUNC(i64 %65) %44 = call i64 @FUNC(i64* nonnull @gv_0) %45 = load i32, i32* %9, align 4 %46 = load i32, i32* %11, align 4 %47 = load i32, i32* %12, align 8 %48 = zext i32 %45 to i64 %49 = call i64 @FUNC(i64 %62, i64 1, i32 %47, i32 %46, i64 %48) %50 = call i64 @FUNC(i64 %62) %51 = add i32 %sv_1.120.reload, 1 %52 = call i64 @FUNC(i64* nonnull @gv_0) store i32 %51, i32* %sv_1.120.reg2mem br label LBL_7 LBL_10: %sv_0.315.reload = load i64, i64* %sv_0.315.reg2mem %53 = inttoptr i64 %sv_0.315.reload to i64* %54 = load i64, i64* %53, align 8 %55 = icmp eq i64 %54, 0 %56 = icmp eq i1 %55, false store i64 %54, i64* %sv_0.315.reg2mem store i32 %sv_1.120.reload, i32* %sv_1.1.lcssa.reg2mem store i64 %54, i64* %sv_0.3.lcssa.reg2mem br i1 %56, label LBL_8, label LBL_11 LBL_11: %sv_0.3.lcssa.reload = load i64, i64* %sv_0.3.lcssa.reg2mem %sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem %57 = add i32 %storemerge426.reload, -1 %58 = icmp slt i32 %57, 0 %59 = icmp eq i1 %58, false store i32 %57, i32* %storemerge426.reg2mem store i64 %sv_0.3.lcssa.reload, i64* %sv_0.425.reg2mem store i32 %sv_1.1.lcssa.reload, i32* %sv_1.224.reg2mem store i32 %sv_1.1.lcssa.reload, i32* %sv_1.2.lcssa.reg2mem store i64 %sv_0.3.lcssa.reload, i64* %sv_0.4.lcssa.reg2mem br i1 %59, label LBL_12, label LBL_14 LBL_12: %sv_1.224.reload = load i32, i32* %sv_1.224.reg2mem %sv_0.425.reload = load i64, i64* %sv_0.425.reg2mem %storemerge426.reload = load i32, i32* %storemerge426.reg2mem %60 = icmp eq i64 %sv_0.425.reload, 0 %61 = icmp eq i1 %60, false store i32 %sv_1.224.reload, i32* %sv_1.1.lcssa.reg2mem store i64 %sv_0.425.reload, i64* %sv_0.3.lcssa.reg2mem br i1 %61, label LBL_7.preheader, label LBL_11 LBL_13: %62 = add i64 %sv_0.425.reload, -8 %63 = inttoptr i64 %62 to i8* %64 = add i64 %sv_0.425.reload, 8 %65 = add i64 %sv_0.425.reload, 16 store i32 %sv_1.224.reload, i32* %sv_1.120.reg2mem br label LBL_7 LBL_14: %sv_0.4.lcssa.reload = load i64, i64* %sv_0.4.lcssa.reg2mem %sv_1.2.lcssa.reload = load i32, i32* %sv_1.2.lcssa.reg2mem %66 = mul i64 %indvars.iv.reload, 4 %67 = add nuw nsw i64 %66, ptrtoint (i32** @gv_2 to i64) %68 = inttoptr i64 %67 to i32* %69 = load i32, i32* %68, align 4 %70 = sub i32 %69, %sv_1.2.lcssa.reload store i32 %70, i32* %68, align 4 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 2 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 %sv_0.4.lcssa.reload, i64* %sv_0.529.reg2mem br i1 %exitcond, label LBL_17, label LBL_15 LBL_15: %sv_0.529.reload = load i64, i64* %sv_0.529.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %71 = icmp eq i64 %sv_0.529.reload, 0 %72 = icmp eq i1 %71, false store i32 0, i32* %sv_1.0.lcssa.reg2mem store i64 %sv_0.529.reload, i64* %sv_0.1.lcssa.reg2mem br i1 %72, label LBL_2.preheader, label LBL_6 LBL_16: %73 = add i64 %sv_0.529.reload, -8 %74 = inttoptr i64 %73 to i8* %75 = add i64 %sv_0.529.reload, 8 %76 = add i64 %sv_0.529.reload, 16 store i32 0, i32* %sv_1.011.reg2mem br label LBL_2 LBL_17: %77 = call i64 @FUNC(i64* nonnull @gv_3) br label LBL_18 LBL_18: %78 = call i64 @FUNC(i64* nonnull @gv_0) %79 = and i64 %3, 4294967295 ret i64 %79 uselistorder i64 %73, { 2, 1, 0 } uselistorder i64 %indvars.iv.reload, { 1, 2, 0 } uselistorder i64 %sv_0.529.reload, { 4, 3, 1, 6, 0, 5, 2 } uselistorder i64 %62, { 2, 1, 0 } uselistorder i64 %sv_0.425.reload, { 4, 3, 1, 6, 0, 5, 2 } uselistorder i64 %1, { 1, 0, 2 } uselistorder i32* %sv_1.011.reg2mem, { 1, 2, 0 } uselistorder i64* %sv_0.17.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.0.lcssa.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.1.lcssa.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_1.120.reg2mem, { 1, 2, 0 } uselistorder i64* %sv_0.315.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.1.lcssa.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.3.lcssa.reg2mem, { 2, 0, 1 } uselistorder i32* %storemerge426.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.425.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_1.224.reg2mem, { 0, 2, 1 } uselistorder i64 -8, { 1, 0 } uselistorder i64 16, { 1, 2, 0 } uselistorder i64 (i64)* @xfrm_policy_kill, { 1, 0 } uselistorder i64 (i64, i64, i32, i32, i64)* @xfrm_audit_policy_delete, { 1, 0 } uselistorder i64 (i64*)* @write_unlock_bh, { 2, 1, 0 } uselistorder i64 (i64)* @list_del, { 1, 0 } uselistorder i64 (i64)* @hlist_del, { 3, 2, 1, 0 } uselistorder i1 false, { 2, 1, 5, 4, 3, 0, 7, 6, 8 } uselistorder i64 (i64*)* @write_lock_bh, { 2, 1, 0 } uselistorder i64* @gv_0, { 4, 2, 3, 0, 1, 5 } uselistorder i64 %arg1, { 1, 0 } uselistorder label LBL_18, { 1, 0 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_11, { 1, 0 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
mqtt_packet_drop_12293
mqtt_packet_drop
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 1024 %2 = inttoptr i64 %1 to i32* %3 = load i32, i32* %2, align 4 %4 = add i32 %3, 1 %5 = add i64 %0, 1028 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = sub i32 %7, %4 %9 = sext i32 %4 to i64 %10 = add i64 %9, %0 %11 = inttoptr i64 %10 to i64* %12 = call i64* @memmove(i64* %arg1, i64* %11, i32 %8) %13 = add i64 %0, 1032 %14 = inttoptr i64 %13 to i32* store i32 0, i32* %14, align 4 %15 = load i32, i32* %6, align 4 %16 = sub i32 %15, %4 store i32 %16, i32* %6, align 4 store i32 0, i32* %2, align 4 ret i64 0 uselistorder i32 %4, { 2, 0, 1 } uselistorder i64 %0, { 1, 0, 2, 3 } }
1
BinRealVul
sws_alloc_context_13865
sws_alloc_context
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = call i64 @FUNC(i64 8) %1 = inttoptr i64 %0 to i64* store i64 ptrtoint (i64* @gv_0 to i64), i64* %1, align 8 %2 = call i64 @FUNC(i64 %0) ret i64 %0 }
1
BinRealVul
dp8393x_class_init_669
dp8393x_class_init
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %1, 4294967296 %3 = ashr exact i64 %sext, 32 %4 = call i64 @FUNC(i64 0, i64 %3) %5 = add i64 %2, 8 %6 = inttoptr i64 %5 to i64* store i64 4198704, i64* %6, align 8 %7 = add i64 %2, 16 %8 = inttoptr i64 %7 to i64* store i64 4198711, i64* %8, align 8 %9 = add i64 %2, 24 %10 = inttoptr i64 %9 to i64* store i64 ptrtoint (i64* @gv_0 to i64), i64* %10, align 8 %11 = load i64, i64* @gv_1, align 8 %12 = add i64 %2, 32 %13 = inttoptr i64 %12 to i64* store i64 %11, i64* %13, align 8 %14 = add i64 %2, 40 %15 = inttoptr i64 %14 to i8* store i8 1, i8* %15, align 1 ret i64 %2 uselistorder i64 %2, { 1, 0, 2, 3, 4, 5 } uselistorder i64 32, { 1, 0 } }
0
BinRealVul
ssh_scp_close_9094
ssh_scp_close
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0 = alloca i64, align 8 store i64 0, i64* %sv_0, align 8 %0 = icmp eq i64 %arg1, 0 %1 = icmp eq i1 %0, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %1, label LBL_1, label LBL_8 LBL_1: %2 = call i64 @FUNC(i64 %arg1) %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, -1 %5 = icmp eq i1 %4, false br i1 %5, label LBL_4, label LBL_2 LBL_2: %6 = add i64 %arg1, 8 %7 = inttoptr i64 %6 to i32* store i32 1, i32* %7, align 4 store i64 4294967295, i64* %rax.0.reg2mem br label LBL_8 LBL_3: %8 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_0, i64 128, i64 0) %9 = trunc i64 %8 to i32 %10 = add i32 %9, 1 %11 = icmp ult i32 %10, 2 br i1 %11, label LBL_5, label LBL_4 LBL_4: %12 = call i64 @FUNC(i64 %arg1) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 br i1 %14, label LBL_3, label LBL_5 LBL_5: %15 = call i64 @FUNC(i64 %arg1) %16 = trunc i64 %15 to i32 %17 = icmp eq i32 %16, -1 %18 = icmp eq i1 %17, false br i1 %18, label LBL_7, label LBL_6 LBL_6: %19 = add i64 %arg1, 8 %20 = inttoptr i64 %19 to i32* store i32 1, i32* %20, align 4 store i64 4294967295, i64* %rax.0.reg2mem br label LBL_8 LBL_7: %21 = call i64 @FUNC(i64 %arg1) %22 = inttoptr i64 %arg1 to i64* store i64 0, i64* %22, align 8 %23 = add i64 %arg1, 8 %24 = inttoptr i64 %23 to i32* store i32 2, i32* %24, align 4 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* %rax.0.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i64 %arg1, { 7, 2, 3, 1, 4, 6, 5, 0, 8, 9 } uselistorder label LBL_8, { 1, 2, 3, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
expand_8200
expand
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_0.17.reg2mem = alloca i64 %storemerge2.in8.reg2mem = alloca i64* %storemerge29.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %storemerge4.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 16 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %.mask = and i64 %3, 4294967295 %4 = add i64 %0, 24 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = trunc i64 %6 to i32 %8 = add i64 %0, 32 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = trunc i64 %10 to i32 %12 = add i32 %7, 1 %13 = icmp ult i32 %12, %11 br i1 %13, label LBL_4, label LBL_1 LBL_1: %14 = mul i64 %3, 2 %15 = and i64 %14, 4294967294 %16 = mul i64 %15, 8 %17 = call i64 @FUNC(i64 %0, i64 %16) %18 = icmp eq i64 %17, 0 %19 = icmp eq i1 %18, false br i1 %19, label LBL_3, label LBL_2 LBL_2: %20 = add i64 %0, 40 %21 = inttoptr i64 %20 to i64* %22 = load i64, i64* %21, align 8 %23 = add i64 %22, 1 store i64 %23, i64* %21, align 8 store i64 0, i64* %storemerge.reg2mem br label LBL_10 LBL_3: %24 = trunc i64 %3 to i32 store i64 %17, i64* %arg1, align 8 %25 = mul i32 %24, 8 %26 = mul i64 %3, 8 %27 = and i64 %26, 34359738360 %28 = add i64 %17, %27 %29 = inttoptr i64 %28 to i64* %30 = call i64* @memset(i64* %29, i32 0, i32 %25) store i64 %.mask, i64* %9, align 8 store i64 %15, i64* %2, align 8 store i64 0, i64* %storemerge4.reg2mem store i64 %28, i64* %rdi.0.reg2mem br label LBL_5 LBL_4: %31 = add i64 %6, 1 store i64 %31, i64* %storemerge4.reg2mem store i64 %0, i64* %rdi.0.reg2mem br label LBL_5 LBL_5: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %storemerge4.reload = load i64, i64* %storemerge4.reg2mem store i64 %storemerge4.reload, i64* %5, align 8 %32 = add i64 %0, 8 %33 = inttoptr i64 %32 to i64* %34 = load i64, i64* %33, align 8 %35 = add i64 %34, 1 store i64 %35, i64* %33, align 8 %36 = mul i64 %6, 8 %37 = and i64 %36, 34359738360 %38 = add i64 %rdi.0.reload, %37 %39 = add i64 %10, %6 %40 = mul i64 %39, 8 %41 = and i64 %40, 34359738360 %42 = add i64 %rdi.0.reload, %41 %43 = inttoptr i64 %42 to i64* store i64 0, i64* %43, align 8 %storemerge2.in5 = inttoptr i64 %38 to i64* %storemerge26 = load i64, i64* %storemerge2.in5, align 8 %44 = icmp eq i64 %storemerge26, 0 %45 = icmp eq i1 %44, false store i64 1, i64* %storemerge.reg2mem br i1 %45, label LBL_6, label LBL_10 LBL_6: %46 = and i64 %6, 4294967295 store i64 %storemerge26, i64* %storemerge29.reg2mem store i64* %storemerge2.in5, i64** %storemerge2.in8.reg2mem store i64 %38, i64* %sv_0.17.reg2mem br label LBL_7 LBL_7: %storemerge29.reload = load i64, i64* %storemerge29.reg2mem %47 = inttoptr i64 %storemerge29.reload to i64* %48 = load i64, i64* %47, align 8 %49 = urem i64 %48, %.mask %50 = icmp eq i64 %49, %46 %51 = add i64 %storemerge29.reload, 8 store i64 %51, i64* %sv_0.0.reg2mem br i1 %50, label LBL_9, label LBL_8 LBL_8: %sv_0.17.reload = load i64, i64* %sv_0.17.reg2mem %storemerge2.in8.reload = load i64*, i64** %storemerge2.in8.reg2mem %52 = inttoptr i64 %51 to i64* %53 = load i64, i64* %52, align 8 store i64 %53, i64* %storemerge2.in8.reload, align 8 %54 = load i64, i64* %43, align 8 store i64 %54, i64* %52, align 8 store i64 %storemerge29.reload, i64* %43, align 8 store i64 %sv_0.17.reload, i64* %sv_0.0.reg2mem br label LBL_9 LBL_9: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %storemerge2.in = inttoptr i64 %sv_0.0.reload to i64* %storemerge2 = load i64, i64* %storemerge2.in, align 8 %55 = icmp eq i64 %storemerge2, 0 %56 = icmp eq i1 %55, false store i64 %storemerge2, i64* %storemerge29.reg2mem store i64* %storemerge2.in, i64** %storemerge2.in8.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.17.reg2mem store i64 1, i64* %storemerge.reg2mem br i1 %56, label LBL_7, label LBL_10 LBL_10: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %sv_0.0.reload, { 1, 0 } uselistorder i64 %51, { 1, 0 } uselistorder i64 %storemerge29.reload, { 1, 0, 2 } uselistorder i64 %rdi.0.reload, { 1, 0 } uselistorder i64 %15, { 1, 0 } uselistorder i64 %6, { 3, 1, 0, 2, 4 } uselistorder i64 %.mask, { 1, 0 } uselistorder i64 %3, { 0, 3, 1, 2 } uselistorder i64 %0, { 3, 0, 1, 2, 4, 5, 6 } uselistorder i64* %storemerge29.reg2mem, { 1, 0, 2 } uselistorder i64** %storemerge2.in8.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.17.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i1 false, { 1, 0, 2 } uselistorder i64 8, { 4, 0, 1, 5, 2, 3 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_7, { 1, 0 } }
0
BinRealVul
apc_read_packet_16609
apc_read_packet
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = call i64 @FUNC(i64 %1, i64 %0, i64 1024) %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, 0 %5 = icmp slt i32 %3, 0 %6 = icmp eq i1 %5, false %7 = icmp eq i1 %4, false %8 = icmp eq i1 %6, %7 store i64 4294967291, i64* %storemerge.reg2mem br i1 %8, label LBL_1, label LBL_2 LBL_1: %9 = bitcast i64* %arg2 to i32* store i32 0, i32* %9, align 4 store i64 0, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %3, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i1 false, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
handle_s_without_atn_15969
handle_s_without_atn
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %3 = trunc i64 %1 to i32 %4 = icmp eq i32 %3, 0 br i1 %4, label LBL_3, label LBL_1 LBL_1: %5 = add i64 %2, 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 br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = add i64 %2, 8 %11 = inttoptr i64 %10 to i64* store i64 4198699, i64* %11, align 8 store i64 %2, i64* %rax.0.reg2mem br label LBL_5 LBL_3: %12 = call i64 @FUNC(i64 %2, i64* nonnull %sv_0) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 store i64 %12, i64* %rax.0.reg2mem br i1 %14, label LBL_5, label LBL_4 LBL_4: %15 = call i64 @FUNC(i64 %2, i64* nonnull %sv_0, i64 0) store i64 %15, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %2, { 1, 2, 0, 3, 4 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 } }
1
BinRealVul
av_probe_input_buffer2_7494
av_probe_input_buffer2
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i1 %sv_0.0.reg2mem = alloca i64 %storemerge24.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i64 %sv_2 = alloca i64, align 8 %sv_3 = alloca i8*, align 8 %sv_4 = alloca i64, align 8 %sv_5 = alloca i64, align 8 %sext4 = mul i64 %arg6, 4294967296 %0 = ashr exact i64 %sext4, 32 %1 = icmp eq i64 %arg3, 0 %storemerge6 = select i1 %1, i64 ptrtoint (i64* @gv_0 to i64), i64 %arg3 store i64 %storemerge6, i64* %sv_5, align 8 store i64 0, i64* %sv_4, align 8 store i8* null, i8** %sv_3, align 8 %2 = trunc i64 %0 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false %5 = icmp ult i32 %2, 4097 %or.cond12 = icmp eq i1 %5, %4 store i64 4096, i64* %sv_1.0.reg2mem br i1 %or.cond12, label LBL_1, label LBL_3 LBL_1: %6 = icmp ult i32 %2, 32 store i64 %0, i64* %sv_1.0.reg2mem br i1 %6, label LBL_2, label LBL_3 LBL_2: %7 = and i64 %0, 4294967295 %8 = call i64 @FUNC(i64 %arg4, i64 0, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i64 %7, i64 32, i64 %arg6) store i64 4294967274, i64* %rax.0.reg2mem br label LBL_25 LBL_3: %sext = mul i64 %arg5, 4294967296 %9 = ashr exact i64 %sext, 32 %10 = trunc i64 %9 to i32 %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %11 = trunc i64 %sv_1.0.reload to i32 %12 = icmp ult i32 %10, %11 store i64 4294967274, i64* %rax.0.reg2mem br i1 %12, label LBL_4, label LBL_25 LBL_4: %13 = ptrtoint i64* %arg1 to i64 %14 = icmp eq i64* %arg2, null %15 = icmp eq i1 %14, false %16 = icmp eq i64* %arg1, null %or.cond = or i1 %16, %15 br i1 %or.cond, label LBL_9, label LBL_5 LBL_5: %17 = call i64 @FUNC(i64 %13, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), i64 0, i64* nonnull %sv_2) %18 = trunc i64 %17 to i32 %19 = icmp slt i32 %18, 0 %20 = load i64, i64* %sv_2, align 8 %21 = icmp eq i64 %20, 0 %or.cond9 = or i1 %19, %21 br i1 %or.cond9, label LBL_22, label LBL_6 LBL_6: %22 = call i64 @FUNC(i64 %20, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0)) %23 = trunc i64 %22 to i32 %24 = icmp eq i32 %23, 0 %25 = icmp eq i1 %24, false br i1 %25, label LBL_8, label LBL_7 LBL_7: %26 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0)) store i64 %26, i64* %arg2, align 8 br label LBL_8 LBL_8: %27 = call i64 @FUNC(i64* nonnull %sv_2) br label LBL_22 LBL_9: %28 = icmp ugt i32 %11, 31 %or.cond1120 = icmp eq i1 %14, %28 store i1 %14, i1* %.lcssa.reg2mem br i1 %or.cond1120, label LBL_10, label LBL_20 LBL_10: %29 = and i64 %9, 4294967295 %30 = bitcast i8** %sv_3 to i32* store i32 32, i32* %storemerge24.reg2mem br label LBL_11 LBL_11: %storemerge24.reload = load i32, i32* %storemerge24.reg2mem %31 = icmp ult i32 %storemerge24.reload, %10 br i1 %31, label LBL_19, label LBL_12 LBL_12: %32 = icmp uge i32 %storemerge24.reload, %11 %33 = icmp ne i1 %32, true %34 = zext i1 %33 to i64 %35 = inttoptr i64 %34 to i8* store i8* %35, i8** %sv_3, align 8 %36 = add i32 %storemerge24.reload, 32 %37 = sext i32 %36 to i64 %38 = call i64 @FUNC(i64* nonnull %sv_4, i64 %37) %39 = trunc i64 %38 to i32 %40 = icmp slt i32 %39, 0 %41 = icmp eq i1 %40, false br i1 %41, label LBL_14, label LBL_13 LBL_13: %42 = and i64 %38, 4294967295 store i64 %42, i64* %rax.0.reg2mem br label LBL_25 LBL_14: %43 = zext i32 %storemerge24.reload to i64 %44 = load i64, i64* %sv_4, align 8 %45 = call i64 @FUNC(i64 %13, i64 %44, i64 %43) %46 = trunc i64 %45 to i32 %47 = icmp slt i32 %46, 0 %48 = icmp eq i1 %47, false store i64 %45, i64* %sv_0.0.reg2mem br i1 %48, label LBL_18, label LBL_15 LBL_15: %49 = icmp eq i32 %46, 1 br i1 %49, label LBL_17, label LBL_16 LBL_16: %50 = load i64, i64* %sv_4, align 8 %51 = call i64 @FUNC(i64 %50) %52 = and i64 %45, 4294967295 store i64 %52, i64* %rax.0.reg2mem br label LBL_25 LBL_17: store i8* null, i8** %sv_3, align 8 store i64 0, i64* %sv_0.0.reg2mem br label LBL_18 LBL_18: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %53 = sub i64 %sv_0.0.reload, %9 %54 = load i64, i64* %sv_4, align 8 %55 = add i64 %54, %29 %sext41 = mul i64 %53, 4294967296 %56 = ashr exact i64 %sext41, 32 %57 = add i64 %55, %56 %58 = inttoptr i64 %57 to i64* %59 = call i64* @memset(i64* %58, i32 0, i32 32) %60 = call i64 @FUNC(i64* nonnull %sv_5, i64 1, i32* nonnull %30) call void @llvm.trap() unreachable LBL_19: %61 = add i32 %storemerge24.reload, 1 %62 = icmp ult i32 %61, %11 %63 = icmp eq i1 %62, false %64 = select i1 %63, i32 %61, i32 %11 %65 = mul i32 %storemerge24.reload, 2 %66 = icmp ugt i32 %64, %65 %67 = select i1 %66, i32 %65, i32 %64 %68 = icmp ugt i32 %67, %11 store i32 %67, i32* %storemerge24.reg2mem store i1 true, i1* %.lcssa.reg2mem br i1 %68, label LBL_20, label LBL_11 LBL_20: %.lcssa.reload = load i1, i1* %.lcssa.reg2mem %69 = icmp eq i1 %.lcssa.reload, false br i1 %69, label LBL_22, label LBL_21 LBL_21: %70 = load i64, i64* %sv_4, align 8 %71 = call i64 @FUNC(i64 %70) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_25 LBL_22: %72 = sub i32 0, %10 %73 = call i64 @FUNC(i64 %13, i64* nonnull %sv_4, i32 %72) %74 = trunc i64 %73 to i32 %75 = icmp slt i32 %74, 0 %76 = icmp eq i1 %75, false br i1 %76, label LBL_24, label LBL_23 LBL_23: %77 = and i64 %73, 4294967295 store i64 %77, i64* %rax.0.reg2mem br label LBL_25 LBL_24: %78 = load i8*, i8** %sv_3, align 8 %79 = ptrtoint i8* %78 to i64 %80 = and i64 %79, 4294967295 store i64 %80, i64* %rax.0.reg2mem br label LBL_25 LBL_25: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %65, { 1, 0 } uselistorder i64 %45, { 1, 0, 2 } uselistorder i32 %storemerge24.reload, { 5, 3, 4, 0, 1, 2 } uselistorder i64 %13, { 1, 2, 0 } uselistorder i32 %11, { 3, 2, 1, 4, 0, 5 } uselistorder i32 %10, { 2, 0, 1 } uselistorder i32 %2, { 1, 0, 2 } uselistorder i64 %0, { 2, 0, 1 } uselistorder i64* %sv_4, { 0, 2, 3, 4, 5, 1, 6 } uselistorder i8** %sv_3, { 3, 2, 1, 4, 0 } uselistorder i64* %sv_2, { 1, 0, 2 } uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge24.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 6, 5, 1, 7 } uselistorder i32 32, { 2, 3, 0, 1 } uselistorder i1 false, { 0, 4, 1, 2, 3, 5, 6, 7, 8 } uselistorder i32 0, { 1, 7, 0, 2, 3, 4, 5, 6 } uselistorder i64 32, { 0, 2, 3, 1 } uselistorder i64 4294967296, { 0, 2, 1 } uselistorder i64 %arg6, { 1, 0 } uselistorder label LBL_25, { 1, 2, 5, 3, 4, 0, 6 } uselistorder label LBL_22, { 2, 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
do_loadvm_697
do_loadvm
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %1 = load i32, i32* inttoptr (i64 4210716 to i32*), align 4 %2 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0)) %3 = call i64 @FUNC(i64 0) %4 = call i64 @FUNC(i64 %2) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 %7 = icmp eq i1 %6, false %8 = icmp eq i32 %1, 0 %or.cond = or i1 %8, %7 store i64 %4, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_2, label LBL_1 LBL_1: %9 = call i64 @FUNC() store i64 %9, i64* %rax.0.reg2mem br label LBL_2 LBL_2: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload }
0
BinRealVul
device_space_12381
device_space
define i64 @FUNC(i16* %arg1, i64* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr { LBL_0: %0 = alloca i128 %1 = alloca i32 %rax.0.reg2mem = alloca i64 %storemerge.reg2mem = alloca i128 %storemerge5.reg2mem = alloca i128 %rdx.2.reg2mem = alloca i64 %zf.0.reg2mem = alloca i1 %pf.0.in.in.reg2mem = alloca i8 %storemerge6.reg2mem = alloca i128 %rdx.1.reg2mem = alloca i64 %storemerge7.reg2mem = alloca i128 %rdx.0.reg2mem = alloca i64 %2 = load i128, i128* %0 %3 = load i128, i128* %0 %4 = ptrtoint i64* %arg2 to i64 %5 = load i32, i32* %1 %6 = load i32, i32* %1 %sv_0 = alloca i32, align 4 %7 = call i128 @FUNC(i128 %3, i128 %3) %8 = call i64 @FUNC(i128 %7) %9 = trunc i64 %8 to i32 %10 = call i64 @FUNC(i64 %4) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 br i1 %12, label LBL_2, label LBL_1 LBL_1: %13 = call i128 @__asm_movss.1(i32 %9) store i64 %10, i64* %rax.0.reg2mem br label LBL_18 LBL_2: %14 = bitcast i16* %arg1 to i8* %15 = bitcast i32* %sv_0 to %statvfs* %16 = call i32 @statvfs(i8* %14, %statvfs* nonnull %15) %17 = icmp eq i32 %16, 0 br i1 %17, label LBL_4, label LBL_3 LBL_3: %18 = sext i32 %16 to i64 %19 = call i128 @__asm_movss.1(i32 %9) store i64 %18, i64* %rax.0.reg2mem br label LBL_18 LBL_4: %20 = sext i32 %6 to i64 %21 = icmp slt i32 %6, 0 br i1 %21, label LBL_6, label LBL_5 LBL_5: %22 = ptrtoint i32* %sv_0 to i64 %23 = call i128 @FUNC(i128 %7, i128 %7) %24 = call i128 @FUNC(i64 %20) store i64 %22, i64* %rdx.0.reg2mem store i128 %24, i128* %storemerge7.reg2mem br label LBL_7 LBL_6: %25 = udiv i64 %20, 2 %26 = urem i64 %20, 2 %27 = or i64 %25, %26 %28 = call i128 @FUNC(i128 %7, i128 %7) %29 = call i128 @FUNC(i64 %27) %30 = call i128 @FUNC(i128 %29, i128 %29) store i64 %27, i64* %rdx.0.reg2mem store i128 %30, i128* %storemerge7.reg2mem br label LBL_7 LBL_7: %storemerge7.reload = load i128, i128* %storemerge7.reg2mem %31 = call i64 @FUNC(i128 %storemerge7.reload) %32 = sext i32 %5 to i64 %33 = icmp slt i32 %5, 0 br i1 %33, label LBL_9, label LBL_8 LBL_8: %rdx.0.reload = load i64, i64* %rdx.0.reg2mem %34 = call i128 @FUNC(i128 %storemerge7.reload, i128 %storemerge7.reload) %35 = call i128 @FUNC(i64 %32) store i64 %rdx.0.reload, i64* %rdx.1.reg2mem store i128 %35, i128* %storemerge6.reg2mem br label LBL_10 LBL_9: %36 = udiv i64 %32, 2 %37 = urem i64 %32, 2 %38 = or i64 %36, %37 %39 = call i128 @FUNC(i128 %storemerge7.reload, i128 %storemerge7.reload) %40 = call i128 @FUNC(i64 %38) %41 = call i128 @FUNC(i128 %40, i128 %40) store i64 %38, i64* %rdx.1.reg2mem store i128 %41, i128* %storemerge6.reg2mem br label LBL_10 LBL_10: %storemerge6.reload = load i128, i128* %storemerge6.reg2mem %42 = call i64 @FUNC(i128 %storemerge6.reload) %43 = load i32, i32* %sv_0, align 4 %44 = sext i32 %43 to i64 %45 = icmp slt i32 %43, 0 br i1 %45, label LBL_12, label LBL_11 LBL_11: %rdx.1.reload = load i64, i64* %rdx.1.reg2mem %46 = trunc i32 %43 to i8 %47 = call i8 @llvm.ctpop.i8(i8 %46), !range !44 %48 = icmp eq i32 %43, 0 %49 = call i128 @FUNC(i128 %storemerge6.reload, i128 %storemerge6.reload) %50 = call i128 @FUNC(i64 %44) store i8 %47, i8* %pf.0.in.in.reg2mem store i1 %48, i1* %zf.0.reg2mem store i64 %rdx.1.reload, i64* %rdx.2.reg2mem store i128 %50, i128* %storemerge5.reg2mem br label LBL_13 LBL_12: %51 = udiv i64 %44, 2 %52 = urem i64 %44, 2 %53 = or i64 %51, %52 %54 = icmp eq i64 %53, 0 %55 = trunc i64 %53 to i8 %56 = call i8 @llvm.ctpop.i8(i8 %55), !range !44 %57 = call i128 @FUNC(i128 %storemerge6.reload, i128 %storemerge6.reload) %58 = call i128 @FUNC(i64 %53) %59 = call i128 @FUNC(i128 %58, i128 %58) store i8 %56, i8* %pf.0.in.in.reg2mem store i1 %54, i1* %zf.0.reg2mem store i64 %53, i64* %rdx.2.reg2mem store i128 %59, i128* %storemerge5.reg2mem br label LBL_13 LBL_13: %60 = ptrtoint i64* %arg4 to i64 %storemerge5.reload = load i128, i128* %storemerge5.reg2mem %rdx.2.reload = load i64, i64* %rdx.2.reg2mem %pf.0.in.in.reload = load i8, i8* %pf.0.in.in.reg2mem %pf.0.in = urem i8 %pf.0.in.in.reload, 2 %pf.0 = icmp eq i8 %pf.0.in, 0 %61 = call i64 @FUNC(i128 %storemerge5.reload) %62 = call i128 @__asm_movsd.2(i64 %rdx.2.reload) %63 = call i128 @__asm_movsd.2(i64 %42) %64 = call i128 @FUNC(i128 %63, i64 %61) %65 = call i128 @FUNC(i128 %64, i128 %62) %66 = call i64 @FUNC(i128 %65) store i64 %66, i64* %arg3, align 8 %67 = call i128 @__asm_movsd.2(i64 %60) %68 = call i128 @__asm_movsd.2(i64 %31) %69 = call i128 @FUNC(i128 %68, i64 %61) %70 = call i128 @FUNC(i128 %69, i128 %67) %71 = call i64 @FUNC(i128 %70) store i64 %71, i64* %arg4, align 8 %72 = call i128 @FUNC(i128 %70, i128 %70) call void @FUNC(i128 %72, i64 %42) br i1 %pf.0, label LBL_15, label LBL_14 LBL_14: %zf.0.reload = load i1, i1* %zf.0.reg2mem %73 = call i128 @FUNC(i128 %72, i128 %72) call void @FUNC(i128 %73, i64 %42) br i1 %zf.0.reload, label LBL_16, label LBL_15 LBL_15: %74 = call i128 @__asm_movsd.2(i64 %42) %75 = call i128 @FUNC(i128 %74, i64 %31) %76 = call i128 @FUNC(i128 %67, i128 %67) %77 = call i128 @FUNC(i64 %42) %78 = call i128 @FUNC(i128 %2, i128 %2) %79 = call i128 @FUNC(i128 %77) %80 = call i128 @FUNC(i128 %75) %81 = call i128 @FUNC(i128 %80, i128 %79) %82 = call i128 @__asm_movsd.2(i64 4636737291354636288) %83 = call i128 @__asm_mulsd.3(i128 %82, i128 %81) %84 = call i128 @__asm_cvtsd2ss.4(i128 %83) store i128 %84, i128* %storemerge.reg2mem br label LBL_17 LBL_16: %85 = call i128 @FUNC(i128 %73, i128 %73) store i128 %85, i128* %storemerge.reg2mem br label LBL_17 LBL_17: %storemerge.reload = load i128, i128* %storemerge.reg2mem %86 = call i64 @FUNC(i128 %storemerge.reload) %87 = trunc i64 %86 to i32 %88 = call i128 @__asm_movss.1(i32 %87) store i64 %60, i64* %rax.0.reg2mem br label LBL_18 LBL_18: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i128 %73, { 1, 0, 2 } uselistorder i128 %72, { 1, 0, 2 } uselistorder i128 %70, { 2, 1, 0 } uselistorder i128 %67, { 1, 0, 2 } uselistorder i64 %61, { 1, 0 } uselistorder i128 %58, { 1, 0 } uselistorder i64 %44, { 1, 0, 2 } uselistorder i32 %43, { 2, 0, 1, 3 } uselistorder i64 %42, { 2, 1, 0, 3, 4 } uselistorder i128 %storemerge6.reload, { 1, 2, 3, 4, 0 } uselistorder i128 %40, { 1, 0 } uselistorder i64 %32, { 1, 0, 2 } uselistorder i128 %storemerge7.reload, { 1, 2, 3, 4, 0 } uselistorder i128 %29, { 1, 0 } uselistorder i64 %20, { 1, 0, 2 } uselistorder i32 %16, { 1, 0 } uselistorder i32 %9, { 1, 0 } uselistorder i128 %7, { 3, 2, 1, 0, 4 } uselistorder i32* %sv_0, { 1, 0, 2 } uselistorder i64* %rdx.0.reg2mem, { 0, 2, 1 } uselistorder i128* %storemerge7.reg2mem, { 0, 2, 1 } uselistorder i64* %rdx.1.reg2mem, { 0, 2, 1 } uselistorder i128* %storemerge6.reg2mem, { 0, 2, 1 } uselistorder i8* %pf.0.in.in.reg2mem, { 0, 2, 1 } uselistorder i1* %zf.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rdx.2.reg2mem, { 0, 2, 1 } uselistorder i128* %storemerge5.reg2mem, { 0, 2, 1 } uselistorder i128* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i32* %1, { 1, 0 } uselistorder i128* %0, { 1, 0 } uselistorder i64 2, { 1, 0, 3, 2, 5, 4 } uselistorder i32 0, { 1, 0, 2, 3, 4, 5 } }
1
BinRealVul
sdhci_send_command_7443
sdhci_send_command
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = alloca i32 %rax.0.reg2mem = alloca i64 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %rdi = alloca i64, align 8 %4 = load i64, i64* %0 %5 = ptrtoint i64* %arg1 to i64 %6 = load i32, i32* %1 %7 = load i32, i32* %1 %8 = load i32, i32* %1 %9 = load i32, i32* %1 %10 = load i32, i32* %1 %11 = load i32, i32* %1 %12 = load i32, i32* %1 %13 = load i32, i32* %1 %14 = load i32, i32* %1 %15 = load i32, i32* %1 %16 = load i32, i32* %1 %17 = load i32, i32* %1 %18 = load i32, i32* %1 %19 = load i32, i32* %1 %sv_0 = alloca i32, align 4 %sv_1 = alloca i32, align 4 %20 = add i64 %5, 24 %21 = inttoptr i64 %20 to i32* store i32 0, i32* %21, align 4 %22 = add i64 %5, 28 %23 = inttoptr i64 %22 to i32* store i32 0, i32* %23, align 4 %24 = bitcast i64* %rdi to i32* %25 = load i32, i32* %24, align 8 %26 = udiv i32 %25, 256 store i32 %26, i32* %sv_1, align 4 %27 = add i64 %5, 4 %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 %30 = zext i32 %26 to i64 %31 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i64 %30, i32 %29, i64 %4, i64 %3, i64 %2) %32 = add i64 %5, 56 %33 = bitcast i32* %sv_0 to i64* %34 = call i64 @FUNC(i64 %32, i32* nonnull %sv_1, i64* nonnull %33) %35 = urem i32 %25, 2 %36 = icmp eq i32 %35, 0 br i1 %36, label LBL_7, label LBL_1 LBL_1: %37 = trunc i64 %34 to i32 %38 = icmp eq i32 %37, 4 %39 = icmp eq i1 %38, false br i1 %39, label LBL_3, label LBL_2 LBL_2: %40 = load i32, i32* %sv_0, align 4 %41 = mul i32 %40, 16777216 %42 = mul i32 %19, 65536 %43 = and i32 %42, 16711680 %44 = mul i32 %18, 256 %45 = and i32 %44, 65280 %46 = urem i32 %17, 256 %47 = or i32 %45, %46 %48 = or i32 %47, %43 %49 = or i32 %48, %41 %50 = add i64 %5, 8 %51 = inttoptr i64 %50 to i32* store i32 %49, i32* %51, align 4 %52 = add i64 %5, 20 %53 = inttoptr i64 %52 to i32* store i32 0, i32* %53, align 4 %54 = add i64 %5, 16 %55 = inttoptr i64 %54 to i32* store i32 0, i32* %55, align 4 %56 = add i64 %5, 12 %57 = inttoptr i64 %56 to i32* store i32 0, i32* %57, align 4 %58 = load i32, i32* %51, align 4 %59 = zext i32 %58 to i64 %60 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0), i64 %59, i32 0, i64 %32, i64 %3, i64 %2) br label LBL_7 LBL_3: %61 = icmp eq i32 %37, 16 %62 = icmp eq i1 %61, false br i1 %62, label LBL_5, label LBL_4 LBL_4: %63 = mul i32 %16, 16777216 %64 = mul i32 %15, 65536 %65 = and i32 %64, 16711680 %66 = mul i32 %14, 256 %67 = and i32 %66, 65280 %68 = urem i32 %13, 256 %69 = or i32 %67, %68 %70 = or i32 %69, %65 %71 = or i32 %70, %63 %72 = add i64 %5, 8 %73 = inttoptr i64 %72 to i32* store i32 %71, i32* %73, align 4 %74 = mul i32 %12, 16777216 %75 = mul i32 %11, 65536 %76 = and i32 %75, 16711680 %77 = mul i32 %10, 256 %78 = and i32 %77, 65280 %79 = urem i32 %9, 256 %80 = or i32 %78, %79 %81 = or i32 %80, %76 %82 = or i32 %81, %74 %83 = add i64 %5, 12 %84 = inttoptr i64 %83 to i32* store i32 %82, i32* %84, align 4 %85 = mul i32 %17, 16777216 %86 = mul i32 %8, 65536 %87 = and i32 %86, 16711680 %88 = mul i32 %7, 256 %89 = and i32 %88, 65280 %90 = urem i32 %6, 256 %91 = or i32 %89, %90 %92 = or i32 %91, %87 %93 = or i32 %92, %85 %94 = add i64 %5, 16 %95 = inttoptr i64 %94 to i32* store i32 %93, i32* %95, align 4 %96 = load i32, i32* %sv_0, align 4 %97 = mul i32 %96, 65536 %98 = and i32 %97, 16711680 %99 = mul i32 %19, 256 %100 = and i32 %99, 65280 %101 = urem i32 %18, 256 %102 = or i32 %100, %101 %103 = or i32 %102, %98 %104 = add i64 %5, 20 %105 = inttoptr i64 %104 to i32* store i32 %103, i32* %105, align 4 %106 = load i32, i32* %73, align 4 %107 = load i32, i32* %84, align 4 %108 = zext i32 %107 to i64 %109 = load i32, i32* %95, align 4 %110 = zext i32 %106 to i64 %111 = zext i32 %103 to i64 %112 = call i64 @FUNC(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @gv_2, i64 0, i64 0), i64 %111, i32 %109, i64 %108, i64 %110, i64 %2) br label LBL_7 LBL_5: %113 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_3, i64 0, i64 0)) %114 = add i64 %5, 40 %115 = inttoptr i64 %114 to i32* %116 = load i32, i32* %115, align 4 %117 = and i32 %116, 4 %118 = icmp eq i32 %117, 0 br i1 %118, label LBL_7, label LBL_6 LBL_6: %119 = load i32, i32* %21, align 4 %120 = or i32 %119, 32 store i32 %120, i32* %21, align 4 %121 = add i64 %5, 32 %122 = inttoptr i64 %121 to i32* %123 = load i32, i32* %122, align 4 %124 = or i32 %123, 64 store i32 %124, i32* %122, align 4 br label LBL_7 LBL_7: %125 = add i64 %5, 36 %126 = inttoptr i64 %125 to i32* %127 = load i32, i32* %126, align 4 %128 = and i32 %127, 16 %129 = icmp eq i32 %128, 0 br i1 %129, label LBL_9, label LBL_8 LBL_8: %130 = add i64 %5, 32 %131 = inttoptr i64 %130 to i32* %132 = load i32, i32* %131, align 4 %133 = or i32 %132, 16 store i32 %133, i32* %131, align 4 br label LBL_9 LBL_9: %134 = call i64 @FUNC(i64 %5) %135 = add i64 %5, 44 %136 = inttoptr i64 %135 to i32* %137 = load i32, i32* %136, align 4 %138 = icmp eq i32 %137, 0 store i64 0, i64* %rax.0.reg2mem br i1 %138, label LBL_12, label LBL_10 LBL_10: %139 = load i32, i32* %24, align 8 %140 = trunc i32 %139 to i8 %141 = icmp sgt i8 %140, -1 store i64 0, i64* %rax.0.reg2mem br i1 %141, label LBL_12, label LBL_11 LBL_11: %142 = add i64 %5, 48 %143 = inttoptr i64 %142 to i32* store i32 0, i32* %143, align 4 %144 = call i64 @FUNC(i64 %5) store i64 %144, 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 %26, { 1, 0 } uselistorder i32 %25, { 1, 0 } uselistorder i32* %21, { 1, 0, 2 } uselistorder i32* %sv_0, { 1, 0, 2 } uselistorder i32 %19, { 1, 0 } uselistorder i32 %17, { 1, 0 } uselistorder i64 %5, { 10, 11, 12, 13, 15, 14, 8, 9, 4, 5, 6, 7, 0, 1, 2, 3, 16, 17, 18, 19 } uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i32* %1, { 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i32 16, { 1, 2, 0 } uselistorder i32 4, { 1, 0 } uselistorder i64 (i8*, i64, i32, i64, i64, i64)* @DPRINT_L1, { 2, 1, 0 } uselistorder i64 4, { 1, 0 } uselistorder i32 256, { 5, 0, 6, 1, 7, 2, 8, 3, 9, 4, 10 } uselistorder i32 0, { 3, 4, 5, 6, 1, 0, 2, 7, 8, 9, 10 } }
1
BinRealVul
security_decrypt_11263
security_decrypt
define i64 @FUNC(i64* %arg1, i64 %arg2, i32* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %.reg2mem = alloca i32 %.pre-phi.reg2mem = alloca i64 %.pre-phi7.reg2mem = alloca i64* %rdx = alloca i64, align 8 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp slt i32 %2, 4096 br i1 %3, label LBL_0.LBL_3_crit_edge, label LBL_2 LBL_1: %.pre3 = ptrtoint i32* %arg3 to i64 %.pre4 = add i64 %.pre3, 32 %.pre6 = inttoptr i64 %.pre4 to i64* store i64* %.pre6, i64** %.pre-phi7.reg2mem store i64 %.pre3, i64* %.pre-phi.reg2mem store i32 %2, i32* %.reg2mem br label LBL_3 LBL_2: %4 = bitcast i64* %rdx to i32* %5 = ptrtoint i32* %arg3 to i64 %6 = add i64 %5, 24 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = add i64 %5, 16 %10 = inttoptr i64 %9 to i64* %11 = load i64, i64* %10, align 8 %12 = add i64 %5, 8 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = call i64 @FUNC(i64 %14, i64 %11, i32 %8) %16 = add i64 %5, 32 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = call i64 @FUNC(i64 %18) %20 = load i32, i32* %7, align 4 %21 = load i64, i64* %13, align 8 %22 = zext i32 %20 to i64 %23 = call i64 @FUNC(i64 %21, i64 %22) store i64 %23, i64* %17, align 8 store i32 0, i32* %arg3, align 4 %.pre = load i32, i32* %4, align 8 store i64* %17, i64** %.pre-phi7.reg2mem store i64 %5, i64* %.pre-phi.reg2mem store i32 %.pre, i32* %.reg2mem br label LBL_3 LBL_3: %24 = ptrtoint i64* %arg1 to i64 %.reload = load i32, i32* %.reg2mem %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %.pre-phi7.reload = load i64*, i64** %.pre-phi7.reg2mem %25 = load i64, i64* %.pre-phi7.reload, align 8 %26 = trunc i64 %arg2 to i32 %27 = call i64 @FUNC(i64 %25, i32 %26, i64 %24, i64 %24) %28 = add i32 %.reload, 1 store i32 %28, i32* %arg3, align 4 %29 = add i64 %.pre-phi.reload, 4 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = add i32 %31, 1 store i32 %32, i32* %30, align 4 ret i64 1 uselistorder i64 32, { 1, 0 } uselistorder i32* %arg3, { 2, 1, 3, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
ccp_sha_import_18345
ccp_sha_import
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %1 = call i64 @FUNC(i64 %0) %2 = call i64* @memcpy(i64* nonnull %sv_0, i64* %arg2, i32 152) %3 = load i64, i64* %sv_0, align 8 %4 = trunc i64 %3 to i32 %5 = inttoptr i64 %1 to i32* store i32 %4, i32* %5, align 4 %6 = add i64 %1, 8 %7 = inttoptr i64 %6 to i64* %8 = add i64 %1, 16 %9 = inttoptr i64 %8 to i32* %10 = add i64 %1, 20 %11 = inttoptr i64 %10 to i64* %12 = add i64 %1, 28 %13 = inttoptr i64 %12 to i64* %14 = add i64 %1, 36 %15 = inttoptr i64 %14 to i64* %16 = add i64 %1, 44 %17 = inttoptr i64 %16 to i64* %18 = add i64 %1, 52 %19 = inttoptr i64 %18 to i64* %20 = add i64 %1, 60 %21 = inttoptr i64 %20 to i64* %22 = add i64 %1, 68 %23 = inttoptr i64 %22 to i64* %24 = add i64 %1, 76 %25 = inttoptr i64 %24 to i64* %26 = add i64 %1, 84 %27 = inttoptr i64 %26 to i32* %28 = add i64 %1, 88 %29 = inttoptr i64 %28 to i64* %30 = add i64 %1, 96 %31 = inttoptr i64 %30 to i64* %32 = add i64 %1, 104 %33 = inttoptr i64 %32 to i64* %34 = add i64 %1, 112 %35 = inttoptr i64 %34 to i64* %36 = add i64 %1, 120 %37 = inttoptr i64 %36 to i64* %38 = add i64 %1, 128 %39 = inttoptr i64 %38 to i64* %40 = add i64 %1, 136 %41 = inttoptr i64 %40 to i64* %42 = add i64 %1, 144 %43 = inttoptr i64 %42 to i64* ret i64 0 uselistorder i64 %1, { 0, 1, 2, 3, 4, 5, 6, 14, 15, 7, 8, 9, 10, 11, 12, 13, 16, 17, 18, 19 } uselistorder i64* %sv_0, { 1, 0 } }
1
BinRealVul
escape_pathname_11958
escape_pathname
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.1.lcssa.reg2mem = alloca i8* %sv_0.0.in.reg2mem = alloca i64 %sv_0.12.reg2mem = alloca i8* %storemerge3.reg2mem = alloca i64 %.reg2mem4 = alloca i8* %.reg2mem = alloca i8 %0 = icmp eq i64 %arg1, 0 %1 = icmp eq i1 %0, false store i64 0, i64* %rax.0.reg2mem br i1 %1, label LBL_1, label LBL_9 LBL_1: %2 = inttoptr i64 %arg1 to i8* %3 = call i32 @strlen(i8* %2) %4 = mul i32 %3, 4 %5 = or i32 %4, 1 %6 = call i64* @malloc(i32 %5) %7 = icmp eq i64* %6, null %8 = icmp eq i1 %7, false br i1 %8, label LBL_3, label LBL_2 LBL_2: call void @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0)) store i64 0, i64* %rax.0.reg2mem br label LBL_9 LBL_3: %9 = bitcast i64* %6 to i8* %10 = load i8, i8* %2, align 1 %11 = icmp eq i8 %10, 0 %12 = icmp eq i1 %11, false store i8 %10, i8* %.reg2mem store i8* %2, i8** %.reg2mem4 store i64 %arg1, i64* %storemerge3.reg2mem store i8* %9, i8** %sv_0.12.reg2mem store i8* %9, i8** %sv_0.1.lcssa.reg2mem br i1 %12, label LBL_4, label LBL_8 LBL_4: %sv_0.12.reload = load i8*, i8** %sv_0.12.reg2mem %storemerge3.reload = load i64, i64* %storemerge3.reg2mem %.reload5 = load i8*, i8** %.reg2mem4 %.reload = load i8, i8* %.reg2mem %13 = zext i8 %.reload to i64 %14 = call i64 @FUNC(i64 %13) %15 = trunc i64 %14 to i32 %16 = icmp eq i32 %15, 0 %17 = load i8, i8* %.reload5, align 1 br i1 %16, label LBL_6, label LBL_5 LBL_5: %18 = zext i8 %17 to i32 %19 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %sv_0.12.reload, i32 5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i32 %18) %20 = call i32 @strlen(i8* %sv_0.12.reload) %21 = sext i32 %20 to i64 %22 = ptrtoint i8* %sv_0.12.reload to i64 %23 = add i64 %21, %22 store i64 %23, i64* %sv_0.0.in.reg2mem br label LBL_7 LBL_6: %24 = ptrtoint i8* %sv_0.12.reload to i64 %25 = add i64 %24, 1 store i8 %17, i8* %sv_0.12.reload, align 1 store i64 %25, i64* %sv_0.0.in.reg2mem br label LBL_7 LBL_7: %sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem %sv_0.0 = inttoptr i64 %sv_0.0.in.reload to i8* %26 = add i64 %storemerge3.reload, 1 %27 = inttoptr i64 %26 to i8* %28 = load i8, i8* %27, align 1 %29 = icmp eq i8 %28, 0 %30 = icmp eq i1 %29, false store i8 %28, i8* %.reg2mem store i8* %27, i8** %.reg2mem4 store i64 %26, i64* %storemerge3.reg2mem store i8* %sv_0.0, i8** %sv_0.12.reg2mem store i8* %sv_0.0, i8** %sv_0.1.lcssa.reg2mem br i1 %30, label LBL_4, label LBL_8 LBL_8: %31 = ptrtoint i64* %6 to i64 %sv_0.1.lcssa.reload = load i8*, i8** %sv_0.1.lcssa.reg2mem store i8 0, i8* %sv_0.1.lcssa.reload, align 1 store i64 %31, i64* %rax.0.reg2mem br label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i8 %17, { 1, 0 } uselistorder i8* %sv_0.12.reload, { 1, 0, 2, 3, 4 } uselistorder i64* %6, { 2, 0, 1 } uselistorder i8* %.reg2mem, { 2, 0, 1 } uselistorder i8** %.reg2mem4, { 2, 0, 1 } uselistorder i64* %storemerge3.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_0.12.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.0.in.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64 1, { 1, 2, 0 } uselistorder i8 0, { 1, 2, 0 } uselistorder i32 (i8*)* @strlen, { 1, 0 } uselistorder i1 false, { 1, 0, 2, 3 } uselistorder i32 1, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder label LBL_9, { 1, 2, 0 } uselistorder label LBL_4, { 1, 0 } }
1
reposvul_c_test
tun_xdp_tx_311
tun_xdp_tx
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %sv_0 = alloca i64, align 8 %1 = call i64 @FUNC(i64 %0) store i64 %1, i64* %sv_0, align 8 %2 = icmp eq i64 %1, 0 %3 = icmp eq i1 %2, false store i64 1, i64* %storemerge.reg2mem br i1 %3, label LBL_1, label LBL_4 LBL_1: %4 = ptrtoint i64* %arg1 to i64 %5 = call i64 @FUNC(i64 %4, i64 1, i64* nonnull %sv_0, i64 0) %6 = trunc i64 %5 to i32 %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false br i1 %8, label LBL_3, label LBL_2 LBL_2: %9 = load i64, i64* %sv_0, align 8 %10 = call i64 @FUNC(i64 %9) br label LBL_3 LBL_3: %11 = and i64 %5, 4294967295 store i64 %11, i64* %storemerge.reg2mem br label LBL_4 LBL_4: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %sv_0, { 1, 0, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32 0, { 1, 0 } uselistorder i64 1, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
free_clt_12518
free_clt
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, 12 %4 = call i64 @FUNC(i64 %3) %5 = add i64 %0, 16 %6 = call i64 @FUNC(i64 %5) %7 = add i64 %0, 8 %8 = call i64 @FUNC(i64 %7) ret i64 %8 uselistorder i64 %0, { 0, 1, 2, 4, 3 } uselistorder i64 (i64)* @mutex_destroy, { 1, 0 } }
1
BinRealVul
qobject_input_visitor_new_keyval_5025
qobject_input_visitor_new_keyval
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = inttoptr i64 %1 to i64* store i64 4198718, i64* %2, align 8 %3 = add i64 %1, 8 %4 = inttoptr i64 %3 to i64* store i64 4198729, i64* %4, align 8 %5 = add i64 %1, 16 %6 = inttoptr i64 %5 to i64* store i64 4198740, i64* %6, align 8 %7 = add i64 %1, 24 %8 = inttoptr i64 %7 to i64* store i64 4198751, i64* %8, align 8 %9 = add i64 %1, 32 %10 = inttoptr i64 %9 to i64* store i64 4198762, i64* %10, align 8 %11 = add i64 %1, 40 %12 = inttoptr i64 %11 to i64* store i64 4198772, i64* %12, align 8 %13 = add i64 %1, 48 %14 = inttoptr i64 %13 to i64* store i64 4198783, i64* %14, align 8 %15 = add i64 %1, 56 %16 = inttoptr i64 %15 to i64* store i64 4198794, i64* %16, align 8 ret i64 %1 }
0
BinRealVul
config_input_14734
config_input
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %rdi = alloca i64, align 8 %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 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = add i64 %0, 4 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = zext i32 %8 to i64 %10 = call i64 @FUNC(i64 %9) %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = inttoptr i64 %5 to i32* store i32 %12, i32* %13, align 4 %14 = add i64 %10, 4 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = add i64 %5, 4 %18 = inttoptr i64 %17 to i32* store i32 %16, i32* %18, align 4 %19 = add i64 %10, 8 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = add i32 %21, 1 %23 = add i64 %5, 8 %24 = inttoptr i64 %23 to i32* store i32 %22, i32* %24, align 4 %25 = bitcast i64* %rdi to i32* %26 = load i32, i32* %25, align 8 %27 = sext i32 %26 to i64 %28 = mul i64 %27, 8 %29 = call i64 @FUNC(i64 %28) %30 = add i64 %5, 16 %31 = inttoptr i64 %30 to i64* store i64 %29, i64* %31, align 8 %32 = icmp eq i64 %29, 0 %33 = icmp eq i1 %32, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %33, label LBL_1, label LBL_5 LBL_1: %34 = add i64 %5, 24 %35 = add i64 %5, 40 store i64 0, i64* %indvars.iv.reg2mem br label LBL_2 LBL_2: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %36 = load i32, i32* %24, align 4 %37 = mul i64 %indvars.iv.reload, 4 %38 = add i64 %34, %37 %39 = inttoptr i64 %38 to i32* %40 = load i32, i32* %39, align 4 %41 = zext i32 %36 to i64 %42 = zext i32 %40 to i64 %43 = call i64 @FUNC(i64 %42, i64 %41) %44 = mul i64 %indvars.iv.reload, 8 %45 = add i64 %35, %44 %46 = inttoptr i64 %45 to i64* store i64 %43, i64* %46, align 8 %47 = icmp eq i64 %43, 0 %48 = icmp eq i1 %47, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %48, label LBL_3, label LBL_5 LBL_3: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %49 = icmp ult i64 %indvars.iv.next, 4 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %49, label LBL_2, label LBL_4 LBL_4: %50 = call i64 @FUNC(i64 %5) store i64 0, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %indvars.iv.reload, { 0, 2, 1 } uselistorder i64 %5, { 2, 0, 1, 3, 4, 5, 6 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64 4, { 1, 0, 2, 3, 4 } uselistorder label LBL_5, { 2, 0, 1 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
openpic_set_irq_16052
openpic_set_irq
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %4 = and i64 %arg2, 4294967295 %sext3 = mul i64 %arg3, 4294967296 %5 = ashr exact i64 %sext3, 32 %6 = ashr exact i64 %sext, 29 %7 = add i64 %6, %3 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = and i64 %5, 4294967295 %11 = call i64 @FUNC(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %10, i32 %9, i64 %2, i64 %1) %12 = load i32, i32* %8, align 4 %13 = urem i32 %12, 2 %14 = icmp eq i32 %13, 0 %15 = trunc i64 %5 to i32 br i1 %14, label LBL_3, label LBL_1 LBL_1: %16 = add i64 %7, 4 %17 = inttoptr i64 %16 to i32* store i32 %15, i32* %17, align 4 %18 = icmp eq i32 %15, 0 %19 = icmp eq i1 %18, false br i1 %19, label LBL_5, label LBL_2 LBL_2: %20 = load i32, i32* %8, align 4 %21 = and i32 %20, -3 store i32 %21, i32* %8, align 4 br label LBL_5 LBL_3: %22 = icmp eq i32 %15, 0 br i1 %22, label LBL_5, label LBL_4 LBL_4: %23 = add i64 %7, 4 %24 = inttoptr i64 %23 to i32* store i32 1, i32* %24, align 4 br label LBL_5 LBL_5: %25 = call i64 @FUNC(i64 %3, i64 %4) ret i64 %25 uselistorder i32 %15, { 2, 0, 1 } uselistorder i32* %8, { 1, 0, 2, 3 } uselistorder i64 %4, { 1, 0 } uselistorder i64 %3, { 1, 0 } uselistorder i64* %0, { 1, 0 } uselistorder i64 4294967295, { 1, 0 } uselistorder i64 %arg2, { 1, 0 } }
1
BinRealVul
write_erst_record_13216
write_erst_record
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i8 %sv_2.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %3 = add i64 %2, 16 %4 = call i64 @FUNC(i64 %3) %5 = trunc i64 %4 to i32 %6 = trunc i64 %1 to i32 %7 = add i32 %5, -8 %8 = icmp ult i32 %7, %6 store i64 0, i64* %rax.0.reg2mem br i1 %8, label LBL_12, label LBL_1 LBL_1: %9 = call i64 @FUNC(i64 %3) %10 = and i64 %1, 4294967295 %11 = add i64 %9, %10 %12 = inttoptr i64 %11 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 ult i32 %16, 8 store i64 0, i64* %rax.0.reg2mem br i1 %17, label LBL_12, label LBL_2 LBL_2: %18 = add i32 %16, %6 %19 = icmp ugt i32 %18, %5 %20 = icmp eq i1 %19, false store i64 0, i64* %rax.0.reg2mem br i1 %20, label LBL_3, label LBL_12 LBL_3: %21 = add i64 %11, 4 %22 = inttoptr i64 %21 to i64* %23 = load i64, i64* %22, align 8 %24 = call i64 @FUNC(i64 %23) %25 = call i64 @FUNC(i64 %24) %26 = trunc i64 %25 to i8 %27 = icmp eq i8 %26, 1 store i64 0, i64* %rax.0.reg2mem br i1 %27, label LBL_4, label LBL_12 LBL_4: %28 = call i64 @FUNC(i64 %2, i64 %24) %29 = trunc i64 %28 to i32 %30 = icmp eq i32 %29, 0 br i1 %30, label LBL_6, label LBL_5 LBL_5: %31 = and i64 %28, 4294967295 %32 = call i64 @FUNC(i64 %2, i64 %31) store i64 %32, i64* %sv_2.0.reg2mem store i8 1, i8* %sv_1.0.reg2mem store i64 %28, i64* %sv_0.0.reg2mem br label LBL_8 LBL_6: %33 = call i64 @FUNC(i64 %2) %34 = trunc i64 %33 to i32 %35 = icmp eq i32 %34, 0 store i64 2, i64* %rax.0.reg2mem br i1 %35, label LBL_12, label LBL_7 LBL_7: %36 = and i64 %33, 4294967295 %37 = call i64 @FUNC(i64 %2, i64 %36) store i64 %37, i64* %sv_2.0.reg2mem store i8 0, i8* %sv_1.0.reg2mem store i64 %33, i64* %sv_0.0.reg2mem br label LBL_8 LBL_8: %sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem %38 = icmp eq i64 %sv_2.0.reload, 0 store i64 0, i64* %rax.0.reg2mem br i1 %38, label LBL_12, label LBL_9 LBL_9: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %sv_1.0.reload = load i8, i8* %sv_1.0.reg2mem %39 = inttoptr i64 %sv_2.0.reload to i64* %40 = inttoptr i64 %11 to i64* %41 = call i64* @memcpy(i64* %39, i64* %40, i32 %16) %42 = sub i32 %5, %16 %43 = and i64 %15, 4294967295 %44 = add i64 %sv_2.0.reload, %43 %45 = inttoptr i64 %44 to i64* %46 = call i64* @memset(i64* %45, i32 %42, i32 255) %47 = icmp eq i8 %sv_1.0.reload, 1 br i1 %47, label LBL_11, label LBL_10 LBL_10: %48 = add i64 %2, 8 %49 = inttoptr i64 %48 to i64* %50 = load i64, i64* %49, align 8 %51 = inttoptr i64 %50 to i32* %52 = load i32, i32* %51, align 4 %53 = zext i32 %52 to i64 %54 = call i64 @FUNC(i64 %53) %55 = add i64 %54, 1 %56 = load i64, i64* %49, align 8 %57 = and i64 %55, 4294967295 %58 = call i64 @FUNC(i64 %57) %59 = trunc i64 %58 to i32 %60 = inttoptr i64 %56 to i32* store i32 %59, i32* %60, align 4 br label LBL_11 LBL_11: %61 = and i64 %sv_0.0.reload, 4294967295 %62 = call i64 @FUNC(i64 %2, i64 %61, i64 %24) 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 i64 %sv_2.0.reload, { 2, 1, 0 } uselistorder i32 %16, { 2, 1, 0, 3 } uselistorder i32 %5, { 1, 0, 2 } uselistorder i64 %2, { 1, 0, 2, 3, 4, 5, 6 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %sv_2.0.reg2mem, { 0, 2, 1 } uselistorder i8* %sv_1.0.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1, 4, 5, 6, 7 } uselistorder i64 1, { 0, 3, 1, 2 } uselistorder i64 (i64, i64)* @get_nvram_ptr_by_index, { 1, 0 } uselistorder i8 1, { 1, 0, 2 } uselistorder i64 (i64)* @le32_to_cpu, { 1, 0 } uselistorder i64 4294967295, { 2, 5, 3, 1, 4, 0, 6, 7 } uselistorder label LBL_12, { 1, 0, 2, 3, 4, 5, 6 } }
1
BinRealVul
entry_guard_consider_retry_7956
entry_guard_consider_retry
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %sv_0 = alloca i64, align 8 %2 = trunc i64 %1 to i32 %3 = and i64 %1, 4294967295 %4 = icmp eq i32 %2, 0 %5 = icmp eq i1 %4, false store i64 %3, i64* %rax.0.reg2mem br i1 %5, label LBL_5, label LBL_1 LBL_1: %6 = ptrtoint i64* %arg1 to i64 %7 = call i64 @FUNC() %8 = add i64 %6, 16 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = add i64 %6, 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = call i64 @FUNC(i64 %13, i64 %7, i32 %10) %15 = add i64 %6, 24 %16 = inttoptr i64 %15 to i64* %17 = load i64, i64* %16, align 8 %18 = icmp eq i64 %17, 0 %19 = zext i1 %18 to i64 %20 = call i64 @FUNC(i64 %19) %21 = trunc i64 %20 to i32 %22 = icmp eq i32 %21, 0 %23 = icmp eq i1 %22, false br i1 %23, label LBL_3, label LBL_2 LBL_2: %sext = mul i64 %14, 4294967296 %24 = ashr exact i64 %sext, 32 %25 = add i64 %24, %17 %26 = icmp slt i64 %7, %25 store i64 %25, i64* %rax.0.reg2mem br i1 %26, label LBL_5, label LBL_3 LBL_3: %27 = call i64 @FUNC(i64* nonnull %sv_0, i64 %17) %28 = call i64 @FUNC(i64 %6) %29 = add i64 %6, 32 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = icmp slt i32 %31, 0 %33 = load i32, i32* %9, align 4 %34 = icmp eq i32 %33, 0 %storemerge = select i1 %34, i64 ptrtoint (i64* @gv_0 to i64), i64 ptrtoint ([9 x i8]* @gv_1 to i64) %35 = select i1 %32, i64* @gv_0, i64* bitcast ([11 x i8]* @gv_2 to i64*) %36 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @gv_3, i64 0, i64 0), i64 %storemerge, i64* %35, i64 %28, i64* nonnull %sv_0) %37 = bitcast i64* %arg1 to i32* store i32 1, i32* %37, align 4 %38 = add i64 %6, 36 %39 = inttoptr i64 %38 to i32* %40 = load i32, i32* %39, align 4 %41 = icmp eq i32 %40, 0 store i64 0, i64* %rax.0.reg2mem br i1 %41, label LBL_5, label LBL_4 LBL_4: %42 = add i64 %6, 40 %43 = inttoptr i64 %42 to i32* store i32 1, i32* %43, align 4 store i64 %6, i64* %rax.0.reg2mem br label LBL_5 LBL_5: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %17, { 1, 0, 2 } uselistorder i64 %6, { 0, 1, 2, 4, 3, 5, 7, 6 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1, 4 } uselistorder i64 32, { 1, 0 } uselistorder label LBL_5, { 1, 2, 3, 0 } }
0
BinRealVul
range_dec_normalize_1202
range_dec_normalize
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %.lcssa.reg2mem = alloca i32 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 store i32 %2, i32* %.lcssa.reg2mem br i1 %3, label LBL_1, label LBL_6 LBL_1: %4 = ptrtoint i64* %arg1 to i64 %5 = bitcast i64* %rdi to i32* %6 = add i64 %4, 4 %7 = inttoptr i64 %6 to i32* %8 = add i64 %4, 16 %9 = inttoptr i64 %8 to i64* %10 = add i64 %4, 24 %11 = inttoptr i64 %10 to i64* %12 = add i64 %4, 32 %13 = inttoptr i64 %12 to i32* %14 = add i64 %4, 8 %15 = inttoptr i64 %14 to i32* %16 = bitcast i64* %arg1 to i32* br label LBL_2 LBL_2: %17 = load i32, i32* %7, align 4 %18 = mul i32 %17, 256 store i32 %18, i32* %7, align 4 %19 = load i64, i64* %9, align 8 %20 = load i64, i64* %11, align 8 %21 = icmp ult i64 %19, %20 %22 = icmp eq i1 %21, false br i1 %22, label LBL_4, label LBL_3 LBL_3: %23 = inttoptr i64 %19 to i8* %24 = load i8, i8* %23, align 1 %25 = zext i8 %24 to i32 %26 = or i32 %18, %25 store i32 %26, i32* %7, align 4 %27 = load i64, i64* %9, align 8 %28 = add i64 %27, 1 store i64 %28, i64* %9, align 8 br label LBL_5 LBL_4: store i32 1, i32* %13, align 4 br label LBL_5 LBL_5: %29 = load i32, i32* %15, align 4 %30 = mul i32 %29, 256 %31 = load i32, i32* %7, align 4 %32 = udiv i32 %31, 2 %33 = urem i32 %32, 256 %34 = or i32 %33, %30 store i32 %34, i32* %15, align 4 %35 = load i32, i32* %5, align 8 %36 = mul i32 %35, 256 store i32 %36, i32* %16, align 4 %37 = icmp eq i32 %35, 0 store i32 %35, i32* %.lcssa.reg2mem br i1 %37, label LBL_2, label LBL_6 LBL_6: %.lcssa.reload = load i32, i32* %.lcssa.reg2mem %38 = zext i32 %.lcssa.reload to i64 ret i64 %38 uselistorder i32 %35, { 0, 2, 1 } uselistorder i32 %18, { 1, 0 } uselistorder i64* %9, { 1, 0, 2 } uselistorder i32* %7, { 1, 0, 2, 3 } uselistorder i64 %4, { 0, 3, 2, 1, 4 } uselistorder i32 256, { 0, 3, 1, 2 } uselistorder i32 0, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
tr_valid_10949
tr_valid
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i32 %1 = alloca i8 %rax.0.reg2mem = alloca i64 %2 = ptrtoint i64* %arg1 to i64 %3 = load i32, i32* %0 %4 = load i8, i8* %1 %5 = load i8, i8* %1 %sv_0 = alloca i32, align 4 %6 = bitcast i32* %sv_0 to i64* %7 = call i64 @FUNC(i64 %2, i64* nonnull %6, i64 0) %8 = icmp eq i8 %5, 0 store i64 0, i64* %rax.0.reg2mem br i1 %8, label LBL_1, label LBL_3 LBL_1: %9 = load i32, i32* %sv_0, align 4 %10 = and i32 %9, 4 %11 = icmp eq i32 %10, 0 %12 = or i8 %4, 8 %13 = icmp eq i8 %12, 11 %or.cond = icmp eq i1 %13, %11 store i64 0, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_2, label LBL_3 LBL_2: %14 = trunc i32 %3 to i8 %15 = icmp eq i8 %14, 1 %. = zext i1 %15 to i64 store i64 %., 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
compile_tree_11088
compile_tree
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i32 %.pre-phi.reg2mem = alloca i64 %sv_1.14.reg2mem = alloca i32 %sv_0.15.reg2mem = alloca i64 %storemerge6.reg2mem = alloca i32* %0 = load i64, i64* @gv_0, align 8 %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %4 = call i32 @fwrite(i64* bitcast ([15 x i8]* @gv_2 to i64*), i32 1, i32 14, %_IO_FILE* %3) call void @exit(i32 1) unreachable LBL_2: %5 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8 %6 = call i32 @fwrite(i64* bitcast ([26 x i8]* @gv_4 to i64*), i32 1, i32 25, %_IO_FILE* %5) %7 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8 %8 = call i32 @fflush(%_IO_FILE* %7) %9 = call i64 @FUNC(i64* nonnull @gv_0) %10 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8 %11 = call i32 @fwrite(i64* bitcast ([9 x i8]* @gv_5 to i64*), i32 1, i32 8, %_IO_FILE* %10) %12 = call i64 @FUNC() store i32* bitcast (i32** @gv_6 to i32*), i32** %storemerge6.reg2mem store i64 0, i64* %sv_0.15.reg2mem store i32 1, i32* %sv_1.14.reg2mem br label LBL_3 LBL_3: %sv_1.14.reload = load i32, i32* %sv_1.14.reg2mem %sv_0.15.reload = load i64, i64* %sv_0.15.reg2mem %storemerge6.reload = load i32*, i32** %storemerge6.reg2mem %13 = load i32, i32* %storemerge6.reload, align 4 %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false br i1 %15, label LBL_3.LBL_8_crit_edge, label LBL_5 LBL_4: %.pre = ptrtoint i32* %storemerge6.reload to i64 store i64 %.pre, i64* %.pre-phi.reg2mem store i32 %sv_1.14.reload, i32* %sv_1.0.reg2mem store i64 %sv_0.15.reload, i64* %sv_0.0.reg2mem br label LBL_8 LBL_5: %16 = mul i32 %sv_1.14.reload, 4 %17 = inttoptr i64 %sv_0.15.reload to i64* %18 = call i64* @realloc(i64* %17, i32 %16) %19 = icmp eq i64* %18, null %20 = icmp eq i1 %19, false br i1 %20, label LBL_7, label LBL_6 LBL_6: %21 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %22 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_7 to i64*), i32 1, i32 26, %_IO_FILE* %21) call void @exit(i32 1) unreachable LBL_7: %23 = ptrtoint i64* %18 to i64 %24 = ptrtoint i32* %storemerge6.reload to i64 %25 = add i64 %24, 4 %26 = sext i32 %sv_1.14.reload to i64 %27 = mul i64 %26, 4 %28 = add nsw i64 %27, -4 %29 = add i64 %28, %23 %30 = inttoptr i64 %25 to i32* %31 = load i32, i32* %30, align 4 %32 = inttoptr i64 %29 to i32* store i32 %31, i32* %32, align 4 %33 = add i32 %sv_1.14.reload, 1 store i64 %24, i64* %.pre-phi.reg2mem store i32 %33, i32* %sv_1.0.reg2mem store i64 %23, i64* %sv_0.0.reg2mem br label LBL_8 LBL_8: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %34 = add i64 %.pre-phi.reload, 8 %35 = inttoptr i64 %34 to i64* %36 = load i64, i64* %35, align 8 %37 = inttoptr i64 %36 to i32* %38 = icmp eq i64 %36, 0 %39 = icmp eq i1 %38, false store i32* %37, i32** %storemerge6.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.15.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.14.reg2mem br i1 %39, label LBL_3, label LBL_9 LBL_9: %40 = mul i32 %sv_1.0.reload, 4 %41 = inttoptr i64 %sv_0.0.reload to i64* %42 = call i64* @realloc(i64* %41, i32 %40) %43 = icmp eq i64* %42, null %44 = icmp eq i1 %43, false br i1 %44, label LBL_11, label LBL_10 LBL_10: %45 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %46 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_7 to i64*), i32 1, i32 26, %_IO_FILE* %45) call void @exit(i32 1) unreachable LBL_11: %47 = ptrtoint i64* %42 to i64 %48 = sext i32 %sv_1.0.reload to i64 %49 = mul i64 %48, 4 %50 = add nsw i64 %49, -4 %51 = add i64 %50, %47 %52 = inttoptr i64 %51 to i32* store i32 0, i32* %52, align 4 store i64 %47, i64* %arg1, align 8 ret i64 %48 uselistorder i64 %48, { 1, 0 } uselistorder i64 %47, { 1, 0 } uselistorder i64* %42, { 1, 0 } uselistorder i64* %18, { 1, 0 } uselistorder i32* %storemerge6.reload, { 0, 2, 1 } uselistorder i64 %sv_0.15.reload, { 1, 0 } uselistorder i32 %sv_1.14.reload, { 1, 2, 3, 0 } uselistorder i32** %storemerge6.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.15.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_1.14.reg2mem, { 1, 0, 2 } uselistorder i32 26, { 1, 0 } uselistorder i64* bitcast ([27 x i8]* @gv_7 to i64*), { 1, 0 } uselistorder i64* null, { 1, 0 } uselistorder i64* (i64*, i32)* @realloc, { 1, 0 } uselistorder %_IO_FILE** @gv_3, { 2, 1, 0 } uselistorder void (i32)* @exit, { 1, 2, 0 } uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 3, 4, 2, 1, 0 } uselistorder %_IO_FILE** @gv_1, { 2, 1, 0 } uselistorder i1 false, { 2, 3, 0, 1, 4 } uselistorder label LBL_8, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
dtls1_process_buffered_records_11002
dtls1_process_buffered_records
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %0 = add i64 %arg1, 8 %1 = inttoptr i64 %0 to i64* %2 = load i64, i64* %1, align 8 %3 = call i64 @FUNC(i64 %2) %4 = icmp eq i64 %3, 0 store i64 %2, i64* %rdi.0.reg2mem br i1 %4, label LBL_6, label LBL_1 LBL_1: %5 = trunc i64 %2 to i32 %6 = add i64 %2, 20 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = icmp eq i32 %8, %5 store i64 1, i64* %rax.0.reg2mem br i1 %9, label LBL_2, label LBL_7 LBL_2: %10 = add i64 %2, 8 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = call i64 @FUNC(i64 %12) %14 = icmp eq i64 %13, 0 %15 = icmp eq i1 %14, false store i64 %12, i64* %rdi.0.reg2mem br i1 %15, label LBL_3, label LBL_6 LBL_3: %16 = add i64 %arg1, 16 br label LBL_4 LBL_4: %17 = call i64 @FUNC(i64 %arg1) %18 = call i64 @FUNC(i64 %arg1) %19 = trunc i64 %18 to i32 %20 = icmp eq i32 %19, 0 %21 = icmp eq i1 %20, false store i64 0, i64* %rax.0.reg2mem br i1 %21, label LBL_5, label LBL_7 LBL_5: %22 = load i64, i64* %1, align 8 %23 = inttoptr i64 %22 to i32* %24 = load i32, i32* %23, align 4 %25 = call i64 @FUNC(i64 %arg1, i64 %16, i32 %24) %26 = load i64, i64* %1, align 8 %27 = call i64 @FUNC(i64 %26) %28 = icmp eq i64 %27, 0 %29 = icmp eq i1 %28, false store i64 %26, i64* %rdi.0.reg2mem br i1 %29, label LBL_4, label LBL_6 LBL_6: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %30 = add i64 %rdi.0.reload, 20 %31 = inttoptr i64 %30 to i32* %32 = load i32, i32* %31, align 4 %33 = add i64 %rdi.0.reload, 16 %34 = inttoptr i64 %33 to i32* store i32 %32, i32* %34, align 4 %35 = load i32, i32* %31, align 4 %36 = add i32 %35, 1 %37 = inttoptr i64 %rdi.0.reload to i32* store i32 %36, i32* %37, align 4 store i64 1, i64* %rax.0.reg2mem br label LBL_7 LBL_7: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %rdi.0.reload, { 0, 2, 1 } uselistorder i64 %2, { 1, 2, 3, 0, 4 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i1 false, { 2, 1, 0 } uselistorder i64 1, { 1, 0, 2, 3 } uselistorder i64 (i64)* @pqueue_peek, { 2, 0, 1 } uselistorder i32 1, { 3, 2, 1, 0 } uselistorder i64 %arg1, { 1, 3, 2, 0, 4 } uselistorder label LBL_7, { 2, 0, 1 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
sk_clone_lock_19024
sk_clone_lock
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_1.03.reg2mem = alloca i32 %sv_1.02.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = add i64 %2, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = and i64 %arg2, 4294967295 %8 = call i64 @FUNC(i64 %6, i64 %7, i32 %3) %9 = icmp eq i64 %8, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %9, label LBL_14, label LBL_1 LBL_1: %10 = call i64 @FUNC(i64 %8, i64 %2) %11 = add i64 %8, 16 %12 = inttoptr i64 %11 to i32* %13 = load i32, i32* %12, align 4 %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false %16 = icmp eq i1 %15, false br i1 %16, label LBL_3, label LBL_2 LBL_2: %17 = call i64 @FUNC(i64 %8) %18 = call i64 @FUNC(i64 %17) br label LBL_3 LBL_3: %19 = add i64 %8, 20 %20 = call i64 @FUNC(i64 %19) %21 = call i64 @FUNC(i64 %8) %22 = call i64 @FUNC(i64 %8) %23 = add i64 %8, 32 %24 = inttoptr i64 %23 to i64* store i64 0, i64* %24, align 8 %25 = add i64 %8, 24 %26 = inttoptr i64 %25 to i64* store i64 0, i64* %26, align 8 %27 = add i64 %8, 40 %28 = inttoptr i64 %27 to i32* store i32 0, i32* %28, align 4 %29 = add i64 %8, 48 %30 = call i64 @FUNC(i64 %29, i64 0) %31 = add i64 %8, 52 %32 = call i64 @FUNC(i64 %31, i64 1) %33 = add i64 %8, 56 %34 = call i64 @FUNC(i64 %33, i64 0) %35 = call i64 @FUNC(i64 %8) %36 = add i64 %8, 64 %37 = inttoptr i64 %36 to i64* store i64 0, i64* %37, align 8 %38 = add i64 %8, 72 %39 = inttoptr i64 %38 to i32* store i32 0, i32* %39, align 4 %40 = add i64 %8, 76 %41 = inttoptr i64 %40 to i32* store i32 0, i32* %41, align 4 %42 = add i64 %8, 80 %43 = inttoptr i64 %42 to i32* store i32 0, i32* %43, align 4 %44 = add i64 %8, 84 %45 = call i64 @FUNC(i64 %44, i64 0) %46 = add i64 %8, 88 %47 = inttoptr i64 %46 to i64* store i64 0, i64* %47, align 8 %48 = add i64 %2, 96 %49 = inttoptr i64 %48 to i32* %50 = load i32, i32* %49, align 4 %51 = and i32 %50, -2 %52 = add i64 %8, 96 %53 = inttoptr i64 %52 to i32* store i32 %51, i32* %53, align 4 %54 = add i64 %8, 160 %55 = call i64 @FUNC(i64 %54, i64 0) %56 = call i64 @FUNC(i64 %8, i64 2) %57 = add i64 %8, 120 %58 = inttoptr i64 %57 to i64* %59 = load i64, i64* %58, align 8 %60 = call i64 @FUNC(i64 %59, i64 1) %61 = icmp eq i64 %60, 0 store i32 1, i32* %sv_1.02.reg2mem br i1 %61, label LBL_5, label LBL_4 LBL_4: %62 = call i64 @FUNC(i64 %8, i64 %60) %63 = trunc i64 %62 to i32 %sext = mul i32 %63, 16777216 %64 = ashr exact i32 %sext, 24 %65 = icmp eq i32 %sext, 16777216 %66 = icmp eq i1 %65, false store i32 %64, i32* %sv_1.02.reg2mem store i32 %64, i32* %sv_1.03.reg2mem br i1 %66, label LBL_6, label LBL_5 LBL_5: %sv_1.02.reload = load i32, i32* %sv_1.02.reg2mem %67 = call i64 @FUNC(i64 %8, i64 %2) %68 = urem i64 %67, 256 %69 = icmp eq i64 %68, 0 store i32 %sv_1.02.reload, i32* %sv_1.03.reg2mem br i1 %69, label LBL_9, label LBL_6 LBL_6: %sv_1.03.reload = load i32, i32* %sv_1.03.reg2mem %70 = trunc i32 %sv_1.03.reload to i8 %71 = icmp eq i8 %70, 1 br i1 %71, label LBL_8, label LBL_7 LBL_7: %72 = load i64, i64* %58, align 8 %73 = call i64 @FUNC(i64 %72, i64 0) br label LBL_8 LBL_8: %74 = call i64 @FUNC(i64 %8) store i64 0, i64* %sv_0.0.reg2mem br label LBL_14 LBL_9: %75 = add i64 %8, 128 %76 = inttoptr i64 %75 to i64* %77 = load i64, i64* %76, align 8 %78 = call i64 @FUNC(i64 %77, i64 0) %79 = add i64 %8, 136 %80 = inttoptr i64 %79 to i32* store i32 0, i32* %80, align 4 %81 = add i64 %8, 140 %82 = inttoptr i64 %81 to i32* store i32 0, i32* %82, align 4 %83 = add i64 %8, 100 %84 = inttoptr i64 %83 to i32* store i32 0, i32* %84, align 4 %85 = call i64 @FUNC() %86 = trunc i64 %85 to i32 %87 = add i64 %8, 104 %88 = inttoptr i64 %87 to i32* store i32 %86, i32* %88, align 4 %89 = add i64 %8, 112 %90 = call i64 @FUNC(i64 %89, i64 0) %91 = call i64 @FUNC(i64 %8) %92 = call i64 @FUNC(i64 %57) %93 = call i64 @FUNC() %94 = add i64 %8, 164 %95 = call i64 @FUNC(i64 %94, i64 2) %96 = call i64 @FUNC(i64 %8) %97 = call i64 @FUNC(i64 %8, i64 0) %98 = add i64 %8, 152 %99 = inttoptr i64 %98 to i64* store i64 0, i64* %99, align 8 %100 = add i64 %8, 8 %101 = inttoptr i64 %100 to i64* %102 = load i64, i64* %101, align 8 %103 = inttoptr i64 %102 to i32* %104 = load i32, i32* %103, align 4 %105 = icmp eq i32 %104, 0 br i1 %105, label LBL_11, label LBL_10 LBL_10: %106 = call i64 @FUNC(i64 %8) br label LBL_11 LBL_11: %107 = call i64 @FUNC(i64 %2) %108 = trunc i64 %107 to i8 %109 = icmp eq i8 %108, 0 store i64 %8, i64* %sv_0.0.reg2mem br i1 %109, label LBL_14, label LBL_12 LBL_12: %110 = add i64 %8, 144 %111 = inttoptr i64 %110 to i32* %112 = load i32, i32* %111, align 4 %113 = and i32 %112, 4 %114 = icmp eq i32 %113, 0 store i64 %8, i64* %sv_0.0.reg2mem br i1 %114, label LBL_14, label LBL_13 LBL_13: %115 = call i64 @FUNC() store i64 %8, i64* %sv_0.0.reg2mem br label LBL_14 LBL_14: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem ret i64 %sv_0.0.reload uselistorder i32 %sext, { 1, 0 } uselistorder i64 %8, { 0, 1, 4, 2, 6, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 18, 3, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 40, 42, 43 } uselistorder i32* %sv_1.02.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_1.03.reg2mem, { 0, 2, 1 } uselistorder i64 (i64, i64)* @RCU_INIT_POINTER, { 1, 0 } uselistorder i32 16777216, { 1, 0 } uselistorder i64 (i64, i64)* @refcount_set, { 1, 0 } uselistorder i64 1, { 1, 2, 0 } uselistorder i64 (i64, i64)* @atomic_set, { 3, 2, 1, 0 } uselistorder i1 false, { 1, 0, 2 } uselistorder label LBL_14, { 3, 2, 1, 4, 0 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
audit_log_hex_18034
audit_log_hex
define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.lcssa.reg2mem = alloca i64 %sv_0.02.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i32 %.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, null %1 = zext i1 %0 to i64 %2 = call i64 @FUNC(i64 %1) %3 = call i64 @FUNC(i64 %1) %4 = trunc i64 %3 to i32 %arg3.tr = trunc i64 %arg3 to i32 %5 = mul i32 %arg3.tr, 2 %6 = icmp slt i32 %5, %4 store i64 %1, i64* %rdi.0.reg2mem br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = ptrtoint i64* %arg1 to i64 %8 = sub i32 %5, %4 %9 = add i32 %8, 1023 %10 = icmp slt i32 %8, 0 %11 = select i1 %10, i32 %9, i32 %8 %12 = add i32 %11, 1024 %13 = and i32 %12, -1024 %14 = zext i32 %13 to i64 %15 = call i64 @FUNC(i64 %7, i64 %14) %16 = trunc i64 %15 to i32 %17 = icmp eq i32 %16, 0 store i64 %7, i64* %rdi.0.reg2mem store i64 %15, i64* %rax.0.reg2mem br i1 %17, label LBL_6, label LBL_2 LBL_2: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %18 = icmp eq i64 %arg3, 0 store i64 %rdi.0.reload, i64* %sv_0.0.lcssa.reg2mem br i1 %18, label LBL_5, label LBL_3 LBL_3: %19 = ptrtoint i32* %arg2 to i64 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge3.reg2mem store i64 %rdi.0.reload, i64* %sv_0.02.reg2mem br label LBL_4 LBL_4: %sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem %storemerge3.reload = load i32, i32* %storemerge3.reg2mem %.reload = load i64, i64* %.reg2mem %20 = load [17 x i8]*, [17 x i8]** @gv_0, align 8 %21 = ptrtoint [17 x i8]* %20 to i64 %22 = add i64 %.reload, %19 %23 = inttoptr i64 %22 to i8* %24 = load i8, i8* %23, align 1 %25 = udiv i8 %24, 16 %26 = zext i8 %25 to i64 %27 = add i64 %26, %21 %28 = add i64 %sv_0.02.reload, 1 %29 = inttoptr i64 %27 to i8* %30 = load i8, i8* %29, align 1 %31 = inttoptr i64 %sv_0.02.reload to i8* store i8 %30, i8* %31, align 1 %32 = load [17 x i8]*, [17 x i8]** @gv_0, align 8 %33 = ptrtoint [17 x i8]* %32 to i64 %34 = load i8, i8* %23, align 1 %35 = urem i8 %34, 16 %36 = zext i8 %35 to i64 %37 = add i64 %36, %33 %38 = add i64 %sv_0.02.reload, 2 %39 = inttoptr i64 %37 to i8* %40 = load i8, i8* %39, align 1 %41 = inttoptr i64 %28 to i8* store i8 %40, i8* %41, align 1 %42 = add i32 %storemerge3.reload, 1 %43 = sext i32 %42 to i64 %44 = icmp ult i64 %43, %arg3 store i64 %43, i64* %.reg2mem store i32 %42, i32* %storemerge3.reg2mem store i64 %38, i64* %sv_0.02.reg2mem store i64 %38, i64* %sv_0.0.lcssa.reg2mem br i1 %44, label LBL_4, label LBL_5 LBL_5: %sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem %45 = inttoptr i64 %sv_0.0.lcssa.reload to i8* store i8 0, i8* %45, align 1 %46 = mul i64 %arg3, 2 %47 = call i64 @FUNC(i64 %1, i64 %46) store i64 %47, i64* %rax.0.reg2mem br label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %sv_0.02.reload, { 2, 0, 1 } uselistorder i64 %rdi.0.reload, { 1, 0 } uselistorder i32 %5, { 1, 0 } uselistorder i64 %1, { 1, 0, 3, 2 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_0.02.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } uselistorder i8 0, { 1, 0 } uselistorder i8 16, { 1, 0 } uselistorder i64 %arg3, { 0, 2, 1, 3 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
process_requests_153
process_requests
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %r9.1.reg2mem = alloca i64 %r8.2.reg2mem = alloca i64 %sv_0.9.reg2mem = alloca i32 %sv_0.8.reg2mem = alloca i32 %r8.1.reg2mem = alloca i64 %sv_0.7.reg2mem = alloca i32 %sv_0.6.reg2mem = alloca i32 %sv_0.5.reg2mem = alloca i32 %sv_0.4.reg2mem = alloca i32 %sv_0.3.reg2mem = alloca i32 %sv_0.2.reg2mem = alloca i32 %sv_0.1.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %r9.0.reg2mem = alloca i64 %r8.0.reg2mem = alloca i64 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %sv_4 = alloca i64, align 8 %sv_5 = alloca i64, align 8 %sv_6 = alloca i64, align 8 %sv_7 = alloca i64, align 8 %sv_8 = alloca i64, align 8 %sv_9 = alloca i32, align 4 %sv_10 = alloca i32, align 4 %sv_11 = alloca i32, align 4 %sv_12 = alloca i64, align 8 %sv_13 = alloca i64, align 8 %sv_14 = alloca i32, align 4 %sv_15 = alloca i64, align 8 %sv_16 = alloca i64, align 8 %sv_17 = alloca i32, align 4 %sv_18 = alloca i64, align 8 %0 = ptrtoint i64* %sv_18 to i64 %1 = and i64 %arg1, 4294967295 store i32 0, i32* %sv_17, align 4 %2 = call i64 @FUNC(i64 4128) store i64 %2, i64* %sv_16, align 8 %3 = call i64 @FUNC(i64 4128) store i64 %3, i64* %sv_15, align 8 %4 = ptrtoint i64* %sv_3 to i64 %5 = add i64 %0, -8 %6 = inttoptr i64 %5 to i64* %7 = ptrtoint i64* %sv_1 to i64 %8 = add i64 %0, -16 %9 = inttoptr i64 %8 to i64* %10 = ptrtoint i32* %sv_17 to i64 %11 = ptrtoint i64* %sv_2 to i64 %12 = ptrtoint i64* %sv_13 to i64 %13 = ptrtoint i64* %sv_5 to i64 %14 = ptrtoint i64* %sv_4 to i64 %15 = ptrtoint i64* %sv_6 to i64 %16 = ptrtoint i64* %sv_7 to i64 %17 = ptrtoint i64* %sv_8 to i64 %18 = ptrtoint i32* %sv_10 to i64 %19 = ptrtoint i32* %sv_9 to i64 %20 = bitcast i32* %sv_9 to i64* %21 = ptrtoint i32* %sv_11 to i64 %22 = bitcast i32* %sv_11 to i64* br label LBL_1 LBL_1: store i32 0, i32* %sv_14, align 4 %23 = call i64 @FUNC(i64 %1, i64* nonnull %sv_16, i32* nonnull %sv_14) %24 = trunc i64 %23 to i32 %25 = icmp slt i32 %24, 0 br i1 %25, label LBL_47, label LBL_2 LBL_2: %r9.0.reload = load i64, i64* %r9.0.reg2mem %r8.0.reload = load i64, i64* %r8.0.reg2mem %26 = load i32, i32* %sv_14, align 4 %27 = zext i32 %26 to i64 store i64 %27, i64* @0, align 8 switch i32 %26, label LBL_47 [ i32 1, label LBL_3 i32 2, label LBL_4 i32 3, label LBL_5 i32 4, label LBL_5 i32 5, label LBL_5 i32 6, label LBL_6 i32 7, label LBL_10 i32 8, label LBL_10 i32 9, label LBL_11 i32 10, label LBL_12 i32 11, label LBL_16 i32 12, label LBL_20 i32 13, label LBL_24 i32 14, label LBL_28 i32 15, label LBL_32 i32 16, label LBL_36 i32 17, label LBL_36 i32 18, label LBL_37 i32 19, label LBL_41 i32 20, label LBL_45 ] LBL_3: %28 = call i64 @FUNC(i64* nonnull %sv_16) %29 = trunc i64 %28 to i32 store i32 %29, i32* %sv_0.9.reg2mem store i64 %r8.0.reload, i64* %r8.2.reg2mem store i64 %r9.0.reload, i64* %r9.1.reg2mem br label LBL_46 LBL_4: %30 = call i64 @FUNC(i64* nonnull %sv_16) %31 = trunc i64 %30 to i32 store i32 %31, i32* %sv_0.9.reg2mem store i64 %r8.0.reload, i64* %r8.2.reg2mem store i64 %r9.0.reload, i64* %r9.1.reg2mem br label LBL_46 LBL_5: %32 = call i64 @FUNC(i64 %27, i64* nonnull %sv_16) %33 = trunc i64 %32 to i32 store i32 %33, i32* %sv_0.9.reg2mem store i64 %r8.0.reload, i64* %r8.2.reg2mem store i64 %r9.0.reload, i64* %r9.1.reg2mem br label LBL_46 LBL_6: %34 = call i64 @FUNC(i64* nonnull %sv_13) %35 = call i64 @FUNC(i64* nonnull %sv_12) %36 = call i64 @FUNC(i64* nonnull %sv_16, i64 32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_12, i64* nonnull %sv_13, i64 %r9.0.reload) %37 = trunc i64 %36 to i32 %38 = icmp slt i32 %37, 1 store i32 %37, i32* %sv_0.0.reg2mem br i1 %38, label LBL_9, label LBL_7 LBL_7: %39 = load i64, i64* %sv_13, align 8 %40 = load i64, i64* %sv_12, align 8 %41 = call i64 @FUNC(i64 %40, i64 %39) %42 = trunc i64 %41 to i32 %43 = icmp slt i32 %42, 0 %44 = icmp eq i1 %43, false store i32 %42, i32* %sv_0.0.reg2mem br i1 %44, label LBL_9, label LBL_8 LBL_8: %45 = call i32* @__errno_location() %46 = load i32, i32* %45, align 4 %47 = sub i32 0, %46 store i32 %47, i32* %sv_0.0.reg2mem br label LBL_9 LBL_9: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %48 = call i64 @FUNC(i64* nonnull %sv_12) %49 = call i64 @FUNC(i64* nonnull %sv_13) store i32 %sv_0.0.reload, i32* %sv_0.9.reg2mem store i64 %12, i64* %r8.2.reg2mem store i64 %r9.0.reload, i64* %r9.1.reg2mem br label LBL_46 LBL_10: %50 = call i64 @FUNC(i64 %27, i64* nonnull %sv_16, i64* nonnull %sv_15) %51 = trunc i64 %50 to i32 store i32 %51, i32* %sv_0.9.reg2mem store i64 %r8.0.reload, i64* %r8.2.reg2mem store i64 %r9.0.reload, i64* %r9.1.reg2mem br label LBL_46 LBL_11: %52 = call i64 @FUNC(i64* nonnull %sv_16, i64* nonnull %sv_15) %53 = trunc i64 %52 to i32 store i32 %53, i32* %sv_0.9.reg2mem store i64 %r8.0.reload, i64* %r8.2.reg2mem store i64 %r9.0.reload, i64* %r9.1.reg2mem br label LBL_46 LBL_12: %54 = call i64 @FUNC(i64* nonnull %sv_13) %55 = call i64 @FUNC(i64* nonnull %sv_16, i64 32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_13, i64* nonnull %22, i64 %r9.0.reload) %56 = trunc i64 %55 to i32 %57 = icmp slt i32 %56, 1 store i32 %56, i32* %sv_0.1.reg2mem br i1 %57, label LBL_15, label LBL_13 LBL_13: %58 = load i32, i32* %sv_11, align 4 %59 = load i64, i64* %sv_13, align 8 %60 = zext i32 %58 to i64 %61 = call i64 @FUNC(i64 %59, i64 %60) %62 = trunc i64 %61 to i32 %63 = icmp slt i32 %62, 0 %64 = icmp eq i1 %63, false store i32 %62, i32* %sv_0.1.reg2mem br i1 %64, label LBL_15, label LBL_14 LBL_14: %65 = call i32* @__errno_location() %66 = load i32, i32* %65, align 4 %67 = sub i32 0, %66 store i32 %67, i32* %sv_0.1.reg2mem br label LBL_15 LBL_15: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %68 = call i64 @FUNC(i64* nonnull %sv_13) store i32 %sv_0.1.reload, i32* %sv_0.9.reg2mem store i64 %21, i64* %r8.2.reg2mem store i64 %r9.0.reload, i64* %r9.1.reg2mem br label LBL_46 LBL_16: %69 = call i64 @FUNC(i64* nonnull %sv_13) %70 = call i64 @FUNC(i64* nonnull %sv_16, i64 32, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %sv_13, i64* nonnull %20, i64 %18) %71 = trunc i64 %70 to i32 %72 = icmp slt i32 %71, 1 store i32 %71, i32* %sv_0.2.reg2mem br i1 %72, label LBL_19, label LBL_17 LBL_17: %73 = load i32, i32* %sv_10, align 4 %74 = zext i32 %73 to i64 %75 = load i32, i32* %sv_9, align 4 %76 = load i64, i64* %sv_13, align 8 %77 = zext i32 %75 to i64 %78 = call i64 @FUNC(i64 %76, i64 %77, i64 %74) %79 = trunc i64 %78 to i32 %80 = icmp slt i32 %79, 0 %81 = icmp eq i1 %80, false store i32 %79, i32* %sv_0.2.reg2mem br i1 %81, label LBL_19, label LBL_18 LBL_18: %82 = call i32* @__errno_location() %83 = load i32, i32* %82, align 4 %84 = sub i32 0, %83 store i32 %84, i32* %sv_0.2.reg2mem br label LBL_19 LBL_19: %sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem %85 = call i64 @FUNC(i64* nonnull %sv_13) store i32 %sv_0.2.reload, i32* %sv_0.9.reg2mem store i64 %19, i64* %r8.2.reg2mem store i64 %18, i64* %r9.1.reg2mem br label LBL_46 LBL_20: %86 = call i64 @FUNC(i64* nonnull %sv_13) %87 = call i64 @FUNC(i64* nonnull %sv_16, i64 32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_3, i64 0, i64 0), i64* nonnull %sv_13, i64* nonnull %sv_8, i64 %r9.0.reload) %88 = trunc i64 %87 to i32 %89 = icmp slt i32 %88, 1 store i32 %88, i32* %sv_0.3.reg2mem br i1 %89, label LBL_23, label LBL_21 LBL_21: %90 = load i64, i64* %sv_8, align 8 %91 = load i64, i64* %sv_13, align 8 %92 = call i64 @FUNC(i64 %91, i64 %90) %93 = trunc i64 %92 to i32 %94 = icmp slt i32 %93, 0 %95 = icmp eq i1 %94, false store i32 %93, i32* %sv_0.3.reg2mem br i1 %95, label LBL_23, label LBL_22 LBL_22: %96 = call i32* @__errno_location() %97 = load i32, i32* %96, align 4 %98 = sub i32 0, %97 store i32 %98, i32* %sv_0.3.reg2mem br label LBL_23 LBL_23: %sv_0.3.reload = load i32, i32* %sv_0.3.reg2mem %99 = call i64 @FUNC(i64* nonnull %sv_13) store i32 %sv_0.3.reload, i32* %sv_0.9.reg2mem store i64 %17, i64* %r8.2.reg2mem store i64 %r9.0.reload, i64* %r9.1.reg2mem br label LBL_46 LBL_24: %100 = call i64 @FUNC(i64* nonnull %sv_13) store i64 %13, i64* %6, align 8 store i64 %14, i64* %9, align 8 %101 = call i64 @FUNC(i64* nonnull %sv_16, i64 32, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0), i64* nonnull %sv_13, i64* nonnull %sv_7, i64 %15) %102 = trunc i64 %101 to i32 %103 = icmp slt i32 %102, 1 store i32 %102, i32* %sv_0.4.reg2mem br i1 %103, label LBL_27, label LBL_25 LBL_25: %104 = load i64, i64* %sv_13, align 8 %105 = call i64 @FUNC(i64 %104, i64* nonnull %sv_7) %106 = trunc i64 %105 to i32 %107 = icmp slt i32 %106, 0 %108 = icmp eq i1 %107, false store i32 %106, i32* %sv_0.4.reg2mem br i1 %108, label LBL_27, label LBL_26 LBL_26: %109 = call i32* @__errno_location() %110 = load i32, i32* %109, align 4 %111 = sub i32 0, %110 store i32 %111, i32* %sv_0.4.reg2mem br label LBL_27 LBL_27: %sv_0.4.reload = load i32, i32* %sv_0.4.reg2mem %112 = call i64 @FUNC(i64* nonnull %sv_13) store i32 %sv_0.4.reload, i32* %sv_0.9.reg2mem store i64 %16, i64* %r8.2.reg2mem store i64 %15, i64* %r9.1.reg2mem br label LBL_46 LBL_28: %113 = call i64 @FUNC(i64* nonnull %sv_13) %114 = call i64 @FUNC(i64* nonnull %sv_12) %115 = call i64 @FUNC(i64* nonnull %sv_16, i64 32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_12, i64* nonnull %sv_13, i64 %r9.0.reload) %116 = trunc i64 %115 to i32 %117 = icmp slt i32 %116, 1 store i32 %116, i32* %sv_0.5.reg2mem br i1 %117, label LBL_31, label LBL_29 LBL_29: %118 = load i64, i64* %sv_13, align 8 %119 = load i64, i64* %sv_12, align 8 %120 = call i64 @FUNC(i64 %119, i64 %118) %121 = trunc i64 %120 to i32 %122 = icmp slt i32 %121, 0 %123 = icmp eq i1 %122, false store i32 %121, i32* %sv_0.5.reg2mem br i1 %123, label LBL_31, label LBL_30 LBL_30: %124 = call i32* @__errno_location() %125 = load i32, i32* %124, align 4 %126 = sub i32 0, %125 store i32 %126, i32* %sv_0.5.reg2mem br label LBL_31 LBL_31: %sv_0.5.reload = load i32, i32* %sv_0.5.reg2mem %127 = call i64 @FUNC(i64* nonnull %sv_12) %128 = call i64 @FUNC(i64* nonnull %sv_13) store i32 %sv_0.5.reload, i32* %sv_0.9.reg2mem store i64 %12, i64* %r8.2.reg2mem store i64 %r9.0.reload, i64* %r9.1.reg2mem br label LBL_46 LBL_32: %129 = call i64 @FUNC(i64* nonnull %sv_13) %130 = inttoptr i64 %r8.0.reload to i64* %131 = call i64 @FUNC(i64* nonnull %sv_16, i64 32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_5, i64 0, i64 0), i64* nonnull %sv_13, i64* %130, i64 %r9.0.reload) %132 = trunc i64 %131 to i32 %133 = icmp slt i32 %132, 1 store i32 %132, i32* %sv_0.6.reg2mem br i1 %133, label LBL_35, label LBL_33 LBL_33: %134 = load i64, i64* %sv_13, align 8 %135 = call i64 @FUNC(i64 %134) %136 = trunc i64 %135 to i32 %137 = icmp slt i32 %136, 0 %138 = icmp eq i1 %137, false store i32 %136, i32* %sv_0.6.reg2mem br i1 %138, label LBL_35, label LBL_34 LBL_34: %139 = call i32* @__errno_location() %140 = load i32, i32* %139, align 4 %141 = sub i32 0, %140 store i32 %141, i32* %sv_0.6.reg2mem br label LBL_35 LBL_35: %sv_0.6.reload = load i32, i32* %sv_0.6.reg2mem %142 = call i64 @FUNC(i64* nonnull %sv_13) store i32 %sv_0.6.reload, i32* %sv_0.9.reg2mem store i64 %r8.0.reload, i64* %r8.2.reg2mem store i64 %r9.0.reload, i64* %r9.1.reg2mem br label LBL_46 LBL_36: %143 = call i64 @FUNC(i64 %27, i64* nonnull %sv_16, i64* nonnull %sv_15) %144 = trunc i64 %143 to i32 store i32 %144, i32* %sv_0.9.reg2mem store i64 %r8.0.reload, i64* %r8.2.reg2mem store i64 %r9.0.reload, i64* %r9.1.reg2mem br label LBL_46 LBL_37: %145 = call i64 @FUNC(i64* nonnull %sv_13) %146 = call i64 @FUNC(i64* nonnull %sv_3) %147 = call i64 @FUNC(i64* nonnull %sv_2) store i64 %7, i64* %6, align 8 store i64 %10, i64* %9, align 8 %148 = call i64 @FUNC(i64* nonnull %sv_16, i64 32, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_6, i64 0, i64 0), i64* nonnull %sv_13, i64* nonnull %sv_3, i64 %11) %149 = trunc i64 %148 to i32 %150 = icmp slt i32 %149, 1 store i32 %149, i32* %sv_0.7.reg2mem store i64 %4, i64* %r8.1.reg2mem br i1 %150, label LBL_40, label LBL_38 LBL_38: %151 = load i64, i64* %sv_1, align 8 %152 = load i32, i32* %sv_17, align 4 %153 = sext i32 %152 to i64 %154 = load i64, i64* %sv_2, align 8 %155 = load i64, i64* %sv_3, align 8 %156 = load i64, i64* %sv_13, align 8 %157 = and i64 %151, 4294967295 %158 = call i64 @FUNC(i64 %156, i64 %155, i64 %154, i64 %153, i64 %157) %159 = trunc i64 %158 to i32 %160 = icmp slt i32 %159, 0 %161 = icmp eq i1 %160, false store i32 %159, i32* %sv_0.7.reg2mem store i64 %157, i64* %r8.1.reg2mem br i1 %161, label LBL_40, label LBL_39 LBL_39: %162 = call i32* @__errno_location() %163 = load i32, i32* %162, align 4 %164 = sub i32 0, %163 store i32 %164, i32* %sv_0.7.reg2mem store i64 %157, i64* %r8.1.reg2mem br label LBL_40 LBL_40: %r8.1.reload = load i64, i64* %r8.1.reg2mem %sv_0.7.reload = load i32, i32* %sv_0.7.reg2mem %165 = call i64 @FUNC(i64* nonnull %sv_13) %166 = call i64 @FUNC(i64* nonnull %sv_3) %167 = call i64 @FUNC(i64* nonnull %sv_2) store i32 %sv_0.7.reload, i32* %sv_0.9.reg2mem store i64 %r8.1.reload, i64* %r8.2.reg2mem store i64 %11, i64* %r9.1.reg2mem br label LBL_46 LBL_41: %168 = call i64 @FUNC(i64* nonnull %sv_13) %169 = call i64 @FUNC(i64* nonnull %sv_3) %170 = call i64 @FUNC(i64* nonnull %sv_16, i64 32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_13, i64* nonnull %sv_3, i64 %r9.0.reload) %171 = trunc i64 %170 to i32 %172 = icmp slt i32 %171, 1 store i32 %171, i32* %sv_0.8.reg2mem br i1 %172, label LBL_44, label LBL_42 LBL_42: %173 = load i64, i64* %sv_3, align 8 %174 = load i64, i64* %sv_13, align 8 %175 = call i64 @FUNC(i64 %174, i64 %173) %176 = trunc i64 %175 to i32 %177 = icmp slt i32 %176, 0 %178 = icmp eq i1 %177, false store i32 %176, i32* %sv_0.8.reg2mem br i1 %178, label LBL_44, label LBL_43 LBL_43: %179 = call i32* @__errno_location() %180 = load i32, i32* %179, align 4 %181 = sub i32 0, %180 store i32 %181, i32* %sv_0.8.reg2mem br label LBL_44 LBL_44: %sv_0.8.reload = load i32, i32* %sv_0.8.reg2mem %182 = call i64 @FUNC(i64* nonnull %sv_13) %183 = call i64 @FUNC(i64* nonnull %sv_3) store i32 %sv_0.8.reload, i32* %sv_0.9.reg2mem store i64 %4, i64* %r8.2.reg2mem store i64 %r9.0.reload, i64* %r9.1.reg2mem br label LBL_46 LBL_45: %184 = call i64 @FUNC(i64* nonnull %sv_16, i64* nonnull %sv_15) %185 = trunc i64 %184 to i32 store i32 %185, i32* %sv_0.9.reg2mem store i64 %r8.0.reload, i64* %r8.2.reg2mem store i64 %r9.0.reload, i64* %r9.1.reg2mem br label LBL_46 LBL_46: %r9.1.reload = load i64, i64* %r9.1.reg2mem %r8.2.reload = load i64, i64* %r8.2.reg2mem %sv_0.9.reload = load i32, i32* %sv_0.9.reg2mem %186 = load i32, i32* %sv_14, align 4 %187 = call i64 @FUNC(i64 %1, i32 %186, i64* nonnull %sv_15, i32 %sv_0.9.reload) %188 = trunc i64 %187 to i32 %189 = icmp slt i32 %188, 0 store i64 %r8.2.reload, i64* %r8.0.reg2mem store i64 %r9.1.reload, i64* %r9.0.reg2mem br i1 %189, label LBL_47, label LBL_1 LBL_47: %190 = load i64, i64* %sv_16, align 8 %191 = call i64 @FUNC(i64 %190) %192 = load i64, i64* %sv_15, align 8 %193 = call i64 @FUNC(i64 %192) ret i64 4294967295 uselistorder i64 %27, { 2, 1, 0, 3 } uselistorder i64 %r8.0.reload, { 7, 6, 5, 8, 4, 3, 2, 1, 0 } uselistorder i64 %r9.0.reload, { 12, 11, 13, 10, 9, 14, 8, 15, 7, 16, 6, 17, 5, 4, 3, 18, 2, 1, 0 } uselistorder i64 %12, { 1, 0 } uselistorder i64* %9, { 1, 0 } uselistorder i64* %6, { 1, 0 } uselistorder i64* %sv_16, { 17, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18 } uselistorder i64* %sv_15, { 5, 0, 1, 2, 3, 4, 6 } uselistorder i32* %sv_14, { 1, 2, 0, 3 } uselistorder i64* %sv_13, { 0, 27, 1, 2, 3, 28, 4, 5, 6, 29, 7, 8, 9, 30, 10, 11, 12, 32, 13, 14, 15, 33, 16, 17, 18, 34, 19, 20, 21, 35, 22, 23, 24, 36, 25, 26, 31 } uselistorder i64* %sv_12, { 0, 6, 1, 2, 3, 7, 4, 5 } uselistorder i32* %sv_11, { 1, 2, 0 } uselistorder i32* %sv_10, { 1, 0 } uselistorder i32* %sv_9, { 1, 2, 0 } uselistorder i64* %sv_8, { 1, 0, 2 } uselistorder i64* %sv_3, { 0, 6, 1, 2, 3, 8, 4, 5, 7 } uselistorder i64* %sv_2, { 0, 2, 1, 3 } uselistorder i64* %r8.0.reg2mem, { 1, 0 } uselistorder i64* %r9.0.reg2mem, { 1, 0 } uselistorder i32* %sv_0.9.reg2mem, { 0, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 } uselistorder i64* %r8.2.reg2mem, { 0, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 } uselistorder i64* %r9.1.reg2mem, { 0, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 } uselistorder i64 (i64)* @g_free, { 1, 0 } uselistorder i64 (i64*)* @v9fs_string_free, { 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i32* ()* @__errno_location, { 5, 6, 7, 0, 1, 2, 3, 4, 8 } uselistorder i64 (i64*, i64, i8*, i64*, i64*, i64)* @proxy_unmarshal, { 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), { 2, 1, 0 } uselistorder i64 (i64*)* @v9fs_string_init, { 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 (i64)* @g_malloc, { 1, 0 } uselistorder i32 0, { 20, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 0, 1 } uselistorder i64 4294967295, { 0, 2, 1 } uselistorder i32 1, { 25, 24, 23, 22, 21, 20, 19, 18, 17, 26, 44, 43, 42, 41, 40, 39, 38, 27, 28, 29, 37, 36, 35, 34, 33, 32, 31, 30, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } }
1
BinRealVul
netlink_dump_space_10871
netlink_dump_space
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = call i64 @FUNC(i64 %2, i64 0) %4 = icmp eq i64 %3, 0 %5 = icmp eq i1 %4, false store i64 0, i64* %storemerge.reg2mem br i1 %5, label LBL_1, label LBL_2 LBL_1: %6 = trunc i64 %1 to i32 %7 = add i64 %2, 4 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = udiv i32 %9, 2 %11 = add i32 %10, %6 %12 = icmp ugt i32 %11, %9 %13 = select i1 %12, i32 %9, i32 0 %spec.select = sub i32 %11, %13 %14 = zext i32 %spec.select to i64 %15 = call i64 @FUNC(i64 %2, i64 %14) %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = icmp eq i32 %17, 0 %19 = zext i1 %18 to i64 %20 = and i32 %17, -256 %21 = zext i32 %20 to i64 %22 = or i64 %21, %19 store i64 %22, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %9, { 1, 2, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
get_target_net_12811
get_target_net
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 = and i64 %arg2, 4294967295 %3 = call i64 @FUNC(i64 %1, i64 %2) %4 = icmp eq i64 %3, 0 %5 = icmp eq i1 %4, false br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = call i64 @FUNC(i64 4294967274) store i64 %6, i64* %rax.0.reg2mem br label LBL_4 LBL_2: %7 = inttoptr i64 %3 to i32* %8 = load i32, i32* %7, align 4 %9 = zext i32 %8 to i64 %10 = call i64 @FUNC(i64 %0, i64 %9, i64 0) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 %13 = icmp eq i1 %12, false store i64 %3, i64* %rax.0.reg2mem br i1 %13, label LBL_4, label LBL_3 LBL_3: %14 = call i64 @FUNC(i64 %3) %15 = call i64 @FUNC(i64 4294967283) store i64 %15, i64* %rax.0.reg2mem br label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %3, { 1, 0, 2, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i64 (i64)* @ERR_PTR, { 1, 0 } uselistorder label LBL_4, { 1, 0, 2 } }
1
BinRealVul
writefile_18980
writefile
define i64 @FUNC(i8* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %0 = call %_IO_FILE* @fopen(i8* %arg1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0)) %1 = icmp eq %_IO_FILE* %0, null %2 = icmp eq i1 %1, false br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = ptrtoint i8* %arg1 to i64 %4 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i64 %3) store i64 4294967295, i64* %storemerge.reg2mem br label LBL_6 LBL_2: %5 = ptrtoint i64* %arg2 to i64 %6 = add i64 %5, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = trunc i64 %8 to i32 %10 = call i32 @fwrite(i64* bitcast ([2 x i8]* @gv_0 to i64*), i32 1, i32 %9, %_IO_FILE* %0) %11 = sext i32 %10 to i64 %12 = load i64, i64* %7, align 8 %13 = icmp eq i64 %12, %11 %14 = icmp eq i1 %13, false br i1 %14, label LBL_4, label LBL_3 LBL_3: %15 = call i32 @fflush(%_IO_FILE* %0) %16 = icmp eq i32 %15, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %16, label LBL_5, label LBL_4 LBL_4: %17 = ptrtoint i8* %arg1 to i64 %18 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), i64 %17) store i64 4294967295, i64* %sv_0.0.reg2mem br label LBL_5 LBL_5: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %19 = call i32 @fclose(%_IO_FILE* %0) store i64 %sv_0.0.reload, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder %_IO_FILE* %0, { 1, 0, 2, 3 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 4294967295, { 1, 0 } uselistorder i64 (i8*, i64)* @warn, { 1, 0 } uselistorder [2 x i8]* @gv_0, { 1, 0 } uselistorder i8* %arg1, { 1, 0, 2 } }
1
BinRealVul
out_string_7261
out_string
define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i8* %.pre-phi.reg2mem = alloca i64 %.pre-phi4.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = icmp eq i64* %arg1, null %3 = icmp eq i1 %2, false br i1 %3, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_1, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %4 = ptrtoint i64* %arg1 to i64 %5 = add i64 %4, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = call i64 @FUNC(i64 %7) %9 = add i64 %4, 4 %10 = inttoptr i64 %9 to i8* %11 = load i8, i8* %10, align 1 %12 = icmp eq i8 %11, 0 br i1 %12, label LBL_6, label LBL_3 LBL_3: %13 = add i64 %7, 1024 %14 = inttoptr i64 %13 to i8* store i8 1, i8* %14, align 1 %15 = load i32, i32* inttoptr (i64 4210748 to i32*), align 4 %16 = icmp slt i32 %15, 2 br i1 %16, label LBL_5, label LBL_4 LBL_4: %17 = bitcast i64* %rdi to i32* %18 = load i32, i32* %17, align 8 %19 = zext i32 %18 to i64 %20 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8 %21 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %20, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_4, i64 0, i64 0), i64 %19, i8* %arg2) br label LBL_5 LBL_5: %22 = call i64 @FUNC(i64 %4, i64 0) store i64 %22, i64* %storemerge.reg2mem br label LBL_11 LBL_6: %23 = load i32, i32* @gv_5, align 4 %24 = icmp slt i32 %23, 2 br i1 %24, label LBL_8, label LBL_7 LBL_7: %25 = and i64 %1, 4294967295 %26 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8 %27 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %26, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_6, i64 0, i64 0), i64 %25, i8* %arg2) br label LBL_8 LBL_8: %28 = call i32 @strlen(i8* %arg2) %29 = sext i32 %28 to i64 %30 = add nsw i64 %29, 2 %31 = icmp ult i64 %30, 1024 %32 = icmp eq i32 %28, 1022 %33 = or i1 %32, %31 store i64 %30, i64* %.pre-phi4.reg2mem store i64 %29, i64* %.pre-phi.reg2mem store i8* %arg2, i8** %sv_1.0.reg2mem store i32 %28, i32* %sv_0.0.reg2mem br i1 %33, label LBL_10, label LBL_9 LBL_9: %34 = call i32 @strlen(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_7, i64 0, i64 0)) %.pre = sext i32 %34 to i64 %.pre3 = add nsw i64 %.pre, 2 store i64 %.pre3, i64* %.pre-phi4.reg2mem store i64 %.pre, i64* %.pre-phi.reg2mem store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_7, i64 0, i64 0), i8** %sv_1.0.reg2mem store i32 %34, i32* %sv_0.0.reg2mem br label LBL_10 LBL_10: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %sv_1.0.reload = load i8*, i8** %sv_1.0.reg2mem %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %.pre-phi4.reload = load i64, i64* %.pre-phi4.reg2mem %35 = inttoptr i64 %7 to i64* %36 = bitcast i8* %sv_1.0.reload to i64* %37 = call i64* @memcpy(i64* %35, i64* %36, i32 %sv_0.0.reload) %38 = add i64 %.pre-phi.reload, %7 %39 = inttoptr i64 %38 to i64* %40 = call i64* @memcpy(i64* %39, i64* bitcast ([3 x i8]* @gv_8 to i64*), i32 2) %41 = call i64 @FUNC(i64 %7, i64 %7, i64 %.pre-phi4.reload) %42 = call i64 @FUNC(i64 %4, i64 0) store i64 %42, i64* %storemerge.reg2mem br label LBL_11 LBL_11: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %7, { 2, 3, 0, 4, 1, 5 } uselistorder i64 %4, { 1, 0, 3, 2 } uselistorder i64* %.pre-phi4.reg2mem, { 0, 2, 1 } uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 } uselistorder i8** %sv_1.0.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 } uselistorder i32 (i8*)* @strlen, { 1, 0 } uselistorder i64 (i64, i64)* @conn_set_state, { 1, 0 } uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0 } uselistorder %_IO_FILE** @gv_3, { 1, 0 } uselistorder i32 2, { 2, 0, 1, 3 } uselistorder i8 0, { 1, 2, 0 } uselistorder i8* %arg2, { 0, 3, 2, 1 } uselistorder i64* %arg1, { 1, 0 } }
0
BinRealVul
nalm_dump_7307
nalm_dump
define i64 @FUNC(i64 %arg1, i32* %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %storemerge.in.reg2mem = alloca i32 %sv_0.05.reg2mem = alloca i32 %0 = icmp eq i32* %arg2, null %1 = icmp eq i1 %0, false br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = inttoptr i64 %arg1 to %_IO_FILE* %3 = call i32 @fwrite(i64* bitcast ([32 x i8]* @gv_0 to i64*), i32 1, i32 31, %_IO_FILE* %2) %4 = call i32 @fwrite(i64* bitcast ([48 x i8]* @gv_1 to i64*), i32 1, i32 47, %_IO_FILE* %2) %5 = call i32 @fwrite(i64* bitcast ([12 x i8]* @gv_2 to i64*), i32 1, i32 11, %_IO_FILE* %2) store i32 %5, i32* %storemerge.in.reg2mem br label LBL_8 LBL_2: %6 = ptrtoint i32* %arg2 to i64 %7 = zext i32 %arg3 to i64 %8 = call i64 @FUNC(i64 %6, i64 %7, i64 0) %9 = call i64 @FUNC(i64 %8, i64 6) %10 = call i64 @FUNC(i64 %8, i64 1) %11 = trunc i64 %10 to i32 %12 = call i64 @FUNC(i64 %8, i64 1) %13 = icmp eq i32 %11, 0 %. = select i1 %13, i64 8, i64 16 %14 = call i64 @FUNC(i64 %8, i64 %.) %15 = trunc i64 %14 to i32 %16 = and i64 %10, 4294967295 %17 = and i64 %12, 4294967295 %18 = inttoptr i64 %arg1 to %_IO_FILE* %19 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %18, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_3, i64 0, i64 0), i64 %17, i64 %16) %20 = icmp eq i32 %15, 0 %21 = icmp eq i1 %20, false br i1 %21, label LBL_3, label LBL_7 LBL_3: %22 = trunc i64 %12 to i32 %23 = icmp eq i32 %22, 0 store i32 %15, i32* %sv_0.05.reg2mem br label LBL_4 LBL_4: %sv_0.05.reload = load i32, i32* %sv_0.05.reg2mem %24 = call i32 @fwrite(i64* bitcast ([15 x i8]* @gv_4 to i64*), i32 1, i32 14, %_IO_FILE* %18) br i1 %23, label LBL_6, label LBL_5 LBL_5: %25 = call i64 @FUNC(i64 %8, i64 %.) %26 = and i64 %25, 4294967295 %27 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %18, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_5, i64 0, i64 0), i64 %26) br label LBL_6 LBL_6: %28 = call i64 @FUNC(i64 %8) %29 = and i64 %28, 4294967295 %30 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %18, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_6, i64 0, i64 0), i64 %29) %31 = add i32 %sv_0.05.reload, -1 %32 = icmp eq i32 %31, 0 %33 = icmp eq i1 %32, false store i32 %31, i32* %sv_0.05.reg2mem br i1 %33, label LBL_4, label LBL_7 LBL_7: %34 = call i64 @FUNC(i64 %8) %35 = call i32 @fwrite(i64* bitcast ([12 x i8]* @gv_2 to i64*), i32 1, i32 11, %_IO_FILE* %18) store i32 %35, i32* %storemerge.in.reg2mem br label LBL_8 LBL_8: %storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem %storemerge = sext i32 %storemerge.in.reload to i64 ret i64 %storemerge uselistorder %_IO_FILE* %18, { 0, 2, 1, 3, 4 } uselistorder i64 %12, { 1, 0 } uselistorder i64 %8, { 0, 2, 1, 3, 4, 5, 6 } uselistorder i32* %sv_0.05.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1 } uselistorder i32 -1, { 1, 0 } uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0, 2 } uselistorder i64 4294967295, { 2, 3, 0, 1, 4 } uselistorder i32 0, { 4, 3, 1, 5, 2, 0, 6, 7 } uselistorder i64 (i64, i64)* @gf_bs_read_int, { 4, 3, 2, 1, 0 } uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 3, 4, 2, 1, 0 } uselistorder i1 false, { 1, 0, 2 } uselistorder i64 %arg1, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
DestroyPolygonThreadSet_8846
DestroyPolygonThreadSet
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %storemerge1.reg2mem = alloca i64 %0 = icmp eq i64 %arg1, 0 %1 = icmp eq i1 %0, false br i1 %1, label LBL_2, label LBL_1 LBL_1: call void @__assert_fail(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_1, i64 0, i64 0), i32 32, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0)) br label LBL_2 LBL_2: %2 = call i64 @FUNC(i64 0) %3 = icmp sgt i64 %2, 0 store i64 0, i64* %storemerge1.reg2mem br i1 %3, label LBL_3, label LBL_6 LBL_3: %storemerge1.reload = load i64, i64* %storemerge1.reg2mem %4 = mul i64 %storemerge1.reload, 8 %5 = add i64 %4, %arg1 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = icmp eq i64 %7, 0 br i1 %8, label LBL_5, label LBL_4 LBL_4: %9 = call i64 @FUNC(i64 %7) store i64 %9, i64* %6, align 8 br label LBL_5 LBL_5: %10 = add nuw nsw i64 %storemerge1.reload, 1 %11 = call i64 @FUNC(i64 0) %12 = icmp slt i64 %10, %11 store i64 %10, i64* %storemerge1.reg2mem br i1 %12, label LBL_3, label LBL_6 LBL_6: %13 = call i64 @FUNC(i64 %arg1) ret i64 %13 uselistorder i64* %storemerge1.reg2mem, { 2, 0, 1 } uselistorder i64 (i64)* @GetMagickResourceLimit, { 1, 0 } uselistorder i64 %arg1, { 1, 0, 2 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
spectre_v2_in_ibrs_mode_6881
spectre_v2_in_ibrs_mode
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = and i64 %arg1, 4294967295 %1 = call i64 @FUNC(i64 %0) %2 = trunc i64 %1 to i8 %3 = icmp eq i8 %2, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = trunc i64 %arg1 to i32 %6 = icmp eq i32 %5, 0 %spec.select = zext i1 %6 to i64 ret i64 %spec.select LBL_2: ret i64 1 }
0
BinRealVul
qcow2_close_743
qcow2_close
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %.pre-phi4.reg2mem = alloca i64* %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) store i64 0, i64* %arg1, align 8 %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i32* %4 = load i32, i32* %3, align 4 %5 = urem i32 %4, 2 %6 = icmp eq i32 %5, 0 %7 = icmp eq i1 %6, false %.pre = inttoptr i64 %2 to i64* br i1 %7, label LBL_0.LBL_3_crit_edge, label LBL_2 LBL_1: %.pre1 = add i64 %0, 16 %.pre3 = inttoptr i64 %.pre1 to i64* store i64* %.pre3, i64** %.pre-phi4.reg2mem br label LBL_3 LBL_2: %8 = load i64, i64* %.pre, align 8 %9 = call i64 @FUNC(i64 %0, i64 %8) %10 = add i64 %0, 16 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = call i64 @FUNC(i64 %0, i64 %12) %14 = call i64 @FUNC(i64 %0) store i64* %11, i64** %.pre-phi4.reg2mem br label LBL_3 LBL_3: %.pre-phi4.reload = load i64*, i64** %.pre-phi4.reg2mem %15 = load i64, i64* %.pre, align 8 %16 = call i64 @FUNC(i64 %0, i64 %15) %17 = load i64, i64* %.pre-phi4.reload, align 8 %18 = call i64 @FUNC(i64 %0, i64 %17) %19 = add i64 %0, 24 %20 = inttoptr i64 %19 to i64* %21 = load i64, i64* %20, align 8 %22 = call i64 @FUNC(i64 %21) %23 = call i64 @FUNC(i64 %0) %24 = add i64 %0, 32 %25 = inttoptr i64 %24 to i64* %26 = load i64, i64* %25, align 8 %27 = call i64 @FUNC(i64 %26) %28 = add i64 %0, 40 %29 = inttoptr i64 %28 to i64* %30 = load i64, i64* %29, align 8 %31 = call i64 @FUNC(i64 %30) %32 = call i64 @FUNC(i64 %0) %33 = call i64 @FUNC(i64 %0) ret i64 %33 uselistorder i64 %0, { 6, 5, 8, 7, 9, 10, 12, 11, 3, 2, 4, 1, 0, 13, 14 } uselistorder i64 (i64)* @g_free, { 1, 0 } uselistorder i64 (i64, i64)* @qcow2_cache_destroy, { 1, 0 } uselistorder i64 (i64, i64)* @qcow2_cache_flush, { 1, 0 } uselistorder i64 16, { 1, 0 } uselistorder i64 (i64)* @qemu_vfree, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
0
reposvul_c_test
tun_get_socket_208
tun_get_socket
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, @gv_0 br i1 %0, label LBL_2, label LBL_1 LBL_1: %1 = call i64 @FUNC(i64 4294967274) store i64 %1, i64* %rax.0.reg2mem br label LBL_4 LBL_2: %2 = load i64, i64* inttoptr (i64 add (i64 ptrtoint (i64* @gv_0 to i64), i64 8) to i64*), align 8 %3 = icmp eq i64 %2, 0 %4 = icmp eq i1 %3, false store i64 %2, i64* %rax.0.reg2mem br i1 %4, label LBL_4, label LBL_3 LBL_3: %5 = call i64 @FUNC(i64 4294967219) 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 (i64)* @ERR_PTR, { 1, 0 } uselistorder label LBL_4, { 1, 0, 2 } }
0
BinRealVul
error_setg_errno_13945
error_setg_errno
define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr { LBL_0: %0 = alloca i128 %1 = alloca i64 %rax.0.reg2mem = alloca i64 %2 = load i64, i64* %1 %3 = load i128, i128* %0 %4 = load i128, i128* %0 %5 = load i128, i128* %0 %6 = load i128, i128* %0 %7 = load i128, i128* %0 %8 = load i128, i128* %0 %9 = load i128, i128* %0 %10 = load i128, i128* %0 %sv_0 = alloca 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 = call i32* @__errno_location() %22 = load i32, i32* %21, align 4 %23 = zext i32 %22 to i64 %24 = icmp eq i64* %arg1, null store i64 %23, i64* %rax.0.reg2mem br i1 %24, label LBL_6, label LBL_3 LBL_3: %25 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %26 = ashr exact i64 %sext, 32 store i32 24, i32* %sv_0, align 4 %27 = ptrtoint i8* %arg3 to i64 %28 = call i64 @FUNC(i64 %25, i64 1, i64 %27, i32* nonnull %sv_0) %29 = trunc i64 %26 to i32 %30 = icmp eq i32 %29, 0 br i1 %30, label LBL_5, label LBL_4 LBL_4: %31 = ptrtoint i32* %sv_0 to i64 %32 = and i64 %26, 4294967295 %33 = call i8* @strerror(i32 %29) %34 = ptrtoint i8* %33 to i64 %35 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i64 %25, i64 %34, i64 %31, i64 %arg5, i64 %arg6) %36 = inttoptr i64 %32 to i64* store i64 %35, i64* %36, align 8 %37 = call i64 @FUNC(i64 %25) br label LBL_5 LBL_5: %38 = call i32* @__errno_location() %39 = ptrtoint i32* %38 to i64 store i32 %22, i32* %38, align 4 store i64 %39, 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 %26, { 1, 0 } uselistorder i64 %25, { 1, 0, 2 } uselistorder i32* %sv_0, { 1, 0, 2 } uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i32 0, { 1, 0 } uselistorder i32* ()* @__errno_location, { 1, 0 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
1
BinRealVul
r3d_read_redv_17283
r3d_read_redv
define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.reg2mem7 = alloca i32 %.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg1 to i64 %5 = add i64 %4, 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = call i64 @FUNC(i64 %7) %9 = load i64, i64* %6, align 8 %10 = call i64 @FUNC(i64 %9) %11 = load i64, i64* %6, align 8 %12 = call i64 @FUNC(i64 %11) %13 = trunc i64 %4 to i32 %14 = and i64 %12, 4294967295 %15 = call i32 (i32, i8*, ...) @dprintf(i32 %13, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i64 %14) %16 = load i64, i64* %6, align 8 %17 = call i64 @FUNC(i64 %16) %18 = load i64, i64* %6, align 8 %19 = call i64 @FUNC(i64 %18) %20 = and i64 %19, 4294967295 %21 = and i64 %17, 4294967295 %22 = call i32 (i32, i8*, ...) @dprintf(i32 %13, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i64 %21, i64 %20) %23 = load i64, i64* %6, align 8 %24 = call i64 @FUNC(i64 %23) %25 = trunc i64 %24 to i32 %26 = and i64 %24, 4294967295 %27 = call i32 (i32, i8*, ...) @dprintf(i32 %13, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0), i64 %26) %28 = icmp slt i32 %25, 5 br i1 %28, label LBL_2, label LBL_1 LBL_1: %29 = load i64, i64* %6, align 8 %30 = call i64 @FUNC(i64 %29) %31 = and i64 %30, 4294967295 %32 = call i32 (i32, i8*, ...) @dprintf(i32 %13, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0), i64 %31) %33 = load i64, i64* %6, align 8 %34 = call i64 @FUNC(i64 %33) %35 = and i64 %34, 4294967295 %36 = call i32 (i32, i8*, ...) @dprintf(i32 %13, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0), i64 %35) %37 = load i64, i64* %6, align 8 %38 = call i64 @FUNC(i64 %37) %39 = and i64 %38, 4294967295 %40 = call i32 (i32, i8*, ...) @dprintf(i32 %13, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_3, i64 0, i64 0), i64 %39) %41 = load i64, i64* %6, align 8 %42 = call i64 @FUNC(i64 %41) %43 = and i64 %42, 4294967295 %44 = call i32 (i32, i8*, ...) @dprintf(i32 %13, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_4, i64 0, i64 0), i64 %43) %45 = load i64, i64* %6, align 8 %46 = call i64 @FUNC(i64 %45) %47 = and i64 %46, 4294967295 %48 = call i32 (i32, i8*, ...) @dprintf(i32 %13, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_5, i64 0, i64 0), i64 %47) br label LBL_2 LBL_2: %49 = trunc i64 %8 to i32 %50 = trunc i64 %3 to i32 %51 = load i64, i64* %6, align 8 %52 = call i64 @FUNC(i64 %51) %53 = trunc i64 %52 to i32 %54 = add i32 %50, -8 %55 = add i32 %54, %49 %56 = sub i32 %55, %53 %57 = icmp slt i32 %56, 0 %58 = icmp eq i1 %57, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %58, label LBL_3, label LBL_9 LBL_3: %59 = ptrtoint i64* %arg2 to i64 %60 = load i64, i64* %6, align 8 %61 = call i64 @FUNC(i64 %60, i64 %59, i32 %56) %62 = trunc i64 %61 to i32 %63 = icmp eq i32 %56, %62 br i1 %63, label LBL_5, label LBL_4 LBL_4: %64 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_6, i64 0, i64 0), i64 %59, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_9 LBL_5: %65 = trunc i64 %10 to i32 %66 = bitcast i64* %arg2 to i32* store i32 0, i32* %66, align 4 %67 = add i64 %59, 4 %68 = inttoptr i64 %67 to i32* store i32 %65, i32* %68, align 4 %69 = load i64, i64* %6, align 8 %70 = add i64 %69, 4 %71 = inttoptr i64 %70 to i32* %72 = load i32, i32* %71, align 4 %73 = icmp eq i32 %72, 0 br i1 %73, label LBL_5.LBL_8_crit_edge, label LBL_7 LBL_6: %.pre3 = add i64 %59, 8 %.pre4 = inttoptr i64 %.pre3 to i64* %.pre6 = load i64, i64* %.pre4, align 8 store i64 %.pre6, i64* %.reg2mem store i32 %65, i32* %.reg2mem7 br label LBL_8 LBL_7: %74 = add i64 %4, 4 %75 = inttoptr i64 %74 to i32* %76 = load i32, i32* %75, align 4 %77 = inttoptr i64 %69 to i32* %78 = load i32, i32* %77, align 4 %79 = sext i32 %78 to i64 %80 = sext i32 %76 to i64 %81 = mul nsw i64 %79, %80 %82 = sext i32 %72 to i64 %83 = udiv i64 %81, %82 %84 = add i64 %59, 8 %85 = inttoptr i64 %84 to i64* store i64 %83, i64* %85, align 8 %.pre = load i32, i32* %68, align 4 store i64 %83, i64* %.reg2mem store i32 %.pre, i32* %.reg2mem7 br label LBL_8 LBL_8: %.reload8 = load i32, i32* %.reg2mem7 %.reload = load i64, i64* %.reg2mem %86 = zext i32 %.reload8 to i64 %87 = call i32 (i32, i8*, ...) @dprintf(i32 %13, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_7, i64 0, i64 0), i64 %86, i64 %.reload) store i64 0, i64* %rax.0.reg2mem br label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %59, { 2, 0, 3, 1, 4 } uselistorder i32 %56, { 1, 2, 0 } uselistorder i32 %13, { 5, 0, 1, 2, 3, 4, 6, 7, 8 } uselistorder i64* %6, { 5, 6, 7, 0, 1, 2, 3, 4, 8, 9, 10, 11, 12, 13 } uselistorder i64 %4, { 1, 0, 2, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64)* @get_be16, { 2, 1, 0 } uselistorder i64 (i64)* @get_byte, { 1, 0 } uselistorder i32 (i32, i8*, ...)* @dprintf, { 7, 8, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 4294967295, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10 } uselistorder i64 (i64)* @get_be32, { 4, 3, 2, 1, 0 } uselistorder i64 (i64)* @url_ftell, { 1, 0 } uselistorder i64 8, { 1, 0, 2 } uselistorder label LBL_9, { 1, 2, 0 } uselistorder label LBL_8, { 1, 0 } }
1
BinRealVul
elng_dump_9045
elng_dump
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %arg2) %1 = inttoptr i64 %arg2 to %_IO_FILE* %2 = inttoptr i64 %arg1 to i8* %3 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_1, i64 0, i64 0), i8* %2) %4 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %arg1, i64 %arg2) ret i64 0 uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 0, 2, 1 } }
0
BinRealVul
fuse_get_acl_7237
fuse_get_acl
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %storemerge.reg2mem = alloca i8* %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %0) %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, 0 store i64 -5, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_14 LBL_1: %5 = inttoptr i64 %1 to i32* %6 = load i32, i32* %5, align 4 %7 = icmp eq i32 %6, 0 store i64 0, i64* %rax.0.reg2mem br i1 %7, label LBL_14, label LBL_2 LBL_2: %8 = add i64 %1, 4 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = icmp eq i32 %10, 0 store i64 0, i64* %rax.0.reg2mem br i1 %11, label LBL_3, label LBL_14 LBL_3: %12 = trunc i64 %arg2 to i32 %13 = icmp eq i32 %12, 1 %14 = icmp eq i1 %13, false store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i8** %storemerge.reg2mem br i1 %14, label LBL_4, label LBL_5 LBL_4: %15 = icmp eq i32 %12, 2 %16 = icmp eq i1 %15, false store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i8** %storemerge.reg2mem store i64 -95, i64* %rax.0.reg2mem br i1 %16, label LBL_14, label LBL_5 LBL_5: %17 = call i64 @FUNC(i64 4096, i64 0) %18 = icmp eq i64 %17, 0 %19 = icmp eq i1 %18, false store i64 -12, i64* %rax.0.reg2mem br i1 %19, label LBL_6, label LBL_14 LBL_6: %storemerge.reload = load i8*, i8** %storemerge.reg2mem %20 = ptrtoint i8* %storemerge.reload to i64 %21 = call i64 @FUNC(i64 %0, i64 %20, i64 %17, i64 4096) %22 = trunc i64 %21 to i32 %23 = icmp slt i32 %22, 1 br i1 %23, label LBL_8, label LBL_7 LBL_7: %24 = add i64 %1, 8 %25 = inttoptr i64 %24 to i64* %26 = load i64, i64* %25, align 8 %27 = call i64 @FUNC(i64 %26, i64 %17, i32 %22) store i64 %27, i64* %sv_0.0.reg2mem br label LBL_13 LBL_8: store i64 0, i64* %sv_0.0.reg2mem store i64 0, i64* %sv_0.0.reg2mem switch i32 %22, label LBL_9 [ i32 -61, label LBL_13 i32 0, label LBL_13 ] LBL_9: %28 = icmp eq i32 %22, -95 %29 = icmp eq i1 %28, false br i1 %29, label LBL_11, label LBL_10 LBL_10: %30 = load i32, i32* %9, align 4 %31 = icmp eq i32 %30, 0 store i64 0, i64* %sv_0.0.reg2mem br i1 %31, label LBL_11, label LBL_13 LBL_11: %32 = icmp eq i32 %22, -34 %33 = icmp eq i1 %32, false store i64 -7, i64* %sv_0.0.reg2mem br i1 %33, label LBL_12, label LBL_13 LBL_12: %sext5 = mul i64 %21, 4294967296 %34 = ashr exact i64 %sext5, 32 store i64 %34, i64* %sv_0.0.reg2mem br label LBL_13 LBL_13: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %35 = call i64 @FUNC(i64 %17) store i64 %sv_0.0.reload, i64* %rax.0.reg2mem br label LBL_14 LBL_14: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %22, { 1, 3, 0, 2, 4 } uselistorder i64 %17, { 1, 0, 2, 3 } uselistorder i64* %sv_0.0.reg2mem, { 0, 6, 1, 2, 3, 4, 5 } uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 2, 4, 3, 5 } uselistorder i32 0, { 1, 0, 2, 3, 4 } uselistorder label LBL_14, { 5, 0, 1, 3, 2, 4 } uselistorder label LBL_13, { 4, 0, 1, 3, 2, 5 } }
0