dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | raise_irq_cpu_hotplug_2570 | raise_irq_cpu_hotplug | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = load i32*, i32** @gv_0, align 8
%1 = load i32, i32* %0, align 4
%2 = zext i32 %1 to i64
%3 = call i64 @FUNC(i64 %2)
ret i64 %3
} | 0 |
BinRealVul | buffer_empty_3143 | buffer_empty | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i64
ret i64 %4
} | 0 |
BinRealVul | get_tap_socket_10521 | get_tap_socket | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
ret i64 -9
} | 0 |
BinRealVul | sdhci_buff_access_is_sequential_3058 | sdhci_buff_access_is_sequential | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %arg2 to i32
%3 = trunc i64 %1 to i32
%4 = urem i32 %3, 4
%5 = icmp eq i32 %4, %2
store i64 1, i64* %storemerge.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | virtio_scsi_bad_req_980 | virtio_scsi_bad_req | 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, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0))
%3 = add i64 %0, 16
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6, i64 %3, i64 0)
%8 = call i64 @FUNC(i64 %0)
ret i64 %8
} | 0 |
BinRealVul | bdi_register_18508 | bdi_register | define i64 @FUNC(i64* %arg1, i64* %arg2, i8* %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%sv_0.0.reg2mem = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%sv_1 = alloca i32, align 4
%11 = trunc i64 %2 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i128 %10)
%14 = call i64 @FUNC(i128 %9)
%15 = call i64 @FUNC(i128 %8)
%16 = call i64 @FUNC(i128 %7)
%17 = call i64 @FUNC(i128 %6)
%18 = call i64 @FUNC(i128 %5)
%19 = call i64 @FUNC(i128 %4)
%20 = call i64 @FUNC(i128 %3)
br label LBL_2
LBL_2:
%21 = ptrtoint i64* %arg2 to i64
%22 = ptrtoint i64* %arg1 to i64
store i32 24, i32* %sv_1, align 4
%23 = load i64, i64* @gv_0, align 8
%24 = ptrtoint i8* %arg3 to i64
%25 = call i64 @FUNC(i64 %23, i64 %21, i64 0, i64 %22, i64 %24, i32* nonnull %sv_1)
%26 = call i64 @FUNC(i64 %25)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_4, label LBL_3
LBL_3:
%29 = call i64 @FUNC(i64 %25)
%phitmp = and i64 %29, 4294967295
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_4:
store i64 %25, i64* %arg1, align 8
%30 = call i64 @FUNC(i64 %25)
%31 = call i64 @FUNC(i64 %22, i64 %30)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %25, { 1, 2, 0, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 0, { 1, 0 }
} | 1 |
BinRealVul | fm10k_gre_is_nvgre_10088 | fm10k_gre_is_nvgre | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = call i16 @htons(i16 2048)
%4 = trunc i64 %2 to i16
%5 = icmp eq i16 %3, %4
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_5
LBL_1:
%6 = call i64 @FUNC(i64 %0)
%sext = mul i64 %1, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = add i64 %6, %7
%9 = inttoptr i64 %8 to i8*
%10 = load i8, i8* %9, align 1
%11 = urem i8 %10, 2
%12 = icmp eq i8 %11, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_2, label LBL_5
LBL_2:
%13 = and i8 %10, 2
%14 = icmp eq i8 %13, 0
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = add i64 %8, 8
store i64 %15, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%16 = add i64 %8, 4
store i64 %16, 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 i8 %10, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i8 2, { 1, 0 }
uselistorder label LBL_5, { 2, 3, 0, 1 }
} | 0 |
BinRealVul | tget_3069 | tget | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%sext2 = mul i64 %arg3, 4294967296
%2 = ashr exact i64 %sext2, 32
%3 = icmp eq i32 %1, 3
br i1 %3, label LBL_5, label LBL_1
LBL_1:
%4 = icmp sgt i32 %1, 3
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %4, label LBL_6, label LBL_2
LBL_2:
store i64 4294967295, i64* %rax.0.reg2mem
switch i32 %1, label LBL_6 [
i32 1, label LBL_3
i32 2, label LBL_4
]
LBL_3:
%5 = call i64 @FUNC(i64 %0)
store i64 %5, i64* %rax.0.reg2mem
br label LBL_6
LBL_4:
%6 = and i64 %2, 4294967295
%7 = call i64 @FUNC(i64 %0, i64 %6)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%8 = and i64 %2, 4294967295
%9 = call i64 @FUNC(i64 %0, i64 %8)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 1, 0 }
uselistorder i32 %1, { 1, 0, 2 }
uselistorder i64 %0, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 3, 4, 2, 1 }
uselistorder i64 4294967295, { 2, 3, 1, 0 }
uselistorder i32 3, { 1, 0 }
uselistorder label LBL_6, { 2, 3, 4, 1, 0 }
} | 0 |
BinRealVul | eepro100_read4_18688 | eepro100_read4 | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%6 = ashr exact i64 %sext, 32
%7 = icmp ult i32 %5, 253
br i1 %7, label LBL_1, label LBL_2
LBL_1:
%8 = and i64 %6, 4294967295
%9 = add i64 %8, %4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
store i32 %11, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%12 = trunc i64 %6 to i32
%13 = icmp eq i32 %12, 12
br i1 %13, label LBL_10, label LBL_3
LBL_3:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%14 = icmp ult i32 %12, 13
br i1 %14, label LBL_4, label LBL_11
LBL_4:
%15 = icmp eq i32 %12, 8
br i1 %15, label LBL_9, label LBL_5
LBL_5:
%16 = icmp ult i32 %12, 9
br i1 %16, label LBL_6, label LBL_11
LBL_6:
switch i32 %12, label LBL_11 [
i32 0, label LBL_7
i32 4, label LBL_8
]
LBL_7:
%17 = and i64 %6, 4294967295
%18 = call i64 @FUNC(i64 %17)
%19 = zext i32 %sv_0.0.reload to i64
%20 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %18, i64 %19, i64 %3, i64 %2, i64 %1)
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_12
LBL_8:
%21 = call i64 @FUNC(i64 %4)
%22 = trunc i64 %21 to i32
%23 = and i64 %6, 4294967295
%24 = call i64 @FUNC(i64 %23)
%25 = and i64 %21, 4294967295
%26 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %24, i64 %25, i64 %3, i64 %2, i64 %1)
store i32 %22, i32* %sv_0.1.reg2mem
br label LBL_12
LBL_9:
%27 = call i64 @FUNC(i64 %4)
%28 = trunc i64 %27 to i32
%29 = and i64 %6, 4294967295
%30 = call i64 @FUNC(i64 %29)
%31 = and i64 %27, 4294967295
%32 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %30, i64 %31, i64 %3, i64 %2, i64 %1)
store i32 %28, i32* %sv_0.1.reg2mem
br label LBL_12
LBL_10:
%33 = call i64 @FUNC(i64 %4)
%34 = trunc i64 %33 to i32
store i32 %34, i32* %sv_0.1.reg2mem
br label LBL_12
LBL_11:
%35 = and i64 %6, 4294967295
%36 = call i64 @FUNC(i64 %35)
%37 = zext i32 %sv_0.0.reload to i64
%38 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %36, i64 %37, i64 %3, i64 %2, i64 %1)
%39 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0))
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_12
LBL_12:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%40 = zext i32 %sv_0.1.reload to i64
ret i64 %40
uselistorder i32 %sv_0.0.reload, { 0, 3, 1, 2 }
uselistorder i64 %6, { 0, 2, 1, 4, 3, 5 }
uselistorder i64 %4, { 3, 2, 1, 0 }
uselistorder i64 %3, { 3, 2, 1, 0 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 1, 5, 4, 2, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @logout, { 3, 2, 1, 0 }
uselistorder i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), { 3, 0, 2, 1 }
uselistorder i64 (i64)* @regname, { 3, 2, 1, 0 }
uselistorder i64 4294967295, { 5, 0, 1, 3, 4, 2, 6 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | protocol_version_9686 | protocol_version | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.reg2mem2 = alloca i32*
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%3 = call i64* @memcpy(i64* nonnull %sv_0, i64* %arg2, i32 12)
%4 = add i64 %2, 4
%5 = bitcast i64* %sv_0 to i8*
%6 = inttoptr i64 %4 to i64*
%7 = call i32 (i8*, i8*, ...) @sscanf(i8* nonnull %5, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64* %arg1, i64* %6)
%8 = icmp eq i32 %7, 2
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_0)
%10 = call i64 @FUNC(i64 %2)
br label LBL_14
LBL_2:
%11 = trunc i64 %1 to i32
%12 = inttoptr i64 %4 to i32*
%13 = load i32, i32* %12, align 4
%14 = zext i32 %13 to i64
%15 = and i64 %1, 4294967295
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_2, i64 0, i64 0), i64 %15, i64 %14)
%17 = icmp eq i32 %11, 3
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%19 = load i32, i32* %12, align 4
switch i32 %19, label LBL_4 [
i32 3, label LBL_5
i32 4, label LBL_5
i32 5, label LBL_5
i32 7, label LBL_5
i32 8, label LBL_5
]
LBL_4:
%20 = call i32 @puts(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_3, i64 0, i64 0))
%21 = call i64 @FUNC(i64 %2, i64 2)
%22 = call i64 @FUNC(i64 %2)
%23 = call i64 @FUNC(i64 %2)
br label LBL_14
LBL_5:
%24 = icmp ne i32 %19, 4
%25 = icmp eq i32 %19, 5
%26 = icmp eq i1 %25, false
%or.cond = icmp eq i1 %24, %26
br i1 %or.cond, label LBL_7, label LBL_6
LBL_6:
store i32 3, i32* %12, align 4
%27 = add i64 %2, 8
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
store i32 %29, i32* %.reg2mem
store i32* %28, i32** %.reg2mem2
br label LBL_8
LBL_7:
%30 = icmp eq i32 %19, 3
%31 = icmp eq i1 %30, false
%32 = add i64 %2, 8
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
store i32 %34, i32* %.reg2mem
store i32* %33, i32** %.reg2mem2
br i1 %31, label LBL_13, label LBL_8
LBL_8:
%.reload3 = load i32*, i32** %.reg2mem2
%.reload = load i32, i32* %.reg2mem
%35 = icmp eq i32 %.reload, 0
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_10, label LBL_9
LBL_9:
%37 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_4, i64 0, i64 0))
%38 = load i32, i32* %.reload3, align 4
%39 = zext i32 %38 to i64
%40 = call i64 @FUNC(i64 %2, i64 %39)
%41 = call i64 @FUNC(i64 %2)
%42 = call i64 @FUNC(i64 %2)
br label LBL_14
LBL_10:
%43 = icmp eq i32 %.reload, 1
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_12, label LBL_11
LBL_11:
%45 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_5, i64 0, i64 0))
%46 = load i32, i32* %.reload3, align 4
%47 = zext i32 %46 to i64
%48 = call i64 @FUNC(i64 %2, i64 %47)
%49 = call i64 @FUNC(i64 %2)
%50 = call i64 @FUNC(i64 %2)
br label LBL_14
LBL_12:
%51 = zext i32 %.reload to i64
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_6, i64 0, i64 0), i64 %51)
%53 = call i64 @FUNC(i64 %2, i64 2)
%54 = call i64 @FUNC(i64 %2)
%55 = call i64 @FUNC(i64 %2)
br label LBL_14
LBL_13:
%56 = zext i32 %34 to i64
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_7, i64 0, i64 0), i64 %56)
%58 = call i64 @FUNC(i64 %2, i64 1)
%59 = load i32, i32* %33, align 4
%60 = urem i32 %59, 256
%61 = zext i32 %60 to i64
%62 = call i64 @FUNC(i64 %2, i64 %61)
%63 = call i64 @FUNC(i64 %2, i64 4198834, i64 1)
%64 = call i64 @FUNC(i64 %2)
br label LBL_14
LBL_14:
ret i64 0
uselistorder i32 %.reload, { 2, 1, 0 }
uselistorder i32 %34, { 1, 0 }
uselistorder i32* %33, { 1, 0, 2 }
uselistorder i32 %19, { 0, 2, 1, 3 }
uselistorder i64 %2, { 11, 12, 13, 14, 8, 9, 10, 5, 6, 7, 2, 3, 4, 15, 0, 16, 17, 18, 1, 19 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 (i64, i64)* @vnc_write_u8, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 (i64)* @vnc_flush, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @vnc_write_u32, { 3, 2, 1, 0 }
uselistorder i32 (i8*)* @puts, { 2, 1, 0 }
uselistorder i32 4, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 0, 4 }
uselistorder i32 3, { 1, 3, 0, 2 }
uselistorder i64 (i64)* @vnc_client_error, { 2, 1, 0 }
uselistorder i32 (i8*, ...)* @printf, { 3, 2, 1, 0 }
uselistorder label LBL_14, { 3, 2, 1, 0, 4, 5 }
uselistorder label LBL_8, { 1, 0 }
} | 0 |
BinRealVul | x25_state1_machine_18311 | x25_state1_machine | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rsi = alloca i64, align 8
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%2 = trunc i64 %arg3 to i32
%3 = call i64 @FUNC(i64 %1)
switch i32 %2, label LBL_12 [
i32 1, label LBL_1
i32 2, label LBL_10
]
LBL_1:
%4 = inttoptr i64 %3 to i32*
%5 = call i64 @FUNC(i64 %1)
store i32 0, i32* %4, align 4
%6 = add i64 %3, 4
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %7, align 4
%8 = add i64 %3, 8
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = add i64 %3, 12
%11 = inttoptr i64 %10 to i32*
store i32 0, i32* %11, align 4
%12 = add i64 %3, 16
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
%14 = add i64 %3, 20
%15 = inttoptr i64 %14 to i32*
store i32 3, i32* %15, align 4
%16 = bitcast i64* %arg1 to i32*
store i32 1, i32* %16, align 4
%17 = call i64 @FUNC(i64 %0, i64 5)
%18 = bitcast i32* %sv_0 to i64*
%19 = call i64 @FUNC(i64 %0, i64* nonnull %18, i64* nonnull %18)
%20 = trunc i64 %19 to i32
store i32 %20, i32* %sv_0, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label LBL_3, label LBL_2
LBL_2:
%22 = and i64 %19, 4294967295
%23 = call i64 @FUNC(i64 %0, i64 %22)
br label LBL_4
LBL_3:
%24 = icmp slt i32 %20, 0
br i1 %24, label LBL_11, label LBL_4
LBL_4:
%25 = add i64 %3, 292
%26 = add i64 %3, 288
%27 = add i64 %3, 284
%28 = call i64 @FUNC(i64 %0, i64 %27, i64 %26, i64 %25)
%29 = trunc i64 %28 to i32
store i32 %29, i32* %sv_0, align 4
%30 = icmp slt i32 %29, 1
br i1 %30, label LBL_6, label LBL_5
LBL_5:
%31 = and i64 %28, 4294967295
%32 = call i64 @FUNC(i64 %0, i64 %31)
br label LBL_7
LBL_6:
%33 = icmp slt i32 %29, 0
br i1 %33, label LBL_11, label LBL_7
LBL_7:
%34 = bitcast i64* %rsi to i32*
%35 = load i32, i32* %34, align 8
%36 = icmp slt i32 %35, 1
br i1 %36, label LBL_9, label LBL_8
LBL_8:
%37 = add i64 %3, 24
%38 = call i64 @FUNC(i64 %0, i64 %37, i32 %35)
%39 = add i64 %3, 280
%40 = inttoptr i64 %39 to i32*
store i32 %35, i32* %40, align 4
br label LBL_9
LBL_9:
%41 = call i64 @FUNC(i64 %1, i64 0)
br label LBL_12
LBL_10:
%42 = call i64 @FUNC(i64 %1, i64 3)
%43 = add i64 %0, 8
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = add i64 %45, 4
%47 = inttoptr i64 %46 to i8*
%48 = load i8, i8* %47, align 1
%49 = sext i8 %48 to i64
%50 = add i64 %45, 3
%51 = inttoptr i64 %50 to i8*
%52 = load i8, i8* %51, align 1
%53 = sext i8 %52 to i64
%54 = call i64 @FUNC(i64 %1, i64 111, i64 %53, i64 %49)
br label LBL_12
LBL_11:
%55 = call i64 @FUNC(i64 %1, i64 2)
store i32 2, i32* %15, align 4
%56 = call i64 @FUNC(i64 %1)
br label LBL_12
LBL_12:
ret i64 0
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64 %1, { 3, 4, 0, 1, 2, 5, 6 }
uselistorder i64 %0, { 0, 3, 2, 4, 1, 6, 5 }
uselistorder i64 (i64, i64)* @x25_write_internal, { 1, 0 }
uselistorder i64 3, { 1, 0 }
uselistorder i64 (i64, i64)* @skb_pull, { 2, 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 8, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder label LBL_12, { 3, 1, 2, 0 }
} | 1 |
BinRealVul | pm_reset_2281 | pm_reset | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 0)
%4 = add i64 %2, 4
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %4)
%7 = call i64 @FUNC(i64 %4)
%8 = call i64 @FUNC(i64 %4)
%9 = call i64 @FUNC()
%10 = trunc i64 %9 to i8
%11 = icmp eq i8 %10, 0
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = trunc i64 %1 to i32
%13 = or i32 %12, 1
store i32 %13, i32* %arg1, align 4
br label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64 %2)
ret i64 %14
uselistorder i64 %2, { 0, 2, 1 }
} | 0 |
BinRealVul | s390_virtio_bridge_class_init_2294 | s390_virtio_bridge_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
store i64 4198694, i64* %arg1, align 8
%4 = inttoptr i64 %3 to i8*
store i8 1, i8* %4, align 1
ret i64 %3
uselistorder i64 %3, { 1, 0 }
} | 0 |
BinRealVul | bdrv_eject_16096 | bdrv_eject | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%phitmp = trunc i64 %arg1 to i32
%phitmp4 = icmp eq i32 %phitmp, -95
%phitmp5 = icmp eq i1 %phitmp4, false
store i64 %arg1, i64* %rax.1.reg2mem
br i1 %phitmp5, label LBL_4, label LBL_2
LBL_2:
%1 = trunc i64 %arg2 to i32
%2 = icmp eq i32 %1, 0
store i64 %arg1, i64* %rax.1.reg2mem
br i1 %2, label LBL_4, label LBL_3
LBL_3:
%3 = call i64 @FUNC(i64 %arg1)
store i64 %3, i64* %rax.1.reg2mem
br label LBL_4
LBL_4:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64* %rax.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg1, { 3, 1, 0, 2, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | gss_krb5_set_allowable_enctypes_17792 | gss_krb5_set_allowable_enctypes | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%.lcssa.reg2mem = alloca i64
%storemerge.lcssa.reg2mem = alloca i32
%storemerge4.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_2 = alloca i32, align 4
store i64 0, i64* %arg1, align 8
%0 = icmp eq i64 %arg2, 0
%1 = icmp eq i1 %0, false
store i32 2, i32* %sv_1.0.reg2mem
store i64 1, i64* %sv_0.0.reg2mem
br i1 %1, label LBL_1, label LBL_13
LBL_1:
%2 = bitcast i32* %sv_2 to i64*
%3 = call i64 @FUNC(i64* nonnull %2, i64 %arg2)
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = load i32, i32* %sv_2, align 4
store i32 %5, i32* %sv_1.0.reg2mem
store i64 %3, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_3:
%6 = icmp eq i64* %arg4, null
br i1 %6, label LBL_8, label LBL_4
LBL_4:
%7 = ptrtoint i64* %arg4 to i64
%8 = icmp eq i64 %arg3, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge4.reg2mem
store i32 0, i32* %storemerge.lcssa.reg2mem
store i64 0, i64* %.lcssa.reg2mem
br i1 %8, label LBL_10, label LBL_7
LBL_5:
%9 = zext i32 %20 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i32 3, i32* %sv_1.0.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_6, label LBL_13
LBL_6:
%14 = add i32 %storemerge4.reload, 1
%15 = sext i32 %14 to i64
%16 = icmp ult i64 %15, %arg3
store i64 %15, i64* %.reg2mem
store i32 %14, i32* %storemerge4.reg2mem
store i32 %14, i32* %storemerge.lcssa.reg2mem
store i64 %15, i64* %.lcssa.reg2mem
br i1 %16, label LBL_7, label LBL_10
LBL_7:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%.reload = load i64, i64* %.reg2mem
%17 = mul i64 %.reload, 4
%18 = add i64 %17, %7
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
store i32 %storemerge4.reload, i32* %storemerge.lcssa.reg2mem
store i64 %.reload, i64* %.lcssa.reg2mem
br i1 %22, label LBL_5, label LBL_10
LBL_8:
%23 = add i64 %arg2, 8
%24 = call i64 @FUNC(i64 %23)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
store i32 %25, i32* %sv_1.0.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %27, label LBL_13, label LBL_9
LBL_9:
%28 = inttoptr i64 %arg2 to i64*
call void @free(i64* %28)
store i64 0, i64* %28, align 8
%29 = call i64 @FUNC(i64 %23)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_10:
%storemerge.lcssa.reload = load i32, i32* %storemerge.lcssa.reg2mem
%30 = mul i32 %storemerge.lcssa.reload, 4
%31 = add i32 %30, 4
%32 = call i64* @malloc(i32 %31)
%33 = icmp eq i64* %32, null
store i32 12, i32* %sv_1.0.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %33, label LBL_13, label LBL_11
LBL_11:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%34 = ptrtoint i64* %32 to i64
%35 = call i64* @memcpy(i64* nonnull %32, i64* nonnull %arg4, i32 %30)
%36 = mul i64 %.lcssa.reload, 4
%37 = add i64 %36, %34
%38 = inttoptr i64 %37 to i32*
store i32 0, i32* %38, align 4
%39 = add i64 %arg2, 8
%40 = call i64 @FUNC(i64 %39)
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 0
store i32 %41, i32* %sv_1.0.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %42, label LBL_12, label LBL_13
LBL_12:
call void @free(i64* nonnull %arg4)
%43 = inttoptr i64 %arg2 to i64*
store i64 %34, i64* %43, align 8
%44 = call i64 @FUNC(i64 %39)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_13:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%45 = sext i32 %sv_1.0.reload to i64
store i64 %45, i64* %arg1, align 8
store i64 %sv_0.0.reload, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %34, { 1, 0 }
uselistorder i64* %32, { 0, 2, 1 }
uselistorder i32 %30, { 1, 0 }
uselistorder i32 %20, { 1, 0 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 5, 2, 6, 1, 4, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 5, 2, 6, 1, 4, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 (i64)* @k5_mutex_unlock, { 1, 0 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64 (i64)* @k5_mutex_lock, { 1, 0 }
uselistorder i32 0, { 2, 3, 4, 6, 5, 0, 1 }
uselistorder i64* null, { 1, 0 }
uselistorder i1 false, { 0, 2, 1, 3 }
uselistorder i64* %arg4, { 0, 1, 3, 2 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder label LBL_13, { 4, 1, 3, 0, 5, 2 }
uselistorder label LBL_10, { 1, 0, 2 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | person_set_spriteset_9570 | person_set_spriteset | 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 %0)
store i64 %2, i64* %arg1, align 8
%3 = add i64 %1, 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, i64 0)
%8 = trunc i64 %7 to i32
%9 = add i64 %1, 12
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = add i64 %1, 16
%12 = inttoptr i64 %11 to i32*
store i32 0, i32* %12, align 4
%13 = call i64 @FUNC(i64 %1)
ret i64 %13
uselistorder i64 %0, { 1, 0 }
} | 0 |
BinRealVul | uc32_cpu_class_init_15836 | uc32_cpu_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 4198669, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%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 4198718, i64* %12, align 8
store i64 ptrtoint (i64* @gv_0 to i64), i64* %2, align 8
ret i64 %0
} | 1 |
BinRealVul | start_auth_vencrypt_subauth_5041 | start_auth_vencrypt_subauth | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp sgt i32 %2, 5
br i1 %3, label LBL_8, label LBL_1
LBL_1:
%4 = icmp sgt i32 %2, 3
br i1 %4, label LBL_7, label LBL_2
LBL_2:
%5 = icmp sgt i32 %2, 1
br i1 %5, label LBL_4, label LBL_3
LBL_3:
%6 = icmp slt i32 %2, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_5, label LBL_8
LBL_4:
%8 = or i32 %2, 1
%9 = icmp eq i32 %8, 3
br i1 %9, label LBL_6, label LBL_8
LBL_5:
%10 = ptrtoint i32* %arg1 to i64
%11 = call i64 @FUNC(i64 %10, i64 0)
%12 = call i64 @FUNC(i64 %10)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_11
LBL_6:
%13 = ptrtoint i32* %arg1 to i64
%14 = call i64 @FUNC(i64 %13)
store i64 %14, i64* %rax.0.reg2mem
br label LBL_11
LBL_7:
%15 = ptrtoint i32* %arg1 to i64
%16 = call i64 @FUNC(i64 %15)
store i64 %16, i64* %rax.0.reg2mem
br label LBL_11
LBL_8:
%17 = ptrtoint i32* %arg1 to i64
%18 = add i64 %17, 4
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = call i64 @FUNC(i64 %17, i32 %20, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i64* nonnull @gv_1)
%22 = call i64 @FUNC(i64 %17, i64 1)
%23 = add i64 %17, 8
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = icmp slt i32 %25, 8
br i1 %26, label LBL_10, label LBL_9
LBL_9:
%27 = call i64 @FUNC(i64 %17, i64 32)
%28 = call i64 @FUNC(i64 %17, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_2, i64 0, i64 0), i64 32)
br label LBL_10
LBL_10:
%29 = call i64 @FUNC(i64 %17)
store i64 %29, 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 %17, { 2, 1, 0, 4, 3, 5, 6 }
uselistorder i32 %2, { 4, 3, 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64, i64)* @vnc_write_u32, { 1, 0 }
uselistorder i32* %arg1, { 3, 2, 1, 0 }
uselistorder label LBL_8, { 1, 0, 2 }
} | 0 |
BinRealVul | ffmmal_stop_decoder_17650 | ffmmal_stop_decoder | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.reg2mem1 = alloca i64
%.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 = call i64 @FUNC(i64 %8)
%11 = load i64, i64* %3, align 8
%12 = call i64 @FUNC(i64 %11)
%13 = load i64, i64* %7, align 8
%14 = call i64 @FUNC(i64 %13)
%15 = load i64, i64* %3, align 8
%16 = call i64 @FUNC(i64 %15)
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
store i64 %16, i64* %.reg2mem
br i1 %18, label LBL_1, label LBL_2
LBL_1:
%.reload = load i64, i64* %.reg2mem
%19 = call i64 @FUNC(i64 %.reload)
%20 = load i64, i64* %3, align 8
%21 = call i64 @FUNC(i64 %20)
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
store i64 %21, i64* %.reg2mem
br i1 %23, label LBL_1, label LBL_2
LBL_2:
%24 = load i64, i64* %7, align 8
%25 = icmp eq i64 %24, 0
%26 = icmp eq i1 %25, false
store i64 %24, i64* %.reg2mem1
br i1 %26, label LBL_3, label LBL_4
LBL_3:
%.reload2 = load i64, i64* %.reg2mem1
%27 = inttoptr i64 %.reload2 to i64*
%28 = load i64, i64* %27, align 8
store i64 %28, i64* %7, align 8
%29 = add i64 %.reload2, 8
%30 = call i64 @FUNC(i64 %29)
%31 = call i64 @FUNC(i64 %.reload2)
%32 = load i64, i64* %7, align 8
%33 = icmp eq i64 %32, 0
%34 = icmp eq i1 %33, false
store i64 %32, i64* %.reg2mem1
br i1 %34, label LBL_3, label LBL_4
LBL_4:
%35 = add i64 %0, 24
%36 = inttoptr i64 %35 to i64*
store i64 0, i64* %36, align 8
%37 = add i64 %0, 48
%38 = inttoptr i64 %37 to i32*
store i32 0, i32* %38, align 4
%39 = add i64 %0, 44
%40 = inttoptr i64 %39 to i32*
store i32 0, i32* %40, align 4
%41 = add i64 %0, 40
%42 = inttoptr i64 %41 to i32*
store i32 0, i32* %42, align 4
%43 = add i64 %0, 36
%44 = inttoptr i64 %43 to i32*
store i32 0, i32* %44, align 4
%45 = add i64 %0, 32
%46 = inttoptr i64 %45 to i32*
store i32 0, i32* %46, align 4
ret i64 %0
uselistorder i64 %.reload2, { 2, 1, 0 }
uselistorder i64* %7, { 1, 2, 0, 3, 4 }
uselistorder i64* %3, { 1, 0, 2, 3 }
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem1, { 2, 0, 1 }
uselistorder i1 false, { 2, 1, 3, 0 }
uselistorder i64 (i64)* @mmal_queue_get, { 1, 0 }
uselistorder i64 (i64)* @mmal_port_flush, { 2, 1, 0 }
uselistorder i64 (i64)* @mmal_port_disable, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | stbtt__new_active_17837 | stbtt__new_active | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%rsi = alloca i64, align 8
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i128 %3)
%6 = call i64 @FUNC(i64 %4, i64 24, i64 %arg4)
%7 = add i64 %arg2, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = call i128 @__asm_movss.1(i32 %9)
%11 = trunc i64 %2 to i32
%12 = call i128 @__asm_movss.1(i32 %11)
%13 = call i128 @FUNC(i128 %10, i128 %12)
%14 = add i64 %arg2, 12
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = call i128 @__asm_movss.1(i32 %16)
%18 = add i64 %arg2, 4
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = call i128 @__asm_movss.1(i32 %20)
%22 = call i128 @FUNC(i128 %17, i128 %21)
%23 = call i128 @FUNC(i128 %13, i128 %22)
%24 = call i64 @FUNC(i128 %23)
%25 = icmp eq i64 %6, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_1, label LBL_2
LBL_1:
%27 = trunc i64 %5 to i32
%28 = inttoptr i64 %6 to i32*
%29 = trunc i64 %24 to i32
%30 = bitcast i64* %rsi to i32*
%31 = call i128 @FUNC(i128 %23, i128 %23)
call void @FUNC(i128 %31, i32 %29)
%32 = call i128 @__asm_movss.1(i32 %29)
%33 = call i128 @__asm_movss.1(i32 -2147483648)
%34 = call i128 @FUNC(i128 %33, i128 %32)
%35 = call i128 @__asm_movss.1(i32 1182793728)
%36 = call i128 @FUNC(i128 %34, i128 %35)
%37 = call i128 @FUNC(i128 %35, i128 %35)
call void @__asm_comiss.2(i128 %37, i128 %36)
%38 = call i128 @__asm_movss.1(i32 %29)
%39 = call i128 @__asm_movss.1(i32 -2147483648)
%40 = call i128 @FUNC(i128 %39, i128 %38)
%41 = call i128 @__asm_movss.1(i32 1182793728)
%42 = call i128 @FUNC(i128 %41, i128 %40)
%43 = call i128 @FUNC(i128 %42)
%44 = call i128 @FUNC(i64 4607182328728024861)
%45 = call i128 @FUNC(i128 %43, i128 %44)
%46 = call i32 @FUNC(i128 %45)
%storemerge5.in = sub i32 0, %46
%47 = add i64 %6, 8
%48 = inttoptr i64 %47 to i32*
store i32 %storemerge5.in, i32* %48, align 4
%49 = load i32, i32* %30, align 8
%50 = call i128 @__asm_movss.1(i32 %49)
%51 = call i128 @__asm_movss.1(i32 1182793728)
%52 = call i128 @FUNC(i128 %50, i128 %51)
%53 = load i32, i32* %48, align 4
%54 = call i128 @FUNC(i128 %21, i128 %21)
%55 = call i128 @FUNC(i32 %53)
%56 = load i32, i32* %19, align 4
%57 = call i128 @__asm_movss.1(i32 %56)
%58 = call i128 @__asm_movss.1(i32 %27)
%59 = call i128 @FUNC(i128 %58, i128 %57)
%60 = call i128 @FUNC(i128 %59, i128 %55)
%61 = call i128 @FUNC(i128 %52, i128 %60)
%62 = call i128 @FUNC(i128 %60, i128 %60)
call void @__asm_comiss.2(i128 %62, i128 %61)
%63 = call i128 @__asm_movss.1(i32 %49)
%64 = call i128 @__asm_movss.1(i32 1182793728)
%65 = call i128 @FUNC(i128 %63, i128 %64)
%66 = load i32, i32* %48, align 4
%67 = call i128 @FUNC(i128 %55, i128 %55)
%68 = call i128 @FUNC(i32 %66)
%69 = load i32, i32* %19, align 4
%70 = call i128 @__asm_movss.1(i32 %69)
%71 = call i128 @__asm_movss.1(i32 %27)
%72 = call i128 @FUNC(i128 %71, i128 %70)
%73 = call i128 @FUNC(i128 %72, i128 %68)
%74 = call i128 @FUNC(i128 %73, i128 %65)
%75 = call i32 @FUNC(i128 %74)
%76 = call i128 @FUNC(i128 %74, i128 %74)
%77 = call i128 @FUNC(i32 %75)
%78 = call i64 @FUNC(i128 %77)
%79 = trunc i64 %78 to i32
store i32 %79, i32* %28, align 4
%80 = call i128 @__asm_movss.1(i32 %79)
%81 = trunc i64 %arg3 to i32
%82 = mul i32 %81, 16384
%83 = call i128 @FUNC(i128 %65, i128 %65)
%84 = call i128 @FUNC(i32 %82)
%85 = call i128 @FUNC(i128 %80, i128 %84)
%86 = call i64 @FUNC(i128 %85)
%87 = trunc i64 %86 to i32
store i32 %87, i32* %28, align 4
%88 = load i32, i32* %15, align 4
%89 = call i128 @__asm_movss.1(i32 %88)
%90 = call i64 @FUNC(i128 %89)
%91 = add i64 %6, 4
%92 = trunc i64 %90 to i32
%93 = inttoptr i64 %91 to i32*
store i32 %92, i32* %93, align 4
%94 = add i64 %6, 16
%95 = inttoptr i64 %94 to i64*
store i64 0, i64* %95, align 8
%96 = add i64 %arg2, 16
%97 = inttoptr i64 %96 to i32*
%98 = load i32, i32* %97, align 4
%99 = icmp eq i32 %98, 0
%. = select i1 %99, i32 -1, i32 1
%100 = add i64 %6, 12
%101 = inttoptr i64 %100 to i32*
store i32 %., i32* %101, align 4
br label LBL_2
LBL_2:
ret i64 %6
uselistorder i128 %74, { 2, 1, 0 }
uselistorder i128 %60, { 2, 1, 0 }
uselistorder i128 %55, { 1, 0, 2 }
uselistorder i32* %48, { 1, 0, 2 }
uselistorder i128 %35, { 2, 1, 0 }
uselistorder i128 %23, { 1, 0, 2 }
uselistorder i128 %21, { 1, 0, 2 }
uselistorder i64 %6, { 4, 0, 1, 2, 3, 5, 6 }
uselistorder i32 0, { 1, 0 }
uselistorder i32 1182793728, { 1, 2, 0, 3, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | roq_dpcm_encode_init_16614 | roq_dpcm_encode_init | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp slt i32 %3, 3
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%6 = add i64 %2, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 22050
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%11 = add i64 %2, 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 1
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = call i64 @FUNC(i64 %2, i64 0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_2, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%16 = add i64 %2, 24
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = inttoptr i64 %18 to i32*
%20 = add i64 %2, 12
%21 = inttoptr i64 %20 to i32*
store i32 1024, i32* %21, align 4
%22 = add i64 %18, 4
%23 = inttoptr i64 %22 to i32*
store i32 0, i32* %23, align 4
store i32 0, i32* %19, align 4
%24 = call i64 @FUNC()
%25 = add i64 %2, 16
%26 = inttoptr i64 %25 to i64*
store i64 %24, i64* %26, 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 i64 %2, { 0, 6, 7, 5, 4, 3, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 4294967295, { 2, 1, 0 }
uselistorder i64 (i64, i64, i8*)* @av_log, { 2, 1, 0 }
} | 1 |
BinRealVul | inject_fake_duration_metadata_17399 | inject_fake_duration_metadata | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = add i64 %3, 55
%5 = call i64 @FUNC(i64 %4)
store i64 %5, i64* %arg1, align 8
%6 = icmp eq i64 %4, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
store i64 %0, i64* %arg1, align 8
store i64 12, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%8 = inttoptr i64 %4 to i64*
%9 = call i64* @memcpy(i64* %8, i64* nonnull %arg1, i32 13)
%10 = load i64, i64* %2, align 8
%11 = add i64 %0, 13
%12 = add i64 %3, 123
%13 = inttoptr i64 %12 to i64*
%14 = inttoptr i64 %11 to i64*
%15 = trunc i64 %10 to i32
%16 = add i32 %15, -13
%17 = call i64* @memcpy(i64* %13, i64* %14, i32 %16)
%18 = load i64, i64* %2, align 8
%19 = add i64 %18, 55
store i64 %19, i64* %2, align 8
%20 = call i64 @FUNC(i64 %0)
store i64 %11, i64* %sv_0, align 8
%21 = call i64 @FUNC(i64* nonnull %sv_0, i64 18)
%22 = call i64 @FUNC(i64* nonnull %sv_0, i64 40)
%23 = call i64 @FUNC(i64* nonnull %sv_0, i64 0)
%24 = call i64 @FUNC(i64* nonnull %sv_0, i64 0)
%25 = call i64 @FUNC(i64* nonnull %sv_0, i64 12)
%26 = call i64 @FUNC(i64* nonnull %sv_0, i64 10)
%27 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 10)
%28 = call i64 @FUNC(i64* nonnull %sv_0, i64 8)
%29 = call i64 @FUNC(i64* nonnull %sv_0, i64 1)
%30 = call i64 @FUNC(i64* nonnull %sv_0, i64 8)
%31 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i64 8)
%32 = call i64 @FUNC(i64* nonnull %sv_0, i64 0)
%33 = add i64 %0, 16
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = call i128 @FUNC(i64 %35)
%37 = call i64 @FUNC()
%sext = mul i64 %37, 4294967296
%38 = ashr exact i64 %sext, 32
%39 = call i64 @FUNC(i64* nonnull %sv_0, i64 %38)
%40 = call i64 @FUNC(i64* nonnull %sv_0, i64 0)
%41 = call i64 @FUNC(i64* nonnull %sv_0, i64 9)
%42 = call i64 @FUNC(i64* nonnull %sv_0, i64 40)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %2, { 1, 0, 2, 3 }
uselistorder i64 %0, { 1, 2, 3, 0, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64*, i8*, i64)* @bytestream_put_buffer, { 1, 0 }
uselistorder i64 (i64*, i64)* @bytestream_put_be16, { 2, 1, 0 }
uselistorder i64 (i64*, i64)* @bytestream_put_be32, { 2, 1, 0 }
uselistorder i64 (i64*, i64)* @bytestream_put_be24, { 1, 0 }
uselistorder i64 (i64*, i64)* @bytestream_put_byte, { 4, 3, 2, 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 2, 1, 0 }
uselistorder i64 12, { 1, 0 }
} | 1 |
BinRealVul | get_write_list_size_6643 | get_write_list_size | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem16 = alloca i64
%.reg2mem14 = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sext3 = mul i64 %arg3, 4294967296
%1 = ashr exact i64 %sext3, 32
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %0, i64 %2)
%sext48 = add i64 %sext3, 17179869184
%4 = ashr exact i64 %sext48, 32
%5 = trunc i64 %4 to i32
%6 = trunc i64 %arg2 to i32
%7 = icmp ugt i32 %5, %6
store i64 %4, i64* %.reg2mem
store i64 %sext3, i64* %.reg2mem14
store i64 %3, i64* %.reg2mem16
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_6, label LBL_2
LBL_1:
%8 = sext i32 %24 to i64
%9 = and i64 %8, 4294967295
%10 = call i64 @FUNC(i64 %0, i64 %9)
%11 = mul i64 %8, 4294967296
%sext4 = add i64 %11, 17179869184
%12 = ashr exact i64 %sext4, 32
%13 = trunc i64 %12 to i32
%14 = icmp ugt i32 %13, %6
store i64 %12, i64* %.reg2mem
store i64 %11, i64* %.reg2mem14
store i64 %10, i64* %.reg2mem16
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_6, label LBL_2
LBL_2:
%.reload17 = load i64, i64* %.reg2mem16
%.reload = load i64, i64* %.reg2mem
%15 = trunc i64 %.reload17 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_5, label LBL_3
LBL_3:
%.reload15 = load i64, i64* %.reg2mem14
%17 = and i64 %.reload, 4294967295
%18 = call i64 @FUNC(i64 %0, i64 %17)
%sext5 = add i64 %.reload15, 34359738368
%19 = udiv i64 %sext5, 4294967296
%20 = trunc i64 %19 to i32
%21 = icmp ugt i32 %20, %6
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_6, label LBL_4
LBL_4:
%22 = trunc i64 %18 to i32
%23 = mul i32 %22, 16
%24 = add i32 %23, %20
%25 = icmp uge i32 %24, %20
%26 = icmp ugt i32 %24, %6
%27 = icmp eq i1 %26, false
%or.cond = icmp eq i1 %25, %27
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_6
LBL_5:
%28 = sub nsw i64 %.reload, %1
%29 = and i64 %28, 4294967295
store i64 %29, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %24, { 0, 2, 1 }
uselistorder i32 %20, { 1, 0, 2 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i32 %6, { 2, 1, 3, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %sext3, { 0, 2, 1 }
uselistorder i64 %0, { 1, 2, 0 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem14, { 0, 2, 1 }
uselistorder i64* %.reg2mem16, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 3, 2, 1, 4 }
uselistorder i64 17179869184, { 1, 0 }
uselistorder i64 (i64, i64)* @tvb_get_ntohl, { 2, 1, 0 }
uselistorder label LBL_6, { 4, 2, 1, 0, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | vpc_get_info_1874 | vpc_get_info | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 2
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %6, 512
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = bitcast i64* %arg2 to i32*
store i32 %9, i32* %10, align 4
br label LBL_2
LBL_2:
%11 = ptrtoint i64* %arg2 to i64
%12 = add i64 %11, 4
%13 = inttoptr i64 %12 to i8*
store i8 1, i8* %13, align 1
ret i64 0
uselistorder i64* %arg2, { 1, 0 }
} | 0 |
BinRealVul | dd_save_text_7116 | dd_save_text | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = trunc i64 %3 to i32
%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(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %arg2, i64 %arg3, i64 %4, i64 %2, i64 %1)
unreachable
LBL_2:
%9 = call i64 @FUNC(i64 %arg2)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i64 %arg2, i64 %arg3, i64 %4, i64 %2, i64 %1)
unreachable
LBL_4:
%14 = ptrtoint i64* %arg1 to i64
%15 = add i64 %14, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17, i64 %arg2)
%19 = add i64 %14, 24
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i64 %14, 20
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i64 %14, 16
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = inttoptr i64 %arg3 to i8*
%29 = call i32 @strlen(i8* %28)
%30 = sext i32 %29 to i64
%31 = zext i32 %21 to i64
%32 = zext i32 %24 to i64
%33 = zext i32 %27 to i64
%34 = call i64 @FUNC(i64 %18, i64 %arg3, i64 %30, i64 %33, i64 %32, i64 %31)
%35 = inttoptr i64 %18 to i64*
call void @free(i64* %35)
ret i64 ptrtoint (i32* @0 to i64)
uselistorder i64 %14, { 1, 0, 3, 2 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i32 (i8*)* @strlen, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @error_msg_and_die, { 3, 2, 1, 0 }
uselistorder i64 %arg3, { 3, 2, 1, 0 }
uselistorder i64 %arg2, { 2, 1, 3, 0 }
} | 0 |
BinRealVul | vp9_pick_filter_level_5138 | vp9_pick_filter_level | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i32
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 1
store i32 0, i32* %storemerge.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = add i64 %2, 20
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
store i32 %7, i32* %storemerge.reg2mem
br label LBL_2
LBL_2:
%8 = add i64 %2, 12
%9 = inttoptr i64 %8 to i32*
%storemerge.reload = load i32, i32* %storemerge.reg2mem
store i32 %storemerge.reload, i32* %9, align 4
%10 = trunc i64 %arg3 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_5, label LBL_3
LBL_3:
%13 = add i64 %2, 16
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_6, label LBL_4
LBL_4:
store i32 0, i32* %14, align 4
store i64 %8, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%17 = bitcast i64* %rsi to i32*
%18 = call i64 @FUNC(i64 %2)
%19 = trunc i64 %18 to i32
%20 = add i64 %2, 8
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = add i64 %2, 4
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = zext i32 %25 to i64
%27 = call i64 @FUNC(i64 %26, i64 0, i32 %22)
%28 = mul i64 %27, 20723
%29 = add i64 %28, 1015158
%30 = and i64 %29, 4294967295
%31 = call i64 @FUNC(i64 %30, i64 18)
%32 = load i32, i32* %17, align 8
%33 = icmp eq i32 %32, 1
%34 = icmp eq i1 %33, false
%35 = add i64 %31, 4294967292
%spec.select = select i1 %34, i64 %31, i64 %35
%36 = and i64 %spec.select, 4294967295
%37 = call i64 @FUNC(i64 %36, i64 0, i32 %19)
%38 = trunc i64 %37 to i32
%39 = add i64 %2, 16
%40 = inttoptr i64 %39 to i32*
store i32 %38, i32* %40, align 4
store i64 %37, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%41 = ptrtoint i64* %arg1 to i64
%42 = call i64 @FUNC(i64 %41, i64 %2, i64 0)
%43 = trunc i64 %42 to i32
store i32 %43, i32* %14, align 4
store i64 %42, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 6, 0, 4, 3, 5, 1, 7, 2 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 4294967295, { 0, 2, 3, 4, 1, 5 }
uselistorder i32 0, { 1, 2, 3, 0, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | gen_ld16s_1578 | gen_ld16s | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = and i64 %arg2, 4294967295
%2 = and i64 %arg1, 4294967295
%3 = and i64 %0, 4294967295
%4 = call i64 @FUNC(i64 %3, i64 %2, i64 %1)
ret i64 %3
} | 0 |
BinRealVul | do_client_disconnect_19002 | do_client_disconnect | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = load i8, i8* inttoptr (i64 4210716 to i8*), align 4
%1 = icmp eq i8 %0, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = load i64, i64* @gv_0, align 8
%3 = call i64 @FUNC(i64 %2, i64 1, i64 0, i64 0, i64 0, i64 0)
store i8 0, i8* bitcast (i64* @gv_1 to i8*), 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 i32 1, { 1, 0 }
} | 1 |
BinRealVul | rc4030_reset_14410 | rc4030_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i32*
store i32 1040, i32* %2, align 4
%3 = add i64 %1, 4
%4 = inttoptr i64 %3 to i32*
store i32 1, i32* %4, align 4
%5 = add i64 %1, 8
%6 = inttoptr i64 %5 to i32*
store i32 0, i32* %6, align 4
%7 = add i64 %1, 12
%8 = inttoptr i64 %7 to i64*
%9 = call i64* @memset(i64* %8, i32 0, i32 40)
%10 = call i64 @FUNC(i64 %1, i64 0, i64 0)
%11 = add i64 %1, 56
%12 = inttoptr i64 %11 to i32*
store i32 0, i32* %12, align 4
%13 = add i64 %1, 52
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
%15 = add i64 %1, 60
%16 = inttoptr i64 %15 to i32*
store i32 0, i32* %16, align 4
%17 = add i64 %1, 68
%18 = inttoptr i64 %17 to i32*
store i32 0, i32* %18, align 4
%19 = add i64 %1, 64
%20 = inttoptr i64 %19 to i32*
store i32 0, i32* %20, align 4
%21 = add i64 %1, 72
%22 = inttoptr i64 %21 to i32*
store i32 0, i32* %22, align 4
%23 = add i64 %1, 76
%24 = inttoptr i64 %23 to i32*
store i32 98694, i32* %24, align 4
%25 = add i64 %1, 80
%26 = inttoptr i64 %25 to i32*
store i32 7, i32* %26, align 4
%27 = add i64 %1, 84
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%28 = mul i64 %indvars.iv.reload, 4
%29 = add i64 %27, %28
%30 = inttoptr i64 %29 to i32*
store i32 7, i32* %30, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 15
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%31 = add i64 %1, 144
%32 = inttoptr i64 %31 to i32*
store i32 16, i32* %32, align 4
%33 = add i64 %1, 148
%34 = inttoptr i64 %33 to i32*
store i32 0, i32* %34, align 4
%35 = add i64 %1, 152
%36 = inttoptr i64 %35 to i32*
store i32 0, i32* %36, align 4
%37 = add i64 %1, 160
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = call i64 @FUNC(i64 %39)
%41 = add i64 %1, 168
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = call i64 @FUNC(i64 %43)
ret i64 %44
uselistorder i64 %1, { 1, 0, 2, 3, 5, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @qemu_irq_lower, { 1, 0 }
uselistorder i32 0, { 3, 4, 5, 0, 6, 7, 1, 8, 2, 9 }
} | 1 |
BinRealVul | add_timer_on_12860 | add_timer_on | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i64* %arg1, null
%6 = icmp eq i1 %5, false
%or.cond = icmp eq i1 %6, %4
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
call void @exit(i32 1)
unreachable
LBL_2:
%7 = and i64 %arg2, 4294967295
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10, i64 %7)
%12 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0)
%13 = icmp eq i64 %12, %11
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%sext = mul i64 %arg2, 4294967296
%14 = load i64, i64* %9, align 8
%15 = or i64 %14, 1
store i64 %15, i64* %9, align 8
%16 = call i64 @FUNC(i64 %12)
%17 = call i64 @FUNC(i64 %11)
%18 = ashr exact i64 %sext, 32
%19 = load i64, i64* %9, align 8
%20 = call i64 @FUNC(i64 %19, i64 %18)
br label LBL_4
LBL_4:
%21 = add i64 %0, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %0, i64 %23)
%25 = call i64 @FUNC(i64 %11, i64 %0)
%26 = load i64, i64* %sv_0, align 8
%27 = call i64 @FUNC(i64 %11, i64 %26)
ret i64 %27
uselistorder i64* %9, { 0, 2, 1, 3 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64 %0, { 2, 1, 0, 3, 4, 5, 6 }
} | 1 |
BinRealVul | connect_unix_socket_8117 | connect_unix_socket | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%sv_1 = alloca i16, align 2
%0 = call i32 @socket(i32 1, i32 1, i32 0)
store i16 1, i16* %sv_1, align 2
%1 = bitcast i64* %sv_0 to i8*
%2 = inttoptr i64 %arg1 to i8*
%3 = call i8* @strncpy(i8* nonnull %1, i8* %2, i32 108)
%4 = bitcast i16* %sv_1 to %sockaddr*
%5 = call i32 @connect(i32 %0, %sockaddr* nonnull %4, i32 110)
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%9 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %8, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_0)
call void @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_2, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_2:
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_3, i64 0, i64 0), i64* nonnull %sv_0)
%11 = zext i32 %0 to i64
ret i64 %11
uselistorder i32 0, { 1, 0 }
} | 0 |
BinRealVul | zend_ts_hash_graceful_destroy_18919 | zend_ts_hash_graceful_destroy | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %0)
%4 = call i64 @FUNC(i64 %0)
%5 = call i64 @FUNC(i64 %0)
ret i64 %5
uselistorder i64 %0, { 2, 1, 0, 3, 4 }
uselistorder i64 (i64)* @tsrm_mutex_free, { 1, 0 }
} | 1 |
BinRealVul | helper_set_alarm_477 | helper_set_alarm | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %arg2, 0
br i1 %2, label LBL_2, label LBL_1
LBL_1:
store i64 %arg2, i64* %arg1, align 8
%3 = inttoptr i64 %1 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4, i64 %arg2)
store i64 %5, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%6 = inttoptr i64 %1 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7)
store i64 %8, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | net_get_nopacket_17617 | net_get_nopacket | define i64 @FUNC(i32* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
store i32 2048, i32* %sv_1, align 4
%3 = and i64 %1, 4294967295
%4 = ptrtoint i32* %arg1 to i64
br label LBL_1
LBL_1:
store i32 2048, i32* %sv_1, align 4
%5 = call i64 @FUNC(i64 %3, i64* nonnull %sv_0, i32* nonnull %sv_1)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, -1
br i1 %7, label LBL_1.backedge, label LBL_2
LBL_2:
%8 = icmp eq i32 %6, 0
%9 = icmp slt i32 %6, 0
%10 = icmp eq i1 %9, false
%11 = icmp eq i1 %8, false
%12 = icmp eq i1 %10, %11
br i1 %12, label LBL_6, label LBL_3
LBL_3:
%13 = icmp slt i32 %6, 1
br i1 %13, label LBL_1.backedge, label LBL_5
LBL_4:
br label LBL_1
LBL_5:
%14 = load i32, i32* %sv_1, align 4
%15 = call i64 @FUNC(i64 %4, i64* nonnull %sv_0, i32 %14)
br label LBL_1.backedge
LBL_6:
%16 = trunc i64 %2 to i32
%17 = load i32, i32* %sv_1, align 4
%18 = icmp ugt i32 %17, %16
store i32 %17, i32* %.reg2mem
br i1 %18, label LBL_7, label LBL_8
LBL_7:
call void @__assert_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 31, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0))
%.pre = load i32, i32* %sv_1, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_8
LBL_8:
%.reload = load i32, i32* %.reg2mem
%19 = call i64* @memcpy(i64* %arg2, i64* nonnull %sv_0, i32 %.reload)
%20 = load i32, i32* %sv_1, align 4
store i32 %20, i32* %arg3, align 4
%21 = and i64 %5, 4294967295
ret i64 %21
uselistorder i32 %6, { 0, 2, 1, 3 }
uselistorder i32* %sv_1, { 2, 0, 3, 4, 1, 5, 6 }
uselistorder i64* %0, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_1.backedge, { 2, 1, 0 }
} | 1 |
BinRealVul | cmd_parse_lsub_11241 | cmd_parse_lsub | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = ptrtoint i64* %arg2 to i64
%7 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%8 = load i32, i32* %1
%sv_7 = alloca i64, align 8
%9 = add i64 %7, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_3, label LBL_1
LBL_1:
%13 = trunc i64 %4 to i32
%14 = icmp eq i32 %13, 1
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = call i64 @FUNC(i64 %7, i64 %6)
store i64 %16, i64* %rax.0.reg2mem
br label LBL_11
LBL_3:
%17 = load i32, i32* @gv_0, align 4
%18 = icmp eq i32 %17, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_11, label LBL_4
LBL_4:
%19 = bitcast i64* %arg1 to i32*
store i32 1, i32* %19, align 4
%20 = ptrtoint i64* %sv_7 to i64
store i64 %20, i64* %10, align 8
%21 = call i64 @FUNC(i64 %7, i64 %6)
store i64 0, i64* %10, align 8
%22 = load i64, i64* %sv_7, align 8
%23 = icmp eq i64 %22, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %23, label LBL_11, label LBL_5
LBL_5:
%24 = zext i32 %8 to i64
%25 = icmp eq i32 %8, 0
%26 = icmp eq i1 %25, false
store i64 %24, i64* %rax.0.reg2mem
br i1 %26, label LBL_11, label LBL_6
LBL_6:
%27 = call i64 @FUNC(i64 3, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %22, i64 %5, i64 %3, i64 %2)
%28 = call i64 @FUNC(i64* nonnull %sv_6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0), i64 1024)
%29 = add i64 %7, 16
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i64 @FUNC(i64 %31, i64* nonnull %sv_5)
%33 = load i64, i64* %sv_7, align 8
%34 = call i64 @FUNC(i64* nonnull %sv_4, i64 1024, i64 %33)
%35 = ptrtoint i64* %sv_3 to i64
%36 = bitcast i64* %sv_3 to i8*
%37 = call i32 @strlen(i8* nonnull %36)
%38 = sext i32 %37 to i64
%39 = add i64 %35, -1
%40 = add i64 %39, %38
%41 = inttoptr i64 %40 to i8*
store i8 0, i8* %41, align 1
%42 = load [17 x i8]*, [17 x i8]** @gv_3, align 8
%43 = ptrtoint [17 x i8]* %42 to i64
%44 = load i64, i64* %sv_5, align 8
%45 = call i64 @FUNC(i64 %44, i64 %43)
%46 = trunc i64 %45 to i32
%47 = icmp eq i32 %46, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_8, label LBL_7
LBL_7:
store i64 0, i64* %sv_5, align 8
br label LBL_8
LBL_8:
%49 = call i64 @FUNC(i64* nonnull %sv_5, i64* nonnull %sv_2, i64 1013, i64 0)
%50 = call i64 @FUNC(i64* nonnull %sv_6, i64 1024, i64* nonnull @gv_4)
%51 = call i64 @FUNC(i64* nonnull %sv_1)
%52 = call i64 @FUNC(i64* nonnull %sv_0)
%53 = ptrtoint i64* %sv_4 to i64
store i64 %53, i64* %sv_0, align 8
%54 = call i64 @FUNC(i64* nonnull %sv_6, i64* nonnull %sv_1, i64* nonnull %sv_0)
%55 = trunc i64 %54 to i32
%56 = icmp eq i32 %55, 0
br i1 %56, label LBL_10, label LBL_9
LBL_9:
%57 = ptrtoint i64* %sv_1 to i64
%58 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_5, i64 0, i64 0), i64 %53, i64 %57, i64 %3, i64 %2)
br label LBL_10
LBL_10:
%59 = call i64 @FUNC(i64* nonnull %sv_1)
store i64 %59, 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* %sv_5, { 0, 2, 3, 1 }
uselistorder i64* %sv_4, { 1, 0 }
uselistorder i64* %sv_1, { 0, 3, 1, 2 }
uselistorder i64* %sv_0, { 0, 2, 1 }
uselistorder i64 %7, { 1, 2, 0, 3 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 5, 1 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64*)* @mutt_buffer_init, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @mutt_debug, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 0 }
uselistorder i64 (i64, i64)* @cmd_parse_list, { 1, 0 }
uselistorder label LBL_11, { 3, 1, 0, 2, 4 }
} | 1 |
BinRealVul | out_string_17722 | out_string | define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i8*
%.pre-phi.reg2mem = alloca i64
%.pre-phi4.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_1, i64 0, i64 0), i32 32, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = icmp eq i8 %7, 0
br i1 %8, label LBL_6, label LBL_3
LBL_3:
%9 = load i32, i32* inttoptr (i64 4210796 to i32*), align 4
%10 = icmp slt i32 %9, 2
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%11 = and i64 %1, 4294967295
%12 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%13 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %12, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_4, i64 0, i64 0), i64 %11, i8* %arg2)
br label LBL_5
LBL_5:
store i8 0, i8* %6, align 1
%14 = call i64 @FUNC(i64 %4, i64 0)
store i64 %14, i64* %rax.0.reg2mem
br label LBL_11
LBL_6:
%15 = load i32, i32* @gv_5, align 4
%16 = icmp slt i32 %15, 2
br i1 %16, label LBL_8, label LBL_7
LBL_7:
%17 = and i64 %1, 4294967295
%18 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%19 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %18, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_6, i64 0, i64 0), i64 %17, i8* %arg2)
br label LBL_8
LBL_8:
%20 = call i32 @strlen(i8* %arg2)
%21 = sext i32 %20 to i64
%22 = add nsw i64 %21, 2
%23 = add i64 %4, 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = icmp ugt i64 %22, %25
store i64 %22, i64* %.pre-phi4.reg2mem
store i64 %21, i64* %.pre-phi.reg2mem
store i8* %arg2, i8** %sv_1.0.reg2mem
store i32 %20, i32* %sv_0.0.reg2mem
br i1 %26, label LBL_9, label LBL_10
LBL_9:
%27 = call i32 @strlen(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_7, i64 0, i64 0))
%.pre = sext i32 %27 to i64
%.pre3 = add nsw i64 %.pre, 2
store i64 %.pre3, i64* %.pre-phi4.reg2mem
store i64 %.pre, i64* %.pre-phi.reg2mem
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_7, i64 0, i64 0), i8** %sv_1.0.reg2mem
store i32 %27, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i8*, i8** %sv_1.0.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%.pre-phi4.reload = load i64, i64* %.pre-phi4.reg2mem
%28 = add i64 %4, 16
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = inttoptr i64 %30 to i64*
%32 = bitcast i8* %sv_1.0.reload to i64*
%33 = call i64* @memcpy(i64* %31, i64* %32, i32 %sv_0.0.reload)
%34 = load i64, i64* %29, align 8
%35 = add i64 %34, %.pre-phi.reload
%36 = inttoptr i64 %35 to i64*
%37 = call i64* @memcpy(i64* %36, i64* bitcast ([3 x i8]* @gv_8 to i64*), i32 3)
%38 = add i64 %4, 24
%39 = inttoptr i64 %38 to i64*
store i64 %.pre-phi4.reload, i64* %39, align 8
%40 = load i64, i64* %29, align 8
%41 = add i64 %4, 32
%42 = inttoptr i64 %41 to i64*
store i64 %40, i64* %42, align 8
%43 = call i64 @FUNC(i64 %4, i64 1)
%44 = add i64 %4, 40
%45 = inttoptr i64 %44 to i32*
store i32 0, i32* %45, align 4
store i64 %4, 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 %4, { 0, 3, 2, 4, 5, 6, 7, 1, 8 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i64 (i64, i64)* @conn_set_state, { 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0 }
uselistorder %_IO_FILE** @gv_3, { 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i8* %arg2, { 0, 3, 2, 1 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | imx_ldb_connector_get_modes_18116 | imx_ldb_connector_get_modes | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%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 = icmp eq i64 %3, 0
store i32 0, i32* %sv_0.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0, i64 %3)
%6 = load i64, i64* %2, align 8
%7 = call i64 @FUNC(i64 %0, i64 %6)
%8 = trunc i64 %7 to i32
store i32 %8, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%9 = add i64 %1, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, 0
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i64 %0)
%14 = add i64 %1, 12
%15 = call i64 @FUNC(i64 %13, i64 %14)
%16 = inttoptr i64 %13 to i32*
%17 = load i32, i32* %16, align 4
%18 = or i32 %17, 3
store i32 %18, i32* %16, align 4
%19 = call i64 @FUNC(i64 %0, i64 %13)
%20 = add i32 %sv_0.0.reload, 1
store i32 %20, i32* %sv_0.1.reg2mem
br label LBL_4
LBL_4:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%21 = zext i32 %sv_0.1.reload to i64
ret i64 %21
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %0, { 3, 0, 2, 1, 4 }
uselistorder i32 0, { 1, 0 }
} | 1 |
BinRealVul | bdrv_drain_3262 | bdrv_drain | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC()
%3 = trunc i64 %2 to i8
%4 = icmp eq i8 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0)
store i64 %5, i64* %rax.1.reg2mem
br label LBL_4
LBL_2:
%6 = call i64 @FUNC(i64 %0)
%7 = call i64 @FUNC(i64 %0)
%8 = call i64 @FUNC(i64 %0)
%9 = urem i64 %7, 256
%10 = call i64 @FUNC(i64 %8, i64 %9)
%.masked = and i64 %10, 4294967295
%11 = or i64 %.masked, %9
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
%14 = icmp eq i1 %13, false
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_2, label LBL_3
LBL_3:
%16 = zext i1 %13 to i64
%17 = and i64 %10, 4294967040
%18 = or i64 %17, %16
store i64 %18, i64* %rax.1.reg2mem
br label LBL_4
LBL_4:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %9, { 1, 0 }
uselistorder i64 %0, { 3, 2, 1, 0, 4 }
uselistorder i1 false, { 2, 0, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ns_to_timespec_6035 | ns_to_timespec | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
store i64 0, i64* %storemerge.reg2mem
br i1 %1, label LBL_1, label LBL_3
LBL_1:
%2 = bitcast i32* %sv_0 to i64*
%3 = call i64 @FUNC(i64 %arg1, i64 1000000000, i64* nonnull %2)
%sext = mul i64 %3, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = load i32, i32* %sv_0, align 4
%6 = icmp sgt i32 %5, -1
store i64 %4, i64* %storemerge.reg2mem
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = add nsw i64 %4, -1
%8 = add i32 %5, 1000000000
store i32 %8, i32* %sv_0, align 4
store i64 %7, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %4, { 1, 0 }
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0, 2 }
} | 0 |
BinRealVul | jas_matrix_create_11463 | jas_matrix_create | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge8.reg2mem = alloca i32
%.reg2mem10 = alloca i64
%indvars.iv.reg2mem = alloca i64
%.reg2mem = alloca i32
%0 = call i64 @FUNC(i64 64)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_14
LBL_1:
%sext = mul i64 %arg1, 4294967296
%3 = ashr exact i64 %sext, 32
%sext4 = mul i64 %arg2, 4294967296
%4 = inttoptr i64 %0 to i32*
store i32 0, i32* %4, align 4
%5 = trunc i64 %3 to i32
%6 = add i64 %0, 4
%7 = inttoptr i64 %6 to i32*
store i32 %5, i32* %7, align 4
%8 = trunc i64 %arg2 to i32
%9 = add i64 %0, 8
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = add i64 %0, 16
%12 = inttoptr i64 %11 to i64*
store i64 0, i64* %12, align 8
%13 = add i64 %0, 24
%14 = inttoptr i64 %13 to i32*
store i32 %5, i32* %14, align 4
%15 = add i64 %0, 32
%16 = inttoptr i64 %15 to i64*
store i64 0, i64* %16, align 8
%17 = ashr exact i64 %sext4, 32
%18 = mul nsw i64 %17, %3
%19 = trunc i64 %18 to i32
%20 = add i64 %0, 40
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
%22 = load i32, i32* %14, align 4
%23 = icmp slt i32 %22, 1
store i32 %19, i32* %.reg2mem
br i1 %23, label LBL_5, label LBL_2
LBL_2:
%24 = zext i32 %22 to i64
%25 = call i64 @FUNC(i64 %24, i64 8)
store i64 %25, i64* %12, align 8
%26 = icmp eq i64 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_4, label LBL_3
LBL_3:
%28 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_4:
%.pr = load i32, i32* %21, align 4
store i32 %.pr, i32* %.reg2mem
br label LBL_5
LBL_5:
%.reload = load i32, i32* %.reg2mem
%29 = icmp slt i32 %.reload, 1
br i1 %29, label LBL_8, label LBL_6
LBL_6:
%30 = zext i32 %.reload to i64
%31 = call i64 @FUNC(i64 %30, i64 4)
store i64 %31, i64* %16, align 8
%32 = icmp eq i64 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_8, label LBL_7
LBL_7:
%34 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_8:
%35 = icmp sgt i32 %5, 0
br i1 %35, label LBL_9, label LBL_11
LBL_9:
%wide.trip.count = and i64 %3, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_10
LBL_10:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%36 = load i64, i64* %16, align 8
%37 = load i32, i32* %10, align 4
%38 = trunc i64 %indvars.iv.reload to i32
%39 = mul i32 %37, %38
%40 = sext i32 %39 to i64
%41 = mul i64 %40, 4
%42 = load i64, i64* %12, align 8
%43 = mul i64 %indvars.iv.reload, 8
%44 = add i64 %42, %43
%45 = add i64 %41, %36
%46 = inttoptr i64 %44 to i64*
store i64 %45, i64* %46, align 8
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_11, label LBL_10
LBL_11:
%47 = load i32, i32* %21, align 4
%48 = icmp eq i32 %47, 0
store i64 0, i64* %.reg2mem10
store i32 0, i32* %storemerge8.reg2mem
br i1 %48, label LBL_13, label LBL_12
LBL_12:
%storemerge8.reload = load i32, i32* %storemerge8.reg2mem
%.reload11 = load i64, i64* %.reg2mem10
%49 = load i64, i64* %16, align 8
%50 = mul i64 %.reload11, 4
%51 = add i64 %49, %50
%52 = inttoptr i64 %51 to i32*
store i32 0, i32* %52, align 4
%53 = add i32 %storemerge8.reload, 1
%54 = load i32, i32* %21, align 4
%55 = zext i32 %54 to i64
%56 = sext i32 %53 to i64
%57 = icmp slt i64 %56, %55
store i64 %56, i64* %.reg2mem10
store i32 %53, i32* %storemerge8.reg2mem
br i1 %57, label LBL_12, label LBL_13
LBL_13:
%58 = add i64 %0, 44
%59 = inttoptr i64 %58 to i32*
store i32 0, i32* %59, align 4
%60 = add i64 %0, 48
%61 = inttoptr i64 %60 to i32*
store i32 0, i32* %61, align 4
%62 = load i32, i32* %10, align 4
%63 = add i64 %0, 52
%64 = inttoptr i64 %63 to i32*
store i32 %62, i32* %64, align 4
%65 = load i32, i32* %7, align 4
%66 = add i64 %0, 56
%67 = inttoptr i64 %66 to i32*
store i32 %65, i32* %67, align 4
store i64 %0, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i32* %21, { 2, 0, 1, 3 }
uselistorder i64* %16, { 1, 2, 0, 3 }
uselistorder i64* %12, { 1, 0, 2 }
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem10, { 2, 0, 1 }
uselistorder i32* %storemerge8.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64, i64)* @jas_alloc2, { 1, 0 }
uselistorder i32 0, { 4, 5, 3, 0, 1, 2, 6 }
uselistorder i64 32, { 0, 2, 1, 3 }
uselistorder i32 1, { 8, 6, 7, 4, 3, 2, 1, 0, 5 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_14, { 1, 2, 3, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
reposvul_c_test | dsi_write_101 | dsi_write | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 1, i64 2, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
%5 = icmp ne i64 %arg3, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = zext i1 %5 to i64
%8 = ptrtoint i64* %arg2 to i64
%9 = call i64 @FUNC(i64 %3, i64 %8, i64 %7)
%10 = icmp eq i64 %9, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 1, i64 2, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %9, i64 %2, i64 %1)
%12 = sub i64 1, %9
store i64 %12, i64* %arg1, align 8
store i64 %9, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %9, { 0, 2, 1, 3 }
uselistorder i1 %5, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @LOG, { 1, 0 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 0 |
BinRealVul | read_packet_552 | read_packet | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%.reg2mem24 = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i64
%.pre-phi14.reg2mem = alloca i64
%storemerge59.reg2mem = alloca i32
%indvars.iv11.reg2mem = alloca i64
%.pre-phi20.reg2mem = alloca i32*
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%2 = load i64, i64* %0
%rsi = alloca i64, align 8
%3 = ptrtoint i64* %arg1 to i64
%4 = load i32, i32* %1
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32*, align 8
%sv_3 = alloca i64, align 8
%5 = ptrtoint i64* %sv_3 to i64
store i32* null, i32** %sv_2, align 8
%6 = trunc i64 %2 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_17, label LBL_1
LBL_1:
%9 = add i64 %3, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %3, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
%.pre15 = inttoptr i64 %9 to i32*
br i1 %17, label LBL_1.LBL_5_crit_edge, label LBL_3
LBL_2:
%.pre17 = add i64 %3, 16
%.pre19 = inttoptr i64 %.pre17 to i32*
%.pre23 = load i32, i32* %.pre15, align 4
store i32 %.pre23, i32* %.reg2mem
store i32* %.pre19, i32** %.pre-phi20.reg2mem
br label LBL_5
LBL_3:
%18 = load i32, i32* %.pre15, align 4
%19 = add i64 %3, 16
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp ugt i32 %18, %21
store i32 %18, i32* %.reg2mem
store i32* %20, i32** %.pre-phi20.reg2mem
br i1 %22, label LBL_4, label LBL_5
LBL_4:
%23 = add i64 %3, 12
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
store i32 %25, i32* %.pre15, align 4
store i32 %25, i32* %.reg2mem
store i32* %20, i32** %.pre-phi20.reg2mem
br label LBL_5
LBL_5:
%.pre-phi20.reload = load i32*, i32** %.pre-phi20.reg2mem
%.reload = load i32, i32* %.reg2mem
%26 = load i32, i32* %.pre-phi20.reload, align 4
%27 = icmp ugt i32 %.reload, %26
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %27, label LBL_27, label LBL_6
LBL_6:
%28 = add i64 %3, 24
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64* nonnull %sv_1, i64 1024, i64 %30, i32 %.reload)
%32 = trunc i64 %31 to i32
%33 = icmp slt i32 %32, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_8, label LBL_7
LBL_7:
%35 = load i32, i32* %.pre15, align 4
%36 = icmp slt i32 %35, 2
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %36, label LBL_8, label LBL_27
LBL_8:
%37 = inttoptr i64 %13 to i32*
%38 = ptrtoint i32** %sv_2 to i64
%39 = add i64 %5, -1120
%40 = add i64 %5, -1084
%41 = bitcast i64* %sv_1 to i8*
%42 = add i64 %5, -1073
store i64 0, i64* %indvars.iv11.reg2mem
store i32 0, i32* %storemerge59.reg2mem
br label LBL_9
LBL_9:
%indvars.iv11.reload = load i64, i64* %indvars.iv11.reg2mem
%43 = mul i64 %indvars.iv11.reload, 8
%44 = add i64 %43, %38
%45 = call i64 @FUNC(i64 %44, i64* nonnull %sv_1, i64 0, i64 %28, i64 0)
%46 = trunc i64 %45 to i32
%47 = icmp slt i32 %46, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_12, label LBL_10
LBL_10:
%49 = trunc i64 %indvars.iv11.reload to i32
%50 = icmp eq i32 %49, 0
%51 = icmp slt i32 %49, 0
%52 = icmp eq i1 %51, false
%53 = icmp eq i1 %50, false
%54 = icmp eq i1 %52, %53
br i1 %54, label LBL_14, label LBL_11
LBL_11:
%55 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_1)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_27
LBL_12:
%storemerge59.reload = load i32, i32* %storemerge59.reg2mem
%56 = add i64 %43, %39
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = call i64 @FUNC(i64 %58)
%60 = trunc i64 %59 to i32
%61 = mul i64 %indvars.iv11.reload, 4
%62 = add i64 %61, %40
%63 = inttoptr i64 %62 to i32*
store i32 %60, i32* %63, align 4
%64 = load i32, i32* %37, align 4
%65 = icmp eq i32 %64, 0
%66 = icmp eq i1 %65, false
br i1 %66, label LBL_14, label LBL_13
LBL_13:
%67 = call i32 @strlen(i8* nonnull %41)
%68 = sext i32 %67 to i64
%69 = trunc i32 %storemerge59.reload to i8
%70 = add i8 %69, 85
%71 = add i64 %42, %68
%72 = inttoptr i64 %71 to i8*
store i8 %70, i8* %72, align 1
%indvars.iv.next12 = add nuw nsw i64 %indvars.iv11.reload, 1
%73 = add nuw nsw i32 %storemerge59.reload, 1
%74 = icmp ult i64 %indvars.iv.next12, 3
store i64 %indvars.iv.next12, i64* %indvars.iv11.reg2mem
store i32 %73, i32* %storemerge59.reg2mem
br i1 %74, label LBL_9, label LBL_14
LBL_14:
%75 = load i32, i32* %37, align 4
%76 = icmp eq i32 %75, 0
%77 = icmp eq i1 %76, false
store i64 %40, i64* %.pre-phi14.reg2mem
store i64 %39, i64* %.pre-phi.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br i1 %77, label LBL_19, label LBL_15
LBL_15:
%78 = add i64 %13, 4
%79 = inttoptr i64 %78 to i32*
%80 = load i32, i32* %79, align 4
%81 = icmp eq i32 %80, 0
%82 = icmp eq i1 %81, false
store i64 %40, i64* %.pre-phi14.reg2mem
store i64 %39, i64* %.pre-phi.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br i1 %82, label LBL_19, label LBL_16
LBL_16:
%83 = add i64 %13, 8
%84 = call i64 @FUNC(i64 %78, i64 %83, i64 0)
store i64 %40, i64* %.pre-phi14.reg2mem
store i64 %39, i64* %.pre-phi.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_19
LBL_17:
%85 = add i64 %3, 16
%86 = inttoptr i64 %85 to i64*
%87 = load i64, i64* %86, align 8
%88 = inttoptr i64 %87 to i32*
store i32* %88, i32** %sv_2, align 8
%89 = load i32, i32* %88, align 4
%90 = icmp eq i32 %89, 0
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %90, label LBL_17.LBL_19_crit_edge, label LBL_27
LBL_18:
%.pre = add i64 %5, -1120
%.pre13 = add i64 %5, -1084
store i64 %.pre13, i64* %.pre-phi14.reg2mem
store i64 %.pre, i64* %.pre-phi.reg2mem
store i32 4096, i32* %sv_0.0.reg2mem
br label LBL_19
LBL_19:
%91 = ptrtoint i64* %arg2 to i64
%92 = bitcast i64* %rdi to i32*
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%.pre-phi14.reload = load i64, i64* %.pre-phi14.reg2mem
%93 = add i32 %sv_0.0.reload, %4
%94 = zext i32 %93 to i64
%95 = call i64 @FUNC(i64 %91, i64 %94)
%96 = add i64 %91, 4
%97 = inttoptr i64 %96 to i32*
store i32 0, i32* %97, align 4
%98 = add i64 %91, 8
%99 = inttoptr i64 %98 to i32*
%100 = load i32, i32* %99, align 4
%101 = or i32 %100, 1
store i32 %101, i32* %99, align 4
%102 = bitcast i64* %arg2 to i32*
store i32 0, i32* %102, align 4
%103 = add i64 %91, 16
%104 = inttoptr i64 %103 to i64*
%105 = bitcast i64* %rsi to i32*
%106 = add i64 %5, -1096
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_20
LBL_20:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%107 = mul i64 %indvars.iv.reload, 8
%108 = add i64 %107, %.pre-phi.reload
%109 = inttoptr i64 %108 to i64*
%110 = load i64, i64* %109, align 8
%111 = icmp eq i64 %110, 0
br i1 %111, label LBL_25, label LBL_21
LBL_21:
%112 = mul i64 %indvars.iv.reload, 4
%113 = add i64 %112, %.pre-phi14.reload
%114 = inttoptr i64 %113 to i32*
%115 = load i32, i32* %114, align 4
%116 = load i64, i64* %104, align 8
%117 = load i32, i32* %105, align 8
%118 = sext i32 %117 to i64
%119 = add i64 %116, %118
%120 = call i64 @FUNC(i64 %110, i64 %119, i32 %115)
%121 = trunc i64 %120 to i32
%122 = add i64 %106, %112
%123 = inttoptr i64 %122 to i32*
store i32 %121, i32* %123, align 4
%124 = load i32, i32* %92, align 8
%125 = icmp eq i32 %124, 0
%126 = icmp eq i1 %125, false
store i32 %121, i32* %.reg2mem24
br i1 %126, label LBL_23, label LBL_22
LBL_22:
%127 = load i64, i64* %109, align 8
%128 = call i64 @FUNC(i64 %127)
%.pr = load i32, i32* %123, align 4
store i32 %.pr, i32* %.reg2mem24
br label LBL_23
LBL_23:
%.reload25 = load i32, i32* %.reg2mem24
%129 = icmp slt i32 %.reload25, 1
br i1 %129, label LBL_25, label LBL_24
LBL_24:
%130 = load i32, i32* %105, align 8
%131 = add i32 %130, %.reload25
store i32 %131, i32* %102, align 4
br label LBL_25
LBL_25:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 3
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_26, label LBL_20
LBL_26:
%132 = call i64 @FUNC(i64 %91)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_27
LBL_27:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload25, { 1, 0 }
uselistorder i64 %112, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %91, { 0, 1, 2, 4, 3 }
uselistorder i64 %43, { 1, 0 }
uselistorder i64 %indvars.iv11.reload, { 0, 3, 1, 2 }
uselistorder i64 %40, { 2, 1, 0, 3 }
uselistorder i64 %39, { 2, 1, 0, 3 }
uselistorder i32* %.pre15, { 1, 3, 2, 0 }
uselistorder i32** %sv_2, { 2, 1, 0 }
uselistorder i64* %sv_1, { 1, 2, 0, 3 }
uselistorder i64 %3, { 6, 1, 2, 5, 4, 0, 3, 7 }
uselistorder i64* %indvars.iv11.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge59.reg2mem, { 1, 0, 2 }
uselistorder i64* %.pre-phi14.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem24, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 4, 2, 3 }
uselistorder i64 3, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 4294967294, { 3, 0, 2, 1 }
uselistorder i64 16, { 1, 2, 3, 0, 4, 5 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 0, 6, 7, 8 }
uselistorder label LBL_27, { 3, 0, 4, 1, 2 }
uselistorder label LBL_14, { 1, 0, 2 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_5, { 2, 1, 0 }
} | 0 |
BinRealVul | setkey_8123 | setkey | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %1)
%4 = and i64 %3, %0
%5 = icmp eq i64 %4, 0
store i64 %1, i64* %storemerge.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %1, i64 %0, i32 %arg3)
store i64 %6, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 1, 0, 2, 3 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | read_quant_matrix_ext_7919 | read_quant_matrix_ext | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%storemerge26.reg2mem = alloca i32
%indvars.iv10.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0)
%6 = trunc i64 %5 to i32
%7 = icmp sgt i32 %6, 511
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_15
LBL_2:
%8 = add i64 %1, 512
%9 = add i64 %1, 256
store i64 0, i64* %indvars.iv10.reg2mem
br label LBL_3
LBL_3:
%indvars.iv10.reload = load i64, i64* %indvars.iv10.reg2mem
%10 = call i64 @FUNC(i64 %0, i64 8)
%11 = trunc i64 %10 to i32
%12 = mul i64 %indvars.iv10.reload, 4
%13 = add i64 %12, ptrtoint (i32** @gv_0 to i64)
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = sext i32 %15 to i64
%17 = mul i64 %16, 4
%18 = add i64 %8, %17
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = sext i32 %20 to i64
%22 = mul i64 %21, 4
%23 = add i64 %22, %1
%24 = inttoptr i64 %23 to i32*
store i32 %11, i32* %24, align 4
%25 = add i64 %9, %22
%26 = inttoptr i64 %25 to i32*
store i32 %11, i32* %26, align 4
%indvars.iv.next11 = add nuw nsw i64 %indvars.iv10.reload, 1
%exitcond12 = icmp eq i64 %indvars.iv.next11, 64
store i64 %indvars.iv.next11, i64* %indvars.iv10.reg2mem
br i1 %exitcond12, label LBL_4, label LBL_3
LBL_4:
%27 = call i64 @FUNC(i64 %0)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
br i1 %29, label LBL_7, label LBL_5
LBL_5:
%30 = call i64 @FUNC(i64 %0)
%31 = trunc i64 %30 to i32
%32 = icmp sgt i32 %31, 511
store i32 0, i32* %storemerge26.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %32, label LBL_6, label LBL_15
LBL_6:
%storemerge26.reload = load i32, i32* %storemerge26.reg2mem
%33 = call i64 @FUNC(i64 %0, i64 8)
%34 = add nuw nsw i32 %storemerge26.reload, 1
%exitcond9 = icmp eq i32 %34, 64
store i32 %34, i32* %storemerge26.reg2mem
br i1 %exitcond9, label LBL_7, label LBL_6
LBL_7:
%35 = call i64 @FUNC(i64 %0)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
br i1 %37, label LBL_11, label LBL_8
LBL_8:
%38 = call i64 @FUNC(i64 %0)
%39 = trunc i64 %38 to i32
%40 = icmp sgt i32 %39, 511
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %40, label LBL_9, label LBL_15
LBL_9:
%41 = add i64 %1, 512
%42 = add i64 %1, 256
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_10
LBL_10:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%43 = call i64 @FUNC(i64 %0, i64 8)
%44 = trunc i64 %43 to i32
%45 = mul i64 %indvars.iv.reload, 4
%46 = add i64 %45, ptrtoint (i32** @gv_0 to i64)
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = sext i32 %48 to i64
%50 = mul i64 %49, 4
%51 = add i64 %41, %50
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = sext i32 %53 to i64
%55 = mul i64 %54, 4
%56 = add i64 %42, %55
%57 = inttoptr i64 %56 to i32*
store i32 %44, i32* %57, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond8 = icmp eq i64 %indvars.iv.next, 64
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond8, label LBL_11, label LBL_10
LBL_11:
%58 = call i64 @FUNC(i64 %0)
%59 = trunc i64 %58 to i32
%60 = icmp eq i32 %59, 0
br i1 %60, label LBL_14, label LBL_12
LBL_12:
%61 = call i64 @FUNC(i64 %0)
%62 = trunc i64 %61 to i32
%63 = icmp sgt i32 %62, 511
store i32 0, i32* %storemerge4.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %63, label LBL_13, label LBL_15
LBL_13:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%64 = call i64 @FUNC(i64 %0, i64 8)
%65 = add nuw nsw i32 %storemerge4.reload, 1
%exitcond = icmp eq i32 %65, 64
store i32 %65, i32* %storemerge4.reg2mem
br i1 %exitcond, label LBL_14, label LBL_13
LBL_14:
%66 = call i64 @FUNC(i64 %0)
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 %1, { 1, 2, 0, 3, 4 }
uselistorder i64 %0, { 8, 6, 7, 9, 4, 5, 10, 2, 3, 11, 0, 1, 12 }
uselistorder i64* %indvars.iv10.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge26.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge4.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i32 64, { 1, 0 }
uselistorder i64 64, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 ptrtoint (i32** @gv_0 to i64), { 1, 0 }
uselistorder i64 (i64, i64)* @get_bits, { 3, 2, 1, 0 }
uselistorder i64 256, { 1, 0 }
uselistorder i64 512, { 1, 0 }
uselistorder i64 (i64)* @get_bits_left, { 3, 2, 1, 0 }
uselistorder i32 0, { 0, 5, 6, 1, 7, 8, 2, 3, 4, 9 }
uselistorder i64 (i64)* @get_bits1, { 4, 3, 2, 1, 0 }
uselistorder label LBL_15, { 4, 0, 1, 2, 3 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | SafeMulDims_5679 | SafeMulDims | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
%9 = and i64 %1, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_3
LBL_2:
store i64 0, i64* %arg2, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_3:
%.reload = load i64, i64* %.reg2mem
%10 = load i64, i64* %8, align 8
%11 = mul i64 %.reload, 8
%12 = add i64 %10, %11
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %5, i64 %5, i64 %14)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_5, label LBL_4
LBL_4:
store i64 0, i64* %arg2, align 8
store i64 1, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%19 = add i32 %storemerge1.reload, 1
%20 = sext i32 %19 to i64
%21 = icmp sgt i64 %9, %20
store i64 %20, i64* %.reg2mem
store i32 %19, i32* %storemerge1.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_3, label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | find_and_decode_index_7436 | find_and_decode_index | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%r9.4.lcssa.reg2mem = alloca i64
%r8.4.lcssa.reg2mem = alloca i64
%rcx.8.lcssa.reg2mem = alloca i64
%rcx.853.reg2mem = alloca i64
%r8.454.reg2mem = alloca i64
%r9.455.reg2mem = alloca i64
%storemerge56.reg2mem = alloca i32
%.reg2mem119 = alloca i64
%.reg2mem117 = alloca i32
%r9.3.lcssa.reg2mem = alloca i64
%r8.3.lcssa.reg2mem = alloca i64
%rcx.7.lcssa.reg2mem = alloca i64
%.reg2mem = alloca i32
%r9.2.reg2mem = alloca i64
%r8.2.reg2mem = alloca i64
%rcx.6.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%sv_2.2.reg2mem = alloca i64
%r9.1.reg2mem = alloca i64
%r8.1.reg2mem = alloca i64
%rcx.5.reg2mem = alloca i64
%sv_2.1.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i64
%r9.0.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%rcx.4.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i64
%rcx.3.reg2mem = alloca i64
%sv_4.2.reg2mem = alloca i32
%indvars.iv92.reg2mem = alloca i64
%sv_5.13393.reg2mem = alloca i32
%rcx.235.lcssa.reg2mem = alloca i64
%sv_4.0.lcssa.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i64
%sv_5.031.reg2mem = alloca i32
%sv_4.032.reg2mem = alloca i32
%sv_2.338.reg2mem = alloca i64
%sv_1.239.reg2mem = alloca i32
%rcx.743.reg2mem = alloca i64
%r8.344.reg2mem = alloca i64
%r9.347.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = load i64, i64* %0
%5 = call i64 @FUNC(i64 %3)
%sext = mul i64 %5, 4294967296
%6 = ashr exact i64 %sext, 32
%7 = add nsw i64 %6, -12
%8 = call i64 @FUNC(i64 %3, i64 %7, i64 0)
%9 = call i64 @FUNC(i64 %3)
%10 = sub i64 %6, %9
%11 = call i64 @FUNC(i64 %3, i64 %10, i64 0)
%12 = call i64 @FUNC(i64 %3)
%13 = icmp eq i64 %12, 305419896
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i64 %10, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_40
LBL_2:
%15 = call i64 @FUNC(i64 %3, i64 %3, i64 1, i64 305419896)
%16 = call i64 @FUNC(i64 %3)
%17 = call i64 @FUNC(i64 %3)
%18 = add i64 %4, -1
%19 = icmp ult i64 %18, 268435454
%storemerge5 = zext i1 %19 to i32
%20 = mul i32 %storemerge5, 8
%21 = zext i32 %20 to i64
%22 = call i64 @FUNC(i64 %21)
%23 = select i1 %19, i64 2, i64 1
%24 = call i64 @FUNC(i64 %23)
%25 = icmp ne i64 %22, 0
%26 = icmp eq i64 %24, 0
%27 = icmp eq i1 %26, false
%or.cond = icmp eq i1 %25, %27
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_3, label LBL_40
LBL_3:
br i1 %19, label LBL_4, label LBL_5
LBL_4:
%28 = call i64 @FUNC(i64 %3)
%29 = inttoptr i64 %22 to i64*
store i64 %28, i64* %29, align 8
%30 = icmp slt i64 %28, 1
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %30, label LBL_39, label LBL_5
LBL_5:
%31 = add i64 %3, 8
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, 0
store i64 305419896, i64* %rcx.8.lcssa.reg2mem
br i1 %34, label LBL_36, label LBL_6
LBL_6:
%35 = inttoptr i64 %24 to i8*
%36 = add i64 %22, -8
%37 = add i64 %3, 16
%38 = inttoptr i64 %37 to i64*
%39 = zext i1 %19 to i64
store i32 %33, i32* %.reg2mem117
store i64 0, i64* %.reg2mem119
store i32 0, i32* %storemerge56.reg2mem
store i64 305419896, i64* %rcx.853.reg2mem
br label LBL_31.preheader
LBL_7:
%sv_2.338.reload = load i64, i64* %sv_2.338.reg2mem
%sv_1.239.reload = load i32, i32* %sv_1.239.reg2mem
%rcx.743.reload = load i64, i64* %rcx.743.reg2mem
%r8.344.reload = load i64, i64* %r8.344.reg2mem
%r9.347.reload = load i64, i64* %r9.347.reg2mem
%40 = call i64 @FUNC(i64 %3)
%41 = udiv i64 %40, 2
%42 = trunc i64 %41 to i32
%43 = urem i64 %40, 2
%44 = icmp eq i64 %43, 0
br i1 %44, label LBL_8, label LBL_10
LBL_8:
%45 = icmp eq i32 %42, 1
%46 = icmp eq i1 %45, false
store i32 %sv_1.239.reload, i32* %sv_4.2.reg2mem
store i64 %rcx.743.reload, i64* %rcx.3.reg2mem
br i1 %46, label LBL_9, label LBL_21
LBL_9:
%47 = sext i32 %sv_1.239.reload to i64
%48 = icmp sgt i64 %47, %39
store i64 %rcx.743.reload, i64* %rcx.235.lcssa.reg2mem
store i32 %42, i32* %sv_5.13393.reg2mem
store i64 %47, i64* %indvars.iv92.reg2mem
br i1 %48, label LBL_18, label LBL_19
LBL_10:
%sext7 = mul i64 %41, 4294967296
%49 = ashr exact i64 %sext7, 32
%50 = udiv i64 %49, 2
%51 = sext i32 %sv_1.239.reload to i64
%52 = add i64 %50, %51
%53 = icmp ult i64 %52, %23
br i1 %53, label LBL_11, label LBL_13
LBL_11:
%54 = urem i32 %42, 2
%55 = trunc i64 %50 to i32
%56 = icmp eq i32 %55, 0
%57 = icmp eq i1 %56, false
store i64 %51, i64* %.pre-phi.reg2mem
store i32 %sv_1.239.reload, i32* %sv_4.0.lcssa.reg2mem
br i1 %57, label LBL_12, label LBL_16
LBL_12:
%58 = trunc i32 %54 to i8
store i32 %sv_1.239.reload, i32* %sv_4.032.reg2mem
store i32 %55, i32* %sv_5.031.reg2mem
br label LBL_14
LBL_13:
%59 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_1, i64 0, i64 0), i64 %rcx.743.reload, i64 %r8.344.reload, i64 %r9.347.reload)
store i64 4294967295, i64* %sv_0.0.reg2mem
br label LBL_39
LBL_14:
%sv_5.031.reload = load i32, i32* %sv_5.031.reg2mem
%sv_4.032.reload = load i32, i32* %sv_4.032.reg2mem
%60 = add i32 %sv_5.031.reload, -1
%61 = add i32 %sv_4.032.reload, 1
%62 = sext i32 %sv_4.032.reload to i64
%63 = add i64 %24, %62
%64 = inttoptr i64 %63 to i8*
store i8 %58, i8* %64, align 1
%65 = icmp eq i32 %60, 0
%66 = icmp eq i1 %65, false
store i32 %61, i32* %sv_4.032.reg2mem
store i32 %60, i32* %sv_5.031.reg2mem
br i1 %66, label LBL_14, label LBL_15
LBL_15:
%.pre78 = sext i32 %61 to i64
store i64 %.pre78, i64* %.pre-phi.reg2mem
store i32 %61, i32* %sv_4.0.lcssa.reg2mem
br label LBL_16
LBL_16:
%sv_4.0.lcssa.reload = load i32, i32* %sv_4.0.lcssa.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%67 = icmp eq i32 %54, 0
%68 = zext i1 %67 to i64
%69 = and i64 %rcx.743.reload, -256
%70 = or i64 %69, %68
%71 = add i32 %sv_4.0.lcssa.reload, 1
%72 = add i64 %.pre-phi.reload, %24
%73 = zext i1 %67 to i8
%74 = inttoptr i64 %72 to i8*
store i8 %73, i8* %74, align 1
store i32 %71, i32* %sv_4.2.reg2mem
store i64 %70, i64* %rcx.3.reg2mem
br label LBL_21
LBL_17:
%indvars.iv.next = add nsw i64 %indvars.iv92.reload, 1
%75 = icmp slt i64 %indvars.iv92.reload, %39
store i64 %79, i64* %rcx.235.lcssa.reg2mem
store i32 %82, i32* %sv_5.13393.reg2mem
store i64 %indvars.iv.next, i64* %indvars.iv92.reg2mem
br i1 %75, label LBL_19, label LBL_18
LBL_18:
%rcx.235.lcssa.reload = load i64, i64* %rcx.235.lcssa.reg2mem
%76 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0), i64 %rcx.235.lcssa.reload, i64 %r8.344.reload, i64 %r9.347.reload)
store i64 4294967295, i64* %sv_0.0.reg2mem
br label LBL_39
LBL_19:
%indvars.iv92.reload = load i64, i64* %indvars.iv92.reg2mem
%sv_5.13393.reload = load i32, i32* %sv_5.13393.reg2mem
%77 = add i64 %indvars.iv92.reload, %24
%78 = urem i32 %sv_5.13393.reload, 2
%79 = zext i32 %78 to i64
%80 = trunc i32 %78 to i8
%81 = inttoptr i64 %77 to i8*
store i8 %80, i8* %81, align 1
%82 = ashr i32 %sv_5.13393.reload, 1
%83 = icmp eq i32 %82, 1
%84 = icmp eq i1 %83, false
br i1 %84, label LBL_17, label LBL_20
LBL_20:
%85 = trunc i64 %indvars.iv92.reload to i32
%86 = add i32 %85, 1
store i32 %86, i32* %sv_4.2.reg2mem
store i64 %79, i64* %rcx.3.reg2mem
br label LBL_21
LBL_21:
%rcx.3.reload = load i64, i64* %rcx.3.reg2mem
%87 = load i8, i8* %35, align 1
%88 = icmp eq i8 %87, 0
br i1 %88, label LBL_23, label LBL_22
LBL_22:
%89 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_3, i64 0, i64 0), i64 %rcx.3.reload, i64 %r8.344.reload, i64 %r9.347.reload)
store i64 4294967295, i64* %sv_0.0.reg2mem
br label LBL_39
LBL_23:
%sv_4.2.reload = load i32, i32* %sv_4.2.reg2mem
%90 = sext i32 %sv_4.2.reload to i64
%91 = icmp slt i64 %23, %90
store i64 %sv_2.338.reload, i64* %sv_2.2.reg2mem
store i32 %sv_1.239.reload, i32* %sv_1.1.reg2mem
store i64 %rcx.3.reload, i64* %rcx.6.reg2mem
store i64 %r8.344.reload, i64* %r8.2.reg2mem
store i64 %r9.347.reload, i64* %r9.2.reg2mem
br i1 %91, label LBL_24, label LBL_30
LBL_24:
call void @__assert_fail(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_5, i64 0, i64 0), i32 139, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_6, i64 0, i64 0))
store i64 %sv_2.338.reload, i64* %sv_2.0.reg2mem
store i32 %sv_1.239.reload, i32* %sv_1.0.reg2mem
store i64 ptrtoint ([22 x i8]* @gv_6 to i64), i64* %rcx.4.reg2mem
store i64 %r8.344.reload, i64* %r8.0.reg2mem
store i64 %r9.347.reload, i64* %r9.0.reg2mem
br label LBL_25
LBL_25:
%r9.0.reload = load i64, i64* %r9.0.reg2mem
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%rcx.4.reload = load i64, i64* %rcx.4.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%92 = sext i32 %sv_1.0.reload to i64
%93 = add i64 %24, %92
%94 = inttoptr i64 %93 to i8*
%95 = load i8, i8* %94, align 1
%96 = icmp eq i8 %95, 0
store i64 %sv_2.0.reload, i64* %sv_2.1.reg2mem
store i64 %rcx.4.reload, i64* %rcx.5.reg2mem
store i64 %r8.0.reload, i64* %r8.1.reg2mem
store i64 %r9.0.reload, i64* %r9.1.reg2mem
br i1 %96, label LBL_29, label LBL_26
LBL_26:
%97 = call i64 @FUNC(i64 %3)
%98 = icmp eq i64 %97, 0
%99 = icmp eq i1 %98, false
store i64 %97, i64* %sv_3.0.reg2mem
store i64 0, i64* %storemerge3.reg2mem
br i1 %99, label LBL_28, label LBL_27
LBL_27:
%100 = call i64 @FUNC(i64 %3)
%101 = call i64 @FUNC(i64 %3)
store i64 %100, i64* %sv_3.0.reg2mem
store i64 %101, i64* %storemerge3.reg2mem
br label LBL_28
LBL_28:
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%102 = add i64 %sv_3.0.reload, %sv_2.0.reload
%103 = mul i64 %92, 8
%104 = add i64 %36, %103
%105 = inttoptr i64 %104 to i64*
%106 = load i64, i64* %105, align 8
%107 = mul i64 %106, 16
%108 = load i64, i64* %38, align 8
%109 = add i64 %108, %121
%110 = inttoptr i64 %109 to i64*
%111 = load i64, i64* %110, align 8
%112 = call i64 @FUNC(i64 %111, i64 %107, i64 %102, i64 0, i64 0, i64 1)
%113 = add i64 %102, %storemerge3.reload
store i64 %113, i64* %sv_2.1.reg2mem
store i64 0, i64* %rcx.5.reg2mem
store i64 0, i64* %r8.1.reg2mem
store i64 1, i64* %r9.1.reg2mem
br label LBL_29
LBL_29:
%r9.1.reload = load i64, i64* %r9.1.reg2mem
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%rcx.5.reload = load i64, i64* %rcx.5.reg2mem
%sv_2.1.reload = load i64, i64* %sv_2.1.reg2mem
%114 = add i32 %sv_1.0.reload, 1
store i64 %sv_2.1.reload, i64* %sv_2.2.reg2mem
store i32 %114, i32* %sv_1.1.reg2mem
store i64 %rcx.5.reload, i64* %rcx.6.reg2mem
store i64 %r8.1.reload, i64* %r8.2.reg2mem
store i64 %r9.1.reload, i64* %r9.2.reg2mem
br label LBL_30
LBL_30:
%r9.2.reload = load i64, i64* %r9.2.reg2mem
%r8.2.reload = load i64, i64* %r8.2.reg2mem
%rcx.6.reload = load i64, i64* %rcx.6.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%sv_2.2.reload = load i64, i64* %sv_2.2.reg2mem
%115 = icmp slt i32 %sv_1.1.reload, %sv_4.2.reload
%116 = icmp slt i32 %sv_1.1.reload, %storemerge5
%or.cond9 = icmp eq i1 %115, %116
store i64 %sv_2.2.reload, i64* %sv_2.0.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.0.reg2mem
store i64 %rcx.6.reload, i64* %rcx.4.reg2mem
store i64 %r8.2.reload, i64* %r8.0.reg2mem
store i64 %r9.2.reload, i64* %r9.0.reg2mem
br i1 %or.cond9, label LBL_25, label LBL_31
LBL_31:
store i64 %r9.2.reload, i64* %r9.347.reg2mem
store i64 %r8.2.reload, i64* %r8.344.reg2mem
store i64 %rcx.6.reload, i64* %rcx.743.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.239.reg2mem
store i64 %sv_2.2.reload, i64* %sv_2.338.reg2mem
br i1 %116, label LBL_7, label LBL_31.LBL_33_crit_edge
LBL_32:
%.pre = load i32, i32* %32, align 4
store i32 %.pre, i32* %.reg2mem
store i64 %rcx.6.reload, i64* %rcx.7.lcssa.reg2mem
store i64 %r8.2.reload, i64* %r8.3.lcssa.reg2mem
store i64 %r9.2.reload, i64* %r9.3.lcssa.reg2mem
br label LBL_33
LBL_33:
%r9.3.lcssa.reload = load i64, i64* %r9.3.lcssa.reg2mem
%r8.3.lcssa.reload = load i64, i64* %r8.3.lcssa.reg2mem
%rcx.7.lcssa.reload = load i64, i64* %rcx.7.lcssa.reg2mem
%.reload = load i32, i32* %.reg2mem
%117 = add i32 %storemerge56.reload, 1
%118 = zext i32 %.reload to i64
%119 = sext i32 %117 to i64
%120 = icmp slt i64 %119, %118
store i32 %.reload, i32* %.reg2mem117
store i64 %119, i64* %.reg2mem119
store i32 %117, i32* %storemerge56.reg2mem
store i64 %r9.3.lcssa.reload, i64* %r9.455.reg2mem
store i64 %r8.3.lcssa.reload, i64* %r8.454.reg2mem
store i64 %rcx.7.lcssa.reload, i64* %rcx.853.reg2mem
store i64 %rcx.7.lcssa.reload, i64* %rcx.8.lcssa.reg2mem
store i64 %r8.3.lcssa.reload, i64* %r8.4.lcssa.reg2mem
store i64 %r9.3.lcssa.reload, i64* %r9.4.lcssa.reg2mem
br i1 %120, label LBL_31.preheader, label LBL_36
LBL_34:
%rcx.853.reload = load i64, i64* %rcx.853.reg2mem
%r8.454.reload = load i64, i64* %r8.454.reg2mem
%r9.455.reload = load i64, i64* %r9.455.reg2mem
%storemerge56.reload = load i32, i32* %storemerge56.reg2mem
%.reload118 = load i32, i32* %.reg2mem117
store i32 %.reload118, i32* %.reg2mem
store i64 %rcx.853.reload, i64* %rcx.7.lcssa.reg2mem
store i64 %r8.454.reload, i64* %r8.3.lcssa.reg2mem
store i64 %r9.455.reload, i64* %r9.3.lcssa.reg2mem
br i1 %19, label LBL_7.lr.ph, label LBL_33
LBL_35:
%.reload120 = load i64, i64* %.reg2mem119
%121 = mul i64 %.reload120, 8
store i64 %r9.455.reload, i64* %r9.347.reg2mem
store i64 %r8.454.reload, i64* %r8.344.reg2mem
store i64 %rcx.853.reload, i64* %rcx.743.reg2mem
store i32 0, i32* %sv_1.239.reg2mem
store i64 -1, i64* %sv_2.338.reg2mem
br label LBL_7
LBL_36:
%122 = add i64 %16, %15
%r9.4.lcssa.reload = load i64, i64* %r9.4.lcssa.reg2mem
%r8.4.lcssa.reload = load i64, i64* %r8.4.lcssa.reg2mem
%rcx.8.lcssa.reload = load i64, i64* %rcx.8.lcssa.reg2mem
%123 = call i64 @FUNC(i64 %3, i64 %122)
%124 = trunc i64 %123 to i32
%125 = icmp eq i32 %124, 0
%126 = icmp eq i1 %125, false
br i1 %126, label LBL_38, label LBL_37
LBL_37:
%127 = call i64 @FUNC(i64 %3)
%128 = trunc i64 %127 to i32
%129 = icmp eq i32 %128, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %129, label LBL_39, label LBL_38
LBL_38:
%130 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_7, i64 0, i64 0), i64 %rcx.8.lcssa.reload, i64 %r8.4.lcssa.reload, i64 %r9.4.lcssa.reload)
store i64 4294967295, i64* %sv_0.0.reg2mem
br label LBL_39
LBL_39:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%131 = call i64 @FUNC(i64 %22)
%132 = call i64 @FUNC(i64 %24)
store i64 %sv_0.0.reload, i64* %rax.0.reg2mem
br label LBL_40
LBL_40:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i1 %116, { 1, 0 }
uselistorder i32 %sv_1.1.reload, { 2, 3, 1, 0 }
uselistorder i64 %sv_2.0.reload, { 1, 0 }
uselistorder i32 %sv_1.0.reload, { 1, 0 }
uselistorder i32 %sv_4.2.reload, { 1, 0 }
uselistorder i32 %82, { 1, 0 }
uselistorder i32 %78, { 1, 0 }
uselistorder i64 %indvars.iv92.reload, { 3, 0, 1, 2 }
uselistorder i32 %61, { 0, 2, 1 }
uselistorder i32 %sv_4.032.reload, { 1, 0 }
uselistorder i32 %54, { 1, 0 }
uselistorder i32 %42, { 1, 0, 2 }
uselistorder i64 %40, { 1, 0 }
uselistorder i64 %r9.347.reload, { 1, 0, 3, 4, 2 }
uselistorder i64 %r8.344.reload, { 1, 0, 3, 4, 2 }
uselistorder i64 %rcx.743.reload, { 2, 3, 1, 0 }
uselistorder i32 %sv_1.239.reload, { 1, 0, 4, 3, 5, 6, 2 }
uselistorder i64 %sv_2.338.reload, { 1, 0 }
uselistorder i64 %24, { 5, 1, 2, 3, 0, 6, 4 }
uselistorder i64 %23, { 1, 0, 2 }
uselistorder i64 %22, { 2, 1, 0, 3 }
uselistorder i32 %storemerge5, { 1, 0 }
uselistorder i1 %19, { 2, 0, 1, 3, 4 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64 %3, { 2, 1, 3, 7, 6, 9, 5, 10, 4, 11, 8, 12, 13, 14, 17, 16, 15, 0, 18, 19, 20, 21, 22 }
uselistorder i64* %r9.347.reg2mem, { 2, 1, 0 }
uselistorder i64* %r8.344.reg2mem, { 2, 1, 0 }
uselistorder i64* %rcx.743.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_1.239.reg2mem, { 2, 1, 0 }
uselistorder i64* %sv_2.338.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_4.032.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_5.031.reg2mem, { 1, 0, 2 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_4.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_5.13393.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv92.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_4.2.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rcx.3.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_2.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.4.reg2mem, { 1, 0, 2 }
uselistorder i64* %r8.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %r9.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.2.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.6.reg2mem, { 0, 2, 1 }
uselistorder i64* %r8.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %r9.2.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.7.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i64* %r8.3.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i64* %r9.3.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 5, 6, 4, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @av_free, { 1, 0 }
uselistorder [22 x i8]* @gv_6, { 1, 0 }
uselistorder i32 0, { 6, 7, 1, 5, 4, 3, 0, 2 }
uselistorder i1 false, { 6, 3, 4, 5, 1, 0, 2 }
uselistorder i64 2, { 0, 2, 1, 3 }
uselistorder i64 (i64)* @av_malloc, { 1, 0 }
uselistorder i64 (i64)* @ffio_read_varlen, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 1, { 0, 5, 2, 4, 3, 6, 1 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 3, 4, 2, 0 }
uselistorder i64 305419896, { 1, 0, 3, 2 }
uselistorder i64 (i64)* @avio_rb64, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @avio_seek, { 1, 0 }
uselistorder label LBL_40, { 1, 0, 2 }
uselistorder label LBL_39, { 5, 1, 3, 2, 4, 0 }
uselistorder label LBL_31.preheader, { 1, 0 }
uselistorder label LBL_33, { 1, 0 }
uselistorder label LBL_30, { 1, 0 }
uselistorder label LBL_28, { 1, 0 }
uselistorder label LBL_21, { 1, 2, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
} | 1 |
BinRealVul | ppc_store_sr_18676 | ppc_store_sr | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.06.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%3 = ashr exact i64 %sext, 29
%4 = add i64 %3, %2
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = and i64 %arg2, 4294967295
%8 = call i64 @FUNC(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64 %7, i64 %arg3, i64 %6, i64 %1)
%9 = add i64 %2, 128
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = urem i32 %11, 2
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = mul i64 %arg2, 268435456
%15 = and i64 %14, 4026531840
%16 = and i64 %arg2, 4160749567
%17 = or i64 %16, %15
%18 = or i64 %17, 134217728
%19 = mul i64 %arg3, 4096
%20 = and i64 %19, 1099511623680
%21 = udiv i64 %arg3, 262144
%22 = and i64 %21, 7680
%23 = or i64 %20, %22
%24 = call i64 @FUNC(i64 %2, i64 %18, i64 %23)
store i64 %24, i64* %rax.0.reg2mem
br label LBL_6
LBL_2:
%25 = load i64, i64* %5, align 8
%26 = icmp eq i64 %25, %arg3
store i64 %arg3, i64* %rax.0.reg2mem
br i1 %26, label LBL_6, label LBL_3
LBL_3:
store i64 %arg3, i64* %5, align 8
%sext5 = mul i64 %arg2, 72057594037927936
%27 = ashr exact i64 %sext5, 32
%28 = or i64 %27, 16773120
store i64 %27, i64* %sv_0.06.reg2mem
br label LBL_4
LBL_4:
%sv_0.06.reload = load i64, i64* %sv_0.06.reg2mem
%29 = call i64 @FUNC(i64 %2, i64 %sv_0.06.reload)
%30 = add i64 %sv_0.06.reload, 4096
%31 = icmp eq i64 %sv_0.06.reload, %28
%32 = icmp eq i1 %31, false
store i64 %30, i64* %sv_0.06.reg2mem
br i1 %32, label LBL_4, label LBL_5
LBL_5:
%33 = call i64 @FUNC(i64 %2, i64 1)
store i64 %33, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.06.reload, { 2, 0, 1 }
uselistorder i64 %2, { 2, 3, 1, 4, 0 }
uselistorder i64* %sv_0.06.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 4096, { 1, 0 }
uselistorder i64 %arg3, { 4, 0, 3, 2, 1, 5 }
uselistorder i64 %arg2, { 0, 3, 1, 4, 2 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | rx_queue_add_kobject_19314 | rx_queue_add_kobject | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.in.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%3 = ashr exact i64 %sext, 28
%4 = add i64 %3, %2
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %4 to i64*
store i64 %7, i64* %8, align 8
%9 = and i64 %arg2, 4294967295
%10 = call i64 @FUNC(i64 %4, i64* nonnull @gv_0, i64 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %9, i64 %1)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
store i64 %10, i64* %rax.0.in.reg2mem
br i1 %12, label LBL_1, label LBL_5
LBL_1:
%13 = add i64 %2, 16
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = icmp eq i64 %15, 0
store i64 %10, i64* %sv_0.0.reg2mem
br i1 %16, label LBL_4, label LBL_2
LBL_2:
%17 = call i64 @FUNC(i64 %4, i64 %15)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
store i64 %17, i64* %sv_0.0.reg2mem
br i1 %19, label LBL_4, label LBL_3
LBL_3:
%20 = call i64 @FUNC(i64 %4)
store i64 %17, i64* %rax.0.in.reg2mem
br label LBL_5
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%21 = call i64 @FUNC(i64 %4, i64 1)
%22 = add i64 %4, 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %24)
store i64 %sv_0.0.reload, i64* %rax.0.in.reg2mem
br label LBL_5
LBL_5:
%rax.0.in.reload = load i64, i64* %rax.0.in.reg2mem
%rax.0 = and i64 %rax.0.in.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %10, { 1, 0, 2 }
uselistorder i64 %4, { 2, 3, 0, 1, 4, 5 }
uselistorder i64 %2, { 1, 2, 0 }
uselistorder i64* %rax.0.in.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_5, { 1, 2, 0 }
} | 1 |
BinRealVul | mask_from_posix_10191 | mask_from_posix | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = and i64 %arg2, 2
%1 = icmp eq i64 %0, 0
%spec.select = select i1 %1, i32 1, i32 5
%2 = trunc i64 %arg1 to i32
%3 = mul i32 %2, 2
%4 = and i32 %3, 16
%5 = or i32 %spec.select, %4
%6 = and i64 %arg1, 32
%7 = icmp eq i64 %6, 0
%8 = or i32 %5, 64
%spec.select4 = select i1 %7, i32 %5, i32 %8
%9 = trunc i64 %arg2 to i8
%10 = icmp sgt i8 %9, -1
%or.cond = or i1 %7, %10
%11 = or i32 %spec.select4, 256
%sv_0.3 = select i1 %or.cond, i32 %spec.select4, i32 %11
%12 = and i32 %3, 1024
%13 = or i32 %sv_0.3, %12
%14 = zext i32 %13 to i64
ret i64 %14
uselistorder i32 %5, { 1, 0 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %arg1, { 1, 0 }
} | 0 |
BinRealVul | unpack_timestamp_11890 | unpack_timestamp | 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 = urem i64 %1, 65536
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %2, 7
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = zext i8 %7 to i64
%9 = add i64 %2, 6
%10 = inttoptr i64 %9 to i8*
%11 = load i8, i8* %10, align 1
%12 = zext i8 %11 to i64
%13 = mul i64 %12, 256
%14 = add i64 %2, 5
%15 = inttoptr i64 %14 to i8*
%16 = load i8, i8* %15, align 1
%17 = zext i8 %16 to i64
%18 = mul i64 %17, 65536
%19 = add i64 %2, 4
%20 = inttoptr i64 %19 to i8*
%21 = load i8, i8* %20, align 1
%22 = zext i8 %21 to i64
%23 = mul i64 %22, 16777216
%24 = add i64 %2, 3
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = zext i8 %26 to i64
%28 = mul i64 %27, 4294967296
%29 = add i64 %2, 2
%30 = inttoptr i64 %29 to i8*
%31 = load i8, i8* %30, align 1
%32 = zext i8 %31 to i64
%33 = mul i64 %32, 1099511627776
%34 = mul i64 %4, 281474976710656
%35 = or i64 %34, %8
%36 = or i64 %35, %13
%37 = or i64 %36, %18
%38 = or i64 %37, %23
%39 = or i64 %38, %28
%40 = or i64 %39, %33
ret i64 %40
uselistorder i64 %2, { 4, 3, 2, 1, 0, 5 }
} | 1 |
BinRealVul | refresh_total_sectors_10917 | refresh_total_sectors | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_5
LBL_1:
%5 = icmp eq i64* %arg1, null
store i64 %arg2, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_4, label LBL_2
LBL_2:
%6 = icmp slt i64* %arg1, null
%7 = icmp eq i1 %6, false
store i64 %0, i64* %rax.0.reg2mem
br i1 %7, label LBL_3, label LBL_5
LBL_3:
%8 = call i64 @FUNC(i64 %0, i64 512)
store i64 %8, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%9 = add i64 %0, 8
%10 = inttoptr i64 %9 to i64*
store i64 %sv_0.0.reload, i64* %10, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 2, 1, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_5, { 2, 0, 1 }
} | 0 |
BinRealVul | s390_qemu_cpu_model_initfn_662 | s390_qemu_cpu_model_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 16)
%3 = inttoptr i64 %1 to i64*
store i64 %2, i64* %3, align 8
%4 = inttoptr i64 %2 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %4, align 8
%5 = load i64, i64* %3, align 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %5, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12, i64 %9, i64 64)
ret i64 %13
} | 0 |
BinRealVul | pkt_find_dev_from_minor_6606 | pkt_find_dev_from_minor | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%1 = icmp ult i32 %0, 10
store i64 0, i64* %storemerge.reg2mem
br i1 %1, label LBL_1, label LBL_2
LBL_1:
%2 = mul i64 %arg1, 8
%3 = and i64 %2, 34359738360
%4 = add i64 %3, ptrtoint (i64* @gv_0 to i64)
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
store i64 %6, 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 | jas_stream_read_4167 | jas_stream_read | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge2.lcssa.reg2mem = alloca i32
%sv_0.03.reg2mem = alloca i64
%storemerge24.reg2mem = alloca i32
%0 = trunc i64 %arg3 to i32
%1 = icmp slt i32 %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 ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = icmp sgt i32 %0, 0
store i32 0, i32* %storemerge24.reg2mem
store i64 %4, i64* %sv_0.03.reg2mem
store i32 0, i32* %storemerge2.lcssa.reg2mem
br i1 %6, label LBL_3, label LBL_5
LBL_3:
%storemerge24.reload = load i32, i32* %storemerge24.reg2mem
%7 = call i64 @FUNC(i64 %5)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, -1
%10 = icmp eq i1 %9, false
store i32 %storemerge24.reload, i32* %storemerge2.lcssa.reg2mem
br i1 %10, label LBL_4, label LBL_5
LBL_4:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%11 = add i64 %sv_0.03.reload, 1
%12 = trunc i64 %7 to i8
%13 = inttoptr i64 %sv_0.03.reload to i8*
store i8 %12, i8* %13, align 1
%14 = add nuw nsw i32 %storemerge24.reload, 1
%15 = icmp slt i32 %14, %0
store i32 %14, i32* %storemerge24.reg2mem
store i64 %11, i64* %sv_0.03.reg2mem
store i32 %14, i32* %storemerge2.lcssa.reg2mem
br i1 %15, label LBL_3, label LBL_5
LBL_5:
%storemerge2.lcssa.reload = load i32, i32* %storemerge2.lcssa.reg2mem
%storemerge = zext i32 %storemerge2.lcssa.reload to i64
ret i64 %storemerge
uselistorder i32 %storemerge24.reload, { 1, 0 }
uselistorder i32 %0, { 1, 0, 2 }
uselistorder i32* %storemerge24.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.03.reg2mem, { 2, 0, 1 }
uselistorder label LBL_5, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | decrypt_callback_9070 | decrypt_callback | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.12.reg2mem = alloca i64
%sv_1.13.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_0.04.reg2mem = alloca i64
%sv_1.05.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = zext i32 %arg3 to i64
%4 = and i64 %1, 4294967295
%5 = call i64 @FUNC(i64 %4, i64 %3)
%6 = trunc i64 %5 to i32
store i32 %6, i32* %arg1, align 4
%7 = icmp eq i32 %arg3, 128
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_1, label LBL_3
LBL_1:
%9 = icmp ugt i32 %arg3, 47
store i64 %2, i64* %sv_0.0.lcssa.reg2mem
br i1 %9, label LBL_2, label LBL_5
LBL_2:
%10 = udiv i32 %arg3, 48
%11 = ptrtoint i32* %arg1 to i64
%12 = add i64 %11, 8
%13 = inttoptr i64 %12 to i64*
store i32 0, i32* %sv_1.05.reg2mem
store i64 %2, i64* %sv_0.04.reg2mem
br label LBL_4
LBL_3:
%14 = ptrtoint i32* %arg1 to i64
%15 = add i64 %14, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17, i64 %2, i64 %2)
store i64 %18, i64* %rax.0.reg2mem
br label LBL_9
LBL_4:
%sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem
%sv_1.05.reload = load i32, i32* %sv_1.05.reg2mem
%19 = load i64, i64* %13, align 8
%20 = call i64 @FUNC(i64 %19, i64 %sv_0.04.reload, i64 %sv_0.04.reload)
%21 = add nuw nsw i32 %sv_1.05.reload, 1
%22 = add i64 %sv_0.04.reload, 48
%23 = icmp ugt i32 %10, %21
store i32 %21, i32* %sv_1.05.reg2mem
store i64 %22, i64* %sv_0.04.reg2mem
store i64 %22, i64* %sv_0.0.lcssa.reg2mem
br i1 %23, label LBL_4, label LBL_5
LBL_5:
%24 = urem i32 %arg3, 48
%25 = icmp ugt i32 %24, 15
store i64 0, i64* %rax.0.reg2mem
br i1 %25, label LBL_6, label LBL_9
LBL_6:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%26 = udiv i32 %24, 16
%27 = ptrtoint i32* %arg1 to i64
%28 = add i64 %27, 8
%29 = inttoptr i64 %28 to i64*
store i32 0, i32* %sv_1.13.reg2mem
store i64 %sv_0.0.lcssa.reload, i64* %sv_0.12.reg2mem
br label LBL_7
LBL_7:
%sv_0.12.reload = load i64, i64* %sv_0.12.reg2mem
%sv_1.13.reload = load i32, i32* %sv_1.13.reg2mem
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %30, i64 %sv_0.12.reload, i64 %sv_0.12.reload)
%32 = add nuw nsw i32 %sv_1.13.reload, 1
%33 = add i64 %sv_0.12.reload, 16
%34 = icmp ugt i32 %26, %32
store i32 %32, i32* %sv_1.13.reg2mem
store i64 %33, i64* %sv_0.12.reg2mem
br i1 %34, label LBL_7, label LBL_8
LBL_8:
%35 = zext i32 %32 to i64
store i64 %35, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %32, { 1, 0, 2 }
uselistorder i32 %24, { 1, 0 }
uselistorder i64 %2, { 2, 3, 1, 0 }
uselistorder i32* %sv_1.05.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.04.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.13.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.12.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 8, { 0, 2, 1 }
uselistorder i32 48, { 1, 0 }
uselistorder i32 %arg3, { 2, 1, 0, 3, 4 }
uselistorder i32* %arg1, { 1, 0, 2, 3 }
uselistorder label LBL_9, { 1, 0, 2 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | nr_recvmsg_13835 | nr_recvmsg | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%sv_1 = alloca i32, align 4
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 1
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %2)
store i64 1, i64* %rax.0.reg2mem
br label LBL_11
LBL_2:
%sext = mul i64 %arg5, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = urem i64 %7, 2
%9 = and i64 %7, 4294967294
%10 = bitcast i32* %sv_1 to i64*
%11 = call i64 @FUNC(i64 %2, i64 %9, i64 %8, i64* nonnull %10)
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %2)
%15 = load i32, i32* %sv_1, align 4
%16 = zext i32 %15 to i64
store i64 %16, i64* %rax.0.reg2mem
br label LBL_11
LBL_4:
%17 = ptrtoint i64* %arg3 to i64
%18 = call i64 @FUNC(i64 %11)
%19 = inttoptr i64 %11 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp ugt i64 %20, %arg4
store i64 %20, i64* %sv_0.0.reg2mem
br i1 %21, label LBL_5, label LBL_6
LBL_5:
%22 = add i64 %17, 16
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = or i32 %24, 2
store i32 %25, i32* %23, align 4
store i64 %arg4, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%26 = add i64 %17, 24
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = call i64 @FUNC(i64 %11, i64 0, i64 %28, i64 %sv_0.0.reload)
%30 = trunc i64 %29 to i32
store i32 %30, i32* %sv_1, align 4
%31 = icmp slt i32 %30, 0
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_8, label LBL_7
LBL_7:
%33 = call i64 @FUNC(i64 %2, i64 %11)
%34 = call i64 @FUNC(i64 %2)
%35 = load i32, i32* %sv_1, align 4
%36 = zext i32 %35 to i64
store i64 %36, i64* %rax.0.reg2mem
br label LBL_11
LBL_8:
%37 = icmp eq i64* %arg3, null
br i1 %37, label LBL_10, label LBL_9
LBL_9:
%38 = call i64* @memset(i64* nonnull %arg3, i32 0, i32 8)
%39 = bitcast i64* %arg3 to i32*
store i32 3, i32* %39, align 4
%40 = add i64 %17, 4
%41 = call i64 @FUNC(i64 %11, i64 7, i64 %40, i64 7)
br label LBL_10
LBL_10:
%42 = add i64 %17, 8
%43 = inttoptr i64 %42 to i64*
store i64 12, i64* %43, align 8
%44 = call i64 @FUNC(i64 %2, i64 %11)
%45 = call i64 @FUNC(i64 %2)
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 %17, { 1, 0, 2, 3 }
uselistorder i64 %11, { 2, 1, 0, 3, 5, 4, 6 }
uselistorder i64 %7, { 1, 0 }
uselistorder i32* %sv_1, { 2, 1, 0, 3 }
uselistorder i64 %2, { 5, 4, 3, 2, 1, 6, 0, 7 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 7, { 1, 0 }
uselistorder i64 (i64, i64)* @skb_free_datagram, { 1, 0 }
uselistorder i64 (i64)* @release_sock, { 3, 2, 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | unset_dirty_tracking_1336 | unset_dirty_tracking | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
store i64 ptrtoint (i64* @gv_0 to i64), i64* %storemerge1.reg2mem
br label LBL_1
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%0 = add i64 %storemerge1.reload, 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = inttoptr i64 %storemerge1.reload to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4, i64 %2)
%6 = add i64 %storemerge1.reload, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 %8, i64* %storemerge1.reg2mem
br i1 %10, label LBL_1, label LBL_2
LBL_2:
ret i64 %8
uselistorder i64 %8, { 1, 0, 2 }
uselistorder i64 %storemerge1.reload, { 0, 2, 1 }
uselistorder i64* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | parse_arguments_5126 | parse_arguments | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = load i32, i32* @gv_0, align 4
%1 = zext i32 %0 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = icmp eq i64 %2, 0
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = inttoptr i64 %2 to i8*
%5 = load i8, i8* %4, align 1
%6 = icmp eq i8 %5, 0
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %2)
br label LBL_3
LBL_3:
%8 = call i64 @FUNC(i64 ptrtoint ([10 x i8]* @gv_1 to i64))
ret i64 %8
uselistorder i64 (i64)* @set_refuse_options, { 1, 0 }
uselistorder i64 0, { 4, 0, 1, 2, 3 }
} | 0 |
BinRealVul | function_stat_headers_10200 | function_stat_headers | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([91 x i8], [91 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %4, i64 %2, i64 %1)
ret i64 0
uselistorder i64* %0, { 3, 2, 1, 0 }
} | 0 |
reposvul_c_test | brcmf_wiphy_wowl_params_176 | brcmf_wiphy_wowl_params | 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 = call i64 @FUNC(i64 %0, i64 1)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_3, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %0, i64 2)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%10 = or i32 %9, 4
store i32 %10, i32* bitcast (i64* @gv_0 to i32*), align 8
%11 = call i64 @FUNC(i64 %2)
br label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %0, i64 3)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_5, label LBL_4
LBL_4:
%15 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%16 = or i32 %15, 24
store i32 %16, i32* bitcast (i64* @gv_0 to i32*), align 8
br label LBL_5
LBL_5:
store i64 ptrtoint (i64* @gv_0 to i64), i64* %arg1, align 8
ret i64 %1
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 (i64, i64)* @brcmf_feat_is_enabled, { 2, 1, 0 }
uselistorder i64 1, { 1, 0 }
} | 0 |
BinRealVul | r600_cs_parser_relocs_legacy_18909 | r600_cs_parser_relocs_legacy | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, -1
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 1, i64 0, i64 0)
%7 = add i64 %5, 8
%8 = inttoptr i64 %7 to i64*
store i64 %6, i64* %8, align 8
%9 = icmp eq i64 %6, 0
%10 = icmp eq i1 %9, false
%. = select i1 %10, i64 0, i64 4294967284
store i64 %., 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 | sctp_do_peeloff_11586 | sctp_do_peeloff | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%2 = and i64 %arg2, 4294967295
%3 = call i64 @FUNC(i64 %arg1, i64 %2)
%4 = call i64 @FUNC(i64 %arg1)
%5 = icmp eq i64 %3, 0
%6 = icmp eq i1 %5, false
store i64 4294967274, i64* %rax.0.shrunk.reg2mem
br i1 %6, label LBL_1, label LBL_4
LBL_1:
%7 = call i64 @FUNC(i64 %arg1, i64 1)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 4294967274, i64* %rax.0.shrunk.reg2mem
br i1 %10, label LBL_2, label LBL_4
LBL_2:
%11 = and i64 %1, 4294967295
%12 = call i64 @FUNC(i64 %11, i64 2, i64 132, i64* nonnull %sv_0)
%13 = trunc i64 %12 to i32
%14 = icmp slt i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 %12, i64* %rax.0.shrunk.reg2mem
br i1 %15, label LBL_3, label LBL_4
LBL_3:
%16 = load i64, i64* %sv_0, align 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18, i64 %arg1, i64 %3)
%20 = load i64, i64* %sv_0, align 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %arg1, i64 %22, i64 %3, i64 1)
%24 = load i64, i64* %sv_0, align 8
store i64 %24, i64* %arg3, align 8
store i64 %12, i64* %rax.0.shrunk.reg2mem
br label LBL_4
LBL_4:
%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 %12, { 1, 0, 2 }
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64* %sv_0, { 1, 2, 3, 0 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i64 %arg1, { 1, 0, 2, 3, 4 }
uselistorder label LBL_4, { 3, 0, 1, 2 }
} | 1 |
BinRealVul | mspack_fmap_free_6931 | mspack_fmap_free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = inttoptr i64 %arg1 to i64*
call void @free(i64* %1)
store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 0 |
BinRealVul | gen_sync_flags_15193 | gen_sync_flags | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = ptrtoint i32* %arg1 to i64
%4 = add i64 %3, 4
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = zext i32 %6 to i64
%8 = icmp eq i32 %6, %2
store i64 %7, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%10 = and i64 %1, 4294967295
%11 = zext i32 %9 to i64
%12 = call i64 @FUNC(i64 %11, i64 %10)
store i32 %2, i32* %5, align 4
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 i32 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
} | 1 |
BinRealVul | save_files_dirs_17581 | save_files_dirs | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg3 to i32
%1 = inttoptr i64 %arg4 to i8*
%2 = call i32 @strlen(i8* %1)
%3 = add i32 %2, %0
%4 = add i32 %3, 1
%5 = call i64* @malloc(i32 %4)
%6 = ptrtoint i64* %5 to i64
%7 = inttoptr i64 %arg2 to i64*
%8 = call i64* @memcpy(i64* %5, i64* %7, i32 %0)
%sext = mul i64 %arg3, 4294967296
%9 = ashr exact i64 %sext, 32
%10 = add i64 %9, %6
%11 = inttoptr i64 %10 to i64*
%12 = inttoptr i64 %arg4 to i64*
%13 = call i64* @memcpy(i64* %11, i64* %12, i32 %2)
%14 = sext i32 %3 to i64
%15 = add i64 %6, %14
%16 = inttoptr i64 %15 to i8*
store i8 0, i8* %16, align 1
%17 = and i64 %arg5, 61440
%18 = icmp eq i64 %17, 16384
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_2, label LBL_1
LBL_1:
%20 = call i64 @FUNC(i64 %6, i64* nonnull @gv_0)
br label LBL_3
LBL_2:
%21 = call i64 @FUNC(i64 %6, i64* nonnull @gv_1)
br label LBL_3
LBL_3:
call void @free(i64* %5)
ret i64 1
uselistorder i64 %6, { 1, 2, 3, 0 }
uselistorder i32 %2, { 1, 0 }
uselistorder i32 %0, { 1, 0 }
uselistorder i64 (i64, i64*)* @path_list_insert, { 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
} | 1 |
BinRealVul | gen_smul_dual_1309 | gen_smul_dual | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i32
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC()
%3 = call i64 @FUNC()
%4 = trunc i64 %3 to i32
%5 = and i64 %arg1, 4294967295
%6 = and i64 %2, 4294967295
%7 = call i64 @FUNC(i64 %6, i64 %5)
%8 = and i64 %3, 4294967295
%9 = call i64 @FUNC(i64 %8, i64 %1)
%10 = call i64 @FUNC(i64 %6, i64 %6, i32 %4)
%11 = call i64 @FUNC(i64 %8)
%12 = call i64 @FUNC(i64 %5, i64 %5, i64 16)
%13 = call i64 @FUNC(i64 %1, i64 %1, i64 16)
%14 = call i64 @FUNC(i64 %1, i64 %1, i32 %0)
%15 = call i64 @FUNC(i64 %5, i64 %6)
%16 = call i64 @FUNC(i64 %6)
ret i64 %16
uselistorder i64 %6, { 0, 1, 3, 2, 4 }
uselistorder i64 %5, { 0, 2, 1, 3 }
uselistorder i64 %1, { 2, 3, 0, 1, 4 }
uselistorder i64 (i64, i64, i64)* @tcg_gen_sari_i32, { 1, 0 }
uselistorder i64 (i64)* @tcg_temp_free_i32, { 1, 0 }
uselistorder i64 (i64, i64, i32)* @tcg_gen_mul_i32, { 1, 0 }
uselistorder i64 (i64, i64)* @tcg_gen_ext16s_i32, { 1, 0 }
uselistorder i64 ()* @tcg_temp_new_i32, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 3, 0, 4, 5, 6 }
} | 0 |
BinRealVul | vbe_update_vgaregs_9907 | vbe_update_vgaregs | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_5, label LBL_1
LBL_1:
%6 = trunc i64 %1 to i32
%7 = or i32 %6, 14
%8 = bitcast i64* %arg1 to i32*
store i32 %7, i32* %8, align 4
%9 = add i64 %2, 72
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = or i32 %11, 3
store i32 %12, i32* %10, align 4
%13 = add i64 %2, 192
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = ashr i32 %15, 3
%17 = add i64 %2, 76
%18 = inttoptr i64 %17 to i32*
store i32 %16, i32* %18, align 4
%19 = add i64 %2, 256
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = ashr i32 %21, 3
%23 = add nsw i32 %22, -1
%24 = add i64 %2, 80
%25 = inttoptr i64 %24 to i32*
store i32 %23, i32* %25, align 4
%26 = add i64 %2, 260
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = add i32 %28, -1
%30 = add i64 %2, 84
%31 = inttoptr i64 %30 to i32*
store i32 %29, i32* %31, align 4
%32 = add i64 %2, 88
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = and i32 %34, -67
%36 = udiv i32 %29, 128
%37 = and i32 %36, 2
%38 = or i32 %35, %37
%39 = udiv i32 %29, 8
%40 = and i32 %39, 64
%41 = or i32 %38, %40
store i32 %41, i32* %33, align 4
%42 = add i64 %2, 92
%43 = inttoptr i64 %42 to i32*
store i32 255, i32* %43, align 4
%44 = load i32, i32* %33, align 4
%45 = or i32 %44, 16
store i32 %45, i32* %33, align 4
%46 = add i64 %2, 96
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = or i32 %48, 64
store i32 %49, i32* %47, align 4
%50 = add i64 %2, 264
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = icmp eq i32 %52, 4
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_3, label LBL_2
LBL_2:
%55 = add i64 %2, 164
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = and i32 %57, -9
store i32 %58, i32* %56, align 4
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_4
LBL_3:
%59 = add i64 %2, 168
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = or i32 %61, 12
store i32 %62, i32* %60, align 4
%63 = add i64 %2, 172
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = or i32 %65, 13
store i32 %66, i32* %64, align 4
store i32 64, i32* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%67 = add i64 %2, 4
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = and i32 %69, -97
%71 = or i32 %70, %sv_0.0.reload
store i32 %71, i32* %68, align 4
%72 = load i32, i32* %47, align 4
%73 = and i32 %72, -160
store i32 %73, i32* %47, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %47, { 1, 0, 2, 3 }
uselistorder i32* %33, { 1, 0, 2, 3 }
uselistorder i64 %2, { 0, 2, 3, 4, 1, 5, 6, 7, 8, 10, 9, 12, 11, 14, 13, 15, 16 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | get_object_13397 | get_object | define i64 @FUNC(i64 %arg1, i64 %arg2, i32* %arg3, i64* %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i8*
%sv_1.0.reg2mem = alloca i64
%sv_2.09.reg2mem = alloca i32
%sv_3.014.reg2mem = alloca i32
%sv_4.115.reg2mem = alloca i32
%sv_0.116.reg2mem = alloca i8*
%sv_2.017.reg2mem = alloca i32
%.reg2mem47 = alloca i64
%.reg2mem45 = alloca i32
%sv_0.0.reg2mem = alloca i8*
%sv_4.0.reg2mem = alloca i32
%storemerge621.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg4, null
br i1 %2, label LBL_2, label LBL_1
LBL_1:
store i64 0, i64* %arg4, align 8
br label LBL_2
LBL_2:
%3 = icmp eq i64* %arg5, null
br i1 %3, label LBL_4, label LBL_3
LBL_3:
%4 = bitcast i64* %arg5 to i32*
store i32 0, i32* %4, align 4
br label LBL_4
LBL_4:
%5 = trunc i64 %1 to i32
%6 = inttoptr i64 %arg1 to %_IO_FILE*
%7 = call i32 @ftell(%_IO_FILE* %6)
%8 = icmp eq i32 %5, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %8, label LBL_21, label LBL_5
LBL_5:
%9 = ptrtoint i32* %arg3 to i64
%10 = add i64 %9, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = trunc i64 %arg2 to i32
%14 = and i64 %1, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge621.reg2mem
br label LBL_6
LBL_6:
%.reload = load i64, i64* %.reg2mem
%15 = mul i64 %.reload, 16
%16 = add i64 %15, %12
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %18, %13
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_7, label LBL_8
LBL_7:
%storemerge621.reload = load i32, i32* %storemerge621.reg2mem
%21 = add i32 %storemerge621.reload, 1
%22 = sext i32 %21 to i64
%23 = icmp sgt i64 %14, %22
store i64 %22, i64* %.reg2mem
store i32 %21, i32* %storemerge621.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %23, label LBL_6, label LBL_21
LBL_8:
%24 = icmp eq i64 %16, 0
%25 = icmp eq i1 %24, false
store i64 0, i64* %storemerge.reg2mem
br i1 %25, label LBL_9, label LBL_21
LBL_9:
%26 = add i64 %16, 8
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = trunc i64 %28 to i32
%30 = call i32 @fseek(%_IO_FILE* %6, i32 %29, i32 0)
%31 = load i32, i32* inttoptr (i64 4202624 to i32*), align 128
%32 = sext i32 %31 to i64
%33 = call i64 @FUNC(i64 %32)
%34 = inttoptr i64 %33 to i8*
%35 = inttoptr i64 %33 to i64*
%36 = call i32 @fread(i64* %35, i32 1, i32 255, %_IO_FILE* %6)
%37 = icmp eq i32 %36, 0
store i32 %36, i32* %.reg2mem45
store i64 %33, i64* %.reg2mem47
store i32 0, i32* %sv_2.017.reg2mem
store i8* %34, i8** %sv_0.116.reg2mem
store i32 1, i32* %sv_4.115.reg2mem
store i32 0, i32* %sv_3.014.reg2mem
store i32 0, i32* %sv_2.09.reg2mem
store i64 0, i64* %sv_1.0.reg2mem
store i8* %34, i8** %sv_0.2.reg2mem
br i1 %37, label LBL_16, label LBL_15
LBL_10:
%sv_3.014.reload = load i32, i32* %sv_3.014.reg2mem
%sv_4.115.reload = load i32, i32* %sv_4.115.reg2mem
%.reload48 = load i64, i64* %.reg2mem47
%.reload46 = load i32, i32* %.reg2mem45
%38 = add i32 %sv_3.014.reload, %.reload46
%39 = sext i32 %38 to i64
%40 = add i64 %.reload48, %39
%41 = inttoptr i64 %40 to i8*
store i8 0, i8* %41, align 1
%42 = add i32 %38, 256
%43 = mul i32 %sv_4.115.reload, 256
%44 = icmp ult i32 %42, %43
store i32 %sv_4.115.reload, i32* %sv_4.0.reg2mem
store i8* %sv_0.116.reload, i8** %sv_0.0.reg2mem
br i1 %44, label LBL_12, label LBL_11
LBL_11:
%45 = add i32 %sv_4.115.reload, 1
%46 = mul i32 %45, 256
%47 = bitcast i8* %sv_0.116.reload to i64*
%48 = call i64* @realloc(i64* %47, i32 %46)
%49 = bitcast i64* %48 to i8*
store i32 %45, i32* %sv_4.0.reg2mem
store i8* %49, i8** %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%50 = icmp slt i32 %sv_3.014.reload, 0
%51 = icmp eq i1 %50, false
%52 = sext i32 %sv_3.014.reload to i64
%53 = select i1 %51, i64 %52, i64 0
%54 = ptrtoint i8* %sv_0.0.reload to i64
%55 = add i64 %53, %54
%56 = inttoptr i64 %55 to i8*
%57 = call i8* @strstr(i8* %56, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0))
%58 = icmp eq i8* %57, null
br i1 %58, label LBL_14, label LBL_13
LBL_13:
%59 = ptrtoint i8* %57 to i64
%60 = add i64 %59, 7
%61 = inttoptr i64 %60 to i8*
store i8 0, i8* %61, align 1
%62 = call i8* @strstr(i8* %56, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0))
%63 = ptrtoint i8* %62 to i64
%64 = sub i64 7, %54
%65 = add i64 %64, %63
store i32 %sv_2.017.reload, i32* %sv_2.09.reg2mem
store i64 %65, i64* %sv_1.0.reg2mem
store i8* %sv_0.0.reload, i8** %sv_0.2.reg2mem
br label LBL_16
LBL_14:
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%66 = call i8* @strstr(i8* %sv_0.0.reload, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0))
%67 = icmp eq i8* %66, null
%spec.select7 = select i1 %67, i32 %sv_2.017.reload, i32 1
%68 = add i64 %54, %39
%69 = inttoptr i64 %68 to i64*
%70 = call i32 @fread(i64* %69, i32 1, i32 255, %_IO_FILE* %6)
%71 = icmp eq i32 %70, 0
store i32 %70, i32* %.reg2mem45
store i64 %54, i64* %.reg2mem47
store i32 %spec.select7, i32* %sv_2.017.reg2mem
store i8* %sv_0.0.reload, i8** %sv_0.116.reg2mem
store i32 %sv_4.0.reload, i32* %sv_4.115.reg2mem
store i32 %38, i32* %sv_3.014.reg2mem
store i32 %spec.select7, i32* %sv_2.09.reg2mem
store i64 0, i64* %sv_1.0.reg2mem
store i8* %sv_0.0.reload, i8** %sv_0.2.reg2mem
br i1 %71, label LBL_16, label LBL_15
LBL_15:
%sv_0.116.reload = load i8*, i8** %sv_0.116.reg2mem
%sv_2.017.reload = load i32, i32* %sv_2.017.reg2mem
%72 = call i32 @ferror(%_IO_FILE* %6)
%73 = icmp eq i32 %72, 0
store i32 %sv_2.017.reload, i32* %sv_2.09.reg2mem
store i64 0, i64* %sv_1.0.reg2mem
store i8* %sv_0.116.reload, i8** %sv_0.2.reg2mem
br i1 %73, label LBL_10, label LBL_16
LBL_16:
%sv_0.2.reload = load i8*, i8** %sv_0.2.reg2mem
%sv_2.09.reload = load i32, i32* %sv_2.09.reg2mem
call void @clearerr(%_IO_FILE* %6)
%74 = call i32 @fseek(%_IO_FILE* %6, i32 %7, i32 0)
br i1 %2, label LBL_18, label LBL_17
LBL_17:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
store i64 %sv_1.0.reload, i64* %arg4, align 8
br label LBL_18
LBL_18:
br i1 %3, label LBL_20, label LBL_19
LBL_19:
%75 = bitcast i64* %arg5 to i32*
store i32 %sv_2.09.reload, i32* %75, align 4
br label LBL_20
LBL_20:
%76 = ptrtoint i8* %sv_0.2.reload to i64
store i64 %76, i64* %storemerge.reg2mem
br label LBL_21
LBL_21:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i8* %sv_0.116.reload, { 0, 2, 1 }
uselistorder i64 %54, { 0, 3, 1, 2 }
uselistorder i8* %sv_0.0.reload, { 0, 2, 4, 1, 3 }
uselistorder i64 %39, { 1, 0 }
uselistorder i32 %sv_4.115.reload, { 0, 2, 1 }
uselistorder i64 %16, { 1, 0, 2 }
uselistorder %_IO_FILE* %6, { 3, 2, 1, 4, 0, 5, 6 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge621.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem45, { 2, 0, 1 }
uselistorder i64* %.reg2mem47, { 2, 0, 1 }
uselistorder i32* %sv_2.017.reg2mem, { 0, 2, 1 }
uselistorder i8** %sv_0.116.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_4.115.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_3.014.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.09.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i8** %sv_0.2.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i8* (i8*, i8*)* @strstr, { 2, 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fread, { 1, 0 }
uselistorder i32 255, { 1, 0 }
uselistorder i32 (%_IO_FILE*, i32, i32)* @fseek, { 1, 0 }
uselistorder i32 0, { 6, 9, 10, 8, 0, 1, 2, 5, 7, 3, 4, 11 }
uselistorder label LBL_21, { 3, 2, 0, 1 }
uselistorder label LBL_16, { 1, 0, 3, 2 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | bdrv_eject_2385 | bdrv_eject | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64*
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
store i64 4294967280, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_5
LBL_1:
%5 = icmp eq i64* %arg1, null
%6 = and i64 %0, 4294967295
%7 = inttoptr i64 %6 to i64*
%storemerge3 = select i1 %5, i64* inttoptr (i32 -95 to i64*), i64* %7
%8 = icmp eq i64* %storemerge3, inttoptr (i64 4294967201 to i64*)
%9 = icmp eq i1 %8, false
store i64* %storemerge3, i64** %sv_0.0.reg2mem
br i1 %9, label LBL_4, label LBL_2
LBL_2:
%10 = trunc i64 %arg2 to i32
%11 = icmp eq i32 %10, 0
store i64* null, i64** %sv_0.0.reg2mem
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %0)
store i64* null, i64** %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64*, i64** %sv_0.0.reg2mem
%13 = ptrtoint i64* %sv_0.0.reload to i64
%14 = and i64 %13, 4294967295
store i64 %14, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64** %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* null, { 1, 0, 2 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 0 |
BinRealVul | migrate_vma_pages_5994 | migrate_vma_pages | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%storemerge.in.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i64
%sv_0.22.reg2mem = alloca i32
%sv_1.05.reg2mem = alloca i64
%sv_2.06.reg2mem = alloca i64
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%0 = icmp eq i64* %arg1, null
store i64 0, i64* %rax.0.reg2mem
br i1 %0, label LBL_23, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = ptrtoint i64* %sv_4 to i64
%3 = add i64 %1, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = add i64 %1, 32
%7 = inttoptr i64 %6 to i64*
%8 = add i64 %1, 24
%9 = inttoptr i64 %8 to i64*
%10 = add i64 %1, 40
%11 = inttoptr i64 %10 to i64*
%12 = add i64 %1, 56
%13 = inttoptr i64 %12 to i64*
%14 = add i64 %1, 16
%15 = inttoptr i64 %14 to i64*
%16 = add i64 %2, -8
%17 = inttoptr i64 %16 to i64*
%18 = add i64 %2, -16
%19 = inttoptr i64 %18 to i64*
%20 = add i64 %1, 48
%21 = inttoptr i64 %20 to i64*
store i64 %5, i64* %sv_2.06.reg2mem
store i64 0, i64* %sv_1.05.reg2mem
store i32 0, i32* %sv_0.22.reg2mem
br label LBL_2
LBL_2:
%sv_0.22.reload = load i32, i32* %sv_0.22.reg2mem
%sv_1.05.reload = load i64, i64* %sv_1.05.reg2mem
%sv_2.06.reload = load i64, i64* %sv_2.06.reg2mem
%22 = load i64, i64* %7, align 8
%23 = mul i64 %sv_1.05.reload, 8
%24 = add i64 %22, %23
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = call i64 @FUNC(i64 %26)
%28 = load i64, i64* %9, align 8
%29 = add i64 %28, %23
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i64 @FUNC(i64 %31)
%33 = icmp eq i64 %27, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_4, label LBL_3
LBL_3:
%35 = load i64, i64* %9, align 8
%36 = add i64 %35, %23
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = and i64 %38, -2
store i64 %39, i64* %37, align 8
store i32 %sv_0.22.reload, i32* %sv_0.1.reg2mem
br label LBL_20
LBL_4:
%40 = icmp eq i64 %32, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_9, label LBL_5
LBL_5:
%42 = load i64, i64* %11, align 8
%43 = icmp eq i64 %42, 0
%44 = zext i1 %43 to i64
%45 = call i64 @FUNC(i64 %44)
%46 = load i64, i64* %9, align 8
%47 = add i64 %46, %23
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = urem i64 %49, 2
%51 = icmp eq i64 %50, 0
store i32 %sv_0.22.reload, i32* %sv_0.1.reg2mem
br i1 %51, label LBL_20, label LBL_6
LBL_6:
%52 = trunc i32 %sv_0.22.reload to i8
%53 = icmp eq i8 %52, 1
store i64 %47, i64* %.pre-phi.reg2mem
store i32 %sv_0.22.reload, i32* %sv_0.0.reg2mem
br i1 %53, label LBL_8, label LBL_7
LBL_7:
%54 = load i64, i64* %13, align 8
%55 = load i64, i64* %15, align 8
%56 = load i64, i64* %11, align 8
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
store i64 %54, i64* %17, align 8
store i64 %55, i64* %19, align 8
%59 = call i64 @FUNC(i64* nonnull %sv_3, i64 1, i64 0, i64 %56, i64 %58, i64 %sv_2.06.reload)
%60 = call i64 @FUNC(i64* nonnull %sv_3)
%.pre = load i64, i64* %9, align 8
%.pre10 = add i64 %.pre, %23
store i64 %.pre10, i64* %.pre-phi.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%61 = call i64 @FUNC(i64 %1, i64 %sv_2.06.reload, i64 %27, i64 %.pre-phi.reload)
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_20
LBL_9:
%62 = call i64 @FUNC(i64 %32)
store i64 %62, i64* %sv_3, align 8
%63 = call i64 @FUNC(i64 %27)
%64 = trunc i64 %63 to i8
%65 = icmp eq i8 %64, 0
%66 = icmp eq i1 %65, false
br i1 %66, label LBL_11, label LBL_10
LBL_10:
%67 = call i64 @FUNC(i64 %27)
%68 = trunc i64 %67 to i8
%69 = icmp eq i8 %68, 0
br i1 %69, label LBL_13, label LBL_11
LBL_11:
%70 = load i64, i64* %sv_3, align 8
%71 = icmp eq i64 %70, 0
br i1 %71, label LBL_15, label LBL_12
LBL_12:
%72 = load i64, i64* %9, align 8
%73 = add i64 %72, %23
%74 = inttoptr i64 %73 to i64*
%75 = load i64, i64* %74, align 8
%76 = and i64 %75, -2
store i64 %76, i64* %74, align 8
store i32 %sv_0.22.reload, i32* %sv_0.1.reg2mem
br label LBL_20
LBL_13:
%77 = call i64 @FUNC(i64 %27)
%78 = trunc i64 %77 to i8
%79 = icmp eq i8 %78, 0
br i1 %79, label LBL_15, label LBL_14
LBL_14:
%80 = load i64, i64* %9, align 8
%81 = add i64 %80, %23
%82 = inttoptr i64 %81 to i64*
%83 = load i64, i64* %82, align 8
%84 = and i64 %83, -2
store i64 %84, i64* %82, align 8
store i32 %sv_0.22.reload, i32* %sv_0.1.reg2mem
br label LBL_20
LBL_15:
%85 = load i64, i64* %21, align 8
%86 = icmp eq i64 %32, %85
%87 = icmp eq i1 %86, false
%88 = call i64 @FUNC(i64 %32)
%89 = call i64 @FUNC(i64 %27)
%90 = load i64, i64* %sv_3, align 8
br i1 %87, label LBL_17, label LBL_16
LBL_16:
%91 = call i64 @FUNC(i64 %90, i64 %89, i64 %88, i64 0, i64 1)
store i64 %91, i64* %storemerge.in.reg2mem
br label LBL_18
LBL_17:
%92 = call i64 @FUNC(i64 %90, i64 %89, i64 %88, i64 0)
store i64 %92, i64* %storemerge.in.reg2mem
br label LBL_18
LBL_18:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = trunc i64 %storemerge.in.reload to i32
%93 = icmp eq i32 %storemerge, 0
store i32 %sv_0.22.reload, i32* %sv_0.1.reg2mem
br i1 %93, label LBL_20, label LBL_19
LBL_19:
%94 = load i64, i64* %9, align 8
%95 = add i64 %94, %23
%96 = inttoptr i64 %95 to i64*
%97 = load i64, i64* %96, align 8
%98 = and i64 %97, -2
store i64 %98, i64* %96, align 8
store i32 %sv_0.22.reload, i32* %sv_0.1.reg2mem
br label LBL_20
LBL_20:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%99 = add i64 %sv_2.06.reload, 4096
%100 = add nuw i64 %sv_1.05.reload, 1
%101 = icmp ult i64 %100, %1
store i64 %99, i64* %sv_2.06.reg2mem
store i64 %100, i64* %sv_1.05.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.22.reg2mem
br i1 %101, label LBL_2, label LBL_21
LBL_21:
%102 = trunc i32 %sv_0.1.reload to i8
%103 = icmp eq i8 %102, 0
store i64 %100, i64* %rax.0.reg2mem
br i1 %103, label LBL_23, label LBL_22
LBL_22:
%104 = call i64 @FUNC(i64* nonnull %sv_3)
store i64 %104, i64* %rax.0.reg2mem
br label LBL_23
LBL_23:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %90, { 1, 0 }
uselistorder i64 %89, { 1, 0 }
uselistorder i64 %88, { 1, 0 }
uselistorder i64 %32, { 1, 0, 2, 3 }
uselistorder i64 %27, { 3, 1, 2, 4, 0, 5 }
uselistorder i64 %23, { 7, 5, 6, 4, 3, 2, 1, 0 }
uselistorder i64 %sv_2.06.reload, { 2, 1, 0 }
uselistorder i32 %sv_0.22.reload, { 4, 5, 2, 3, 6, 7, 1, 0 }
uselistorder i64* %9, { 4, 3, 5, 0, 2, 1, 6 }
uselistorder i64 %1, { 7, 2, 4, 1, 0, 3, 5, 6, 8 }
uselistorder i64* %sv_3, { 0, 3, 4, 5, 1, 2 }
uselistorder i64* %sv_2.06.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.05.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.22.reg2mem, { 1, 0, 2 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 6, 7, 4, 5, 2, 3, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 (i64)* @page_folio, { 1, 0 }
uselistorder i8 0, { 4, 1, 2, 3, 0 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder i64 (i64)* @migrate_pfn_to_page, { 1, 0 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_23, { 1, 2, 0 }
uselistorder label LBL_20, { 1, 2, 3, 4, 5, 0, 6 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ssl3_do_uncompress_9171 | ssl3_do_uncompress | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
ret i64 1
} | 0 |
BinRealVul | si21_writeregs_18351 | si21_writeregs | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%4 = trunc i64 %arg4 to i32
%5 = trunc i64 %arg2 to i8
%6 = add i64 %3, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
store i32 %10, i32* %sv_1, align 4
%11 = ptrtoint i64* %sv_0 to i64
%12 = bitcast i64* %sv_0 to i8*
store i8 %5, i8* %12, align 8
%13 = or i64 %11, 1
%14 = inttoptr i64 %13 to i64*
%15 = call i64* @memcpy(i64* nonnull %14, i64* %arg3, i32 %4)
%16 = call i64 @FUNC(i64 %13, i32* nonnull %sv_1, i64 1)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 1
br i1 %18, label LBL_2, label LBL_1
LBL_1:
%19 = urem i64 %arg2, 256
%20 = and i64 %16, 4294967295
%21 = urem i64 %2, 256
%22 = call i64 @FUNC(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i64 %19, i64 %21, i64 %20, i64 %1)
br label LBL_2
LBL_2:
%. = select i1 %18, i64 0, i64 4294967175
ret i64 %.
uselistorder i64 %13, { 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 1, { 2, 1, 0 }
} | 1 |
BinRealVul | output_12576 | output | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rsi.27.reg2mem = alloca i64
%rsi.1.lcssa.reg2mem = alloca i64
%rsi.18.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg1, 4294967296
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = sext i32 %3 to i64
%5 = mul i64 %4, 8
%6 = add i64 %5, ptrtoint (i64* @gv_0 to i64)
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = and i64 %8, %0
store i64 %9, i64* %arg2, align 8
%10 = load i32, i32* %2, align 4
%11 = icmp slt i32 %10, 1
%12 = ashr exact i64 %sext, 32
store i64 %12, i64* %storemerge.reg2mem
store i64 %0, i64* %rsi.0.reg2mem
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%13 = urem i32 %10, 64
%14 = zext i32 %13 to i64
%rdx.0 = shl i64 %12, %14
%15 = or i64 %rdx.0, %0
store i64 %15, i64* %storemerge.reg2mem
store i64 %15, i64* %rsi.0.reg2mem
br label LBL_2
LBL_2:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%storemerge.reload = load i64, i64* %storemerge.reg2mem
store i64 %storemerge.reload, i64* %arg2, align 8
%16 = load i32, i32* %2, align 4
%17 = add i64 %0, 12
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = add i32 %19, %16
store i32 %20, i32* %2, align 4
%21 = icmp sgt i32 %20, 7
store i64 %rsi.0.reload, i64* %rsi.1.lcssa.reg2mem
br i1 %21, label LBL_3, label LBL_5
LBL_3:
%22 = ashr i64 %0, 8
store i64 %rsi.0.reload, i64* %rsi.18.reg2mem
br label LBL_4
LBL_4:
%rsi.18.reload = load i64, i64* %rsi.18.reg2mem
%23 = urem i64 %rsi.18.reload, 256
%24 = call i64 @FUNC(i64 %23, i64 %0)
store i64 %22, i64* %arg2, align 8
%25 = load i32, i32* %2, align 4
%26 = add i32 %25, -8
store i32 %26, i32* %2, align 4
%27 = icmp sgt i32 %26, 7
store i64 %0, i64* %rsi.18.reg2mem
store i64 %0, i64* %rsi.1.lcssa.reg2mem
br i1 %27, label LBL_4, label LBL_5
LBL_5:
%rsi.1.lcssa.reload = load i64, i64* %rsi.1.lcssa.reg2mem
%28 = add i64 %0, 24
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = add i64 %0, 20
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp ugt i32 %30, %33
%.pre = add i64 %0, 28
%.pre9 = inttoptr i64 %.pre to i32*
%.pr = load i32, i32* %.pre9, align 4
%35 = icmp eq i32 %.pr, 0
br i1 %34, label LBL_7, label LBL_6
LBL_6:
br i1 %35, label LBL_12, label LBL_8
LBL_7:
br i1 %35, label LBL_9, label LBL_8
LBL_8:
%36 = add i64 %0, 16
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
store i32 %38, i32* %18, align 4
%39 = urem i32 %38, 32
%notmask = shl nsw i32 -1, %39
%40 = sub i32 0, %notmask
%41 = sub i32 %40, 1
store i32 %41, i32* %32, align 4
store i32 0, i32* %.pre9, align 4
br label LBL_12
LBL_9:
%42 = load i32, i32* %18, align 4
%43 = add i32 %42, 1
store i32 %43, i32* %18, align 4
%44 = icmp eq i32 %43, 12
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_11, label LBL_10
LBL_10:
store i32 4095, i32* %32, align 4
br label LBL_12
LBL_11:
%46 = urem i32 %43, 32
%notmask12 = shl nsw i32 -1, %46
%47 = sub i32 0, %notmask12
%48 = sub i32 %47, 1
store i32 %48, i32* %32, align 4
br label LBL_12
LBL_12:
%49 = add i64 %0, 32
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = zext i32 %51 to i64
%53 = trunc i64 %arg1 to i32
%54 = icmp eq i32 %51, %53
%55 = icmp eq i1 %54, false
store i64 %52, i64* %rax.0.reg2mem
br i1 %55, label LBL_17, label LBL_13
LBL_13:
%56 = load i32, i32* %2, align 4
%57 = icmp eq i32 %56, 0
%58 = icmp slt i32 %56, 0
%59 = icmp eq i1 %58, false
%60 = icmp eq i1 %57, false
%61 = icmp eq i1 %59, %60
br i1 %61, label LBL_14, label LBL_16
LBL_14:
%62 = ashr i64 %0, 8
store i64 %rsi.1.lcssa.reload, i64* %rsi.27.reg2mem
br label LBL_15
LBL_15:
%rsi.27.reload = load i64, i64* %rsi.27.reg2mem
%63 = urem i64 %rsi.27.reload, 256
%64 = call i64 @FUNC(i64 %63, i64 %0)
store i64 %62, i64* %arg2, align 8
%65 = load i32, i32* %2, align 4
%66 = add i32 %65, -8
store i32 %66, i32* %2, align 4
%67 = icmp eq i32 %66, 0
%68 = icmp slt i32 %66, 0
%69 = icmp eq i1 %68, false
%70 = icmp eq i1 %67, false
%71 = icmp eq i1 %69, %70
store i64 %0, i64* %rsi.27.reg2mem
br i1 %71, label LBL_15, label LBL_16
LBL_16:
%72 = call i64 @FUNC(i64 %0)
store i64 %72, 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 i1 %35, { 1, 0 }
uselistorder i32* %32, { 2, 1, 0, 3 }
uselistorder i32 %26, { 1, 0 }
uselistorder i32* %18, { 2, 1, 0, 3 }
uselistorder i64 %rsi.0.reload, { 1, 0 }
uselistorder i64 %12, { 1, 0 }
uselistorder i32* %2, { 4, 3, 1, 2, 5, 0, 6, 7, 8 }
uselistorder i64 %0, { 9, 0, 8, 7, 10, 11, 6, 14, 15, 1, 2, 13, 12, 16, 4, 3, 5, 17 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rsi.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rsi.18.reg2mem, { 1, 0, 2 }
uselistorder i64* %rsi.27.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 3, 2, 0, 1, 4, 5 }
uselistorder i32 0, { 4, 5, 2, 3, 0, 6, 1, 7 }
uselistorder i32 -8, { 1, 0 }
uselistorder i64 (i64, i64)* @char_out, { 1, 0 }
uselistorder i32 7, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64* %arg2, { 2, 1, 0, 3, 4 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | svc_parse_slice_19154 | svc_parse_slice | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0))
%4 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0))
%5 = trunc i64 %4 to i32
%6 = bitcast i64* %arg3 to i32*
store i32 %5, i32* %6, align 4
%7 = trunc i64 %1 to i32
%8 = icmp slt i32 %7, 10
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %8, label LBL_1, label LBL_21
LBL_1:
%9 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%10 = trunc i64 %9 to i32
%11 = icmp slt i32 %10, 256
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %11, label LBL_2, label LBL_21
LBL_2:
%12 = ptrtoint i64* %arg3 to i64
%13 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %9, 4294967296
%14 = ashr exact i64 %sext, 29
%15 = add i64 %14, %13
%16 = add i64 %12, 8
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
%18 = inttoptr i64 %15 to i32*
store i32 %10, i32* %18, align 4
%19 = load i64, i64* %17, align 8
%20 = add i64 %19, 4
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %24, label LBL_3, label LBL_21
LBL_3:
%25 = add i64 %19, 8
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = sext i32 %27 to i64
%29 = mul i64 %28, 8
%30 = add i64 %13, 2048
%31 = add i64 %30, %29
%32 = add i64 %12, 16
%33 = inttoptr i64 %32 to i64*
store i64 %31, i64* %33, align 8
%34 = inttoptr i64 %31 to i32*
%35 = load i32, i32* %34, align 4
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %37, label LBL_4, label LBL_21
LBL_4:
%38 = zext i32 %35 to i64
%39 = call i64 @FUNC(i64 %2, i64 %38, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_3, i64 0, i64 0))
%40 = trunc i64 %39 to i32
%41 = add i64 %12, 24
%42 = inttoptr i64 %41 to i32*
store i32 %40, i32* %42, align 4
%43 = add i64 %12, 28
%44 = inttoptr i64 %43 to i32*
store i32 0, i32* %44, align 4
%45 = load i64, i64* %33, align 8
%46 = add i64 %45, 4
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = icmp eq i32 %48, 0
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_7, label LBL_5
LBL_5:
%51 = call i64 @FUNC(i64 %2, i64 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_4, i64 0, i64 0))
%52 = trunc i64 %51 to i32
store i32 %52, i32* %44, align 4
%53 = icmp eq i32 %52, 0
br i1 %53, label LBL_7, label LBL_6
LBL_6:
%54 = call i64 @FUNC(i64 %2, i64 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_5, i64 0, i64 0))
%55 = trunc i64 %54 to i32
%56 = add i64 %12, 32
%57 = inttoptr i64 %56 to i32*
store i32 %55, i32* %57, align 4
br label LBL_7
LBL_7:
%58 = add i64 %12, 56
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = icmp eq i32 %60, 5
br i1 %61, label LBL_9, label LBL_8
LBL_8:
%62 = add i64 %12, 60
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = icmp eq i32 %64, 0
br i1 %65, label LBL_10, label LBL_9
LBL_9:
%66 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_6, i64 0, i64 0))
%67 = trunc i64 %66 to i32
%68 = add i64 %12, 36
%69 = inttoptr i64 %68 to i32*
store i32 %67, i32* %69, align 4
br label LBL_10
LBL_10:
%70 = load i64, i64* %33, align 8
%71 = add i64 %70, 8
%72 = inttoptr i64 %71 to i32*
%73 = load i32, i32* %72, align 4
%74 = icmp eq i32 %73, 0
%75 = icmp eq i1 %74, false
br i1 %75, label LBL_14, label LBL_11
LBL_11:
%76 = add i64 %70, 12
%77 = inttoptr i64 %76 to i32*
%78 = load i32, i32* %77, align 4
%79 = zext i32 %78 to i64
%80 = call i64 @FUNC(i64 %2, i64 %79, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_7, i64 0, i64 0))
%81 = trunc i64 %80 to i32
%82 = add i64 %12, 40
%83 = inttoptr i64 %82 to i32*
store i32 %81, i32* %83, align 4
%84 = load i64, i64* %17, align 8
%85 = add i64 %84, 12
%86 = inttoptr i64 %85 to i32*
%87 = load i32, i32* %86, align 4
%88 = icmp eq i32 %87, 0
br i1 %88, label LBL_19, label LBL_12
LBL_12:
%89 = load i32, i32* %44, align 4
%90 = icmp eq i32 %89, 0
%91 = icmp eq i1 %90, false
br i1 %91, label LBL_19, label LBL_13
LBL_13:
%92 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_8, i64 0, i64 0))
%93 = trunc i64 %92 to i32
%94 = add i64 %12, 64
%95 = inttoptr i64 %94 to i32*
store i32 %93, i32* %95, align 4
br label LBL_19
LBL_14:
%96 = icmp eq i32 %73, 1
%97 = icmp eq i1 %96, false
br i1 %97, label LBL_19, label LBL_15
LBL_15:
%98 = add i64 %70, 16
%99 = inttoptr i64 %98 to i32*
%100 = load i32, i32* %99, align 4
%101 = icmp eq i32 %100, 0
%102 = icmp eq i1 %101, false
br i1 %102, label LBL_19, label LBL_16
LBL_16:
%103 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_9, i64 0, i64 0))
%104 = trunc i64 %103 to i32
%105 = add i64 %12, 44
%106 = inttoptr i64 %105 to i32*
store i32 %104, i32* %106, align 4
%107 = load i64, i64* %17, align 8
%108 = add i64 %107, 12
%109 = inttoptr i64 %108 to i32*
%110 = load i32, i32* %109, align 4
%111 = icmp eq i32 %110, 1
%112 = icmp eq i1 %111, false
br i1 %112, label LBL_19, label LBL_17
LBL_17:
%113 = load i32, i32* %44, align 4
%114 = icmp eq i32 %113, 0
%115 = icmp eq i1 %114, false
br i1 %115, label LBL_19, label LBL_18
LBL_18:
%116 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_10, i64 0, i64 0))
%117 = trunc i64 %116 to i32
%118 = add i64 %12, 48
%119 = inttoptr i64 %118 to i32*
store i32 %117, i32* %119, align 4
br label LBL_19
LBL_19:
%120 = load i64, i64* %17, align 8
%121 = add i64 %120, 16
%122 = inttoptr i64 %121 to i32*
%123 = load i32, i32* %122, align 4
%124 = icmp eq i32 %123, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %124, label LBL_21, label LBL_20
LBL_20:
%125 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_11, i64 0, i64 0))
%126 = trunc i64 %125 to i32
%127 = add i64 %12, 52
%128 = inttoptr i64 %127 to i32*
store i32 %126, i32* %128, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_21:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %44, { 2, 1, 0, 3 }
uselistorder i64* %17, { 1, 2, 0, 3, 4 }
uselistorder i64 %13, { 1, 0 }
uselistorder i64 %12, { 5, 3, 4, 1, 2, 6, 8, 7, 0, 9, 10, 11, 12 }
uselistorder i64 %2, { 6, 4, 5, 2, 3, 7, 0, 1, 8, 9, 10, 11 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4, 5, 6 }
uselistorder i64 (i64, i8*)* @gf_bs_read_se_log, { 2, 1, 0 }
uselistorder i64 (i64, i64, i8*)* @gf_bs_read_int_log, { 3, 2, 1, 0 }
uselistorder i64 8, { 1, 0, 2, 3 }
uselistorder i64 (i64, i8*)* @gf_bs_read_ue_log, { 4, 3, 2, 1, 0 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder label LBL_21, { 1, 0, 2, 3, 4, 5 }
} | 1 |
BinRealVul | DestroyPixelThreadSet_7929 | DestroyPixelThreadSet | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i32 21, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%2 = call i64 @FUNC(i64 10)
%3 = icmp sgt i64 %2, 0
store i64 0, i64* %storemerge1.reg2mem
br i1 %3, label LBL_3, label LBL_6
LBL_3:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%4 = mul i64 %storemerge1.reload, 8
%5 = add i64 %4, %arg1
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_5, label LBL_4
LBL_4:
%9 = call i64 @FUNC(i64 %7)
store i64 %9, i64* %6, align 8
br label LBL_5
LBL_5:
%10 = add nuw nsw i64 %storemerge1.reload, 1
%11 = call i64 @FUNC(i64 10)
%12 = icmp slt i64 %10, %11
store i64 %10, i64* %storemerge1.reg2mem
br i1 %12, label LBL_3, label LBL_6
LBL_6:
%13 = call i64 @FUNC(i64 %arg1)
ret i64 %13
uselistorder i64* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @GetMagickResourceLimit, { 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | hstoreArrayToPairs_11416 | hstoreArrayToPairs | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.02.reg2mem = alloca i32
%sv_0.13.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_2 = alloca i64, align 8
%2 = load i64, i64* %0
%3 = load i32, i32* %1
%sv_3 = alloca i64, align 8
%4 = call i64 @FUNC(i64 %arg1, i64 0, i64 4294967295, i64 0, i64 105, i64* nonnull %sv_3)
%5 = icmp eq i32 %3, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = bitcast i64* %arg2 to i32*
store i32 0, i32* %7, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_2:
%8 = sext i32 %3 to i64
%9 = mul nsw i64 %8, 40
%10 = call i64 @FUNC(i64 %9)
%11 = zext i32 %3 to i64
store i64 0, i64* %.reg2mem
store i32 0, i32* %sv_0.13.reg2mem
store i32 0, i32* %sv_1.02.reg2mem
br label LBL_3
LBL_3:
%sv_1.02.reload = load i32, i32* %sv_1.02.reg2mem
%sv_0.13.reload = load i32, i32* %sv_0.13.reg2mem
%.reload = load i64, i64* %.reg2mem
%12 = add i64 %.reload, %2
%13 = inttoptr i64 %12 to i8*
%14 = load i8, i8* %13, align 1
%15 = icmp eq i8 %14, 1
store i32 %sv_0.13.reload, i32* %sv_0.0.reg2mem
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = load i64, i64* %sv_3, align 8
%17 = mul i64 %.reload, 8
%18 = add i64 %16, %17
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = sext i32 %sv_0.13.reload to i64
%22 = mul nsw i64 %21, 40
%23 = add i64 %22, %10
%24 = add i64 %20, 4
%25 = inttoptr i64 %23 to i64*
store i64 %24, i64* %25, align 8
%26 = load i64, i64* %sv_3, align 8
%27 = add i64 %26, %17
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = add i32 %31, -4
%33 = add i64 %23, 8
%34 = inttoptr i64 %33 to i32*
store i32 %32, i32* %34, align 4
%35 = add i64 %23, 16
%36 = inttoptr i64 %35 to i64*
store i64 0, i64* %36, align 8
%37 = add i64 %23, 24
%38 = inttoptr i64 %37 to i32*
store i32 0, i32* %38, align 4
%39 = add i64 %23, 28
%40 = inttoptr i64 %39 to i32*
store i32 0, i32* %40, align 4
%41 = add i64 %23, 32
%42 = inttoptr i64 %41 to i32*
store i32 1, i32* %42, align 4
%43 = add i32 %sv_0.13.reload, 1
store i32 %43, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%44 = add i32 %sv_1.02.reload, 1
%45 = sext i32 %44 to i64
%46 = icmp slt i64 %45, %11
store i64 %45, i64* %.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.13.reg2mem
store i32 %44, i32* %sv_1.02.reg2mem
br i1 %46, label LBL_3, label LBL_6
LBL_6:
%47 = zext i32 %sv_0.0.reload to i64
%48 = call i64 @FUNC(i64 %10, i64 %47, i64* nonnull %sv_2)
%49 = trunc i64 %48 to i32
%50 = bitcast i64* %arg2 to i32*
store i32 %49, i32* %50, align 4
store i64 %10, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %17, { 1, 0 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i32 %sv_0.13.reload, { 1, 2, 0 }
uselistorder i64 %10, { 0, 2, 1 }
uselistorder i64* %sv_3, { 1, 2, 0 }
uselistorder i32 %3, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.13.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.02.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 8, { 1, 0 }
uselistorder i32 0, { 2, 3, 0, 1, 4, 5 }
uselistorder i64 4294967295, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | process_open_5496 | process_open | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%sv_0.06.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i32, i32* %1
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
%sv_4 = alloca i8*, align 8
%5 = load i64, i64* @gv_0, align 8
%6 = ptrtoint i8** %sv_4 to i64
%7 = bitcast i8** %sv_4 to i64*
%8 = call i64 @FUNC(i64 %5, i64* nonnull %7, i64 0)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 %8, i64* %sv_1.0.reg2mem
br i1 %11, label LBL_3, label LBL_1
LBL_1:
%12 = load i64, i64* @gv_0, align 8
%13 = bitcast i32* %sv_3 to i64*
%14 = call i64 @FUNC(i64 %12, i64* nonnull %13)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
store i64 %14, i64* %sv_1.0.reg2mem
br i1 %17, label LBL_3, label LBL_2
LBL_2:
%18 = load i64, i64* @gv_0, align 8
%19 = bitcast i32* %sv_2 to i64*
%20 = call i64 @FUNC(i64 %18, i64* nonnull %19)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
store i64 %20, i64* %sv_1.0.reg2mem
br i1 %22, label LBL_4, label LBL_3
LBL_3:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%23 = and i64 %sv_1.0.reload, 4294967295
%24 = call i64 @FUNC(i64 %23)
%25 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0), i64 %24, i64 %6, i64 %3, i64 %2)
unreachable
LBL_4:
%26 = and i64 %arg1, 4294967295
%27 = load i32, i32* %sv_3, align 4
%28 = zext i32 %27 to i64
%29 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0), i64 %26, i64 %28, i64 %6, i64 %3, i64 %2)
%30 = load i32, i32* %sv_3, align 4
%31 = zext i32 %30 to i64
%32 = call i64 @FUNC(i64 %31)
%33 = trunc i64 %32 to i32
%34 = load i32, i32* %sv_2, align 4
%35 = urem i32 %34, 2
%36 = icmp eq i32 %35, 0
%narrow = select i1 %36, i32 438, i32 %4
%storemerge = zext i32 %narrow to i64
%37 = load i32, i32* %sv_3, align 4
%38 = zext i32 %37 to i64
%39 = call i64 @FUNC(i64 %38)
%40 = load i8*, i8** %sv_4, align 8
%41 = ptrtoint i8* %40 to i64
%42 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_4, i64 0, i64 0), i64 %41, i64 %39, i64 %storemerge, i64 %3, i64 %2)
%43 = load i32, i32* @gv_5, align 4
%44 = icmp eq i32 %43, 0
%45 = and i32 %33, 579
%46 = icmp eq i32 %45, 0
%or.cond = or i1 %46, %44
br i1 %or.cond, label LBL_6, label LBL_5
LBL_5:
%47 = call i64 @FUNC(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_6, i64 0, i64 0), i64 %41, i64 %39, i64 %storemerge, i64 %3, i64 %2)
store i64 2, i64* %sv_0.06.reg2mem
br label LBL_11
LBL_6:
%48 = load i8*, i8** %sv_4, align 8
%49 = call i32 (i8*, i32, ...) @open(i8* %48, i32 %33)
%50 = icmp slt i32 %49, 0
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_7, label LBL_10
LBL_7:
%52 = load i8*, i8** %sv_4, align 8
%53 = ptrtoint i8* %52 to i64
%54 = call i64 @FUNC(i64 3, i64 %53, i32 %49, i32 %33, i64 0)
%55 = trunc i64 %54 to i32
%56 = icmp slt i32 %55, 0
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_9, label LBL_8
LBL_8:
%58 = call i32 @close(i32 %49)
store i64 1, i64* %sv_0.06.reg2mem
br label LBL_11
LBL_9:
%59 = and i64 %54, 4294967295
%60 = call i64 @FUNC(i64 %26, i64 %59)
br label LBL_12
LBL_10:
%61 = call i32* @__errno_location()
%62 = load i32, i32* %61, align 4
%63 = zext i32 %62 to i64
%64 = call i64 @FUNC(i64 %63)
%65 = trunc i64 %64 to i32
%66 = icmp eq i32 %65, 0
store i64 %64, i64* %sv_0.06.reg2mem
br i1 %66, label LBL_12, label LBL_11
LBL_11:
%sv_0.06.reload = load i64, i64* %sv_0.06.reg2mem
%67 = and i64 %sv_0.06.reload, 4294967295
%68 = call i64 @FUNC(i64 %26, i64 %67)
br label LBL_12
LBL_12:
%69 = load i8*, i8** %sv_4, align 8
%70 = bitcast i8* %69 to i64*
call void @free(i64* %70)
ret i64 ptrtoint (i32* @0 to i64)
uselistorder i64 %storemerge, { 1, 0 }
uselistorder i32 %33, { 1, 2, 0 }
uselistorder i8** %sv_4, { 4, 3, 2, 1, 5, 0 }
uselistorder i32* %sv_3, { 2, 1, 0, 3 }
uselistorder i64 %3, { 2, 0, 1, 3 }
uselistorder i64 %2, { 2, 0, 1, 3 }
uselistorder i64* %sv_0.06.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 4294967295, { 0, 2, 1, 3, 4 }
uselistorder i32 0, { 2, 3, 4, 0, 5, 6, 7, 8, 9, 1 }
uselistorder i32 1, { 15, 16, 17, 13, 12, 11, 10, 9, 8, 7, 3, 6, 2, 5, 1, 14, 18, 4, 0 }
uselistorder label LBL_12, { 1, 2, 0 }
uselistorder label LBL_11, { 2, 1, 0 }
} | 0 |
BinRealVul | _q_urldecode_5801 | _q_urldecode | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_0.12.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i64
%.reg2mem6 = alloca i8*
%.reg2mem = alloca i8
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 0, i64* %storemerge.reg2mem
br i1 %1, label LBL_1, label LBL_14
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = bitcast i64* %arg1 to i8*
%4 = load i8, i8* %3, align 1
%5 = icmp eq i8 %4, 0
%6 = icmp eq i1 %5, false
store i8 %4, i8* %.reg2mem
store i8* %3, i8** %.reg2mem6
store i64 %2, i64* %storemerge14.reg2mem
store i64 %2, i64* %sv_0.12.reg2mem
store i64 %2, i64* %sv_0.1.lcssa.reg2mem
br i1 %6, label LBL_2, label LBL_13
LBL_2:
%sv_0.12.reload = load i64, i64* %sv_0.12.reg2mem
%storemerge14.reload = load i64, i64* %storemerge14.reg2mem
%.reload = load i8, i8* %.reg2mem
%7 = icmp eq i8 %.reload, 37
br i1 %7, label LBL_5, label LBL_3
LBL_3:
%8 = icmp eq i8 %.reload, 43
%9 = icmp eq i1 %8, false
%10 = add i64 %sv_0.12.reload, 1
%11 = inttoptr i64 %sv_0.12.reload to i8*
br i1 %9, label LBL_11, label LBL_4
LBL_4:
store i8 32, i8* %11, align 1
store i64 %10, i64* %sv_0.0.reg2mem
store i64 %storemerge14.reload, i64* %sv_1.0.reg2mem
br label LBL_12
LBL_5:
%.reload7 = load i8*, i8** %.reg2mem6
%12 = add i64 %storemerge14.reload, 1
%13 = inttoptr i64 %12 to i8*
%14 = load i8, i8* %13, align 1
%15 = icmp eq i8 %14, 0
br i1 %15, label LBL_10, label LBL_6
LBL_6:
%16 = call i16** @__ctype_b_loc()
%17 = load i16*, i16** %16, align 8
%18 = ptrtoint i16* %17 to i64
%19 = load i8, i8* %13, align 1
%20 = sext i8 %19 to i64
%21 = mul i64 %20, 2
%22 = add i64 %21, %18
%23 = inttoptr i64 %22 to i16*
%24 = load i16, i16* %23, align 2
%25 = and i16 %24, 4096
%26 = icmp eq i16 %25, 0
br i1 %26, label LBL_10, label LBL_7
LBL_7:
%27 = add i64 %storemerge14.reload, 2
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 1
%30 = icmp eq i8 %29, 0
br i1 %30, label LBL_10, label LBL_8
LBL_8:
%31 = call i16** @__ctype_b_loc()
%32 = load i16*, i16** %31, align 8
%33 = ptrtoint i16* %32 to i64
%34 = load i8, i8* %28, align 1
%35 = sext i8 %34 to i64
%36 = mul i64 %35, 2
%37 = add i64 %36, %33
%38 = inttoptr i64 %37 to i16*
%39 = load i16, i16* %38, align 2
%40 = and i16 %39, 4096
%41 = icmp eq i16 %40, 0
br i1 %41, label LBL_10, label LBL_9
LBL_9:
%42 = load i8, i8* %13, align 1
%43 = add i64 %sv_0.12.reload, 1
%44 = and i64 %35, 4294967295
%45 = sext i8 %42 to i64
%46 = and i64 %45, 4294967295
%47 = call i64 @FUNC(i64 %46, i64 %44)
%48 = trunc i64 %47 to i8
%49 = inttoptr i64 %sv_0.12.reload to i8*
store i8 %48, i8* %49, align 1
store i64 %43, i64* %sv_0.0.reg2mem
store i64 %27, i64* %sv_1.0.reg2mem
br label LBL_12
LBL_10:
%50 = add i64 %sv_0.12.reload, 1
%51 = load i8, i8* %.reload7, align 1
%52 = inttoptr i64 %sv_0.12.reload to i8*
store i8 %51, i8* %52, align 1
store i64 %50, i64* %sv_0.0.reg2mem
store i64 %storemerge14.reload, i64* %sv_1.0.reg2mem
br label LBL_12
LBL_11:
store i8 %.reload, i8* %11, align 1
store i64 %10, i64* %sv_0.0.reg2mem
store i64 %storemerge14.reload, i64* %sv_1.0.reg2mem
br label LBL_12
LBL_12:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%53 = add i64 %sv_1.0.reload, 1
%54 = inttoptr i64 %53 to i8*
%55 = load i8, i8* %54, align 1
%56 = icmp eq i8 %55, 0
%57 = icmp eq i1 %56, false
store i8 %55, i8* %.reg2mem
store i8* %54, i8** %.reg2mem6
store i64 %53, i64* %storemerge14.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.12.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.lcssa.reg2mem
br i1 %57, label LBL_2, label LBL_13
LBL_13:
%sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem
%58 = inttoptr i64 %sv_0.1.lcssa.reload to i8*
store i8 0, i8* %58, align 1
%59 = sub i64 %sv_0.1.lcssa.reload, %2
store i64 %59, i64* %storemerge.reg2mem
br label LBL_14
LBL_14:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %35, { 1, 0 }
uselistorder i8* %11, { 1, 0 }
uselistorder i64 %10, { 1, 0 }
uselistorder i64 %storemerge14.reload, { 1, 2, 3, 4, 0 }
uselistorder i64 %sv_0.12.reload, { 5, 4, 2, 3, 0, 1 }
uselistorder i64 %2, { 3, 0, 1, 2 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i8** %.reg2mem6, { 2, 0, 1 }
uselistorder i64* %storemerge14.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.12.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 4, 3, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 4, 3, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 2, { 0, 2, 1 }
uselistorder i64 1, { 0, 2, 3, 4, 1 }
uselistorder i8 0, { 3, 4, 1, 2, 0 }
uselistorder i1 false, { 2, 1, 0, 3 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | kobject_get_path_6780 | kobject_get_path | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem7 = alloca i64
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i32 %3, i32* %.reg2mem
store i64 %2, i64* %.reg2mem7
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_4
LBL_1:
%.reload8 = load i64, i64* %.reg2mem7
%sext2 = mul i64 %.reload8, 4294967296
%6 = ashr exact i64 %sext2, 32
%7 = call i64 @FUNC(i64 %6, i64 %1)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_4
LBL_2:
%.reload = load i32, i32* %.reg2mem
%10 = call i64 @FUNC(i64 %0, i64 %7, i32 %.reload)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
store i64 %7, i64* %rax.0.reg2mem
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i64 %7)
%14 = call i64 @FUNC(i64 %0)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
store i32 %15, i32* %.reg2mem
store i64 %14, i64* %.reg2mem7
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_1, label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %7, { 1, 0, 2, 3 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem7, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2, 4 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i32 0, { 2, 1, 0 }
uselistorder i64 (i64)* @get_kobj_path_length, { 1, 0 }
uselistorder label LBL_4, { 0, 2, 1, 3 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | parse_content_range_6802 | parse_content_range | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i32* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %arg2 to i8*
%5 = call i32 @strncmp(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i32 6)
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_4, label LBL_1
LBL_1:
%8 = add i64 %arg2, 6
%9 = inttoptr i64 %8 to i8*
%10 = call i64 @strtoull(i8* %9, i8** null, i32 10)
%11 = inttoptr i64 %3 to i64*
store i64 %10, i64* %11, align 8
%12 = call i8* @strchr(i8* %9, i32 47)
%13 = icmp eq i8* %12, null
br i1 %13, label LBL_4, label LBL_2
LBL_2:
%14 = load i8, i8* %12, align 1
%15 = icmp eq i8 %14, 0
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = ptrtoint i8* %12 to i64
%17 = add i64 %16, 1
%18 = inttoptr i64 %17 to i8*
%19 = call i64 @strtoull(i8* %18, i8** null, i32 10)
%20 = add i64 %3, 8
%21 = inttoptr i64 %20 to i64*
store i64 %19, i64* %21, align 8
br label LBL_4
LBL_4:
%22 = add i64 %3, 16
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = zext i32 %24 to i64
%26 = icmp eq i32 %24, -1
%27 = icmp eq i1 %26, false
store i64 %25, i64* %rax.0.reg2mem
br i1 %27, label LBL_8, label LBL_5
LBL_5:
%28 = add i64 %3, 20
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_7, label LBL_6
LBL_6:
%32 = add i64 %3, 8
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = icmp eq i64 %34, 2147483647
store i64 2147483647, i64* %rax.0.reg2mem
br i1 %35, label LBL_8, label LBL_7
LBL_7:
store i32 0, i32* %arg1, align 4
store i64 %0, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 3, 2, 4, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i8*, i8**, i32)* @strtoull, { 1, 0 }
} | 0 |
BinRealVul | bdrv_open_backing_file_1952 | bdrv_open_backing_file | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i8, align 1
%sv_3 = alloca i64, align 8
store i64 0, i64* %sv_3, align 8
%1 = add i64 %0, 8200
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %arg2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_2:
%6 = icmp eq i64 %arg2, 0
%7 = icmp eq i1 %6, false
store i64 %arg2, i64* %sv_1.0.reg2mem
br i1 %7, label LBL_4, label LBL_3
LBL_3:
%8 = call i64 @FUNC()
store i64 %8, i64* %sv_1.0.reg2mem
br label LBL_4
LBL_4:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%9 = add i64 %0, 8192
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = and i32 %11, -2
store i32 %12, i32* %10, align 4
%13 = call i64 @FUNC(i64 %sv_1.0.reload, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0))
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_6, label LBL_5
LBL_5:
store i8 0, i8* %sv_2, align 1
br label LBL_10
LBL_6:
%16 = bitcast i64* %rdi to i8*
%17 = load i8, i8* %16, align 8
%18 = icmp eq i8 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_9, label LBL_7
LBL_7:
%20 = call i64 @FUNC(i64 %sv_1.0.reload)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_9, label LBL_8
LBL_8:
%24 = call i64 @FUNC(i64 %sv_1.0.reload)
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_9:
%25 = call i64 @FUNC(i64 %0, i8* nonnull %sv_2, i64 4096)
br label LBL_10
LBL_10:
%26 = call i64 @FUNC(i64* nonnull @gv_1)
store i64 %26, i64* %2, align 8
%27 = add i64 %0, 4096
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 1
%30 = icmp eq i8 %29, 0
store i64 %26, i64* %.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %30, label LBL_12, label LBL_11
LBL_11:
%31 = call i64 @FUNC(i64 %27)
%.pre = load i64, i64* %2, align 8
store i64 %.pre, i64* %.reg2mem
store i64 %31, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%.reload = load i64, i64* %.reg2mem
%32 = load i32, i32* %10, align 4
%33 = and i32 %32, -7
%34 = load i8, i8* %sv_2, align 1
%35 = icmp eq i8 %34, 0
%36 = ptrtoint i8* %sv_2 to i64
%storemerge = select i1 %35, i64 0, i64 %36
%37 = call i64 @FUNC(i64 %.reload, i64 %storemerge, i64 %sv_1.0.reload, i32 %33, i64 %sv_0.0.reload, i64* nonnull %sv_3)
%38 = trunc i64 %37 to i32
%39 = icmp slt i32 %38, 0
%40 = icmp eq i1 %39, false
%41 = load i64, i64* %2, align 8
br i1 %40, label LBL_14, label LBL_13
LBL_13:
%42 = ptrtoint i64* %arg3 to i64
%43 = call i64 @FUNC(i64 %41)
store i64 0, i64* %2, align 8
%44 = load i32, i32* %10, align 4
%45 = or i32 %44, 1
store i32 %45, i32* %10, align 4
%46 = load i64, i64* %sv_3, align 8
%47 = call i64 @FUNC(i64 %42, i64 %46)
%48 = and i64 %37, 4294967295
store i64 %48, i64* %rax.0.reg2mem
br label LBL_15
LBL_14:
%49 = add i64 %41, 8208
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = call i64 @FUNC(i64 %0, i64 4096, i64 %53)
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 %41, { 1, 0 }
uselistorder i32* %10, { 1, 0, 2, 3, 4 }
uselistorder i64 %sv_1.0.reload, { 1, 3, 2, 0 }
uselistorder i64* %2, { 2, 1, 0, 3, 4 }
uselistorder i64* %sv_3, { 1, 0, 2 }
uselistorder i8* %sv_2, { 1, 2, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 4096, { 0, 2, 1 }
uselistorder i8 0, { 1, 2, 3, 0 }
uselistorder i64 (i64)* @QDECREF, { 1, 0 }
} | 0 |
BinRealVul | hci_loglink_complete_evt_6823 | hci_loglink_complete_evt | 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 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %3, 3
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = add i64 %3, 2
%9 = inttoptr i64 %8 to i8*
%10 = load i8, i8* %9, align 1
%11 = urem i64 %2, 65536
%12 = call i64 @FUNC(i64 %11)
%13 = urem i64 %12, 65536
%14 = zext i8 %7 to i64
%15 = zext i8 %10 to i64
%16 = call i64 @FUNC(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @gv_0, i64 0, i64 0), i64 %11, i64 %13, i64 %15, i64 %14, i64 %1)
%17 = load i8, i8* %9, align 1
%18 = zext i8 %17 to i64
%19 = call i64 @FUNC(i64 %4, i64 %18)
%20 = icmp eq i64 %19, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %20, label LBL_5, label LBL_1
LBL_1:
%21 = call i64 @FUNC(i64 %19)
%22 = icmp eq i64 %21, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_5, label LBL_2
LBL_2:
%23 = inttoptr i64 %21 to i16*
%24 = call i64 @FUNC(i64 %11)
%25 = trunc i64 %24 to i16
store i16 %25, i16* %23, align 2
%26 = add i64 %21, 2
%27 = inttoptr i64 %26 to i8*
store i8 1, i8* %27, align 1
%28 = inttoptr i64 %19 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0), i64 %19, i64 %29, i64 %21, i64 %14, i64 %1)
%31 = load i64, i64* %28, align 8
%32 = icmp eq i64 %31, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %32, label LBL_5, label LBL_3
LBL_3:
%33 = inttoptr i64 %31 to i64*
%34 = load i64, i64* %33, align 8
%35 = icmp eq i64 %34, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %35, label LBL_5, label LBL_4
LBL_4:
%36 = call i64 @FUNC(i64 %34)
%37 = inttoptr i64 %34 to i64*
%38 = load i64, i64* %37, align 8
%39 = add i64 %4, 8
%40 = inttoptr i64 %39 to i16*
%41 = load i16, i16* %40, align 2
%42 = inttoptr i64 %38 to i16*
store i16 %41, i16* %42, align 2
%43 = call i64 @FUNC(i64 %34, i64 %21, i64 0)
%44 = call i64 @FUNC(i64 %19)
%45 = call i64 @FUNC(i64 %34)
store i64 %45, 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 %34, { 3, 2, 1, 0, 4 }
uselistorder i64 %19, { 0, 2, 1, 3, 4 }
uselistorder i64 %11, { 0, 2, 1 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @BT_DBG, { 1, 0 }
uselistorder i64 (i64)* @le16_to_cpu, { 1, 0 }
uselistorder label LBL_5, { 2, 3, 4, 0, 1 }
} | 0 |
BinRealVul | virtio_pci_reset_1100 | virtio_pci_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 512
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %1)
%4 = add i64 %0, 520
%5 = call i64 @FUNC(i64 %4)
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%6 = mul i64 %indvars.iv.reload, 32
%7 = add i64 %6, %0
%8 = inttoptr i64 %7 to i32*
store i32 0, i32* %8, align 4
%9 = add i64 %7, 4
%10 = inttoptr i64 %9 to i32*
store i32 0, i32* %10, align 4
%11 = add i64 %7, 12
%12 = inttoptr i64 %11 to i32*
store i32 0, i32* %12, align 4
%13 = add i64 %7, 8
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
%15 = add i64 %7, 20
%16 = inttoptr i64 %15 to i32*
store i32 0, i32* %16, align 4
%17 = add i64 %7, 16
%18 = inttoptr i64 %17 to i32*
store i32 0, i32* %18, align 4
%19 = add i64 %7, 28
%20 = inttoptr i64 %19 to i32*
store i32 0, i32* %20, align 4
%21 = add i64 %7, 24
%22 = inttoptr i64 %21 to i32*
store i32 0, i32* %22, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 16
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
ret i64 0
uselistorder i64 %0, { 0, 3, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 0, 3, 1, 4, 2, 5, 6, 7 }
} | 0 |
reposvul_c_test | cac_find_and_initialize_143 | cac_find_and_initialize | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.4.reg2mem = alloca i64
%sv_1.3.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i32, align 4
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %4, label LBL_1, label LBL_21
LBL_1:
%sext = mul i64 %arg2, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = call i64 @FUNC(i64 %0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %sv_1.0.reg2mem
br i1 %9, label LBL_6, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %0, i64 2, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0))
%11 = trunc i64 %5 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 %6, i64* %rax.0.shrunk.reg2mem
br i1 %13, label LBL_3, label LBL_21
LBL_3:
%14 = call i64 @FUNC()
%sext3 = mul i64 %14, 4294967296
%15 = icmp eq i64 %sext3, 0
%16 = icmp eq i1 %15, false
store i64 4294967295, i64* %rax.0.shrunk.reg2mem
br i1 %16, label LBL_4, label LBL_21
LBL_4:
%17 = ashr exact i64 %sext3, 32
%18 = call i64 @FUNC(i64 %0, i64 %17)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
store i64 %17, i64* %sv_1.0.reg2mem
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = add i64 %0, 16
%23 = inttoptr i64 %22 to i32*
store i32 1, i32* %23, align 4
store i64 %17, i64* %2, align 8
store i64 %18, i64* %rax.0.shrunk.reg2mem
br label LBL_21
LBL_6:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%24 = call i64 @FUNC(i64 %0)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
store i64 %sv_1.0.reload, i64* %sv_1.2.reg2mem
br i1 %27, label LBL_12, label LBL_7
LBL_7:
%28 = call i64 @FUNC(i64 %0, i64 2, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0))
%29 = trunc i64 %5 to i32
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
store i64 %24, i64* %rax.0.shrunk.reg2mem
br i1 %31, label LBL_8, label LBL_21
LBL_8:
%32 = icmp eq i64 %sv_1.0.reload, 0
%33 = icmp eq i1 %32, false
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
br i1 %33, label LBL_10, label LBL_9
LBL_9:
%34 = call i64 @FUNC()
%sext4 = mul i64 %34, 4294967296
%35 = ashr exact i64 %sext4, 32
%36 = icmp eq i64 %sext4, 0
%37 = icmp eq i1 %36, false
store i64 %35, i64* %sv_1.1.reg2mem
store i64 4294967295, i64* %rax.0.shrunk.reg2mem
br i1 %37, label LBL_10, label LBL_21
LBL_10:
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%38 = call i64 @FUNC(i64 %0, i64 %sv_1.1.reload)
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
%41 = icmp eq i1 %40, false
store i64 %sv_1.1.reload, i64* %sv_1.2.reg2mem
br i1 %41, label LBL_12, label LBL_11
LBL_11:
%42 = add i64 %0, 16
%43 = inttoptr i64 %42 to i32*
store i32 1, i32* %43, align 4
store i64 %sv_1.1.reload, i64* %2, align 8
store i64 %38, i64* %rax.0.shrunk.reg2mem
br label LBL_21
LBL_12:
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%44 = bitcast i32* %sv_2 to i64*
%45 = call i64 @FUNC(i64 %0, i64* nonnull %44)
%46 = trunc i64 %45 to i32
%47 = icmp eq i32 %46, 0
%48 = icmp eq i1 %47, false
store i64 %sv_1.2.reload, i64* %sv_1.4.reg2mem
store i64 %45, i64* %sv_0.0.reg2mem
br i1 %48, label LBL_19, label LBL_13
LBL_13:
%49 = call i64 @FUNC(i64 %0, i64 2, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_2, i64 0, i64 0))
%50 = trunc i64 %5 to i32
%51 = icmp eq i32 %50, 0
%52 = icmp eq i1 %51, false
store i64 %45, i64* %rax.0.shrunk.reg2mem
br i1 %52, label LBL_14, label LBL_21
LBL_14:
%53 = icmp eq i64 %sv_1.2.reload, 0
%54 = icmp eq i1 %53, false
store i64 %sv_1.2.reload, i64* %sv_1.3.reg2mem
br i1 %54, label LBL_16, label LBL_15
LBL_15:
%55 = call i64 @FUNC()
%sext5 = mul i64 %55, 4294967296
%56 = ashr exact i64 %sext5, 32
%57 = icmp eq i64 %sext5, 0
%58 = icmp eq i1 %57, false
store i64 %56, i64* %sv_1.3.reg2mem
store i64 4294967295, i64* %rax.0.shrunk.reg2mem
br i1 %58, label LBL_16, label LBL_21
LBL_16:
%sv_1.3.reload = load i64, i64* %sv_1.3.reg2mem
store i64 %sv_1.3.reload, i64* %2, align 8
%59 = load i32, i32* %sv_2, align 4
%60 = zext i32 %59 to i64
%61 = call i64 @FUNC(i64 %0, i64 %60, i64 %sv_1.3.reload)
%62 = trunc i64 %61 to i32
%63 = icmp eq i32 %62, 0
%64 = icmp eq i1 %63, false
br i1 %64, label LBL_18, label LBL_17
LBL_17:
%65 = add i64 %0, 16
%66 = inttoptr i64 %65 to i32*
store i32 1, i32* %66, align 4
store i64 %61, i64* %rax.0.shrunk.reg2mem
br label LBL_21
LBL_18:
store i64 0, i64* %2, align 8
store i64 %sv_1.3.reload, i64* %sv_1.4.reg2mem
store i64 %61, i64* %sv_0.0.reg2mem
br label LBL_19
LBL_19:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.4.reload = load i64, i64* %sv_1.4.reg2mem
%67 = icmp eq i64 %sv_1.4.reload, 0
store i64 %sv_0.0.reload, i64* %rax.0.shrunk.reg2mem
br i1 %67, label LBL_21, label LBL_20
LBL_20:
%68 = call i64 @FUNC(i64 %sv_1.4.reload)
store i64 %sv_0.0.reload, i64* %rax.0.shrunk.reg2mem
br label LBL_21
LBL_21:
%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 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %61, { 1, 0, 2 }
uselistorder i64 %sv_1.3.reload, { 0, 2, 1 }
uselistorder i64 %sext5, { 1, 0 }
uselistorder i64 %sv_1.2.reload, { 1, 2, 0 }
uselistorder i64 %sv_1.1.reload, { 2, 0, 1 }
uselistorder i64 %sext4, { 1, 0 }
uselistorder i64 %sv_1.0.reload, { 1, 2, 0 }
uselistorder i64 %17, { 1, 0, 2 }
uselistorder i64 %5, { 2, 1, 0 }
uselistorder i64* %2, { 2, 3, 1, 0, 4 }
uselistorder i64 %0, { 6, 7, 8, 9, 3, 4, 5, 10, 0, 1, 2, 11, 12 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 2, 1, 12, 3, 4, 11, 5, 6, 10, 7, 8, 9 }
uselistorder i64 4294967295, { 3, 0, 1, 2 }
uselistorder i64 ()* @cac_new_private_data, { 2, 1, 0 }
uselistorder i64 (i64, i64, i8*)* @sc_debug, { 2, 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0 }
uselistorder label LBL_21, { 1, 0, 9, 2, 3, 10, 4, 5, 11, 6, 7, 8 }
} | 0 |
BinRealVul | ssh_scp_free_10142 | ssh_scp_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 = icmp eq i64 %arg1, 0
br i1 %2, label LBL_6, label LBL_1
LBL_1:
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = call i64 @FUNC(i64 %arg1)
br label LBL_3
LBL_3:
%6 = add i64 %arg1, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
br i1 %9, label LBL_5, label LBL_4
LBL_4:
%10 = call i64 @FUNC(i64 %8)
br label LBL_5
LBL_5:
%11 = add i64 %arg1, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = inttoptr i64 %13 to i64*
call void @free(i64* %14)
store i64 0, i64* %12, align 8
%15 = add i64 %arg1, 24
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = inttoptr i64 %17 to i64*
call void @free(i64* %18)
store i64 0, i64* %16, align 8
%19 = add i64 %arg1, 32
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = inttoptr i64 %21 to i64*
call void @free(i64* %22)
store i64 0, i64* %20, align 8
%23 = inttoptr i64 %arg1 to i64*
call void @free(i64* %23)
store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder void (i64*)* @free, { 4, 3, 2, 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | http_read_stream_2806 | http_read_stream | 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
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sv_1 = alloca i8, align 1
%sv_2 = alloca i64, align 8
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_15
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = add i64 %7, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_5, label LBL_2
LBL_2:
%12 = add i64 %7, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_5, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %7, i64* nonnull %sv_2)
%18 = trunc i64 %17 to i32
%19 = icmp slt i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = and i64 %17, 4294967295
store i64 %21, i64* %rax.0.reg2mem
br label LBL_15
LBL_5:
%sext = mul i64 %arg3, 4294967296
%22 = ashr exact i64 %sext, 32
%23 = add i64 %7, 12
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = icmp slt i32 %25, 0
store i64 %22, i64* %sv_0.0.reg2mem
br i1 %26, label LBL_14, label LBL_6
LBL_6:
%27 = icmp eq i32 %25, 0
%28 = icmp eq i1 %27, false
store i32 %25, i32* %.reg2mem
br i1 %28, label LBL_13, label LBL_7
LBL_7:
%29 = bitcast i8* %sv_1 to i64*
br label LBL_8
LBL_8:
%30 = call i64 @FUNC(i64 %7, i64* nonnull %29, i64 32)
%31 = trunc i64 %30 to i32
%32 = icmp slt i32 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_10, label LBL_9
LBL_9:
%34 = and i64 %30, 4294967295
store i64 %34, i64* %rax.0.reg2mem
br label LBL_15
LBL_10:
%35 = load i8, i8* %sv_1, align 1
%36 = icmp eq i8 %35, 0
br i1 %36, label LBL_8, label LBL_11
LBL_11:
%37 = call i64 @strtoll(i8* nonnull %sv_1, i8** null, i32 16)
%38 = trunc i64 %37 to i32
store i32 %38, i32* %24, align 4
%39 = and i64 %37, 4294967295
%40 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0), i64 %39, i64 %2, i64 %1)
%41 = load i32, i32* %24, align 4
%42 = icmp slt i32 %41, 0
%43 = icmp eq i1 %42, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %43, label LBL_12, label LBL_15
LBL_12:
%44 = icmp eq i32 %41, 0
%45 = icmp eq i1 %44, false
store i32 %41, i32* %.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %45, label LBL_13, label LBL_15
LBL_13:
%.reload = load i32, i32* %.reg2mem
%46 = trunc i64 %22 to i32
%47 = sub i32 %46, %.reload
%48 = xor i32 %.reload, %46
%49 = xor i32 %47, %46
%50 = and i32 %49, %48
%51 = icmp slt i32 %50, 0
%52 = icmp eq i32 %47, 0
%53 = icmp slt i32 %47, 0
%54 = icmp ne i1 %53, %51
%55 = or i1 %52, %54
%56 = select i1 %55, i32 %46, i32 %.reload
%57 = sext i32 %56 to i64
store i64 %57, i64* %sv_0.0.reg2mem
br label LBL_14
LBL_14:
%58 = ptrtoint i64* %arg2 to i64
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%59 = trunc i64 %sv_0.0.reload to i32
%60 = call i64 @FUNC(i64 %7, i64 %58, i32 %59)
store i64 %60, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %47, { 1, 2, 0 }
uselistorder i32 %46, { 2, 0, 1, 3 }
uselistorder i32 %.reload, { 0, 2, 1 }
uselistorder i64 %22, { 1, 0 }
uselistorder i64 %7, { 2, 1, 3, 0, 4, 5 }
uselistorder i8* %sv_1, { 2, 0, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 2, 5, 4, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder label LBL_15, { 3, 0, 1, 4, 5, 2 }
uselistorder label LBL_8, { 1, 0 }
} | 0 |
BinRealVul | put_line_15894 | put_line | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.02.reg2mem = alloca i32
%sv_1.03.reg2mem = alloca i32
%sv_2.04.reg2mem = alloca i32
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%2 = mul i64 %arg2, 8
%3 = and i64 %2, 4294967288
%4 = call i64 @FUNC(i64* nonnull %sv_3, i64 %1, i64 %3)
%5 = trunc i64 %arg3 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp slt i32 %5, 0
%8 = icmp eq i1 %7, false
%9 = icmp eq i1 %6, false
%10 = icmp eq i1 %8, %9
store i32 %5, i32* %.reg2mem
store i32 0, i32* %sv_2.04.reg2mem
store i32 -1, i32* %sv_1.03.reg2mem
br i1 %10, label LBL_1, label LBL_8
LBL_1:
%sv_1.03.reload = load i32, i32* %sv_1.03.reg2mem
%sv_2.04.reload = load i32, i32* %sv_2.04.reg2mem
%.reload = load i32, i32* %.reg2mem
%11 = sext i32 %sv_2.04.reload to i64
%12 = mul i64 %11, 4
%13 = add i64 %12, %0
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = sub i32 0, %sv_1.03.reload
%17 = sub i32 %16, 1
%18 = icmp sgt i32 %15, 16
store i32 %15, i32* %sv_0.0.lcssa.reg2mem
br i1 %18, label LBL_2, label LBL_5
LBL_2:
%19 = add i32 %15, -17
store i32 %15, i32* %sv_0.02.reg2mem
br label LBL_3
LBL_3:
%sv_0.02.reload = load i32, i32* %sv_0.02.reg2mem
%20 = call i64 @FUNC(i64* nonnull %sv_3, i64 16, i32 %17)
%21 = add nsw i32 %sv_0.02.reload, -16
%22 = icmp sgt i32 %21, 16
store i32 %21, i32* %sv_0.02.reg2mem
br i1 %22, label LBL_3, label LBL_4
LBL_4:
%23 = and i32 %19, -16
%24 = add i32 %15, -16
%25 = sub i32 %24, %23
store i32 %25, i32* %sv_0.0.lcssa.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%26 = icmp eq i32 %sv_0.0.lcssa.reload, 0
br i1 %26, label LBL_6, label LBL_7
LBL_6:
%27 = add i32 %sv_2.04.reload, 1
%28 = sub i32 %.reload, %15
%29 = icmp eq i32 %28, 0
%30 = icmp slt i32 %28, 0
%31 = icmp eq i1 %30, false
%32 = icmp eq i1 %29, false
%33 = icmp eq i1 %31, %32
store i32 %28, i32* %.reg2mem
store i32 %27, i32* %sv_2.04.reg2mem
store i32 %17, i32* %sv_1.03.reg2mem
br i1 %33, label LBL_1, label LBL_8
LBL_7:
%34 = zext i32 %sv_0.0.lcssa.reload to i64
%35 = call i64 @FUNC(i64* nonnull %sv_3, i64 %34, i32 %17)
br label LBL_6
LBL_8:
%36 = call i64 @FUNC(i64* nonnull %sv_3)
ret i64 %36
uselistorder i32 %28, { 0, 2, 1 }
uselistorder i32 %sv_0.0.lcssa.reload, { 1, 0 }
uselistorder i32 %17, { 2, 0, 1 }
uselistorder i32 %15, { 5, 3, 1, 2, 0, 4 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.04.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.03.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.02.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32 -16, { 1, 0, 2 }
uselistorder i32 16, { 1, 0 }
uselistorder i1 false, { 3, 2, 0, 1 }
uselistorder i32 0, { 5, 6, 4, 1, 0, 2, 3, 7 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | chs_assemble_msbs_lsbs_2837 | chs_assemble_msbs_lsbs | define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%indvars.iv13.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%storemerge11.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%rsi = alloca i64, align 8
%2 = load i64, i64* %0
%3 = trunc i64 %2 to i32
%4 = and i64 %2, 4294967295
%5 = icmp eq i32 %3, 0
store i64 %4, i64* %.lcssa.reg2mem
br i1 %5, label LBL_11, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg3, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = ashr exact i64 %sext, 28
%9 = sub nsw i64 %8, %7
%10 = mul i64 %9, 16
%11 = add i64 %6, 8
%12 = add i64 %11, %10
%13 = bitcast i64* %rsi to i32*
%14 = trunc i64 %1 to i32
%15 = trunc i64 %7 to i32
%16 = ptrtoint i32* %arg1 to i64
%17 = icmp sgt i32 %14, 0
%wide.trip.count = and i64 %1, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge11.reg2mem
br label LBL_2
LBL_2:
%storemerge11.reload = load i32, i32* %storemerge11.reg2mem
%18 = call i64 @FUNC(i64 %16, i64 %6, i32 %15, i32 %storemerge11.reload)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_10, label LBL_3
LBL_3:
%.reload = load i64, i64* %.reg2mem
%21 = mul i64 %.reload, 8
%22 = add i64 %21, %12
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = mul i64 %.reload, 4
%26 = add i64 %25, %12
%27 = add i64 %26, 160
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label LBL_4, label LBL_6
LBL_4:
br i1 %17, label LBL_5, label LBL_10
LBL_5:
%31 = urem i32 %19, 32
store i64 0, i64* %indvars.iv13.reg2mem
br label LBL_9
LBL_6:
br i1 %17, label LBL_7, label LBL_10
LBL_7:
%32 = add i64 %22, 80
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = add i64 %26, 200
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = urem i32 %19, 32
%39 = urem i32 %37, 32
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_8
LBL_8:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%40 = mul i64 %indvars.iv.reload, 4
%41 = add i64 %40, %24
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = shl i32 %43, %38
%storemerge4 = zext i32 %44 to i64
store i64 %storemerge4, i64* %rsi, align 8
%45 = add i64 %40, %34
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = shl i32 %47, %39
%49 = add i32 %48, %44
store i32 %49, i32* %42, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_10, label LBL_8
LBL_9:
%indvars.iv13.reload = load i64, i64* %indvars.iv13.reg2mem
%50 = mul i64 %indvars.iv13.reload, 4
%51 = add i64 %50, %24
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = shl i32 %53, %31
store i32 %54, i32* %52, align 4
%indvars.iv.next14 = add nuw nsw i64 %indvars.iv13.reload, 1
%exitcond16 = icmp eq i64 %indvars.iv.next14, %wide.trip.count
store i64 %indvars.iv.next14, i64* %indvars.iv13.reg2mem
br i1 %exitcond16, label LBL_10, label LBL_9
LBL_10:
%55 = add i32 %storemerge11.reload, 1
%56 = load i32, i32* %13, align 8
%57 = zext i32 %56 to i64
%58 = sext i32 %55 to i64
%59 = icmp slt i64 %58, %57
store i64 %58, i64* %.reg2mem
store i32 %55, i32* %storemerge11.reg2mem
store i64 %57, i64* %.lcssa.reg2mem
br i1 %59, label LBL_2, label LBL_11
LBL_11:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %40, { 1, 0 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i1 %17, { 1, 0 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge11.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv13.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i32 0, { 3, 4, 0, 1, 2 }
uselistorder label LBL_10, { 1, 0, 2, 3, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | netlbl_cipsov4_genl_init_8404 | netlbl_cipsov4_genl_init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.in.reg2mem = alloca i64
%0 = call i64 @FUNC(i64* nonnull @gv_0)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
store i64 %0, i64* %rax.0.in.reg2mem
br i1 %2, label LBL_1, label LBL_5
LBL_1:
%3 = call i64 @FUNC(i64* nonnull @gv_0, i64* nonnull @gv_1)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
store i64 %3, i64* %rax.0.in.reg2mem
br i1 %5, label LBL_2, label LBL_5
LBL_2:
%6 = call i64 @FUNC(i64* nonnull @gv_0, i64* nonnull @gv_2)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
store i64 %6, i64* %rax.0.in.reg2mem
br i1 %8, label LBL_3, label LBL_5
LBL_3:
%9 = call i64 @FUNC(i64* nonnull @gv_0, i64* nonnull @gv_3)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
store i64 %9, i64* %rax.0.in.reg2mem
br i1 %11, label LBL_4, label LBL_5
LBL_4:
%12 = call i64 @FUNC(i64* nonnull @gv_0, i64* inttoptr (i64 4210729 to i64*))
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = and i64 %12, 4294967295
%spec.select = select i1 %14, i64 0, i64 %15
ret i64 %spec.select
LBL_5:
%rax.0.in.reload = load i64, i64* %rax.0.in.reg2mem
%rax.0 = and i64 %rax.0.in.reload, 4294967295
ret i64 %rax.0
uselistorder i64 (i64*, i64*)* @genl_register_ops, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | ff_realloc_static_2007 | ff_realloc_static | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = and i64 %arg2, 4294967295
%1 = call i64 @FUNC(i64 %arg1, i64 %0)
ret i64 %1
} | 0 |
BinRealVul | x25_kill_by_neigh_12522 | x25_kill_by_neigh | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64* nonnull @gv_0)
store i64 ptrtoint (i64* @gv_1 to i64), i64* %storemerge1.reg2mem
br label LBL_1
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%2 = call i64 @FUNC(i64 %storemerge1.reload)
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, %0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %storemerge1.reload, i64 101, i64 0, i64 0)
br label LBL_3
LBL_3:
%8 = add i64 %storemerge1.reload, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 %10, i64* %storemerge1.reg2mem
br i1 %12, label LBL_1, label LBL_4
LBL_4:
%13 = call i64 @FUNC(i64* nonnull @gv_0)
%14 = call i64 @FUNC(i64 ptrtoint (i64* @gv_0 to i64))
ret i64 %14
uselistorder i64 %storemerge1.reload, { 2, 0, 1 }
uselistorder i64* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 1, 0 }
uselistorder i64* @gv_0, { 2, 0, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | qemu_file_set_rate_limit_1283 | qemu_file_set_rate_limit | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
store i64 0, i64* %storemerge.reg2mem
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
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* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
reposvul_c_test | io_prep_async_link_307 | io_prep_async_link | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge12.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = urem i64 %1, 2
%5 = icmp eq i64 %4, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_3, label LBL_1
LBL_1:
%6 = add i64 %2, 8
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 %6, i64* %storemerge12.reg2mem
store i64 %6, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_3
LBL_2:
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%9 = call i64 @FUNC(i64 %storemerge12.reload)
%10 = add i64 %storemerge12.reload, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
%14 = icmp eq i1 %13, false
store i64 %12, i64* %storemerge12.reg2mem
store i64 %12, i64* %rax.0.reg2mem
br i1 %14, label LBL_2, label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %storemerge12.reload, { 1, 0 }
uselistorder i64* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 (i64)* @io_prep_async_work, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | httpParseRequestLine_13642 | httpParseRequestLine | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_17
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4, i64 %1, i64 8)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_17
LBL_2:
%8 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0)
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %10, label LBL_3, label LBL_17
LBL_3:
%11 = call i64 @FUNC(i64 %8, i64 63)
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_7, label LBL_4
LBL_4:
%13 = inttoptr i64 %11 to i8*
store i8 0, i8* %13, align 1
%14 = add i64 %4, 8
%15 = call i64 @FUNC(i64 %8, i64 %14, i64 256)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %17, label LBL_5, label LBL_17
LBL_5:
%18 = add i64 %11, 1
%19 = call i64 @FUNC(i64 %18)
%20 = trunc i64 %19 to i32
%21 = icmp slt i32 %20, 257
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %21, label LBL_6, label LBL_17
LBL_6:
%22 = add i64 %4, 264
%23 = call i64 @FUNC(i64 %22, i64 %18)
store i64 %14, i64* %.pre-phi.reg2mem
br label LBL_9
LBL_7:
%24 = add i64 %4, 8
%25 = call i64 @FUNC(i64 %8, i64 %24, i64 256)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %27, label LBL_8, label LBL_17
LBL_8:
%28 = add i64 %4, 264
%29 = inttoptr i64 %28 to i8*
store i8 0, i8* %29, align 1
store i64 %24, i64* %.pre-phi.reg2mem
br label LBL_9
LBL_9:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%30 = call i64 @FUNC(i64 %.pre-phi.reload, i64* nonnull @gv_1)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_11, label LBL_10
LBL_10:
%34 = add i64 %4, 528
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = call i64 @FUNC(i64 %.pre-phi.reload, i64 %36)
br label LBL_11
LBL_11:
%38 = call i64 @FUNC(i64 %.pre-phi.reload)
%39 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0)
%40 = icmp eq i64 %39, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_13, label LBL_12
LBL_12:
%42 = add i64 %4, 520
%43 = inttoptr i64 %42 to i32*
store i32 0, i32* %43, align 4
%44 = add i64 %4, 524
%45 = inttoptr i64 %44 to i32*
store i32 0, i32* %45, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_13:
%46 = call i64 @FUNC(i64 %39, i64* bitcast ([9 x i8]* @gv_2 to i64*))
%47 = trunc i64 %46 to i32
%48 = icmp eq i32 %47, 0
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_15, label LBL_14
LBL_14:
%50 = add i64 %4, 520
%51 = inttoptr i64 %50 to i32*
store i32 1, i32* %51, align 4
%52 = add i64 %4, 524
%53 = inttoptr i64 %52 to i32*
store i32 0, i32* %53, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_15:
%54 = call i64 @FUNC(i64 %39, i64* bitcast ([9 x i8]* @gv_3 to i64*))
%55 = trunc i64 %54 to i32
%56 = icmp eq i32 %55, 0
%57 = icmp eq i1 %56, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %57, label LBL_17, label LBL_16
LBL_16:
%58 = add i64 %4, 520
%59 = inttoptr i64 %58 to i32*
store i32 2, i32* %59, align 4
%60 = add i64 %4, 524
%61 = inttoptr i64 %60 to i32*
store i32 1, i32* %61, 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 i64 %.pre-phi.reload, { 1, 0, 2 }
uselistorder i64 %8, { 1, 0, 2, 3 }
uselistorder i64 %4, { 7, 8, 5, 6, 3, 4, 2, 9, 10, 0, 1, 11 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1, 5, 6, 7, 8, 9, 10 }
uselistorder i64 (i64, i64*)* @osStrcasecmp, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @osStrcpy, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @httpDecodePercentEncodedString, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @strSafeCopy, { 1, 0 }
uselistorder i64 (i64, i8*, i64*)* @osStrtok_r, { 2, 1, 0 }
uselistorder label LBL_17, { 2, 3, 1, 0, 4, 5, 6, 7, 8, 9 }
} | 0 |
BinRealVul | brcmf_set_retry_8043 | brcmf_set_retry | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg3 to i8
%2 = icmp eq i8 %1, 0
%. = select i1 %2, i64 2, i64 1
%3 = call i64 @FUNC(i64 %0)
%4 = trunc i64 %arg2 to i32
%5 = call i64 @FUNC(i64 %3, i64 %., i32 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %., i32 %6)
br label LBL_2
LBL_2:
%storemerge = and i64 %5, 4294967295
ret i64 %storemerge
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | vmdk_write_cid_15427 | vmdk_write_cid | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i64 512, i64* nonnull %sv_1, i64 512)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 512
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%4 = bitcast i64* %sv_1 to i8*
%5 = call i8* @strstr(i8* nonnull %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0))
%6 = ptrtoint i8* %5 to i64
%7 = call i64 @FUNC(i64* nonnull %sv_0, i64 512, i64 %6)
%8 = ptrtoint i64* %sv_1 to i64
%9 = call i8* @strstr(i8* nonnull %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0))
%10 = icmp eq i8* %9, null
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = ptrtoint i8* %9 to i64
%12 = add i64 %11, 4
%13 = sub i64 %8, %12
%14 = trunc i64 %arg2 to i32
%15 = inttoptr i64 %12 to i8*
%16 = trunc i64 %13 to i32
%17 = add i32 %16, 512
%18 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %15, i32 %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i32 %14)
%19 = call i64 @FUNC(i64* nonnull %sv_1, i64 512, i64* nonnull %sv_0)
br label LBL_3
LBL_3:
%20 = call i64 @FUNC(i64 %8, i64 512, i64* nonnull %sv_1, i64 512)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 512
%. = select i1 %22, i64 0, i64 4294967295
store i64 %., i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %12, { 1, 0 }
uselistorder i8* %9, { 1, 0 }
uselistorder i64* %sv_1, { 0, 1, 4, 2, 3 }
uselistorder i8* (i8*, i8*)* @strstr, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 512, { 1, 0, 2, 3, 5, 4 }
} | 1 |
BinRealVul | freelist_state_initialize_11195 | freelist_state_initialize | define i64 @FUNC(i64* %arg1, i32* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC()
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = and i64 %3, 4294967295
%8 = call i64 @FUNC(i64 %2, i64 %7)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%9 = trunc i64 %3 to i32
%10 = and i64 %1, 4294967295
store i64 %10, i64* %arg1, align 8
%11 = add i64 %2, 8
%12 = inttoptr i64 %11 to i32*
store i32 %arg3, i32* %12, align 4
%13 = add i64 %2, 12
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
%15 = add i64 %2, 16
%16 = inttoptr i64 %15 to i32*
store i32 %9, i32* %16, align 4
store i64 1, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 2, 3, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | mov_open_dref_15651 | mov_open_dref | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdx.0.lcssa.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%storemerge1.lcssa.reg2mem = alloca i32
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_0.15.reg2mem = alloca i32
%storemerge16.reg2mem = alloca i32
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%2 = call i64 @FUNC(i64 %1, i64 %0, i64 0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_13
LBL_1:
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp slt i32 %8, 1
br i1 %9, label LBL_12, label LBL_2
LBL_2:
%10 = add i64 %0, 12
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp slt i32 %12, 1
br i1 %13, label LBL_12, label LBL_3
LBL_3:
%14 = bitcast i64* %arg2 to i8*
%15 = call i8* @strrchr(i8* %14, i32 47)
%16 = call i32 @strlen(i8* null)
%storemerge14 = add i32 %16, -1
%17 = icmp slt i32 %storemerge14, 0
%18 = icmp eq i1 %17, false
store i32 %storemerge14, i32* %storemerge16.reg2mem
store i32 0, i32* %sv_0.15.reg2mem
store i32 0, i32* %sv_0.1.lcssa.reg2mem
store i32 %storemerge14, i32* %storemerge1.lcssa.reg2mem
br i1 %18, label LBL_4, label LBL_8
LBL_4:
%sv_0.15.reload = load i32, i32* %sv_0.15.reg2mem
%storemerge16.reload = load i32, i32* %storemerge16.reg2mem
%19 = sext i32 %storemerge16.reload to i64
%20 = inttoptr i64 %19 to i8*
%21 = load i8, i8* %20, align 1
%22 = icmp eq i8 %21, 47
%23 = icmp eq i1 %22, false
store i32 %sv_0.15.reload, i32* %sv_0.0.reg2mem
br i1 %23, label LBL_7, label LBL_5
LBL_5:
%24 = load i32, i32* %7, align 4
%25 = add i32 %24, -1
%26 = icmp eq i32 %sv_0.15.reload, %25
store i32 %sv_0.15.reload, i32* %sv_0.1.lcssa.reg2mem
store i32 %storemerge16.reload, i32* %storemerge1.lcssa.reg2mem
br i1 %26, label LBL_8, label LBL_6
LBL_6:
%27 = add i32 %sv_0.15.reload, 1
store i32 %27, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%storemerge1 = add i32 %storemerge16.reload, -1
%28 = icmp slt i32 %storemerge1, 0
%29 = icmp eq i1 %28, false
store i32 %storemerge1, i32* %storemerge16.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.15.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem
store i32 %storemerge1, i32* %storemerge1.lcssa.reg2mem
br i1 %29, label LBL_4, label LBL_8
LBL_8:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%30 = load i32, i32* %7, align 4
%31 = add i32 %30, -1
%32 = icmp eq i32 %sv_0.1.lcssa.reload, %31
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_12, label LBL_9
LBL_9:
%34 = ptrtoint i64* %arg2 to i64
%35 = ptrtoint i64* %sv_2 to i64
%36 = ptrtoint i8* %15 to i64
%37 = icmp eq i8* %15, null
%38 = add i64 %36, 1
%storemerge2 = select i1 %37, i64 %34, i64 %38
%storemerge1.lcssa.reload = load i32, i32* %storemerge1.lcssa.reg2mem
%39 = sub i64 %storemerge2, %34
%40 = trunc i64 %39 to i32
%41 = call i64* @memcpy(i64* nonnull %sv_1, i64* %arg2, i32 %40)
%42 = add i64 %35, -1040
%43 = add i64 %42, %39
%44 = inttoptr i64 %43 to i8*
store i8 0, i8* %44, align 1
%45 = load i32, i32* %11, align 4
%46 = icmp ugt i32 %45, 1
store i32 1, i32* %storemerge3.reg2mem
store i64 %39, i64* %rdx.0.lcssa.reg2mem
br i1 %46, label LBL_10, label LBL_11
LBL_10:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%47 = call i64 @FUNC(i64* nonnull %sv_1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64 1024)
%48 = add i32 %storemerge3.reload, 1
%49 = load i32, i32* %11, align 4
%50 = zext i32 %49 to i64
%51 = sext i32 %48 to i64
%52 = icmp slt i64 %51, %50
store i32 %48, i32* %storemerge3.reg2mem
store i64 1024, i64* %rdx.0.lcssa.reg2mem
br i1 %52, label LBL_10, label LBL_11
LBL_11:
%rdx.0.lcssa.reload = load i64, i64* %rdx.0.lcssa.reg2mem
%53 = sext i32 %storemerge1.lcssa.reload to i64
%54 = add nsw i64 %53, 1
%55 = add i64 %54, %rdx.0.lcssa.reload
%56 = inttoptr i64 %55 to i8*
%57 = call i64 @FUNC(i64* nonnull %sv_1, i8* %56, i64 1024)
%58 = ptrtoint i64* %sv_1 to i64
%59 = call i64 @FUNC(i64 %1, i64 %58, i64 0)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
%62 = icmp eq i1 %61, false
store i64 0, i64* %rax.0.reg2mem
br i1 %62, label LBL_12, label LBL_13
LBL_12:
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %storemerge16.reload, { 2, 0, 1 }
uselistorder i32 %sv_0.15.reload, { 3, 0, 2, 1 }
uselistorder i32* %11, { 1, 0, 2 }
uselistorder i64* %sv_1, { 3, 0, 1, 2 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i32* %storemerge16.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.15.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.1.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %storemerge1.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %storemerge3.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 1024, { 1, 0, 2 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i32 -1, { 3, 1, 2, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i8* null, { 1, 0 }
uselistorder i1 false, { 1, 2, 4, 3, 0, 5 }
uselistorder i32 0, { 4, 5, 0, 1, 3, 6, 2 }
uselistorder i64 (i64, i64, i64)* @url_fopen, { 1, 0 }
uselistorder i64* %arg2, { 0, 2, 1 }
uselistorder label LBL_13, { 2, 0, 1 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | ia32_do_mmap_13782 | ia32_do_mmap | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %arg4, 4294967295
%2 = and i64 %arg5, 4294967295
%3 = call i64 @FUNC(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @gv_0, i64 0, i64 0), i64 %0, i64 %arg2, i64 %arg3, i64 %1, i64 %2)
%4 = add i64 %arg3, 4095
%5 = and i64 %4, -4096
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 %arg2, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_6
LBL_1:
%8 = icmp ugt i64 %5, 4294967295
%9 = sub i64 4294967295, %5
%10 = icmp ult i64 %9, %arg2
%or.cond = or i1 %8, %10
br i1 %or.cond, label LBL_2, label LBL_3
LBL_2:
%11 = and i64 %arg5, 16
%12 = icmp eq i64 %11, 0
%. = select i1 %12, i64 -22, i64 -12
store i64 %., i64* %rax.0.reg2mem
br label LBL_6
LBL_3:
%13 = urem i64 %arg6, 4096
%14 = icmp eq i64 %13, 0
store i64 -22, i64* %rax.0.reg2mem
br i1 %14, label LBL_4, label LBL_6
LBL_4:
%15 = call i64 @FUNC(i64 %1)
%16 = and i64 %arg5, 262144
%17 = icmp eq i64 %16, 0
store i64 -12, i64* %rax.0.reg2mem
br i1 %17, label LBL_5, label LBL_6
LBL_5:
%sext4 = mul i64 %15, 4294967296
%18 = ashr exact i64 %sext4, 32
%19 = call i64 @FUNC(i64* nonnull @gv_1)
%20 = trunc i64 %18 to i32
%21 = call i64 @FUNC(i64 %0, i64 %arg2, i64 %5, i32 %20, i64 %2, i64 %arg6)
%22 = call i64 @FUNC(i64* nonnull @gv_1)
%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 = and i64 %18, 4294967295
%28 = call i64 @FUNC(i64 %0, i64 %21, i64 %5, i32 %20, i64 %2, i64 %arg6)
%29 = load i64, i64* @gv_2, align 8
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i64 @FUNC(i64 %31)
%33 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_3, i64 0, i64 0), i64 %28, i64 %5, i64 %27, i64 %2, i64 %arg6)
store i64 %28, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %5, { 2, 3, 4, 1, 0, 5 }
uselistorder i64 %2, { 2, 1, 3, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @DBG, { 1, 0 }
uselistorder i64 4294967295, { 4, 2, 1, 0, 3 }
uselistorder i64 %arg6, { 1, 2, 3, 0 }
uselistorder i64 %arg5, { 1, 2, 0 }
uselistorder i64 %arg2, { 2, 1, 0, 3 }
uselistorder label LBL_6, { 4, 0, 1, 2, 3 }
} | 0 |
BinRealVul | handle_cgi_request_7548 | handle_cgi_request | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%sv_0.17.reg2mem = alloca %_IO_FILE*
%sv_1.08.reg2mem = alloca %_IO_FILE*
%sv_0.113.reg2mem = alloca %_IO_FILE*
%sv_1.014.reg2mem = alloca %_IO_FILE*
%storemerge9.reg2mem = alloca i32
%.reg2mem16 = alloca i64
%.reg2mem = alloca i8*
%sv_0.0.reg2mem = alloca %_IO_FILE*
%sv_2.0.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = load i32, i32* %1
%sv_3 = alloca i8*, align 8
%sv_4 = alloca i8*, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%sv_7 = alloca i64, align 8
%sv_8 = alloca i32, align 4
%sv_9 = alloca i64, align 8
%sv_10 = alloca i32, align 4
%sv_11 = alloca i32, align 4
%sv_12 = alloca i64, align 8
%sv_13 = alloca i64, align 8
%sv_14 = alloca %_IO_FILE*, align 8
%sv_15 = alloca i64, align 8
store %_IO_FILE* null, %_IO_FILE** %sv_14, align 8
%5 = call i64 @FUNC(i64 %3, i64 %arg2, i64* nonnull %sv_13)
%6 = call i64 @FUNC(i64 %3, i64* nonnull %sv_12, i64 4096, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 %arg2, i64 %2)
%7 = bitcast i64* %sv_12 to i8*
%8 = call i8* @strrchr(i8* nonnull %7, i32 47)
%9 = icmp eq i8* %8, null
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = ptrtoint i8* %8 to i64
%11 = add i64 %10, 1
store i8 0, i8* %8, align 1
store i64 %11, i64* %sv_2.0.reg2mem
br label LBL_3
LBL_2:
store i64 46, i64* %sv_12, align 8
store i64 %arg2, i64* %sv_2.0.reg2mem
br label LBL_3
LBL_3:
store i32 -1, i32* %sv_11, align 4
store i32 -1, i32* %sv_10, align 4
%12 = ptrtoint i32* %sv_10 to i64
%13 = trunc i64 %12 to i32
%14 = insertvalue [2 x i32] undef, i32 %13, 0
%15 = call i32 @pipe([2 x i32] %14)
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_5, label LBL_4
LBL_4:
%18 = ptrtoint i32* %sv_11 to i64
%19 = trunc i64 %18 to i32
%20 = insertvalue [2 x i32] undef, i32 %19, 0
%21 = call i32 @pipe([2 x i32] %20)
%22 = icmp eq i32 %21, 0
br i1 %22, label LBL_6, label LBL_5
LBL_5:
%23 = call i32* @__errno_location()
%24 = load i32, i32* %23, align 4
%25 = call i8* @strerror(i32 %24)
%26 = ptrtoint i8* %25 to i64
%27 = call i64 @FUNC(i64 %3, i64 500, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0), i64 %26, i64 %2)
store %_IO_FILE* null, %_IO_FILE** %sv_1.08.reg2mem
store %_IO_FILE* null, %_IO_FILE** %sv_0.17.reg2mem
br label LBL_29
LBL_6:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%28 = load i32, i32* %sv_10, align 4
%29 = call i64 @FUNC(i64 %3, i64 %sv_2.0.reload, i64* nonnull %sv_13, i64* nonnull %sv_9, i32 %28, i32 -1, i64* nonnull %sv_12)
%30 = trunc i64 %29 to i32
store i32 -1, i32* %sv_10, align 4
%31 = icmp eq i32 %30, -1
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_8, label LBL_515
LBL_7:
%33 = call i32* @__errno_location()
%34 = load i32, i32* %33, align 4
%35 = call i8* @strerror(i32 %34)
%36 = ptrtoint i8* %35 to i64
%37 = call i64 @FUNC(i64 %3, i64 500, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_3, i64 0, i64 0), i64 %arg2, i64 %36)
store %_IO_FILE* null, %_IO_FILE** %sv_1.08.reg2mem
store %_IO_FILE* null, %_IO_FILE** %sv_0.17.reg2mem
br label LBL_29
LBL_8:
%38 = call %_IO_FILE* @fdopen(i32 -1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, i64 0, i64 0))
%39 = icmp eq %_IO_FILE* %38, null
store %_IO_FILE* null, %_IO_FILE** %sv_0.0.reg2mem
br i1 %39, label LBL_10, label LBL_9
LBL_9:
%40 = load i32, i32* %sv_11, align 4
%41 = call %_IO_FILE* @fdopen(i32 %40, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_5, i64 0, i64 0))
%42 = icmp eq %_IO_FILE* %41, null
%43 = icmp eq i1 %42, false
store %_IO_FILE* %41, %_IO_FILE** %sv_0.0.reg2mem
br i1 %43, label LBL_11, label LBL_10
LBL_10:
%sv_0.0.reload = load %_IO_FILE*, %_IO_FILE** %sv_0.0.reg2mem
%44 = call i32* @__errno_location()
%45 = load i32, i32* %44, align 4
%46 = call i8* @strerror(i32 %45)
%47 = ptrtoint i8* %46 to i64
%48 = call i64 @FUNC(i64 %3, i64 500, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_6, i64 0, i64 0), i64 %47, i64 4294967295)
store %_IO_FILE* %38, %_IO_FILE** %sv_1.014.reg2mem
store %_IO_FILE* %sv_0.0.reload, %_IO_FILE** %sv_0.113.reg2mem
br label LBL_28
LBL_11:
call void @setbuf(%_IO_FILE* nonnull %38, i8* null)
call void @setbuf(%_IO_FILE* %41, i8* null)
%.cast = ptrtoint %_IO_FILE* %41 to i64
%49 = bitcast %_IO_FILE** %sv_14 to i64*
store i64 %.cast, i64* %49, align 8
%50 = bitcast %_IO_FILE* %41 to i8*
%51 = call i32 @strcmp(i8* %50, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_7, i64 0, i64 0))
%52 = icmp eq i32 %51, 0
%53 = icmp eq i1 %52, false
br i1 %53, label LBL_13, label LBL_12
LBL_12:
%54 = ptrtoint %_IO_FILE* %38 to i64
%55 = call i64 @FUNC(i64 %3, i64 %54, i64 4294967295, i64 0)
%56 = trunc i64 %55 to i32
%57 = icmp eq i32 %56, 0
store %_IO_FILE* %38, %_IO_FILE** %sv_1.014.reg2mem
store %_IO_FILE* %41, %_IO_FILE** %sv_0.113.reg2mem
br i1 %57, label LBL_28, label LBL_13
LBL_13:
%58 = call i32 @fclose(%_IO_FILE* nonnull %38)
store i32 0, i32* %sv_8, align 4
%59 = call i64 @FUNC(i64 %.cast, i64 %3, i64* nonnull %sv_7, i64 16384, i32* nonnull %sv_8)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
%62 = icmp slt i32 %60, 0
%63 = icmp eq i1 %62, false
%64 = icmp eq i1 %61, false
%65 = icmp eq i1 %63, %64
br i1 %65, label LBL_15, label LBL_14
LBL_14:
%66 = load i32, i32* %sv_8, align 4
%67 = zext i32 %66 to i64
%68 = call i64 @FUNC(i64 %3, i64 500, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([71 x i8], [71 x i8]* @gv_8, i64 0, i64 0), i64 16384, i64 %67)
store %_IO_FILE* null, %_IO_FILE** %sv_1.014.reg2mem
store %_IO_FILE* %41, %_IO_FILE** %sv_0.113.reg2mem
br label LBL_28
LBL_15:
%69 = ptrtoint i64* %sv_15 to i64
%70 = ptrtoint i64* %sv_7 to i64
store i64 %70, i64* %sv_6, align 8
%71 = mul i64 %59, 4294967296
%sext = add i64 %71, -4294967296
%72 = ashr exact i64 %sext, 32
%73 = add i64 %69, -16464
%74 = add i64 %73, %72
%75 = inttoptr i64 %74 to i8*
store i8 0, i8* %75, align 1
%76 = call i64 @FUNC(i64* nonnull %sv_6, i64* nonnull %sv_5)
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_9, i64 0, i64 0), i8** %sv_4, align 8
%77 = call i64 @FUNC(i64* nonnull %sv_5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_10, i64 0, i64 0))
%78 = inttoptr i64 %77 to i8*
store i8* %78, i8** %sv_3, align 8
%79 = icmp eq i64 %77, 0
br i1 %79, label LBL_18, label LBL_16
LBL_16:
%80 = call i32 @atoi(i8* %78)
%81 = add i64 %3, 176
%82 = inttoptr i64 %81 to i32*
store i32 %80, i32* %82, align 4
%83 = load i8*, i8** %sv_3, align 8
%84 = ptrtoint i8* %83 to i64
%85 = bitcast i8** %sv_4 to i64*
store i64 %84, i64* %85, align 8
%86 = call i16** @__ctype_b_loc()
%87 = load i16*, i16** %86, align 8
%88 = ptrtoint i16* %87 to i64
%89 = load i8, i8* %83, align 1
%90 = zext i8 %89 to i64
%91 = mul i64 %90, 2
%92 = add i64 %91, %88
%93 = inttoptr i64 %92 to i16*
%94 = load i16, i16* %93, align 2
%95 = and i16 %94, 2048
%96 = icmp eq i16 %95, 0
%97 = icmp eq i1 %96, false
%98 = icmp eq i8 %89, 32
%or.cond10 = or i1 %98, %97
store i8* %83, i8** %.reg2mem
br i1 %or.cond10, label LBL_17, label LBL_21
LBL_17:
%.reload = load i8*, i8** %.reg2mem
%99 = ptrtoint i8* %.reload to i64
%100 = add i64 %99, 1
%101 = inttoptr i64 %100 to i8*
store i8* %101, i8** %sv_4, align 8
%102 = call i16** @__ctype_b_loc()
%103 = load i16*, i16** %102, align 8
%104 = ptrtoint i16* %103 to i64
%105 = load i8, i8* %101, align 1
%106 = zext i8 %105 to i64
%107 = mul i64 %106, 2
%108 = add i64 %107, %104
%109 = inttoptr i64 %108 to i16*
%110 = load i16, i16* %109, align 2
%111 = and i16 %110, 2048
%112 = icmp eq i16 %111, 0
%113 = icmp eq i1 %112, false
%114 = icmp eq i8 %105, 32
%or.cond = or i1 %114, %113
store i8* %101, i8** %.reg2mem
br i1 %or.cond, label LBL_17, label LBL_21
LBL_18:
%115 = call i64 @FUNC(i64* nonnull %sv_5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_11, i64 0, i64 0))
%116 = icmp eq i64 %115, 0
%117 = add i64 %3, 176
%118 = inttoptr i64 %117 to i32*
br i1 %116, label LBL_20, label LBL_19
LBL_19:
store i32 302, i32* %118, align 4
br label LBL_21
LBL_20:
store i32 200, i32* %118, align 4
br label LBL_21
LBL_21:
%119 = call i64 @FUNC(i64* nonnull %sv_5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_12, i64 0, i64 0))
%120 = icmp eq i64 %119, 0
br i1 %120, label LBL_24, label LBL_22
LBL_22:
%121 = call i64 @FUNC(i64* nonnull %sv_5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_12, i64 0, i64 0))
%122 = call i64 @FUNC(i64 %121, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_13, i64 0, i64 0))
%123 = trunc i64 %122 to i32
%124 = icmp eq i32 %123, 0
%125 = icmp eq i1 %124, false
br i1 %125, label LBL_24, label LBL_23
LBL_23:
%126 = add i64 %3, 180
%127 = inttoptr i64 %126 to i32*
store i32 1, i32* %127, align 4
br label LBL_24
LBL_24:
%128 = ptrtoint i32* %sv_8 to i64
%129 = add i64 %3, 176
%130 = inttoptr i64 %129 to i32*
%131 = load i32, i32* %130, align 4
%132 = load i8*, i8** %sv_4, align 8
%133 = ptrtoint i8* %132 to i64
%134 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_14, i64 0, i64 0), i32 %131, i64 %133, i64 %128, i64 4294967295)
%135 = icmp eq i32 %4, 0
br i1 %135, label LBL_27, label LBL_25
LBL_25:
%136 = zext i32 %4 to i64
%137 = add i64 %69, 16
store i64 0, i64* %.reg2mem16
store i32 0, i32* %storemerge9.reg2mem
br label LBL_26
LBL_26:
%storemerge9.reload = load i32, i32* %storemerge9.reg2mem
%.reload17 = load i64, i64* %.reg2mem16
%138 = mul i64 %.reload17, 16
%139 = add i64 %137, %138
%140 = add i64 %139, -20744
%141 = inttoptr i64 %140 to i64*
%142 = load i64, i64* %141, align 8
%143 = add i64 %139, -20752
%144 = inttoptr i64 %143 to i64*
%145 = load i64, i64* %144, align 8
%146 = trunc i64 %145 to i32
%147 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_15, i64 0, i64 0), i32 %146, i64 %142, i64 %128, i64 4294967295)
%148 = add i32 %storemerge9.reload, 1
%149 = sext i32 %148 to i64
%150 = icmp slt i64 %149, %136
store i64 %149, i64* %.reg2mem16
store i32 %148, i32* %storemerge9.reg2mem
br i1 %150, label LBL_26, label LBL_27
LBL_27:
%151 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_16, i64 0, i64 0), i64 2)
%152 = load i32, i32* %sv_8, align 4
%153 = sub i32 %152, %60
%154 = sext i32 %153 to i64
%155 = ashr exact i64 %71, 32
%156 = add i64 %155, %70
%157 = inttoptr i64 %156 to i8*
%158 = call i64 @FUNC(i64 %3, i8* %157, i64 %154)
%159 = add i64 %3, 184
%160 = inttoptr i64 %159 to i32*
%161 = load i32, i32* %160, align 4
%162 = trunc i64 %158 to i32
%163 = add i32 %161, %162
store i32 %163, i32* %160, align 4
%164 = call i64 @FUNC(i64 %3, i64* nonnull %49, i64 0, i64 9223372036854775807)
store %_IO_FILE* null, %_IO_FILE** %sv_1.014.reg2mem
store %_IO_FILE* %41, %_IO_FILE** %sv_0.113.reg2mem
br label LBL_28
LBL_28:
%sv_0.113.reload = load %_IO_FILE*, %_IO_FILE** %sv_0.113.reg2mem
%sv_1.014.reload = load %_IO_FILE*, %_IO_FILE** %sv_1.014.reg2mem
%165 = call i32 @kill(i32 %30, i32 9)
store %_IO_FILE* %sv_1.014.reload, %_IO_FILE** %sv_1.08.reg2mem
store %_IO_FILE* %sv_0.113.reload, %_IO_FILE** %sv_0.17.reg2mem
br label LBL_29
LBL_29:
%sv_0.17.reload = load %_IO_FILE*, %_IO_FILE** %sv_0.17.reg2mem
%sv_1.08.reload = load %_IO_FILE*, %_IO_FILE** %sv_1.08.reg2mem
%166 = load i32, i32* %sv_10, align 4
%167 = icmp eq i32 %166, -1
br i1 %167, label LBL_31, label LBL_30
LBL_30:
%168 = call i32 @close(i32 %166)
br label LBL_31
LBL_31:
%169 = icmp eq %_IO_FILE* %sv_1.08.reload, null
br i1 %169, label LBL_33, label LBL_32
LBL_32:
%170 = call i32 @fclose(%_IO_FILE* nonnull %sv_1.08.reload)
br label LBL_33
LBL_33:
%171 = icmp eq %_IO_FILE* %sv_0.17.reload, null
br i1 %171, label LBL_35, label LBL_34
LBL_34:
%172 = call i32 @fclose(%_IO_FILE* nonnull %sv_0.17.reload)
%173 = sext i32 %172 to i64
store i64 %173, i64* %rax.0.reg2mem
br label LBL_37
LBL_35:
%174 = load i32, i32* %sv_11, align 4
%175 = icmp eq i32 %174, -1
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %175, label LBL_37, label LBL_36
LBL_36:
%176 = call i32 @close(i32 %174)
%177 = sext i32 %176 to i64
store i64 %177, i64* %rax.0.reg2mem
br label LBL_37
LBL_37:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %118, { 1, 0 }
uselistorder i64 %77, { 1, 0 }
uselistorder i64 %71, { 1, 0 }
uselistorder i32 %60, { 0, 2, 1 }
uselistorder %_IO_FILE* %41, { 2, 0, 1, 5, 6, 4, 3, 7 }
uselistorder %_IO_FILE* %38, { 3, 1, 2, 4, 0, 5 }
uselistorder i8* %8, { 0, 2, 1 }
uselistorder i64* %sv_12, { 0, 3, 1, 2 }
uselistorder i32* %sv_8, { 1, 3, 2, 0, 4 }
uselistorder i64* %sv_7, { 1, 0 }
uselistorder i8** %sv_4, { 3, 2, 0, 1 }
uselistorder i64 %3, { 5, 7, 6, 8, 9, 11, 10, 4, 12, 3, 2, 13, 1, 14, 0, 15, 16, 17, 18 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i8** %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem16, { 1, 0, 2 }
uselistorder i32* %storemerge9.reg2mem, { 1, 0, 2 }
uselistorder %_IO_FILE** %sv_1.014.reg2mem, { 0, 4, 2, 3, 1 }
uselistorder %_IO_FILE** %sv_0.113.reg2mem, { 0, 4, 2, 3, 1 }
uselistorder %_IO_FILE** %sv_1.08.reg2mem, { 0, 2, 1, 3 }
uselistorder %_IO_FILE** %sv_0.17.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i32 (i32)* @close, { 1, 0 }
uselistorder i64 (i64, i8*, i64)* @mg_write, { 1, 0 }
uselistorder i64 (i64, i8*, i32, i64, i64, i64)* @mg_printf, { 1, 0 }
uselistorder i8 32, { 1, 0 }
uselistorder i16 0, { 1, 0 }
uselistorder i16 2048, { 1, 0 }
uselistorder i64 2, { 2, 0, 1 }
uselistorder i16** ()* @__ctype_b_loc, { 1, 0 }
uselistorder i64 (i64*, i8*)* @get_header, { 3, 2, 1, 0 }
uselistorder i32 (%_IO_FILE*)* @fclose, { 2, 0, 1 }
uselistorder i64 4294967295, { 0, 3, 2, 4, 1 }
uselistorder %_IO_FILE* (i32, i8*)* @fdopen, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i8*, i64, i64)* @send_http_error, { 3, 2, 1, 0 }
uselistorder i8* (i32)* @strerror, { 0, 2, 1 }
uselistorder i1 false, { 2, 3, 0, 4, 1, 5, 6, 7, 8 }
uselistorder i32 0, { 0, 1, 3, 4, 5, 2, 6, 7, 8, 9, 10 }
uselistorder i32 ([2 x i32])* @pipe, { 1, 0 }
uselistorder i32 -1, { 3, 4, 0, 2, 6, 1, 5, 7 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i8* null, { 1, 2, 0 }
uselistorder %_IO_FILE* null, { 9, 10, 5, 4, 7, 6, 8, 0, 2, 1, 3, 11 }
uselistorder i64 %arg2, { 1, 0, 2, 3 }
uselistorder label LBL_33, { 1, 0 }
uselistorder label LBL_31, { 1, 0 }
uselistorder label LBL_29, { 2, 0, 1 }
uselistorder label LBL_28, { 0, 2, 3, 1 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_21, { 2, 3, 0, 1 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.