dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | grow_array_297 | grow_array | define i64 @FUNC(i64 %arg1, i32 %arg2, i32* %arg3, i32 %arg4) 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 = sext i32 %arg4 to i64
%5 = udiv i32 2147483647, %arg2
%6 = zext i32 %5 to i64
%7 = icmp slt i64 %4, %6
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %2, i64 %1)
%9 = call i64 @FUNC(i64 1)
unreachable
LBL_2:
%10 = and i64 %3, 4294967295
%11 = icmp slt i64 %10, %4
store i64 %arg1, i64* %storemerge.reg2mem
br i1 %11, label LBL_3, label LBL_6
LBL_3:
%12 = mul i32 %arg4, %arg2
%13 = sext i32 %12 to i64
%14 = call i64 @FUNC(i64 %arg1, i64 %13)
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %4, i64 %2, i64 %1)
%18 = call i64 @FUNC(i64 1)
unreachable
LBL_5:
%19 = trunc i64 %3 to i32
%20 = sub i32 %arg4, %19
%21 = mul i32 %20, %arg2
%22 = mul i32 %19, %arg2
%23 = sext i32 %22 to i64
%24 = add i64 %14, %23
%25 = inttoptr i64 %24 to i64*
%26 = call i64* @memset(i64* %25, i32 0, i32 %21)
store i32 %arg4, i32* %arg3, align 4
store i64 %14, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %4, { 2, 0, 1, 3 }
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)* @exit_program, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i32 %arg4, { 1, 2, 0, 3 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | qemu_chr_open_udp_17164 | qemu_chr_open_udp | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 32)
%2 = call i64 @FUNC(i64 12)
%3 = call i64 @FUNC(i64 %0)
%4 = trunc i64 %3 to i32
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%7 = inttoptr i64 %2 to i32*
store i32 %4, i32* %7, align 4
%8 = add i64 %2, 4
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i32*
store i32 0, i32* %11, align 4
%12 = inttoptr i64 %1 to i64*
store i64 %2, i64* %12, align 8
%13 = add i64 %1, 8
%14 = inttoptr i64 %13 to i64*
store i64 4198822, i64* %14, align 8
%15 = add i64 %1, 16
%16 = inttoptr i64 %15 to i64*
store i64 4198833, i64* %16, align 8
%17 = add i64 %1, 24
%18 = inttoptr i64 %17 to i64*
store i64 4198840, i64* %18, align 8
store i64 %1, i64* %arg2, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%19 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%20 = call i32 @fwrite(i64* bitcast ([24 x i8]* @gv_1 to i64*), i32 1, i32 23, %_IO_FILE* %19)
%21 = call i32* @__errno_location()
%22 = load i32, i32* %21, align 4
%23 = sub i32 0, %22
%24 = call i64 @FUNC(i64 %1)
%25 = call i64 @FUNC(i64 %2)
%26 = zext i32 %23 to i64
store i64 %26, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %2, { 3, 0, 1, 2, 4 }
uselistorder i64 (i64)* @g_free, { 1, 0 }
uselistorder i64 (i64)* @g_malloc0, { 1, 0 }
} | 1 |
BinRealVul | bpf_prog_get_13551 | bpf_prog_get | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = and i64 %arg1, 4294967295
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC()
%3 = icmp ult i64 %2, -1000
store i64 %2, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = call i64 @FUNC(i64 %2)
%5 = call i64 @FUNC()
store i64 %4, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | rgb15tobgr32_192 | rgb15tobgr32 | define i64 @FUNC(i16* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i64
%sv_1.03.reg2mem = alloca i16*
%.reg2mem = alloca i64
%0 = ptrtoint i16* %arg1 to i64
%1 = lshr i64 %arg3, 63
%2 = add i64 %1, %arg3
%3 = and i64 %2, -2
%4 = add i64 %3, %0
%5 = icmp ugt i64 %4, %0
store i64 %0, i64* %.reg2mem
store i16* %arg1, i16** %sv_1.03.reg2mem
store i64 %arg2, i64* %sv_0.02.reg2mem
store i64 %0, i64* %.lcssa.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%sv_1.03.reload = load i16*, i16** %sv_1.03.reg2mem
%.reload = load i64, i64* %.reg2mem
%6 = add i64 %.reload, 2
%7 = inttoptr i64 %6 to i16*
%8 = load i16, i16* %sv_1.03.reload, align 2
%9 = udiv i16 %8, 128
%10 = add i64 %sv_0.02.reload, 1
%11 = trunc i16 %9 to i8
%12 = and i8 %11, -8
%13 = inttoptr i64 %sv_0.02.reload to i8*
store i8 %12, i8* %13, align 1
%14 = udiv i16 %8, 4
%15 = add i64 %sv_0.02.reload, 2
%16 = trunc i16 %14 to i8
%17 = and i8 %16, -8
%18 = inttoptr i64 %10 to i8*
store i8 %17, i8* %18, align 1
%19 = trunc i16 %8 to i8
%20 = mul i8 %19, 8
%21 = add i64 %sv_0.02.reload, 3
%22 = inttoptr i64 %15 to i8*
store i8 %20, i8* %22, align 1
%23 = add i64 %sv_0.02.reload, 4
%24 = inttoptr i64 %21 to i8*
store i8 0, i8* %24, align 1
%25 = icmp ugt i64 %4, %6
store i64 %6, i64* %.reg2mem
store i16* %7, i16** %sv_1.03.reg2mem
store i64 %23, i64* %sv_0.02.reg2mem
store i64 %6, i64* %.lcssa.reg2mem
br i1 %25, label LBL_1, label LBL_2
LBL_2:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i16 %8, { 2, 0, 1 }
uselistorder i64 %sv_0.02.reload, { 4, 3, 2, 0, 1 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %0, { 0, 1, 3, 2 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i16** %sv_1.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.02.reg2mem, { 2, 0, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | IsTTF_10021 | IsTTF | 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 = icmp ult i64 %arg2, 5
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_7, label LBL_1
LBL_1:
%3 = trunc i64 %1 to i8
%4 = icmp eq i8 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_6, label LBL_2
LBL_2:
%6 = ptrtoint i32* %arg1 to i64
%7 = add i64 %6, 1
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = icmp eq i8 %9, 1
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_6, label LBL_3
LBL_3:
%12 = add i64 %6, 2
%13 = inttoptr i64 %12 to i8*
%14 = load i8, i8* %13, align 1
%15 = icmp eq i8 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_6, label LBL_4
LBL_4:
%17 = add i64 %6, 3
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18, align 1
%20 = icmp eq i8 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = add i64 %6, 4
%23 = inttoptr i64 %22 to i8*
%24 = load i8, i8* %23, align 1
%25 = icmp eq i8 %24, 0
%26 = icmp eq i1 %25, false
store i64 1, i64* %rax.0.reg2mem
br i1 %26, label LBL_6, label LBL_7
LBL_6:
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_7, { 2, 0, 1 }
} | 0 |
BinRealVul | vhost_net_ack_features_14576 | vhost_net_ack_features | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = call i64 @FUNC(i64 %0)
%3 = and i64 %2, 4294967295
%4 = call i64 @FUNC(i64 %0, i64 %3, i32 %1)
ret i64 %4
} | 1 |
BinRealVul | jpc_bitstream_getbits_5292 | jpc_bitstream_getbits | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i64
%.in.reg2mem = alloca i32
%0 = trunc i64 %arg2 to i32
%1 = icmp ult i32 %0, 32
store i64 -1, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_4
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = add i32 %0, -1
%4 = icmp slt i32 %3, 0
%5 = icmp eq i1 %4, false
store i32 %3, i32* %.in.reg2mem
store i64 0, i64* %storemerge4.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_4
LBL_2:
%6 = call i64 @FUNC(i64 %2)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_4
LBL_3:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%.in.reload = load i32, i32* %.in.reg2mem
%10 = mul i64 %storemerge4.reload, 2
%sext2 = mul i64 %6, 4294967296
%11 = ashr exact i64 %sext2, 32
%12 = or i64 %11, %10
%13 = add i32 %.in.reload, -1
%14 = icmp slt i32 %13, 0
%15 = icmp eq i1 %14, false
store i32 %13, i32* %.in.reg2mem
store i64 %12, i64* %storemerge4.reg2mem
store i64 %12, i64* %rax.0.reg2mem
br i1 %15, label LBL_2, label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %0, { 1, 0 }
uselistorder i32* %.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge4.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i32 0, { 2, 1, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | tcp_ofo_queue_8152 | tcp_ofo_queue | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.2.ph16.reg2mem = alloca i32
%rcx.3.ph17.reg2mem = alloca i64
%r8.0.ph18.reg2mem = alloca i64
%.in.reg2mem = alloca i64
%rcx.24.reg2mem = alloca i64
%storemerge6.reg2mem = alloca i1
%rcx.1.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_0.212.reg2mem = alloca i32
%rcx.313.reg2mem = alloca i64
%.in20.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%3 = call i64 @FUNC(i64 %2)
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i64 %3, 8
%7 = call i64 @FUNC(i64 %6)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 %7, i64* %rax.0.reg2mem
br i1 %9, label LBL_1, label LBL_19
LBL_1:
%10 = ptrtoint i32* %sv_1 to i64
%11 = bitcast i32* %sv_1 to i64*
store i64 %7, i64* %.in.reg2mem
store i32 %5, i32* %sv_0.2.ph16.reg2mem
br label LBL_2.lr.ph
LBL_2:
%.in20.reload = load i64, i64* %.in20.reg2mem
%12 = inttoptr i64 %.in20.reload to i32*
%13 = load i32, i32* %4, align 4
%14 = load i32, i32* %12, align 4
%15 = zext i32 %13 to i64
%16 = zext i32 %14 to i64
%17 = call i64 @FUNC(i64 %16, i64 %15)
%18 = trunc i64 %17 to i8
%19 = icmp eq i8 %18, 0
%20 = icmp eq i1 %19, false
store i64 %17, i64* %rax.0.reg2mem
br i1 %20, label LBL_19, label LBL_3
LBL_3:
%sv_0.212.reload = load i32, i32* %sv_0.212.reg2mem
%rcx.313.reload = load i64, i64* %rcx.313.reg2mem
%21 = load i32, i32* %12, align 4
%22 = zext i32 %sv_0.212.reload to i64
%23 = zext i32 %21 to i64
%24 = call i64 @FUNC(i64 %23, i64 %22)
%25 = trunc i64 %24 to i8
%26 = icmp eq i8 %25, 0
%.pre = add i64 %.in20.reload, 4
%.pre34 = inttoptr i64 %.pre to i32*
store i32 %sv_0.212.reload, i32* %sv_0.1.reg2mem
store i64 %rcx.313.reload, i64* %rcx.0.reg2mem
br i1 %26, label LBL_7, label LBL_4
LBL_4:
%27 = load i32, i32* %.pre34, align 4
%28 = zext i32 %27 to i64
%29 = call i64 @FUNC(i64 %28, i64 %22)
%30 = trunc i64 %29 to i8
%31 = icmp eq i8 %30, 0
store i32 %sv_0.212.reload, i32* %sv_0.0.reg2mem
br i1 %31, label LBL_6, label LBL_5
LBL_5:
%32 = load i32, i32* %.pre34, align 4
store i32 %32, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%33 = load i32, i32* %12, align 4
%34 = zext i32 %33 to i64
%35 = call i64 @FUNC(i64 %2, i64 %34, i32 %sv_0.212.reload)
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
store i64 %34, i64* %rcx.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%36 = call i64 @FUNC(i64 %.in20.reload, i64 %6)
%37 = load i32, i32* %4, align 4
%38 = zext i32 %37 to i64
%39 = load i32, i32* %.pre34, align 4
%40 = zext i32 %39 to i64
%41 = call i64 @FUNC(i64 %40, i64 %38)
%42 = trunc i64 %41 to i8
%43 = icmp eq i8 %42, 1
br i1 %43, label LBL_9, label LBL_8
LBL_8:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%44 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_0, i64 0, i64 0), i64 %38, i64 %rcx.0.reload, i64 %r8.0.ph18.reload, i64 %1)
%45 = call i64 @FUNC(i64 %.in20.reload)
%46 = call i64 @FUNC(i64 %6)
%47 = icmp eq i64 %46, 0
%48 = icmp eq i1 %47, false
store i64 %46, i64* %.in20.reg2mem
store i64 %rcx.0.reload, i64* %rcx.313.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.212.reg2mem
store i64 %46, i64* %rax.0.reg2mem
br i1 %48, label LBL_2, label LBL_19
LBL_9:
%49 = load i32, i32* %.pre34, align 4
%50 = load i32, i32* %12, align 4
%51 = zext i32 %50 to i64
%52 = load i32, i32* %4, align 4
%53 = zext i32 %52 to i64
%54 = zext i32 %49 to i64
%55 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_1, i64 0, i64 0), i64 %53, i64 %51, i64 %54, i64 %1)
%56 = call i64 @FUNC(i64 %2)
%57 = icmp eq i64 %56, 0
store i64 %51, i64* %rcx.1.reg2mem
br i1 %57, label LBL_12, label LBL_10
LBL_10:
%58 = call i64 @FUNC(i64 %2, i64 %56, i64 %.in20.reload, i64* nonnull %11)
%59 = trunc i64 %58 to i8
%60 = icmp eq i8 %59, 0
store i64 %10, i64* %rcx.1.reg2mem
br i1 %60, label LBL_12, label LBL_11
LBL_11:
%61 = load i32, i32* %.pre34, align 4
%62 = zext i32 %61 to i64
%63 = call i64 @FUNC(i64 %3, i64 %62)
store i1 false, i1* %storemerge6.reg2mem
store i64 %10, i64* %rcx.24.reg2mem
br label LBL_13
LBL_12:
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%64 = load i32, i32* %.pre34, align 4
%65 = zext i32 %64 to i64
%66 = call i64 @FUNC(i64 %3, i64 %65)
%67 = call i64 @FUNC(i64 %2, i64 %.in20.reload)
store i1 true, i1* %storemerge6.reg2mem
store i64 %rcx.1.reload, i64* %rcx.24.reg2mem
br label LBL_13
LBL_13:
%rcx.24.reload = load i64, i64* %rcx.24.reg2mem
%storemerge6.reload = load i1, i1* %storemerge6.reg2mem
%68 = add i64 %.in20.reload, 8
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = urem i32 %70, 2
%72 = icmp eq i32 %71, 0
br i1 %72, label LBL_15, label LBL_14
LBL_14:
%73 = call i64 @FUNC(i64 %2)
br label LBL_15
LBL_15:
br i1 %storemerge6.reload, label LBL_16, label LBL_17
LBL_16:
%74 = call i64 @FUNC(i64 %6)
%75 = icmp eq i64 %74, 0
%76 = icmp eq i1 %75, false
store i64 %74, i64* %.in.reg2mem
store i64 %54, i64* %r8.0.ph18.reg2mem
store i64 %rcx.24.reload, i64* %rcx.3.ph17.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.2.ph16.reg2mem
store i64 %74, i64* %rax.0.reg2mem
br i1 %76, label LBL_2.lr.ph, label LBL_19
LBL_17:
%77 = load i32, i32* %sv_1, align 4
%78 = urem i32 %77, 256
%79 = zext i32 %78 to i64
%80 = call i64 @FUNC(i64 %.in20.reload, i64 %79)
br label LBL_16
LBL_18:
%sv_0.2.ph16.reload = load i32, i32* %sv_0.2.ph16.reg2mem
%rcx.3.ph17.reload = load i64, i64* %rcx.3.ph17.reg2mem
%r8.0.ph18.reload = load i64, i64* %r8.0.ph18.reg2mem
%.in.reload = load i64, i64* %.in.reg2mem
store i64 %.in.reload, i64* %.in20.reg2mem
store i64 %rcx.3.ph17.reload, i64* %rcx.313.reg2mem
store i32 %sv_0.2.ph16.reload, i32* %sv_0.212.reg2mem
br label LBL_2
LBL_19:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %rcx.0.reload, { 1, 0 }
uselistorder i32* %.pre34, { 2, 0, 1, 3, 5, 4 }
uselistorder i32 %sv_0.212.reload, { 2, 1, 0, 3 }
uselistorder i64 %.in20.reload, { 6, 7, 4, 5, 3, 2, 1, 0 }
uselistorder i64 %7, { 1, 0, 2 }
uselistorder i64 %6, { 1, 3, 2, 0 }
uselistorder i32* %sv_1, { 1, 2, 0 }
uselistorder i64 %2, { 3, 4, 2, 6, 5, 1, 0, 7 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.in20.reg2mem, { 2, 1, 0 }
uselistorder i64* %rcx.313.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.212.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2, 4 }
uselistorder i64 (i64)* @__kfree_skb, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @SOCK_DEBUG, { 1, 0 }
uselistorder i64 (i64, i64)* @before, { 1, 0 }
uselistorder i64 (i64, i64)* @after, { 1, 0 }
uselistorder i1 false, { 2, 0, 4, 3, 1, 5, 6 }
uselistorder i64 (i64)* @skb_peek, { 1, 2, 0 }
uselistorder label LBL_2.lr.ph, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | dccp_error_11179 | dccp_error | define i64 @FUNC(i32* %arg1, i32* %arg2, i32* %arg3, i64 %arg4, i64* %arg5, i64 %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.reg2mem12 = alloca i64
%.reg2mem = alloca i8*
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i32* %arg3 to i64
%sv_1 = alloca i8*, align 8
%4 = trunc i64 %arg4 to i32
%sext11 = mul i64 %arg6, 72057594037927936
%5 = ashr exact i64 %sext11, 56
%6 = bitcast i8** %sv_1 to i64*
%7 = call i64 @FUNC(i64 %3, i32 %4, i64 3, i64* nonnull %6)
%8 = inttoptr i64 %7 to i8*
store i8* %8, i8** %sv_1, align 8
%9 = icmp eq i64 %7, 0
%10 = icmp eq i1 %9, false
store i64 ptrtoint ([26 x i8]* @gv_0 to i64), i64* %.reg2mem12
br i1 %10, label LBL_1, label LBL_10
LBL_1:
%11 = load i8, i8* %8, align 1
%12 = icmp eq i8 %11, 0
store i64 ptrtoint ([40 x i8]* @gv_1 to i64), i64* %.reg2mem12
br i1 %12, label LBL_10, label LBL_2
LBL_2:
%13 = trunc i64 %2 to i32
%14 = sub i32 %13, %4
%15 = zext i8 %11 to i32
%16 = mul i32 %15, 4
%17 = icmp ult i32 %14, %16
%18 = icmp eq i1 %17, false
store i64 ptrtoint ([40 x i8]* @gv_1 to i64), i64* %.reg2mem12
br i1 %18, label LBL_3, label LBL_10
LBL_3:
%19 = add i64 %7, 1
%20 = inttoptr i64 %19 to i8*
%21 = load i8, i8* %20, align 1
%22 = icmp eq i8 %21, 0
store i32 %14, i32* %sv_0.0.reg2mem
br i1 %22, label LBL_5, label LBL_4
LBL_4:
%23 = zext i8 %21 to i32
%24 = mul i32 %23, 4
%25 = add nsw i32 %24, -4
%26 = icmp ugt i32 %25, %14
store i32 %25, i32* %sv_0.0.reg2mem
store i64 ptrtoint ([35 x i8]* @gv_2 to i64), i64* %.reg2mem12
br i1 %26, label LBL_10, label LBL_5
LBL_5:
%27 = trunc i64 %1 to i32
%28 = icmp eq i32 %27, 0
store i8* %8, i8** %.reg2mem
br i1 %28, label LBL_9, label LBL_6
LBL_6:
%29 = trunc i64 %arg7 to i32
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
store i8* %8, i8** %.reg2mem
br i1 %31, label LBL_9, label LBL_7
LBL_7:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%32 = urem i64 %5, 256
%33 = call i64 @FUNC(i64 %3, i32 %29, i32 %4, i32 %sv_0.0.reload, i64 33, i64 %32)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
store i64 ptrtoint ([26 x i8]* @gv_3 to i64), i64* %.reg2mem12
br i1 %35, label LBL_7.LBL_9_crit_edge, label LBL_10
LBL_8:
%.pre = load i8*, i8** %sv_1, align 8
store i8* %.pre, i8** %.reg2mem
br label LBL_9
LBL_9:
%.reload = load i8*, i8** %.reg2mem
%36 = ptrtoint i8* %.reload to i64
%37 = add i64 %36, 2
%38 = inttoptr i64 %37 to i8*
%39 = load i8, i8* %38, align 1
%40 = icmp eq i8 %39, -1
%41 = icmp eq i1 %40, false
store i64 ptrtoint ([34 x i8]* @gv_4 to i64), i64* %.reg2mem12
store i64 1, i64* %storemerge.reg2mem
br i1 %41, label LBL_12, label LBL_10
LBL_10:
%42 = ptrtoint i32* %arg1 to i64
%43 = call i64 @FUNC(i64 %42, i64 33)
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %45, label LBL_12, label LBL_11
LBL_11:
%.reload13 = load i64, i64* %.reg2mem12
%46 = trunc i64 %5 to i8
%47 = call i64 @FUNC(i64 %42, i8 %46, i64 0, i64 %3, i64 0, i64 0, i64 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_5, i64 0, i64 0), i64 %.reload13)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_12
LBL_12:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %14, { 1, 0, 2 }
uselistorder i8* %8, { 1, 0, 2, 3 }
uselistorder i64 %5, { 1, 0 }
uselistorder i32 %4, { 0, 2, 1 }
uselistorder i8** %.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %.reg2mem12, { 0, 1, 2, 3, 5, 4, 6 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i64 ptrtoint ([40 x i8]* @gv_1 to i64), { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder label LBL_12, { 1, 0, 2 }
uselistorder label LBL_10, { 0, 1, 2, 4, 3, 5 }
} | 1 |
BinRealVul | generateScaffold_3631 | generateScaffold | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = trunc i64 %arg1 to i32
%1 = icmp eq i32 %0, 0
%2 = icmp slt i32 %0, 0
%3 = icmp eq i1 %2, false
%4 = icmp eq i1 %1, false
%5 = icmp eq i1 %3, %4
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC()
store i64 %6, i64* %rax.0.reg2mem
br label LBL_10
LBL_2:
%7 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0), i64 0)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0))
store i64 %11, i64* %rax.0.reg2mem
br label LBL_10
LBL_4:
%12 = load i64, i64* @gv_2, align 8
%13 = call i64 @FUNC(i64 0)
%14 = inttoptr i64 %12 to i64*
store i64 %13, i64* %14, align 8
%15 = load i64, i64* @gv_2, align 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = call i64 @FUNC(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @gv_3, i64 0, i64 0))
store i64 %22, i64* %rax.0.reg2mem
br label LBL_10
LBL_6:
%23 = load i64, i64* @gv_2, align 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %25)
%27 = call i64 @FUNC(i64 %26, i64 4202695, i64* nonnull %sv_0)
%28 = load i64, i64* %sv_0, align 8
%29 = icmp eq i64 %28, 0
%30 = load i64, i64* @gv_2, align 8
br i1 %29, label LBL_8, label LBL_7
LBL_7:
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = call i64 @FUNC(i64 %32, i64 %28, i64 0)
%34 = add i64 %30, 8
%35 = inttoptr i64 %34 to i64*
store i64 %33, i64* %35, align 8
br label LBL_9
LBL_8:
%36 = add i64 %30, 8
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = icmp eq i64 %38, 0
%storemerge.in.in = select i1 %39, i64 %30, i64 %36
%storemerge.in = inttoptr i64 %storemerge.in.in to i64*
%storemerge = load i64, i64* %storemerge.in, align 8
store i64 %storemerge, i64* %37, align 8
br label LBL_9
LBL_9:
%40 = and i64 %arg1, 4294967295
%41 = call i64 @FUNC(i64 %40, i64 %arg2)
%42 = call i64 @FUNC(i64 %40, i64 %arg2)
%43 = call i64 @FUNC(i64 %40, i64 %arg2)
%44 = call i64 @FUNC(i64 %40, i64 %arg2)
%45 = call i64 @FUNC(i64 %40, i64 %arg2)
%46 = call i64 @FUNC(i64 0, i64 0)
store i64 %46, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %40, { 1, 0, 2, 3, 4 }
uselistorder i64 %30, { 2, 3, 1, 0 }
uselistorder i32 %0, { 1, 0 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64)* @sclone, { 1, 0 }
uselistorder i64 (i8*)* @fail, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 0 }
uselistorder i32 1, { 11, 6, 5, 4, 3, 2, 1, 0, 9, 7, 8, 10 }
uselistorder i64 %arg2, { 1, 0, 4, 3, 2 }
} | 0 |
BinRealVul | r_sys_mkdirp_10974 | r_sys_mkdirp | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.in.reg2mem = alloca i8*
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg1 to i64
%6 = trunc i64 %3 to i8
%7 = icmp eq i8 %6, 47
%8 = zext i1 %7 to i64
%spec.select = add i64 %8, %5
%9 = inttoptr i64 %spec.select to i8*
%10 = call i8* @strstr(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0))
%11 = icmp eq i8* %10, null
%12 = ptrtoint i8* %10 to i64
%13 = add i64 %12, 2
%.pre = inttoptr i64 %13 to i8*
%.pre-phi = select i1 %11, i8* %9, i8* %.pre
%14 = call i8* @strchr(i8* %.pre-phi, i32 47)
%15 = icmp eq i8* %14, null
%16 = icmp eq i1 %15, false
store i8* %14, i8** %.in.reg2mem
store i64 1, i64* %storemerge.reg2mem
br i1 %16, label LBL_1, label LBL_5
LBL_1:
%.in.reload = load i8*, i8** %.in.reg2mem
store i8 0, i8* %.in.reload, align 1
%17 = call i64 @FUNC(i64 %5)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_4, label LBL_2
LBL_2:
%21 = call i64 @FUNC()
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_4, label LBL_3
LBL_3:
%24 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0), i64 %5, i64 %5, i64 %4, i64 %2, i64 %1)
store i8 47, i8* %.in.reload, align 1
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%25 = ptrtoint i8* %.in.reload to i64
store i8 47, i8* %.in.reload, align 1
%26 = add i64 %25, 1
%27 = inttoptr i64 %26 to i8*
%28 = call i8* @strchr(i8* %27, i32 47)
%29 = icmp eq i8* %28, null
%30 = icmp eq i1 %29, false
store i8* %28, i8** %.in.reg2mem
store i64 1, i64* %storemerge.reg2mem
br i1 %30, label LBL_1, label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i8* %.in.reload, { 1, 0, 3, 2 }
uselistorder i8* %10, { 1, 0 }
uselistorder i64 %5, { 2, 1, 3, 0 }
uselistorder i8** %.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i8* (i8*, i32)* @strchr, { 1, 0 }
uselistorder i32 47, { 1, 0 }
uselistorder i8* null, { 1, 0, 2 }
uselistorder label LBL_5, { 0, 2, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | set_registers_12701 | set_registers | define i64 @FUNC(i64* %arg1, i16 %arg2, i16 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%.pre-phi.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = and i64 %1, 4294967295
%3 = zext i16 %arg2 to i64
%4 = call i64 @FUNC(i64 %0, i64 %2, i64 0, i64 0, i64 0, i64 %3, i64 %arg4)
%5 = trunc i64 %4 to i32
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_0.LBL_3_crit_edge, label LBL_2
LBL_1:
%.pre = and i64 %4, 4294967295
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_3
LBL_2:
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = and i64 %4, 4294967295
%sext = mul i64 %4, 4294967296
%12 = ashr exact i64 %sext, 32
%13 = call i64 @FUNC(i64 %0, i64 0, i64 %10, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0), i64 %11, i64 %12)
store i64 %11, i64* %.pre-phi.reg2mem
br label LBL_3
LBL_3:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
ret i64 %.pre-phi.reload
uselistorder i64 %4, { 0, 2, 1, 3 }
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | rgb2rgb_init_c_16011 | rgb2rgb_init_c | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
store i64 4198662, i64* @gv_0, align 8
store i64 4198669, i64* @gv_1, align 8
store i64 4198676, i64* @gv_2, align 8
store i64 4198683, i64* @gv_3, align 8
store i64 4198690, i64* @gv_4, align 8
store i64 4198697, i64* @gv_5, align 8
store i64 4198704, i64* @gv_6, align 8
store i64 4198711, i64* @gv_7, align 8
store i64 4198718, i64* @gv_8, align 8
store i64 4198725, i64* @gv_9, align 8
store i64 4198732, i64* @gv_10, align 8
store i64 4198739, i64* @gv_11, align 8
store i64 4198746, i64* @gv_12, align 8
store i64 4198753, i64* @gv_13, align 8
store i64 4198760, i64* @gv_14, align 8
store i64 4198767, i64* @gv_15, align 8
store i64 4198774, i64* @gv_16, align 8
store i64 4198781, i64* @gv_17, align 8
store i64 4198788, i64* @gv_18, align 8
store i64 4198795, i64* @gv_19, align 8
store i64 4198802, i64* @gv_20, align 8
store i64 4198809, i64* @gv_21, align 8
store i64 4198816, i64* @gv_22, align 8
store i64 4198823, i64* @gv_23, align 8
store i64 4198830, i64* @gv_24, align 8
store i64 4198837, i64* @gv_25, align 8
store i64 4198844, i64* @gv_26, align 8
store i64 4198851, i64* @gv_27, align 8
store i64 4198858, i64* @gv_28, align 8
store i64 4198865, i64* @gv_29, align 8
store i64 4198872, i64* @gv_30, align 8
store i64 4198879, i64* @gv_31, align 8
ret i64 %1
} | 1 |
BinRealVul | asf_read_metadata_obj_17233 | asf_read_metadata_obj | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge67.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8*, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %3)
%6 = urem i64 %5, 65536
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_11, label LBL_1
LBL_1:
%8 = bitcast i8** %sv_0 to i64*
store i32 0, i32* %storemerge67.reg2mem
br label LBL_2
LBL_2:
store i8* null, i8** %sv_0, align 8
%9 = call i64 @FUNC(i64 %3, i64 2)
%10 = call i64 @FUNC(i64 %3)
%11 = call i64 @FUNC(i64 %3)
%12 = trunc i64 %11 to i16
%13 = icmp eq i16 %12, 0
br i1 %13, label LBL_11, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %3)
%15 = call i64 @FUNC(i64 %3)
%16 = urem i64 %11, 65536
%17 = call i64 @FUNC(i64 %16)
%sext5 = mul i64 %17, 4294967296
%18 = ashr exact i64 %sext5, 32
%19 = inttoptr i64 %18 to i8*
store i8* %19, i8** %sv_0, align 8
%20 = icmp eq i64 %sext5, 0
%21 = icmp eq i1 %20, false
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %21, label LBL_4, label LBL_12
LBL_4:
%storemerge67.reload = load i32, i32* %storemerge67.reg2mem
%22 = trunc i64 %10 to i32
%sext = mul i32 %22, 65536
%23 = ashr exact i32 %sext, 16
%24 = mul i16 %12, 2
%25 = or i16 %24, 1
%26 = call i64 @FUNC(i64 %3, i16 %12, i64 %18, i16 %25)
%27 = load i8*, i8** %sv_0, align 8
%28 = call i32 @strcmp(i8* %27, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0))
%29 = icmp eq i32 %28, 0
br i1 %29, label LBL_6, label LBL_5
LBL_5:
%30 = load i8*, i8** %sv_0, align 8
%31 = call i32 @strcmp(i8* %30, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0))
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_7, label LBL_6
LBL_6:
%34 = load i8*, i8** %sv_0, align 8
%35 = ptrtoint i8* %34 to i64
%36 = urem i32 %23, 65536
%37 = zext i32 %36 to i64
%38 = call i64 @FUNC(i64 %0, i64 %37, i64 %35)
br label LBL_10
LBL_7:
%39 = trunc i32 %23 to i16
%40 = icmp ult i16 %39, 16
br i1 %40, label LBL_8, label LBL_9
LBL_8:
%41 = urem i64 %14, 65536
%42 = trunc i64 %15 to i16
%43 = mul i64 %10, 8
%44 = and i64 %43, 524280
%45 = add i64 %44, %0
%46 = load i8*, i8** %sv_0, align 8
%47 = ptrtoint i8* %46 to i64
%48 = call i64 @FUNC(i64 %0, i64 %47, i16 %12, i16 %42, i64 %41, i64 %45)
%49 = trunc i64 %48 to i32
%50 = icmp slt i32 %49, 0
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_10, label LBL_11
LBL_9:
%52 = call i64 @FUNC(i64* nonnull %8)
br label LBL_10
LBL_10:
%53 = add i32 %storemerge67.reload, 1
%54 = sext i32 %53 to i64
%55 = icmp sgt i64 %6, %54
store i32 %53, i32* %storemerge67.reg2mem
br i1 %55, label LBL_2, label LBL_11
LBL_11:
%56 = add i64 %0, 128
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = call i64 @FUNC(i64 %3, i64 %58, i64 %4)
store i64 0, i64* %storemerge.reg2mem
br label LBL_12
LBL_12:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %23, { 1, 0 }
uselistorder i64 %sext5, { 1, 0 }
uselistorder i16 %12, { 1, 2, 0, 3 }
uselistorder i64 %3, { 3, 0, 2, 1, 4, 6, 5, 7, 8 }
uselistorder i8** %sv_0, { 5, 4, 3, 2, 1, 0, 6 }
uselistorder i64 %0, { 3, 1, 0, 2, 4 }
uselistorder i32* %storemerge67.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 65536, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder i64 65536, { 1, 0, 2 }
uselistorder i64 (i64)* @avio_rl16, { 3, 2, 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 1, 0, 2, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | fill_queue_9382 | fill_queue | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%2 = call i64 @FUNC(i64 %1, i64 4096, i64 0)
%3 = icmp eq i64 %2, 0
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %3, label LBL_5, label LBL_2
LBL_2:
%4 = call i64 @FUNC(i64 %0)
%5 = call i64 @FUNC(i64 %1, i64 %2)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %0)
%10 = call i64 @FUNC(i64 %2, i64 1)
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_5
LBL_4:
%11 = add i32 %sv_0.0.reload, 1
%12 = call i64 @FUNC(i64 %0)
%13 = icmp eq i32 %6, 0
%14 = icmp eq i1 %13, false
store i32 %11, i32* %sv_0.0.reg2mem
store i32 %11, i32* %sv_0.1.reg2mem
br i1 %14, label LBL_1, label LBL_5
LBL_5:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%15 = zext i32 %sv_0.1.reload to i64
ret i64 %15
uselistorder i32 %sv_0.0.reload, { 2, 1, 0 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 1, 3, 2 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64)* @spin_unlock_irq, { 1, 0 }
uselistorder i32 0, { 1, 2, 0, 3 }
uselistorder label LBL_5, { 1, 2, 0 }
} | 0 |
BinRealVul | update_stats_wait_end_8507 | update_stats_wait_end | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = sub i64 %4, %7
%9 = call i64 @FUNC(i64 %0, i64 %8)
%10 = call i64 @FUNC(i64 %8, i64 %9)
%11 = add i64 %0, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %13, 1
%15 = call i64 @FUNC(i64 %13, i64 %14)
%16 = add i64 %0, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %1)
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = add i64 %21, %18
%23 = load i64, i64* %6, align 8
%24 = sub i64 %22, %23
%25 = load i64, i64* %17, align 8
%26 = call i64 @FUNC(i64 %25, i64 %24)
%27 = load i64, i64* %6, align 8
%28 = call i64 @FUNC(i64 %27, i64 0)
ret i64 %28
uselistorder i64 %0, { 1, 0, 3, 2 }
uselistorder i64 (i64, i64)* @schedstat_set, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @rq_of, { 1, 0 }
} | 0 |
BinRealVul | __nfs4_file_get_access_17900 | __nfs4_file_get_access | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = urem i64 %arg2, 2
%1 = icmp eq i64 %0, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = ptrtoint i32* %arg1 to i64
%3 = add i64 %2, 4
%4 = call i64 @FUNC(i64 %3)
br label LBL_2
LBL_2:
%5 = and i64 %arg2, 2
%6 = icmp eq i64 %5, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = ptrtoint i32* %arg1 to i64
%8 = call i64 @FUNC(i64 %7)
store i64 %8, 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 (i64)* @atomic_inc, { 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i32* %arg1, { 1, 0 }
} | 1 |
BinRealVul | remove_short_17173 | remove_short | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge39.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = urem i64 %2, 2
%5 = icmp eq i64 %4, 0
%.pre = add i64 %2, 16
%.pre14 = inttoptr i64 %.pre to i32*
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = load i32, i32* %.pre14, align 4
%7 = zext i32 %6 to i64
%8 = and i64 %3, 4294967295
%9 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %8, i64 %7, i64 %1)
br label LBL_2
LBL_2:
%10 = load i32, i32* %.pre14, align 4
%11 = icmp eq i32 %10, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %11, label LBL_9, label LBL_3
LBL_3:
%12 = add i64 %2, 8
%13 = inttoptr i64 %12 to i64*
%14 = trunc i64 %3 to i32
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge39.reg2mem
br label LBL_4
LBL_4:
%storemerge39.reload = load i32, i32* %storemerge39.reg2mem
%.reload = load i64, i64* %.reg2mem
%15 = load i64, i64* %13, align 8
%16 = mul i64 %.reload, 8
%17 = add i64 %15, %16
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = inttoptr i64 %19 to i32*
br i1 %5, label LBL_6, label LBL_5
LBL_5:
%21 = load i32, i32* %20, align 4
%22 = zext i32 %21 to i64
%23 = zext i32 %storemerge39.reload to i64
%24 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_1, i64 0, i64 0), i64 %23, i64 %22, i64 %19)
br label LBL_6
LBL_6:
%25 = load i32, i32* %20, align 4
%26 = icmp eq i32 %25, %14
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_8, label LBL_7
LBL_7:
%28 = load i64, i64* %13, align 8
%29 = add i64 %28, %16
%30 = inttoptr i64 %29 to i64*
store i64 0, i64* %30, align 8
%31 = load i32, i32* %.pre14, align 4
%32 = xor i32 %storemerge39.reload, 536870911
%33 = add i32 %31, %32
%34 = mul i32 %33, 8
%35 = load i64, i64* %13, align 8
%36 = add i64 %35, %16
%37 = add i64 %36, 8
%38 = inttoptr i64 %36 to i64*
%39 = inttoptr i64 %37 to i64*
%40 = call i64* @memmove(i64* %38, i64* %39, i32 %34)
%41 = load i32, i32* %.pre14, align 4
%42 = add i32 %41, -1
store i32 %42, i32* %.pre14, align 4
store i64 %19, i64* %storemerge.reg2mem
br label LBL_9
LBL_8:
%43 = add i32 %storemerge39.reload, 1
%44 = load i32, i32* %.pre14, align 4
%45 = zext i32 %44 to i64
%46 = sext i32 %43 to i64
%47 = icmp slt i64 %46, %45
store i64 %46, i64* %.reg2mem
store i32 %43, i32* %storemerge39.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %47, label LBL_4, label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %16, { 2, 1, 0 }
uselistorder i32 %storemerge39.reload, { 1, 2, 0 }
uselistorder i64* %13, { 1, 0, 2 }
uselistorder i32* %.pre14, { 4, 1, 0, 2, 3, 5 }
uselistorder i1 %5, { 1, 0 }
uselistorder i64 %2, { 2, 4, 3, 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge39.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 }
uselistorder i64 8, { 1, 0, 2 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder label LBL_9, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | cgroup_enable_threaded_18367 | cgroup_enable_threaded | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64* nonnull @gv_0)
%5 = call i64 @FUNC(i64 %0)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_7
LBL_1:
%8 = call i64 @FUNC(i64 %3)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
store i64 4294967201, i64* %rax.0.reg2mem
br i1 %10, label LBL_7, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %3)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i64 4294967201, i64* %rax.0.reg2mem
br i1 %14, label LBL_3, label LBL_7
LBL_3:
%15 = call i64 @FUNC(i64 %0)
store i64 %3, i64* %arg1, align 8
%16 = call i64 @FUNC(i64 %0)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = add i64 %1, 8
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = add i32 %22, 1
store i32 %23, i32* %21, align 4
br label LBL_6
LBL_5:
store i64 %0, i64* %arg1, align 8
br label LBL_6
LBL_6:
%24 = and i64 %16, 4294967295
%25 = call i64 @FUNC(i64 %0, i64 %24)
store i64 %24, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3 }
uselistorder i64 4294967201, { 1, 0 }
uselistorder label LBL_7, { 3, 1, 0, 2 }
} | 1 |
BinRealVul | m68060_cpu_initfn_13930 | m68060_cpu_initfn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 1)
%2 = call i64 @FUNC(i64 %0, i64 2)
%3 = call i64 @FUNC(i64 %0, i64 3)
%4 = call i64 @FUNC(i64 %0, i64 4)
%5 = call i64 @FUNC(i64 %0, i64 5)
%6 = call i64 @FUNC(i64 %0, i64 6)
%7 = call i64 @FUNC(i64 %0, i64 7)
%8 = call i64 @FUNC(i64 %0, i64 8)
%9 = call i64 @FUNC(i64 %0, i64 9)
%10 = call i64 @FUNC(i64 %0, i64 10)
%11 = call i64 @FUNC(i64 %0, i64 11)
%12 = call i64 @FUNC(i64 %0, i64 12)
%13 = call i64 @FUNC(i64 %0, i64 13)
ret i64 %13
uselistorder i64 %0, { 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @m68k_set_feature, { 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | nfc_dep_link_down_12008 | nfc_dep_link_down | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64*
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i64 %1)
%3 = call i64 @FUNC(i64 %0)
%4 = call i64 @FUNC(i64 %0)
%5 = trunc i64 %4 to i8
%6 = icmp eq i8 %5, 1
store i64* inttoptr (i32 2 to i64*), i64** %sv_0.0.reg2mem
br i1 %6, label LBL_1, label LBL_4
LBL_1:
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = icmp eq i8 %9, 1
store i64* inttoptr (i32 3 to i64*), i64** %sv_0.0.reg2mem
br i1 %10, label LBL_2, label LBL_4
LBL_2:
%11 = trunc i64 %0 to i32
%12 = and i64 %0, 4294967295
%13 = inttoptr i64 %12 to i64*
%14 = icmp eq i32 %11, 0
%15 = icmp eq i1 %14, false
store i64* %13, i64** %sv_0.0.reg2mem
br i1 %15, label LBL_4, label LBL_3
LBL_3:
store i8 0, i8* %8, align 1
%16 = add i64 %0, 16
%17 = inttoptr i64 %16 to i64*
store i64 0, i64* %17, align 8
%18 = add i64 %0, 24
%19 = inttoptr i64 %18 to i32*
store i32 0, i32* %19, align 4
%20 = call i64 @FUNC(i64 %0)
%21 = call i64 @FUNC(i64 %0)
store i64* %13, i64** %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64*, i64** %sv_0.0.reg2mem
%22 = call i64 @FUNC(i64 %0)
%23 = ptrtoint i64* %sv_0.0.reload to i64
%24 = and i64 %23, 4294967295
ret i64 %24
uselistorder i64 %0, { 4, 1, 0, 2, 3, 6, 7, 5, 9, 8, 10 }
uselistorder i64** %sv_0.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder label LBL_4, { 3, 2, 0, 1 }
} | 1 |
BinRealVul | vrend_sampler_view_reference_7927 | vrend_sampler_view_reference | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 %arg2)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0)
br label LBL_2
LBL_2:
store i64 %arg2, i64* %arg1, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2 }
} | 0 |
BinRealVul | dvdsub_parse_4746 | dvdsub_parse | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64* %arg4, i64* %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.pre-phi3.reg2mem = alloca i64*
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%rdi = alloca i64, align 8
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg6, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = trunc i64 %2 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_0.LBL_6_crit_edge, label LBL_2
LBL_1:
%.pre = add i64 %3, 8
%.pre2 = inttoptr i64 %.pre to i64*
%.pr = load i64, i64* %.pre2, align 8
store i64 %.pr, i64* %.reg2mem
store i64* %.pre2, i64** %.pre-phi3.reg2mem
br label LBL_6
LBL_2:
%8 = trunc i64 %4 to i32
%9 = icmp sgt i32 %8, 1
br i1 %9, label LBL_3, label LBL_12
LBL_3:
%10 = ptrtoint i64* %arg5 to i64
%11 = trunc i64 %1 to i32
%12 = mul i32 %11, 256
%13 = and i32 %12, 65280
%14 = add i64 %10, 1
%15 = inttoptr i64 %14 to i8*
%16 = load i8, i8* %15, align 1
%17 = zext i8 %16 to i32
%18 = or i32 %13, %17
%19 = add i64 %3, 4
%20 = inttoptr i64 %19 to i32*
store i32 %18, i32* %20, align 4
%21 = icmp eq i32 %18, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_5, label LBL_4
LBL_4:
%23 = add i64 %10, 2
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = zext i8 %25 to i32
%27 = mul i32 %26, 16777216
%28 = add i64 %10, 3
%29 = inttoptr i64 %28 to i8*
%30 = load i8, i8* %29, align 1
%31 = zext i8 %30 to i32
%32 = mul i32 %31, 65536
%33 = or i32 %32, %27
%34 = add i64 %10, 4
%35 = inttoptr i64 %34 to i8*
%36 = load i8, i8* %35, align 1
%37 = zext i8 %36 to i32
%38 = mul i32 %37, 256
%39 = or i32 %33, %38
%40 = add i64 %10, 5
%41 = inttoptr i64 %40 to i8*
%42 = load i8, i8* %41, align 1
%43 = zext i8 %42 to i32
%44 = or i32 %39, %43
store i32 %44, i32* %20, align 4
br label LBL_5
LBL_5:
%45 = add i64 %3, 8
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = inttoptr i64 %47 to i64*
call void @free(i64* %48)
store i64 0, i64* %46, align 8
%49 = load i32, i32* %20, align 4
%50 = call i64* @malloc(i32 %49)
%51 = ptrtoint i64* %50 to i64
store i64 %51, i64* %46, align 8
store i64 %51, i64* %.reg2mem
store i64* %46, i64** %.pre-phi3.reg2mem
br label LBL_6
LBL_6:
%.reload = load i64, i64* %.reg2mem
%52 = icmp eq i64 %.reload, 0
br i1 %52, label LBL_11, label LBL_7
LBL_7:
%53 = bitcast i64* %rdi to i32*
%54 = load i32, i32* %53, align 8
%55 = trunc i64 %4 to i32
%56 = add i32 %54, %55
%57 = add i64 %3, 4
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = icmp ugt i32 %56, %59
br i1 %60, label LBL_10, label LBL_8
LBL_8:
%61 = sext i32 %54 to i64
%62 = add i64 %.reload, %61
%63 = inttoptr i64 %62 to i64*
%64 = call i64* @memcpy(i64* %63, i64* %arg5, i32 %55)
%65 = bitcast i64* %arg1 to i32*
store i32 %56, i32* %65, align 4
%66 = load i32, i32* %58, align 4
%67 = icmp ult i32 %54, %66
br i1 %67, label LBL_11, label LBL_9
LBL_9:
%.pre-phi3.reload = load i64*, i64** %.pre-phi3.reg2mem
%68 = load i64, i64* %.pre-phi3.reload, align 8
store i64 %68, i64* %arg3, align 8
%69 = load i32, i32* %58, align 4
%70 = bitcast i64* %arg4 to i32*
store i32 %69, i32* %70, align 4
store i32 0, i32* %65, align 4
br label LBL_12
LBL_10:
%71 = bitcast i64* %arg1 to i32*
store i32 0, i32* %71, align 4
br label LBL_11
LBL_11:
store i64 0, i64* %arg3, align 8
%72 = bitcast i64* %arg4 to i32*
store i32 0, i32* %72, align 4
br label LBL_12
LBL_12:
%rax.0 = and i64 %4, 4294967295
ret i64 %rax.0
uselistorder i32 %55, { 1, 0 }
uselistorder i32 %54, { 1, 2, 0 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i64 %10, { 3, 2, 1, 0, 4 }
uselistorder i64 %4, { 0, 2, 1 }
uselistorder i64 %3, { 2, 1, 3, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder label LBL_12, { 1, 2, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | sync_filesystems_4451 | sync_filesystems | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge3.reg2mem = alloca i64
%storemerge25.reg2mem = alloca i64
%0 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4
%1 = add i32 %0, 1
store i32 %1, i32* @gv_0, align 4
store i32 ptrtoint (i32* @gv_1 to i32), i32* @gv_2, align 4
store i64 ptrtoint (i64* @gv_3 to i64), i64* %storemerge25.reg2mem
br label LBL_1
LBL_1:
%storemerge25.reload = load i64, i64* %storemerge25.reg2mem
%2 = inttoptr i64 %storemerge25.reload to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_4, label LBL_2
LBL_2:
%7 = add i64 %storemerge25.reload, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = urem i32 %9, 2
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = add i64 %storemerge25.reload, 12
%14 = inttoptr i64 %13 to i32*
store i32 1, i32* %14, align 4
br label LBL_4
LBL_4:
%15 = add i64 %storemerge25.reload, 48
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
store i64 %17, i64* %storemerge25.reg2mem
store i64 ptrtoint (i64* @gv_3 to i64), i64* %storemerge3.reg2mem
br i1 %19, label LBL_1, label LBL_5
LBL_5:
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%20 = add i64 %storemerge3.reload, 12
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_8, label LBL_6
LBL_6:
store i32 0, i32* %21, align 4
%24 = add i64 %storemerge3.reload, 8
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = urem i32 %26, 2
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_8, label LBL_7
LBL_7:
%30 = add i64 %storemerge3.reload, 16
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = add i32 %32, 1
store i32 %33, i32* %31, align 4
store i32 ptrtoint (i32* @gv_1 to i32), i32* @gv_2, align 4
br label LBL_8
LBL_8:
%34 = add i64 %storemerge3.reload, 48
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = icmp eq i64 %36, 0
%38 = icmp eq i1 %37, false
store i64 %36, i64* %storemerge3.reg2mem
br i1 %38, label LBL_5, label LBL_9
LBL_9:
%39 = load i32, i32* @gv_2, align 4
%40 = add i32 %39, -1
store i32 %40, i32* @gv_2, align 4
%41 = load i32, i32* @gv_0, align 4
%42 = add i32 %41, -1
%43 = zext i32 %42 to i64
store i32 %42, i32* @gv_0, align 4
ret i64 %43
uselistorder i64 %storemerge3.reload, { 3, 1, 0, 2 }
uselistorder i64* %storemerge25.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge3.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0, 3, 2 }
uselistorder i32* @gv_2, { 3, 2, 1, 0 }
uselistorder i32 0, { 3, 4, 5, 6, 0, 1, 2 }
uselistorder i32* @gv_0, { 2, 1, 0 }
uselistorder i32 1, { 2, 3, 4, 1, 0 }
uselistorder label LBL_8, { 2, 0, 1 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 2, 0, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | fetch_uidl_13774 | fetch_uidl | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%.pre-phi20.reg2mem = alloca i32
%.lcssa.reg2mem = alloca i64
%storemerge.lcssa.reg2mem = alloca i32
%storemerge7.reg2mem = alloca i32
%.reg2mem24 = alloca i64
%.lcssa6.reg2mem = alloca i8*
%.reg2mem = alloca i8*
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_0 = alloca i8*, align 8
%3 = ptrtoint i32* %arg2 to i64
%4 = add i64 %3, 16
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
store i8* null, i8** %sv_0, align 8
%7 = call i32* @__errno_location()
store i32 0, i32* %7, align 4
%8 = bitcast i64* %arg1 to i8*
%9 = call i32 @strtol(i8* %8, i8** nonnull %sv_0, i32 10)
%10 = call i32* @__errno_location()
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %12, label LBL_1, label LBL_15
LBL_1:
%13 = load i8*, i8** %sv_0, align 8
%14 = load i8, i8* %13, align 1
%15 = icmp eq i8 %14, 32
store i8* %13, i8** %.reg2mem
store i8* %13, i8** %.lcssa6.reg2mem
br i1 %15, label LBL_2, label LBL_3
LBL_2:
%.reload = load i8*, i8** %.reg2mem
%16 = ptrtoint i8* %.reload to i64
%17 = add i64 %16, 1
%18 = inttoptr i64 %17 to i8*
store i8* %18, i8** %sv_0, align 8
%19 = load i8, i8* %18, align 1
%20 = icmp eq i8 %19, 32
store i8* %18, i8** %.reg2mem
store i8* %18, i8** %.lcssa6.reg2mem
br i1 %20, label LBL_2, label LBL_3
LBL_3:
%21 = trunc i64 %1 to i8
%.lcssa6.reload = load i8*, i8** %.lcssa6.reg2mem
%22 = call i32 @strlen(i8* %.lcssa6.reload)
%23 = add i32 %22, 1
%24 = load i8*, i8** %sv_0, align 8
%25 = bitcast i8* %24 to i64*
%26 = call i64* @memmove(i64* %arg1, i64* %25, i32 %23)
%27 = icmp eq i8 %21, 0
%28 = icmp eq i1 %27, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %28, label LBL_4, label LBL_15
LBL_4:
%29 = ptrtoint i64* %arg1 to i64
%30 = trunc i64 %2 to i32
%31 = add i64 %3, 8
%32 = inttoptr i64 %31 to i64*
%33 = icmp eq i32 %30, 0
store i32 0, i32* %storemerge.lcssa.reg2mem
store i64 0, i64* %.lcssa.reg2mem
br i1 %33, label LBL_8, label LBL_5
LBL_5:
%34 = and i64 %2, 4294967295
store i64 0, i64* %.reg2mem24
store i32 0, i32* %storemerge7.reg2mem
br label LBL_6
LBL_6:
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%.reload25 = load i64, i64* %.reg2mem24
%35 = load i64, i64* %32, align 8
%36 = mul i64 %.reload25, 8
%37 = add i64 %35, %36
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = call i64 @FUNC(i64 %29, i64 %41)
%43 = trunc i64 %42 to i32
%44 = icmp eq i32 %43, 0
store i32 %storemerge7.reload, i32* %storemerge.lcssa.reg2mem
store i64 %.reload25, i64* %.lcssa.reg2mem
br i1 %44, label LBL_8, label LBL_7
LBL_7:
%45 = add i32 %storemerge7.reload, 1
%46 = sext i32 %45 to i64
%47 = icmp sgt i64 %34, %46
store i64 %46, i64* %.reg2mem24
store i32 %45, i32* %storemerge7.reg2mem
store i32 %45, i32* %storemerge.lcssa.reg2mem
store i64 %46, i64* %.lcssa.reg2mem
br i1 %47, label LBL_6, label LBL_8
LBL_8:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%storemerge.lcssa.reload = load i32, i32* %storemerge.lcssa.reg2mem
%48 = icmp eq i32 %storemerge.lcssa.reload, %30
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_12, label LBL_9
LBL_9:
%50 = zext i32 %9 to i64
%51 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 %50, i64 %29)
%52 = add i64 %3, 4
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = zext i32 %54 to i64
%56 = icmp slt i64 %.lcssa.reload, %55
br i1 %56, label LBL_11, label LBL_10
LBL_10:
%57 = call i64 @FUNC(i64 %3)
br label LBL_11
LBL_11:
%58 = add i32 %30, 1
store i32 %58, i32* %arg2, align 4
%59 = load i64, i64* %32, align 8
%60 = mul i64 %.lcssa.reload, 8
%61 = add i64 %59, %60
%62 = call i64 @FUNC()
%63 = inttoptr i64 %61 to i64*
store i64 %62, i64* %63, align 8
%64 = load i64, i64* %32, align 8
%65 = add i64 %64, %60
%66 = inttoptr i64 %65 to i64*
%67 = load i64, i64* %66, align 8
%68 = call i64 @FUNC(i64 %29)
%69 = inttoptr i64 %67 to i64*
store i64 %68, i64* %69, align 8
%.pre = add i32 %9, -1
store i32 %.pre, i32* %.pre-phi20.reg2mem
store i64 %60, i64* %.pre-phi.reg2mem
br label LBL_14
LBL_12:
%70 = load i64, i64* %32, align 8
%71 = mul i64 %.lcssa.reload, 8
%72 = add i64 %70, %71
%73 = inttoptr i64 %72 to i64*
%74 = load i64, i64* %73, align 8
%75 = add i64 %74, 12
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = add i32 %9, -1
%79 = icmp eq i32 %77, %78
store i32 %78, i32* %.pre-phi20.reg2mem
store i64 %71, i64* %.pre-phi.reg2mem
br i1 %79, label LBL_14, label LBL_13
LBL_13:
%80 = inttoptr i64 %6 to i32*
store i32 1, i32* %80, align 4
store i32 %78, i32* %.pre-phi20.reg2mem
store i64 %71, i64* %.pre-phi.reg2mem
br label LBL_14
LBL_14:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%.pre-phi20.reload = load i32, i32* %.pre-phi20.reg2mem
%81 = load i64, i64* %32, align 8
%82 = add i64 %81, %.pre-phi.reload
%83 = inttoptr i64 %82 to i64*
%84 = load i64, i64* %83, align 8
%85 = add i64 %84, 8
%86 = inttoptr i64 %85 to i32*
store i32 %9, i32* %86, align 4
%87 = load i64, i64* %32, align 8
%88 = add i64 %87, %.pre-phi.reload
%89 = inttoptr i64 %88 to i64*
%90 = load i64, i64* %89, align 8
%91 = add i64 %90, 12
%92 = inttoptr i64 %91 to i32*
store i32 %.pre-phi20.reload, i32* %92, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %.pre-phi.reload, { 1, 0 }
uselistorder i32 %78, { 1, 0, 2 }
uselistorder i64 %71, { 1, 0, 2 }
uselistorder i64 %60, { 0, 2, 1 }
uselistorder i64 %.lcssa.reload, { 2, 1, 0 }
uselistorder i32 %storemerge7.reload, { 1, 0 }
uselistorder i64* %32, { 1, 0, 2, 4, 3, 5 }
uselistorder i32 %9, { 2, 3, 0, 1 }
uselistorder i64 %3, { 1, 0, 2, 3 }
uselistorder i8** %sv_0, { 3, 2, 0, 4, 1 }
uselistorder i64 %2, { 1, 0 }
uselistorder i8** %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem24, { 2, 0, 1 }
uselistorder i32* %storemerge7.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %.pre-phi20.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i8 32, { 1, 0 }
uselistorder i64 4294967295, { 2, 0, 1 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i64* %arg1, { 2, 0, 1 }
uselistorder label LBL_15, { 2, 0, 1 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | parserule_5765 | parserule | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.ph7.reg2mem = alloca i8
%sv_0.0.ph5.reg2mem = alloca i8
%sv_1.0.ph4.reg2mem = alloca i8
%sv_0.0.ph.reg2mem = alloca i8
%sv_1.0.ph.reg2mem = alloca i8
%sv_2.0.ph.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %0)
store i32 0, i32* %sv_2.0.ph.reg2mem
store i8 0, i8* %sv_1.0.ph.reg2mem
store i8 0, i8* %sv_0.0.ph.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.ph.reload = load i8, i8* %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
store i8 %sv_1.0.ph.reload, i8* %sv_1.0.ph4.reg2mem
store i8 %sv_0.0.ph.reload, i8* %sv_0.0.ph5.reg2mem
br label LBL_13
LBL_2:
%4 = call i64 @FUNC(i64 %0)
%5 = call i64 @FUNC(i64 %0, i64* nonnull %sv_3)
%6 = load i64, i64* %sv_3, align 8
%7 = call i64 @FUNC(i64 %2, i64 %4, i64 %6)
%8 = load i64, i64* %sv_3, align 8
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_3, label LBL_8
LBL_3:
%11 = inttoptr i64 %4 to i8*
%12 = call i32 @strcmp(i8* %11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i32 1, i32* %sv_2.0.ph.reg2mem
store i8 %sv_1.0.ph4.reload, i8* %sv_1.0.ph.reg2mem
store i8 %sv_0.0.ph7.reload, i8* %sv_0.0.ph.reg2mem
br i1 %14, label LBL_4, label LBL_1
LBL_4:
%15 = call i32 @strcmp(i8* %11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
store i8 1, i8* %sv_1.0.ph4.reg2mem
store i8 %sv_0.0.ph7.reload, i8* %sv_0.0.ph5.reg2mem
br i1 %17, label LBL_6, label LBL_13
LBL_5:
%sv_0.0.ph5.reload = load i8, i8* %sv_0.0.ph5.reg2mem
%sv_1.0.ph4.reload = load i8, i8* %sv_1.0.ph4.reg2mem
store i8 %sv_0.0.ph5.reload, i8* %sv_0.0.ph7.reg2mem
br label LBL_16
LBL_6:
%18 = call i32 @strcmp(i8* %11, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
%spec.select = select i1 %20, i8 %sv_0.0.ph7.reload, i8 1
store i8 %spec.select, i8* %sv_0.0.ph7.reg2mem
br label LBL_16
LBL_7:
%sv_0.0.ph7.reload = load i8, i8* %sv_0.0.ph7.reg2mem
br label LBL_8
LBL_8:
%21 = call i64 @FUNC(i64 %0)
%22 = trunc i64 %21 to i8
%23 = icmp eq i8 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_2, label LBL_9
LBL_9:
%25 = icmp eq i32 %sv_2.0.ph.reload, 1
br i1 %25, label LBL_11, label LBL_10
LBL_10:
%26 = inttoptr i64 %2 to i64*
%27 = load i64, i64* %26, align 8
%28 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_3, i64 0, i64 0), i64 %27)
unreachable
LBL_11:
%29 = icmp eq i8 %sv_1.0.ph4.reload, %sv_0.0.ph7.reload
br i1 %29, label LBL_13, label LBL_12
LBL_12:
%30 = inttoptr i64 %2 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i64 @FUNC(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @gv_4, i64 0, i64 0), i64 %31)
unreachable
LBL_13:
%33 = ptrtoint i64* %arg2 to i64
%34 = call i64 @FUNC(i64 %33, i64 %2)
ret i64 %34
uselistorder i8 %sv_0.0.ph7.reload, { 1, 2, 3, 0 }
uselistorder i64 %2, { 1, 2, 0, 3 }
uselistorder i64* %sv_3, { 1, 2, 0 }
uselistorder i64 %0, { 2, 1, 0, 3, 4 }
uselistorder i32* %sv_2.0.ph.reg2mem, { 1, 0, 2 }
uselistorder i8* %sv_1.0.ph.reg2mem, { 1, 0, 2 }
uselistorder i8* %sv_0.0.ph.reg2mem, { 1, 0, 2 }
uselistorder i64 (i8*, i64)* @fatal, { 1, 0 }
uselistorder i8 1, { 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 2, 1, 0 }
uselistorder i1 false, { 4, 0, 1, 2, 3 }
uselistorder i8 0, { 3, 0, 1, 2 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder i64 (i64)* @scanname, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
} | 0 |
BinRealVul | ntlm_av_pair_next_7357 | ntlm_av_pair_next | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = icmp eq i64* %arg2, null
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_4
LBL_1:
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 %2)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_4
LBL_2:
%8 = call i64 @FUNC(i64 %3, i64 %2, i64* nonnull %sv_0)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_4
LBL_3:
%12 = load i64, i64* %sv_0, align 8
%13 = sub i64 %2, %12
store i64 %13, i64* %arg2, align 8
%14 = add i64 %12, %3
store i64 %14, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64* %arg2, { 0, 2, 1 }
uselistorder label LBL_4, { 3, 0, 1, 2 }
} | 0 |
BinRealVul | do_proc_douintvec_minmax_conv_18918 | do_proc_douintvec_minmax_conv | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %arg3 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_6, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg4 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = trunc i64 %4 to i32
%7 = icmp ne i64* %arg4, null
%8 = trunc i64 %5 to i32
%9 = icmp ugt i32 %6, %8
%or.cond = icmp eq i1 %7, %9
store i64 4294967262, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_7, label LBL_2
LBL_2:
%10 = add i64 %4, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = inttoptr i64 %12 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp ult i32 %15, %8
store i64 4294967262, i64* %rax.0.reg2mem
br i1 %16, label LBL_7, label LBL_4
LBL_4:
%17 = icmp ult i64* %arg1, inttoptr (i64 4294967296 to i64*)
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %17, label LBL_5, label LBL_7
LBL_5:
%18 = bitcast i64* %arg2 to i32*
store i32 %8, i32* %18, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%19 = and i64 %1, 4294967295
store i64 %19, i64* %arg1, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %8, { 1, 0, 2 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 4, 5, 1 }
uselistorder i64 4294967262, { 1, 0 }
uselistorder label LBL_7, { 2, 1, 3, 4, 0 }
} | 1 |
BinRealVul | dm_stat_free_4155 | dm_stat_free | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %0, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8)
%10 = add i64 %0, 40
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = add i64 %0, 24
%14 = inttoptr i64 %13 to i64*
%15 = add i64 %0, 48
%16 = inttoptr i64 %15 to i64*
store i64 0, i64* %indvars.iv.reg2mem
store i64 %12, i64* %.reg2mem
br label LBL_1
LBL_1:
%.reload = load i64, i64* %.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%17 = load i64, i64* %14, align 8
%18 = mul i64 %indvars.iv.reload, 8
%19 = add i64 %17, %18
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %23, i64 %.reload)
%25 = load i64, i64* %16, align 8
%26 = load i64, i64* %14, align 8
%27 = add i64 %26, %18
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 %29, i64 %25)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%31 = load i64, i64* %11, align 8
%exitcond = icmp eq i64 %indvars.iv.next, 4
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %31, i64* %.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%32 = add i64 %0, 32
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = call i64 @FUNC(i64 %36, i64 %31)
%38 = add i64 %0, 56
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = call i64 @FUNC(i64 %0, i64 %40)
ret i64 %41
uselistorder i64 %31, { 1, 0 }
uselistorder i64 %18, { 1, 0 }
uselistorder i64* %11, { 1, 0 }
uselistorder i64 %0, { 1, 0, 5, 2, 4, 3, 6, 7, 8 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i64)* @dm_kvfree, { 1, 0, 3, 2 }
uselistorder i64 (i64)* @kfree, { 2, 1, 0 }
} | 0 |
BinRealVul | redisProtocolToLuaType_12401 | redisProtocolToLuaType | define i64 @FUNC(i64 %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.reg2mem = alloca i32*
%1 = load i64, i64* %0
%.cast = ptrtoint i32* %arg2 to i64
%2 = trunc i64 %1 to i8
%sext = mul i64 %1, 72057594037927936
%3 = ashr exact i64 %sext, 56
%4 = icmp sgt i8 %2, 95
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = icmp slt i8 %2, 35
store i32* %arg2, i32** %.reg2mem
br i1 %5, label LBL_14, label LBL_2
LBL_2:
%6 = add nsw i64 %3, 4294967261
%7 = and i64 %6, 4294967295
store i64 %7, i64* @0, align 8
%trunc = trunc i64 %6 to i32
store i32* %arg2, i32** %.reg2mem
switch i32 %trunc, label LBL_14 [
i32 0, label LBL_12
i32 1, label LBL_5
i32 2, label LBL_9
i32 7, label LBL_8
i32 8, label LBL_6
i32 9, label LBL_13
i32 10, label LBL_7
i32 23, label LBL_4
i32 60, label LBL_11
]
LBL_3:
%8 = icmp eq i8 %2, 126
store i32* %arg2, i32** %.reg2mem
br i1 %8, label LBL_10, label LBL_14
LBL_4:
%9 = call i64 @FUNC(i64 %arg1, i64 %.cast)
%10 = inttoptr i64 %9 to i32*
store i32* %10, i32** %.reg2mem
br label LBL_14
LBL_5:
%11 = call i64 @FUNC(i64 %arg1, i64 %.cast)
%12 = inttoptr i64 %11 to i32*
store i32* %12, i32** %.reg2mem
br label LBL_14
LBL_6:
%13 = call i64 @FUNC(i64 %arg1, i64 %.cast)
%14 = inttoptr i64 %13 to i32*
store i32* %14, i32** %.reg2mem
br label LBL_14
LBL_7:
%15 = call i64 @FUNC(i64 %arg1, i64 %.cast)
%16 = inttoptr i64 %15 to i32*
store i32* %16, i32** %.reg2mem
br label LBL_14
LBL_8:
%17 = call i64 @FUNC(i64 %arg1, i64 %.cast, i64 %3)
%18 = inttoptr i64 %17 to i32*
store i32* %18, i32** %.reg2mem
br label LBL_14
LBL_9:
%19 = call i64 @FUNC(i64 %arg1, i64 %.cast, i64 %3)
%20 = inttoptr i64 %19 to i32*
store i32* %20, i32** %.reg2mem
br label LBL_14
LBL_10:
%21 = call i64 @FUNC(i64 %arg1, i64 %.cast, i64 %3)
%22 = inttoptr i64 %21 to i32*
store i32* %22, i32** %.reg2mem
br label LBL_14
LBL_11:
%23 = call i64 @FUNC(i64 %arg1, i64 %.cast)
%24 = inttoptr i64 %23 to i32*
store i32* %24, i32** %.reg2mem
br label LBL_14
LBL_12:
%25 = add i64 %.cast, 1
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = sext i8 %27 to i64
%29 = call i64 @FUNC(i64 %arg1, i64 %.cast, i64 %28)
%30 = inttoptr i64 %29 to i32*
store i32* %30, i32** %.reg2mem
br label LBL_14
LBL_13:
%31 = call i64 @FUNC(i64 %arg1, i64 %.cast)
%32 = inttoptr i64 %31 to i32*
store i32* %32, i32** %.reg2mem
br label LBL_14
LBL_14:
%.reload = load i32*, i32** %.reg2mem
%33 = ptrtoint i32* %.reload to i64
ret i64 %33
uselistorder i64 %3, { 1, 3, 2, 0 }
uselistorder i8 %2, { 2, 1, 0 }
uselistorder i64 %.cast, { 4, 9, 0, 1, 10, 7, 6, 3, 5, 8, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32** %.reg2mem, { 0, 12, 11, 10, 3, 9, 8, 7, 6, 5, 4, 13, 2, 1 }
uselistorder i64 (i64, i64, i64)* @redisProtocolToLuaType_Aggregate, { 0, 2, 1 }
uselistorder i32* %arg2, { 2, 1, 0, 3 }
uselistorder i64 %arg1, { 5, 0, 8, 9, 2, 3, 6, 4, 1, 7 }
uselistorder label LBL_14, { 1, 2, 3, 10, 4, 5, 6, 7, 8, 9, 0, 11, 12 }
} | 1 |
BinRealVul | hpet_in_legacy_mode_1383 | hpet_in_legacy_mode | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = load i32*, i32** @gv_0, align 8
%1 = icmp eq i32* %0, null
%2 = icmp eq i1 %1, false
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%3 = load i32, i32* %0, align 4
%4 = urem i32 %3, 2
%5 = zext i32 %4 to i64
store i64 %5, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | exif_scan_thumbnail_7224 | exif_scan_thumbnail | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i64
%.reg2mem81 = alloca i64
%.reg2mem = alloca i64
%sv_2 = alloca i32, align 4
%0 = icmp eq i64* %arg1, null
store i64 0, i64* %rax.0.reg2mem
br i1 %0, label LBL_20, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp ult i64 %4, 4
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_20, label LBL_2
LBL_2:
%6 = call i32 @memcmp(i64* nonnull %arg1, i64* nonnull @gv_0, i32 3)
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_3, label LBL_4
LBL_3:
%8 = load i64, i64* %3, align 8
%9 = icmp ugt i64 %8, 2
store i64 %8, i64* %.reg2mem
store i64 2, i64* %.reg2mem81
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_7, label LBL_20
LBL_4:
%10 = add i64 %1, 16
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_20, label LBL_5
LBL_5:
%15 = add i64 %1, 20
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_20, label LBL_6
LBL_6:
%20 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_1, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_7:
%.reload82 = load i64, i64* %.reg2mem81
%.reload = load i64, i64* %.reg2mem
%21 = add i64 %.reload82, 1
%22 = icmp ult i64 %21, %.reload
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_8, label LBL_20
LBL_8:
%23 = add i64 %.reload82, %1
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = icmp eq i8 %25, -1
store i64 %21, i64* %sv_1.1.reg2mem
store i32 8, i32* %sv_0.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %26, label LBL_10, label LBL_20
LBL_9:
%27 = add nsw i32 %sv_0.0.reload, -1
%28 = add i64 %sv_1.1.reload, 4
%29 = icmp ult i64 %28, %.reload
store i64 %30, i64* %sv_1.1.reg2mem
store i32 %27, i32* %sv_0.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %29, label LBL_10, label LBL_20
LBL_10:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%30 = add i64 %sv_1.1.reload, 1
%31 = add i64 %sv_1.1.reload, %1
%32 = inttoptr i64 %31 to i8*
%33 = load i8, i8* %32, align 1
%34 = icmp eq i8 %33, -1
%35 = icmp eq i32 %sv_0.0.reload, 0
%36 = icmp eq i1 %35, false
%or.cond = icmp eq i1 %34, %36
br i1 %or.cond, label LBL_9, label LBL_11
LBL_11:
%37 = add i64 %.reload, -2
%38 = icmp ugt i64 %30, %37
%or.cond53 = or i1 %38, %34
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond53, label LBL_20, label LBL_12
LBL_12:
%39 = add i64 %30, %1
%40 = call i64 @FUNC(i64 %39)
%sext = mul i64 %40, 4294967296
%41 = ashr exact i64 %sext, 32
%42 = load i64, i64* %3, align 8
%43 = icmp uge i64 %42, %41
%44 = sub i64 %42, %41
%45 = icmp ult i64 %30, %44
%or.cond5 = icmp eq i1 %43, %45
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond5, label LBL_13, label LBL_20
LBL_13:
%46 = zext i8 %33 to i32
%47 = add nsw i32 %46, -192
%48 = icmp ult i32 %47, 27
%49 = icmp ne i1 %48, true
%50 = icmp eq i1 %49, false
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_19, label LBL_14
LBL_14:
%52 = urem i8 %33, 64
%53 = icmp eq i8 %52, 0
%54 = zext i8 %52 to i64
%55 = shl i64 1, %54
%rdx.0 = select i1 %53, i64 1, i64 %55
%56 = and i64 %rdx.0, 61167
%57 = icmp eq i64 %56, 0
%58 = icmp eq i1 %57, false
%59 = icmp eq i1 %58, false
%60 = icmp eq i1 %59, false
br i1 %60, label LBL_16, label LBL_15
LBL_15:
%61 = and i64 %rdx.0, 100663296
%62 = icmp eq i64 %61, 0
%63 = icmp eq i1 %62, false
%64 = icmp eq i1 %63, false
%65 = icmp eq i1 %64, false
br i1 %65, label LBL_18, label LBL_19
LBL_16:
%66 = icmp ult i64 %41, 8
%67 = add i64 %42, -8
%68 = icmp ugt i64 %30, %67
%or.cond7 = or i1 %66, %68
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond7, label LBL_20, label LBL_17
LBL_17:
%69 = zext i8 %33 to i64
%70 = bitcast i32* %sv_2 to i64*
%71 = call i64 @FUNC(i64 %39, i64 %69, i64* nonnull %70)
%72 = load i32, i32* %sv_2, align 4
%73 = add i64 %1, 20
%74 = inttoptr i64 %73 to i32*
store i32 %72, i32* %74, align 4
%75 = add i64 %1, 16
%76 = inttoptr i64 %75 to i32*
store i64 1, i64* %rax.0.reg2mem
br label LBL_20
LBL_18:
%77 = call i64 @FUNC(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_2, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_19:
%78 = add i64 %41, %30
%79 = icmp ult i64 %78, %42
store i64 %42, i64* %.reg2mem
store i64 %78, i64* %.reg2mem81
store i64 0, i64* %rax.0.reg2mem
br i1 %79, label LBL_7, label LBL_20
LBL_20:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %42, { 0, 2, 1, 3, 4 }
uselistorder i64 %41, { 1, 0, 2, 3 }
uselistorder i1 %34, { 1, 0 }
uselistorder i8 %33, { 1, 0, 2, 3 }
uselistorder i64 %30, { 1, 2, 5, 3, 4, 0 }
uselistorder i64 %sv_1.1.reload, { 2, 0, 1 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %.reload, { 2, 1, 0 }
uselistorder i64 %.reload82, { 1, 0 }
uselistorder i64* %3, { 1, 0, 2 }
uselistorder i64 %1, { 5, 6, 0, 1, 2, 4, 3, 7 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem81, { 2, 0, 1 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 14, 15, 8, 5, 1, 6, 4, 3, 11, 10, 9, 7, 13, 12 }
uselistorder i64 (i8*)* @raise_warning, { 1, 0 }
uselistorder i1 false, { 4, 1, 5, 6, 2, 7, 8, 3, 0, 9, 10 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_20, { 1, 13, 14, 7, 4, 0, 5, 3, 2, 10, 9, 8, 6, 12, 11 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | handle_intercept_1225 | handle_intercept | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %7, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = zext i32 %9 to i64
%14 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0), i64 %13, i64 %12, i64 %3, i64 %2, i64 %1)
store i64 %13, i64* @0, align 8
switch i32 %9, label LBL_11 [
i32 1, label LBL_1
i32 2, label LBL_2
i32 3, label LBL_3
i32 4, label LBL_7
i32 5, label LBL_9
i32 6, label LBL_10
]
LBL_1:
%15 = call i64 @FUNC(i64 %4, i64 %7)
%phitmp = and i64 %15, 4294967295
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_2:
%16 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 0)
store i64 7, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_3:
%17 = call i64 @FUNC(i64 %4)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
store i64 7, i64* %sv_0.0.reg2mem
br i1 %20, label LBL_12, label LBL_4
LBL_4:
%21 = call i64 @FUNC(i64 %5)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%24 = call i64 @FUNC()
store i64 7, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_6:
%25 = call i64 @FUNC()
store i64 7, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_7:
%26 = call i64 @FUNC(i64 %4)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
store i64 7, i64* %sv_0.0.reg2mem
br i1 %29, label LBL_12, label LBL_8
LBL_8:
%30 = call i64 @FUNC()
store i64 7, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_9:
%31 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%32 = call i32 @fwrite(i64* bitcast ([29 x i8]* @gv_3 to i64*), i32 1, i32 28, %_IO_FILE* %31)
call void @exit(i32 1)
unreachable
LBL_10:
%33 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%34 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_4 to i64*), i32 1, i32 26, %_IO_FILE* %33)
call void @exit(i32 1)
unreachable
LBL_11:
%35 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%36 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %35, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_5, i64 0, i64 0), i64 %13)
call void @exit(i32 1)
unreachable
LBL_12:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %7, { 1, 0, 2 }
uselistorder i64 %4, { 3, 2, 1, 0, 4 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 5, 4, 3, 7, 6 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder void (i32)* @exit, { 0, 2, 1 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 }
uselistorder %_IO_FILE** @gv_2, { 2, 1, 0 }
uselistorder i64 ()* @qemu_system_shutdown_request, { 1, 0 }
uselistorder i64 (i64)* @s390_del_running_cpu, { 1, 0 }
uselistorder i64 7, { 1, 0, 4, 3, 2, 5 }
uselistorder label LBL_12, { 1, 0, 4, 3, 2, 5, 6 }
} | 0 |
BinRealVul | curl_close_14046 | curl_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0))
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %0)
%4 = add i64 %0, 40
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %0, 48
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10)
ret i64 %11
uselistorder i64 (i64)* @g_free, { 1, 0 }
} | 1 |
BinRealVul | __nfs4_proc_set_acl_6616 | __nfs4_proc_set_acl | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%sv_0.01.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %2)
store i64 0, i64* %sv_3, align 8
%4 = call i64 @FUNC(i64 %2)
store i64 %4, i64* %sv_4, align 8
store i64 4210725, i64* %sv_1, align 8
%5 = call i64 @FUNC(i64 %3)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 1, i64* %rax.0.shrunk.reg2mem
br i1 %8, label LBL_1, label LBL_6
LBL_1:
%9 = ptrtoint i64* %sv_2 to i64
%10 = call i64 @FUNC(i64 %arg2, i64 %arg3, i64 %9, i64* nonnull %sv_3)
%11 = trunc i64 %10 to i32
%12 = icmp slt i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 %10, i64* %rax.0.shrunk.reg2mem
br i1 %13, label LBL_2, label LBL_6
LBL_2:
%14 = call i64 @FUNC(i64 %2)
%15 = call i64 @FUNC(i64 %3, i64* nonnull %sv_1, i64* nonnull %sv_4, i64* nonnull %sv_4, i64 1)
%16 = icmp eq i32 %11, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_3, label LBL_5
LBL_3:
%18 = ptrtoint i64* %sv_5 to i64
%19 = add i64 %18, -112
store i32 %11, i32* %sv_0.01.reg2mem
br label LBL_4
LBL_4:
%sv_0.01.reload = load i32, i32* %sv_0.01.reg2mem
%20 = add i32 %sv_0.01.reload, -1
%21 = sext i32 %20 to i64
%22 = mul i64 %21, 8
%23 = add i64 %19, %22
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %25)
%27 = icmp eq i32 %20, 0
%28 = icmp slt i32 %20, 0
%29 = icmp eq i1 %28, false
%30 = icmp eq i1 %27, false
%31 = icmp eq i1 %29, %30
store i32 %20, i32* %sv_0.01.reg2mem
br i1 %31, label LBL_4, label LBL_5
LBL_5:
%32 = trunc i64 %1 to i32
%33 = call i64 @FUNC(i64 %2)
%34 = or i32 %32, 1
%35 = bitcast i64* %arg1 to i32*
store i32 %34, i32* %35, align 4
%36 = call i64 @FUNC(i64 %2)
%37 = call i64 @FUNC(i64 %2)
%38 = call i64 @FUNC(i64 %2)
store i64 %15, i64* %rax.0.shrunk.reg2mem
br label LBL_6
LBL_6:
%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 %2, { 2, 1, 0, 3, 4, 5, 6 }
uselistorder i32* %sv_0.01.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder i1 false, { 2, 1, 0, 3, 4 }
uselistorder i32 0, { 1, 2, 0, 3, 4 }
uselistorder label LBL_6, { 2, 0, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | skip_int_8980 | skip_int | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem14 = alloca i8*
%.reg2mem12 = alloca i8
%.reg2mem = alloca i8*
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8*, align 8
%1 = bitcast i64* %arg2 to i32*
store i32 0, i32* %1, align 4
%2 = call i64 @FUNC(i64 %0)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_5
LBL_1:
%5 = inttoptr i64 %2 to i8*
%6 = bitcast i8** %sv_0 to i64*
store i64 %2, i64* %6, align 8
%7 = load i8, i8* %5, align 1
%8 = icmp eq i8 %7, 0
%9 = icmp eq i1 %8, false
store i8* %5, i8** %.reg2mem
store i8 %7, i8* %.reg2mem12
store i8* %5, i8** %.reg2mem14
br i1 %9, label LBL_2, label LBL_4
LBL_2:
%.reload = load i8*, i8** %.reg2mem
%10 = call i16** @__ctype_b_loc()
%11 = load i16*, i16** %10, align 8
%12 = ptrtoint i16* %11 to i64
%13 = load i8, i8* %.reload, align 1
%14 = sext i8 %13 to i64
%15 = mul i64 %14, 2
%16 = add i64 %15, %12
%17 = inttoptr i64 %16 to i16*
%18 = load i16, i16* %17, align 2
%19 = and i16 %18, 2048
%20 = icmp eq i16 %19, 0
store i8 %13, i8* %.reg2mem12
store i8* %.reload, i8** %.reg2mem14
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = ptrtoint i8* %.reload to i64
%22 = add i64 %21, 1
%23 = inttoptr i64 %22 to i8*
%24 = load i8, i8* %23, align 1
%25 = icmp eq i8 %24, 0
%26 = icmp eq i1 %25, false
store i8* %23, i8** %.reg2mem
store i8 %24, i8* %.reg2mem12
store i8* %23, i8** %.reg2mem14
br i1 %26, label LBL_2, label LBL_4
LBL_4:
%.reload15 = load i8*, i8** %.reg2mem14
%.reload13 = load i8, i8* %.reg2mem12
store i8 0, i8* %.reload15, align 1
%27 = load i8*, i8** %sv_0, align 8
%28 = call i32 @atoi(i8* %27)
store i32 %28, i32* %1, align 4
store i8 %.reload13, i8* %.reload15, align 1
%29 = ptrtoint i8* %.reload15 to i64
store i64 %29, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i8* %.reload15, { 1, 0, 2 }
uselistorder i8* %.reload, { 1, 0, 2 }
uselistorder i8** %sv_0, { 1, 0 }
uselistorder i8** %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i8 0, { 1, 2, 0, 3 }
uselistorder i1 false, { 1, 0, 2, 3 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | acpi_pcihp_pc_no_hotplug_8601 | acpi_pcihp_pc_no_hotplug | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = icmp eq i8 %7, 1
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = icmp ne i8 %2, 1
%spec.select = zext i1 %10 to i64
ret i64 %spec.select
LBL_3:
ret i64 1
} | 0 |
BinRealVul | flask_security_resolve_bool_12158 | flask_security_resolve_bool | 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 = icmp eq i32 %2, -1
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 16
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %4, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10, i64* nonnull %sv_0, i64 %7)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = and i64 %11, 4294967295
store i64 %14, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%15 = load i64, i64* %sv_0, align 8
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i32
%18 = bitcast i64* %arg1 to i32*
store i32 %17, i32* %18, align 4
store i64 0, i64* %6, align 8
%19 = load i64, i64* %sv_0, align 8
%20 = call i64 @FUNC(i64 %19)
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %4, { 1, 0 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | usbvision_create_sysfs_9699 | usbvision_create_sysfs | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_11, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64* nonnull @gv_0)
%3 = trunc i64 %2 to i32
%4 = icmp slt i32 %3, 0
store i64 %2, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_10, label LBL_2
LBL_2:
%5 = call i64 @FUNC(i64 %1, i64* nonnull @gv_1)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
store i64 %5, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_10, label LBL_3
LBL_3:
%8 = call i64 @FUNC(i64 %1, i64* nonnull @gv_2)
%9 = trunc i64 %8 to i32
%10 = icmp slt i32 %9, 0
store i64 %8, i64* %sv_0.0.reg2mem
br i1 %10, label LBL_10, label LBL_4
LBL_4:
%11 = call i64 @FUNC(i64 %1, i64* nonnull @gv_3)
%12 = trunc i64 %11 to i32
%13 = icmp slt i32 %12, 0
store i64 %11, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_10, label LBL_5
LBL_5:
%14 = call i64 @FUNC(i64 %1, i64* nonnull @gv_4)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %15, 0
store i64 %14, i64* %sv_0.0.reg2mem
br i1 %16, label LBL_10, label LBL_6
LBL_6:
%17 = call i64 @FUNC(i64 %1, i64* nonnull @gv_5)
%18 = trunc i64 %17 to i32
%19 = icmp slt i32 %18, 0
store i64 %17, i64* %sv_0.0.reg2mem
br i1 %19, label LBL_10, label LBL_7
LBL_7:
%20 = call i64 @FUNC(i64 %1, i64* nonnull @gv_6)
%21 = trunc i64 %20 to i32
%22 = icmp slt i32 %21, 0
store i64 %20, i64* %sv_0.0.reg2mem
br i1 %22, label LBL_10, label LBL_8
LBL_8:
%23 = call i64 @FUNC(i64 %1, i64* nonnull @gv_7)
%24 = trunc i64 %23 to i32
%25 = icmp slt i32 %24, 0
store i64 %23, i64* %sv_0.0.reg2mem
br i1 %25, label LBL_10, label LBL_9
LBL_9:
%26 = call i64 @FUNC(i64 %1, i64* nonnull @gv_8)
%27 = trunc i64 %26 to i32
%28 = icmp slt i32 %27, 0
%29 = icmp eq i1 %28, false
store i64 %26, i64* %sv_0.0.reg2mem
store i64 %26, i64* %rax.0.reg2mem
br i1 %29, label LBL_11, label LBL_10
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%30 = and i64 %sv_0.0.reload, 4294967295
%31 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_9, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_10, i64 0, i64 0), i64 %30)
store i64 %31, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 8, 0, 1, 2, 3, 4, 5, 6, 7, 9 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64*)* @device_create_file, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_11, { 2, 0, 1 }
uselistorder label LBL_10, { 8, 0, 1, 2, 3, 4, 5, 6, 7 }
} | 0 |
BinRealVul | gdb_continue_18627 | gdb_continue | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = bitcast i64* %arg1 to i32*
store i32 1, i32* %0, align 4
%1 = call i64 @FUNC()
ret i64 %1
} | 1 |
BinRealVul | cg_mkdir_6553 | cg_mkdir | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i8*, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i8*, align 8
%0 = call i64 @FUNC()
store i8* null, i8** %sv_3, align 8
store i64 0, i64* %sv_2, align 8
store i8* null, i8** %sv_1, align 8
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_11
LBL_1:
%3 = call i64 @FUNC(i64 %0, i64 %arg1)
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_11
LBL_2:
%6 = call i64 @FUNC(i64 %arg1)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %8, label LBL_3, label LBL_11
LBL_3:
%9 = inttoptr i64 %0 to i32*
%10 = bitcast i8** %sv_3 to i64*
%11 = call i64 @FUNC(i64 %6, i64* nonnull %sv_2, i64* nonnull %10)
%12 = load i8*, i8** %sv_3, align 8
%13 = icmp eq i8* %12, null
%14 = icmp eq i1 %13, false
%15 = load i64, i64* %sv_2, align 8
%storemerge = select i1 %14, i64 %15, i64 ptrtoint (i64* @gv_0 to i64)
%16 = load i32, i32* %9, align 4
%17 = zext i32 %16 to i64
%18 = bitcast i8** %sv_1 to i64*
%19 = call i64 @FUNC(i64 %17, i64 %3, i64 %storemerge, i64* nonnull %18)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_7, label LBL_4
LBL_4:
%23 = load i8*, i8** %sv_3, align 8
%24 = icmp eq i8* %23, null
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%25 = load i8*, i8** %sv_1, align 8
%26 = call i32 @strcmp(i8* %25, i8* nonnull %23)
%27 = icmp eq i32 %26, 0
%28 = icmp eq i1 %27, false
store i64 4294967279, i64* %sv_0.0.reg2mem
br i1 %28, label LBL_6, label LBL_10
LBL_6:
store i64 4294967294, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_7:
%29 = call i64 @FUNC(i64 %0, i64 %3, i64 %storemerge, i64 0, i64 2)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
store i64 4294967283, i64* %sv_0.0.reg2mem
br i1 %32, label LBL_8, label LBL_10
LBL_8:
%33 = load i32, i32* %9, align 4
%34 = zext i32 %33 to i64
%35 = call i64 @FUNC(i64 %34, i64 %3, i64 %storemerge, i64* null)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
store i64 4294967283, i64* %sv_0.0.reg2mem
br i1 %38, label LBL_9, label LBL_10
LBL_9:
%39 = inttoptr i64 %3 to i8*
%40 = inttoptr i64 %6 to i8*
%41 = add i64 %0, 8
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = add i64 %0, 4
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = call i64 @FUNC(i64 %3, i64 %6, i32 %46, i32 %43)
%48 = and i64 %47, 4294967295
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_1, i64 0, i64 0), i64 %48, i8* %39, i8* %40)
store i64 %48, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%50 = load i64, i64* %sv_2, align 8
%51 = inttoptr i64 %50 to i64*
call void @free(i64* %51)
%52 = load i8*, i8** %sv_1, align 8
%53 = bitcast i8* %52 to i64*
call void @free(i64* %53)
store i64 %sv_0.0.reload, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %6, { 0, 2, 1, 3 }
uselistorder i64 %3, { 0, 4, 1, 2, 3, 5 }
uselistorder i64 %0, { 0, 1, 2, 4, 3, 5 }
uselistorder i8** %sv_3, { 2, 1, 3, 0 }
uselistorder i64* %sv_2, { 1, 2, 0, 3 }
uselistorder i8** %sv_1, { 2, 1, 3, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 5, 1, 2, 4, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64*)* @caller_is_in_ancestor, { 1, 0 }
uselistorder i32 1, { 3, 5, 4, 2, 1, 0 }
uselistorder label LBL_11, { 3, 0, 1, 2 }
uselistorder label LBL_10, { 3, 0, 1, 4, 2 }
} | 0 |
BinRealVul | _free_step_rec_18110 | _free_step_rec | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64 %arg1, 0
%.pre = add i64 %arg1, 8
%.pre1 = inttoptr i64 %.pre to i64*
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = load i64, i64* %.pre1, align 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %arg1, i64 %3)
%5 = call i64 @FUNC(i64 %arg1)
br label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %arg1)
%7 = add i64 %arg1, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %arg1, 24
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13)
%15 = add i64 %arg1, 32
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17)
%19 = load i64, i64* %.pre1, align 8
%20 = call i64 @FUNC(i64 %19)
%21 = add i64 %arg1, 40
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %23)
%25 = add i64 %arg1, 48
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = inttoptr i64 %27 to i64*
call void @free(i64* %28)
%29 = add i64 %arg1, 56
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = inttoptr i64 %31 to i64*
call void @free(i64* %32)
%33 = add i64 %arg1, 64
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = inttoptr i64 %35 to i64*
call void @free(i64* %36)
%37 = add i64 %arg1, 72
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = call i64 @FUNC(i64 %39)
%41 = add i64 %arg1, 80
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = call i64 @FUNC(i64 %43)
%45 = add i64 %arg1, 88
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = call i64 @FUNC(i64 %47)
%49 = add i64 %arg1, 96
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = call i64 @FUNC(i64 %51)
%53 = add i64 %arg1, 104
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = call i64 @FUNC(i64 %55)
%57 = add i64 %arg1, 112
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = icmp eq i64 %59, 0
br i1 %60, label LBL_4, label LBL_3
LBL_3:
%61 = call i64 @FUNC(i64 %59)
br label LBL_4
LBL_4:
%62 = add i64 %arg1, 120
%63 = inttoptr i64 %62 to i64*
%64 = load i64, i64* %63, align 8
%65 = call i64 @FUNC(i64 %64)
%66 = add i64 %arg1, 128
%67 = inttoptr i64 %66 to i64*
%68 = load i64, i64* %67, align 8
%69 = call i64 @FUNC(i64 %68)
%70 = call i64 @FUNC(i64 %arg1)
ret i64 %70
uselistorder void (i64*)* @free, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @xfree, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 1, 0, 20 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | cpu_common_initfn_13971 | cpu_common_initfn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = inttoptr i64 %1 to i32*
store i32 -1, i32* %3, align 4
%4 = inttoptr i64 %2 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i64 %1, 8
%7 = inttoptr i64 %6 to i32*
store i32 %5, i32* %7, align 4
%8 = add i64 %1, 4
%9 = inttoptr i64 %8 to i32*
store i32 %5, i32* %9, align 4
%10 = add i64 %1, 12
%11 = inttoptr i64 %10 to i32*
store i32 1, i32* %11, align 4
%12 = add i64 %1, 16
%13 = inttoptr i64 %12 to i32*
store i32 1, i32* %13, align 4
%14 = add i64 %1, 24
%15 = call i64 @FUNC(i64 %14)
%16 = add i64 %1, 64
%17 = call i64 @FUNC(i64 %16)
%18 = add i64 %1, 72
%19 = call i64 @FUNC(i64 %18)
%20 = call i64 @FUNC()
%21 = and i64 %20, 4294967295
%22 = call i64 @FUNC(i64 %21)
%23 = add i64 %1, 80
%24 = inttoptr i64 %23 to i64*
store i64 %22, i64* %24, align 8
%25 = call i64 @FUNC(i64 %1)
ret i64 %25
uselistorder i64 (i64)* @QTAILQ_INIT, { 1, 0 }
} | 1 |
BinRealVul | mk_request_free_6240 | mk_request_free | 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
%3 = trunc i64 %1 to i32
%4 = icmp slt i32 %3, 1
br i1 %4, label LBL_4, 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, 1
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %2)
br label LBL_4
LBL_3:
%11 = call i32 @close(i32 %3)
br label LBL_4
LBL_4:
%12 = add i64 %2, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %14, 0
br i1 %15, label LBL_6, label LBL_5
LBL_5:
%16 = call i64 @FUNC(i64 %14)
br label LBL_6
LBL_6:
%17 = add i64 %2, 16
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = add i64 %2, 24
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp eq i64 %19, %22
br i1 %23, label LBL_8, label LBL_7
LBL_7:
%24 = call i64 @FUNC(i64 %17)
br label LBL_8
LBL_8:
%25 = add i64 %2, 32
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = add i64 %2, 40
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = icmp eq i64 %27, %30
store i64 %27, i64* %rax.0.reg2mem
br i1 %31, label LBL_10, label LBL_9
LBL_9:
%32 = call i64 @FUNC(i64 %25)
store i64 %32, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0, 3, 2, 4, 5, 6 }
uselistorder i64 (i64)* @mk_ptr_free, { 1, 0 }
} | 0 |
BinRealVul | vorbis_parse_id_hdr_7430 | vorbis_parse_id_hdr | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.lcssa10.reg2mem = alloca i64
%storemerge311.reg2mem = alloca i32
%.reg2mem14 = alloca i64
%.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 128
%6 = call i64 @FUNC(i64 %5, i64 8)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 118
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_6, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %5, i64 8)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 111
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_6, label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64 %5, i64 8)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 114
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_6, label LBL_3
LBL_3:
%18 = call i64 @FUNC(i64 %5, i64 8)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 98
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_6, label LBL_4
LBL_4:
%22 = call i64 @FUNC(i64 %5, i64 8)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 105
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_6, label LBL_5
LBL_5:
%26 = call i64 @FUNC(i64 %5, i64 8)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 115
br i1 %28, label LBL_7, label LBL_6
LBL_6:
%29 = add i64 %4, 120
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i64 @FUNC(i64 %31, i64 0, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 1, i64* %rax.0.reg2mem
br label LBL_17
LBL_7:
%33 = call i64 @FUNC(i64 %5, i64 32)
%34 = trunc i64 %33 to i8
%35 = bitcast i64* %arg1 to i8*
store i8 %34, i8* %35, align 1
%36 = call i64 @FUNC(i64 %5, i64 8)
%37 = trunc i64 %36 to i8
%38 = add i64 %4, 1
%39 = inttoptr i64 %38 to i8*
store i8 %37, i8* %39, align 1
%40 = call i64 @FUNC(i64 %5, i64 32)
%41 = add i64 %4, 8
%42 = inttoptr i64 %41 to i64*
store i64 %40, i64* %42, align 8
%43 = call i64 @FUNC(i64 %5, i64 32)
%44 = add i64 %4, 16
%45 = inttoptr i64 %44 to i64*
store i64 %43, i64* %45, align 8
%46 = call i64 @FUNC(i64 %5, i64 32)
%47 = add i64 %4, 24
%48 = inttoptr i64 %47 to i64*
store i64 %46, i64* %48, align 8
%49 = call i64 @FUNC(i64 %5, i64 32)
%50 = add i64 %4, 32
%51 = inttoptr i64 %50 to i64*
store i64 %49, i64* %51, align 8
%52 = call i64 @FUNC(i64 %5, i64 4)
%53 = trunc i64 %52 to i32
%sext4 = mul i32 %53, 16777216
%54 = ashr exact i32 %sext4, 24
%55 = call i64 @FUNC(i64 %5, i64 4)
%56 = trunc i64 %55 to i32
%sext = mul i32 %56, 16777216
%57 = ashr exact i32 %sext, 24
%58 = urem i32 %53, 32
%59 = icmp eq i32 %58, 0
%60 = shl i32 1, %58
%phitmp = trunc i32 %60 to i8
%rdx.0 = select i1 %59, i8 1, i8 %phitmp
%61 = add i64 %4, 2
%62 = inttoptr i64 %61 to i8*
store i8 %rdx.0, i8* %62, align 1
%63 = urem i32 %57, 256
%64 = zext i32 %63 to i64
%65 = urem i32 %57, 32
%66 = icmp eq i32 %65, 0
%67 = shl i32 1, %65
%phitmp5 = trunc i32 %67 to i8
%rdx.1 = select i1 %66, i8 1, i8 %phitmp5
%68 = add i64 %4, 3
%69 = inttoptr i64 %68 to i8*
store i8 %rdx.1, i8* %69, align 1
%70 = trunc i32 %54 to i8
%.off = add i8 %70, -6
%71 = icmp ugt i8 %.off, 7
br i1 %71, label LBL_9, label LBL_8
LBL_8:
%72 = trunc i32 %57 to i8
%.off9 = add i8 %72, -6
%73 = icmp ult i8 %.off9, 8
%74 = icmp ult i8 %72, %70
%75 = icmp eq i1 %74, false
%or.cond8 = icmp eq i1 %73, %75
br i1 %or.cond8, label LBL_10, label LBL_9
LBL_9:
%76 = add i64 %4, 120
%77 = inttoptr i64 %76 to i64*
%78 = load i64, i64* %77, align 8
%79 = call i64 @FUNC(i64 %78, i64 0, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @gv_1, i64 0, i64 0), i64 %64, i64 %2, i64 %1)
store i64 3, i64* %rax.0.reg2mem
br label LBL_17
LBL_10:
%80 = urem i32 %54, 256
%81 = add nsw i32 %80, -6
%82 = add i64 %4, 40
%83 = inttoptr i64 %82 to i64*
%84 = load i64, i64* %83, align 8
%85 = sext i32 %81 to i64
%86 = mul i64 %85, 8
%87 = add i64 %86, ptrtoint (i64* @gv_2 to i64)
%88 = inttoptr i64 %87 to i64*
%89 = load i64, i64* %88, align 8
%90 = inttoptr i64 %84 to i64*
store i64 %89, i64* %90, align 8
%91 = add nsw i32 %63, -6
%92 = load i64, i64* %83, align 8
%93 = add i64 %92, 8
%94 = sext i32 %91 to i64
%95 = mul i64 %94, 8
%96 = add i64 %95, ptrtoint (i64* @gv_2 to i64)
%97 = inttoptr i64 %96 to i64*
%98 = load i64, i64* %97, align 8
%99 = inttoptr i64 %93 to i64*
store i64 %98, i64* %99, align 8
%100 = inttoptr i64 %5 to i32*
%101 = load i32, i32* %100, align 4
%102 = icmp eq i32 %101, 0
store i64 0, i64* %indvars.iv.reg2mem
br i1 %102, label LBL_14, label LBL_11
LBL_11:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%103 = add i64 %indvars.iv.reload, %61
%104 = inttoptr i64 %103 to i8*
%105 = load i8, i8* %104, align 1
%106 = udiv i8 %105, 2
%107 = zext i8 %106 to i64
%108 = mul i64 %107, 4
%109 = call i64 @FUNC(i64 %108)
%110 = load i8, i8* %104, align 1
%111 = icmp ugt i8 %110, 1
%112 = load i64, i64* %83, align 8
%113 = mul i64 %indvars.iv.reload, 8
store i64 %112, i64* %.reg2mem
store i64 0, i64* %.reg2mem14
store i32 0, i32* %storemerge311.reg2mem
store i64 %112, i64* %.lcssa10.reg2mem
br i1 %111, label LBL_12, label LBL_13
LBL_12:
%storemerge311.reload = load i32, i32* %storemerge311.reg2mem
%.reload15 = load i64, i64* %.reg2mem14
%.reload = load i64, i64* %.reg2mem
%114 = add i64 %.reload, %113
%115 = inttoptr i64 %114 to i64*
%116 = load i64, i64* %115, align 8
%117 = mul i64 %.reload15, 4
%118 = add i64 %116, %117
%119 = inttoptr i64 %118 to i32*
%120 = load i32, i32* %119, align 4
%121 = call i128 @FUNC(i32 %120)
%122 = add i64 %117, %109
%123 = load i32, i32* inttoptr (i64 4202888 to i32*), align 8
%124 = call i128 @FUNC(i32 %123)
%125 = call i128 @FUNC(i128 %124, i128 %121)
%126 = call i64 @__asm_movss.1(i128 %125)
%127 = trunc i64 %126 to i32
%128 = inttoptr i64 %122 to i32*
store i32 %127, i32* %128, align 4
%129 = add i32 %storemerge311.reload, 1
%130 = load i8, i8* %104, align 1
%131 = udiv i8 %130, 2
%132 = zext i8 %131 to i64
%133 = sext i32 %129 to i64
%134 = icmp slt i64 %133, %132
%135 = load i64, i64* %83, align 8
store i64 %135, i64* %.reg2mem
store i64 %133, i64* %.reg2mem14
store i32 %129, i32* %storemerge311.reg2mem
store i64 %135, i64* %.lcssa10.reg2mem
br i1 %134, label LBL_12, label LBL_13
LBL_13:
%.lcssa10.reload = load i64, i64* %.lcssa10.reg2mem
%136 = add i64 %.lcssa10.reload, %113
%137 = inttoptr i64 %136 to i64*
store i64 %109, i64* %137, align 8
%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
br i1 %exitcond, label LBL_14, label LBL_11
LBL_14:
%138 = call i64 @FUNC(i64 %5)
%139 = trunc i64 %138 to i32
%140 = icmp eq i32 %139, 0
%141 = icmp eq i1 %140, false
br i1 %141, label LBL_16, label LBL_15
LBL_15:
%142 = zext i32 %91 to i64
%143 = add i64 %4, 120
%144 = inttoptr i64 %143 to i64*
%145 = load i64, i64* %144, align 8
%146 = call i64 @FUNC(i64 %145, i64 0, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @gv_3, i64 0, i64 0), i64 %142, i64 %2, i64 %1)
store i64 2, i64* %rax.0.reg2mem
br label LBL_17
LBL_16:
%147 = load i8, i8* %69, align 1
%148 = udiv i8 %147, 2
%149 = load i8, i8* %39, align 1
%150 = zext i8 %149 to i64
%151 = zext i8 %148 to i64
%152 = mul i64 %151, 4
%153 = mul nuw nsw i64 %152, %150
%154 = call i64 @FUNC(i64 %153)
%155 = add i64 %4, 48
%156 = inttoptr i64 %155 to i64*
store i64 %154, i64* %156, align 8
%157 = load i8, i8* %69, align 1
%158 = udiv i8 %157, 2
%159 = load i8, i8* %39, align 1
%160 = zext i8 %159 to i64
%161 = zext i8 %158 to i64
%162 = mul i64 %161, 4
%163 = mul nuw nsw i64 %162, %160
%164 = call i64 @FUNC(i64 %163)
%165 = add i64 %4, 56
%166 = inttoptr i64 %165 to i64*
store i64 %164, i64* %166, align 8
%167 = load i8, i8* %69, align 1
%168 = udiv i8 %167, 2
%169 = load i8, i8* %39, align 1
%170 = zext i8 %169 to i64
%171 = zext i8 %168 to i64
%172 = mul i64 %171, 4
%173 = mul nuw nsw i64 %172, %170
%174 = call i64 @FUNC(i64 %173)
%175 = add i64 %4, 64
%176 = inttoptr i64 %175 to i64*
store i64 %174, i64* %176, align 8
%177 = load i8, i8* %69, align 1
%178 = udiv i8 %177, 2
%179 = load i8, i8* %39, align 1
%180 = zext i8 %179 to i64
%181 = zext i8 %178 to i64
%182 = mul i64 %181, 4
%183 = mul nuw nsw i64 %182, %180
%184 = call i64 @FUNC(i64 %183)
%185 = add i64 %4, 72
%186 = inttoptr i64 %185 to i64*
store i64 %184, i64* %186, align 8
%187 = load i8, i8* %69, align 1
%188 = zext i8 %187 to i64
%189 = mul i64 %188, 4
%190 = call i64 @FUNC(i64 %189)
%191 = add i64 %4, 80
%192 = inttoptr i64 %191 to i64*
store i64 %190, i64* %192, align 8
%193 = load i8, i8* %69, align 1
%194 = zext i8 %193 to i64
%195 = mul i64 %194, 4
%196 = call i64 @FUNC(i64 %195)
%197 = add i64 %4, 88
%198 = inttoptr i64 %197 to i64*
store i64 %196, i64* %198, align 8
%199 = add i64 %4, 96
%200 = inttoptr i64 %199 to i32*
store i32 0, i32* %200, align 4
%201 = add i64 %4, 104
%202 = zext i32 %80 to i64
%203 = call i64 @FUNC(i64 %201, i64 %202, i64 1)
%204 = add i64 %4, 112
%205 = call i64 @FUNC(i64 %204, i64 %64, i64 1)
%206 = load i8, i8* %69, align 1
%207 = zext i8 %206 to i64
%208 = load i8, i8* %62, align 1
%209 = zext i8 %208 to i64
%210 = load i64, i64* %51, align 8
%211 = load i64, i64* %48, align 8
%212 = load i64, i64* %45, align 8
%213 = load i64, i64* %42, align 8
%214 = load i8, i8* %39, align 1
%215 = zext i8 %214 to i64
%216 = bitcast i64* %rdi to i8*
%217 = load i8, i8* %216, align 8
%218 = zext i8 %217 to i64
%219 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @gv_4, i64 0, i64 0), i64 %218, i64 %215, i64 %213, i64 %212, i64 %211, i64 %210, i64 %209, i64 %207)
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %117, { 1, 0 }
uselistorder i64 %113, { 1, 0 }
uselistorder i64 %109, { 1, 0 }
uselistorder i8* %104, { 1, 0, 2 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i32 %91, { 1, 0 }
uselistorder i64* %83, { 1, 0, 2, 3 }
uselistorder i32 %80, { 1, 0 }
uselistorder i8 %72, { 1, 0 }
uselistorder i8 %70, { 1, 0 }
uselistorder i32 %65, { 1, 0 }
uselistorder i32 %63, { 1, 0 }
uselistorder i32 %58, { 1, 0 }
uselistorder i32 %57, { 2, 0, 1 }
uselistorder i32 %53, { 1, 0 }
uselistorder i64 %5, { 1, 0, 3, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem14, { 2, 0, 1 }
uselistorder i32* %storemerge311.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @ff_mdct_init, { 1, 0 }
uselistorder i64 (i64)* @av_malloc, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 0, { 2, 3, 0, 4, 5, 6, 1 }
uselistorder i32 24, { 1, 0 }
uselistorder i64 (i64, i64)* @get_bits_long, { 4, 3, 2, 1, 0 }
uselistorder i64 32, { 5, 0, 1, 2, 3, 4 }
uselistorder i64 1, { 2, 3, 1, 4, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder i64 (i64, i64)* @get_bits, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 8, { 0, 1, 10, 2, 11, 3, 4, 5, 6, 7, 8, 9 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
} | 1 |
BinRealVul | rgb32tobgr24_2448 | rgb32tobgr24 | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = ashr i64 %arg3, 2
%3 = icmp sgt i64 %arg3, 3
store i64 0, i64* %storemerge1.reg2mem
store i64 0, i64* %storemerge.lcssa.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%4 = mul i64 %storemerge1.reload, 4
%5 = or i64 %4, 2
%6 = add i64 %5, %1
%7 = mul nuw nsw i64 %storemerge1.reload, 3
%8 = add i64 %7, %0
%9 = inttoptr i64 %6 to i8*
%10 = load i8, i8* %9, align 1
%11 = inttoptr i64 %8 to i8*
store i8 %10, i8* %11, align 1
%12 = or i64 %4, 1
%13 = add i64 %12, %1
%14 = add i64 %8, 1
%15 = inttoptr i64 %13 to i8*
%16 = load i8, i8* %15, align 1
%17 = inttoptr i64 %14 to i8*
store i8 %16, i8* %17, align 1
%18 = add i64 %4, %1
%19 = add i64 %8, 2
%20 = inttoptr i64 %18 to i8*
%21 = load i8, i8* %20, align 1
%22 = inttoptr i64 %19 to i8*
store i8 %21, i8* %22, align 1
%23 = add nuw nsw i64 %storemerge1.reload, 1
%24 = icmp slt i64 %23, %2
store i64 %23, i64* %storemerge1.reg2mem
store i64 %23, i64* %storemerge.lcssa.reg2mem
br i1 %24, label LBL_1, label LBL_2
LBL_2:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i64 %4, { 2, 1, 0 }
uselistorder i64* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64 3, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | mg_socks_if_free_3976 | mg_socks_if_free | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64* %arg1)
%1 = sext i32 %0 to i64
%2 = icmp eq i64* %arg1, null
store i64 %1, i64* %rax.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %3, 8
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC(i64 %5)
%8 = call i64 @FUNC(i64 %3)
store i64 0, i64* %arg1, align 8
store i64 %3, 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 %3, { 0, 3, 2, 1 }
uselistorder i64 (i64)* @MG_FREE, { 1, 0 }
uselistorder i64* %arg1, { 0, 3, 1, 2 }
} | 0 |
BinRealVul | decode_unit_13672 | decode_unit | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_1.011.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%indvars.iv28.reg2mem = alloca i64
%sv_0.014.reg2mem = alloca i32
%indvars.iv31.reg2mem = alloca i64
%sv_2.116.reg2mem = alloca i32
%sv_3.017.reg2mem = alloca i32
%sv_2.019.reg2mem = alloca i32
%indvars.iv56.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = load i32, i32* %1
%5 = trunc i64 %3 to i32
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_1, label LBL_2
LBL_1:
%8 = ptrtoint i64* %arg2 to i64
%9 = add i32 %5, 20
%10 = trunc i64 %2 to i32
%11 = add i64 %8, 1028
store i64 0, i64* %indvars.iv56.reg2mem
store i32 0, i32* %sv_2.019.reg2mem
br label LBL_3
LBL_2:
%12 = and i64 %3, 4294967295
store i64 %12, i64* %rax.0.reg2mem
br label LBL_17
LBL_3:
%sv_2.019.reload = load i32, i32* %sv_2.019.reg2mem
%indvars.iv56.reload = load i64, i64* %indvars.iv56.reg2mem
%13 = mul i64 %indvars.iv56.reload, 4
%14 = add i64 %13, %11
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = add i32 %16, %sv_2.019.reload
%18 = icmp ugt i32 %17, %4
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%indvars.iv.next57 = add nuw nsw i64 %indvars.iv56.reload, 1
%19 = icmp ult i64 %indvars.iv.next57, 16
store i64 %indvars.iv.next57, i64* %indvars.iv56.reg2mem
store i32 %17, i32* %sv_2.019.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %19, label LBL_3, label LBL_17
LBL_5:
%20 = trunc i64 %indvars.iv56.reload to i32
%21 = mul i32 %20, 16
%22 = icmp slt i32 %21, 256
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %22, label LBL_6, label LBL_17
LBL_6:
%23 = add i64 %8, 4
store i32 %21, i32* %sv_3.017.reg2mem
store i32 %sv_2.019.reload, i32* %sv_2.116.reg2mem
br label LBL_7
LBL_7:
%sv_2.116.reload = load i32, i32* %sv_2.116.reg2mem
%sv_3.017.reload = load i32, i32* %sv_3.017.reg2mem
%24 = sext i32 %sv_3.017.reload to i64
%25 = mul i64 %24, 4
%26 = add i64 %25, %23
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = add i32 %28, %sv_2.116.reload
%30 = icmp ugt i32 %29, %4
br i1 %30, label LBL_9, label LBL_8
LBL_8:
%31 = add nuw i32 %sv_3.017.reload, 1
%32 = icmp ult i32 %31, 256
store i32 %31, i32* %sv_3.017.reg2mem
store i32 %29, i32* %sv_2.116.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %32, label LBL_7, label LBL_17
LBL_9:
%33 = icmp slt i32 %9, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_11, label LBL_10
LBL_10:
%35 = zext i32 %9 to i64
store i64 %35, i64* %rax.0.reg2mem
br label LBL_17
LBL_11:
%36 = add i32 %28, %arg3
store i32 %36, i32* %27, align 4
%37 = add i32 %16, %arg3
%38 = mul i64 %indvars.iv56.reload, 4
%39 = and i64 %38, 17179869180
%40 = add i64 %39, %11
%41 = inttoptr i64 %40 to i32*
store i32 %37, i32* %41, align 4
%42 = add i32 %10, %arg3
%43 = icmp ult i32 %42, 1025
store i64 0, i64* %indvars.iv31.reg2mem
store i32 0, i32* %sv_0.014.reg2mem
store i32 %42, i32* %sv_0.1.reg2mem
br i1 %43, label LBL_16, label LBL_12
LBL_12:
%sv_0.014.reload = load i32, i32* %sv_0.014.reg2mem
%indvars.iv31.reload = load i64, i64* %indvars.iv31.reg2mem
%44 = mul i64 %indvars.iv31.reload, 4
%45 = add i64 %44, %23
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = udiv i32 %47, 2
%49 = add nuw i32 %48, 1
store i32 %49, i32* %46, align 4
%50 = add i32 %49, %sv_0.014.reload
%indvars.iv.next32 = add nuw nsw i64 %indvars.iv31.reload, 1
%exitcond33 = icmp eq i64 %indvars.iv.next32, 256
store i64 %indvars.iv.next32, i64* %indvars.iv31.reg2mem
store i32 %50, i32* %sv_0.014.reg2mem
store i64 0, i64* %indvars.iv28.reg2mem
br i1 %exitcond33, label LBL_13, label LBL_12
LBL_13:
%indvars.iv28.reload = load i64, i64* %indvars.iv28.reg2mem
%51 = mul i64 %indvars.iv28.reload, 16
store i64 0, i64* %indvars.iv.reg2mem
store i32 0, i32* %sv_1.011.reg2mem
br label LBL_14
LBL_14:
%sv_1.011.reload = load i32, i32* %sv_1.011.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%52 = add nuw nsw i64 %indvars.iv.reload, %51
%53 = mul i64 %52, 4
%54 = add i64 %53, %23
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = add i32 %56, %sv_1.011.reload
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 16
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %57, i32* %sv_1.011.reg2mem
br i1 %exitcond, label LBL_15, label LBL_14
LBL_15:
%58 = mul i64 %indvars.iv28.reload, 4
%59 = add i64 %58, %11
%60 = inttoptr i64 %59 to i32*
store i32 %57, i32* %60, align 4
%indvars.iv.next29 = add nuw nsw i64 %indvars.iv28.reload, 1
%exitcond30 = icmp eq i64 %indvars.iv.next29, 16
store i64 %indvars.iv.next29, i64* %indvars.iv28.reg2mem
store i32 %50, i32* %sv_0.1.reg2mem
br i1 %exitcond30, label LBL_16, label LBL_13
LBL_16:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%61 = bitcast i64* %arg2 to i32*
store i32 %sv_0.1.reload, i32* %61, align 4
%62 = add i64 %3, 16
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = and i32 %64, %sv_3.017.reload
%66 = bitcast i64* %arg4 to i32*
store i32 %65, i32* %66, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %57, { 1, 0 }
uselistorder i64 %indvars.iv28.reload, { 0, 2, 1 }
uselistorder i32 %sv_3.017.reload, { 2, 0, 1 }
uselistorder i64 %indvars.iv56.reload, { 3, 1, 0, 2 }
uselistorder i32 %9, { 1, 0 }
uselistorder i64 %8, { 1, 0 }
uselistorder i32 %5, { 1, 0 }
uselistorder i32 %4, { 1, 0 }
uselistorder i64* %indvars.iv56.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.019.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.017.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.116.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv31.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.014.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv28.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.011.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 2, 3, 1, 4 }
uselistorder i32 256, { 1, 0 }
uselistorder i64 16, { 4, 2, 3, 0, 1 }
uselistorder i64 1, { 2, 3, 1, 0 }
uselistorder i64 4, { 0, 1, 2, 3, 4, 6, 5 }
uselistorder i32 0, { 0, 1, 3, 2, 4 }
uselistorder label LBL_17, { 3, 4, 1, 2, 0, 5 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | free_pages_prepare_18239 | free_pages_prepare | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge3.reg2mem = alloca i32
%0 = trunc i64 %arg2 to i32
%1 = urem i32 %0, 32
%2 = shl i32 1, %1
%3 = zext i32 %2 to i64
store i32 1, i32* %storemerge3.reg2mem
br label LBL_1
LBL_1:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%4 = sext i32 %storemerge3.reload to i64
%5 = icmp slt i64 %4, %3
%6 = add i32 %storemerge3.reload, 1
store i32 %6, i32* %storemerge3.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_2:
ret i64 1
uselistorder i32 %storemerge3.reload, { 1, 0 }
uselistorder i32* %storemerge3.reg2mem, { 2, 0, 1 }
} | 1 |
BinRealVul | load_vmstate_5071 | load_vmstate | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%5 = call i64 @FUNC()
%6 = call i64 @FUNC(i64* nonnull %sv_1)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = load i64, i64* %sv_1, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_0, i64 0, i64 0), i64 %11, i64 %3, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_16
LBL_2:
%13 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_1)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = load i64, i64* %sv_1, align 8
%18 = call i64 @FUNC(i64 %17)
%19 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_1, i64 0, i64 0), i64 %18, i64 %arg1, i64 %2, i64 %1)
%20 = and i64 %13, 4294967295
store i64 %20, i64* %rax.0.reg2mem
br label LBL_16
LBL_4:
%21 = ptrtoint i64* %sv_1 to i64
%22 = call i64 @FUNC()
%23 = icmp eq i64 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%25 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_2, i64 0, i64 0), i64 %21, i64 %3, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_16
LBL_6:
%26 = call i64 @FUNC(i64 %22)
%27 = call i64 @FUNC(i64 %26)
%28 = call i64 @FUNC(i64 %22, i64* nonnull %sv_0, i64 %arg1)
%29 = trunc i64 %28 to i32
%30 = call i64 @FUNC(i64 %26)
%31 = icmp slt i32 %29, 0
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_8, label LBL_7
LBL_7:
%33 = and i64 %28, 4294967295
store i64 %33, i64* %rax.0.reg2mem
br label LBL_16
LBL_8:
%34 = ptrtoint i64* %sv_0 to i64
%35 = load i64, i64* %sv_0, align 8
%36 = icmp eq i64 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_10, label LBL_9
LBL_9:
%38 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @gv_3, i64 0, i64 0), i64 %arg1, i64 %34, i64 %2, i64 %1)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_16
LBL_10:
%39 = call i64 @FUNC()
%40 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_1)
%41 = trunc i64 %40 to i32
%42 = icmp slt i32 %41, 0
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_12, label LBL_11
LBL_11:
%44 = load i64, i64* %sv_1, align 8
%45 = call i64 @FUNC(i64 %44)
%46 = and i64 %40, 4294967295
%47 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_4, i64 0, i64 0), i64 %46, i64 %arg1, i64 %45, i64 %1)
store i64 %46, i64* %rax.0.reg2mem
br label LBL_16
LBL_12:
%48 = call i64 @FUNC(i64 %22, i64 0)
%49 = icmp eq i64 %48, 0
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_14, label LBL_13
LBL_13:
%51 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_5, i64 0, i64 0), i64 %21, i64 %34, i64 %2, i64 %1)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_16
LBL_14:
%52 = call i64 @FUNC(i64 0)
%53 = inttoptr i64 %5 to i64*
store i64 %48, i64* %53, align 8
%54 = call i64 @FUNC(i64 %26)
%55 = call i64 @FUNC(i64 %48)
%56 = trunc i64 %55 to i32
%57 = call i64 @FUNC(i64 %48)
%58 = call i64 @FUNC(i64 %26)
%59 = call i64 @FUNC()
%60 = icmp slt i32 %56, 0
%61 = icmp eq i1 %60, false
store i64 0, i64* %rax.0.reg2mem
br i1 %61, label LBL_16, label LBL_15
LBL_15:
%62 = and i64 %55, 4294967295
%63 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_6, i64 0, i64 0), i64 %62, i64 %34, i64 %2, i64 %1)
store i64 %62, i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %48, { 1, 0, 2, 3 }
uselistorder i64 %34, { 2, 1, 0 }
uselistorder i64 %21, { 1, 0 }
uselistorder i64* %sv_1, { 3, 0, 5, 4, 1, 6, 2 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64 %4, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %2, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 9, 1, 8, 7, 6, 5, 4, 3, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 4294967294, { 1, 0 }
uselistorder i64 (i64)* @aio_context_release, { 1, 0 }
uselistorder i64 (i64)* @aio_context_acquire, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @error_setg, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @bdrv_get_device_name, { 2, 1, 0 }
uselistorder i64 %arg1, { 2, 3, 1, 4, 0, 5 }
uselistorder label LBL_16, { 1, 0, 2, 3, 4, 5, 6, 7, 8 }
} | 0 |
BinRealVul | proc_show_options_7145 | proc_show_options | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = icmp eq i64* %arg2, null
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %3, i64 %2, i64 %1)
br label LBL_2
LBL_2:
%8 = add i64 %4, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = zext i32 %10 to i64
%13 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0), i64 %12, i64 %3, i64 %2, i64 %1)
br label LBL_4
LBL_4:
ret i64 0
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @seq_printf, { 1, 0 }
} | 0 |
BinRealVul | address_space_lookup_15328 | address_space_lookup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = trunc i64 %3 to i32
%5 = call i64* @bsearch(i64* nonnull %sv_0, i64* %arg1, i32 %4, i32 0, i32 (i64*, i64*)* inttoptr (i64 4198694 to i32 (i64*, i64*)*))
%6 = ptrtoint i64* %5 to i64
ret i64 %6
} | 1 |
BinRealVul | print_block_option_help_14026 | print_block_option_help | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg2)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 %arg2)
store i64 1, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%4 = inttoptr i64 %0 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 0, i64 %5)
%7 = icmp eq i64 %arg1, 0
store i64 %6, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_6, label LBL_3
LBL_3:
%8 = call i64 @FUNC(i64 %arg1, i64 1)
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%11 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i64 %arg1)
store i64 1, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%12 = inttoptr i64 %8 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %6, i64 %13)
store i64 %14, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%15 = call i64 @FUNC(i64 %sv_0.0.reload)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %6, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i64)* @append_option_parameters, { 1, 0 }
uselistorder i64 (i8*, i64)* @error_report, { 1, 0 }
uselistorder i64 %arg1, { 0, 2, 1 }
} | 1 |
BinRealVul | test_validate_fail_list_18639 | test_validate_fail_list | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
store i64 0, i64* %sv_1, align 8
store i64 0, i64* %sv_0, align 8
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([139 x i8], [139 x i8]* @gv_0, i64 0, i64 0))
%2 = call i64 @FUNC(i64 %1, i64* nonnull %sv_1, i64 0, i64* nonnull %sv_0)
%3 = load i64, i64* %sv_0, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = load i64, i64* %sv_0, align 8
%6 = call i64 @FUNC(i64 %5)
%7 = load i64, i64* %sv_1, align 8
%8 = call i64 @FUNC(i64 %7)
ret i64 %8
uselistorder i64* %sv_1, { 1, 0, 2 }
uselistorder i64* %sv_0, { 1, 2, 0, 3 }
} | 1 |
BinRealVul | util_resolve_sys_link_5310 | util_resolve_sys_link | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i8*
%storemerge5.reg2mem = alloca i32
%storemerge2.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%3 = bitcast i64* %arg2 to i8*
%4 = bitcast i64* %sv_1 to i8*
%5 = call i32 @readlink(i8* %3, i8* nonnull %4, i32 4096)
%6 = icmp sgt i32 %5, 0
%7 = icmp eq i32 %5, 4096
%8 = icmp eq i1 %7, false
%or.cond = icmp eq i1 %6, %8
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_7
LBL_1:
%9 = ptrtoint i64* %arg2 to i64
%10 = ptrtoint i64* %arg1 to i64
%11 = sext i32 %5 to i64
%12 = ptrtoint i64* %sv_1 to i64
%13 = add i64 %11, %12
%14 = inttoptr i64 %13 to i8*
store i8 0, i8* %14, align 1
%15 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_0, i64 0, i64 0), i64 %9, i64* nonnull %sv_1, i64 %2, i64 %1)
store i32 0, i32* %storemerge2.reg2mem
br label LBL_2
LBL_2:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%16 = mul i32 %storemerge2.reload, 3
%17 = sext i32 %16 to i64
%18 = add i64 %17, %12
%19 = inttoptr i64 %18 to i8*
%20 = call i32 @strncmp(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i32 3)
%21 = icmp eq i32 %20, 0
%22 = add i32 %storemerge2.reload, 1
store i32 %22, i32* %storemerge2.reg2mem
br i1 %21, label LBL_2, label LBL_3
LBL_3:
%23 = zext i32 %storemerge2.reload to i64
%24 = inttoptr i64 %18 to i64*
%25 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_2, i64 0, i64 0), i64 %9, i64* %24, i64 %23, i64 %1)
%26 = icmp slt i32 %storemerge2.reload, 0
store i32 0, i32* %storemerge5.reg2mem
br i1 %26, label LBL_6, label LBL_4
LBL_4:
%27 = call i8* @strrchr(i8* %3, i32 47)
%28 = icmp eq i8* %27, null
%29 = icmp eq i1 %28, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %29, label LBL_5, label LBL_7
LBL_5:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
store i8 0, i8* %27, align 1
%30 = add i32 %storemerge5.reload, 1
%31 = icmp sgt i32 %30, %storemerge2.reload
store i32 %30, i32* %storemerge5.reg2mem
store i8* %27, i8** %sv_0.0.lcssa.reg2mem
br i1 %31, label LBL_6, label LBL_4
LBL_6:
%sv_0.0.lcssa.reload = load i8*, i8** %sv_0.0.lcssa.reg2mem
%32 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_3, i64 0, i64 0), i64 %9, i64* %24, i64 %23, i64 %1)
%33 = ptrtoint i8* %sv_0.0.lcssa.reload to i64
%34 = add i64 %9, %arg3
%35 = sub i64 %34, %33
%36 = call i64 @FUNC(i64 %33, i64 %35, i64* nonnull @gv_4, i64 %18, i64 0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %33, { 1, 0 }
uselistorder i32 %storemerge2.reload, { 3, 4, 2, 1, 0 }
uselistorder i32 %5, { 2, 1, 0 }
uselistorder i64* %sv_1, { 0, 2, 1 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge5.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 3, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64*, i64, i64)* @dbg, { 2, 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_7, { 2, 0, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | js_defaultalloc_6632 | js_defaultalloc | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = inttoptr i64 %arg2 to i64*
%1 = call i64* @realloc(i64* %0, i32 %arg3)
%2 = ptrtoint i64* %1 to i64
ret i64 %2
} | 0 |
BinRealVul | solo_set_motion_block_3736 | solo_set_motion_block | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.04.reg2mem = alloca i32
%indvars.iv6.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%0 = call i64 @FUNC(i64 128, i64 0)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_6
LBL_1:
%3 = ptrtoint i64* %arg3 to i64
%4 = ptrtoint i64* %arg1 to i64
%5 = ptrtoint i64* %sv_1 to i64
%6 = add i64 %5, -16
%7 = inttoptr i64 %6 to i64*
store i64 0, i64* %indvars.iv6.reg2mem
store i32 0, i32* %sv_0.04.reg2mem
br label LBL_4
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%8 = add nuw nsw i64 %indvars.iv.reload, %26
%9 = mul i64 %8, 2
%10 = add i64 %9, %3
%11 = inttoptr i64 %10 to i16*
%12 = load i16, i16* %11, align 2
%13 = mul i64 %indvars.iv.reload, 2
%14 = add i64 %13, %0
%15 = zext i16 %12 to i64
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i16
%18 = inttoptr i64 %14 to i16*
store i16 %17, i16* %18, align 2
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 8
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%19 = call i64 @FUNC(i64 %4)
%20 = mul i64 %indvars.iv6.reload, 128
%21 = add i64 %19, %20
%22 = and i64 %21, 4294967295
store i64 0, i64* %7, align 8
%23 = call i64 @FUNC(i64 %4, i64 1, i64 %0, i64 %22, i64 128, i64 0)
%24 = trunc i64 %23 to i32
%25 = or i32 %sv_0.04.reload, %24
%indvars.iv.next7 = add nuw nsw i64 %indvars.iv6.reload, 1
%exitcond8 = icmp eq i64 %indvars.iv.next7, 8
store i64 %indvars.iv.next7, i64* %indvars.iv6.reg2mem
store i32 %25, i32* %sv_0.04.reg2mem
br i1 %exitcond8, label LBL_5, label LBL_4
LBL_4:
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%indvars.iv6.reload = load i64, i64* %indvars.iv6.reg2mem
%26 = mul i64 %indvars.iv6.reload, 8
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_5:
%27 = call i64 @FUNC(i64 %0)
%28 = zext i32 %25 to i64
store i64 %28, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %indvars.iv6.reload, { 2, 1, 0 }
uselistorder i32 %25, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %0, { 1, 2, 0, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i64 128, { 1, 0, 2 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | show_object_with_name_11231 | show_object_with_name | define i64 @FUNC(i64 %arg1, i64* %arg2, i64* %arg3, i8* %arg4) local_unnamed_addr {
LBL_0:
%storemerge.in6.reg2mem = alloca i64
%.reg2mem = alloca i8
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i8* %arg4 to i64
%3 = call i64 @FUNC(i64 %0, i64 %2)
%4 = call i64 @FUNC(i64 %1)
%5 = inttoptr i64 %arg1 to %_IO_FILE*
%6 = inttoptr i64 %4 to i8*
%7 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* %6)
%storemerge4 = inttoptr i64 %3 to i8*
%8 = load i8, i8* %storemerge4, align 1
%9 = icmp ne i8 %8, 0
%10 = icmp eq i8 %8, 10
%11 = icmp eq i1 %10, false
%or.cond5 = icmp eq i1 %9, %11
store i8 %8, i8* %.reg2mem
store i64 %3, i64* %storemerge.in6.reg2mem
br i1 %or.cond5, label LBL_1, label LBL_2
LBL_1:
%storemerge.in6.reload = load i64, i64* %storemerge.in6.reg2mem
%.reload = load i8, i8* %.reg2mem
%12 = sext i8 %.reload to i32
%13 = call i32 @fputc(i32 %12, %_IO_FILE* %5)
%14 = add i64 %storemerge.in6.reload, 1
%storemerge = inttoptr i64 %14 to i8*
%15 = load i8, i8* %storemerge, align 1
%16 = icmp ne i8 %15, 0
%17 = icmp eq i8 %15, 10
%18 = icmp eq i1 %17, false
%or.cond = icmp eq i1 %16, %18
store i8 %15, i8* %.reg2mem
store i64 %14, i64* %storemerge.in6.reg2mem
br i1 %or.cond, label LBL_1, label LBL_2
LBL_2:
%19 = call i32 @fputc(i32 10, %_IO_FILE* %5)
%20 = inttoptr i64 %3 to i64*
call void @free(i64* %20)
ret i64 ptrtoint (i32* @0 to i64)
uselistorder i64 %3, { 2, 0, 1 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.in6.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i8 10, { 1, 0 }
uselistorder i8 0, { 2, 0, 3, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | stdio_pclose_3530 | stdio_pclose | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i32
%0 = inttoptr i64 %arg1 to %_IO_FILE*
%1 = call i32 @pclose(%_IO_FILE* %0)
%2 = icmp eq i32 %1, -1
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i32* @__errno_location()
%5 = load i32, i32* %4, align 4
%6 = sub i32 0, %5
store i32 %6, i32* %sv_0.0.reg2mem
br label LBL_3
LBL_2:
%7 = and i32 %1, 65407
%8 = icmp eq i32 %7, 0
%spec.select = select i1 %8, i32 %1, i32 -5
store i32 %spec.select, i32* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%9 = call i64 @FUNC(i64 %arg1)
%10 = zext i32 %sv_0.0.reload to i64
ret i64 %10
uselistorder i32 %1, { 1, 0, 2 }
} | 0 |
BinRealVul | pvscsi_init_msi_15584 | pvscsi_init_msi | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %1, i64 0, i64 1, i64 1, i64 0)
%3 = trunc i64 %2 to i32
%4 = icmp slt i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = and i64 %2, 4294967295
%7 = call i64 @FUNC(i64 %6)
%8 = bitcast i64* %arg1 to i8*
store i8 0, i8* %8, align 1
br label LBL_3
LBL_2:
%9 = bitcast i64* %arg1 to i8*
store i8 1, i8* %9, align 1
br label LBL_3
LBL_3:
ret i64 %0
uselistorder i64 1, { 1, 0 }
} | 1 |
BinRealVul | gdlm_put_lock_4973 | gdlm_put_lock | 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
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %2)
store i64 %8, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%9 = call i64 @FUNC(i64 %2, i32 %5, i64 0, i64 0, i64 %2)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
store i64 %9, i64* %rax.0.reg2mem
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = add i64 %2, 24
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = add i64 %2, 16
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = zext i32 %17 to i64
%19 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_0, i64 0, i64 0), i64 %18, i64 %14, i32 %10, i64 %2, i64 %1)
store i64 %19, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 0, 2, 1, 4, 3, 5, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
} | 0 |
BinRealVul | ssl3_get_server_done_7950 | ssl3_get_server_done | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i32, i32* %0
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 %1, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_3
LBL_1:
%5 = icmp slt i64* %arg1, inttoptr (i64 1 to i64*)
store i64 1, i64* %rax.0.reg2mem
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %1, i64 4, i64 5)
%7 = call i64 @FUNC(i64 6, i64 7)
%8 = add i64 %1, 8
%9 = inttoptr i64 %8 to i32*
store i32 8, i32* %9, align 4
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | page_set_flags_5100 | page_set_flags | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.lcssa.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i64
%sv_1.05.reg2mem = alloca i64
%0 = icmp ult i64 %arg2, 4294967297
br i1 %0, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i32 35, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%1 = icmp ult i64 %arg1, %arg2
br i1 %1, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i32 36, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
%2 = call i64 @FUNC()
%3 = and i64 %arg1, 4294963200
%4 = add i64 %arg2, 4095
%5 = and i64 %4, 4294963200
%6 = sub nsw i64 %5, %3
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 %6, i64* %rax.0.lcssa.reg2mem
br i1 %8, label LBL_5, label LBL_10
LBL_5:
%9 = mul i32 %arg3, 2
%10 = and i32 %9, 2
%11 = or i32 %10, %arg3
%12 = urem i32 %arg3, 2
%13 = icmp eq i32 %12, 0
store i64 %6, i64* %sv_1.05.reg2mem
store i64 %3, i64* %sv_0.03.reg2mem
br label LBL_6
LBL_6:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%sv_1.05.reload = load i64, i64* %sv_1.05.reg2mem
%14 = udiv i64 %sv_0.03.reload, 4096
%15 = call i64 @FUNC(i64 %14, i64 1)
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = urem i32 %17, 2
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
%or.cond = or i1 %13, %20
br i1 %or.cond, label LBL_9, label LBL_7
LBL_7:
%21 = add i64 %15, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %23, 0
br i1 %24, label LBL_9, label LBL_8
LBL_8:
%25 = call i64 @FUNC(i64 %sv_0.03.reload, i64 0)
br label LBL_9
LBL_9:
store i32 %11, i32* %16, align 4
%26 = add i64 %sv_1.05.reload, -4096
%27 = add i64 %sv_0.03.reload, 4096
%28 = icmp eq i64 %26, 0
%29 = icmp eq i1 %28, false
store i64 %26, i64* %sv_1.05.reg2mem
store i64 %27, i64* %sv_0.03.reg2mem
store i64 %15, i64* %rax.0.lcssa.reg2mem
br i1 %29, label LBL_6, label LBL_10
LBL_10:
%rax.0.lcssa.reload = load i64, i64* %rax.0.lcssa.reg2mem
ret i64 %rax.0.lcssa.reload
uselistorder i64 %sv_0.03.reload, { 1, 0, 2 }
uselistorder i64 %6, { 1, 0, 2 }
uselistorder i64* %sv_1.05.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.03.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 1, 0 }
uselistorder i32 2, { 1, 2, 3, 0 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i32 %arg3, { 1, 2, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | initSSL_6558 | initSSL | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC()
%2 = trunc i64 %1 to i32
%3 = bitcast i64* %arg1 to i32*
store i32 %2, i32* %3, align 4
%4 = add i64 %0, 4
%5 = inttoptr i64 %4 to i32*
store i32 0, i32* %5, align 4
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
store i64 0, i64* %7, align 8
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i64*
store i64 0, i64* %9, align 8
%10 = add i64 %0, 24
%11 = inttoptr i64 %10 to i32*
store i32 0, i32* %11, align 4
%12 = add i64 %0, 28
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
%14 = add i64 %0, 32
%15 = call i64 @FUNC(i64 %14, i64 4198764, i64 %0)
ret i64 %15
} | 0 |
BinRealVul | ssi_create_slave_18681 | ssi_create_slave | define i64 @FUNC(i32* %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = ptrtoint i8* %arg2 to i64
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = call i64 @FUNC(i64 %2)
ret i64 %2
} | 1 |
BinRealVul | qvirtio_pci_device_enable_16692 | qvirtio_pci_device_enable | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0, i64 0, i64 0)
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i64*
store i64 %2, i64* %4, align 8
%5 = icmp eq i64 %2, 0
%6 = icmp eq i1 %5, false
%7 = zext i1 %6 to i64
%8 = call i64 @FUNC(i64 %7)
ret i64 %8
} | 1 |
BinRealVul | send_pin_code_neg_reply_4817 | send_pin_code_neg_reply | define i64 @FUNC(i64* %arg1, i64* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i8* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 1, i64 %1, i64 %0, i64 6)
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %5, label LBL_1, label LBL_4
LBL_1:
%6 = inttoptr i64 %3 to i64*
store i64 4198818, i64* %6, align 8
%7 = call i64 @FUNC(i64 %1, i64 2, i64 6, i64 %0)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %3)
br label LBL_3
LBL_3:
%12 = and i64 %7, 4294967295
store i64 %12, 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 }
} | 0 |
BinRealVul | cbus_init_2350 | cbus_init | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i32
%1 = call i64 @FUNC(i64 28)
%2 = add i64 %1, 24
%3 = inttoptr i64 %2 to i32*
store i32 %0, i32* %3, align 4
%4 = call i64 @FUNC(i64 4198747, i64 %1, i64 0)
%5 = trunc i64 %4 to i32
%6 = inttoptr i64 %1 to i32*
store i32 %5, i32* %6, align 4
%7 = call i64 @FUNC(i64 4198762, i64 %1, i64 0)
%8 = trunc i64 %7 to i32
%9 = add i64 %1, 4
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = call i64 @FUNC(i64 4198777, i64 %1, i64 0)
%12 = trunc i64 %11 to i32
%13 = add i64 %1, 8
%14 = inttoptr i64 %13 to i32*
store i32 %12, i32* %14, align 4
%15 = add i64 %1, 12
%16 = inttoptr i64 %15 to i32*
store i32 1, i32* %16, align 4
%17 = add i64 %1, 16
%18 = inttoptr i64 %17 to i32*
store i32 0, i32* %18, align 4
%19 = add i64 %1, 20
%20 = inttoptr i64 %19 to i32*
store i32 0, i32* %20, align 4
ret i64 %1
uselistorder i32 1, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @qemu_allocate_irq, { 2, 1, 0 }
} | 0 |
BinRealVul | save_display_set_7386 | save_display_set | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.reg2mem32 = alloca i64
%storemerge39.reg2mem = alloca i32
%.reg2mem30 = alloca i32
%.reg2mem28 = alloca i32
%.reg2mem26 = alloca i32
%.reg2mem24 = alloca i32
%storemerge48.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_0.0.in.in.reg2mem = alloca i64
%storemerge211.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%sv_2.2.reg2mem = alloca i32
%sv_3.1.reg2mem = alloca i32
%sv_4.1.reg2mem = alloca i32
%sv_4.212.reg2mem = alloca i32
%sv_3.213.reg2mem = alloca i32
%sv_2.314.reg2mem = alloca i32
%sv_1.215.reg2mem = alloca i32
%storemerge516.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%1 = icmp eq i64* %arg1, null
%2 = icmp eq i1 %1, false
store i64 %0, i64* %storemerge516.reg2mem
store i32 0, i32* %sv_1.215.reg2mem
store i32 0, i32* %sv_2.314.reg2mem
store i32 -1, i32* %sv_3.213.reg2mem
store i32 -1, i32* %sv_4.212.reg2mem
br i1 %2, label LBL_1, label LBL_20
LBL_1:
%sv_4.212.reload = load i32, i32* %sv_4.212.reg2mem
%storemerge516.reload = load i64, i64* %storemerge516.reg2mem
%3 = add i64 %storemerge516.reload, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = zext i32 %5 to i64
%7 = call i64 @FUNC(i64 %0, i64 %6)
%8 = inttoptr i64 %7 to i32*
%9 = icmp eq i32 %sv_4.212.reload, -1
%10 = icmp eq i1 %9, false
%11 = inttoptr i64 %storemerge516.reload to i32*
%12 = load i32, i32* %11, align 4
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%13 = add i64 %storemerge516.reload, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = load i32, i32* %8, align 4
%17 = add i64 %7, 4
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
store i32 %12, i32* %sv_4.1.reg2mem
store i32 %15, i32* %sv_3.1.reg2mem
store i32 %16, i32* %sv_2.2.reg2mem
store i32 %19, i32* %sv_1.1.reg2mem
br label LBL_4
LBL_3:
%sv_3.213.reload = load i32, i32* %sv_3.213.reg2mem
%sv_2.314.reload = load i32, i32* %sv_2.314.reg2mem
%sv_1.215.reload = load i32, i32* %sv_1.215.reg2mem
%20 = zext i32 %12 to i64
%21 = sext i32 %sv_4.212.reload to i64
%22 = icmp sgt i64 %21, %20
%23 = sub i32 %sv_4.212.reload, %12
%sv_4.0 = select i1 %22, i32 %12, i32 %sv_4.212.reload
%24 = select i1 %22, i32 %23, i32 0
%sv_2.0 = add i32 %24, %sv_2.314.reload
%25 = add i64 %storemerge516.reload, 4
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = zext i32 %27 to i64
%29 = sext i32 %sv_3.213.reload to i64
%30 = icmp sgt i64 %29, %28
%31 = sub i32 %sv_3.213.reload, %27
%sv_3.0 = select i1 %30, i32 %27, i32 %sv_3.213.reload
%32 = select i1 %30, i32 %31, i32 0
%sv_1.0 = add i32 %32, %sv_1.215.reload
%33 = load i32, i32* %8, align 4
%34 = add i32 %33, %12
%35 = add i32 %sv_2.0, %sv_4.0
%36 = icmp ugt i32 %34, %35
%37 = sub i32 %34, %sv_4.0
%spec.select6 = select i1 %36, i32 %37, i32 %sv_2.0
%38 = add i64 %7, 4
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = add i32 %40, %27
%42 = add i32 %sv_1.0, %sv_3.0
%43 = icmp ugt i32 %41, %42
%44 = sub i32 %41, %sv_3.0
%spec.select7 = select i1 %43, i32 %44, i32 %sv_1.0
store i32 %sv_4.0, i32* %sv_4.1.reg2mem
store i32 %sv_3.0, i32* %sv_3.1.reg2mem
store i32 %spec.select6, i32* %sv_2.2.reg2mem
store i32 %spec.select7, i32* %sv_1.1.reg2mem
br label LBL_4
LBL_4:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%sv_2.2.reload = load i32, i32* %sv_2.2.reg2mem
%sv_3.1.reload = load i32, i32* %sv_3.1.reg2mem
%sv_4.1.reload = load i32, i32* %sv_4.1.reg2mem
%45 = add i64 %storemerge516.reload, 16
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = icmp eq i64 %47, 0
%49 = icmp eq i1 %48, false
store i64 %47, i64* %storemerge516.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.215.reg2mem
store i32 %sv_2.2.reload, i32* %sv_2.314.reg2mem
store i32 %sv_3.1.reload, i32* %sv_3.213.reg2mem
store i32 %sv_4.1.reload, i32* %sv_4.212.reg2mem
br i1 %49, label LBL_1, label LBL_5
LBL_5:
%50 = icmp slt i32 %sv_4.1.reload, 0
br i1 %50, label LBL_20, label LBL_6
LBL_6:
%51 = mul i32 %sv_2.2.reload, 4
%52 = mul i32 %51, %sv_1.1.reload
%53 = sext i32 %52 to i64
%54 = call i64 @FUNC(i64 %53)
store i64 %54, i64* %sv_6, align 8
%55 = icmp eq i32 %52, 0
%56 = icmp eq i1 %55, false
store i64 %53, i64* %storemerge211.reg2mem
store i64 %54, i64* %.reg2mem32
br i1 %56, label LBL_7, label LBL_19
LBL_7:
%storemerge211.reload = load i64, i64* %storemerge211.reg2mem
%57 = add i64 %storemerge211.reload, 8
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = zext i32 %59 to i64
%61 = call i64 @FUNC(i64 %0, i64 %60)
%62 = inttoptr i64 %storemerge211.reload to i32*
%63 = load i32, i32* %62, align 4
%64 = add i64 %storemerge211.reload, 4
%65 = inttoptr i64 %64 to i32*
%66 = load i32, i32* %65, align 4
%67 = add i64 %61, 8
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = zext i32 %69 to i64
%71 = call i64 @FUNC(i64 %0, i64 %70)
%72 = icmp eq i64 %71, 0
%73 = icmp eq i1 %72, false
%spec.select = select i1 %73, i64 %71, i64 ptrtoint (i64* @gv_0 to i64)
%74 = add i64 %61, 12
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
store i64 %spec.select, i64* %sv_0.0.in.in.reg2mem
switch i32 %76, label LBL_9 [
i32 2, label LBL_10
i32 8, label LBL_8
]
LBL_8:
%77 = add i64 %spec.select, 8
store i64 %77, i64* %sv_0.0.in.in.reg2mem
br label LBL_10
LBL_9:
%78 = add i64 %spec.select, 16
store i64 %78, i64* %sv_0.0.in.in.reg2mem
br label LBL_10
LBL_10:
%79 = add i64 %61, 4
%80 = inttoptr i64 %79 to i32*
%81 = load i32, i32* %80, align 4
%82 = icmp eq i32 %81, 0
br i1 %82, label LBL_17, label LBL_11
LBL_11:
%83 = inttoptr i64 %61 to i32*
%84 = sub i32 %63, %sv_4.1.reload
%85 = sub i32 %66, %sv_3.1.reload
%sv_0.0.in.in.reload = load i64, i64* %sv_0.0.in.in.reg2mem
%sv_0.0.in = inttoptr i64 %sv_0.0.in.in.reload to i64*
%sv_0.0 = load i64, i64* %sv_0.0.in, align 8
%86 = add i64 %61, 16
%87 = inttoptr i64 %86 to i64*
%.pre = load i32, i32* %83, align 4
store i32 %81, i32* %.reg2mem28
store i32 %.pre, i32* %.reg2mem30
store i32 0, i32* %storemerge39.reg2mem
br label LBL_15
LBL_12:
%storemerge48.reload = load i32, i32* %storemerge48.reg2mem
%.reload = load i32, i32* %.reg2mem
%88 = load i64, i64* %87, align 8
%89 = mul i32 %.reload, %storemerge39.reload
%90 = add i32 %89, %storemerge48.reload
%91 = sext i32 %90 to i64
%92 = mul i64 %91, 4
%93 = add i64 %92, %88
%94 = inttoptr i64 %93 to i32*
%95 = load i32, i32* %94, align 4
%96 = zext i32 %95 to i64
%97 = mul i64 %96, 4
%98 = add i64 %97, %sv_0.0
%99 = load i64, i64* %sv_6, align 8
%100 = add i32 %119, %storemerge48.reload
%101 = sext i32 %100 to i64
%102 = mul i64 %101, 4
%103 = add i64 %99, %102
%104 = inttoptr i64 %98 to i32*
%105 = load i32, i32* %104, align 4
%106 = inttoptr i64 %103 to i32*
store i32 %105, i32* %106, align 4
%107 = add i32 %storemerge48.reload, 1
%108 = load i32, i32* %83, align 4
%109 = zext i32 %108 to i64
%110 = sext i32 %107 to i64
%111 = icmp slt i64 %110, %109
store i32 %108, i32* %.reg2mem
store i32 %107, i32* %storemerge48.reg2mem
br i1 %111, label LBL_12, label LBL_13
LBL_13:
%.pre20 = load i32, i32* %80, align 4
store i32 %.pre20, i32* %.reg2mem24
store i32 %108, i32* %.reg2mem26
br label LBL_14
LBL_14:
%.reload27 = load i32, i32* %.reg2mem26
%.reload25 = load i32, i32* %.reg2mem24
%112 = add i32 %storemerge39.reload, 1
%113 = zext i32 %.reload25 to i64
%114 = sext i32 %112 to i64
%115 = icmp slt i64 %114, %113
store i32 %.reload25, i32* %.reg2mem28
store i32 %.reload27, i32* %.reg2mem30
store i32 %112, i32* %storemerge39.reg2mem
br i1 %115, label LBL_15, label LBL_17
LBL_15:
%storemerge39.reload = load i32, i32* %storemerge39.reg2mem
%.reload31 = load i32, i32* %.reg2mem30
%.reload29 = load i32, i32* %.reg2mem28
%116 = icmp eq i32 %.reload31, 0
store i32 %.reload29, i32* %.reg2mem24
store i32 0, i32* %.reg2mem26
br i1 %116, label LBL_14, label LBL_12.lr.ph
LBL_16:
%117 = add i32 %85, %storemerge39.reload
%118 = mul i32 %117, %sv_2.2.reload
%119 = add i32 %84, %118
store i32 %.reload31, i32* %.reg2mem
store i32 0, i32* %storemerge48.reg2mem
br label LBL_12
LBL_17:
%120 = add i64 %storemerge211.reload, 16
%121 = inttoptr i64 %120 to i64*
%122 = load i64, i64* %121, align 8
%123 = icmp eq i64 %122, 0
%124 = icmp eq i1 %123, false
store i64 %122, i64* %storemerge211.reg2mem
br i1 %124, label LBL_7, label LBL_18
LBL_18:
%.pre21 = load i64, i64* %sv_6, align 8
store i64 %.pre21, i64* %.reg2mem32
br label LBL_19
LBL_19:
%.reload33 = load i64, i64* %.reg2mem32
%125 = load i32, i32* @gv_1, align 4
%126 = zext i32 %125 to i64
%127 = bitcast i64* %sv_5 to i8*
%128 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %127, i32 32, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_2, i64 0, i64 0), i64 %126)
%129 = call i64 @FUNC(i64* nonnull %sv_5, i64 %.reload33, i32 %sv_2.2.reload, i32 %sv_1.1.reload)
%130 = call i64 @FUNC(i64* nonnull %sv_6)
br label LBL_20
LBL_20:
store i32 ptrtoint (i32* @gv_3 to i32), i32* @gv_1, align 4
ret i64 ptrtoint (i32* @gv_3 to i64)
uselistorder i32 %.reload31, { 1, 0 }
uselistorder i32 %storemerge39.reload, { 0, 2, 1 }
uselistorder i32 %storemerge48.reload, { 2, 0, 1 }
uselistorder i32* %83, { 1, 0 }
uselistorder i64 %spec.select, { 2, 1, 0 }
uselistorder i64 %61, { 0, 3, 1, 2, 4 }
uselistorder i64 %storemerge211.reload, { 0, 2, 1, 3 }
uselistorder i32 %sv_4.1.reload, { 1, 0, 2 }
uselistorder i32 %sv_2.2.reload, { 1, 0, 2, 3 }
uselistorder i32 %sv_1.0, { 1, 0 }
uselistorder i32 %sv_3.0, { 0, 2, 1 }
uselistorder i32 %sv_2.0, { 1, 0 }
uselistorder i32 %sv_4.0, { 0, 2, 1 }
uselistorder i32 %sv_3.213.reload, { 0, 2, 1 }
uselistorder i32 %12, { 1, 2, 3, 4, 0 }
uselistorder i32* %8, { 1, 0 }
uselistorder i64 %storemerge516.reload, { 0, 1, 3, 2, 4 }
uselistorder i32 %sv_4.212.reload, { 0, 3, 2, 1 }
uselistorder i64* %sv_6, { 1, 0, 2, 3 }
uselistorder i64 %0, { 1, 2, 3, 0 }
uselistorder i64* %storemerge516.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.215.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.314.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_3.213.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_4.212.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge211.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.in.in.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* %.reg2mem, { 2, 1, 0 }
uselistorder i32* %storemerge48.reg2mem, { 2, 1, 0 }
uselistorder i32* %.reg2mem24, { 2, 0, 1 }
uselistorder i32* %.reg2mem26, { 2, 0, 1 }
uselistorder i64* %.reg2mem32, { 0, 2, 1 }
uselistorder i32* @gv_3, { 1, 0 }
uselistorder i32* @gv_1, { 1, 0 }
uselistorder i64 16, { 1, 0, 2, 3 }
uselistorder i64 (i64, i64)* @get_region, { 1, 0 }
uselistorder i32 -1, { 2, 0, 1 }
uselistorder i32 0, { 2, 1, 5, 0, 6, 7, 12, 8, 9, 3, 4, 10, 11 }
uselistorder i1 false, { 3, 2, 1, 5, 4, 0 }
uselistorder label LBL_20, { 1, 2, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_10, { 1, 2, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | pty_chr_close_2797 | pty_chr_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %2, i64 0)
%6 = and i64 %1, 4294967295
%7 = call i64 @FUNC(i64 %6)
%8 = trunc i64 %7 to i32
%9 = call i64 @FUNC(i64 %6)
%10 = call i32 @close(i32 %8)
%11 = add i64 %2, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_2, label LBL_1
LBL_1:
%15 = zext i32 %13 to i64
%16 = call i64 @FUNC(i64 %15)
store i32 0, i32* %12, align 4
br label LBL_2
LBL_2:
%17 = call i64 @FUNC(i64 %3)
%18 = call i64 @FUNC(i64 %2)
%19 = call i64 @FUNC(i64 %2, i64 0)
ret i64 %19
uselistorder i64 %6, { 1, 0 }
uselistorder i64 %2, { 1, 0, 2, 3, 4 }
} | 0 |
BinRealVul | rtnetlink_rcv_msg_12173 | rtnetlink_rcv_msg | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %1 to i32
%5 = icmp slt i32 %4, 256
store i64 95, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_8
LBL_1:
%6 = ptrtoint i64* %arg2 to i64
%7 = call i64 @FUNC(i64 %6)
%8 = trunc i64 %7 to i32
%9 = icmp ult i32 %8, 4
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_8, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %6)
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = urem i32 %4, 4
%14 = icmp eq i32 %13, 2
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = add i64 %3, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17, i64 1)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
store i64 1, i64* %rax.0.reg2mem
br i1 %21, label LBL_7, label LBL_8
LBL_4:
%22 = add i64 %6, 4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = urem i32 %24, 2
%26 = icmp eq i32 %25, 0
br i1 %26, label LBL_7, label LBL_5
LBL_5:
%27 = and i64 %1, 4294967295
%28 = zext i32 %12 to i64
%29 = call i64 @FUNC(i64 %28, i64 %27)
%30 = icmp eq i64 %29, 0
%31 = icmp eq i1 %30, false
store i64 95, i64* %rax.0.reg2mem
br i1 %31, label LBL_6, label LBL_8
LBL_6:
%32 = call i64 @FUNC(i64 %28, i64 %27)
%33 = call i64 @FUNC()
%34 = inttoptr i64 %3 to i64*
%35 = load i64, i64* %34, align 8
store i64 %29, i64* %sv_0, align 8
%36 = call i64 @FUNC(i64 %35, i64 %2, i64 %6, i64* nonnull %sv_0)
%37 = call i64 @FUNC()
%38 = and i64 %36, 4294967295
store i64 %38, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%39 = and i64 %1, 4294967295
%40 = zext i32 %12 to i64
%41 = call i64 @FUNC(i64 %40, i64 %39)
%42 = icmp eq i64 %41, 0
%43 = icmp eq i1 %42, false
%. = select i1 %43, i64 %2, i64 95
store i64 %., 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 %27, { 1, 0 }
uselistorder i32 %12, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %1, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 6, 2, 3, 4, 5 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i64 95, { 2, 0, 1 }
uselistorder label LBL_8, { 0, 5, 1, 2, 3, 4 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | cpu_ppc_set_papr_16561 | cpu_ppc_set_papr | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %0, -3
store i64 %1, i64* %arg1, align 8
%2 = load i64, i64* @gv_0, align 8
%3 = inttoptr i64 %2 to i64*
store i64 -1, i64* %3, align 8
%4 = add i64 %0, 32
%5 = inttoptr i64 %4 to i64*
store i64 -1, i64* %5, align 8
%6 = call i64 @FUNC()
%7 = trunc i64 %6 to i8
%8 = icmp eq i8 %7, 0
store i64 %6, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %0)
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
} | 1 |
BinRealVul | vnc_client_read_15086 | vnc_client_read | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_1, label LBL_3
LBL_1:
%6 = add i64 %2, 32
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_12, label LBL_2
LBL_2:
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i64*
%12 = add i64 %2, 24
%13 = inttoptr i64 %12 to i64*
%14 = bitcast i64* %rdi to i32*
%15 = trunc i64 %2 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
%sext = mul i64 %2, 4294967296
%18 = ashr exact i64 %sext, 32
br label LBL_11
LBL_3:
%19 = trunc i64 %1 to i32
%20 = icmp eq i32 %19, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %20, label LBL_12, label LBL_4
LBL_4:
%21 = call i64 @FUNC(i64 %2)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_12
LBL_5:
%22 = load i32, i32* %14, align 8
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_7, label LBL_6
LBL_6:
%24 = call i64 @FUNC(i64 %2)
store i64 %24, i64* %rax.0.reg2mem
br label LBL_12
LBL_7:
br i1 %17, label LBL_10, label LBL_8
LBL_8:
%25 = call i64 @FUNC(i64 %10, i64 %29)
br label LBL_9
LBL_9:
%26 = load i64, i64* %7, align 8
%27 = icmp eq i64 %26, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %27, label LBL_12, label LBL_11
LBL_10:
store i64 %18, i64* %13, align 8
br label LBL_9
LBL_11:
%28 = load i64, i64* %11, align 8
%29 = load i64, i64* %13, align 8
%30 = icmp ult i64 %28, %29
%31 = icmp eq i1 %30, false
store i64 %29, i64* %rax.0.reg2mem
br i1 %31, label LBL_5, label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %29, { 0, 2, 1 }
uselistorder i64* %13, { 1, 0 }
uselistorder i64* %7, { 1, 0 }
uselistorder i64 %2, { 3, 2, 0, 1, 5, 4, 6, 7 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 6, 4, 5, 3 }
uselistorder i64 (i64)* @vnc_disconnect_finish, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder label LBL_12, { 1, 0, 5, 4, 3, 2 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | idiv32_14062 | idiv32 | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = sext i32 %arg3 to i64
%1 = udiv i64 %arg2, %0
%2 = trunc i64 %1 to i32
%3 = bitcast i64* %arg1 to i32*
store i32 %2, i32* %3, align 4
%4 = urem i64 %arg2, %0
ret i64 %4
uselistorder i64 %0, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
} | 1 |
BinRealVul | vt_io_fontreset_12885 | vt_io_fontreset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 0)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
store i64 4294967258, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = bitcast i64* %arg1 to i32*
store i32 1, i32* %4, align 4
%5 = add i64 %3, 8
%6 = inttoptr i64 %5 to i64*
store i64 0, i64* %6, align 8
%7 = load i32, i32* @gv_0, align 4
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 8
%10 = add i64 %9, ptrtoint (i64* @gv_1 to i64)
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12, i64 %3)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = and i64 %13, 4294967295
store i64 %16, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%17 = call i64 @FUNC()
%18 = load i32, i32* @gv_0, align 4
%19 = sext i32 %18 to i64
%20 = mul i64 %19, 8
%21 = add i64 %20, ptrtoint (i64* @gv_1 to i64)
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %23)
%25 = call i64 @FUNC()
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* @gv_0, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | _process_tokenize_12848 | _process_tokenize | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.ph6.reg2mem = alloca i64
%sv_1.1.ph.ph9.reg2mem = alloca i32
%sv_0.0.ph13.reg2mem = alloca i64
%sv_2.1.ph14.reg2mem = alloca i32
%sv_2.1.ph.be.reg2mem = alloca i32
%.pn.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_0.0.ph.ph19.reg2mem = alloca i64
%sv_1.1.ph.ph20.reg2mem = alloca i32
%sv_2.1.ph.ph21.reg2mem = alloca i32
%sv_2.1.ph.ph.be.reg2mem = alloca i32
%sv_1.1.ph.ph.be.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = trunc i64 %6 to i32
%8 = add i32 %7, -2
%9 = icmp slt i32 %8, 1024
%spec.select = select i1 %9, i32 %8, i32 1024
%10 = sext i32 %spec.select to i64
%11 = add i64 %10, %3
%12 = icmp eq i32 %spec.select, 0
%13 = icmp eq i1 %12, false
%14 = add i64 %3, 16
store i32 0, i32* %sv_2.1.ph.ph21.reg2mem
store i32 0, i32* %sv_1.1.ph.ph20.reg2mem
store i64 %3, i64* %sv_0.0.ph.ph19.reg2mem
store i32 0, i32* %sv_1.1.ph.ph9.reg2mem
store i64 %3, i64* %sv_0.0.ph6.reg2mem
br i1 %13, label LBL_4, label LBL_10
LBL_1:
%15 = inttoptr i64 %sv_0.0.ph13.reload to i8*
%16 = load i8, i8* %15, align 1
%17 = icmp eq i8 %16, 32
store i32 %sv_1.1.ph.ph20.reload, i32* %sv_1.0.reg2mem
store i32 0, i32* %sv_2.0.reg2mem
br i1 %17, label LBL_5, label LBL_2
LBL_2:
%18 = sub i64 %sv_0.0.ph13.reload, %3
%19 = trunc i64 %18 to i32
%20 = sext i32 %sv_1.1.ph.ph20.reload to i64
%21 = mul i64 %20, 4
%22 = add i64 %21, %14
%23 = inttoptr i64 %22 to i32*
store i32 %19, i32* %23, align 4
%24 = add i32 %sv_1.1.ph.ph20.reload, 1
%25 = sext i32 %24 to i64
%26 = icmp eq i64 %25, %arg2
%27 = icmp eq i1 %26, false
store i32 %24, i32* %sv_1.1.ph.ph.be.reg2mem
store i32 2, i32* %sv_2.1.ph.ph.be.reg2mem
store i32 %24, i32* %sv_1.0.reg2mem
store i32 1, i32* %sv_2.0.reg2mem
br i1 %27, label LBL_5, label LBL_3
LBL_3:
%sv_2.1.ph.ph.be.reload = load i32, i32* %sv_2.1.ph.ph.be.reg2mem
%sv_1.1.ph.ph.be.reload = load i32, i32* %sv_1.1.ph.ph.be.reg2mem
%sv_0.0.ph.ph.be = add i64 %sv_0.0.ph13.reload, 1
%28 = icmp eq i64 %sv_0.0.ph.ph.be, %11
%29 = icmp eq i1 %28, false
store i32 %sv_2.1.ph.ph.be.reload, i32* %sv_2.1.ph.ph21.reg2mem
store i32 %sv_1.1.ph.ph.be.reload, i32* %sv_1.1.ph.ph20.reg2mem
store i64 %sv_0.0.ph.ph.be, i64* %sv_0.0.ph.ph19.reg2mem
store i32 %sv_1.1.ph.ph.be.reload, i32* %sv_1.1.ph.ph9.reg2mem
store i64 %sv_0.0.ph.ph.be, i64* %sv_0.0.ph6.reg2mem
br i1 %29, label LBL_4, label LBL_10
LBL_4:
%sv_0.0.ph.ph19.reload = load i64, i64* %sv_0.0.ph.ph19.reg2mem
%sv_1.1.ph.ph20.reload = load i32, i32* %sv_1.1.ph.ph20.reg2mem
%sv_2.1.ph.ph21.reload = load i32, i32* %sv_2.1.ph.ph21.reg2mem
store i32 %sv_2.1.ph.ph21.reload, i32* %sv_2.1.ph14.reg2mem
store i64 %sv_0.0.ph.ph19.reload, i64* %sv_0.0.ph13.reg2mem
br label LBL_9
LBL_5:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.ph.ph.be.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.1.ph.ph.be.reg2mem
br label LBL_3
LBL_6:
%30 = inttoptr i64 %sv_0.0.ph13.reload to i8*
%31 = load i8, i8* %30, align 1
%32 = icmp ne i8 %31, 32
%33 = zext i1 %32 to i64
%spec.select2 = zext i1 %32 to i32
store i64 %33, i64* %.pn.reg2mem
store i32 %spec.select2, i32* %sv_2.1.ph.be.reg2mem
br label LBL_8
LBL_7:
%34 = inttoptr i64 %sv_0.0.ph13.reload to i8*
%35 = load i8, i8* %34, align 1
%36 = icmp eq i8 %35, 32
store i64 1, i64* %.pn.reg2mem
store i32 2, i32* %sv_2.1.ph.be.reg2mem
store i32 %sv_1.1.ph.ph20.reload, i32* %sv_1.1.ph.ph9.reg2mem
store i64 %sv_0.0.ph13.reload, i64* %sv_0.0.ph6.reg2mem
br i1 %36, label LBL_10, label LBL_8
LBL_8:
%sv_2.1.ph.be.reload = load i32, i32* %sv_2.1.ph.be.reg2mem
%.pn.reload = load i64, i64* %.pn.reg2mem
%sv_0.0.ph.be = add i64 %.pn.reload, %sv_0.0.ph13.reload
%37 = icmp eq i64 %sv_0.0.ph.be, %11
%38 = icmp eq i1 %37, false
store i32 %sv_2.1.ph.be.reload, i32* %sv_2.1.ph14.reg2mem
store i64 %sv_0.0.ph.be, i64* %sv_0.0.ph13.reg2mem
store i32 %sv_1.1.ph.ph20.reload, i32* %sv_1.1.ph.ph9.reg2mem
store i64 %sv_0.0.ph.be, i64* %sv_0.0.ph6.reg2mem
br i1 %38, label LBL_9, label LBL_10
LBL_9:
%sv_0.0.ph13.reload = load i64, i64* %sv_0.0.ph13.reg2mem
%sv_2.1.ph14.reload = load i32, i32* %sv_2.1.ph14.reg2mem
switch i32 %sv_2.1.ph14.reload, label %infloop [
i32 2, label LBL_7
i32 0, label LBL_1
i32 1, label LBL_6
]
LBL_10:
%sv_0.0.ph6.reload = load i64, i64* %sv_0.0.ph6.reg2mem
%sv_1.1.ph.ph9.reload = load i32, i32* %sv_1.1.ph.ph9.reg2mem
%39 = sub i64 %sv_0.0.ph6.reload, %3
%40 = and i64 %39, 4294967295
%41 = sext i32 %sv_1.1.ph.ph9.reload to i64
%42 = trunc i64 %39 to i32
%43 = mul i64 %41, 4
%44 = add i64 %43, %14
%45 = inttoptr i64 %44 to i32*
store i32 %42, i32* %45, align 4
%46 = add i64 %3, 416
%47 = inttoptr i64 %46 to i32*
store i32 %sv_1.1.ph.ph9.reload, i32* %47, align 4
%48 = zext i32 %sv_1.1.ph.ph9.reload to i64
%49 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_1, i64 0, i64 0), i64 %48, i64 %40, i64 %2, i64 %1)
ret i64 0
uselistorder i64 %sv_0.0.ph13.reload, { 4, 5, 6, 1, 2, 0, 3 }
uselistorder i1 %32, { 1, 0 }
uselistorder i32 %sv_1.1.ph.ph20.reload, { 1, 0, 2, 4, 3 }
uselistorder i64 %11, { 1, 0 }
uselistorder i64 %3, { 5, 6, 4, 0, 1, 3, 2, 7 }
uselistorder i32* %sv_1.1.ph.ph.be.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.1.ph.ph.be.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.1.ph.ph21.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.1.ph.ph20.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.ph.ph19.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.1.ph.ph9.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64* %sv_0.0.ph6.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 2, { 2, 0, 1 }
uselistorder i8 32, { 0, 2, 1 }
uselistorder i1 false, { 3, 1, 2, 0 }
uselistorder i32 0, { 4, 1, 0, 2, 3, 5 }
uselistorder label %infloop, { 1, 0 }
uselistorder label LBL_10, { 2, 1, 0, 3 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | cris_cpu_class_init_2421 | cris_cpu_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 4198669, i64* %arg1, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 4198683, i64* %4, align 8
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i64*
store i64 4198690, i64* %6, align 8
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i64*
store i64 4198697, i64* %8, align 8
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i64*
store i64 4198704, i64* %10, align 8
%11 = add i64 %0, 48
%12 = inttoptr i64 %11 to i64*
store i64 4198711, i64* %12, align 8
%13 = add i64 %0, 56
%14 = inttoptr i64 %13 to i64*
store i64 4198718, i64* %14, align 8
%15 = add i64 %0, 64
%16 = inttoptr i64 %15 to i64*
store i64 4198725, i64* %16, align 8
%17 = add i64 %0, 80
%18 = inttoptr i64 %17 to i64*
store i64 4198739, i64* %18, align 8
store i64 ptrtoint (i64* @gv_0 to i64), i64* %2, align 8
%19 = add i64 %0, 72
%20 = inttoptr i64 %19 to i32*
store i32 49, i32* %20, align 4
%21 = add i64 %0, 76
%22 = inttoptr i64 %21 to i8*
store i8 1, i8* %22, align 1
%23 = add i64 %0, 88
%24 = inttoptr i64 %23 to i64*
store i64 4198746, i64* %24, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }
} | 0 |
BinRealVul | ff_rtp_send_aac_14027 | ff_rtp_send_aac | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%sv_0.113.reg2mem = alloca i64
%sv_1.114.reg2mem = alloca i64
%.reg2mem16 = alloca i32
%.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg3, 4294967296
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i32*
%5 = add i64 %3, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, 0
%spec.select = select i1 %8, i32 5, i32 %7
%9 = mul i32 %spec.select, 2
%10 = add i32 %9, 2
%11 = trunc i64 %0 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
%sext5 = add i64 %sext, -30064771072
%sv_1.0.in = select i1 %13, i64 %sext, i64 %sext5
%sv_1.0 = ashr exact i64 %sv_1.0.in, 32
%14 = load i32, i32* %4, align 4
%15 = add i64 %3, 16
%16 = inttoptr i64 %15 to i64*
%17 = add i64 %3, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = add i64 %3, 24
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %spec.select, %22
br i1 %23, label LBL_3, label LBL_1
LBL_1:
%24 = load i64, i64* %16, align 8
%25 = sub i64 %24, %19
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_6, label LBL_2
LBL_2:
%28 = trunc i64 %sv_1.0 to i32
%29 = add i32 %26, %28
%30 = icmp ugt i32 %29, %14
br i1 %30, label LBL_3, label LBL_6
LBL_3:
%31 = mul i32 %22, 2
%32 = sext i32 %10 to i64
%33 = sext i32 %31 to i64
%34 = sub nsw i64 %32, %33
%35 = add nsw i64 %34, -2
%36 = icmp eq i64 %35, 0
br i1 %36, label LBL_5, label LBL_4
LBL_4:
%37 = add i64 %19, 2
%38 = add i64 %34, %19
%39 = inttoptr i64 %38 to i64*
%40 = inttoptr i64 %37 to i64*
%41 = call i64* @memmove(i64* %39, i64* %40, i32 %31)
br label LBL_5
LBL_5:
%42 = add i64 %35, %19
%43 = inttoptr i64 %42 to i8*
store i8 0, i8* %43, align 1
%44 = add i64 %42, 1
%.tr = trunc i32 %22 to i8
%45 = mul i8 %.tr, 16
%46 = inttoptr i64 %44 to i8*
store i8 %45, i8* %46, align 1
%47 = load i64, i64* %16, align 8
%48 = sub i64 %47, %42
%49 = and i64 %48, 4294967295
%50 = call i64 @FUNC(i64 %0, i64 %42, i64 %49, i64 1)
store i32 0, i32* %21, align 4
%.pre = load i64, i64* %18, align 8
store i64 %32, i64* %.pre-phi.reg2mem
store i64 %.pre, i64* %.reg2mem
br label LBL_8
LBL_6:
%51 = icmp eq i32 %22, 0
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_9, label LBL_6.LBL_8_crit_edge
LBL_7:
%.pre15 = sext i32 %10 to i64
store i64 %.pre15, i64* %.pre-phi.reg2mem
store i64 %19, i64* %.reg2mem
br label LBL_8
LBL_8:
%.reload = load i64, i64* %.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%53 = add i64 %.reload, %.pre-phi.reload
store i64 %53, i64* %16, align 8
%54 = add i64 %3, 28
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = add i64 %3, 32
%58 = inttoptr i64 %57 to i32*
store i32 %56, i32* %58, align 4
br label LBL_9
LBL_9:
%59 = ptrtoint i64* %arg2 to i64
%60 = add i64 %59, 7
%sv_0.0 = select i1 %13, i64 %59, i64 %60
%61 = sub i32 %14, %10
%62 = trunc i64 %sv_1.0 to i32
%63 = icmp slt i32 %61, %62
br i1 %63, label LBL_11, label LBL_10
LBL_10:
%64 = load i64, i64* %18, align 8
%65 = load i32, i32* %21, align 4
%66 = add i32 %65, 1
store i32 %66, i32* %21, align 4
%67 = mul i32 %65, 2
%68 = sext i32 %67 to i64
%69 = add i64 %64, 2
%70 = add i64 %69, %68
%71 = udiv i64 %sv_1.0, 32
%72 = trunc i64 %71 to i8
%73 = add i64 %70, 1
%74 = inttoptr i64 %70 to i8*
store i8 %72, i8* %74, align 1
%75 = udiv i64 %sv_1.0.in, 536870912
%76 = trunc i64 %75 to i8
%77 = inttoptr i64 %73 to i8*
store i8 %76, i8* %77, align 1
%78 = load i64, i64* %16, align 8
%79 = inttoptr i64 %78 to i64*
%80 = inttoptr i64 %sv_0.0 to i64*
%81 = call i64* @memcpy(i64* %79, i64* %80, i32 %62)
%82 = load i64, i64* %16, align 8
%83 = add i64 %82, %sv_1.0
store i64 %83, i64* %16, align 8
store i64 %3, i64* %rax.1.reg2mem
br label LBL_14
LBL_11:
%84 = load i32, i32* %4, align 4
%85 = load i64, i64* %18, align 8
%86 = inttoptr i64 %85 to i8*
store i8 0, i8* %86, align 1
%87 = add i64 %85, 1
%88 = inttoptr i64 %87 to i8*
store i8 16, i8* %88, align 1
%89 = icmp eq i32 %62, 0
%90 = icmp slt i32 %62, 0
%91 = icmp eq i1 %90, false
%92 = icmp eq i1 %89, false
%93 = icmp eq i1 %91, %92
store i64 %87, i64* %rax.1.reg2mem
br i1 %93, label LBL_12, label LBL_14
LBL_12:
%94 = add i32 %84, -4
%95 = udiv i64 %sv_1.0.in, 137438953472
%96 = zext i32 %94 to i64
%97 = trunc i64 %95 to i8
%98 = add i64 %85, 2
%99 = inttoptr i64 %98 to i8*
%100 = add i64 %85, 3
%101 = udiv i64 %sv_1.0.in, 536870912
%102 = trunc i64 %101 to i8
%103 = inttoptr i64 %100 to i8*
%104 = add i64 %85, 4
%105 = inttoptr i64 %104 to i64*
store i32 %62, i32* %.reg2mem16
store i64 %sv_1.0, i64* %sv_1.114.reg2mem
store i64 %sv_0.0, i64* %sv_0.113.reg2mem
br label LBL_13
LBL_13:
%sv_0.113.reload = load i64, i64* %sv_0.113.reg2mem
%sv_1.114.reload = load i64, i64* %sv_1.114.reg2mem
%.reload17 = load i32, i32* %.reg2mem16
%106 = and i64 %sv_1.114.reload, 4294967295
%107 = call i64 @FUNC(i64 %106, i64 %96)
%108 = trunc i64 %107 to i32
store i8 %97, i8* %99, align 1
store i8 %102, i8* %103, align 1
%109 = inttoptr i64 %sv_0.113.reload to i64*
%110 = call i64* @memcpy(i64* %105, i64* %109, i32 %108)
%111 = icmp eq i32 %.reload17, %108
%112 = add i64 %107, 4
%113 = zext i1 %111 to i64
%114 = and i64 %112, 4294967295
%115 = call i64 @FUNC(i64 %0, i64 %85, i64 %114, i64 %113)
%116 = sub i64 %sv_1.114.reload, %107
%sext8 = mul i64 %116, 4294967296
%117 = ashr exact i64 %sext8, 32
%sext9 = mul i64 %107, 4294967296
%118 = ashr exact i64 %sext9, 32
%119 = add i64 %118, %sv_0.113.reload
%120 = trunc i64 %117 to i32
%121 = icmp eq i32 %120, 0
%122 = icmp slt i32 %120, 0
%123 = icmp eq i1 %122, false
%124 = icmp eq i1 %121, false
%125 = icmp eq i1 %123, %124
store i32 %120, i32* %.reg2mem16
store i64 %117, i64* %sv_1.114.reg2mem
store i64 %119, i64* %sv_0.113.reg2mem
store i64 %118, i64* %rax.1.reg2mem
br i1 %125, label LBL_13, label LBL_14
LBL_14:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32 %120, { 0, 2, 1 }
uselistorder i64 %sv_0.113.reload, { 1, 0 }
uselistorder i64 %85, { 0, 1, 2, 3, 5, 4 }
uselistorder i64 %70, { 1, 0 }
uselistorder i32 %62, { 0, 2, 1, 3, 4 }
uselistorder i32 %31, { 1, 0 }
uselistorder i32 %22, { 1, 2, 0, 3 }
uselistorder i32* %21, { 1, 0, 2, 3 }
uselistorder i64 %19, { 0, 2, 1, 3, 4 }
uselistorder i64* %18, { 2, 1, 0, 3 }
uselistorder i64* %16, { 2, 1, 3, 0, 4, 5 }
uselistorder i32 %14, { 1, 0 }
uselistorder i64 %sv_1.0, { 0, 2, 1, 3, 4 }
uselistorder i1 %13, { 1, 0 }
uselistorder i32 %10, { 2, 0, 1 }
uselistorder i32 %spec.select, { 1, 0 }
uselistorder i64 %3, { 0, 1, 2, 3, 4, 5, 7, 6 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %0, { 1, 2, 0, 3 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem16, { 1, 0, 2 }
uselistorder i64* %sv_1.114.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.113.reg2mem, { 1, 0, 2 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @ff_rtp_send_data, { 1, 0 }
uselistorder i8 16, { 1, 0 }
uselistorder i64 1, { 1, 2, 0, 3 }
uselistorder i64 32, { 2, 3, 0, 4, 1 }
uselistorder i1 false, { 3, 2, 0, 1, 4, 5 }
uselistorder i32 2, { 0, 1, 3, 2 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | opj_pi_next_pcrl_7659 | opj_pi_next_pcrl | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge9.reg2mem = alloca i64
%.reg2mem61 = alloca i32
%.reg2mem59 = alloca i32
%.reg2mem57 = alloca i32
%sv_0.3.reg2mem = alloca i32*
%.pre-phi27.reg2mem = alloca i64
%.reg2mem55 = alloca i32
%sv_0.2.reg2mem = alloca i32*
%.pre-phi38.reg2mem = alloca i64
%.pre-phi40.reg2mem = alloca i32*
%sv_0.1.reg2mem = alloca i32*
%.pre-phi28.reg2mem = alloca i64
%.reg2mem53 = alloca i32
%sv_0.0.reg2mem = alloca i32*
%.pre-phi30.reg2mem = alloca i64
%.pre-phi32.reg2mem = alloca i32*
%.reg2mem51 = alloca i32
%.pre-phi36.reg2mem = alloca i32*
%.reg2mem49 = alloca i32
%storemerge12.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i64
%.reg2mem47 = alloca i32
%indvars.iv.reg2mem = alloca i64
%indvars.iv23.reg2mem = alloca i64
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 32
%2 = inttoptr i64 %1 to i8*
%3 = load i8, i8* %2, align 1
%4 = icmp eq i8 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = add i64 %0, 40
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = add i64 %0, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = zext i32 %11 to i64
%13 = mul nuw nsw i64 %12, 24
%14 = add i64 %13, %8
%15 = inttoptr i64 %14 to i32*
%.pre29 = add i64 %0, 12
%.pre31 = inttoptr i64 %.pre29 to i32*
%.pre46 = load i32, i32* %.pre31, align 4
store i32 %.pre46, i32* %.reg2mem51
store i32* %.pre31, i32** %.pre-phi32.reg2mem
store i64 %.pre29, i64* %.pre-phi30.reg2mem
store i32* %15, i32** %sv_0.0.reg2mem
br label LBL_31
LBL_2:
store i8 0, i8* %2, align 1
%16 = add i64 %0, 24
%17 = inttoptr i64 %16 to i32*
store i32 0, i32* %17, align 4
%18 = add i64 %0, 28
%19 = inttoptr i64 %18 to i32*
store i32 0, i32* %19, align 4
%20 = bitcast i64* %rdi to i32*
%21 = load i32, i32* %20, align 8
%22 = icmp eq i32 %21, 0
br i1 %22, label LBL_13, label LBL_3
LBL_3:
%23 = add i64 %0, 40
%24 = inttoptr i64 %23 to i64*
store i32 %21, i32* %.reg2mem
store i64 0, i64* %indvars.iv23.reg2mem
br label LBL_4
LBL_4:
%indvars.iv23.reload = load i64, i64* %indvars.iv23.reg2mem
%.reload = load i32, i32* %.reg2mem
%25 = load i64, i64* %24, align 8
%26 = mul nuw nsw i64 %indvars.iv23.reload, 24
%27 = add i64 %25, %26
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = icmp eq i32 %29, 0
store i32 %.reload, i32* %.reg2mem49
br i1 %30, label LBL_12, label LBL_5
LBL_5:
%31 = add i64 %27, 16
%32 = inttoptr i64 %31 to i64*
%33 = add i64 %27, 4
%34 = inttoptr i64 %33 to i32*
%35 = add i64 %27, 8
%36 = inttoptr i64 %35 to i32*
store i64 0, i64* %indvars.iv.reg2mem
store i32 %29, i32* %.reg2mem47
br label LBL_6
LBL_6:
%.reload48 = load i32, i32* %.reg2mem47
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%37 = load i64, i64* %32, align 8
%38 = mul i64 %indvars.iv.reload, 16
%39 = add i64 %37, %38
%40 = load i32, i32* %34, align 4
%41 = add i64 %39, 8
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = trunc i64 %indvars.iv.reload to i32
%45 = xor i32 %44, 31
%46 = add i32 %45, %.reload48
%47 = add i32 %43, %46
%48 = urem i32 %47, 32
%49 = shl i32 %40, %48
%50 = load i32, i32* %36, align 4
%51 = add i64 %39, 12
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = load i32, i32* %17, align 4
%55 = icmp eq i32 %54, 0
%56 = zext i32 %49 to i64
store i64 %56, i64* %storemerge13.reg2mem
br i1 %55, label LBL_8, label LBL_7
LBL_7:
%57 = zext i32 %54 to i64
%58 = call i64 @FUNC(i64 %57, i64 %56)
store i64 %58, i64* %storemerge13.reg2mem
br label LBL_8
LBL_8:
%59 = add i32 %53, %46
%60 = urem i32 %59, 32
%61 = shl i32 %50, %60
%storemerge13.reload = load i64, i64* %storemerge13.reg2mem
%62 = trunc i64 %storemerge13.reload to i32
store i32 %62, i32* %17, align 4
%63 = load i32, i32* %19, align 4
%64 = icmp eq i32 %63, 0
%65 = zext i32 %61 to i64
store i64 %65, i64* %storemerge12.reg2mem
br i1 %64, label LBL_10, label LBL_9
LBL_9:
%66 = zext i32 %63 to i64
%67 = call i64 @FUNC(i64 %66, i64 %65)
store i64 %67, i64* %storemerge12.reg2mem
br label LBL_10
LBL_10:
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%68 = trunc i64 %storemerge12.reload to i32
store i32 %68, i32* %19, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%69 = load i32, i32* %28, align 4
%70 = zext i32 %69 to i64
%71 = icmp ult i64 %indvars.iv.next, %70
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %69, i32* %.reg2mem47
br i1 %71, label LBL_6, label LBL_11
LBL_11:
%.pre = load i32, i32* %20, align 8
store i32 %.pre, i32* %.reg2mem49
br label LBL_12
LBL_12:
%.reload50 = load i32, i32* %.reg2mem49
%indvars.iv.next24 = add nuw nsw i64 %indvars.iv23.reload, 1
%72 = zext i32 %.reload50 to i64
%73 = icmp ult i64 %indvars.iv.next24, %72
store i32 %.reload50, i32* %.reg2mem
store i64 %indvars.iv.next24, i64* %indvars.iv23.reg2mem
br i1 %73, label LBL_4, label LBL_13
LBL_13:
%74 = add i64 %0, 33
%75 = inttoptr i64 %74 to i8*
%76 = load i8, i8* %75, align 1
%77 = icmp eq i8 %76, 0
%78 = icmp eq i1 %77, false
br i1 %78, label LBL_13.LBL_16_crit_edge, label LBL_15
LBL_14:
%.pre33 = add i64 %0, 48
%.pre35 = inttoptr i64 %.pre33 to i32*
store i32* %.pre35, i32** %.pre-phi36.reg2mem
br label LBL_16
LBL_15:
%79 = add i64 %0, 120
%80 = inttoptr i64 %79 to i32*
%81 = load i32, i32* %80, align 4
%82 = add i64 %0, 48
%83 = inttoptr i64 %82 to i32*
store i32 %81, i32* %83, align 4
%84 = add i64 %0, 116
%85 = inttoptr i64 %84 to i32*
%86 = load i32, i32* %85, align 4
%87 = add i64 %0, 52
%88 = inttoptr i64 %87 to i32*
store i32 %86, i32* %88, align 4
%89 = add i64 %0, 128
%90 = inttoptr i64 %89 to i32*
%91 = load i32, i32* %90, align 4
%92 = add i64 %0, 56
%93 = inttoptr i64 %92 to i32*
store i32 %91, i32* %93, align 4
%94 = add i64 %0, 124
%95 = inttoptr i64 %94 to i32*
%96 = load i32, i32* %95, align 4
%97 = add i64 %0, 60
%98 = inttoptr i64 %97 to i32*
store i32 %96, i32* %98, align 4
store i32* %83, i32** %.pre-phi36.reg2mem
br label LBL_16
LBL_16:
%.pre-phi36.reload = load i32*, i32** %.pre-phi36.reg2mem
%99 = load i32, i32* %.pre-phi36.reload, align 4
%100 = add i64 %0, 20
%101 = inttoptr i64 %100 to i32*
store i32 %99, i32* %101, align 4
store i32 %99, i32* %.reg2mem61
br label LBL_41
LBL_17:
%102 = add i64 %0, 52
%103 = inttoptr i64 %102 to i32*
%104 = load i32, i32* %103, align 4
%105 = add i64 %0, 16
%106 = inttoptr i64 %105 to i32*
store i32 %104, i32* %106, align 4
store i32 %104, i32* %.reg2mem59
br label LBL_39
LBL_18:
%107 = add i64 %0, 64
%108 = inttoptr i64 %107 to i32*
%109 = load i32, i32* %108, align 4
%110 = add i64 %0, 4
%111 = inttoptr i64 %110 to i32*
store i32 %109, i32* %111, align 4
store i32 %109, i32* %.reg2mem57
br label LBL_37
LBL_19:
%112 = add i64 %0, 40
%113 = inttoptr i64 %112 to i64*
%114 = load i64, i64* %113, align 8
%115 = zext i32 %.reload58 to i64
%116 = mul nuw nsw i64 %115, 24
%117 = add i64 %114, %116
%118 = inttoptr i64 %117 to i32*
%119 = add i64 %0, 72
%120 = inttoptr i64 %119 to i32*
%121 = load i32, i32* %120, align 4
%122 = add i64 %0, 8
%123 = inttoptr i64 %122 to i32*
store i32 %121, i32* %123, align 4
store i32 %121, i32* %.reg2mem55
store i64 %122, i64* %.pre-phi27.reg2mem
store i32* %118, i32** %sv_0.3.reg2mem
br label LBL_35
LBL_20:
%.pre-phi27.reload = load i64, i64* %.pre-phi27.reg2mem
%124 = inttoptr i64 %.pre-phi27.reload to i32*
%125 = ptrtoint i32* %sv_0.3.reload to i64
%126 = add i64 %125, 16
%127 = inttoptr i64 %126 to i64*
%128 = load i64, i64* %127, align 8
%129 = load i32, i32* %124, align 4
%130 = zext i32 %129 to i64
%131 = mul i64 %130, 16
%132 = add i64 %131, %128
%133 = load i32, i32* %sv_0.3.reload, align 4
%134 = sub i32 0, %129
%135 = sub i32 %134, 1
%136 = add i32 %133, %135
%137 = add i64 %125, 4
%138 = inttoptr i64 %137 to i32*
%139 = load i32, i32* %138, align 4
%140 = urem i32 %136, 32
%141 = icmp eq i32 %140, 0
%142 = shl i32 %139, %140
%rdx.2 = zext i32 %142 to i64
%143 = add i64 %0, 116
%144 = inttoptr i64 %143 to i32*
%145 = load i32, i32* %144, align 4
%146 = zext i32 %145 to i64
%147 = call i64 @FUNC(i64 %146, i64 %rdx.2)
%148 = add i64 %125, 8
%149 = inttoptr i64 %148 to i32*
%150 = load i32, i32* %149, align 4
%151 = shl i32 %150, %140
%rdx.3 = zext i32 %151 to i64
%152 = add i64 %0, 120
%153 = inttoptr i64 %152 to i32*
%154 = load i32, i32* %153, align 4
%155 = zext i32 %154 to i64
%156 = call i64 @FUNC(i64 %155, i64 %rdx.3)
%157 = trunc i64 %156 to i32
%158 = load i32, i32* %138, align 4
%159 = shl i32 %158, %140
%rdx.4 = zext i32 %159 to i64
%160 = add i64 %0, 124
%161 = inttoptr i64 %160 to i32*
%162 = load i32, i32* %161, align 4
%163 = zext i32 %162 to i64
%164 = call i64 @FUNC(i64 %163, i64 %rdx.4)
%165 = load i32, i32* %149, align 4
%166 = shl i32 %165, %140
%rdx.5 = zext i32 %166 to i64
%167 = add i64 %0, 128
%168 = inttoptr i64 %167 to i32*
%169 = load i32, i32* %168, align 4
%170 = zext i32 %169 to i64
%171 = call i64 @FUNC(i64 %170, i64 %rdx.5)
%172 = add i64 %132, 8
%173 = inttoptr i64 %172 to i32*
%174 = load i32, i32* %173, align 4
%175 = add i64 %132, 12
%176 = inttoptr i64 %175 to i32*
%177 = load i32, i32* %176, align 4
%178 = add i32 %177, %136
%179 = add i64 %0, 20
%180 = inttoptr i64 %179 to i32*
%181 = load i32, i32* %180, align 4
%182 = load i32, i32* %149, align 4
%183 = urem i32 %178, 32
%184 = shl i32 %182, %183
%185 = urem i32 %181, %184
%186 = icmp eq i32 %185, 0
br i1 %186, label LBL_23, label LBL_21
LBL_21:
%187 = load i32, i32* %153, align 4
%188 = icmp eq i32 %181, %187
%189 = icmp eq i1 %188, false
store i32* %124, i32** %.pre-phi40.reg2mem
store i64 %.pre-phi27.reload, i64* %.pre-phi38.reg2mem
store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem
br i1 %189, label LBL_34, label LBL_22
LBL_22:
%190 = and i64 %156, 4294967295
%191 = shl i32 %157, %140
%192 = zext i32 %191 to i64
%rdx.6 = select i1 %141, i64 %190, i64 %192
%193 = shl i32 1, %183
%storemerge6 = zext i32 %193 to i64
%194 = trunc i64 %rdx.6 to i32
%195 = ashr i32 %194, 31
%196 = zext i32 %195 to i64
%197 = mul i64 %196, 4294967296
%198 = or i64 %197, %rdx.6
%199 = srem i64 %198, %storemerge6
%200 = trunc i64 %199 to i32
%201 = icmp eq i32 %200, 0
store i32* %124, i32** %.pre-phi40.reg2mem
store i64 %.pre-phi27.reload, i64* %.pre-phi38.reg2mem
store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem
br i1 %201, label LBL_34, label LBL_23
LBL_23:
%202 = trunc i64 %147 to i32
%203 = add i32 %174, %136
%204 = add i64 %0, 16
%205 = inttoptr i64 %204 to i32*
%206 = load i32, i32* %205, align 4
%207 = load i32, i32* %138, align 4
%208 = urem i32 %203, 32
%209 = shl i32 %207, %208
%210 = urem i32 %206, %209
%211 = icmp eq i32 %210, 0
br i1 %211, label LBL_26, label LBL_24
LBL_24:
%212 = load i32, i32* %144, align 4
%213 = icmp eq i32 %206, %212
%214 = icmp eq i1 %213, false
store i32* %124, i32** %.pre-phi40.reg2mem
store i64 %.pre-phi27.reload, i64* %.pre-phi38.reg2mem
store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem
br i1 %214, label LBL_34, label LBL_25
LBL_25:
%215 = and i64 %147, 4294967295
%216 = shl i32 %202, %140
%217 = zext i32 %216 to i64
%rdx.7 = select i1 %141, i64 %215, i64 %217
%218 = shl i32 1, %208
%storemerge8 = zext i32 %218 to i64
%219 = trunc i64 %rdx.7 to i32
%220 = ashr i32 %219, 31
%221 = zext i32 %220 to i64
%222 = mul i64 %221, 4294967296
%223 = or i64 %222, %rdx.7
%224 = srem i64 %223, %storemerge8
%225 = trunc i64 %224 to i32
%226 = icmp eq i32 %225, 0
store i32* %124, i32** %.pre-phi40.reg2mem
store i64 %.pre-phi27.reload, i64* %.pre-phi38.reg2mem
store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem
br i1 %226, label LBL_34, label LBL_26
LBL_26:
%227 = inttoptr i64 %132 to i32*
%228 = load i32, i32* %227, align 4
%229 = icmp eq i32 %228, 0
store i32* %124, i32** %.pre-phi40.reg2mem
store i64 %.pre-phi27.reload, i64* %.pre-phi38.reg2mem
store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem
br i1 %229, label LBL_34, label LBL_27
LBL_27:
%230 = trunc i64 %164 to i32
%231 = trunc i64 %171 to i32
%232 = add i64 %132, 4
%233 = inttoptr i64 %232 to i32*
%234 = load i32, i32* %233, align 4
%235 = icmp eq i32 %234, 0
%236 = icmp eq i32 %202, %230
%or.cond = or i1 %236, %235
%237 = icmp eq i32 %157, %231
%or.cond17 = or i1 %237, %or.cond
store i32* %124, i32** %.pre-phi40.reg2mem
store i64 %.pre-phi27.reload, i64* %.pre-phi38.reg2mem
store i32* %sv_0.3.reload, i32** %sv_0.2.reg2mem
br i1 %or.cond17, label LBL_34, label LBL_28
LBL_28:
%238 = zext i32 %174 to i64
%239 = shl i32 %207, %140
%rdx.8 = zext i32 %239 to i64
%240 = zext i32 %206 to i64
%241 = call i64 @FUNC(i64 %240, i64 %rdx.8)
%242 = and i64 %241, 4294967295
%243 = call i64 @FUNC(i64 %242, i64 %238)
%244 = trunc i64 %243 to i32
%245 = load i32, i32* %173, align 4
%246 = zext i32 %245 to i64
%247 = and i64 %147, 4294967295
%248 = call i64 @FUNC(i64 %247, i64 %246)
%249 = trunc i64 %248 to i32
%250 = sub i32 %244, %249
%251 = load i32, i32* %176, align 4
%252 = zext i32 %251 to i64
%253 = load i32, i32* %149, align 4
%254 = shl i32 %253, %140
%rdx.9 = zext i32 %254 to i64
%255 = load i32, i32* %180, align 4
%256 = zext i32 %255 to i64
%257 = call i64 @FUNC(i64 %256, i64 %rdx.9)
%258 = and i64 %257, 4294967295
%259 = call i64 @FUNC(i64 %258, i64 %252)
%260 = load i32, i32* %176, align 4
%261 = zext i32 %260 to i64
%262 = and i64 %156, 4294967295
%263 = call i64 @FUNC(i64 %262, i64 %261)
%264 = sub i64 %259, %263
%265 = load i32, i32* %227, align 4
%266 = trunc i64 %264 to i32
%267 = mul i32 %265, %266
%268 = add i32 %250, %267
%269 = add i64 %0, 112
%270 = inttoptr i64 %269 to i32*
store i32 %268, i32* %270, align 4
%271 = add i64 %0, 80
%272 = inttoptr i64 %271 to i32*
%273 = load i32, i32* %272, align 4
%274 = add i64 %0, 12
%275 = inttoptr i64 %274 to i32*
store i32 %273, i32* %275, align 4
store i32 %273, i32* %.reg2mem53
store i64 %274, i64* %.pre-phi28.reg2mem
store i32* %sv_0.3.reload, i32** %sv_0.1.reg2mem
br label LBL_32
LBL_29:
%.pre-phi28.reload = load i64, i64* %.pre-phi28.reg2mem
%276 = inttoptr i64 %.pre-phi28.reload to i32*
%277 = add i64 %0, 96
%278 = inttoptr i64 %277 to i32*
%279 = load i32, i32* %278, align 4
%280 = mul i32 %279, %.reload54
%281 = add i64 %0, 8
%282 = inttoptr i64 %281 to i32*
%283 = load i32, i32* %282, align 4
%284 = add i64 %0, 100
%285 = inttoptr i64 %284 to i32*
%286 = load i32, i32* %285, align 4
%287 = mul i32 %286, %283
%288 = add i64 %0, 112
%289 = inttoptr i64 %288 to i32*
%290 = load i32, i32* %289, align 4
%291 = add i64 %0, 108
%292 = inttoptr i64 %291 to i32*
%293 = load i32, i32* %292, align 4
%294 = mul i32 %293, %290
%295 = add i64 %0, 4
%296 = inttoptr i64 %295 to i32*
%297 = load i32, i32* %296, align 4
%298 = add i64 %0, 104
%299 = inttoptr i64 %298 to i32*
%300 = load i32, i32* %299, align 4
%301 = mul i32 %300, %297
%302 = add i32 %287, %280
%303 = add i32 %302, %294
%304 = add i32 %303, %301
%305 = add i64 %0, 88
%306 = inttoptr i64 %305 to i64*
%307 = load i64, i64* %306, align 8
%308 = zext i32 %304 to i64
%309 = mul i64 %308, 4
%310 = add i64 %309, %307
%311 = inttoptr i64 %310 to i32*
%312 = load i32, i32* %311, align 4
%313 = icmp eq i32 %312, 0
%314 = icmp eq i1 %313, false
store i32 %.reload54, i32* %.reg2mem51
store i32* %276, i32** %.pre-phi32.reg2mem
store i64 %.pre-phi28.reload, i64* %.pre-phi30.reg2mem
store i32* %sv_0.1.reload, i32** %sv_0.0.reg2mem
br i1 %314, label LBL_31, label LBL_30
LBL_30:
store i32 1, i32* %311, align 4
store i64 1, i64* %storemerge9.reg2mem
br label LBL_42
LBL_31:
%sv_0.0.reload = load i32*, i32** %sv_0.0.reg2mem
%.pre-phi30.reload = load i64, i64* %.pre-phi30.reg2mem
%.pre-phi32.reload = load i32*, i32** %.pre-phi32.reg2mem
%.reload52 = load i32, i32* %.reg2mem51
%315 = add i32 %.reload52, 1
store i32 %315, i32* %.pre-phi32.reload, align 4
store i32 %315, i32* %.reg2mem53
store i64 %.pre-phi30.reload, i64* %.pre-phi28.reg2mem
store i32* %sv_0.0.reload, i32** %sv_0.1.reg2mem
br label LBL_32
LBL_32:
%sv_0.1.reload = load i32*, i32** %sv_0.1.reg2mem
%.reload54 = load i32, i32* %.reg2mem53
%316 = add i64 %0, 84
%317 = inttoptr i64 %316 to i32*
%318 = load i32, i32* %317, align 4
%319 = icmp ult i32 %.reload54, %318
br i1 %319, label LBL_29, label LBL_32.LBL_34_crit_edge
LBL_33:
%.pre37 = add i64 %0, 8
%.pre39 = inttoptr i64 %.pre37 to i32*
store i32* %.pre39, i32** %.pre-phi40.reg2mem
store i64 %.pre37, i64* %.pre-phi38.reg2mem
store i32* %sv_0.1.reload, i32** %sv_0.2.reg2mem
br label LBL_34
LBL_34:
%sv_0.2.reload = load i32*, i32** %sv_0.2.reg2mem
%.pre-phi38.reload = load i64, i64* %.pre-phi38.reg2mem
%.pre-phi40.reload = load i32*, i32** %.pre-phi40.reg2mem
%320 = load i32, i32* %.pre-phi40.reload, align 4
%321 = add i32 %320, 1
store i32 %321, i32* %.pre-phi40.reload, align 4
store i32 %321, i32* %.reg2mem55
store i64 %.pre-phi38.reload, i64* %.pre-phi27.reg2mem
store i32* %sv_0.2.reload, i32** %sv_0.3.reg2mem
br label LBL_35
LBL_35:
%sv_0.3.reload = load i32*, i32** %sv_0.3.reg2mem
%.reload56 = load i32, i32* %.reg2mem55
%322 = load i32, i32* %sv_0.3.reload, align 4
%323 = add i64 %0, 76
%324 = inttoptr i64 %323 to i32*
%325 = load i32, i32* %324, align 4
%326 = zext i32 %322 to i64
%327 = zext i32 %325 to i64
%328 = call i64 @FUNC(i64 %327, i64 %326)
%329 = trunc i64 %328 to i32
%330 = icmp ult i32 %.reload56, %329
br i1 %330, label LBL_20, label LBL_36
LBL_36:
%331 = add i64 %0, 4
%332 = inttoptr i64 %331 to i32*
%333 = load i32, i32* %332, align 4
%334 = add i32 %333, 1
store i32 %334, i32* %332, align 4
store i32 %334, i32* %.reg2mem57
br label LBL_37
LBL_37:
%.reload58 = load i32, i32* %.reg2mem57
%335 = add i64 %0, 68
%336 = inttoptr i64 %335 to i32*
%337 = load i32, i32* %336, align 4
%338 = icmp ult i32 %.reload58, %337
br i1 %338, label LBL_19, label LBL_38
LBL_38:
%339 = add i64 %0, 16
%340 = inttoptr i64 %339 to i32*
%341 = load i32, i32* %340, align 4
%342 = add i64 %0, 24
%343 = inttoptr i64 %342 to i32*
%344 = load i32, i32* %343, align 4
%345 = urem i32 %341, %344
%346 = add i32 %344, %341
%347 = sub i32 %346, %345
store i32 %347, i32* %340, align 4
store i32 %347, i32* %.reg2mem59
br label LBL_39
LBL_39:
%.reload60 = load i32, i32* %.reg2mem59
%348 = add i64 %0, 60
%349 = inttoptr i64 %348 to i32*
%350 = load i32, i32* %349, align 4
%351 = icmp ult i32 %.reload60, %350
br i1 %351, label LBL_18, label LBL_40
LBL_40:
%352 = add i64 %0, 20
%353 = inttoptr i64 %352 to i32*
%354 = load i32, i32* %353, align 4
%355 = add i64 %0, 28
%356 = inttoptr i64 %355 to i32*
%357 = load i32, i32* %356, align 4
%358 = urem i32 %354, %357
%359 = add i32 %357, %354
%360 = sub i32 %359, %358
store i32 %360, i32* %353, align 4
store i32 %360, i32* %.reg2mem61
br label LBL_41
LBL_41:
%.reload62 = load i32, i32* %.reg2mem61
%361 = add i64 %0, 56
%362 = inttoptr i64 %361 to i32*
%363 = load i32, i32* %362, align 4
%364 = icmp ult i32 %.reload62, %363
store i64 0, i64* %storemerge9.reg2mem
br i1 %364, label LBL_17, label LBL_42
LBL_42:
%storemerge9.reload = load i64, i64* %storemerge9.reg2mem
ret i64 %storemerge9.reload
uselistorder i32 %.reload58, { 1, 0 }
uselistorder i32* %sv_0.3.reload, { 0, 1, 2, 8, 9, 6, 7, 4, 5, 3 }
uselistorder i32 %.reload54, { 1, 0, 2 }
uselistorder i64 %.pre-phi28.reload, { 1, 0 }
uselistorder i32 %208, { 1, 0 }
uselistorder i32 %183, { 1, 0 }
uselistorder i32 %174, { 1, 0 }
uselistorder i1 %141, { 1, 0 }
uselistorder i32 %140, { 6, 5, 7, 8, 4, 3, 2, 1, 0 }
uselistorder i32 %136, { 2, 1, 0 }
uselistorder i64 %132, { 0, 3, 1, 2 }
uselistorder i32* %124, { 4, 5, 2, 3, 0, 1, 6 }
uselistorder i64 %.pre-phi27.reload, { 2, 1, 4, 3, 6, 5, 0 }
uselistorder i32 %.reload50, { 1, 0 }
uselistorder i64 %65, { 1, 0 }
uselistorder i64 %56, { 1, 0 }
uselistorder i32* %28, { 1, 0 }
uselistorder i64 %0, { 40, 37, 36, 35, 33, 32, 31, 9, 28, 0, 11, 10, 17, 18, 15, 16, 13, 14, 12, 20, 19, 21, 22, 23, 24, 25, 26, 27, 30, 29, 34, 38, 39, 41, 42, 43, 4, 3, 6, 5, 8, 7, 46, 47, 1, 45, 44, 48, 49, 2, 50, 51, 52 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv23.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem47, { 1, 0, 2 }
uselistorder i64* %storemerge13.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge12.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem51, { 0, 2, 1 }
uselistorder i32** %.pre-phi32.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre-phi30.reg2mem, { 0, 2, 1 }
uselistorder i32** %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre-phi28.reg2mem, { 1, 0, 2 }
uselistorder i32** %.pre-phi40.reg2mem, { 0, 7, 5, 6, 3, 4, 1, 2 }
uselistorder i64* %.pre-phi38.reg2mem, { 0, 7, 5, 6, 3, 4, 1, 2 }
uselistorder i32** %sv_0.2.reg2mem, { 0, 7, 5, 6, 3, 4, 1, 2 }
uselistorder i64* %.pre-phi27.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem61, { 0, 2, 1 }
uselistorder i64 112, { 1, 0 }
uselistorder i64 (i64, i64)* @opj_int_floordivpow2, { 3, 2, 1, 0 }
uselistorder i64 4294967295, { 1, 5, 2, 6, 3, 4, 7, 8, 9, 10, 0, 11 }
uselistorder i64 (i64, i64)* @opj_int_ceildiv, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 20, { 1, 0, 2 }
uselistorder i64 48, { 1, 0 }
uselistorder i64 (i64, i64)* @opj_uint_min, { 2, 1, 0 }
uselistorder i32 31, { 1, 2, 0, 3 }
uselistorder i64 8, { 0, 4, 1, 2, 3, 6, 5 }
uselistorder i64 16, { 5, 3, 0, 4, 2, 1, 6 }
uselistorder i32 0, { 10, 5, 6, 7, 3, 8, 4, 9, 0, 11, 12, 1, 2, 13, 14, 15 }
uselistorder i64 12, { 1, 2, 3, 0 }
uselistorder i64 24, { 3, 1, 0, 4, 2 }
uselistorder i64 4, { 4, 0, 5, 1, 2, 3, 6, 7 }
uselistorder i1 false, { 2, 0, 1, 3, 4 }
uselistorder label LBL_39, { 1, 0 }
uselistorder label LBL_37, { 1, 0 }
uselistorder label LBL_35, { 1, 0 }
uselistorder label LBL_34, { 0, 2, 1, 4, 3, 6, 5 }
uselistorder label LBL_32, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | fw_cfg_add_i32_1987 | fw_cfg_add_i32 | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i16
%2 = call i64 @FUNC(i64 4)
%3 = and i64 %arg3, 4294967295
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = inttoptr i64 %2 to i32*
store i32 %5, i32* %6, align 4
%7 = call i64 @FUNC(i64 %0, i16 %1, i64 %2, i64 4)
ret i64 %7
} | 0 |
BinRealVul | qemu_devtree_add_subnode_2583 | qemu_devtree_add_subnode | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg2)
%1 = inttoptr i64 %0 to i8*
%2 = call i8* @strrchr(i8* %1, i32 47)
%3 = icmp eq i8* %2, null
%4 = icmp eq i1 %3, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_4
LBL_1:
store i8 0, i8* %2, align 1
%5 = ptrtoint i8* %2 to i64
%6 = add i64 %5, 1
%7 = call i64 @FUNC(i64 %arg1, i64 %0)
%8 = call i64 @FUNC(i64 %arg1, i64 %7, i64 %6)
%9 = trunc i64 %8 to i32
%10 = icmp slt i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = and i64 %8, 4294967295
%13 = call i64 @FUNC(i64 %12)
%14 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%15 = inttoptr i64 %arg2 to i8*
%16 = inttoptr i64 %13 to i8*
%17 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %14, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_1, i64 0, i64 0), i8* %15, i8* %16)
call void @exit(i32 1)
unreachable
LBL_3:
%18 = call i64 @FUNC(i64 %0)
%19 = and i64 %8, 4294967295
store i64 %19, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i8* %2, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | tiff_writeproc_8763 | tiff_writeproc | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = mul i64 %3, 2
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp ugt i64 %4, %7
br i1 %8, label LBL_1, label LBL_2
LBL_1:
store i64 %4, i64* %6, align 8
store i64 %4, i64* %arg1, align 8
br label LBL_2
LBL_2:
ret i64 %3
uselistorder i64 %4, { 2, 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | uart_hci_init_15552 | uart_hci_init | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 48)
%1 = inttoptr i64 %0 to i64*
store i64 %0, i64* %1, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
store i64 4198694, i64* %3, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
store i64 4198701, i64* %5, align 8
%6 = call i64 @FUNC()
%7 = add i64 %0, 24
%8 = inttoptr i64 %7 to i64*
store i64 %6, i64* %8, align 8
%9 = inttoptr i64 %6 to i64*
store i64 %0, i64* %9, align 8
%10 = load i64, i64* %8, align 8
%11 = add i64 %10, 8
%12 = inttoptr i64 %11 to i64*
store i64 4198730, i64* %12, align 8
%13 = load i64, i64* %8, align 8
%14 = add i64 %13, 16
%15 = inttoptr i64 %14 to i64*
store i64 4198737, i64* %15, align 8
%16 = load i64, i64* @gv_0, align 8
%17 = call i64 @FUNC(i64 %16, i64 4198789, i64 %0)
%18 = add i64 %0, 32
%19 = inttoptr i64 %18 to i64*
store i64 %17, i64* %19, align 8
%20 = load i64, i64* @gv_1, align 8
%21 = load i32, i32* @gv_2, align 4
%22 = zext i32 %21 to i64
%23 = call i64 @FUNC(i64 %22, i64 %0, i64 %20)
%24 = add i64 %0, 40
%25 = inttoptr i64 %24 to i64*
store i64 %23, i64* %25, align 8
%26 = call i64 @FUNC(i64 %0)
ret i64 %0
} | 1 |
BinRealVul | img_snapshot_58 | img_snapshot | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i32
%sv_3.1.reg2mem = alloca i64
%sv_0.0.ph.reg2mem = alloca i32
%sv_1.0.ph.reg2mem = alloca i32
%sv_2.0.ph.reg2mem = alloca i32
%sv_3.0.ph.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%2 = trunc i64 %arg1 to i32
%3 = inttoptr i64 %arg2 to i8**
store i64 0, i64* %sv_3.0.ph.reg2mem
store i32 0, i32* %sv_2.0.ph.reg2mem
store i32 0, i32* %sv_1.0.ph.reg2mem
store i32 1, i32* %sv_0.0.ph.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.ph.reload = load i32, i32* %sv_0.0.ph.reg2mem
%sv_1.0.ph.reload = load i32, i32* %sv_1.0.ph.reg2mem
%sv_2.0.ph.reload = load i32, i32* %sv_2.0.ph.reg2mem
%sv_3.0.ph.reload = load i64, i64* %sv_3.0.ph.reg2mem
br label LBL_2
LBL_2:
%4 = call i32 @getopt(i32 %2, i8** %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0))
%5 = icmp eq i32 %4, -1
br i1 %5, label LBL_18, label LBL_3
LBL_3:
%6 = add i32 %4, -63
%7 = zext i32 %6 to i64
store i64 %7, i64* @0, align 8
store i64 %sv_3.0.ph.reload, i64* %sv_3.1.reg2mem
store i32 %sv_2.0.ph.reload, i32* %sv_2.1.reg2mem
store i32 1, i32* %sv_1.1.reg2mem
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
switch i32 %4, label LBL_2 [
i32 63, label LBL_4
i32 97, label LBL_8
i32 99, label LBL_11
i32 100, label LBL_14
i32 104, label LBL_4
i32 108, label LBL_5
i32 113, label LBL_17
]
LBL_4:
%8 = call i64 @FUNC()
store i64 0, i64* %rax.0.reg2mem
br label LBL_32
LBL_5:
%9 = icmp eq i32 %sv_2.0.ph.reload, 0
br i1 %9, label LBL_7, label LBL_6
LBL_6:
%10 = call i64 @FUNC()
store i64 0, i64* %rax.0.reg2mem
br label LBL_32
LBL_7:
%11 = and i32 %sv_0.0.ph.reload, -2
store i64 %sv_3.0.ph.reload, i64* %sv_3.1.reg2mem
store i32 1, i32* %sv_2.1.reg2mem
store i32 %sv_1.0.ph.reload, i32* %sv_1.1.reg2mem
store i32 %11, i32* %sv_0.1.reg2mem
br label LBL_17
LBL_8:
%12 = icmp eq i32 %sv_2.0.ph.reload, 0
br i1 %12, label LBL_10, label LBL_9
LBL_9:
%13 = call i64 @FUNC()
store i64 0, i64* %rax.0.reg2mem
br label LBL_32
LBL_10:
%14 = load i64, i64* @gv_1, align 8
store i64 %14, i64* %sv_3.1.reg2mem
store i32 2, i32* %sv_2.1.reg2mem
store i32 %sv_1.0.ph.reload, i32* %sv_1.1.reg2mem
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br label LBL_17
LBL_11:
%15 = icmp eq i32 %sv_2.0.ph.reload, 0
br i1 %15, label LBL_13, label LBL_12
LBL_12:
%16 = call i64 @FUNC()
store i64 0, i64* %rax.0.reg2mem
br label LBL_32
LBL_13:
%17 = load i64, i64* @gv_1, align 8
store i64 %17, i64* %sv_3.1.reg2mem
store i32 3, i32* %sv_2.1.reg2mem
store i32 %sv_1.0.ph.reload, i32* %sv_1.1.reg2mem
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br label LBL_17
LBL_14:
%18 = icmp eq i32 %sv_2.0.ph.reload, 0
br i1 %18, label LBL_16, label LBL_15
LBL_15:
%19 = call i64 @FUNC()
store i64 0, i64* %rax.0.reg2mem
br label LBL_32
LBL_16:
%20 = load i64, i64* @gv_1, align 8
store i64 %20, i64* %sv_3.1.reg2mem
store i32 4, i32* %sv_2.1.reg2mem
store i32 %sv_1.0.ph.reload, i32* %sv_1.1.reg2mem
store i32 %sv_0.0.ph.reload, i32* %sv_0.1.reg2mem
br label LBL_17
LBL_17:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%sv_3.1.reload = load i64, i64* %sv_3.1.reg2mem
store i64 %sv_3.1.reload, i64* %sv_3.0.ph.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.0.ph.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.0.ph.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.0.ph.reg2mem
br label LBL_1
LBL_18:
%21 = load i32, i32* @gv_2, align 4
%22 = sub i32 0, %21
%23 = sub i32 %22, 1
%24 = sub i32 0, %2
%25 = icmp eq i32 %23, %24
store i32 %21, i32* %.reg2mem
br i1 %25, label LBL_20, label LBL_19
LBL_19:
%26 = call i64 @FUNC()
%.pre = load i32, i32* @gv_2, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_20
LBL_20:
%.reload = load i32, i32* %.reg2mem
store i32 ptrtoint (i32* @gv_3 to i32), i32* @gv_2, align 4
%27 = sext i32 %.reload to i64
%28 = mul i64 %27, 8
%29 = add i64 %28, %arg2
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = urem i32 %sv_1.0.ph.reload, 256
%33 = zext i32 %32 to i64
%34 = call i64 @FUNC(i64 %31, i64 0, i32 %sv_0.0.ph.reload, i64 1, i64 %33)
%35 = icmp eq i64 %34, 0
%36 = icmp eq i1 %35, false
store i64 1, i64* %rax.0.reg2mem
br i1 %36, label LBL_21, label LBL_32
LBL_21:
%37 = icmp eq i32 %sv_2.0.ph.reload, 4
br i1 %37, label LBL_29, label LBL_22
LBL_22:
%38 = icmp sgt i32 %sv_2.0.ph.reload, 4
br i1 %38, label %65, label LBL_23
LBL_23:
switch i32 %sv_2.0.ph.reload, label %65 [
i32 3, label LBL_25
i32 1, label LBL_24
i32 2, label LBL_27
]
LBL_24:
%39 = call i64 @FUNC(i64 %34)
br label %65
LBL_25:
%40 = call i64* @memset(i64* nonnull %sv_5, i32 0, i32 264)
%41 = call i64 @FUNC(i64* nonnull %sv_5, i64 256, i64 %sv_3.0.ph.reload)
%42 = call i64 @FUNC(i64* nonnull %sv_4)
%43 = call i64 @FUNC(i64 %34, i64* nonnull %sv_5)
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, 0
br i1 %45, label %65, label LBL_26
LBL_26:
%46 = sub i32 0, %44
%47 = call i8* @strerror(i32 %46)
%48 = ptrtoint i8* %47 to i64
%49 = call i64 @FUNC(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_4, i64 0, i64 0), i64 %sv_3.0.ph.reload, i32 %44, i64 %48, i64 %33, i64 %1)
br label LBL_31
LBL_27:
%50 = call i64 @FUNC(i64 %34, i64 %sv_3.0.ph.reload)
%51 = trunc i64 %50 to i32
%52 = icmp eq i32 %51, 0
br i1 %52, label %65, label LBL_28
LBL_28:
%53 = sub i32 0, %51
%54 = call i8* @strerror(i32 %53)
%55 = ptrtoint i8* %54 to i64
%56 = call i64 @FUNC(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_5, i64 0, i64 0), i64 %sv_3.0.ph.reload, i32 %51, i64 %55, i64 %33, i64 %1)
br label LBL_31
LBL_29:
%57 = call i64 @FUNC(i64 %34, i64 %sv_3.0.ph.reload)
%58 = trunc i64 %57 to i32
%59 = icmp eq i32 %58, 0
br i1 %59, label %65, label LBL_30
LBL_30:
%60 = sub i32 0, %58
%61 = call i8* @strerror(i32 %60)
%62 = ptrtoint i8* %61 to i64
%63 = call i64 @FUNC(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_6, i64 0, i64 0), i64 %sv_3.0.ph.reload, i32 %58, i64 %62, i64 %33, i64 %1)
br label LBL_31
LBL_31:
%64 = call i64 @FUNC(i64 %34)
store i64 1, i64* %rax.0.reg2mem
br label LBL_32
LBL_32:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %58, { 1, 0, 2 }
uselistorder i32 %51, { 1, 0, 2 }
uselistorder i32 %44, { 1, 0, 2 }
uselistorder i64 %34, { 0, 2, 5, 3, 1, 4, 6 }
uselistorder i64 %33, { 2, 0, 1, 3 }
uselistorder i64 %sv_3.0.ph.reload, { 6, 7, 2, 3, 4, 5, 1, 0 }
uselistorder i32 %sv_2.0.ph.reload, { 5, 7, 6, 3, 2, 1, 4, 0 }
uselistorder i32 %sv_1.0.ph.reload, { 4, 2, 1, 0, 3 }
uselistorder i32 %sv_0.0.ph.reload, { 5, 3, 2, 1, 4, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %sv_3.0.ph.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.0.ph.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.0.ph.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.ph.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_3.1.reg2mem, { 0, 4, 3, 2, 5, 1 }
uselistorder i32* %sv_2.1.reg2mem, { 0, 4, 3, 2, 5, 1 }
uselistorder i32* %sv_1.1.reg2mem, { 0, 4, 3, 2, 5, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 4, 3, 2, 5, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 7, 6, 5, 8, 4 }
uselistorder i64 (i8*, i64, i32, i64, i64, i64)* @error_report, { 2, 1, 0 }
uselistorder i8* (i32)* @strerror, { 2, 1, 0 }
uselistorder i32* @gv_2, { 2, 0, 1 }
uselistorder i32 4, { 2, 1, 0 }
uselistorder i32 3, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 ()* @help, { 0, 5, 4, 3, 2, 1 }
uselistorder i32 0, { 12, 13, 14, 15, 16, 17, 4, 3, 2, 8, 9, 10, 11, 0, 1, 5, 6, 7 }
uselistorder i64 0, { 0, 10, 11, 14, 15, 12, 13, 39, 36, 4, 3, 2, 5, 1, 16, 17, 6, 40, 7, 8, 9, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 37, 38 }
uselistorder i32 1, { 17, 16, 8, 6, 11, 19, 18, 15, 14, 13, 12, 10, 9, 7, 5, 4, 3, 2, 20, 1, 0 }
uselistorder label %65, { 1, 5, 3, 4, 0, 2 }
uselistorder label LBL_17, { 1, 2, 3, 4, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | analyze_16008 | analyze | define i64 @FUNC(i64* %arg1, i32 %arg2, i32 %arg3, i32* %arg4) local_unnamed_addr {
LBL_0:
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.02.reg2mem = alloca i32
%sv_0.14.reg2mem = alloca i32
%sv_2.05.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%0 = mul i32 %arg3, 4
%1 = call i64* @memset(i64* nonnull %sv_3, i32 0, i32 %0)
%2 = add i32 %arg2, -3
%3 = icmp eq i32 %2, 0
store i32 0, i32* %sv_0.1.lcssa.reg2mem
br i1 %3, label LBL_8, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = zext i32 %2 to i64
%6 = ptrtoint i64* %sv_4 to i64
%7 = add i64 %6, -768
%8 = icmp eq i32* %arg4, null
store i64 0, i64* %.reg2mem
store i32 0, i32* %sv_2.05.reg2mem
store i32 0, i32* %sv_0.14.reg2mem
store i32 0, i32* %sv_1.02.reg2mem
br label LBL_2
LBL_2:
%sv_1.02.reload = load i32, i32* %sv_1.02.reg2mem
%sv_0.14.reload = load i32, i32* %sv_0.14.reg2mem
%sv_2.05.reload = load i32, i32* %sv_2.05.reg2mem
%.reload = load i64, i64* %.reg2mem
%9 = add i64 %.reload, %4
%10 = inttoptr i64 %9 to i8*
%11 = load i8, i8* %10, align 1
%12 = icmp eq i8 %11, 71
%13 = icmp eq i1 %12, false
store i32 %sv_0.14.reload, i32* %sv_0.0.reg2mem
br i1 %13, label LBL_7, label LBL_3
LBL_3:
%14 = add i64 %9, 1
%15 = inttoptr i64 %14 to i8*
%16 = load i8, i8* %15, align 1
%17 = icmp slt i8 %16, 0
store i32 %sv_0.14.reload, i32* %sv_0.0.reg2mem
br i1 %17, label LBL_7, label LBL_4
LBL_4:
%18 = add i64 %9, 3
%19 = inttoptr i64 %18 to i8*
%20 = load i8, i8* %19, align 1
%21 = and i8 %20, 48
%22 = icmp eq i8 %21, 0
store i32 %sv_0.14.reload, i32* %sv_0.0.reg2mem
br i1 %22, label LBL_7, label LBL_5
LBL_5:
%23 = sext i32 %sv_1.02.reload to i64
%24 = mul i64 %23, 4
%25 = add i64 %7, %24
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i32 %27, 1
store i32 %28, i32* %26, align 4
%29 = zext i32 %28 to i64
%30 = sext i32 %sv_0.14.reload to i64
%31 = icmp sge i64 %30, %29
%brmerge = or i1 %8, %31
%sv_0.14.mux = select i1 %31, i32 %sv_0.14.reload, i32 %28
store i32 %sv_0.14.mux, i32* %sv_0.0.reg2mem
br i1 %brmerge, label LBL_7, label LBL_6
LBL_6:
store i32 %sv_1.02.reload, i32* %arg4, align 4
store i32 %28, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%32 = add i32 %sv_1.02.reload, 1
%33 = icmp eq i32 %32, %arg3
%34 = icmp eq i1 %33, false
%spec.store.select = select i1 %34, i32 %32, i32 0
%35 = add i32 %sv_2.05.reload, 1
%36 = sext i32 %35 to i64
%37 = icmp slt i64 %36, %5
store i64 %36, i64* %.reg2mem
store i32 %35, i32* %sv_2.05.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.14.reg2mem
store i32 %spec.store.select, i32* %sv_1.02.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %37, label LBL_2, label LBL_8
LBL_8:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%38 = zext i32 %sv_0.1.lcssa.reload to i64
ret i64 %38
uselistorder i1 %31, { 1, 0 }
uselistorder i32 %sv_0.14.reload, { 4, 3, 0, 1, 2 }
uselistorder i32 %sv_1.02.reload, { 2, 0, 1 }
uselistorder i32 %2, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.05.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.14.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.02.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1, 3, 4, 5 }
uselistorder i32* %arg4, { 1, 0 }
uselistorder i32 %arg3, { 1, 0 }
uselistorder label LBL_7, { 1, 0, 2, 3, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | setup_private_mount_19041 | setup_private_mount | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%0 = call i32 @getuid()
%1 = call i32 @getgid()
store i64 0, i64* %sv_0, align 8
%2 = call i64 @FUNC(i64* nonnull %sv_0, i64 256, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %arg1)
%3 = bitcast i64* %sv_0 to i8*
%4 = call i8* @mkdtemp(i8* nonnull %3)
%5 = icmp eq i8* %4, null
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_1, i64 0, i64 0))
unreachable
LBL_2:
%8 = call i32 @umask(i32 0)
%9 = call i64 @FUNC(i64* nonnull %sv_0)
%10 = call i64 @FUNC(i64* nonnull %sv_0, i64 256, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i64 %9)
%11 = inttoptr i64 %9 to i64*
call void @free(i64* %11)
%12 = call i32 @mkdir(i8* nonnull %3, i32 1023)
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_3, i64 0, i64 0))
unreachable
LBL_4:
%15 = call i32 @umask(i32 %8)
%16 = call i8* @get_current_dir_name()
%17 = ptrtoint i8* %16 to i64
%sext.mask = and i64 %17, 4294967295
%18 = icmp eq i64 %sext.mask, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_4, i64 0, i64 0))
unreachable
LBL_6:
%21 = call i32 @chdir(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_5, i64 0, i64 0))
%22 = icmp eq i32 %21, 0
br i1 %22, label LBL_8, label LBL_7
LBL_7:
%23 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_6, i64 0, i64 0))
unreachable
LBL_8:
%24 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_7, i64 0, i64 0), i64 0, i64 4096, i64 0)
%25 = call i64 @FUNC(i64* bitcast ([5 x i8]* @gv_8 to i64*), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_7, i64 0, i64 0), i64 0, i64 2048, i64 0)
%26 = call i32 @chown(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_9, i64 0, i64 0), i32 %0, i32 %1)
%27 = icmp slt i32 %26, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_10, label LBL_9
LBL_9:
%29 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_10, i64 0, i64 0))
unreachable
LBL_10:
%30 = call i32 @chdir(i8* %16)
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_12, label LBL_11
LBL_11:
%32 = call i64 @FUNC(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @gv_11, i64 0, i64 0))
unreachable
LBL_12:
%33 = bitcast i8* %16 to i64*
call void @free(i64* %33)
ret i64 ptrtoint (i32* @0 to i64)
uselistorder i64 (i64*, i8*, i64, i64, i64)* @sc_do_mount, { 1, 0 }
uselistorder i32 (i8*)* @chdir, { 1, 0 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i32 (i32)* @umask, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 0, 5 }
uselistorder i64 (i8*)* @die, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64*, i64, i8*, i64)* @sc_must_snprintf, { 1, 0 }
} | 1 |
BinRealVul | ehci_update_halt_10439 | ehci_update_halt | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = urem i64 %1, 2
%3 = icmp eq i64 %2, 0
%4 = ptrtoint i32* %arg1 to i64
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %4, i64 2)
store i64 %5, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%6 = add i64 %4, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
%10 = icmp eq i32 %8, 0
%11 = icmp eq i1 %10, false
store i64 %9, i64* %rax.0.reg2mem
br i1 %11, label LBL_5, label LBL_3
LBL_3:
%12 = add i64 %4, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = zext i32 %14 to i64
%16 = icmp eq i32 %14, 0
%17 = icmp eq i1 %16, false
store i64 %15, i64* %rax.0.reg2mem
br i1 %17, label LBL_5, label LBL_4
LBL_4:
%18 = call i64 @FUNC(i64 %4, i64 2)
store i64 %18, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %4, { 0, 1, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i64 2, { 1, 2, 0 }
} | 0 |
BinRealVul | gic_set_irq_2959 | gic_set_irq | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.0.in.reg2mem = alloca i32
%sv_1.07.pre-phi.reg2mem = alloca i64
%1 = load i64, i64* %0
%sext = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = trunc i64 %1 to i32
%4 = add i32 %3, -32
%5 = zext i32 %4 to i64
%6 = icmp slt i64 %2, %5
%7 = trunc i64 %2 to i32
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%8 = add i32 %7, 32
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i32
store i64 %9, i64* %sv_1.07.pre-phi.reg2mem
store i32 %8, i32* %sv_1.0.in.reg2mem
store i32 -1, i32* %sv_0.0.reg2mem
store i32 %11, i32* %storemerge5.reg2mem
br label LBL_3
LBL_2:
%12 = sub i32 %7, %4
%13 = add i32 %12, 31
%14 = icmp slt i32 %12, 0
%15 = select i1 %14, i32 %13, i32 %12
%16 = udiv i32 %15, 32
%17 = srem i32 %12, 32
%18 = urem i32 %16, 32
%19 = shl i32 1, %18
%.pre = zext i32 %17 to i64
store i64 %.pre, i64* %sv_1.07.pre-phi.reg2mem
store i32 %17, i32* %sv_1.0.in.reg2mem
store i32 %19, i32* %sv_0.0.reg2mem
store i32 %19, i32* %storemerge5.reg2mem
br label LBL_3
LBL_3:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.in.reload = load i32, i32* %sv_1.0.in.reg2mem
%sv_1.07.pre-phi.reload = load i64, i64* %sv_1.07.pre-phi.reg2mem
%20 = icmp sgt i32 %sv_1.0.in.reload, 15
br i1 %20, label LBL_5, label LBL_4
LBL_4:
call void @__assert_fail(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_1, i64 0, i64 0), i32 53, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0))
br label LBL_5
LBL_5:
%sext3 = mul i64 %arg3, 4294967296
%21 = ashr exact i64 %sext3, 32
%22 = zext i32 %sv_0.0.reload to i64
%23 = call i64 @FUNC(i64 %sv_1.07.pre-phi.reload, i64 %22)
%24 = trunc i64 %21 to i32
%25 = trunc i64 %23 to i32
%26 = icmp eq i32 %24, %25
store i64 %23, i64* %rax.0.reg2mem
br i1 %26, label LBL_10, label LBL_6
LBL_6:
%27 = ptrtoint i32* %arg1 to i64
%28 = add i64 %27, 4
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = icmp ne i32 %30, 1
%32 = icmp eq i32 %30, 2
%33 = icmp eq i1 %32, false
%or.cond = icmp eq i1 %31, %33
%34 = and i64 %21, 4294967295
%35 = zext i32 %storemerge5.reload to i64
br i1 %or.cond, label LBL_8, label LBL_7
LBL_7:
%36 = call i64 @FUNC(i64 %27, i32 %sv_1.0.in.reload, i64 %34, i32 %sv_0.0.reload, i64 %35)
br label LBL_9
LBL_8:
%37 = call i64 @FUNC(i64 %27, i32 %sv_1.0.in.reload, i64 %34, i32 %sv_0.0.reload, i64 %35)
br label LBL_9
LBL_9:
%38 = call i64 @FUNC(i64 %sv_1.07.pre-phi.reload, i64 %34, i32 %sv_0.0.reload, i32 %storemerge5.reload)
%39 = call i64 @FUNC(i64 %27)
store i64 %39, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %35, { 1, 0 }
uselistorder i64 %34, { 0, 2, 1 }
uselistorder i64 %27, { 1, 2, 0, 3 }
uselistorder i64 %21, { 1, 0 }
uselistorder i64 %sv_1.07.pre-phi.reload, { 1, 0 }
uselistorder i32 %sv_1.0.in.reload, { 2, 1, 0 }
uselistorder i32 %sv_0.0.reload, { 2, 3, 1, 0 }
uselistorder i64* %sv_1.07.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge5.reg2mem, { 0, 2, 1 }
uselistorder i32 32, { 1, 2, 0, 3 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | X509_STORE_CTX_cleanup_9433 | X509_STORE_CTX_cleanup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %3)
store i64 0, i64* %2, align 8
br label LBL_2
LBL_2:
%6 = add i64 %0, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %8)
store i64 0, i64* %7, align 8
br label LBL_4
LBL_4:
%11 = add i64 %0, 24
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = call i64 @FUNC(i64 %13, i64 4198764)
store i64 0, i64* %12, align 8
br label LBL_6
LBL_6:
%16 = add i64 %0, 32
%17 = call i64 @FUNC(i64 0, i64 %0, i64 %16)
%18 = call i64 @FUNC(i64 %16, i64 0, i64 4)
ret i64 %18
uselistorder i64 %0, { 1, 0, 2, 3, 4 }
} | 0 |
BinRealVul | usb_sg_cancel_7321 | usb_sg_cancel | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge18.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = load i64, i64* %0
%4 = add i64 %2, 32
%5 = call i64 @FUNC(i64 %4, i64 %3)
%6 = trunc i64 %1 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = add i64 %2, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64 %4, i64 %3)
store i64 %14, i64* %storemerge.reg2mem
br label LBL_11
LBL_3:
%15 = bitcast i64* %arg1 to i32*
store i32 -104, i32* %15, align 4
%16 = load i32, i32* %10, align 4
%17 = add i32 %16, 1
store i32 %17, i32* %10, align 4
%18 = call i64 @FUNC(i64 %4, i64 %3)
%19 = add i64 %2, 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%storemerge17 = add i32 %21, -1
%22 = icmp slt i32 %storemerge17, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_4, label LBL_8
LBL_4:
%24 = add i64 %2, 24
%25 = inttoptr i64 %24 to i64*
%26 = add i64 %2, 16
%27 = inttoptr i64 %26 to i64*
store i32 %storemerge17, i32* %storemerge18.reg2mem
br label LBL_5
LBL_5:
%storemerge18.reload = load i32, i32* %storemerge18.reg2mem
%28 = load i64, i64* %25, align 8
%29 = sext i32 %storemerge18.reload to i64
%30 = mul i64 %29, 8
%31 = add i64 %30, %28
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = call i64 @FUNC(i64 %33)
%35 = load i64, i64* %25, align 8
%36 = add i64 %35, %30
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = call i64 @FUNC(i64 %38)
%40 = trunc i64 %39 to i32
%41 = add i32 %40, -1
%42 = icmp ult i32 %41, 4
br i1 %42, label LBL_7, label LBL_6
LBL_6:
%43 = load i64, i64* %27, align 8
%44 = and i64 %39, 4294967295
%45 = call i64 @FUNC(i64 %43, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0), i64 %44)
br label LBL_7
LBL_7:
%storemerge1 = add i32 %storemerge18.reload, -1
%46 = icmp slt i32 %storemerge1, 0
%47 = icmp eq i1 %46, false
store i32 %storemerge1, i32* %storemerge18.reg2mem
br i1 %47, label LBL_5, label LBL_8
LBL_8:
%48 = call i64 @FUNC(i64 %4, i64 %3)
%49 = load i32, i32* %10, align 4
%50 = add i32 %49, -1
store i32 %50, i32* %10, align 4
%51 = icmp eq i32 %50, 0
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_10, label LBL_9
LBL_9:
%53 = add i64 %2, 36
%54 = call i64 @FUNC(i64 %53)
br label LBL_10
LBL_10:
%55 = call i64 @FUNC(i64 %4, i64 %3)
store i64 %55, i64* %storemerge.reg2mem
br label LBL_11
LBL_11:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %30, { 1, 0 }
uselistorder i32 %storemerge18.reload, { 1, 0 }
uselistorder i32* %10, { 0, 1, 3, 2, 4 }
uselistorder i32* %storemerge18.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 -1, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @spin_unlock_irqrestore, { 2, 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3, 4 }
uselistorder i64 (i64, i64)* @spin_lock_irqsave, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | gui_buffer_line_add_to_infolist_18805 | gui_buffer_line_add_to_infolist | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%.reg2mem11 = alloca i32
%storemerge5.reg2mem = alloca i32
%.reg2mem9 = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.06.reg2mem = alloca i32
%storemerge27.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%0 = icmp ne i64* %arg1, null
%1 = icmp eq i64* %arg2, null
%2 = icmp eq i1 %1, false
%or.cond = icmp eq i1 %0, %2
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_22
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_22
LBL_2:
%7 = ptrtoint i64* %arg2 to i64
%8 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_22
LBL_3:
%12 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64 ptrtoint ([5 x i8]* @gv_0 to i64))
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_4, label LBL_22
LBL_4:
%16 = add i64 %7, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0), i64 %18)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_5, label LBL_22
LBL_5:
%23 = add i64 %7, 16
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0), i32 %25)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
store i64 0, i64* %rax.0.reg2mem
br i1 %29, label LBL_6, label LBL_22
LBL_6:
%30 = load i32, i32* %24, align 4
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_10, label LBL_7
LBL_7:
%32 = bitcast i64* %sv_1 to i8*
%33 = add i64 %7, 24
%34 = inttoptr i64 %33 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge27.reg2mem
br label LBL_8
LBL_8:
%storemerge27.reload = load i32, i32* %storemerge27.reg2mem
%.reload = load i64, i64* %.reg2mem
%35 = add i32 %storemerge27.reload, 1
%36 = zext i32 %35 to i64
%37 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %32, i32 64, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_4, i64 0, i64 0), i64 %36)
%38 = load i64, i64* %34, align 8
%39 = mul i64 %.reload, 8
%40 = add i64 %38, %39
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = call i64 @FUNC(i64 %4, i8* nonnull %32, i64 %42)
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
store i64 0, i64* %rax.0.reg2mem
br i1 %46, label LBL_9, label LBL_22
LBL_9:
%sv_0.06.reload = load i32, i32* %sv_0.06.reg2mem
%47 = load i64, i64* %34, align 8
%48 = add i64 %47, %39
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = inttoptr i64 %50 to i8*
%52 = call i32 @strlen(i8* %51)
%53 = add i32 %sv_0.06.reload, 1
%54 = add i32 %53, %52
%55 = load i32, i32* %24, align 4
%56 = zext i32 %55 to i64
%57 = sext i32 %35 to i64
%58 = icmp slt i64 %57, %56
store i64 %57, i64* %.reg2mem
store i32 %35, i32* %storemerge27.reg2mem
store i32 %54, i32* %sv_0.06.reg2mem
store i32 %54, i32* %sv_0.0.lcssa.reg2mem
br i1 %58, label LBL_8, label LBL_10
LBL_10:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%59 = add i32 %sv_0.0.lcssa.reload, 1
%60 = call i64* @malloc(i32 %59)
%61 = icmp eq i64* %60, null
%62 = icmp eq i1 %61, false
store i64 0, i64* %rax.0.reg2mem
br i1 %62, label LBL_11, label LBL_22
LBL_11:
%63 = bitcast i64* %60 to i8*
store i8 0, i8* %63, align 1
%64 = load i32, i32* %24, align 4
%65 = icmp eq i32 %64, 0
br i1 %65, label LBL_11.LBL_17_crit_edge, label LBL_13
LBL_12:
%.pre8 = ptrtoint i64* %60 to i64
store i64 %.pre8, i64* %.pre-phi.reg2mem
br label LBL_17
LBL_13:
%66 = add i64 %7, 24
%67 = inttoptr i64 %66 to i64*
%68 = ptrtoint i64* %60 to i64
store i64 0, i64* %.reg2mem9
store i32 0, i32* %storemerge5.reg2mem
br label LBL_14
LBL_14:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%.reload10 = load i64, i64* %.reg2mem9
%69 = load i64, i64* %67, align 8
%70 = mul i64 %.reload10, 8
%71 = add i64 %69, %70
%72 = inttoptr i64 %71 to i64*
%73 = load i64, i64* %72, align 8
%74 = inttoptr i64 %73 to i8*
%75 = call i8* @strcat(i8* %63, i8* %74)
%76 = load i32, i32* %24, align 4
%77 = add i32 %76, -1
%78 = zext i32 %77 to i64
%79 = icmp slt i64 %.reload10, %78
store i32 %76, i32* %.reg2mem11
br i1 %79, label LBL_15, label LBL_16
LBL_15:
%80 = call i32 @strlen(i8* %63)
%81 = sext i32 %80 to i64
%82 = add i64 %81, %68
%83 = inttoptr i64 %82 to i16*
store i16 44, i16* %83, align 2
%.pre = load i32, i32* %24, align 4
store i32 %.pre, i32* %.reg2mem11
br label LBL_16
LBL_16:
%.reload12 = load i32, i32* %.reg2mem11
%84 = add i32 %storemerge5.reload, 1
%85 = zext i32 %.reload12 to i64
%86 = sext i32 %84 to i64
%87 = icmp slt i64 %86, %85
store i64 %86, i64* %.reg2mem9
store i32 %84, i32* %storemerge5.reg2mem
store i64 %68, i64* %.pre-phi.reg2mem
br i1 %87, label LBL_14, label LBL_17
LBL_17:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%88 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_5, i64 0, i64 0), i64 %.pre-phi.reload)
%89 = trunc i64 %88 to i32
%90 = icmp eq i32 %89, 0
%91 = icmp eq i1 %90, false
call void @free(i64* %60)
store i64 0, i64* %rax.0.reg2mem
br i1 %91, label LBL_18, label LBL_22
LBL_18:
%92 = add i64 %7, 32
%93 = inttoptr i64 %92 to i32*
%94 = load i32, i32* %93, align 4
%95 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_6, i64 0, i64 0), i32 %94)
%96 = trunc i64 %95 to i32
%97 = icmp eq i32 %96, 0
%98 = icmp eq i1 %97, false
store i64 0, i64* %rax.0.reg2mem
br i1 %98, label LBL_19, label LBL_22
LBL_19:
%99 = add i64 %7, 36
%100 = inttoptr i64 %99 to i32*
%101 = load i32, i32* %100, align 4
%102 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_7, i64 0, i64 0), i32 %101)
%103 = trunc i64 %102 to i32
%104 = icmp eq i32 %103, 0
%105 = icmp eq i1 %104, false
store i64 0, i64* %rax.0.reg2mem
br i1 %105, label LBL_20, label LBL_22
LBL_20:
%106 = add i64 %7, 40
%107 = inttoptr i64 %106 to i64*
%108 = load i64, i64* %107, align 8
%109 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_8, i64 0, i64 0), i64 %108)
%110 = trunc i64 %109 to i32
%111 = icmp eq i32 %110, 0
%112 = icmp eq i1 %111, false
store i64 0, i64* %rax.0.reg2mem
br i1 %112, label LBL_21, label LBL_22
LBL_21:
%113 = add i64 %7, 48
%114 = inttoptr i64 %113 to i64*
%115 = load i64, i64* %114, align 8
%116 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_9, i64 0, i64 0), i64 %115)
%117 = trunc i64 %116 to i32
%118 = icmp eq i32 %117, 0
%119 = icmp eq i1 %118, false
%. = zext i1 %119 to i64
store i64 %., i64* %rax.0.reg2mem
br label LBL_22
LBL_22:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %60, { 2, 1, 0, 4, 3 }
uselistorder i64 %39, { 1, 0 }
uselistorder i32* %24, { 0, 3, 2, 4, 1, 5 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge27.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.06.reg2mem, { 1, 0 }
uselistorder i64* %.reg2mem9, { 1, 0, 2 }
uselistorder i32* %storemerge5.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 5, 6, 7, 1, 8, 9, 10, 11, 12, 13 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i64 (i64, i8*, i32)* @infolist_new_var_integer, { 2, 1, 0 }
uselistorder i64 (i64, i8*, i64)* @infolist_new_var_string, { 4, 3, 2, 1, 0 }
uselistorder i32 0, { 5, 6, 7, 8, 9, 0, 2, 10, 1, 3, 11, 12, 13, 14, 4 }
uselistorder i64 (i64, i8*, i64)* @infolist_new_var_time, { 1, 0 }
uselistorder [5 x i8]* @gv_0, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 7, 6, 8, 9, 10, 11, 12, 0 }
uselistorder i64* null, { 1, 0, 2 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_22, { 1, 2, 3, 4, 5, 6, 0, 7, 8, 9, 10, 11, 12 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | mov_probe_2063 | mov_probe | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.06.reg2mem = alloca i64
%sv_1.07.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp ugt i32 %3, 7
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_31
LBL_1:
%5 = zext i32 %3 to i64
store i64 0, i64* %sv_1.07.reg2mem
store i64 0, i64* %sv_0.06.reg2mem
br label LBL_2
LBL_2:
%sv_1.07.reload = load i64, i64* %sv_1.07.reg2mem
%6 = add i64 %sv_1.07.reload, %0
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, -2105376899
br i1 %10, label LBL_29, label LBL_3
LBL_3:
%sv_0.06.reload = load i64, i64* %sv_0.06.reg2mem
%11 = icmp ult i32 %9, -2105376898
br i1 %11, label LBL_4, label LBL_30
LBL_4:
%12 = icmp eq i32 %9, 2003395685
store i64 95, i64* %rax.0.reg2mem
br i1 %12, label LBL_31, label LBL_5
LBL_5:
%13 = icmp ult i32 %9, 2003395686
br i1 %13, label LBL_6, label LBL_30
LBL_6:
%14 = icmp eq i32 %9, 1970628964
br i1 %14, label LBL_29, label LBL_7
LBL_7:
%15 = icmp ult i32 %9, 1970628965
br i1 %15, label LBL_8, label LBL_30
LBL_8:
%16 = icmp eq i32 %9, 1969517665
store i64 100, i64* %rax.0.reg2mem
br i1 %16, label LBL_31, label LBL_9
LBL_9:
%17 = icmp ult i32 %9, 1969517666
br i1 %17, label LBL_10, label LBL_30
LBL_10:
%18 = icmp eq i32 %9, 1936419184
br i1 %18, label LBL_29, label LBL_11
LBL_11:
%19 = icmp ult i32 %9, 1936419185
br i1 %19, label LBL_12, label LBL_30
LBL_12:
%20 = icmp eq i32 %9, 1886545516
br i1 %20, label LBL_29, label LBL_13
LBL_13:
%21 = icmp ult i32 %9, 1886545517
br i1 %21, label LBL_14, label LBL_30
LBL_14:
%22 = icmp eq i32 %9, 1886285684
store i64 100, i64* %rax.0.reg2mem
br i1 %22, label LBL_31, label LBL_15
LBL_15:
%23 = icmp ult i32 %9, 1886285685
br i1 %23, label LBL_16, label LBL_30
LBL_16:
%24 = icmp eq i32 %9, 1885954932
store i64 95, i64* %rax.0.reg2mem
br i1 %24, label LBL_31, label LBL_17
LBL_17:
%25 = icmp ult i32 %9, 1885954933
br i1 %25, label LBL_18, label LBL_30
LBL_18:
%26 = icmp eq i32 %9, 1836019574
store i64 100, i64* %rax.0.reg2mem
br i1 %26, label LBL_31, label LBL_19
LBL_19:
%27 = icmp ult i32 %9, 1836019575
br i1 %27, label LBL_20, label LBL_30
LBL_20:
%28 = icmp eq i32 %9, 1835295092
store i64 100, i64* %rax.0.reg2mem
br i1 %28, label LBL_31, label LBL_21
LBL_21:
%29 = icmp ult i32 %9, 1835295093
br i1 %29, label LBL_22, label LBL_30
LBL_22:
%30 = icmp eq i32 %9, 1786080875
store i64 95, i64* %rax.0.reg2mem
br i1 %30, label LBL_31, label LBL_23
LBL_23:
%31 = icmp ult i32 %9, 1786080876
br i1 %31, label LBL_24, label LBL_30
LBL_24:
%32 = icmp eq i32 %9, 1783636000
store i64 100, i64* %rax.0.reg2mem
br i1 %32, label LBL_31, label LBL_25
LBL_25:
%33 = icmp ult i32 %9, 1783636001
br i1 %33, label LBL_26, label LBL_30
LBL_26:
%34 = icmp eq i32 %9, 1718909296
store i64 100, i64* %rax.0.reg2mem
br i1 %34, label LBL_31, label LBL_27
LBL_27:
%35 = icmp ult i32 %9, 1718909297
br i1 %35, label LBL_28, label LBL_30
LBL_28:
store i64 95, i64* %rax.0.reg2mem
store i64 95, i64* %rax.0.reg2mem
switch i32 %9, label LBL_30 [
i32 1718773093, label LBL_31
i32 1701079415, label LBL_31
]
LBL_29:
%36 = inttoptr i64 %6 to i32*
%37 = load i32, i32* %36, align 4
%38 = zext i32 %37 to i64
%39 = add i64 %sv_1.07.reload, %38
%40 = add i64 %39, 7
%41 = icmp slt i64 %40, %5
store i64 %39, i64* %sv_1.07.reg2mem
store i64 50, i64* %sv_0.06.reg2mem
store i64 50, i64* %rax.0.reg2mem
br i1 %41, label LBL_2, label LBL_31
LBL_30:
store i64 %sv_0.06.reload, i64* %rax.0.reg2mem
br label LBL_31
LBL_31:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_1.07.reload, { 1, 0 }
uselistorder i64* %sv_1.07.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.06.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 14, 1, 7, 8, 13, 12, 6, 11, 10, 5, 9, 2, 3, 4 }
uselistorder i64 100, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 95, { 3, 4, 2, 1, 0 }
uselistorder label LBL_31, { 13, 0, 7, 6, 12, 11, 5, 10, 9, 4, 8, 1, 2, 3 }
uselistorder label LBL_30, { 5, 6, 7, 8, 9, 10, 11, 12, 13, 0, 1, 2, 3, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | omap_pcm_open_5284 | omap_pcm_open | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64* nonnull @gv_0)
%2 = call i64 @FUNC(i64 %0, i64 0)
%3 = trunc i64 %2 to i32
%4 = icmp slt i32 %3, 0
store i64 %2, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 4, i64 0)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 4294967284, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_2, label LBL_3
LBL_2:
%8 = call i64 @FUNC(i64 %5)
store i64 %5, i64* %arg1, align 8
store i64 %2, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%9 = and i64 %sv_0.0.reload, 4294967295
ret i64 %9
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | nft_range_init_4041 | nft_range_init | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.shrunk.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = ptrtoint i64* %arg2 to i64
%2 = load i32, i32* %0
%3 = load i32, i32* %0
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
%4 = call i64 @FUNC(i64 %1)
%5 = icmp eq i64* %arg3, null
store i64 4294967274, i64* %rax.0.shrunk.reg2mem
br i1 %5, label LBL_13, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg3 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
store i64 4294967274, i64* %rax.0.shrunk.reg2mem
br i1 %10, label LBL_13, label LBL_2
LBL_2:
%11 = add i64 %6, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
store i64 4294967274, i64* %rax.0.shrunk.reg2mem
br i1 %14, label LBL_13, label LBL_3
LBL_3:
%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 = icmp eq i1 %18, false
store i64 4294967274, i64* %rax.0.shrunk.reg2mem
br i1 %19, label LBL_4, label LBL_13
LBL_4:
%20 = add i64 %4, 12
%21 = bitcast i32* %sv_3 to i64*
%22 = call i64 @FUNC(i64 0, i64 %20, i64 4, i64* nonnull %21, i64 %13)
%23 = trunc i64 %22 to i32
%24 = icmp slt i32 %23, 0
%25 = icmp eq i1 %24, false
store i64 %22, i64* %rax.0.shrunk.reg2mem
br i1 %25, label LBL_5, label LBL_13
LBL_5:
%26 = load i64, i64* %16, align 8
%27 = add i64 %4, 16
%28 = bitcast i32* %sv_2 to i64*
%29 = call i64 @FUNC(i64 0, i64 %27, i64 4, i64* nonnull %28, i64 %26)
%30 = trunc i64 %29 to i32
%31 = icmp slt i32 %30, 0
store i64 %29, i64* %sv_0.1.reg2mem
br i1 %31, label LBL_12, label LBL_6
LBL_6:
%32 = load i32, i32* %sv_3, align 4
%33 = load i32, i32* %sv_2, align 4
%34 = icmp eq i32 %32, %33
store i64 4294967274, i64* %sv_0.0.reg2mem
br i1 %34, label LBL_7, label LBL_11
LBL_7:
%35 = inttoptr i64 %4 to i32*
%36 = zext i32 %32 to i64
%37 = call i64 @FUNC(i64 %36)
%38 = trunc i64 %37 to i32
store i32 %38, i32* %35, align 4
%39 = load i32, i32* %sv_3, align 4
%40 = zext i32 %39 to i64
%41 = and i64 %37, 4294967295
%42 = call i64 @FUNC(i64 %41, i64 %40)
%43 = trunc i64 %42 to i32
%44 = icmp slt i32 %43, 0
store i64 %42, i64* %sv_0.0.reg2mem
br i1 %44, label LBL_11, label LBL_8
LBL_8:
%45 = load i64, i64* %8, align 8
%46 = bitcast i32* %sv_1 to i64*
%47 = call i64 @FUNC(i64 %45, i64 255, i64* nonnull %46)
%48 = trunc i64 %47 to i32
%49 = icmp slt i32 %48, 0
store i64 %47, i64* %sv_0.0.reg2mem
br i1 %49, label LBL_11, label LBL_9
LBL_9:
%50 = load i32, i32* %sv_1, align 4
%51 = icmp ult i32 %50, 2
store i64 4294967274, i64* %sv_0.0.reg2mem
br i1 %51, label LBL_10, label LBL_11
LBL_10:
%52 = add i64 %4, 4
%53 = inttoptr i64 %52 to i32*
store i32 %50, i32* %53, align 4
%54 = load i32, i32* %sv_3, align 4
%55 = add i64 %4, 8
%56 = inttoptr i64 %55 to i32*
store i32 %54, i32* %56, align 4
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_13
LBL_11:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%57 = zext i32 %3 to i64
%58 = call i64 @FUNC(i64 %27, i64 %57)
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_12
LBL_12:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%59 = zext i32 %2 to i64
%60 = call i64 @FUNC(i64 %20, i64 %59)
store i64 %sv_0.1.reload, i64* %rax.0.shrunk.reg2mem
br label LBL_13
LBL_13:
%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 i32 %32, { 1, 0 }
uselistorder i64 %6, { 2, 1, 0 }
uselistorder i64 %4, { 0, 1, 4, 2, 3 }
uselistorder i32* %sv_3, { 2, 1, 0, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 3, 4, 2 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 7, 6, 1, 5, 4, 3, 2 }
uselistorder i32* %0, { 1, 0 }
uselistorder i64 (i64, i64)* @nft_data_uninit, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64*, i64)* @nft_data_init, { 1, 0 }
uselistorder i64 4, { 2, 0, 1 }
uselistorder i64 4294967274, { 4, 5, 3, 2, 1, 0 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder label LBL_13, { 5, 6, 0, 4, 3, 2, 1 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 0, 2, 3, 1 }
} | 0 |
BinRealVul | mkv_field_order_15693 | mkv_field_order | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%0 = bitcast i64* %arg1 to i8*
%1 = call i32 (i8*, i8*, ...) @sscanf(i8* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_1, i64* nonnull %sv_2, i64* nonnull %sv_3)
%2 = icmp eq i32 %1, 3
%3 = icmp eq i1 %2, false
store i32 0, i32* %sv_0.0.reg2mem
br i1 %3, label LBL_5, label LBL_1
LBL_1:
%4 = load i64, i64* %sv_1, align 8
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 57
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_4, label LBL_2
LBL_2:
%8 = load i64, i64* %sv_2, align 8
%9 = trunc i64 %8 to i32
%.off = add i32 %9, -36
%10 = icmp ugt i32 %.off, 15
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = load i64, i64* %sv_3, align 8
%12 = trunc i64 %11 to i32
%13 = icmp slt i32 %12, 100
store i32 1, i32* %sv_0.0.reg2mem
br i1 %13, label LBL_4, label LBL_5
LBL_4:
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
store i64 %arg2, i64* @0, align 8
store i64 0, i64* %rax.0.reg2mem
switch i64 %arg2, label LBL_11 [
i64 0, label LBL_12
i64 1, label LBL_6
i64 2, label LBL_7
i64 3, label LBL_8
i64 4, label LBL_9
i64 5, label LBL_10
]
LBL_6:
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_7:
store i64 2, i64* %rax.0.reg2mem
br label LBL_12
LBL_8:
store i64 3, i64* %rax.0.reg2mem
br label LBL_12
LBL_9:
%14 = icmp eq i32 %sv_0.0.reload, 0
%. = select i1 %14, i64 4, i64 5
store i64 %., i64* %rax.0.reg2mem
br label LBL_12
LBL_10:
%15 = icmp eq i32 %sv_0.0.reload, 0
%.1 = select i1 %15, i64 5, i64 4
store i64 %.1, i64* %rax.0.reg2mem
br label LBL_12
LBL_11:
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_3, { 1, 0 }
uselistorder i64* %sv_2, { 1, 0 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 1, 2, 6, 5, 4, 3 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i32 0, { 2, 3, 0, 1 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_12, { 6, 0, 1, 3, 4, 5, 2 }
} | 1 |
BinRealVul | vidioc_streamon_4147 | vidioc_streamon | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.in.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp slt i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 %1, i64* %storemerge.in.reg2mem
br i1 %4, label LBL_1, label LBL_4
LBL_1:
%5 = call i64 @FUNC(i64 %0)
%6 = call i64 @FUNC(i64 %0)
%7 = icmp sgt i64 %6, -1
%8 = zext i1 %7 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
store i64 %6, i64* %sv_0.0.reg2mem
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = add i64 %0, 8
%13 = call i64 @FUNC(i64 %12)
store i64 %13, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%14 = call i64 @FUNC(i64 %0)
store i64 %sv_0.0.reload, i64* %storemerge.in.reg2mem
br label LBL_4
LBL_4:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = and i64 %storemerge.in.reload, 4294967295
ret i64 %storemerge
uselistorder i64 %0, { 1, 0, 2, 3, 4 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | mcf_fec_do_tx_18949 | mcf_fec_do_tx | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%sv_0.0.be.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i64
%sv_2.1.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = load i64, i64* %0
%7 = load i64, i64* %0
%8 = ptrtoint i64* %arg1 to i64
%9 = load i32, i32* %1
%10 = load i32, i32* %1
%sv_4 = alloca i32, align 4
%sv_5 = alloca i64, align 8
%11 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i64 %5, i64 %6, i64 %7, i64 %3, i64 %2)
%12 = ptrtoint i64* %sv_5 to i64
%13 = trunc i64 %4 to i32
%14 = bitcast i32* %sv_4 to i64*
%15 = zext i32 %9 to i64
%16 = zext i32 %10 to i64
%17 = add i64 %8, 8
%18 = inttoptr i64 %17 to i32*
%19 = add i64 %8, 16
%20 = inttoptr i64 %19 to i64*
%21 = add i64 %8, 4
%22 = inttoptr i64 %21 to i32*
store i32 %13, i32* %sv_0.0.reg2mem
store i32 0, i32* %sv_2.0.reg2mem
store i64 %12, i64* %sv_1.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%23 = zext i32 %sv_0.0.reload to i64
%24 = call i64 @FUNC(i64* nonnull %14, i64 %23)
%25 = load i32, i32* %sv_4, align 4
%26 = zext i32 %25 to i64
%27 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_1, i64 0, i64 0), i64 %23, i64 %26, i64 %15, i64 %16, i64 %2)
%28 = load i32, i32* %sv_4, align 4
%29 = urem i32 %28, 2
%30 = icmp eq i32 %29, 0
br i1 %30, label LBL_11, label LBL_2
LBL_2:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%31 = add i32 %sv_2.0.reload, %9
%32 = icmp slt i32 %31, 1519
store i32 %31, i32* %.pre-phi.reg2mem
br i1 %32, label LBL_4, label LBL_3
LBL_3:
%33 = sub i32 1518, %sv_2.0.reload
%34 = load i32, i32* %18, align 4
%35 = or i32 %34, 8
store i32 %35, i32* %18, align 4
store i32 1518, i32* %.pre-phi.reg2mem
store i32 %33, i32* %sv_3.0.reg2mem
br label LBL_4
LBL_4:
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%36 = call i64 @FUNC(i64 %16, i64 %sv_1.0.reload, i32 %sv_3.0.reload)
%37 = load i32, i32* %sv_4, align 4
%38 = and i32 %37, 2
%39 = icmp eq i32 %38, 0
br i1 %39, label LBL_4.LBL_7_crit_edge, label LBL_6
LBL_5:
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%40 = sext i32 %sv_3.0.reload to i64
%41 = add i64 %sv_1.0.reload, %40
%.pre = load i32, i32* %18, align 4
store i32 %.pre, i32* %.reg2mem
store i32 %.pre-phi.reload, i32* %sv_2.1.reg2mem
store i64 %41, i64* %sv_1.1.reg2mem
br label LBL_7
LBL_6:
%42 = zext i32 %sv_3.0.reload to i64
%43 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0), i64 %sv_1.0.reload, i64 %42, i64 %sv_1.0.reload, i64 %16, i64 %2)
%44 = load i64, i64* %20, align 8
%45 = call i64 @FUNC(i64 %44)
%46 = call i64 @FUNC(i64 %45, i64* nonnull %sv_5, i32 %sv_3.0.reload)
%47 = load i32, i32* %18, align 4
%48 = or i32 %47, 16
store i32 %48, i32* %18, align 4
store i32 %48, i32* %.reg2mem
store i32 0, i32* %sv_2.1.reg2mem
store i64 %12, i64* %sv_1.1.reg2mem
br label LBL_7
LBL_7:
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%.reload = load i32, i32* %.reg2mem
%49 = or i32 %.reload, 32
store i32 %49, i32* %18, align 4
%50 = load i32, i32* %sv_4, align 4
%51 = and i32 %50, -2
store i32 %51, i32* %sv_4, align 4
%52 = call i64 @FUNC(i64* nonnull %14, i64 %23)
%53 = load i32, i32* %sv_4, align 4
%54 = and i32 %53, 4
%55 = icmp eq i32 %54, 0
br i1 %55, label LBL_10, label LBL_8
LBL_8:
%56 = load i32, i32* %22, align 4
store i32 %56, i32* %sv_0.0.be.reg2mem
br label LBL_1.backedge
LBL_9:
%sv_0.0.be.reload = load i32, i32* %sv_0.0.be.reg2mem
store i32 %sv_0.0.be.reload, i32* %sv_0.0.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.0.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.0.reg2mem
br label LBL_1
LBL_10:
%57 = add i32 %sv_0.0.reload, 8
store i32 %57, i32* %sv_0.0.be.reg2mem
br label LBL_1.backedge
LBL_11:
%58 = bitcast i64* %arg1 to i32*
store i32 %sv_0.0.reload, i32* %58, align 4
ret i64 %8
uselistorder i32 %sv_3.0.reload, { 3, 1, 2, 0 }
uselistorder i64 %sv_1.0.reload, { 2, 1, 3, 0 }
uselistorder i32 %sv_0.0.reload, { 2, 1, 0 }
uselistorder i32* %18, { 1, 3, 2, 0, 4, 5 }
uselistorder i64 %16, { 1, 0, 2 }
uselistorder i32* %sv_4, { 5, 4, 3, 2, 1, 0, 6 }
uselistorder i32 %9, { 1, 0 }
uselistorder i64 %8, { 3, 2, 1, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.be.reg2mem, { 2, 0, 1 }
uselistorder i32* %1, { 1, 0 }
uselistorder i64* %0, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 8, { 1, 2, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 0, { 2, 0, 3, 4, 1 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @DPRINTF, { 2, 1, 0 }
uselistorder label LBL_1.backedge, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | apply_filters_to_response_8845 | apply_filters_to_response | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg3, null
%3 = icmp eq i1 %2, false
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_12
LBL_1:
%4 = ptrtoint i64* %arg3 to i64
%5 = ptrtoint i64* %arg2 to i64
%6 = ptrtoint i64* %arg1 to i64
%7 = trunc i64 %1 to i32
%8 = urem i32 %7, 2
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
%11 = and i32 %7, 2
%12 = icmp eq i32 %11, 0
store i64 %4, i64* %storemerge2.reg2mem
br label LBL_2
LBL_2:
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_12, label LBL_3
LBL_3:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
br i1 %12, label LBL_6, label LBL_4
LBL_4:
%13 = inttoptr i64 %storemerge2.reload to i32*
%14 = load i32, i32* %13, align 4
%.off = add i32 %14, -1
%switch = icmp ugt i32 %.off, 1
%15 = icmp eq i32 %14, 3
%16 = icmp eq i1 %15, false
%or.cond = icmp eq i1 %switch, %16
br i1 %or.cond, label LBL_6, label LBL_5
LBL_5:
%17 = add i64 %storemerge2.reload, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
store i64 %19, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_6:
%20 = add i64 %storemerge2.reload, 16
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp eq i64 %22, 0
br i1 %23, label LBL_8, label LBL_7
LBL_7:
%24 = call i64 @FUNC(i64 %22, i64 %4, i64 %6, i64 %6, i64 12)
%25 = and i64 %24, 4294967295
%26 = call i64 @FUNC(i64 %25)
%27 = trunc i64 %26 to i32
%28 = load i64, i64* %21, align 8
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = icmp eq i32 %30, 1
%32 = icmp eq i1 %31, false
%33 = icmp eq i32 %27, 0
%34 = zext i1 %33 to i32
%sv_1.0 = select i1 %32, i32 %27, i32 %34
%35 = icmp eq i32 %sv_1.0, 0
store i64 %storemerge2.reload, i64* %sv_0.0.reg2mem
br i1 %35, label LBL_11, label LBL_8
LBL_8:
%36 = call i64 @FUNC(i64 %6, i64 %5, i64 %storemerge2.reload)
%37 = trunc i64 %36 to i32
%38 = icmp sgt i32 %37, -1
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %38, label LBL_9, label LBL_12
LBL_9:
%39 = icmp eq i32 %37, 0
%40 = icmp eq i1 %39, false
store i64 %storemerge2.reload, i64* %sv_0.0.reg2mem
br i1 %40, label LBL_11, label LBL_10
LBL_10:
%41 = call i64 @FUNC(i64 %6, i64 %5, i64 %storemerge2.reload)
%42 = trunc i64 %41 to i32
%43 = icmp sgt i32 %42, -1
store i64 %storemerge2.reload, i64* %sv_0.0.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %43, label LBL_11, label LBL_12
LBL_11:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%44 = add i64 %sv_0.0.reload, 8
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = icmp eq i64 %46, 0
%48 = icmp eq i1 %47, false
store i64 %46, i64* %storemerge2.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %48, label LBL_2, label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %storemerge2.reload, { 1, 7, 2, 6, 0, 4, 3, 5 }
uselistorder i32 %7, { 1, 0 }
uselistorder i64 %6, { 2, 3, 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 4, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 4, 2, 5 }
uselistorder i32 -1, { 2, 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i1 false, { 5, 2, 3, 1, 4, 0 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder label LBL_12, { 3, 1, 0, 2, 4 }
uselistorder label LBL_11, { 1, 2, 0, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | userfaultfd_ctx_put_9653 | userfaultfd_ctx_put | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
store i64 %0, i64* %rax.0.reg2mem
br i1 %2, label LBL_18, label LBL_1
LBL_1:
%3 = add i64 %arg1, 4
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%8 = call i32 @fwrite(i64* bitcast ([15 x i8]* @gv_1 to i64*), i32 1, i32 14, %_IO_FILE* %7)
call void @exit(i32 1)
unreachable
LBL_3:
%9 = call i64 @FUNC(i64 %3)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_5, label LBL_4
LBL_4:
%12 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%13 = call i32 @fwrite(i64* bitcast ([15 x i8]* @gv_1 to i64*), i32 1, i32 14, %_IO_FILE* %12)
call void @exit(i32 1)
unreachable
LBL_5:
%14 = add i64 %arg1, 8
%15 = call i64 @FUNC(i64 %14)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_7, label LBL_6
LBL_6:
%18 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%19 = call i32 @fwrite(i64* bitcast ([15 x i8]* @gv_1 to i64*), i32 1, i32 14, %_IO_FILE* %18)
call void @exit(i32 1)
unreachable
LBL_7:
%20 = call i64 @FUNC(i64 %14)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
br i1 %22, label LBL_9, label LBL_8
LBL_8:
%23 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%24 = call i32 @fwrite(i64* bitcast ([15 x i8]* @gv_1 to i64*), i32 1, i32 14, %_IO_FILE* %23)
call void @exit(i32 1)
unreachable
LBL_9:
%25 = add i64 %arg1, 12
%26 = call i64 @FUNC(i64 %25)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_11, label LBL_10
LBL_10:
%29 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%30 = call i32 @fwrite(i64* bitcast ([15 x i8]* @gv_1 to i64*), i32 1, i32 14, %_IO_FILE* %29)
call void @exit(i32 1)
unreachable
LBL_11:
%31 = call i64 @FUNC(i64 %25)
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 0
br i1 %33, label LBL_13, label LBL_12
LBL_12:
%34 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%35 = call i32 @fwrite(i64* bitcast ([15 x i8]* @gv_1 to i64*), i32 1, i32 14, %_IO_FILE* %34)
call void @exit(i32 1)
unreachable
LBL_13:
%36 = add i64 %arg1, 16
%37 = call i64 @FUNC(i64 %36)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
br i1 %39, label LBL_15, label LBL_14
LBL_14:
%40 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%41 = call i32 @fwrite(i64* bitcast ([15 x i8]* @gv_1 to i64*), i32 1, i32 14, %_IO_FILE* %40)
call void @exit(i32 1)
unreachable
LBL_15:
%42 = call i64 @FUNC(i64 %36)
%43 = trunc i64 %42 to i32
%44 = icmp eq i32 %43, 0
br i1 %44, label LBL_17, label LBL_16
LBL_16:
%45 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%46 = call i32 @fwrite(i64* bitcast ([15 x i8]* @gv_1 to i64*), i32 1, i32 14, %_IO_FILE* %45)
call void @exit(i32 1)
unreachable
LBL_17:
%47 = add i64 %arg1, 24
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = call i64 @FUNC(i64 %49)
%51 = load i64, i64* @gv_2, align 8
%52 = call i64 @FUNC(i64 %51, i64 %arg1)
store i64 %52, 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 i64 (i64)* @waitqueue_active, { 3, 2, 1, 0 }
uselistorder void (i32)* @exit, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder %_IO_FILE** @gv_0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @spin_is_locked, { 3, 2, 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2, 3, 4, 5, 6 }
} | 0 |
BinRealVul | scaling_list_data_7455 | scaling_list_data | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i64
%r8.315.reg2mem = alloca i64
%indvars.iv20.reg2mem = alloca i64
%r8.1.reg2mem = alloca i64
%storemerge6.reg2mem = alloca i32
%sv_0.110.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%r8.212.reg2mem = alloca i64
%indvars.iv18.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%4 = ptrtoint i64* %sv_1 to i64
%5 = add i64 %2, 1536
%6 = add i64 %4, -128
%7 = add i64 %4, -80
store i64 0, i64* %indvars.iv20.reg2mem
br label LBL_16
LBL_1:
%r8.212.reload = load i64, i64* %r8.212.reg2mem
%indvars.iv18.reload = load i64, i64* %indvars.iv18.reg2mem
%8 = call i64 @FUNC(i64 %3)
%9 = add nuw nsw i64 %indvars.iv18.reload, %87
%10 = add i64 %7, %9
%11 = trunc i64 %8 to i8
%12 = inttoptr i64 %10 to i8*
store i8 %11, i8* %12, align 1
%13 = icmp eq i8 %11, 0
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_7, label LBL_2
LBL_2:
%15 = call i64 @FUNC(i64 %3)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
store i64 %r8.212.reload, i64* %r8.1.reg2mem
br i1 %17, label LBL_14, label LBL_3
LBL_3:
%18 = trunc i64 %indvars.iv18.reload to i32
%19 = sub i32 %18, %16
%20 = icmp slt i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%22 = add i64 %3, 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = and i64 %15, 4294967295
%26 = call i64 @FUNC(i64 %24, i64 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_0, i64 0, i64 0), i64 %25, i64 %r8.212.reload, i64 %1)
store i64 4294967295, i64* %storemerge1.reg2mem
br label LBL_17
LBL_5:
%27 = sext i32 %19 to i64
%28 = add nsw i64 %87, %27
%29 = mul i64 %28, 64
%30 = add i64 %29, %2
%31 = mul i64 %9, 64
%32 = add i64 %31, %2
%33 = inttoptr i64 %32 to i64*
%34 = inttoptr i64 %30 to i64*
%35 = call i64* @memcpy(i64* %33, i64* %34, i32 %89)
store i64 %r8.212.reload, i64* %r8.1.reg2mem
br i1 %90, label LBL_14, label LBL_6
LBL_6:
%36 = add nsw i64 %91, %27
%37 = mul i64 %36, 4
%38 = add i64 %37, %5
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = add nsw i64 %indvars.iv18.reload, %91
%42 = mul i64 %41, 4
%43 = add i64 %42, %5
%44 = inttoptr i64 %43 to i32*
store i32 %40, i32* %44, align 4
store i64 %r8.212.reload, i64* %r8.1.reg2mem
br label LBL_14
LBL_7:
store i32 8, i32* %sv_0.0.reg2mem
br i1 %90, label LBL_9, label LBL_8
LBL_8:
%45 = call i64 @FUNC(i64 %3)
%46 = trunc i64 %45 to i32
%47 = add i32 %46, 8
%48 = add nsw i64 %indvars.iv18.reload, %91
%49 = mul i64 %48, 4
%50 = add i64 %6, %49
%51 = inttoptr i64 %50 to i32*
store i32 %47, i32* %51, align 4
%52 = add i64 %49, %5
%53 = inttoptr i64 %52 to i32*
store i32 %47, i32* %53, align 4
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
%54 = mul i64 %9, 64
%55 = add i64 %54, %2
store i64 0, i64* %indvars.iv.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.110.reg2mem
br label LBL_10
LBL_10:
%sv_0.110.reload = load i32, i32* %sv_0.110.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%56 = mul i64 %indvars.iv.reload, 4
br i1 %101, label LBL_12, label LBL_11
LBL_11:
%57 = add i64 %56, ptrtoint (i32** @gv_1 to i64)
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = mul i32 %59, 4
%61 = add i64 %56, ptrtoint (i32** @gv_2 to i64)
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = add i32 %63, %60
store i32 %64, i32* %storemerge6.reg2mem
br label LBL_13
LBL_12:
%65 = add i64 %56, ptrtoint (i32** @gv_3 to i64)
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = mul i32 %67, 8
%69 = add i64 %56, ptrtoint (i32** @gv_4 to i64)
%70 = inttoptr i64 %69 to i32*
%71 = load i32, i32* %70, align 4
%72 = add i32 %71, %68
store i32 %72, i32* %storemerge6.reg2mem
br label LBL_13
LBL_13:
%storemerge6.reload = load i32, i32* %storemerge6.reg2mem
%73 = call i64 @FUNC(i64 %3)
%74 = trunc i64 %73 to i32
%75 = add i32 %sv_0.110.reload, 256
%76 = add i32 %75, %74
%77 = srem i32 %76, 256
%78 = sext i32 %storemerge6.reload to i64
%79 = add i64 %55, %78
%80 = trunc i32 %77 to i8
%81 = inttoptr i64 %79 to i8*
store i8 %80, i8* %81, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%82 = icmp slt i64 %indvars.iv.next, %103
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %77, i32* %sv_0.110.reg2mem
store i64 %indvars.iv18.reload, i64* %r8.1.reg2mem
br i1 %82, label LBL_10, label LBL_14
LBL_14:
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%indvars.iv.next19 = add nuw nsw i64 %indvars.iv18.reload, 1
%83 = icmp ult i64 %indvars.iv.next19, %104
store i64 %indvars.iv.next19, i64* %indvars.iv18.reg2mem
store i64 %r8.1.reload, i64* %r8.212.reg2mem
br i1 %83, label LBL_1, label LBL_15
LBL_15:
%indvars.iv.next21 = add nuw nsw i64 %indvars.iv20.reload, 1
%84 = icmp ult i64 %indvars.iv.next21, 4
store i64 %indvars.iv.next21, i64* %indvars.iv20.reg2mem
store i64 %r8.1.reload, i64* %r8.315.reg2mem
store i64 0, i64* %storemerge1.reg2mem
br i1 %84, label LBL_16, label LBL_17
LBL_16:
%r8.315.reload = load i64, i64* %r8.315.reg2mem
%indvars.iv20.reload = load i64, i64* %indvars.iv20.reg2mem
%85 = icmp eq i64 %indvars.iv20.reload, 3
%86 = icmp eq i1 %85, false
%87 = mul nuw nsw i64 %indvars.iv20.reload, 6
%88 = icmp eq i64 %indvars.iv20.reload, 0
%89 = select i1 %88, i32 16, i32 64
%90 = icmp ult i64 %indvars.iv20.reload, 2
%91 = add nsw i64 %87, -12
%indvars.iv20.tr = trunc i64 %indvars.iv20.reload to i32
%92 = mul i32 %indvars.iv20.tr, 2
%93 = add i32 %92, 4
%94 = shl i32 1, %93
%95 = add nsw i32 %94, -64
%96 = icmp eq i32 %95, 0
%97 = icmp slt i32 %95, 0
%98 = icmp eq i1 %97, false
%99 = icmp eq i1 %96, false
%100 = icmp eq i1 %98, %99
%101 = icmp eq i1 %88, false
%102 = sext i32 %94 to i64
%103 = select i1 %100, i64 64, i64 %102
%104 = select i1 %86, i64 6, i64 2
store i64 0, i64* %indvars.iv18.reg2mem
store i64 %r8.315.reload, i64* %r8.212.reg2mem
br label LBL_1
LBL_17:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
ret i64 %storemerge1.reload
uselistorder i32 %95, { 1, 0 }
uselistorder i64 %91, { 0, 2, 1 }
uselistorder i1 %90, { 1, 0 }
uselistorder i64 %87, { 2, 1, 0 }
uselistorder i64 %indvars.iv20.reload, { 5, 1, 4, 2, 3, 0 }
uselistorder i64 %56, { 2, 0, 3, 1 }
uselistorder i64 %49, { 1, 0 }
uselistorder i64 %indvars.iv18.reload, { 1, 0, 5, 4, 2, 3 }
uselistorder i64 %r8.212.reload, { 0, 1, 3, 2 }
uselistorder i64 %3, { 3, 2, 0, 1, 4 }
uselistorder i64* %indvars.iv18.reg2mem, { 2, 1, 0 }
uselistorder i64* %r8.212.reg2mem, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.110.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge6.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 3, 4, 5, 0, 1, 2 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 (i64)* @get_se_golomb, { 1, 0 }
uselistorder i32 8, { 1, 2, 0 }
uselistorder i64 4, { 4, 0, 1, 2, 3 }
uselistorder i64 64, { 3, 0, 1, 2 }
uselistorder i1 false, { 1, 2, 0, 5, 3, 4 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.