dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | bm_fill_12793 | bm_fill | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 4
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = zext i32 %3 to i64
ret i64 %4
} | 1 |
BinRealVul | __tpacket_has_room_10677 | __tpacket_has_room | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = trunc i64 %arg2 to i32
%4 = trunc i64 %1 to i32
%5 = add i32 %4, 1
%6 = add i64 %2, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %3, 0
store i32 %8, i32* %sv_0.0.reg2mem
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = urem i32 %3, 32
%11 = ashr i32 %5, %10
%12 = add i32 %8, %11
store i32 %12, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%13 = icmp slt i32 %sv_0.0.reload, %5
%14 = select i1 %13, i32 0, i32 %5
%spec.select = sub i32 %sv_0.0.reload, %14
%15 = call i64 @FUNC(i64 %2, i64 %2, i32 %spec.select, i64 0)
ret i64 %15
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %8, { 1, 0 }
uselistorder i32 %5, { 0, 2, 1 }
} | 0 |
BinRealVul | update_and_free_page_10077 | update_and_free_page | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem = alloca i64
%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
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC()
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
store i64 %6, i64* %rax.0.reg2mem
br i1 %8, label LBL_7, label LBL_2
LBL_2:
%9 = trunc i64 %1 to i32
%10 = add i32 %9, -1
%11 = bitcast i64* %arg1 to i32*
store i32 %10, i32* %11, align 4
%12 = call i64 @FUNC(i64 %arg2)
%sext = mul i64 %12, 4294967296
%13 = ashr exact i64 %sext, 30
%14 = add i64 %2, 4
%15 = add i64 %14, %13
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i32 %17, -1
store i32 %18, i32* %16, align 4
%19 = call i64 @FUNC(i64 %2)
%20 = icmp sgt i64 %19, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge2.reg2mem
br i1 %20, label LBL_3, label LBL_4
LBL_3:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%.reload = load i64, i64* %.reg2mem
%21 = mul i64 %.reload, 4
%22 = add i64 %21, %arg2
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = and i32 %24, -128
store i32 %25, i32* %23, align 4
%26 = add i32 %storemerge2.reload, 1
%27 = call i64 @FUNC(i64 %2)
%28 = sext i32 %26 to i64
%29 = icmp sgt i64 %27, %28
store i64 %28, i64* %.reg2mem
store i32 %26, i32* %storemerge2.reg2mem
br i1 %29, label LBL_3, label LBL_4
LBL_4:
%30 = call i64 @FUNC(i64 %arg2)
%31 = and i64 %30, 4294967295
%32 = call i64 @FUNC(i64 %31, i64 %arg2)
%33 = call i64 @FUNC(i64 %arg2, i64 0)
%34 = call i64 @FUNC(i64 %arg2)
%35 = call i64 @FUNC(i64 %2)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
%38 = call i64 @FUNC(i64 %2)
%39 = and i64 %38, 4294967295
br i1 %37, label LBL_6, label LBL_5
LBL_5:
%40 = call i64 @FUNC(i64 %arg2, i64 %39)
%41 = call i64 @FUNC(i64 %2)
%42 = and i64 %41, 4294967295
%43 = call i64 @FUNC(i64 %arg2, i64 %42)
store i64 %43, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%44 = call i64 @FUNC(i64 %arg2, i64 %39)
store i64 %44, 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 %39, { 1, 0 }
uselistorder i64 %2, { 2, 1, 3, 4, 0, 5, 6 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 4294967295, { 1, 0, 2 }
uselistorder i64 (i64)* @pages_per_huge_page, { 1, 0 }
uselistorder i32 0, { 1, 0, 2, 3, 4 }
uselistorder i64 (i64)* @hstate_is_gigantic, { 1, 0 }
uselistorder i64 %arg2, { 1, 2, 3, 7, 6, 5, 4, 0, 8 }
uselistorder label LBL_7, { 1, 2, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | crossOriginDirective_3630 | crossOriginDirective | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8*, align 8
%sv_1 = alloca i64, align 8
%5 = call i64 @FUNC(i64 %arg3)
store i64 %5, i64* %sv_1, align 8
%6 = call i64 @FUNC(i64 %5, i64* nonnull %sv_1)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 %5, i64* %.lcssa.reg2mem
br i1 %8, label LBL_1, label LBL_12
LBL_1:
%9 = bitcast i8** %sv_0 to i64*
%10 = add i64 %4, 8
%11 = inttoptr i64 %10 to i32*
%12 = add i64 %4, 16
%13 = inttoptr i64 %12 to i64*
%14 = add i64 %4, 24
%15 = inttoptr i64 %14 to i32*
store i64 %6, i64* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
%16 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %9)
%17 = load i8*, i8** %sv_0, align 8
%18 = ptrtoint i8* %17 to i64
%19 = call i64 @FUNC(i64 %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 1)
%20 = inttoptr i64 %19 to i8*
store i8* %20, i8** %sv_0, align 8
%21 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_5, label LBL_3
LBL_3:
%24 = load i8*, i8** %sv_0, align 8
%25 = ptrtoint i8* %24 to i64
%26 = call i64 @FUNC(i64 %25)
store i64 %26, i64* %arg1, align 8
br label LBL_4
LBL_4:
%27 = load i64, i64* %sv_1, align 8
%28 = call i64 @FUNC(i64 %27, i64* nonnull %sv_1)
%29 = icmp eq i64 %28, 0
%30 = icmp eq i1 %29, false
store i64 %28, i64* %.reg2mem
store i64 %27, i64* %.lcssa.reg2mem
br i1 %30, label LBL_2, label LBL_12
LBL_5:
%31 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_3, i64 0, i64 0))
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 0
br i1 %33, label LBL_7, label LBL_6
LBL_6:
%34 = load i8*, i8** %sv_0, align 8
%35 = ptrtoint i8* %34 to i64
%36 = call i64 @FUNC(i64 %35)
%37 = trunc i64 %36 to i32
store i32 %37, i32* %11, align 4
br label LBL_4
LBL_7:
%38 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_4, i64 0, i64 0))
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label LBL_9, label LBL_8
LBL_8:
%41 = load i8*, i8** %sv_0, align 8
%42 = ptrtoint i8* %41 to i64
%43 = call i64 @FUNC(i64 %42)
store i64 %43, i64* %13, align 8
br label LBL_4
LBL_9:
%44 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0))
%45 = trunc i64 %44 to i32
%46 = icmp eq i32 %45, 0
br i1 %46, label LBL_11, label LBL_10
LBL_10:
%47 = load i8*, i8** %sv_0, align 8
%48 = call i32 @atoi(i8* %47)
store i32 %48, i32* %15, align 4
br label LBL_4
LBL_11:
%49 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_6, i64 0, i64 0), i64 0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_7, i64 0, i64 0), i64 %16, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_16
LBL_12:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%50 = call i64 @FUNC(i64 %.lcssa.reload, i64* nonnull @gv_8)
%51 = trunc i64 %50 to i32
%52 = icmp eq i32 %51, 0
br i1 %52, label LBL_15, label LBL_13
LBL_13:
%53 = add i64 %4, 8
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = icmp eq i32 %55, 0
br i1 %56, label LBL_15, label LBL_14
LBL_14:
%57 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_6, i64 0, i64 0), i64 0, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @gv_9, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_16
LBL_15:
%58 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_10, i64 0, i64 0))
%59 = add i64 %4, 28
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = or i32 %61, 1
store i32 %62, i32* %60, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_1, { 1, 2, 0, 3 }
uselistorder i8** %sv_0, { 5, 4, 3, 2, 1, 0, 6 }
uselistorder i64 %4, { 2, 1, 0, 5, 4, 3 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_6, i64 0, i64 0), { 1, 0 }
uselistorder i64 (i64, i8*)* @scaselessmatch, { 3, 2, 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 (i64, i64*)* @maGetNextArg, { 1, 0 }
uselistorder i64 (i64)* @sclone, { 2, 1, 0 }
uselistorder label LBL_16, { 0, 2, 1 }
uselistorder label LBL_4, { 3, 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | identity_count_5755 | identity_count | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = inttoptr i64 %arg2 to i8*
%4 = call i32 @strlen(i8* %3)
%5 = inttoptr i64 %arg3 to i8*
%6 = call i32 @strlen(i8* %5)
%7 = add i32 %6, %4
%8 = mul i32 %7, 3
%9 = add i32 %2, 2
%10 = add i32 %9, %8
store i32 %10, i32* %arg1, align 4
ret i64 1
uselistorder i32 (i8*)* @strlen, { 1, 0 }
} | 0 |
BinRealVul | brcmf_find_wpaie_10951 | brcmf_find_wpaie | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
store i64 %0, i64* %sv_1, align 8
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
store i64 %1, i64* %sv_0, align 8
%2 = bitcast i64* %sv_0 to i32*
%3 = and i64 %1, 4294967295
%4 = call i64 @FUNC(i64 %0, i64 %3, i64 221)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_3
LBL_1:
%.reload = load i64, i64* %.reg2mem
%7 = call i64 @FUNC(i64 %.reload, i64* nonnull %sv_1, i32* nonnull %2, i64 4202512, i64 3, i64 1)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
store i64 %.reload, i64* %storemerge.reg2mem
br i1 %9, label LBL_1.dec_label_pc_4012e4_crit_edge, label LBL_3
LBL_2:
%.pre = load i64, i64* %sv_0, align 8
%.pre2 = load i64, i64* %sv_1, align 8
%10 = and i64 %.pre, 4294967295
%11 = call i64 @FUNC(i64 %.pre2, i64 %10, i64 221)
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 %11, i64* %.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %13, label LBL_1, label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %sv_0, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64 1, { 1, 2, 3, 0, 4, 5 }
uselistorder i1 false, { 2, 0, 3, 1, 4, 5, 6 }
uselistorder i64 (i64, i64, i64)* @brcmf_parse_tlvs, { 1, 0 }
uselistorder i64 221, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
reposvul_c_test | redisSupervisedSystemd_48 | redisSupervisedSystemd | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0))
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp slt i32 %1, 0
%4 = icmp eq i1 %3, false
%5 = icmp eq i1 %2, false
%6 = icmp eq i1 %4, %5
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%7 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([128 x i8], [128 x i8]* @gv_1, i64 0, i64 0))
store i64 1, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 0, 2, 3 }
uselistorder i32 1, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | hyper_getpwnam_7277 | hyper_getpwnam | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1)
%1 = call %_IO_FILE* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0))
%2 = icmp eq %_IO_FILE* %1, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = trunc i64 %0 to i32
%5 = inttoptr i64 %arg1 to i8*
%6 = icmp eq i32 %4, -1
br label LBL_3
LBL_2:
call void @perror(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_2, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_3:
%7 = call %passwd* @fgetpwent(%_IO_FILE* %1)
%8 = icmp eq %passwd* %7, null
br i1 %8, label LBL_7, label LBL_4
LBL_4:
%9 = ptrtoint %passwd* %7 to i64
%10 = add i64 %9, 16
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, %4
br i1 %13, label LBL_6, label LBL_5
LBL_5:
%14 = bitcast %passwd* %7 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i8*
%17 = call i32 @strcmp(i8* %16, i8* %5)
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %6, %18
br i1 %19, label LBL_6, label LBL_3
LBL_6:
%20 = call i32 @fclose(%_IO_FILE* %1)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%21 = call i32 @fclose(%_IO_FILE* %1)
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 %passwd* %7, { 0, 2, 1 }
uselistorder i32 %4, { 1, 0 }
uselistorder %_IO_FILE* %1, { 1, 0, 2, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 (%_IO_FILE*)* @fclose, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | kvm_vcpu_destroy_5944 | kvm_vcpu_destroy | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = add i64 %arg1, 16
%2 = call i64 @FUNC(i64 %1)
%3 = add i64 %arg1, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = sext i32 %5 to i64
%7 = call i64 @FUNC(i64 %6, i64 1)
%8 = and i64 %7, 4294967295
%9 = call i64 @FUNC(i64 %8)
%10 = call i64 @FUNC(i64 %8)
%11 = load i64, i64* @gv_0, align 8
%12 = call i64 @FUNC(i64 %11, i64 %arg1)
ret i64 %12
uselistorder i64 %8, { 1, 0 }
} | 0 |
BinRealVul | vga_update_memory_access_3438 | vga_update_memory_access | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
store i64 %0, i64* %rax.0.reg2mem
br i1 %1, label LBL_12, label LBL_1
LBL_1:
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = add i64 %0, 1048
%7 = call i64 @FUNC(i64 %0, i64 %6)
%8 = call i64 @FUNC(i64 %6)
store i32 0, i32* %3, align 4
%9 = add i64 %0, 12
%10 = inttoptr i64 %9 to i32*
store i32 15, i32* %10, align 4
br label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 %0, i64 0)
%12 = urem i64 %11, 256
%13 = icmp eq i64 %12, 255
%14 = icmp eq i1 %13, false
store i64 %12, i64* %rax.0.reg2mem
br i1 %14, label LBL_12, label LBL_4
LBL_4:
%15 = call i64 @FUNC(i64 %0, i64 1)
%16 = urem i64 %15, 256
%17 = icmp eq i64 %16, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_12, label LBL_5
LBL_5:
%18 = add i64 %0, 24
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = udiv i32 %20, 4
%22 = urem i32 %21, 4
store i64 0, i64* %sv_2.0.reg2mem
store i64 655360, i64* %sv_1.0.reg2mem
store i64 131072, i64* %sv_0.0.reg2mem
switch i32 %22, label LBL_8 [
i32 2, label LBL_7
i32 1, label LBL_6
i32 0, label LBL_9
]
LBL_6:
%23 = add i64 %0, 16
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = sext i32 %25 to i64
store i64 %26, i64* %sv_2.0.reg2mem
store i64 655360, i64* %sv_1.0.reg2mem
store i64 65536, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_7:
store i64 0, i64* %sv_2.0.reg2mem
store i64 720896, i64* %sv_1.0.reg2mem
store i64 32768, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_8:
store i64 0, i64* %sv_2.0.reg2mem
store i64 753664, i64* %sv_1.0.reg2mem
store i64 32768, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%27 = add nsw i64 %sv_0.0.reload, %sv_2.0.reload
%28 = add i64 %0, 20
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = sext i32 %30 to i64
%32 = icmp ugt i64 %27, %31
br i1 %32, label LBL_10, label LBL_11
LBL_10:
call void @__assert_fail(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @gv_1, i64 0, i64 0), i32 83, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_2, i64 0, i64 0))
br label LBL_11
LBL_11:
%33 = add i64 %0, 1056
%34 = call i64 @FUNC(i64 %33)
%35 = add i64 %0, 1048
%36 = call i64 @FUNC(i64 %35, i64 %34, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0), i64 %33, i64 %sv_2.0.reload, i64 %sv_0.0.reload)
%37 = call i64 @FUNC(i64 %35, i64 %sv_1.0.reload, i64 %35, i64 2)
store i32 1, i32* %3, align 4
store i64 %0, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %33, { 1, 0 }
uselistorder i64 %0, { 0, 6, 5, 7, 4, 8, 9, 10, 2, 3, 12, 11, 1 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 3, 4, 2, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 3, 4, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 4, 2, 1 }
uselistorder i64 655360, { 1, 0 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 (i64, i64)* @sr, { 1, 0 }
uselistorder label LBL_12, { 1, 2, 3, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 2, 3, 0 }
} | 0 |
BinRealVul | prores_encode_close_1317 | prores_encode_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %0)
ret i64 0
uselistorder i64 (i64)* @av_freep, { 1, 0 }
} | 0 |
BinRealVul | qemu_dummy_cpu_thread_fn_18602 | qemu_dummy_cpu_thread_fn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%1 = call i32 @fwrite(i64* bitcast ([38 x i8]* @gv_1 to i64*), i32 1, i32 37, %_IO_FILE* %0)
call void @exit(i32 1)
ret i64 ptrtoint (i32* @0 to i64)
} | 1 |
BinRealVul | dac3_box_write_6430 | dac3_box_write | define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i1
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i1 true, i1* %.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
store i32 1, i32* %arg1, align 4
store i1 false, i1* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i1, i1* %.reg2mem
%4 = ptrtoint i32* %arg2 to i64
%5 = ptrtoint i32* %arg1 to i64
%6 = call i64 @FUNC(i64 %5, i64 %4)
br i1 %.reload, label LBL_4, label LBL_3
LBL_3:
store i32 2, i32* %arg1, align 4
br label LBL_4
LBL_4:
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_6, label LBL_5
LBL_5:
%9 = and i64 %6, 4294967295
store i64 %9, i64* %rax.0.reg2mem
br label LBL_11
LBL_6:
%10 = call i64 @FUNC(i64 %5, i64 %4)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_8, label LBL_7
LBL_7:
%13 = and i64 %10, 4294967295
store i64 %13, i64* %rax.0.reg2mem
br label LBL_11
LBL_8:
%14 = add i64 %5, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
%.pre = add i64 %5, 8
%.pre4 = inttoptr i64 %.pre to i32*
br i1 %18, label LBL_10, label LBL_9
LBL_9:
%19 = load i32, i32* %.pre4, align 4
%20 = icmp eq i32 %19, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %20, label LBL_11, label LBL_10
LBL_10:
%21 = call i64 @FUNC(i64 %4, i64 0, i64 7)
%22 = load i32, i32* %15, align 4
%23 = zext i32 %22 to i64
%24 = call i64 @FUNC(i64 %4, i64 %23, i64 1)
%25 = load i32, i32* %.pre4, align 4
%26 = urem i32 %25, 256
%27 = zext i32 %26 to i64
%28 = call i64 @FUNC(i64 %4, i64 %27)
store i64 0, 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 i1* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i64 (i64, i64, i64)* @gf_bs_write_int, { 1, 0 }
uselistorder i32* %arg1, { 1, 2, 0 }
uselistorder label LBL_11, { 1, 0, 2, 3 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | get_std_framerate_16092 | get_std_framerate | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = trunc i64 %arg1 to i32
%sext = mul i64 %arg1, 4294967296
%1 = icmp sgt i32 %0, 719
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = ashr exact i64 %sext, 32
%3 = mul nsw i64 %2, 1001
%4 = and i64 %3, 4294967295
store i64 %4, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%5 = ptrtoint i64* %sv_0 to i64
%sext3 = add i64 %sext, -3092376453120
%6 = ashr exact i64 %sext3, 30
%7 = add nsw i64 %6, -32
%8 = add i64 %7, %5
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = mul i32 %10, 12000
%12 = zext i32 %11 to i64
store i64 %12, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sext, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | __glXDisp_BindTexImageEXT_11595 | __glXDisp_BindTexImageEXT | 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
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%3 = add i64 %arg2, 12
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 4294967295)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_8
LBL_2:
%8 = add i64 %arg2, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = ptrtoint i64* %arg1 to i64
%12 = and i64 %2, 4294967295
%13 = bitcast i32* %sv_1 to i64*
%14 = call i64 @FUNC(i64 %11, i64 %12, i64* nonnull %13)
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = load i32, i32* %sv_1, align 4
%18 = zext i32 %17 to i64
store i64 %18, i64* %rax.0.reg2mem
br label LBL_8
LBL_4:
%19 = sext i32 %10 to i64
%20 = and i64 %1, 4294967295
%21 = call i64 @FUNC(i64 %20, i64 %19, i64 1, i64 1, i64* nonnull %sv_0, i64* nonnull %13)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%25 = load i32, i32* %sv_1, align 4
%26 = zext i32 %25 to i64
store i64 %26, i64* %rax.0.reg2mem
br label LBL_8
LBL_6:
%27 = inttoptr i64 %14 to i64*
%28 = load i64, i64* %27, align 8
%29 = icmp eq i64 %28, 0
%30 = icmp eq i1 %29, false
store i64 %14, i64* %rax.0.reg2mem
br i1 %30, label LBL_8, label LBL_7
LBL_7:
%31 = call i64 @FUNC(i64 4294967294)
store i64 %31, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 4, 3, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 0, { 3, 4, 0, 1, 2 }
uselistorder i64 (i64)* @__glXError, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_8, { 1, 0, 2, 3, 4 }
} | 1 |
BinRealVul | vfio_start_irqfd_injection_1828 | vfio_start_irqfd_injection | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.in6.reg2mem = alloca i64
%storemerge.in.lcssa.reg2mem = alloca i64
%storemerge.in8.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sext = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = call i64 @FUNC()
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_14, label LBL_1
LBL_1:
%8 = trunc i64 %3 to i32
%9 = call i64 @FUNC()
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i32 %8, 0
%or.cond = or i1 %12, %11
br i1 %or.cond, label LBL_14, label LBL_2
LBL_2:
%13 = ptrtoint i32* %arg1 to i64
%14 = add i64 %13, 8
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
%17 = trunc i64 %4 to i32
store i64 %14, i64* %storemerge.in8.reg2mem
store i64 %14, i64* %storemerge.in.lcssa.reg2mem
br i1 %16, label LBL_3, label LBL_5
LBL_3:
%storemerge.in8.reload = load i64, i64* %storemerge.in8.reg2mem
%storemerge = inttoptr i64 %storemerge.in8.reload to i32*
%18 = load i32, i32* %storemerge, align 4
%19 = icmp eq i32 %18, %17
store i64 %storemerge.in8.reload, i64* %storemerge.in6.reg2mem
br i1 %19, label LBL_6, label LBL_4
LBL_4:
%20 = add i64 %storemerge.in8.reload, 24
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp eq i64 %22, 0
%24 = icmp eq i1 %23, false
store i64 %22, i64* %storemerge.in8.reg2mem
store i64 %22, i64* %storemerge.in.lcssa.reg2mem
br i1 %24, label LBL_3, label LBL_5
LBL_5:
%storemerge.in.lcssa.reload = load i64, i64* %storemerge.in.lcssa.reg2mem
call void @__assert_fail(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_1, i64 0, i64 0), i32 89, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0))
store i64 %storemerge.in.lcssa.reload, i64* %storemerge.in6.reg2mem
br label LBL_6
LBL_6:
%storemerge.in6.reload = load i64, i64* %storemerge.in6.reg2mem
%25 = add i64 %storemerge.in6.reload, 16
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = add i64 %storemerge.in6.reload, 8
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = load i64, i64* @gv_3, align 8
%32 = call i64 @FUNC(i64 %31, i64 %30, i64 %27, i32 %17)
%33 = trunc i64 %32 to i32
%34 = icmp slt i32 %33, 0
br i1 %34, label LBL_14, label LBL_7
LBL_7:
%35 = call i64 @FUNC(i64 %storemerge.in6.reload, i64 0)
%36 = trunc i64 %35 to i32
%37 = icmp slt i32 %36, 0
br i1 %37, label LBL_13, label LBL_8
LBL_8:
%38 = call i64 @FUNC(i64 %storemerge.in6.reload)
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label LBL_11, label LBL_9
LBL_9:
%41 = call i64 @FUNC(i64 %storemerge.in6.reload)
%42 = trunc i64 %41 to i32
%43 = icmp slt i32 %42, 0
br i1 %43, label LBL_13, label LBL_10
LBL_10:
%44 = load i64, i64* %26, align 8
%45 = call i64 @FUNC(i64 %44)
%46 = load i64, i64* %29, align 8
%47 = call i64 @FUNC(i64 %46)
%48 = add i64 %storemerge.in6.reload, 4
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = and i64 %45, 4294967295
%52 = and i64 %47, 4294967295
%53 = zext i32 %50 to i64
%54 = call i64 @FUNC(i64 %53, i64 %52, i64 %51)
br label LBL_12
LBL_11:
%55 = load i64, i64* %29, align 8
%56 = call i64 @FUNC(i64 %55)
%57 = add i64 %storemerge.in6.reload, 4
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = and i64 %56, 4294967295
%61 = zext i32 %59 to i64
%62 = call i64 @FUNC(i64 %61, i64 %60)
br label LBL_12
LBL_12:
%63 = add i64 %storemerge.in6.reload, 32
%64 = inttoptr i64 %63 to i8*
store i8 1, i8* %64, align 1
store i64 %storemerge.in6.reload, i64* %rax.0.reg2mem
br label LBL_15
LBL_13:
%65 = load i64, i64* %29, align 8
%66 = load i64, i64* @gv_3, align 8
%67 = and i64 %4, 4294967295
%68 = call i64 @FUNC(i64 %66, i64 %65, i32 %17)
%69 = add i64 %storemerge.in6.reload, 4
%70 = inttoptr i64 %69 to i32*
%71 = load i32, i32* %70, align 4
%72 = zext i32 %71 to i64
%73 = call i64 @FUNC(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_4, i64 0, i64 0), i64 %72, i64 %67, i64 %65, i64 %2, i64 %1)
%74 = call i64 @FUNC()
unreachable
LBL_14:
%75 = ptrtoint i32* %arg1 to i64
%76 = and i64 %4, 4294967295
%77 = call i64 @FUNC(i64 %75, i64 %76)
store i64 %77, 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 %65, { 1, 0 }
uselistorder i64* %29, { 2, 1, 0, 3 }
uselistorder i64 %storemerge.in6.reload, { 1, 0, 2, 4, 3, 5, 6, 7, 8, 9 }
uselistorder i64 %storemerge.in8.reload, { 1, 0, 2 }
uselistorder i64 %4, { 2, 0, 1 }
uselistorder i64* %storemerge.in8.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.in6.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 4294967295, { 0, 2, 1, 3, 4 }
uselistorder i64 (i64)* @event_notifier_get_fd, { 2, 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i32* %arg1, { 1, 0 }
uselistorder label LBL_14, { 0, 2, 1 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | ax25_disconnect_12000 | ax25_disconnect | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1)
%1 = icmp eq i64 %arg1, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %arg1, i64 8)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %arg1)
br label LBL_3
LBL_3:
%sext = mul i64 %arg2, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = call i64 @FUNC(i64 %arg1)
%9 = call i64 @FUNC(i64 %arg1)
%10 = call i64 @FUNC(i64 %arg1)
%11 = call i64 @FUNC(i64 %arg1)
%12 = add i64 %arg1, 8
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
%14 = and i64 %7, 4294967295
%15 = call i64 @FUNC(i64 %arg1, i64 %14)
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_7, label LBL_4
LBL_4:
%16 = call i64 @FUNC()
%17 = call i64 @FUNC(i64 %arg1)
%18 = inttoptr i64 %arg1 to i32*
store i32 1, i32* %18, align 4
%19 = trunc i64 %7 to i32
%20 = add i64 %arg1, 4
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
%22 = load i32, i32* %13, align 4
%23 = or i32 %22, 2
store i32 %23, i32* %13, align 4
%24 = call i64 @FUNC(i64 %arg1, i64 4)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_6, label LBL_5
LBL_5:
%28 = call i64 @FUNC(i64 %arg1, i64 4)
br label LBL_6
LBL_6:
%29 = call i64 @FUNC(i64 %arg1)
%30 = call i64 @FUNC()
store i64 %30, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %13, { 1, 0, 2 }
uselistorder i64 (i64, i64)* @sock_flag, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i32 1, { 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 2, 1, 6, 5, 4, 3, 7, 12, 11, 10, 9, 8, 13, 0, 14, 15 }
} | 1 |
BinRealVul | Jsi_ValueGetStringLen_10695 | Jsi_ValueGetStringLen | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%0 = icmp eq i64 %arg2, 0
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_8
LBL_1:
%2 = call i64 @FUNC(i64 %arg2)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_2, label LBL_8
LBL_2:
%5 = icmp eq i64* %arg3, null
br i1 %5, label LBL_7, label LBL_3
LBL_3:
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp slt i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%11 = inttoptr i64 %2 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12)
store i64 %13, i64* %storemerge.reg2mem
br label LBL_6
LBL_5:
%14 = zext i32 %8 to i64
store i64 %14, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%15 = trunc i64 %storemerge.reload to i32
%16 = bitcast i64* %arg3 to i32*
store i32 %15, i32* %16, align 4
br label LBL_7
LBL_7:
%17 = inttoptr i64 %2 to i64*
%18 = load i64, i64* %17, align 8
store i64 %18, 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* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_8, { 2, 0, 1 }
} | 0 |
BinRealVul | pasp_Write_10054 | pasp_Write | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = call i64 @FUNC(i64 %arg1, i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = and i64 %3, 4294967295
store i64 %6, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%7 = and i64 %1, 4294967295
%8 = call i64 @FUNC(i64 %2, i64 %7)
%9 = add i64 %arg1, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = zext i32 %11 to i64
%13 = call i64 @FUNC(i64 %2, i64 %12)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @gf_bs_write_u32, { 1, 0 }
} | 0 |
BinRealVul | msrle_decode_init_17265 | msrle_decode_init | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 24
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
store i64 %4, i64* %8, align 8
%9 = bitcast i64* %rdi to i32*
%10 = load i32, i32* %9, align 8
%11 = icmp eq i32 %10, 24
br i1 %11, label LBL_7, label LBL_1
LBL_1:
%12 = icmp sgt i32 %10, 24
br i1 %12, label LBL_8, label LBL_2
LBL_2:
%13 = icmp eq i32 %10, 8
br i1 %13, label LBL_6, label LBL_3
LBL_3:
%14 = icmp sgt i32 %10, 8
br i1 %14, label LBL_8, label LBL_4
LBL_4:
switch i32 %10, label LBL_8 [
i32 1, label LBL_5
i32 4, label LBL_6
]
LBL_5:
%15 = add i64 %4, 4
%16 = inttoptr i64 %15 to i32*
store i32 1, i32* %16, align 4
br label LBL_9
LBL_6:
%17 = add i64 %4, 4
%18 = inttoptr i64 %17 to i32*
store i32 2, i32* %18, align 4
br label LBL_9
LBL_7:
%19 = add i64 %4, 4
%20 = inttoptr i64 %19 to i32*
store i32 3, i32* %20, align 4
br label LBL_9
LBL_8:
%21 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_12
LBL_9:
%22 = add i64 %7, 8
%23 = call i64 @FUNC(i64 %22)
%24 = inttoptr i64 %22 to i64*
store i64 0, i64* %24, align 8
%25 = add i64 %4, 8
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp slt i32 %27, 256
store i64 0, i64* %storemerge.reg2mem
br i1 %28, label LBL_12, label LBL_10
LBL_10:
%29 = add i64 %4, 16
%30 = inttoptr i64 %29 to i64*
%31 = add i64 %7, 16
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_11
LBL_11:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%32 = load i64, i64* %30, align 8
%33 = mul i64 %indvars.iv.reload, 4
%34 = add i64 %32, %33
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = or i32 %36, -16777216
%38 = add i64 %31, %33
%39 = inttoptr i64 %38 to i32*
store i32 %37, i32* %39, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 64
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %exitcond, label LBL_12, label LBL_11
LBL_12:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %33, { 1, 0 }
uselistorder i64 %4, { 3, 4, 2, 5, 1, 0, 6, 7 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i32 8, { 1, 0 }
} | 1 |
BinRealVul | cmd_parse_status_7768 | cmd_parse_status | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.1.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i8*
%.reg2mem50 = alloca i8*
%sv_1.0.shrunk.reg2mem = alloca i1
%.reg2mem48 = alloca i8*
%sv_0.217.reg2mem = alloca i8*
%storemerge18.reg2mem = alloca i32*
%sv_2.1.lcssa.reg2mem = alloca i16
%.reg2mem46 = alloca i32
%.reg2mem44 = alloca i32
%.pre-phi30.reg2mem = alloca i32*
%.pre-phi34.reg2mem = alloca i32*
%.pre-phi38.reg2mem = alloca i32*
%sv_3.0.be.ptr.reg2mem = alloca i8*
%.reg2mem42 = alloca i8
%sv_2.0.reg2mem = alloca i16
%sv_2.122.reg2mem = alloca i16
%.reg2mem = alloca i8*
%storemerge7.in.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i32, i32* %0
%sv_4 = alloca i8*, align 8
store i8* null, i8** %sv_4, align 8
%3 = bitcast i64* %arg2 to i8*
%4 = call i8* @strtok(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%5 = add i64 %1, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = zext i32 %2 to i64
%9 = add i64 %7, %8
%10 = inttoptr i64 %9 to i8*
store i8 0, i8* %10, align 1
store i64 %9, i64* %storemerge7.in.reg2mem
br label LBL_1
LBL_1:
%storemerge7.in.reload = load i64, i64* %storemerge7.in.reg2mem
%storemerge7 = add i64 %storemerge7.in.reload, 1
%11 = inttoptr i64 %storemerge7 to i8*
%12 = load i8, i8* %11, align 1
%13 = icmp eq i8 %12, 32
store i64 %storemerge7, i64* %storemerge7.in.reg2mem
br i1 %13, label LBL_1, label LBL_2
LBL_2:
%14 = call i64* @malloc(i32 32)
%15 = load i8, i8* %11, align 1
%16 = icmp eq i8 %15, 40
br i1 %16, label LBL_3, label LBL_6
LBL_3:
%17 = ptrtoint i64* %14 to i64
%18 = add i64 %17, 8
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i64 %17, 12
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = add i64 %storemerge7.in.reload, 2
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = icmp ne i8 %26, 0
%28 = icmp eq i8 %26, 41
%29 = icmp eq i1 %28, false
%or.cond1021 = icmp eq i1 %27, %29
br i1 %or.cond1021, label LBL_5, label LBL_3.LBL_24_crit_edge
LBL_4:
%.pre28 = add i64 %17, 24
%.pre29 = inttoptr i64 %.pre28 to i32*
%.pre31 = add i64 %17, 20
%.pre33 = inttoptr i64 %.pre31 to i32*
%.pre35 = add i64 %17, 16
%.pre37 = inttoptr i64 %.pre35 to i32*
store i32* %.pre37, i32** %.pre-phi38.reg2mem
store i32* %.pre33, i32** %.pre-phi34.reg2mem
store i32* %.pre29, i32** %.pre-phi30.reg2mem
store i32 %20, i32* %.reg2mem44
store i32 %23, i32* %.reg2mem46
store i16 0, i16* %sv_2.1.lcssa.reg2mem
br label LBL_24
LBL_5:
%30 = add i64 %17, 16
%31 = inttoptr i64 %30 to i32*
%32 = add i64 %17, 20
%33 = inttoptr i64 %32 to i32*
%34 = add i64 %17, 24
%35 = inttoptr i64 %34 to i32*
store i8* %25, i8** %.reg2mem
store i16 0, i16* %sv_2.122.reg2mem
br label LBL_7
LBL_6:
%36 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0))
%37 = sext i32 %36 to i64
store i64 %37, i64* %rax.1.reg2mem
br label LBL_49
LBL_7:
%.reload = load i8*, i8** %.reg2mem
%38 = call i8* @strtok(i8* %.reload, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
store i8* %38, i8** %sv_4, align 8
%39 = call i32* @__errno_location()
store i32 0, i32* %39, align 4
%40 = load i8*, i8** %sv_4, align 8
%41 = call i32 @strtoul(i8* %40, i8** nonnull %sv_4, i32 10)
%42 = call i32* @__errno_location()
%43 = load i32, i32* %42, align 4
%44 = icmp eq i32 %43, 34
%45 = icmp eq i32 %41, -1
%or.cond = icmp eq i1 %45, %44
br i1 %or.cond, label LBL_9, label LBL_8
LBL_8:
%46 = zext i32 %41 to i64
%47 = sext i32 %41 to i64
%48 = icmp eq i64 %47, %46
br i1 %48, label LBL_10, label LBL_9
LBL_9:
%49 = call i32 @puts(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_2, i64 0, i64 0))
%50 = sext i32 %49 to i64
store i64 %50, i64* %rax.1.reg2mem
br label LBL_49
LBL_10:
%51 = call i32 @strncmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0), i8* %.reload, i32 8)
%52 = icmp eq i32 %51, 0
%53 = icmp eq i1 %52, false
br i1 %53, label LBL_12, label LBL_11
LBL_11:
store i32 %41, i32* %31, align 4
store i16 1, i16* %sv_2.0.reg2mem
br label LBL_20
LBL_12:
%sv_2.122.reload = load i16, i16* %sv_2.122.reg2mem
%54 = call i32 @strncmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0), i8* %.reload, i32 6)
%55 = icmp eq i32 %54, 0
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_14, label LBL_13
LBL_13:
store i32 %41, i32* %33, align 4
store i16 %sv_2.122.reload, i16* %sv_2.0.reg2mem
br label LBL_20
LBL_14:
%57 = call i32 @strncmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_5, i64 0, i64 0), i8* %.reload, i32 7)
%58 = icmp eq i32 %57, 0
%59 = icmp eq i1 %58, false
br i1 %59, label LBL_16, label LBL_15
LBL_15:
store i32 %41, i32* %22, align 4
store i16 %sv_2.122.reload, i16* %sv_2.0.reg2mem
br label LBL_20
LBL_16:
%60 = call i32 @strncmp(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_6, i64 0, i64 0), i8* %.reload, i32 11)
%61 = icmp eq i32 %60, 0
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_18, label LBL_17
LBL_17:
store i32 %41, i32* %19, align 4
store i16 %sv_2.122.reload, i16* %sv_2.0.reg2mem
br label LBL_20
LBL_18:
%63 = call i32 @strncmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_7, i64 0, i64 0), i8* %.reload, i32 6)
%64 = icmp eq i32 %63, 0
%65 = icmp eq i1 %64, false
store i16 %sv_2.122.reload, i16* %sv_2.0.reg2mem
br i1 %65, label LBL_20, label LBL_19
LBL_19:
store i32 %41, i32* %35, align 4
store i16 %sv_2.122.reload, i16* %sv_2.0.reg2mem
br label LBL_20
LBL_20:
%sv_2.0.reload = load i16, i16* %sv_2.0.reg2mem
%66 = load i8*, i8** %sv_4, align 8
%67 = load i8, i8* %66, align 1
store i8 %67, i8* %.reg2mem42
store i8 %67, i8* %.reg2mem42
store i8* %66, i8** %sv_3.0.be.ptr.reg2mem
store i8* %66, i8** %sv_3.0.be.ptr.reg2mem
switch i8 %67, label LBL_21 [
i8 0, label LBL_22
i8 41, label LBL_22
]
LBL_21:
%68 = call i8* @strtok(i8* %66, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%.pre = load i8, i8* %68, align 1
store i8 %.pre, i8* %.reg2mem42
store i8* %68, i8** %sv_3.0.be.ptr.reg2mem
br label LBL_22
LBL_22:
%sv_3.0.be.ptr.reload = load i8*, i8** %sv_3.0.be.ptr.reg2mem
%.reload43 = load i8, i8* %.reg2mem42
%69 = icmp ne i8 %.reload43, 0
%70 = icmp eq i8 %.reload43, 41
%71 = icmp eq i1 %70, false
%or.cond10 = icmp eq i1 %69, %71
store i8* %sv_3.0.be.ptr.reload, i8** %.reg2mem
store i16 %sv_2.0.reload, i16* %sv_2.122.reg2mem
br i1 %or.cond10, label LBL_7, label LBL_23
LBL_23:
%.pre25 = load i32, i32* %22, align 4
%.pre26 = load i32, i32* %19, align 4
store i32* %31, i32** %.pre-phi38.reg2mem
store i32* %33, i32** %.pre-phi34.reg2mem
store i32* %35, i32** %.pre-phi30.reg2mem
store i32 %.pre26, i32* %.reg2mem44
store i32 %.pre25, i32* %.reg2mem46
store i16 %sv_2.0.reload, i16* %sv_2.1.lcssa.reg2mem
br label LBL_24
LBL_24:
%sv_2.1.lcssa.reload = load i16, i16* %sv_2.1.lcssa.reg2mem
%.reload47 = load i32, i32* %.reg2mem46
%.reload45 = load i32, i32* %.reg2mem44
%.pre-phi30.reload = load i32*, i32** %.pre-phi30.reg2mem
%.pre-phi34.reload = load i32*, i32** %.pre-phi34.reg2mem
%.pre-phi38.reload = load i32*, i32** %.pre-phi38.reg2mem
%72 = load i32, i32* %.pre-phi30.reload, align 4
%73 = zext i32 %72 to i64
%74 = load i32, i32* %.pre-phi34.reload, align 4
%75 = load i32, i32* %.pre-phi38.reload, align 4
%76 = load i64, i64* %14, align 8
%77 = zext i32 %74 to i64
%78 = zext i32 %75 to i64
%79 = inttoptr i64 %76 to i8*
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @gv_8, i64 0, i64 0), i8* %79, i32 %.reload45, i32 %.reload47, i64 %78, i64 %77, i64 %73)
%81 = add i64 %1, 16
%82 = inttoptr i64 %81 to i64*
%83 = load i64, i64* %82, align 8
%84 = icmp eq i64 %83, 0
br i1 %84, label LBL_27, label LBL_25
LBL_25:
%85 = add i64 %1, 24
%86 = inttoptr i64 %85 to i32*
%87 = load i32, i32* %86, align 4
%88 = icmp eq i32 %87, 1
%89 = icmp eq i1 %88, false
br i1 %89, label LBL_27, label LBL_26
LBL_26:
%90 = inttoptr i64 %83 to i64*
%91 = call i64* @memcpy(i64* %90, i64* nonnull %14, i32 32)
%92 = ptrtoint i64* %91 to i64
store i64 %92, i64* %rax.1.reg2mem
br label LBL_49
LBL_27:
%93 = inttoptr i64 %7 to i8*
%94 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_9, i64 0, i64 0))
%95 = load i32*, i32** @gv_10, align 8
%96 = ptrtoint i32* %95 to i64
%97 = icmp eq i32* %95, null
%98 = icmp eq i1 %97, false
store i32* %95, i32** %storemerge18.reg2mem
store i64 %96, i64* %rax.1.reg2mem
br i1 %98, label LBL_28, label LBL_49
LBL_28:
%sv_0.217.reload = load i8*, i8** %sv_0.217.reg2mem
%storemerge18.reload = load i32*, i32** %storemerge18.reg2mem
%99 = load i32, i32* %storemerge18.reload, align 4
%100 = icmp eq i32 %99, 1
%101 = icmp eq i1 %100, false
store i8* %sv_0.217.reload, i8** %sv_0.1.reg2mem
br i1 %101, label LBL_48, label LBL_29
LBL_29:
%102 = icmp eq i8* %sv_0.217.reload, null
br i1 %102, label LBL_31, label LBL_30
LBL_30:
%103 = call i8* @strdup(i8* nonnull %sv_0.217.reload)
store i8* %103, i8** %sv_4, align 8
%104 = bitcast i8* %sv_0.217.reload to i64*
call void @free(i64* %104)
%.pr = load i8*, i8** %sv_4, align 8
store i8* %.pr, i8** %.reg2mem48
br label LBL_32
LBL_31:
%105 = call i8* @strdup(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_11, i64 0, i64 0))
store i8* %105, i8** %sv_4, align 8
store i8* %105, i8** %.reg2mem48
br label LBL_32
LBL_32:
%.reload49 = load i8*, i8** %.reg2mem48
%106 = icmp eq i8* %.reload49, null
store i8* null, i8** %.reg2mem50
br i1 %106, label LBL_47, label LBL_33
LBL_33:
%107 = call i32 @strcmp(i8* %93, i8* nonnull %.reload49)
%108 = icmp eq i32 %107, 0
%109 = icmp eq i1 %108, false
br i1 %109, label LBL_33.LBL_47_crit_edge, label LBL_35
LBL_34:
%.pre27 = load i8*, i8** %sv_4, align 8
store i8* %.pre27, i8** %.reg2mem50
br label LBL_47
LBL_35:
%110 = load i32, i32* %.pre-phi30.reload, align 4
%111 = zext i32 %110 to i64
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_12, i64 0, i64 0), i8* %93, i32 %20, i32 %23, i64 %111)
%113 = icmp eq i32 %20, 0
br i1 %113, label LBL_39, label LBL_36
LBL_36:
%114 = load i32, i32* %19, align 4
%115 = icmp eq i32 %20, %114
%116 = icmp eq i1 %115, false
br i1 %116, label LBL_41, label LBL_37
LBL_37:
%117 = load i32, i32* %22, align 4
%118 = icmp ult i32 %23, %117
%119 = icmp eq i1 %118, false
store i1 false, i1* %sv_1.0.shrunk.reg2mem
br i1 %119, label LBL_42, label LBL_38
LBL_38:
%120 = load i32, i32* %.pre-phi30.reload, align 4
%121 = icmp eq i32 %120, 0
%122 = icmp eq i1 %121, false
store i1 %122, i1* %sv_1.0.shrunk.reg2mem
br label LBL_42
LBL_39:
%123 = icmp eq i32 %23, 0
%124 = icmp eq i1 %123, false
br i1 %124, label LBL_41, label LBL_40
LBL_40:
%125 = load i32, i32* %.pre-phi34.reload, align 4
%126 = icmp eq i32 %125, 0
%127 = icmp eq i1 %126, false
store i1 %127, i1* %sv_1.0.shrunk.reg2mem
br label LBL_42
LBL_41:
%128 = load i32, i32* %.pre-phi30.reload, align 4
%129 = icmp eq i32 %128, 0
%130 = icmp eq i1 %129, false
store i1 %130, i1* %sv_1.0.shrunk.reg2mem
br label LBL_42
LBL_42:
%sv_1.0.shrunk.reload = load i1, i1* %sv_1.0.shrunk.reg2mem
%sv_1.0 = zext i1 %sv_1.0.shrunk.reload to i32
%131 = ptrtoint i32* %storemerge18.reload to i64
%132 = add i64 %131, 24
%133 = inttoptr i64 %132 to i32*
store i32 %sv_1.0, i32* %133, align 4
%134 = icmp eq i16 %sv_2.1.lcssa.reload, 0
br i1 %134, label LBL_44, label LBL_43
LBL_43:
%135 = load i32, i32* %.pre-phi38.reload, align 4
%136 = add i64 %131, 28
%137 = inttoptr i64 %136 to i32*
store i32 %135, i32* %137, align 4
br label LBL_44
LBL_44:
%138 = load i32, i32* %.pre-phi30.reload, align 4
%139 = add i64 %131, 32
%140 = inttoptr i64 %139 to i32*
store i32 %138, i32* %140, align 4
%141 = load i32, i32* %133, align 4
%142 = icmp eq i32 %141, 0
br i1 %142, label LBL_46, label LBL_45
LBL_45:
store i32 %23, i32* %22, align 4
br label LBL_46
LBL_46:
%143 = load i8*, i8** %sv_4, align 8
%144 = bitcast i8* %143 to i64*
call void @free(i64* %144)
store i8* null, i8** %sv_4, align 8
store i64 ptrtoint (i32* @0 to i64), i64* %rax.1.reg2mem
br label LBL_49
LBL_47:
%.reload51 = load i8*, i8** %.reg2mem50
%145 = bitcast i8* %.reload51 to i64*
call void @free(i64* %145)
store i8* null, i8** %sv_4, align 8
call void @free(i64* null)
store i8* null, i8** %sv_0.1.reg2mem
br label LBL_48
LBL_48:
%sv_0.1.reload = load i8*, i8** %sv_0.1.reg2mem
%146 = ptrtoint i32* %storemerge18.reload to i64
%147 = add i64 %146, 8
%148 = inttoptr i64 %147 to i64*
%149 = load i64, i64* %148, align 8
%150 = inttoptr i64 %149 to i32*
%151 = icmp eq i64 %149, 0
%152 = icmp eq i1 %151, false
store i32* %150, i32** %storemerge18.reg2mem
store i8* %sv_0.1.reload, i8** %sv_0.217.reg2mem
store i64 %149, i64* %rax.1.reg2mem
br i1 %152, label LBL_28, label LBL_49
LBL_49:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %131, { 1, 0, 2 }
uselistorder i32* %storemerge18.reload, { 1, 2, 0 }
uselistorder i8* %sv_0.217.reload, { 2, 3, 1, 0 }
uselistorder i32* %.pre-phi30.reload, { 1, 2, 0, 3, 4 }
uselistorder i8 %67, { 2, 0, 1 }
uselistorder i8* %66, { 2, 0, 1, 3 }
uselistorder i16 %sv_2.122.reload, { 3, 4, 2, 1, 0 }
uselistorder i32 %41, { 4, 3, 2, 1, 0, 6, 7, 5 }
uselistorder i32 %23, { 3, 1, 2, 4, 0 }
uselistorder i32* %22, { 2, 1, 0, 3, 4 }
uselistorder i32 %20, { 1, 3, 2, 0 }
uselistorder i32* %19, { 1, 0, 2, 3 }
uselistorder i64 %17, { 5, 4, 3, 0, 1, 2, 6, 7 }
uselistorder i64 %storemerge7.in.reload, { 1, 0 }
uselistorder i64 %7, { 1, 0 }
uselistorder i8** %sv_4, { 10, 9, 8, 0, 7, 1, 6, 5, 11, 4, 3, 2 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64* %storemerge7.in.reg2mem, { 1, 0, 2 }
uselistorder i8** %.reg2mem, { 1, 0, 2 }
uselistorder i16* %sv_2.122.reg2mem, { 1, 0, 2 }
uselistorder i16* %sv_2.0.reg2mem, { 0, 5, 6, 4, 3, 2, 1 }
uselistorder i8* %.reg2mem42, { 0, 2, 1, 3 }
uselistorder i8** %sv_3.0.be.ptr.reg2mem, { 0, 2, 1, 3 }
uselistorder i32** %storemerge18.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_0.217.reg2mem, { 1, 0 }
uselistorder i8** %.reg2mem48, { 0, 2, 1 }
uselistorder i1* %sv_1.0.shrunk.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i8** %.reg2mem50, { 0, 2, 1 }
uselistorder i64* %rax.1.reg2mem, { 0, 1, 6, 2, 5, 4, 3 }
uselistorder void (i64*)* @free, { 3, 2, 1, 0 }
uselistorder i8* (i8*)* @strdup, { 1, 0 }
uselistorder i32 (i8*, ...)* @printf, { 1, 0 }
uselistorder i32 (i8*, i8*, i32)* @strncmp, { 4, 3, 2, 1, 0 }
uselistorder i32 0, { 1, 2, 3, 0, 4, 5, 6, 7, 8, 9, 10, 11, 12 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i32 (i8*)* @puts, { 1, 0, 2 }
uselistorder i16 0, { 2, 1, 0 }
uselistorder i64 16, { 2, 1, 0 }
uselistorder i64 20, { 1, 0 }
uselistorder i64 24, { 1, 3, 2, 0 }
uselistorder i1 false, { 12, 5, 6, 3, 7, 0, 8, 9, 10, 11, 2, 18, 4, 13, 14, 15, 16, 17, 1 }
uselistorder i8 41, { 1, 2, 0 }
uselistorder i8 0, { 2, 1, 0, 3 }
uselistorder i8* (i8*, i8*)* @strtok, { 0, 2, 1 }
uselistorder i8* null, { 0, 4, 5, 1, 2, 3, 6 }
uselistorder label LBL_49, { 0, 2, 1, 4, 3, 5 }
uselistorder label LBL_48, { 1, 0 }
uselistorder label LBL_41, { 1, 0 }
uselistorder label LBL_28, { 1, 0 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | vfio_put_device_2028 | vfio_put_device | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %4)
%7 = load i64, i64* %3, align 8
%8 = call i64 @FUNC(i64 %7)
store i64 0, i64* %3, align 8
br label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %0)
ret i64 %9
uselistorder i64 (i64)* @g_free, { 1, 0 }
} | 0 |
BinRealVul | php_set_default_dir_6301 | php_set_default_dir | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = and i64 %arg1, 4294967295
%1 = trunc i64 %arg1 to i32
store i32 %1, i32* inttoptr (i64 4210716 to i32*), align 4
ret i64 %0
} | 0 |
BinRealVul | get_refcount_14932 | get_refcount | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%3 = add i64 %1, 48
%4 = urem i64 %3, 64
%storemerge = ashr i64 %arg2, %4
%sext = mul i64 %storemerge, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = add i64 %2, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
%10 = icmp slt i64 %5, %9
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_1, label LBL_7
LBL_1:
%11 = add i64 %2, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = ashr exact i64 %sext, 29
%15 = add i64 %13, %14
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = and i64 %17, 4294967295
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
store i64 0, i64* %rax.0.reg2mem
br i1 %20, label LBL_2, label LBL_7
LBL_2:
%21 = add i64 %2, 16
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %2, i64 %23, i64 %18, i64* nonnull %sv_0)
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_4, label LBL_3
LBL_3:
%28 = and i64 %24, 4294967295
store i64 %28, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%29 = trunc i64 %1 to i32
%30 = add i32 %29, 16
%31 = urem i32 %30, 32
%32 = icmp eq i32 %31, 0
%notmask = shl nsw i32 -1, %31
%33 = sub i32 0, %notmask
%phitmp5 = sub i32 %33, 1
%storemerge4 = select i1 %32, i32 0, i32 %phitmp5
%34 = trunc i64 %arg2 to i32
%35 = and i32 %storemerge4, %34
%36 = load i64, i64* %sv_0, align 8
%37 = sext i32 %35 to i64
%38 = mul i64 %37, 2
%39 = add i64 %36, %38
%40 = inttoptr i64 %39 to i16*
%41 = load i16, i16* %40, align 2
%42 = zext i16 %41 to i64
%43 = call i64 @FUNC(i64 %42)
%44 = load i64, i64* %22, align 8
%45 = call i64 @FUNC(i64 %2, i64 %44, i64* nonnull %sv_0)
%46 = trunc i64 %45 to i32
%47 = icmp slt i32 %46, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_6, label LBL_5
LBL_5:
%49 = and i64 %45, 4294967295
store i64 %49, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%50 = urem i64 %43, 65536
store i64 %50, 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 %sext, { 1, 0 }
uselistorder i64* %sv_0, { 0, 2, 1 }
uselistorder i64 %2, { 0, 1, 2, 4, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 1, 2 }
uselistorder i32 0, { 2, 1, 0, 3, 4 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_7, { 2, 3, 4, 0, 1 }
} | 1 |
BinRealVul | b43legacy_pio_handle_txstatus_17423 | b43legacy_pio_handle_txstatus | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%3 = and i64 %1, 4294967295
%4 = call i64 @FUNC(i64 %2, i64 %3, i64* nonnull %sv_0)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 %2, i64* %rdi.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%8 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_1 to i64*), i32 1, i32 26, %_IO_FILE* %7)
store i64 ptrtoint ([27 x i8]* @gv_1 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%9 = inttoptr i64 %4 to i32*
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%10 = load i32, i32* %9, align 4
%11 = add i32 %10, -1
store i32 %11, i32* %9, align 4
%12 = add i64 %4, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = load i64, i64* %sv_0, align 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = add i32 %14, -4
%21 = sub i32 %20, %19
store i32 %21, i32* %13, align 4
%22 = ptrtoint i32* %arg2 to i64
%23 = add i64 %22, 4
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = icmp eq i32 %25, 0
br i1 %26, label LBL_4, label LBL_3
LBL_3:
%27 = load i64, i64* %sv_0, align 8
%28 = add i64 %27, 8
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = or i32 %30, 1
store i32 %31, i32* %29, align 4
br label LBL_4
LBL_4:
%32 = add i64 %22, 8
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = load i64, i64* %sv_0, align 8
%36 = add i32 %34, -1
%37 = add i64 %35, 12
%38 = inttoptr i64 %37 to i32*
store i32 %36, i32* %38, align 4
%39 = load i64, i64* %sv_0, align 8
%40 = add i64 %39, 8
%41 = inttoptr i64 %39 to i64*
%42 = load i64, i64* %41, align 8
%43 = call i64 @FUNC(i64 %rdi.0.reload, i64 %42, i64 %40)
%44 = load i64, i64* %sv_0, align 8
%45 = inttoptr i64 %44 to i64*
store i64 0, i64* %45, align 8
%46 = load i64, i64* %sv_0, align 8
%47 = call i64 @FUNC(i64 %46, i64 1)
%48 = add i64 %4, 8
%49 = call i64 @FUNC(i64 %48)
%50 = trunc i64 %49 to i32
%51 = icmp eq i32 %50, 0
%52 = icmp eq i1 %51, false
store i64 %49, i64* %rax.0.reg2mem
br i1 %52, label LBL_6, label LBL_5
LBL_5:
%53 = add i64 %4, 16
%54 = call i64 @FUNC(i64 %53)
store i64 %54, 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* %9, { 1, 0 }
uselistorder i64* %sv_0, { 1, 2, 3, 4, 5, 6, 0 }
} | 1 |
BinRealVul | jlink_init_12064 | jlink_init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%0 = mul i64 %indvars.iv.reload, 8
%1 = add i64 %0, ptrtoint ([2 x i8*]* @gv_0 to i64)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i8*
%5 = call i64* @dlopen(i8* %4, i32 1)
%6 = icmp eq i64* %5, null
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = icmp eq i64 %indvars.iv.reload, 1
store i64 1, i64* %indvars.iv.reg2mem
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %8, label LBL_4, label LBL_1
LBL_3:
%9 = call i64* @dlsym(i64* %5, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0))
%10 = ptrtoint i64* %9 to i64
store i64 %10, i64* @gv_2, align 8
%11 = call i64* @dlsym(i64* %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0))
%12 = ptrtoint i64* %11 to i64
store i64 %12, i64* @gv_4, align 8
%13 = call i64* @dlsym(i64* %5, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_5, i64 0, i64 0))
%14 = ptrtoint i64* %13 to i64
store i64 %14, i64* @gv_6, align 8
%15 = call i64* @dlsym(i64* %5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_7, i64 0, i64 0))
%16 = ptrtoint i64* %15 to i64
store i64 %16, i64* @gv_8, align 8
%17 = call i64* @dlsym(i64* %5, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_9, i64 0, i64 0))
%18 = ptrtoint i64* %17 to i64
store i64 %18, i64* @gv_10, align 8
%19 = call i64* @dlsym(i64* %5, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_11, i64 0, i64 0))
%20 = ptrtoint i64* %19 to i64
store i64 %20, i64* @gv_12, align 8
%21 = call i64* @dlsym(i64* %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_13, i64 0, i64 0))
%22 = ptrtoint i64* %21 to i64
store i64 %22, i64* @gv_14, align 8
%23 = call i64* @dlsym(i64* %5, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_15, i64 0, i64 0))
%24 = ptrtoint i64* %23 to i64
store i64 %24, i64* @gv_16, align 8
%25 = call i64* @dlsym(i64* %5, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_17, i64 0, i64 0))
%26 = ptrtoint i64* %25 to i64
store i64 %26, i64* @gv_18, align 8
%27 = call i64* @dlsym(i64* %5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_19, i64 0, i64 0))
%28 = ptrtoint i64* %27 to i64
store i64 %28, i64* @gv_20, align 8
%29 = load i64, i64* @gv_2, align 8
%30 = icmp eq i64 %29, 0
%31 = load i64, i64* @gv_4, align 8
%32 = icmp eq i64 %31, 0
%or.cond = or i1 %30, %32
%33 = load i64, i64* @gv_6, align 8
%34 = icmp eq i64 %33, 0
%or.cond3 = or i1 %or.cond, %34
%35 = load i64, i64* @gv_8, align 8
%36 = icmp eq i64 %35, 0
%or.cond5 = or i1 %or.cond3, %36
%37 = load i64, i64* @gv_10, align 8
%38 = icmp eq i64 %37, 0
%or.cond7 = or i1 %or.cond5, %38
%39 = load i64, i64* @gv_12, align 8
%40 = icmp eq i64 %39, 0
%or.cond9 = or i1 %or.cond7, %40
%41 = load i64, i64* @gv_14, align 8
%42 = icmp eq i64 %41, 0
%or.cond11 = or i1 %or.cond9, %42
%43 = load i64, i64* @gv_16, align 8
%44 = icmp eq i64 %43, 0
%or.cond13 = or i1 %or.cond11, %44
%45 = load i64, i64* @gv_18, align 8
%46 = icmp eq i64 %45, 0
%or.cond15 = or i1 %or.cond13, %46
%or.cond15.not = icmp ne i1 %or.cond15, true
%47 = icmp eq i64* %27, null
%48 = icmp eq i1 %47, false
%or.cond17 = icmp eq i1 %48, %or.cond15.not
%49 = call i32 @dlclose(i64* %5)
%. = select i1 %or.cond17, i64 0, i64 4294967291
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* %5, { 0, 2, 1, 4, 3, 6, 5, 8, 7, 9, 10, 11 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64* (i64*, i8*)* @dlsym, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 4294967291, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | build_tablename_18584 | build_tablename | define i64 @FUNC(i64* %arg1, i64* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = ptrtoint i8* %arg3 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = load i64, i64* %0
%sv_0 = alloca i8*, align 8
%4 = call i64 @FUNC(i64 %1)
%5 = bitcast i8** %sv_0 to i64*
%6 = call i64 @FUNC(i64 %4, i64* nonnull @gv_0, i64* nonnull %5)
%7 = inttoptr i64 %6 to i8*
%8 = call i32 @strlen(i8* %7)
%9 = sext i32 %8 to i64
%10 = call i64 @FUNC(i64 %6, i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = call i64 @FUNC(i64 %2, i64 %6, i64 %9)
%15 = call i64 @FUNC(i64 %3)
br label LBL_2
LBL_2:
%16 = load i8*, i8** %sv_0, align 8
%17 = icmp eq i8* %16, null
br i1 %17, label LBL_7, label LBL_3
LBL_3:
%18 = load i8, i8* %16, align 1
%19 = icmp eq i8 %18, 0
br i1 %19, label LBL_7, label LBL_4
LBL_4:
%20 = call i32 @strlen(i8* nonnull %16)
%21 = sext i32 %20 to i64
%22 = load i8*, i8** %sv_0, align 8
%23 = ptrtoint i8* %22 to i64
%24 = call i64 @FUNC(i64 %23, i64 %21)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_6, label LBL_5
LBL_5:
%28 = call i64 @FUNC(i64 %2, i64 46)
%29 = load i8*, i8** %sv_0, align 8
%30 = ptrtoint i8* %29 to i64
%31 = call i64 @FUNC(i64 %2, i64 %30, i64 %21)
br label LBL_7
LBL_6:
%32 = ptrtoint i64* %arg2 to i64
%33 = load i8*, i8** %sv_0, align 8
%34 = ptrtoint i8* %33 to i64
%35 = call i64 @FUNC(i64 %32, i64 %34, i64 %21)
%36 = call i64 @FUNC(i64 %2, i64 46)
%37 = call i64 @FUNC(i64 %2, i64 %35)
%38 = call i64 @FUNC(i64 %35)
br label LBL_7
LBL_7:
%39 = call i64 @FUNC(i64 %4)
ret i64 %39
uselistorder i64 %21, { 1, 0, 2 }
uselistorder i8** %sv_0, { 3, 2, 1, 0, 4 }
uselistorder i64 %2, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @smart_str_appendc, { 1, 0 }
uselistorder i64 (i64)* @PGSQLfree, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @smart_str_appendl, { 2, 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 (i64, i64)* @_php_pgsql_detect_identifier_escape, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 2, 1, 0 }
} | 1 |
BinRealVul | format_time_4673 | format_time | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = icmp eq i32 %arg3, 0
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = trunc i64 %arg1 to i32
%2 = inttoptr i64 %arg2 to i8*
%3 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* bitcast (i8** @gv_0 to i8*), i32 128, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i32 %1, i8* %2)
br label LBL_3
LBL_2:
%4 = inttoptr i64 %arg2 to i8*
%5 = call i32 @atoi(i8* %4)
%6 = load i32, i32* @gv_2, align 4
%7 = zext i32 %5 to i64
%8 = call i64 @FUNC(i64 %arg1, i64 %7, i32 %6)
%9 = inttoptr i64 %8 to i8*
%10 = call i32 @strlen(i8* %9)
%11 = inttoptr i64 %8 to i64*
%12 = call i64* @memcpy(i64* bitcast (i8** @gv_0 to i64*), i64* %11, i32 %10)
%13 = load i32, i32* inttoptr (i64 4210764 to i32*), align 4
%14 = sub i32 %13, %10
%15 = sext i32 %10 to i64
%16 = add i64 %15, ptrtoint (i8** @gv_0 to i64)
%17 = inttoptr i64 %16 to i64*
%18 = call i64* @memset(i64* %17, i32 32, i32 %14)
br label LBL_3
LBL_3:
ret i64 ptrtoint (i8** @gv_0 to i64)
uselistorder i32 %10, { 0, 2, 1 }
uselistorder i64 ptrtoint (i8** @gv_0 to i64), { 1, 0 }
uselistorder i8** @gv_0, { 2, 0, 1 }
uselistorder i64 %arg1, { 1, 0 }
} | 0 |
BinRealVul | hfi1_user_sdma_free_queues_17764 | hfi1_user_sdma_free_queues | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = load i64, i64* %0
%5 = add i64 %3, 24
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %3, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = zext i32 %7 to i64
%12 = zext i32 %10 to i64
%13 = and i64 %2, 4294967295
%14 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0), i64 %13, i64 %12, i64 %11, i64 %1)
%15 = inttoptr i64 %8 to i64*
%16 = load i64, i64* %15, align 8
%17 = add i64 %16, 36
%18 = call i64 @FUNC(i64 %17)
%19 = icmp eq i64 %16, 0
br i1 %19, label LBL_4, label LBL_1
LBL_1:
%20 = add i64 %3, 12
%21 = call i64 @FUNC(i64 %20, i64 %4)
%22 = add i64 %16, 20
%23 = call i64 @FUNC(i64 %22)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_3, label LBL_2
LBL_2:
%27 = call i64 @FUNC(i64 %22)
br label LBL_3
LBL_3:
%28 = call i64 @FUNC(i64 %20, i64 %4)
%29 = add i64 %16, 8
%30 = call i64 @FUNC(i64 %29)
%31 = add i64 %16, 12
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, 0
%35 = add i64 %16, 16
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = zext i1 %34 to i64
%39 = zext i32 %37 to i64
%40 = call i64 @FUNC(i64 %39, i64 %38)
%41 = add i64 %16, 24
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = call i64 @FUNC(i64 %43)
%45 = add i64 %16, 32
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = zext i32 %47 to i64
%49 = call i64 @FUNC(i64 %48)
%50 = call i64 @FUNC(i64 %16)
store i64 0, i64* %15, align 8
br label LBL_4
LBL_4:
%51 = add i64 %3, 16
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = icmp eq i64 %53, 0
br i1 %54, label LBL_6, label LBL_5
LBL_5:
%55 = inttoptr i64 %53 to i64*
%56 = load i64, i64* %55, align 8
%57 = call i64 @FUNC(i64 %56)
%58 = load i64, i64* %52, align 8
%59 = call i64 @FUNC(i64 %58)
store i64 0, i64* %52, align 8
br label LBL_6
LBL_6:
ret i64 0
uselistorder i64* %52, { 1, 0, 2 }
uselistorder i64 %16, { 0, 2, 1, 3, 5, 4, 6, 8, 7 }
uselistorder i64 %3, { 1, 0, 2, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @kfree, { 2, 1, 0 }
} | 1 |
BinRealVul | qmp_guest_file_flush_16753 | qmp_guest_file_flush | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = call i64 @FUNC(i64 %arg1, i64 %0)
%2 = icmp eq i64 %1, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_3, label LBL_1
LBL_1:
%3 = inttoptr i64 %1 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %4 to %_IO_FILE*
%6 = call i32 @fflush(%_IO_FILE* %5)
%7 = sext i32 %6 to i64
%8 = icmp eq i32 %6, -1
%9 = icmp eq i1 %8, false
store i64 %7, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i32* @__errno_location()
%11 = load i32, i32* %10, align 4
%12 = zext i32 %11 to i64
%13 = call i64 @FUNC(i64 %0, i64 %12, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0))
store i64 %13, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder label LBL_3, { 1, 2, 0 }
} | 1 |
BinRealVul | kvm_irqchip_update_msi_route_836 | kvm_irqchip_update_msi_route | define i64 @FUNC(i64* %arg1, i32 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
store i32 0, i32* %sv_0, align 4
%0 = call i64 @FUNC()
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
store i64 4294967258, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
store i32 %arg2, i32* %sv_0, align 4
%5 = and i64 %arg4, 4294967295
%6 = call i64 @FUNC(i64 %5)
%7 = bitcast i32* %sv_0 to i64*
%8 = call i64 @FUNC(i64 %4, i64* nonnull %7)
store i64 %8, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %sv_0, { 2, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | balloon_stats_change_timer_15517 | balloon_stats_change_timer | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 0)
%sext1 = mul i64 %arg2, 4294967296000
%1 = ashr exact i64 %sext1, 32
%2 = add i64 %0, %1
%3 = call i64 @FUNC(i64 0, i64 %2)
ret i64 %3
} | 1 |
BinRealVul | leak_memalign_5718 | leak_memalign | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = icmp ult i64 %arg1, 17
br i1 %0, label LBL_1, label LBL_2
LBL_1:
%1 = call i64 @FUNC(i64 %arg2)
store i64 %1, i64* %rax.0.reg2mem
br label LBL_8
LBL_2:
%2 = add i64 %arg1, -1
%3 = and i64 %2, %arg1
%4 = icmp eq i64 %3, 0
store i64 %arg1, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_4, label LBL_3
LBL_3:
%5 = trunc i64 %arg1 to i32
%6 = call i32 @llvm.ctlz.i32(i32 %5, i1 true), !range !11
%7 = icmp eq i32 %5, 0
%.op = xor i32 %6, 31
%8 = select i1 %7, i32 0, i32 %.op
%9 = icmp eq i32 %8, 0
%10 = zext i32 %8 to i64
%11 = shl i64 1, %10
%storemerge = select i1 %9, i64 1, i64 %11
store i64 %storemerge, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%12 = add i64 %arg2, -16
%13 = add i64 %12, %sv_0.0.reload
%14 = icmp ult i64 %13, %arg2
%15 = icmp eq i1 %14, false
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_5, label LBL_8
LBL_5:
%16 = call i64 @FUNC(i64 %13)
%17 = icmp eq i64 %16, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_8, label LBL_6
LBL_6:
%18 = urem i64 %16, %sv_0.0.reload
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
store i64 %16, i64* %rax.0.reg2mem
br i1 %20, label LBL_7, label LBL_8
LBL_7:
%21 = sub i64 0, %16
%22 = urem i64 %21, %sv_0.0.reload
%23 = add i64 %22, %16
%24 = add i64 %23, -8
%25 = inttoptr i64 %24 to i64*
store i64 3735928559, i64* %25, align 8
%26 = add i64 %23, -16
%27 = inttoptr i64 %26 to i64*
store i64 %16, i64* %27, align 8
store i64 %23, 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 %16, { 3, 1, 4, 0, 2, 5 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3, 5 }
uselistorder i64 -16, { 1, 0 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i64 (i64)* @leak_malloc, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder i64 %arg1, { 3, 0, 1, 2, 4 }
uselistorder label LBL_8, { 3, 1, 0, 2, 4 }
} | 0 |
BinRealVul | ProcRenderSetPictureFilter_11568 | ProcRenderSetPictureFilter | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i32* %arg1 to i64
%4 = add i64 %3, 4
%5 = add i64 %3, 16
%6 = add i64 %3, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = add i32 %8, 3
%10 = and i32 %9, -4
%11 = sext i32 %10 to i64
%12 = add i64 %5, %11
%13 = mul i64 %1, 8
%14 = add i64 %4, %13
%15 = sub i64 %14, %12
%16 = udiv i64 %15, 8
%17 = and i64 %16, 4294967295
%18 = call i64 @FUNC(i64 %2, i64 %5, i32 %8, i64 %12, i64 %17)
%19 = and i64 %18, 4294967295
ret i64 %19
uselistorder i64 %12, { 1, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %3, { 2, 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 8, { 1, 0, 2 }
} | 1 |
BinRealVul | SFS_AddString_18965 | SFS_AddString | define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i8*
%0 = icmp eq i8* %arg2, null
br i1 %0, label LBL_4, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = bitcast i64* %arg1 to i8*
%3 = call i32 @strlen(i8* %2)
%4 = sext i32 %3 to i64
%5 = call i32 @strlen(i8* nonnull %arg2)
%6 = sext i32 %5 to i64
%7 = add nsw i64 %6, %4
%8 = add i64 %1, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp ult i64 %7, %10
store i8* %arg2, i8** %.pre-phi.reg2mem
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = add i64 %10, 10
store i64 %12, i64* %9, align 8
%13 = call i64 @FUNC(i64 %12)
%14 = inttoptr i64 %13 to i8*
%15 = inttoptr i64 %12 to i8*
%16 = call i8* @strcpy(i8* %14, i8* %15)
%17 = call i64 @FUNC(i64 %13)
store i64 %13, i64* %arg1, align 8
store i8* %14, i8** %.pre-phi.reg2mem
br label LBL_3
LBL_3:
%.pre-phi.reload = load i8*, i8** %.pre-phi.reg2mem
%18 = call i8* @strcat(i8* %.pre-phi.reload, i8* nonnull %arg2)
%19 = ptrtoint i8* %18 to i64
store i64 %19, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %12, { 1, 0, 2 }
uselistorder i8** %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i8* %arg2, { 1, 0, 2, 3 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | wolfSSL_X509_STORE_CTX_set_time_17529 | wolfSSL_X509_STORE_CTX_set_time | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 %arg3, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = or i64 %3, 1
store i64 %4, i64* %2, align 8
ret i64 %0
} | 1 |
BinRealVul | mount_entry_on_absolute_rootfs_3627 | mount_entry_on_absolute_rootfs | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i32
%sv_0.0.in.reg2mem = alloca i8*
%rsi.0.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%0 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0))
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%4 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_3, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_2:
%5 = inttoptr i64 %0 to i8*
%6 = bitcast i64* %sv_1 to i8*
%7 = inttoptr i64 %arg3 to i8*
%8 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %6, i32 4096, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_4, i64 0, i64 0), i8* %5, i8* %7)
%9 = icmp ugt i32 %8, 4095
store i64 4096, i64* %rsi.0.reg2mem
br i1 %9, label LBL_5, label LBL_3
LBL_3:
%10 = ptrtoint i64* %sv_1 to i64
%11 = call i8* @strstr(i8* nonnull %6, i8* nonnull %6)
%12 = icmp eq i8* %11, null
store i64 %10, i64* %rsi.0.reg2mem
br i1 %12, label LBL_5, label LBL_4
LBL_4:
%13 = call i32 @strlen(i8* nonnull %6)
store i8* %11, i8** %sv_0.0.in.reg2mem
store i32 %13, i32* %storemerge.reg2mem
br label LBL_8
LBL_5:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%14 = inttoptr i64 %rsi.0.reload to i8*
%15 = call i8* @strstr(i8* nonnull %6, i8* %14)
%16 = icmp eq i8* %15, null
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_7, label LBL_6
LBL_6:
%18 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%19 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %18, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_5, i64 0, i64 0), i64* nonnull %sv_1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_7:
%20 = call i32 @strlen(i8* %14)
store i8* %15, i8** %sv_0.0.in.reg2mem
store i32 %20, i32* %storemerge.reg2mem
br label LBL_8
LBL_8:
%21 = ptrtoint i64* %arg2 to i64
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%sv_0.0.in.reload = load i8*, i8** %sv_0.0.in.reg2mem
%sv_0.0 = ptrtoint i8* %sv_0.0.in.reload to i64
%22 = sext i32 %storemerge.reload to i64
%23 = add i64 %22, %sv_0.0
%24 = add i64 %21, 8
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = inttoptr i64 %26 to i8*
%28 = inttoptr i64 %23 to i8*
%29 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %6, i32 4096, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_6, i64 0, i64 0), i8* %27, i8* %28)
%30 = icmp ult i32 %29, 4096
br i1 %30, label LBL_10, label LBL_9
LBL_9:
%31 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%32 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %31, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_7, i64 0, i64 0), i64* nonnull %sv_1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
%33 = ptrtoint i64* %arg1 to i64
%34 = load i64, i64* %25, align 8
%35 = call i64 @FUNC(i64 %33, i64* nonnull %sv_1, i64 %34)
store i64 %35, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %6, { 4, 1, 2, 3, 0, 5 }
uselistorder i64* %sv_1, { 2, 1, 0, 4, 3 }
uselistorder i8** %sv_0.0.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 2, 1, 0 }
uselistorder %_IO_FILE** @gv_1, { 2, 1, 0 }
} | 0 |
BinRealVul | object_common1_5503 | object_common1 | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg4 to i64
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %arg3, -2
%6 = icmp ugt i64 %5, %4
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i64 %5, i64 %3, i64 %2, i64 %1)
store i64 -1, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%8 = add i64 %4, 2
%9 = call i64 @FUNC(i64 %8, i64 %4)
%10 = add i64 %4, 4
store i64 %10, i64* %arg1, align 8
%11 = add i64 %3, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = call i64 @FUNC(i64 %4, i64 %3)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%17 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_1, i64 0, i64 0), i64 %3, i64 %3, i64 %2, i64 %1)
store i64 -1, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %4, { 0, 3, 1, 2, 4 }
uselistorder i64 %3, { 2, 1, 4, 3, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 -1, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @zend_error, { 1, 0 }
} | 0 |
BinRealVul | virtio_blk_get_request_15578 | virtio_blk_get_request | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %0, i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 %1, i64* %storemerge.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %1)
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 %1, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | kvm_ioapic_dump_state_14690 | kvm_ioapic_dump_state | 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* nonnull %sv_0)
%2 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0)
ret i64 %2
} | 1 |
BinRealVul | manager_free_4798 | manager_free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64 %arg1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_1, label LBL_6
LBL_1:
%4 = trunc i64 %1 to i32
%5 = call i64 @FUNC(i64 %arg1)
%6 = icmp eq i32 %4, 1
%7 = icmp eq i1 %6, false
%8 = zext i1 %7 to i64
%9 = call i64 @FUNC(i64 %arg1, i64 %8)
%10 = call i64 @FUNC(i64 %arg1)
%11 = call i64 @FUNC(i64 %arg1)
%12 = add i64 %arg1, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %14)
%16 = add i64 %arg1, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18)
%20 = add i64 %arg1, 24
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %22)
%24 = add i64 %arg1, 32
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = call i64 @FUNC(i64 %26)
%28 = add i64 %arg1, 40
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %30)
%32 = add i64 %arg1, 48
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34)
%36 = add i64 %arg1, 56
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = call i64 @FUNC(i64 %38)
%40 = add i64 %arg1, 64
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = call i64 @FUNC(i64 %42)
%44 = add i64 %arg1, 72
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = call i64 @FUNC(i64 %46)
%48 = add i64 %arg1, 80
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = call i64 @FUNC(i64 %50)
%52 = add i64 %arg1, 88
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = call i64 @FUNC(i64 %54)
%56 = add i64 %arg1, 96
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = call i64 @FUNC(i64 %58)
%60 = add i64 %arg1, 104
%61 = inttoptr i64 %60 to i32*
%62 = load i32, i32* %61, align 4
%63 = zext i32 %62 to i64
%64 = call i64 @FUNC(i64 %63)
%65 = add i64 %arg1, 108
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = zext i32 %67 to i64
%69 = call i64 @FUNC(i64 %68)
%70 = add i64 %arg1, 112
%71 = inttoptr i64 %70 to i32*
%72 = load i32, i32* %71, align 4
%73 = zext i32 %72 to i64
%74 = call i64 @FUNC(i64 %73)
%75 = add i64 %arg1, 116
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = zext i32 %77 to i64
%79 = call i64 @FUNC(i64 %78)
%80 = call i64 @FUNC(i64 %arg1)
%81 = call i64 @FUNC(i64 %arg1)
%82 = add i64 %arg1, 120
%83 = inttoptr i64 %82 to i64*
%84 = load i64, i64* %83, align 8
%85 = call i64 @FUNC(i64 %84)
%86 = add i64 %arg1, 128
%87 = inttoptr i64 %86 to i64*
%88 = load i64, i64* %87, align 8
%89 = call i64 @FUNC(i64 %88)
%90 = add i64 %arg1, 136
%91 = inttoptr i64 %90 to i64*
%92 = load i64, i64* %91, align 8
%93 = call i64 @FUNC(i64 %92)
%94 = add i64 %arg1, 144
%95 = call i64 @FUNC(i64 %94)
%96 = add i64 %arg1, 152
%97 = inttoptr i64 %96 to i64*
%98 = load i64, i64* %97, align 8
%99 = call i64 @FUNC(i64 %98)
%100 = add i64 %arg1, 160
%101 = inttoptr i64 %100 to i64*
%102 = load i64, i64* %101, align 8
%103 = call i64 @FUNC(i64 %102)
%104 = add i64 %arg1, 168
%105 = inttoptr i64 %104 to i64*
%106 = load i64, i64* %105, align 8
%107 = call i64 @FUNC(i64 %106)
%108 = add i64 %arg1, 176
%109 = inttoptr i64 %108 to i64*
%110 = load i64, i64* %109, align 8
%111 = call i64 @FUNC(i64 %110)
%112 = add i64 %arg1, 184
%113 = inttoptr i64 %112 to i64*
%114 = load i64, i64* %113, align 8
%115 = call i64 @FUNC(i64 %114)
%116 = add i64 %arg1, 192
%117 = inttoptr i64 %116 to i64*
%118 = load i64, i64* %117, align 8
%119 = call i64 @FUNC(i64 %118)
%120 = add i64 %arg1, 200
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%121 = mul i64 %indvars.iv.reload, 8
%122 = add i64 %120, %121
%123 = inttoptr i64 %122 to i64*
%124 = load i64, i64* %123, align 8
%125 = call i64 @FUNC(i64 %124)
store i64 %125, i64* %123, align 8
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%126 = add i64 %arg1, 280
%127 = inttoptr i64 %126 to i64*
%128 = load i64, i64* %127, align 8
%129 = call i64 @FUNC(i64 %128)
%130 = trunc i64 %129 to i32
%131 = icmp eq i32 %130, 0
%132 = icmp eq i1 %131, false
br i1 %132, label LBL_5, label LBL_4
LBL_4:
call void @__assert_fail(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 114, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_5
LBL_5:
%133 = load i64, i64* %127, align 8
%134 = call i64 @FUNC(i64 %133)
%135 = call i64 @FUNC(i64 %arg1)
br label LBL_6
LBL_6:
ret i64 0
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64)* @free, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @safe_close, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @sd_event_source_unref, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @set_free, { 1, 0 }
uselistorder i64 (i64)* @hashmap_free, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 1, { 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 1, 2, 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | qemu_aio_flush_16670 | qemu_aio_flush | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge1.lcssa.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.03.reg2mem = alloca i32
%storemerge14.reg2mem = alloca i64
br label LBL_1
LBL_1:
%0 = call i64 @FUNC()
%storemerge12 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %storemerge12, 0
%2 = icmp eq i1 %1, false
store i64 %storemerge12, i64* %storemerge14.reg2mem
store i32 0, i32* %sv_0.03.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
store i64 %storemerge12, i64* %storemerge1.lcssa.reg2mem
br i1 %2, label LBL_2, label LBL_3
LBL_2:
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%storemerge14.reload = load i64, i64* %storemerge14.reg2mem
%3 = add i64 %storemerge14.reload, 16
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = trunc i64 %5 to i32
%7 = or i32 %sv_0.03.reload, %6
%8 = inttoptr i64 %storemerge14.reload to i64*
%storemerge1 = load i64, i64* %8, align 8
%9 = icmp eq i64 %storemerge1, 0
%10 = icmp eq i1 %9, false
store i64 %storemerge1, i64* %storemerge14.reg2mem
store i32 %7, i32* %sv_0.03.reg2mem
store i32 %7, i32* %sv_0.0.lcssa.reg2mem
store i64 %storemerge1, i64* %storemerge1.lcssa.reg2mem
br i1 %10, label LBL_2, label LBL_3
LBL_3:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%11 = icmp eq i32 %sv_0.0.lcssa.reload, 0
%12 = icmp slt i32 %sv_0.0.lcssa.reload, 0
%13 = icmp eq i1 %12, false
%14 = icmp eq i1 %11, false
%15 = icmp eq i1 %13, %14
br i1 %15, label LBL_1, label LBL_4
LBL_4:
%storemerge1.lcssa.reload = load i64, i64* %storemerge1.lcssa.reg2mem
ret i64 %storemerge1.lcssa.reload
uselistorder i32 %sv_0.0.lcssa.reload, { 1, 0 }
uselistorder i64 %storemerge14.reload, { 1, 0 }
uselistorder i64* %storemerge14.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.03.reg2mem, { 2, 0, 1 }
uselistorder i32 0, { 2, 3, 0, 1 }
uselistorder i1 false, { 2, 1, 3, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | qh_help_5840 | qh_help | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rcx.0.lcssa.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sext = mul i64 %arg1, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = icmp eq i64 %arg2, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = inttoptr i64 %arg2 to i8*
%7 = call i32 @strcmp(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = and i64 %4, 4294967295
%11 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([87 x i8], [87 x i8]* @gv_1, i64 0, i64 0), i64 %arg3, i64 %3, i64 %2, i64 %1)
br label LBL_11
LBL_3:
%12 = call i32 @strcmp(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_7, label LBL_4
LBL_4:
%storemerge3 = load i64, i64* @gv_3, align 8
%15 = icmp eq i64 %storemerge3, 0
%16 = icmp eq i1 %15, false
%17 = trunc i64 %4 to i32
store i64 %storemerge3, i64* %storemerge4.reg2mem
br i1 %16, label LBL_5, label LBL_6
LBL_5:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%18 = add i64 %storemerge4.reload, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
%spec.select = select i1 %21, i64 ptrtoint ([27 x i8]* @gv_4 to i64), i64 %20
%22 = inttoptr i64 %storemerge4.reload to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i32 %17, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_5, i64 0, i64 0), i64 %23, i64 %spec.select, i64 %2, i64 %1)
%25 = add i64 %storemerge4.reload, 16
%26 = inttoptr i64 %25 to i64*
%storemerge = load i64, i64* %26, align 8
%27 = icmp eq i64 %storemerge, 0
%28 = icmp eq i1 %27, false
store i64 %storemerge, i64* %storemerge4.reg2mem
store i64 %spec.select, i64* %rcx.0.lcssa.reg2mem
br i1 %28, label LBL_5, label LBL_6
LBL_6:
%rcx.0.lcssa.reload = load i64, i64* %rcx.0.lcssa.reg2mem
%29 = call i64 @FUNC(i32 %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_6, i64 0, i64 0), i64 0, i64 %rcx.0.lcssa.reload, i64 %2, i64 %1)
br label LBL_11
LBL_7:
%30 = call i64 @FUNC(i64 %arg2)
%31 = icmp eq i64 %30, 0
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_9, label LBL_8
LBL_8:
%33 = and i64 %4, 4294967295
%34 = call i64 @FUNC(i64 %33, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_7, i64 0, i64 0), i64 %arg2, i64 %3, i64 %2, i64 %1)
br label LBL_11
LBL_9:
%35 = trunc i64 %4 to i32
%36 = icmp slt i32 %35, 201
br i1 %36, label LBL_11, label LBL_10
LBL_10:
%37 = add i64 %30, 24
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = and i64 %4, 4294967295
%41 = call i64 @FUNC(i64 %40, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_8, i64 0, i64 0), i64 %arg2, i64 %39, i64 %2, i64 %1)
br label LBL_11
LBL_11:
ret i64 0
uselistorder i64 %4, { 3, 2, 1, 0, 4 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 4, 3, 1, 0, 2 }
uselistorder i64 %1, { 4, 3, 1, 0, 2 }
uselistorder i64* %storemerge4.reg2mem, { 2, 0, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @nsock_printf_nul, { 2, 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3, 4 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
uselistorder i32 1, { 6, 5, 4, 3, 1, 2, 0 }
uselistorder i64 %arg2, { 1, 0, 2, 3, 4 }
uselistorder label LBL_11, { 2, 1, 0, 3, 4 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | xen_host_pci_config_open_13896 | xen_host_pci_config_open | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0, i64 4096)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = and i64 %3, 4294967295
store i64 %6, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%7 = trunc i64 %1 to i32
%8 = bitcast i64* %sv_0 to i8*
%9 = call i32 (i8*, i32, ...) @open(i8* nonnull %8, i32 2)
%10 = bitcast i64* %arg1 to i32*
store i32 %9, i32* %10, align 4
%11 = icmp slt i32 %7, 0
%12 = icmp eq i1 %11, false
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = call i32* @__errno_location()
%14 = load i32, i32* %13, align 4
%15 = sub i32 0, %14
%16 = zext i32 %15 to i64
store i64 %16, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 1 |
BinRealVul | celt_icwrsi_1176 | celt_icwrsi | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_0.04.reg2mem = alloca i32
%sv_1.05.reg2mem = alloca i32
%storemerge6.reg2mem = alloca i32
%0 = ptrtoint i64* %arg3 to i64
%1 = trunc i64 %arg1 to i32
%storemerge3 = add i32 %1, -1
%2 = icmp slt i32 %storemerge3, 0
%3 = icmp eq i1 %2, false
store i32 %storemerge3, i32* %storemerge6.reg2mem
store i32 0, i32* %sv_1.05.reg2mem
store i32 0, i32* %sv_0.04.reg2mem
store i64 0, i64* %sv_0.0.lcssa.reg2mem
br i1 %3, label LBL_1, label LBL_3
LBL_1:
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%sv_1.05.reload = load i32, i32* %sv_1.05.reg2mem
%storemerge6.reload = load i32, i32* %storemerge6.reg2mem
%4 = sext i32 %storemerge6.reload to i64
%5 = mul i64 %4, 4
%6 = add i64 %5, %0
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i32
%12 = add i32 %sv_1.05.reload, 1
%13 = add i32 %12, %11
%14 = sub i32 %1, %storemerge6.reload
%15 = zext i32 %13 to i64
%16 = zext i32 %14 to i64
%17 = call i64 @FUNC(i64 %16, i64 %15)
%18 = zext i32 %sv_1.05.reload to i64
%19 = call i64 @FUNC(i64 %16, i64 %18)
%20 = trunc i64 %19 to i32
%21 = load i32, i32* %7, align 4
%22 = trunc i64 %17 to i32
%23 = ashr i32 %21, 31
%24 = and i32 %23, %22
%25 = add i32 %sv_0.04.reload, %20
%26 = add i32 %25, %24
%27 = zext i32 %21 to i64
%28 = call i64 @FUNC(i64 %27)
%29 = trunc i64 %28 to i32
%30 = add i32 %sv_1.05.reload, %29
%storemerge = add i32 %storemerge6.reload, -1
%31 = icmp slt i32 %storemerge, 0
%32 = icmp eq i1 %31, false
store i32 %storemerge, i32* %storemerge6.reg2mem
store i32 %30, i32* %sv_1.05.reg2mem
store i32 %26, i32* %sv_0.04.reg2mem
br i1 %32, label LBL_1, label LBL_2
LBL_2:
%phitmp = zext i32 %26 to i64
store i64 %phitmp, i64* %sv_0.0.lcssa.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
ret i64 %sv_0.0.lcssa.reload
uselistorder i32 %26, { 1, 0 }
uselistorder i32 %storemerge6.reload, { 2, 0, 1 }
uselistorder i32 %sv_1.05.reload, { 2, 0, 1 }
uselistorder i32* %storemerge6.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.05.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.04.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @CELT_PVQ_U, { 1, 0 }
uselistorder i64 (i64)* @FFABS, { 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i32 0, { 3, 0, 1, 2, 4, 5 }
uselistorder i32 -1, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | libopenjpeg_copyto16_14714 | libopenjpeg_copyto16 | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%.reg2mem52 = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32*
%.reg2mem50 = alloca i32
%.reg2mem48 = alloca i32
%sv_0.011.reg2mem = alloca i32*
%sv_1.0.in12.reg2mem = alloca i64
%storemerge513.reg2mem = alloca i32
%sv_0.114.reg2mem = alloca i32*
%storemerge415.reg2mem = alloca i32
%.reg2mem46 = alloca i32
%.reg2mem44 = alloca i32
%storemerge16.reg2mem = alloca i32
%.reg2mem42 = alloca i64
%.reg2mem40 = alloca i32
%rax.0.reg2mem = alloca i32
%storemerge618.reg2mem = alloca i32
%.reg2mem38 = alloca i64
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%rsi = alloca i64, align 8
%2 = load i64, i64* %0
%sv_2 = alloca i64, align 8
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %4, label LBL_19, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = bitcast i64* %rsi to i32*
%7 = ptrtoint i64* %sv_2 to i64
%8 = trunc i64 %1 to i32
%9 = bitcast i64* %rdi to i32*
%10 = add i64 %5, 24
%11 = add i64 %7, -48
store i32 %8, i32* %.reg2mem
store i64 0, i64* %.reg2mem38
store i32 0, i32* %storemerge618.reg2mem
br label LBL_2
LBL_2:
%storemerge618.reload = load i32, i32* %storemerge618.reg2mem
%.reload39 = load i64, i64* %.reg2mem38
%.reload = load i32, i32* %.reg2mem
%12 = zext i32 %.reload to i64
%13 = call i64 @FUNC(i64 %12)
%14 = mul i64 %.reload39, 4
%15 = add i64 %13, %14
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i32 %17, 1
%19 = mul nsw i64 %.reload39, 24
%20 = add i64 %10, %19
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = sub i32 %18, %22
%24 = icmp sgt i32 %23, 7
br i1 %24, label LBL_4, label LBL_3
LBL_3:
%25 = call i64 @FUNC(i64 %12)
%26 = add i64 %25, %14
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = add i32 %28, 1
%30 = load i32, i32* %21, align 4
%31 = sub i32 %29, %30
%32 = icmp slt i32 %31, 1
store i32 0, i32* %rax.0.reg2mem
br i1 %32, label LBL_6, label LBL_4
LBL_4:
%33 = call i64 @FUNC(i64 %12)
%34 = add i64 %33, %14
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = add i32 %36, 1
%38 = load i32, i32* %21, align 4
%39 = sub i32 %37, %38
%40 = icmp sgt i32 %39, 7
store i32 8, i32* %rax.0.reg2mem
br i1 %40, label LBL_6, label LBL_5
LBL_5:
%41 = call i64 @FUNC(i64 %12)
%42 = add i64 %41, %14
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = add i32 %44, 1
%46 = load i32, i32* %21, align 4
%47 = sub i32 %45, %46
store i32 %47, i32* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i32, i32* %rax.0.reg2mem
%48 = add i64 %14, %11
%49 = inttoptr i64 %48 to i32*
store i32 %rax.0.reload, i32* %49, align 4
%50 = add i32 %storemerge618.reload, 1
%51 = load i32, i32* %6, align 8
%52 = zext i32 %51 to i64
%53 = sext i32 %50 to i64
%54 = icmp slt i64 %53, %52
br i1 %54, label LBL_6.LBL_2_crit_edge, label LBL_8
LBL_7:
%.pre = load i32, i32* %9, align 8
store i32 %.pre, i32* %.reg2mem
store i64 %53, i64* %.reg2mem38
store i32 %50, i32* %storemerge618.reg2mem
br label LBL_2
LBL_8:
%55 = icmp eq i32 %51, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %55, label LBL_19, label LBL_9
LBL_9:
%56 = ptrtoint i32* %arg1 to i64
%57 = add i64 %56, 8
%58 = add i64 %56, 40
store i32 %51, i32* %.reg2mem40
store i64 0, i64* %.reg2mem42
store i32 0, i32* %storemerge16.reg2mem
br label LBL_10
LBL_10:
%storemerge16.reload = load i32, i32* %storemerge16.reg2mem
%.reload43 = load i64, i64* %.reg2mem42
%.reload41 = load i32, i32* %.reg2mem40
%59 = mul nsw i64 %.reload43, 24
%60 = add i64 %59, %5
%61 = add i64 %60, 20
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = icmp eq i32 %63, 0
store i32 %.reload41, i32* %.reg2mem52
br i1 %64, label LBL_18, label LBL_11
LBL_11:
%65 = add i64 %60, 8
%66 = inttoptr i64 %65 to i64*
%67 = load i64, i64* %66, align 8
%68 = inttoptr i64 %67 to i32*
%69 = mul i64 %.reload43, 8
%70 = add i64 %57, %69
%71 = inttoptr i64 %70 to i64*
%72 = mul i64 %.reload43, 4
%73 = add i64 %58, %72
%74 = inttoptr i64 %73 to i32*
%75 = add i64 %60, 16
%76 = inttoptr i64 %75 to i32*
%77 = add i64 %60, 28
%78 = inttoptr i64 %77 to i32*
%79 = add i64 %72, %11
%80 = inttoptr i64 %79 to i32*
%.pre23 = load i32, i32* %76, align 4
store i32 %63, i32* %.reg2mem44
store i32 %.pre23, i32* %.reg2mem46
store i32 0, i32* %storemerge415.reg2mem
store i32* %68, i32** %sv_0.114.reg2mem
br label LBL_12
LBL_12:
%sv_0.114.reload = load i32*, i32** %sv_0.114.reg2mem
%storemerge415.reload = load i32, i32* %storemerge415.reg2mem
%.reload47 = load i32, i32* %.reg2mem46
%.reload45 = load i32, i32* %.reg2mem44
%81 = icmp eq i32 %.reload47, 0
store i32 %.reload45, i32* %.reg2mem48
store i32 0, i32* %.reg2mem50
store i32* %sv_0.114.reload, i32** %sv_0.0.lcssa.reg2mem
br i1 %81, label LBL_16, label LBL_13
LBL_13:
%82 = load i32, i32* %74, align 4
%83 = mul i32 %82, %storemerge415.reload
%84 = sext i32 %83 to i64
%85 = load i64, i64* %71, align 8
%86 = add i64 %85, %84
store i32 0, i32* %storemerge513.reg2mem
store i64 %86, i64* %sv_1.0.in12.reg2mem
store i32* %sv_0.114.reload, i32** %sv_0.011.reg2mem
br label LBL_14
LBL_14:
%sv_0.011.reload = load i32*, i32** %sv_0.011.reg2mem
%sv_1.0.in12.reload = load i64, i64* %sv_1.0.in12.reg2mem
%storemerge513.reload = load i32, i32* %storemerge513.reg2mem
%sv_1.0 = inttoptr i64 %sv_1.0.in12.reload to i16*
%87 = load i32, i32* %78, align 4
%88 = mul i32 %87, 32768
%89 = zext i32 %88 to i64
store i64 %89, i64* %rsi, align 8
%90 = load i32, i32* %sv_0.011.reload, align 4
%91 = load i32, i32* %80, align 4
%92 = urem i32 %91, 32
%93 = shl i32 %90, %92
%rdx.0 = zext i32 %93 to i64
%94 = add nuw nsw i64 %rdx.0, %89
%95 = trunc i64 %94 to i16
store i16 %95, i16* %sv_1.0, align 2
%96 = add i64 %sv_1.0.in12.reload, 2
%97 = ptrtoint i32* %sv_0.011.reload to i64
%98 = add i64 %97, 4
%99 = inttoptr i64 %98 to i32*
%100 = add i32 %storemerge513.reload, 1
%101 = load i32, i32* %76, align 4
%102 = zext i32 %101 to i64
%103 = sext i32 %100 to i64
%104 = icmp slt i64 %103, %102
store i32 %100, i32* %storemerge513.reg2mem
store i64 %96, i64* %sv_1.0.in12.reg2mem
store i32* %99, i32** %sv_0.011.reg2mem
br i1 %104, label LBL_14, label LBL_15
LBL_15:
%.pre24 = load i32, i32* %62, align 4
store i32 %.pre24, i32* %.reg2mem48
store i32 %101, i32* %.reg2mem50
store i32* %99, i32** %sv_0.0.lcssa.reg2mem
br label LBL_16
LBL_16:
%sv_0.0.lcssa.reload = load i32*, i32** %sv_0.0.lcssa.reg2mem
%.reload51 = load i32, i32* %.reg2mem50
%.reload49 = load i32, i32* %.reg2mem48
%105 = add i32 %storemerge415.reload, 1
%106 = zext i32 %.reload49 to i64
%107 = sext i32 %105 to i64
%108 = icmp slt i64 %107, %106
store i32 %.reload49, i32* %.reg2mem44
store i32 %.reload51, i32* %.reg2mem46
store i32 %105, i32* %storemerge415.reg2mem
store i32* %sv_0.0.lcssa.reload, i32** %sv_0.114.reg2mem
br i1 %108, label LBL_12, label LBL_17
LBL_17:
%.pre25 = load i32, i32* %6, align 8
store i32 %.pre25, i32* %.reg2mem52
br label LBL_18
LBL_18:
%.reload53 = load i32, i32* %.reg2mem52
%109 = add i32 %storemerge16.reload, 1
%110 = zext i32 %.reload53 to i64
%111 = sext i32 %109 to i64
%112 = icmp slt i64 %111, %110
store i32 %.reload53, i32* %.reg2mem40
store i64 %111, i64* %.reg2mem42
store i32 %109, i32* %storemerge16.reg2mem
store i64 %110, i64* %.lcssa.reg2mem
br i1 %112, label LBL_10, label LBL_19
LBL_19:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i32 %.reload53, { 1, 0 }
uselistorder i32 %.reload49, { 1, 0 }
uselistorder i32* %sv_0.114.reload, { 1, 0 }
uselistorder i32* %76, { 1, 0 }
uselistorder i64 %72, { 1, 0 }
uselistorder i64 %60, { 1, 0, 3, 2 }
uselistorder i64 %.reload43, { 2, 1, 0 }
uselistorder i32* %21, { 1, 2, 0, 3 }
uselistorder i64 %14, { 4, 3, 2, 1, 0 }
uselistorder i64 %12, { 1, 2, 0, 3 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem38, { 1, 0, 2 }
uselistorder i32* %storemerge618.reg2mem, { 1, 0, 2 }
uselistorder i32* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %.reg2mem40, { 1, 0, 2 }
uselistorder i64* %.reg2mem42, { 1, 0, 2 }
uselistorder i32* %storemerge16.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem44, { 1, 0, 2 }
uselistorder i32* %.reg2mem46, { 1, 0, 2 }
uselistorder i32* %storemerge415.reg2mem, { 1, 0, 2 }
uselistorder i32** %sv_0.114.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge513.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.in12.reg2mem, { 1, 0, 2 }
uselistorder i32** %sv_0.011.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem48, { 0, 2, 1 }
uselistorder i32* %.reg2mem50, { 0, 2, 1 }
uselistorder i32** %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %.lcssa.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 8, { 0, 2, 1 }
uselistorder i64 4, { 2, 0, 1 }
uselistorder i64 (i64)* @av_pix_fmt_desc_get, { 3, 2, 1, 0 }
uselistorder label LBL_19, { 0, 2, 1 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_6, { 2, 1, 0 }
} | 1 |
BinRealVul | ff_dcaadpcm_init_996 | ff_dcaadpcm_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_2
LBL_1:
%2 = call i64 @FUNC(i64 1024)
store i64 %2, i64* %arg1, align 8
%3 = call i64 @FUNC(i64 1024)
store i64 0, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
reposvul_c_test | ReadProfileMSBLong_263 | ReadProfileMSBLong | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = icmp ugt i64* %arg2, inttoptr (i64 3 to i64*)
store i64 0, i64* %storemerge.reg2mem
br i1 %0, label LBL_1, label LBL_2
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 0, i64 %1)
%3 = add i64 %1, -4
store i64 %3, i64* %arg2, align 8
store i64 4, i64* %arg1, align 8
%4 = and i64 %2, 4294967295
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 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | monitor_disas_5079 | monitor_disas | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i32 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rcx.25.reg2mem = alloca i64
%sv_0.06.reg2mem = alloca i64
%storemerge7.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = sext i32 %arg4 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%5 = trunc i64 %arg5 to i32
%6 = icmp eq i32 %5, 0
%global_var_404038.val = load i64, i64* @gv_0, align 8
%global_var_404030.val = load i64, i64* @gv_1, align 8
%storemerge4 = select i1 %6, i64 %global_var_404038.val, i64 %global_var_404030.val
store i64 %storemerge4, i64* %sv_1, align 8
%7 = icmp eq i64* %arg2, null
%8 = ptrtoint i64* %arg2 to i64
%spec.select = select i1 %7, i64 %2, i64 %8
%9 = icmp eq i64 %4, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_1, label LBL_3
LBL_1:
%11 = icmp sgt i32 %arg4, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_2, label LBL_7
LBL_2:
%12 = ptrtoint i64* %sv_1 to i64
store i32 0, i32* %storemerge7.reg2mem
store i64 %arg3, i64* %sv_0.06.reg2mem
store i64 %spec.select, i64* %rcx.25.reg2mem
br label LBL_4
LBL_3:
%13 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_2, i64 0, i64 0), i64 %arg3, i64 %spec.select, i64 %arg5, i64 %1)
store i64 %13, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%rcx.25.reload = load i64, i64* %rcx.25.reg2mem
%sv_0.06.reload = load i64, i64* %sv_0.06.reg2mem
%14 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_3, i64 0, i64 0), i64 %sv_0.06.reload, i64 %rcx.25.reload, i64 %arg5, i64 %1)
%15 = trunc i64 %sv_0.06.reload to i32
%16 = call i64 @FUNC(i64 %3, i8* inttoptr (i64 4202565 to i8*), i64 %12, i64 %4, i64 %arg5, i64 %1)
%17 = icmp slt i32 %15, 0
store i64 %16, i64* %rax.0.reg2mem
br i1 %17, label LBL_7, label LBL_5
LBL_5:
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%sext2 = mul i64 %sv_0.06.reload, 4294967296
%18 = ashr exact i64 %sext2, 32
%19 = add i64 %18, %sv_0.06.reload
%20 = add nuw nsw i32 %storemerge7.reload, 1
%21 = icmp slt i32 %20, %arg4
store i32 %20, i32* %storemerge7.reg2mem
store i64 %19, i64* %sv_0.06.reg2mem
br i1 %21, label LBL_4, label LBL_6
LBL_6:
%22 = zext i32 %20 to i64
store i64 %22, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %20, { 1, 0, 2 }
uselistorder i64 %sv_0.06.reload, { 2, 3, 0, 1 }
uselistorder i64 %spec.select, { 1, 0 }
uselistorder i64 %3, { 1, 2, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i32* %storemerge7.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.06.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 4, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @monitor_printf, { 2, 1, 0 }
uselistorder i32 0, { 2, 0, 1, 3 }
uselistorder i64 %arg5, { 1, 2, 0, 3 }
uselistorder i32 %arg4, { 1, 0, 2 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_7, { 2, 0, 3, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | parse_control_packet_17913 | parse_control_packet | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = trunc i64 %arg2 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp slt i32 %1, 0
%4 = icmp eq i1 %3, false
%5 = icmp eq i1 %2, false
%6 = icmp eq i1 %4, %5
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_8
LBL_2:
%7 = ptrtoint i64* %arg1 to i64
store i64 %7, i64* @gv_0, align 8
store i32 %1, i32* @gv_1, align 4
store i32 0, i32* inttoptr (i64 4210772 to i32*), align 4
br label LBL_3
LBL_3:
%8 = load i32, i32* @gv_2, align 4
%9 = load i32, i32* @gv_1, align 4
%10 = icmp ult i32 %8, %9
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_4, label LBL_8
LBL_4:
%11 = ptrtoint i64* %arg3 to i64
%12 = load i64, i64* @gv_0, align 8
%13 = zext i32 %8 to i64
%14 = add i64 %12, %13
%15 = icmp ult i32 %9, 9
br i1 %15, label LBL_7, label LBL_5
LBL_5:
%16 = inttoptr i64 %14 to i64*
%17 = call i32 @memcmp(i64* %16, i64* inttoptr (i64 4210748 to i64*), i32 4)
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_7, label LBL_6
LBL_6:
%20 = add i64 %14, 4
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21, align 1
%23 = bitcast i64* %arg3 to i8*
store i8 %22, i8* %23, align 1
%24 = add i64 %14, 5
%25 = add i64 %11, 4
%26 = inttoptr i64 %24 to i32*
%27 = load i32, i32* %26, align 4
%28 = inttoptr i64 %25 to i32*
store i32 %27, i32* %28, align 4
%29 = call i32 @ntohl(i32 %27)
store i32 %29, i32* %28, align 4
%30 = add i64 %14, 9
%31 = add i64 %11, 8
%32 = inttoptr i64 %31 to i64*
store i64 %30, i64* %32, align 8
%33 = load i32, i32* %28, align 4
%34 = load i32, i32* @gv_2, align 4
%35 = add i32 %33, 9
%36 = add i32 %35, %34
store i32 %36, i32* @gv_2, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%37 = bitcast i64* %arg3 to i8*
store i8 -1, i8* %37, align 1
%38 = load i32, i32* @gv_1, align 4
%39 = load i32, i32* @gv_2, align 4
%40 = sub i32 %38, %39
%41 = add i64 %11, 4
%42 = inttoptr i64 %41 to i32*
store i32 %40, i32* %42, align 4
%43 = add i64 %11, 8
%44 = inttoptr i64 %43 to i64*
store i64 %14, i64* %44, align 8
%45 = load i32, i32* @gv_1, align 4
store i32 %45, i32* @gv_2, align 4
store i64 1, 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 %14, { 3, 0, 1, 2, 4 }
uselistorder i64 %11, { 2, 3, 0, 1 }
uselistorder i32 %1, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i64 1, { 1, 0 }
uselistorder i32* @gv_2, { 4, 3, 2, 1, 0 }
uselistorder i32* @gv_1, { 3, 2, 1, 0 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_8, { 2, 3, 0, 1 }
} | 1 |
BinRealVul | tcg_out_qemu_st_18611 | tcg_out_qemu_st | 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 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %arg2 to i32
%4 = trunc i64 %arg3 to i32
%5 = trunc i64 %arg4 to i32
%6 = and i64 %arg4, 4294967295
%7 = call i64 @FUNC(i64 %6)
%8 = trunc i64 %7 to i32
%9 = call i64 @FUNC(i64 %6)
%10 = trunc i64 %9 to i32
%11 = call i64 @FUNC(i64 %2, i32 %4, i32 %10, i32 %8, i64 0)
%12 = trunc i64 %11 to i32
%13 = call i64 @FUNC(i64 %2, i64 0, i64 0, i64 0)
%14 = mul i64 %7, 4
%15 = and i64 %14, 12
%16 = add i64 %15, ptrtoint (i32** @gv_0 to i64)
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = zext i32 %18 to i64
%20 = call i64 @FUNC(i64 %2, i32 %3, i32 %12, i64 5, i64 %19)
%21 = and i64 %arg3, 4294967295
%22 = call i64 @FUNC(i64 %2, i64 7, i64 6, i64 %21)
%23 = and i64 %arg2, 4294967295
%24 = call i64 @FUNC(i64 %2, i64 7, i64 7, i64 %23)
%25 = mul i64 %7, 8
%26 = and i64 %25, 24
%27 = add i64 %26, ptrtoint (i64* @gv_1 to i64)
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = icmp eq i64 %29, 0
%31 = icmp eq i1 %30, false
%32 = zext i1 %31 to i64
%33 = call i64 @FUNC(i64 %32)
%34 = call i64 @FUNC(i64 %2, i64 %29)
%35 = call i64 @FUNC(i64 %2, i64 8, i32 8, i32 %5)
%36 = call i64 @FUNC(i64 %2, i64 %2)
%37 = or i64 %36, %1
%38 = trunc i64 %37 to i32
%39 = bitcast i64* %arg1 to i32*
store i32 %38, i32* %39, align 4
%40 = load i32, i32* %17, align 4
%41 = zext i32 %40 to i64
%42 = call i64 @FUNC(i64 %2, i32 %3, i32 %4, i64 0, i64 %41)
ret i64 %42
uselistorder i64 %2, { 0, 2, 1, 3, 4, 5, 6, 7, 8, 9 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @tcg_out_mov, { 1, 0 }
uselistorder i64 (i64, i32, i32, i64, i64)* @tcg_out_ldst_rr, { 1, 0 }
} | 1 |
BinRealVul | mpegts_write_end_14174 | mpegts_write_end | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge6.reg2mem = alloca i32
%.reg2mem22 = alloca i64
%.lcssa.reg2mem = alloca i64
%storemerge27.reg2mem = alloca i32
%.reg2mem20 = alloca i64
%.reg2mem18 = alloca i64
%.reg2mem16 = alloca i32
%storemerge38.reg2mem = alloca i32
%.reg2mem14 = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_5, label LBL_1
LBL_1:
%7 = add i64 %2, 16
%8 = inttoptr i64 %7 to i64*
store i32 %5, i32* %.reg2mem
store i64 0, i64* %.reg2mem14
store i32 0, i32* %storemerge38.reg2mem
br label LBL_2
LBL_2:
%storemerge38.reload = load i32, i32* %storemerge38.reg2mem
%.reload15 = load i64, i64* %.reg2mem14
%.reload = load i32, i32* %.reg2mem
%9 = load i64, i64* %8, align 8
%10 = mul i64 %.reload15, 8
%11 = add i64 %9, %10
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp slt i32 %17, 1
store i32 %.reload, i32* %.reg2mem16
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%19 = add i64 %15, 16
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i64 %15, 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = zext i32 %21 to i64
%26 = call i64 @FUNC(i64 %2, i64 %13, i64 %24, i32 %17, i64 %25)
%.pre = load i32, i32* %4, align 4
store i32 %.pre, i32* %.reg2mem16
br label LBL_4
LBL_4:
%.reload17 = load i32, i32* %.reg2mem16
%27 = add i32 %storemerge38.reload, 1
%28 = zext i32 %.reload17 to i64
%29 = sext i32 %27 to i64
%30 = icmp slt i64 %29, %28
store i32 %.reload17, i32* %.reg2mem
store i64 %29, i64* %.reg2mem14
store i32 %27, i32* %storemerge38.reg2mem
br i1 %30, label LBL_2, label LBL_5
LBL_5:
%31 = trunc i64 %1 to i32
%32 = add i64 %2, 24
%33 = call i64 @FUNC(i64 %32)
%34 = icmp eq i32 %31, 0
%35 = inttoptr i64 %3 to i64*
%36 = load i64, i64* %35, align 8
store i64 %36, i64* %.lcssa.reg2mem
br i1 %34, label LBL_8, label LBL_6
LBL_6:
%37 = and i64 %1, 4294967295
store i64 %36, i64* %.reg2mem18
store i64 0, i64* %.reg2mem20
store i32 0, i32* %storemerge27.reg2mem
br label LBL_7
LBL_7:
%storemerge27.reload = load i32, i32* %storemerge27.reg2mem
%.reload21 = load i64, i64* %.reg2mem20
%.reload19 = load i64, i64* %.reg2mem18
%38 = mul i64 %.reload21, 8
%39 = add i64 %38, %.reload19
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = call i64 @FUNC(i64 %41)
%43 = add i64 %41, 8
%44 = call i64 @FUNC(i64 %43)
%45 = call i64 @FUNC(i64 %41)
%46 = add i32 %storemerge27.reload, 1
%47 = sext i32 %46 to i64
%48 = icmp sgt i64 %37, %47
%49 = load i64, i64* %35, align 8
store i64 %49, i64* %.reg2mem18
store i64 %47, i64* %.reg2mem20
store i32 %46, i32* %storemerge27.reg2mem
store i64 %49, i64* %.lcssa.reg2mem
br i1 %48, label LBL_7, label LBL_8
LBL_8:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%50 = call i64 @FUNC(i64 %.lcssa.reload)
%51 = load i32, i32* %4, align 4
%52 = icmp eq i32 %51, 0
br i1 %52, label LBL_11, label LBL_9
LBL_9:
%53 = add i64 %2, 16
%54 = inttoptr i64 %53 to i64*
store i64 0, i64* %.reg2mem22
store i32 0, i32* %storemerge6.reg2mem
br label LBL_10
LBL_10:
%storemerge6.reload = load i32, i32* %storemerge6.reg2mem
%.reload23 = load i64, i64* %.reg2mem22
%55 = load i64, i64* %54, align 8
%56 = mul i64 %.reload23, 8
%57 = add i64 %55, %56
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = inttoptr i64 %59 to i64*
%61 = load i64, i64* %60, align 8
%62 = call i64 @FUNC(i64 %61)
%63 = add i32 %storemerge6.reload, 1
%64 = load i32, i32* %4, align 4
%65 = zext i32 %64 to i64
%66 = sext i32 %63 to i64
%67 = icmp slt i64 %66, %65
store i64 %66, i64* %.reg2mem22
store i32 %63, i32* %storemerge6.reg2mem
br i1 %67, label LBL_10, label LBL_11
LBL_11:
ret i64 0
uselistorder i64 %36, { 1, 0 }
uselistorder i64* %35, { 1, 0 }
uselistorder i32 %.reload17, { 1, 0 }
uselistorder i32* %4, { 1, 2, 0, 3 }
uselistorder i64 %2, { 0, 3, 1, 4, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem14, { 1, 0, 2 }
uselistorder i32* %storemerge38.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem16, { 0, 2, 1 }
uselistorder i64* %.reg2mem18, { 2, 0, 1 }
uselistorder i64* %.reg2mem20, { 2, 0, 1 }
uselistorder i32* %storemerge27.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem22, { 1, 0, 2 }
uselistorder i32* %storemerge6.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @av_free, { 2, 0, 1 }
uselistorder i64 (i64)* @av_freep, { 1, 0 }
uselistorder i32 0, { 0, 3, 1, 4, 2, 5 }
uselistorder i64 8, { 0, 3, 1, 4, 2, 5 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | php_snmp_error_4222 | php_snmp_error | define i64 @FUNC(i64* %arg1, i8* %arg2, i64 %arg3, i8* %arg4, i8* %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%rax.1.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i32
%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:
%sext = mul i64 %arg3, 4294967296
%21 = ashr exact i64 %sext, 32
%22 = icmp eq i64* %arg1, null
br i1 %22, label LBL_2.LBL_8_crit_edge, label LBL_4
LBL_3:
%.pre = trunc i64 %21 to i32
store i32 %.pre, i32* %.pre-phi.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_4:
%23 = ptrtoint i64* %arg1 to i64
%24 = call i64 @FUNC(i64 %23)
%25 = trunc i64 %21 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_6, label LBL_5
LBL_5:
%28 = inttoptr i64 %24 to i64*
%29 = call i64* @memset(i64* %28, i32 0, i32 256)
br label LBL_7
LBL_6:
%30 = inttoptr i64 %24 to i8*
store i32 32, i32* %sv_1, align 4
%31 = ptrtoint i32* %sv_1 to i64
%32 = call i32 @vsnprintf(i8* %30, i32 255, i8* %arg4, i64 %31)
br label LBL_7
LBL_7:
%33 = add i64 %24, 256
%34 = inttoptr i64 %33 to i32*
store i32 %25, i32* %34, align 4
store i32 %25, i32* %.pre-phi.reg2mem
store i64 %24, i64* %sv_0.0.reg2mem
store i64 %24, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%35 = icmp eq i32 %.pre-phi.reload, 0
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %35, label LBL_13, label LBL_9
LBL_9:
br i1 %22, label LBL_12, label LBL_10
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%36 = add i64 %sv_0.0.reload, 260
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = and i32 %38, %.pre-phi.reload
%40 = icmp eq i32 %39, 0
br i1 %40, label LBL_12, label LBL_11
LBL_11:
%41 = ptrtoint i8* %arg5 to i64
%42 = load i64, i64* @gv_0, align 8
%43 = call i64 @FUNC(i64 %42, i32 %.pre-phi.reload, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 %sv_0.0.reload, i64 %41, i64 %arg6)
store i64 %43, i64* %rax.1.reg2mem
br label LBL_13
LBL_12:
store i32 32, i32* %sv_1, align 4
%44 = ptrtoint i8* %arg4 to i64
%45 = ptrtoint i8* %arg2 to i64
%46 = call i64 @FUNC(i64 %45, i64* nonnull @gv_2, i64 1, i64 %44, i32* nonnull %sv_1)
store i64 %46, i64* %rax.1.reg2mem
br label LBL_13
LBL_13:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32 %.pre-phi.reload, { 0, 2, 1 }
uselistorder i64 %24, { 0, 1, 2, 4, 3 }
uselistorder i64 %21, { 1, 0 }
uselistorder i64* %rax.1.reg2mem, { 0, 2, 1, 3 }
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 0, { 1, 2, 0, 3 }
uselistorder i8* %arg4, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_13, { 1, 2, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 0 |
BinRealVul | alac_set_info_1822 | alac_set_info | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%5 = add i64 %4, 12
store i64 %5, i64* %sv_0, align 8
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i32
%8 = icmp ult i32 %7, 1073741823
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %5, i64 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%10 = call i64 @FUNC(i64* nonnull %sv_0)
%11 = trunc i64 %10 to i32
%12 = add i64 %4, 8
%13 = inttoptr i64 %12 to i32*
store i32 %11, i32* %13, align 4
%14 = load i64, i64* %sv_0, align 8
%15 = add i64 %14, 1
%16 = add i64 %14, 2
store i64 %16, i64* %sv_0, align 8
%17 = inttoptr i64 %15 to i8*
%18 = load i8, i8* %17, align 1
%19 = zext i8 %18 to i32
%20 = inttoptr i64 %5 to i32*
store i32 %19, i32* %20, align 4
%21 = load i64, i64* %sv_0, align 8
%22 = add i64 %21, 1
store i64 %22, i64* %sv_0, align 8
%23 = inttoptr i64 %21 to i8*
%24 = load i8, i8* %23, align 1
%25 = zext i8 %24 to i32
%26 = add i64 %4, 16
%27 = inttoptr i64 %26 to i32*
store i32 %25, i32* %27, align 4
%28 = load i64, i64* %sv_0, align 8
%29 = add i64 %28, 1
store i64 %29, i64* %sv_0, align 8
%30 = inttoptr i64 %28 to i8*
%31 = load i8, i8* %30, align 1
%32 = zext i8 %31 to i32
%33 = add i64 %4, 20
%34 = inttoptr i64 %33 to i32*
store i32 %32, i32* %34, align 4
%35 = load i64, i64* %sv_0, align 8
%36 = add i64 %35, 1
store i64 %36, i64* %sv_0, align 8
%37 = inttoptr i64 %35 to i8*
%38 = load i8, i8* %37, align 1
%39 = zext i8 %38 to i32
%40 = add i64 %4, 24
%41 = inttoptr i64 %40 to i32*
store i32 %39, i32* %41, align 4
%42 = load i64, i64* %sv_0, align 8
%43 = add i64 %42, 1
store i64 %43, i64* %sv_0, align 8
%44 = inttoptr i64 %42 to i8*
%45 = load i8, i8* %44, align 1
%46 = zext i8 %45 to i32
%47 = add i64 %4, 28
%48 = inttoptr i64 %47 to i32*
store i32 %46, i32* %48, align 4
%49 = call i64 @FUNC(i64* nonnull %sv_0)
%50 = call i64 @FUNC(i64* nonnull %sv_0)
%51 = call i64 @FUNC(i64* nonnull %sv_0)
%52 = call i64 @FUNC(i64* nonnull %sv_0)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %42, { 1, 0 }
uselistorder i64 %35, { 1, 0 }
uselistorder i64 %28, { 1, 0 }
uselistorder i64 %21, { 1, 0 }
uselistorder i64* %sv_0, { 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 4, 15 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64*)* @bytestream_get_be32, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | zend_throw_or_error_8363 | zend_throw_or_error | 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
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
%11 = trunc i64 %2 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i128 %10)
%14 = call i64 @FUNC(i128 %9)
%15 = call i64 @FUNC(i128 %8)
%16 = call i64 @FUNC(i128 %7)
%17 = call i64 @FUNC(i128 %6)
%18 = call i64 @FUNC(i128 %5)
%19 = call i64 @FUNC(i128 %4)
%20 = call i64 @FUNC(i128 %3)
br label LBL_2
LBL_2:
store i64 0, i64* %sv_1, align 8
store i32 24, i32* %sv_0, align 4
%21 = ptrtoint i32* %sv_0 to i64
%22 = ptrtoint i8* %arg3 to i64
%23 = call i64 @FUNC(i64* nonnull %sv_1, i64 0, i64 %22, i32* nonnull %sv_0)
%24 = urem i64 %arg1, 2
%25 = icmp eq i64 %24, 0
%26 = load i64, i64* %sv_1, align 8
br i1 %25, label LBL_4, label LBL_3
LBL_3:
%27 = ptrtoint i64* %arg2 to i64
%28 = call i64 @FUNC(i64 %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 %26, i64 %21, i64 %arg5, i64 %arg6)
br label LBL_5
LBL_4:
%29 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 %26, i64 %21, i64 %arg5, i64 %arg6)
br label LBL_5
LBL_5:
%30 = load i64, i64* %sv_1, align 8
%31 = call i64 @FUNC(i64 %30)
ret i64 %31
uselistorder i64 %26, { 1, 0 }
uselistorder i64 %21, { 1, 0 }
uselistorder i64* %sv_1, { 1, 2, 0, 3 }
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i8 0, { 1, 2, 3, 0 }
uselistorder i64 %arg6, { 1, 0 }
uselistorder i64 %arg5, { 1, 0 }
} | 0 |
BinRealVul | netlink_add_tap_10632 | netlink_add_tap | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 1
%4 = icmp eq i1 %3, false
%5 = icmp eq i1 %4, false
store i64 4294967274, i64* %storemerge.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64* nonnull @gv_0)
%8 = add i64 %6, 8
%9 = call i64 @FUNC(i64 %8, i64 4210736)
%10 = call i64 @FUNC(i64* nonnull @gv_0)
%11 = add i64 %6, 24
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13)
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 %6, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | yank_copy_line_5790 | yank_copy_line | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i8*
%sv_0.02.reg2mem = alloca i8*
%sv_1.03.reg2mem = alloca i32
%.reg2mem18 = alloca i64
%.reg2mem16 = alloca i32
%.pre-phi.reg2mem = alloca i32*
%.pre-phi11.reg2mem = alloca i32*
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = icmp eq i32 %arg3, 0
br i1 %3, label LBL_0.LBL_3_crit_edge, label LBL_2
LBL_1:
%4 = trunc i64 %1 to i32
%.pre7 = bitcast i64* %rdi to i32*
%.pre8 = add i64 %2, 4
%.pre10 = inttoptr i64 %.pre8 to i32*
%.pre15 = load i32, i32* %.pre10, align 4
store i32 %.pre15, i32* %.reg2mem
store i32* %.pre10, i32** %.pre-phi11.reg2mem
store i32* %.pre7, i32** %.pre-phi.reg2mem
store i32 %4, i32* %.reg2mem16
br label LBL_3
LBL_2:
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
store i32 0, i32* %6, align 4
%.phi.trans.insert = bitcast i64* %rdi to i32*
%.pre = load i32, i32* %.phi.trans.insert, align 8
store i32 0, i32* %.reg2mem
store i32* %6, i32** %.pre-phi11.reg2mem
store i32* %.phi.trans.insert, i32** %.pre-phi.reg2mem
store i32 %.pre, i32* %.reg2mem16
br label LBL_3
LBL_3:
%.reload17 = load i32, i32* %.reg2mem16
%.reload = load i32, i32* %.reg2mem
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i32 %.reload17, 1
%11 = add i32 %10, %.reload
%12 = add i32 %11, %9
%13 = sext i32 %12 to i64
%14 = call i64 @FUNC(i64 %13)
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %16, label LBL_4, label LBL_10
LBL_4:
%.pre-phi.reload = load i32*, i32** %.pre-phi.reg2mem
%.pre-phi11.reload = load i32*, i32** %.pre-phi11.reg2mem
%17 = load i64, i64* @gv_0, align 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = mul i64 %arg2, 8
%21 = add i64 %19, %20
%22 = inttoptr i64 %21 to i64*
store i64 %14, i64* %22, align 8
%23 = load i32, i32* %.pre-phi.reload, align 8
%24 = sext i32 %23 to i64
%25 = call i64 @FUNC(i64 %14, i64 32, i64 %24)
%26 = add i64 %14, %24
%27 = load i32, i32* %8, align 4
%28 = sext i32 %27 to i64
%29 = add i64 %2, 16
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i64 @FUNC(i64 %26, i64 %31, i64 %28)
%33 = load i32, i32* %8, align 4
%34 = sext i32 %33 to i64
%35 = add i64 %26, %34
%36 = load i32, i32* %.pre-phi11.reload, align 4
%37 = sext i32 %36 to i64
%38 = call i64 @FUNC(i64 %35, i64 32, i64 %37)
%39 = load i32, i32* %.pre-phi11.reload, align 4
%40 = sext i32 %39 to i64
%41 = add i64 %35, %40
%42 = inttoptr i64 %41 to i8*
store i8* %42, i8** %sv_0.1.reg2mem
br i1 %3, label LBL_9, label LBL_5
LBL_5:
%43 = load i32, i32* %8, align 4
%44 = add i32 %43, %39
%45 = icmp slt i32 %44, 1
store i8* %42, i8** %sv_0.1.reg2mem
br i1 %45, label LBL_9, label LBL_6
LBL_6:
%.pre6 = load i64, i64* %30, align 8
store i64 %.pre6, i64* %.reg2mem18
store i32 %44, i32* %sv_1.03.reg2mem
store i8* %42, i8** %sv_0.02.reg2mem
br label LBL_8
LBL_7:
%46 = load i64, i64* %30, align 8
%47 = trunc i64 %46 to i32
%48 = sub i32 0, %47
%49 = sub i32 %48, 1
%50 = add i32 %sv_1.03.reload, %49
%51 = ptrtoint i8* %sv_0.02.reload to i64
%52 = add i64 %51, -1
%53 = inttoptr i64 %52 to i8*
%54 = icmp slt i32 %50, 1
store i64 %46, i64* %.reg2mem18
store i32 %50, i32* %sv_1.03.reg2mem
store i8* %53, i8** %sv_0.02.reg2mem
store i8* %53, i8** %sv_0.1.reg2mem
br i1 %54, label LBL_9, label LBL_8
LBL_8:
%sv_0.02.reload = load i8*, i8** %sv_0.02.reg2mem
%sv_1.03.reload = load i32, i32* %sv_1.03.reg2mem
%.reload19 = load i64, i64* %.reg2mem18
%55 = sext i32 %sv_1.03.reload to i64
%56 = add i64 %.reload19, -1
%57 = add i64 %56, %55
%58 = inttoptr i64 %57 to i8*
%59 = load i8, i8* %58, align 1
%60 = sext i8 %59 to i64
%61 = and i64 %60, 4294967295
%62 = call i64 @FUNC(i64 %61)
%63 = trunc i64 %62 to i32
%64 = icmp eq i32 %63, 0
%65 = icmp eq i1 %64, false
store i8* %sv_0.02.reload, i8** %sv_0.1.reg2mem
br i1 %65, label LBL_7, label LBL_9
LBL_9:
%sv_0.1.reload = load i8*, i8** %sv_0.1.reg2mem
store i8 0, i8* %sv_0.1.reload, align 1
store i64 0, i64* %storemerge.reg2mem
br label LBL_10
LBL_10:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i8* %42, { 2, 0, 1 }
uselistorder i64* %30, { 1, 0, 2 }
uselistorder i64 %2, { 2, 3, 1, 0 }
uselistorder i64* %rdi, { 1, 0 }
uselistorder i8** %sv_0.1.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 -1, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @vim_memset, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | mss1_decode_frame_5173 | mss1_decode_frame | define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = ptrtoint i64* %arg4 to i64
%4 = ptrtoint i32* %arg1 to i64
%sv_1 = alloca i32, align 4
%5 = add i64 %3, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %4, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = mul i32 %7, 8
%12 = zext i32 %11 to i64
%13 = bitcast i32* %sv_1 to i64*
%14 = call i64 @FUNC(i64* nonnull %13, i64 %3, i64 %12)
%15 = call i64 @FUNC(i64* nonnull %13, i64* nonnull %13)
%16 = call i64 @FUNC(i64 %4, i64 %10)
%17 = trunc i64 %16 to i32
store i32 %17, i32* %sv_1, align 4
%18 = icmp slt i32 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_2, label LBL_1
LBL_1:
%20 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
%21 = load i32, i32* %sv_1, align 4
store i32 %21, i32* %rax.0.shrunk.reg2mem
br label LBL_9
LBL_2:
%22 = add i64 %10, 56
%23 = inttoptr i64 %10 to i64*
%24 = load i64, i64* %23, align 8
%25 = add i64 %10, 24
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i64 %4, 4
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = add i32 %30, -1
%32 = mul i32 %31, %27
%33 = sext i32 %32 to i64
%34 = add i64 %24, %33
%35 = add i64 %10, 80
%36 = inttoptr i64 %35 to i64*
store i64 %34, i64* %36, align 8
%37 = load i32, i32* %26, align 4
%38 = sub i32 0, %37
%39 = add i64 %10, 64
%40 = inttoptr i64 %39 to i32*
store i32 %38, i32* %40, align 4
%41 = call i64 @FUNC(i64* nonnull %13)
%42 = trunc i64 %41 to i32
%43 = icmp eq i32 %42, 0
%44 = zext i1 %43 to i32
%45 = add i64 %10, 68
%46 = inttoptr i64 %45 to i32*
store i32 %44, i32* %46, align 4
%47 = icmp eq i1 %43, false
%48 = add i64 %10, 72
%49 = inttoptr i64 %48 to i32*
br i1 %47, label LBL_4, label LBL_3
LBL_3:
store i32 0, i32* %49, align 4
%50 = add i64 %10, 48
%51 = call i64 @FUNC(i64 %50)
%52 = call i64 @FUNC(i64 %22, i64* nonnull %13)
%53 = trunc i64 %52 to i32
%54 = add i64 %10, 36
%55 = inttoptr i64 %54 to i32*
store i32 1, i32* %55, align 4
%56 = add i64 %10, 40
%57 = inttoptr i64 %56 to i32*
store i32 1, i32* %57, align 4
store i64 %50, i64* %.pre-phi.reg2mem
store i32 %53, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_4:
%58 = load i32, i32* %49, align 4
%59 = icmp eq i32 %58, 0
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %59, label LBL_5, label LBL_9
LBL_5:
%60 = add i64 %10, 36
%61 = inttoptr i64 %60 to i32*
store i32 0, i32* %61, align 4
%62 = add i64 %10, 40
%63 = inttoptr i64 %62 to i32*
store i32 2, i32* %63, align 4
%.pre = add i64 %10, 48
store i64 %.pre, i64* %.pre-phi.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%64 = load i32, i32* %29, align 4
%65 = bitcast i64* %rdi to i32*
%66 = load i32, i32* %65, align 8
%67 = zext i32 %64 to i64
%68 = zext i32 %66 to i64
%69 = call i64 @FUNC(i64 %.pre-phi.reload, i64* nonnull %13, i64 0, i64 0, i64 %68, i64 %67)
%70 = trunc i64 %69 to i32
store i32 %70, i32* %49, align 4
%71 = icmp eq i32 %70, 0
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %71, label LBL_7, label LBL_9
LBL_7:
%72 = inttoptr i64 %22 to i64*
%73 = load i64, i64* %72, align 8
%74 = add i64 %10, 8
%75 = inttoptr i64 %74 to i64*
%76 = load i64, i64* %75, align 8
%77 = inttoptr i64 %76 to i64*
%78 = inttoptr i64 %73 to i64*
%79 = call i64* @memcpy(i64* %77, i64* %78, i32 256)
%80 = add i64 %10, 44
%81 = inttoptr i64 %80 to i32*
store i32 %sv_0.0.reload, i32* %81, align 4
%82 = call i64 @FUNC(i64 %arg2, i64 %10)
%83 = trunc i64 %82 to i32
store i32 %83, i32* %sv_1, align 4
%84 = icmp slt i32 %83, 0
%85 = icmp eq i1 %84, false
store i32 %83, i32* %rax.0.shrunk.reg2mem
br i1 %85, label LBL_8, label LBL_9
LBL_8:
%86 = bitcast i64* %arg3 to i32*
store i32 1, i32* %86, align 4
store i32 %7, i32* %rax.0.shrunk.reg2mem
br label LBL_9
LBL_9:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i32* %49, { 0, 2, 1 }
uselistorder i64 %22, { 1, 0 }
uselistorder i64* %13, { 1, 0, 2, 4, 3, 5 }
uselistorder i64 %10, { 8, 9, 10, 0, 11, 12, 5, 6, 7, 1, 2, 3, 4, 14, 13, 16, 15 }
uselistorder i32* %sv_1, { 2, 1, 0, 3 }
uselistorder i64 %4, { 1, 0, 2, 3 }
uselistorder i64 %3, { 0, 2, 1 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i32 0, { 1, 2, 0, 3, 4, 5, 6, 7, 8 }
uselistorder label LBL_9, { 3, 0, 1, 2, 4 }
} | 0 |
BinRealVul | kvm_cpu_exec_72 | kvm_cpu_exec | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.14.reg2mem = alloca i32
%sv_0.16.reg2mem = alloca i32
%r9.1.reg2mem = alloca i64
%r8.1.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.reg2mem131 = alloca i32
%r9.0.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = load i64, i64* %0
%7 = ptrtoint i32* %arg1 to i64
%8 = add i64 %7, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %5, i64 %6, i64 %2, i64 %1)
%12 = call i64 @FUNC(i64 %7)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_2, label LBL_1
LBL_1:
store i32 0, i32* %arg1, align 4
store i64 1, i64* %storemerge.reg2mem
br label LBL_31
LBL_2:
%15 = inttoptr i64 %10 to i32*
%16 = trunc i64 %3 to i32
%17 = call i64 @FUNC()
%18 = add i64 %7, 4
%19 = inttoptr i64 %18 to i32*
%20 = bitcast i64* %rdi to i32*
%21 = add i64 %7, 16
%22 = inttoptr i64 %21 to i32*
%23 = add i64 %10, 296
%24 = inttoptr i64 %23 to i32*
%25 = add i64 %10, 36
%26 = inttoptr i64 %25 to i32*
%27 = add i64 %10, 32
%28 = inttoptr i64 %27 to i32*
%29 = add i64 %10, 40
%30 = add i64 %10, 24
%31 = inttoptr i64 %30 to i64*
%32 = add i64 %10, 16
%33 = inttoptr i64 %32 to i32*
%34 = add i64 %10, 12
%35 = inttoptr i64 %34 to i32*
%36 = add i64 %10, 8
%37 = inttoptr i64 %36 to i32*
%38 = add i64 %10, 20
%39 = inttoptr i64 %38 to i32*
%40 = add i64 %10, 4
%41 = inttoptr i64 %40 to i32*
store i32 %16, i32* %.reg2mem
br label LBL_3
LBL_3:
%r9.0.reload = load i64, i64* %r9.0.reg2mem
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%.reload = load i32, i32* %.reg2mem
%42 = load i32, i32* %19, align 4
%43 = icmp eq i32 %42, 0
store i32 %.reload, i32* %.reg2mem131
br i1 %43, label LBL_5, label LBL_4
LBL_4:
%44 = call i64 @FUNC(i64 %7, i64 14)
store i32 0, i32* %19, align 4
%.pre = load i32, i32* %20, align 8
store i32 %.pre, i32* %.reg2mem131
br label LBL_5
LBL_5:
%.reload132 = load i32, i32* %.reg2mem131
%45 = call i64 @FUNC(i64 %7, i64 %10)
%46 = icmp eq i32 %.reload132, 0
br i1 %46, label LBL_7, label LBL_6
LBL_6:
%47 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i64 %10, i64 %10, i64 %rcx.0.reload, i64 %r8.0.reload, i64 %r9.0.reload)
%48 = call i64 @FUNC()
br label LBL_7
LBL_7:
%49 = call i64 @FUNC(i64 %7, i64 3, i64 0)
%50 = trunc i64 %49 to i32
%51 = call i64 @FUNC(i64 %7, i64 %10)
%52 = icmp slt i32 %50, 0
%53 = icmp eq i1 %52, false
br i1 %53, label LBL_11, label LBL_8
LBL_8:
%54 = icmp ne i32 %50, -4
%55 = icmp eq i32 %50, -11
%56 = icmp eq i1 %55, false
%or.cond = icmp eq i1 %54, %56
br i1 %or.cond, label LBL_95, label LBL_9
LBL_9:
%57 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0), i64 %10, i64 %10, i64 %rcx.0.reload, i64 %r8.0.reload, i64 %r9.0.reload)
%58 = call i64 @FUNC()
store i32 2, i32* %sv_0.14.reg2mem
br label LBL_30
LBL_10:
%59 = sub i32 0, %50
%60 = call i8* @strerror(i32 %59)
%61 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%62 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %61, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_4, i64 0, i64 0), i8* %60)
%63 = call i64 @FUNC()
store i32 -1, i32* %sv_0.16.reg2mem
br label LBL_29
LBL_11:
%64 = trunc i64 %51 to i32
%65 = load i32, i32* %15, align 4
%66 = zext i32 %65 to i64
%67 = load i32, i32* %22, align 4
%68 = zext i32 %67 to i64
%69 = call i64 @FUNC(i64 %68, i64 %66)
%70 = load i32, i32* %15, align 4
%71 = add i32 %70, -4
%72 = zext i32 %71 to i64
store i64 %72, i64* @0, align 8
switch i32 %70, label LBL_25 [
i32 4, label LBL_12
i32 5, label LBL_13
i32 6, label LBL_14
i32 7, label LBL_15
i32 8, label LBL_98
i32 9, label LBL_17
i32 10, label LBL_18
]
LBL_12:
%73 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_5, i64 0, i64 0), i64 %66, i64 %66, i64 %rcx.0.reload, i64 %r8.0.reload, i64 %r9.0.reload)
%74 = load i32, i32* %33, align 4
%75 = load i32, i32* %35, align 4
%76 = load i32, i32* %37, align 4
%77 = load i32, i32* %39, align 4
%78 = sext i32 %77 to i64
%79 = add i64 %10, %78
%80 = load i32, i32* %41, align 4
%81 = zext i32 %74 to i64
%82 = zext i32 %75 to i64
%83 = zext i32 %76 to i64
%84 = zext i32 %80 to i64
%85 = call i64 @FUNC(i64 %84, i32 %64, i64 %79, i64 %83, i64 %82, i64 %81)
store i32 0, i32* %sv_0.0.reg2mem
store i64 %83, i64* %rcx.1.reg2mem
store i64 %82, i64* %r8.1.reg2mem
store i64 %81, i64* %r9.1.reg2mem
br label LBL_26
LBL_13:
%86 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_6, i64 0, i64 0), i64 %66, i64 %66, i64 %rcx.0.reload, i64 %r8.0.reload, i64 %r9.0.reload)
%87 = load i32, i32* %26, align 4
%88 = load i32, i32* %28, align 4
%89 = load i64, i64* %31, align 8
%90 = zext i32 %87 to i64
%91 = zext i32 %88 to i64
%92 = call i64 @FUNC(i64* nonnull @gv_7, i64 %89, i32 %64, i64 %29, i64 %91, i64 %90)
store i32 0, i32* %sv_0.0.reg2mem
store i64 %29, i64* %rcx.1.reg2mem
store i64 %91, i64* %r8.1.reg2mem
store i64 %90, i64* %r9.1.reg2mem
br label LBL_26
LBL_14:
%93 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_8, i64 0, i64 0), i64 %66, i64 %66, i64 %rcx.0.reload, i64 %r8.0.reload, i64 %r9.0.reload)
br label LBL_97
LBL_15:
%94 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_9, i64 0, i64 0), i64 %66, i64 %66, i64 %rcx.0.reload, i64 %r8.0.reload, i64 %r9.0.reload)
%95 = call i64 @FUNC()
br label LBL_97
LBL_16:
%96 = add i64 %10, 304
%97 = inttoptr i64 %96 to i64*
%98 = load i64, i64* %97, align 8
%99 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%100 = trunc i64 %98 to i32
%101 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %99, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_10, i64 0, i64 0), i32 %100)
%102 = call i64 @FUNC()
store i32 -1, i32* %sv_0.16.reg2mem
br label LBL_29
LBL_17:
%103 = call i64 @FUNC(i64 %7, i64 %10)
%104 = trunc i64 %103 to i32
store i32 %104, i32* %sv_0.0.reg2mem
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
store i64 %r8.0.reload, i64* %r8.1.reg2mem
store i64 %r9.0.reload, i64* %r9.1.reg2mem
br label LBL_26
LBL_18:
%105 = load i32, i32* %24, align 4
%106 = icmp eq i32 %105, 13
br i1 %106, label LBL_23, label LBL_19
LBL_19:
%107 = icmp sgt i32 %105, 13
br i1 %107, label LBL_24, label LBL_20
LBL_20:
switch i32 %105, label LBL_24 [
i32 11, label LBL_21
i32 12, label LBL_22
]
LBL_21:
%108 = call i64 @FUNC()
br label LBL_97
LBL_22:
%109 = call i64 @FUNC()
br label LBL_97
LBL_23:
%110 = call i64 @FUNC()
%111 = call i64 @FUNC()
%112 = call i64 @FUNC()
store i32 0, i32* %sv_0.0.reg2mem
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
store i64 %r8.0.reload, i64* %r8.1.reg2mem
store i64 %r9.0.reload, i64* %r9.1.reg2mem
br label LBL_26
LBL_24:
%113 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_11, i64 0, i64 0), i64 %66, i64 %66, i64 %rcx.0.reload, i64 %r8.0.reload, i64 %r9.0.reload)
%114 = call i64 @FUNC(i64 %7, i64 %10)
%115 = trunc i64 %114 to i32
store i32 %115, i32* %sv_0.0.reg2mem
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
store i64 %r8.0.reload, i64* %r8.1.reg2mem
store i64 %r9.0.reload, i64* %r9.1.reg2mem
br label LBL_26
LBL_25:
%116 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_11, i64 0, i64 0), i64 %66, i64 %66, i64 %rcx.0.reload, i64 %r8.0.reload, i64 %r9.0.reload)
%117 = call i64 @FUNC(i64 %7, i64 %10)
%118 = trunc i64 %117 to i32
store i32 %118, i32* %sv_0.0.reg2mem
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
store i64 %r8.0.reload, i64* %r8.1.reg2mem
store i64 %r9.0.reload, i64* %r9.1.reg2mem
br label LBL_26
LBL_26:
%r9.1.reload = load i64, i64* %r9.1.reg2mem
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%119 = icmp eq i32 %sv_0.0.reload, 0
store i32 %.reload132, i32* %.reg2mem
store i64 %rcx.1.reload, i64* %rcx.0.reg2mem
store i64 %r8.1.reload, i64* %r8.0.reg2mem
store i64 %r9.1.reload, i64* %r9.0.reg2mem
br i1 %119, label LBL_3, label LBL_28
LBL_27:
%120 = call i64 @FUNC()
store i32 2, i32* %sv_0.14.reg2mem
br label LBL_30
LBL_28:
%121 = call i64 @FUNC()
%122 = icmp slt i32 %sv_0.0.reload, 0
%123 = icmp eq i1 %122, false
store i32 %sv_0.0.reload, i32* %sv_0.16.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.14.reg2mem
br i1 %123, label LBL_30, label LBL_29
LBL_29:
%sv_0.16.reload = load i32, i32* %sv_0.16.reg2mem
%124 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%125 = ptrtoint %_IO_FILE* %124 to i64
%126 = call i64 @FUNC(i64 %7, i64 %125, i64 4198464, i64 15)
%127 = call i64 @FUNC(i64 16)
store i32 %sv_0.16.reload, i32* %sv_0.14.reg2mem
br label LBL_30
LBL_30:
%sv_0.14.reload = load i32, i32* %sv_0.14.reg2mem
store i32 0, i32* %arg1, align 4
%128 = zext i32 %sv_0.14.reload to i64
store i64 %128, i64* %storemerge.reg2mem
br label LBL_31
LBL_31:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %sv_0.0.reload, { 0, 1, 3, 2 }
uselistorder i64 %66, { 10, 11, 8, 9, 2, 3, 0, 1, 6, 7, 4, 5, 12 }
uselistorder i32 %64, { 1, 0 }
uselistorder i32 %50, { 2, 0, 1, 3 }
uselistorder i32 %.reload132, { 1, 0 }
uselistorder i64 %rcx.0.reload, { 3, 4, 1, 5, 2, 0, 10, 11, 6, 7, 9, 8 }
uselistorder i64 %r8.0.reload, { 3, 4, 1, 5, 2, 0, 10, 11, 6, 7, 9, 8 }
uselistorder i64 %r9.0.reload, { 3, 4, 1, 5, 2, 0, 10, 11, 6, 7, 9, 8 }
uselistorder i64 %10, { 1, 13, 12, 11, 0, 15, 16, 17, 18, 19, 20, 2, 3, 4, 5, 6, 7, 8, 9, 10, 14, 21 }
uselistorder i64 %7, { 0, 3, 1, 2, 5, 6, 7, 9, 4, 8, 10, 11 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.0.reg2mem, { 1, 0 }
uselistorder i64* %r8.0.reg2mem, { 1, 0 }
uselistorder i64* %r9.0.reg2mem, { 1, 0 }
uselistorder i32* %.reg2mem131, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 6, 4, 5, 3, 2, 1 }
uselistorder i64* %rcx.1.reg2mem, { 0, 6, 4, 5, 3, 2, 1 }
uselistorder i64* %r8.1.reg2mem, { 0, 6, 4, 5, 3, 2, 1 }
uselistorder i64* %r9.1.reg2mem, { 0, 6, 4, 5, 3, 2, 1 }
uselistorder i32* %sv_0.16.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %sv_0.14.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 13, { 1, 0 }
uselistorder i64 ()* @qemu_system_reset_request, { 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0 }
uselistorder %_IO_FILE** @gv_3, { 2, 1, 0 }
uselistorder i64 ()* @qemu_mutex_lock_iothread, { 4, 1, 5, 0, 2, 3 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i64 ()* @qemu_mutex_unlock_iothread, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @DPRINTF, { 3, 8, 7, 6, 5, 4, 2, 1, 0 }
uselistorder i32* %arg1, { 1, 0, 2 }
uselistorder label LBL_30, { 2, 3, 0, 1 }
uselistorder label LBL_29, { 2, 0, 1 }
uselistorder label LBL_97, { 2, 3, 1, 0 }
uselistorder label LBL_26, { 5, 1, 0, 2, 3, 4 }
} | 1 |
BinRealVul | renderCoTable_5678 | renderCoTable | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem11 = alloca i32
%sv_0.0.reg2mem = alloca i32
%.reg2mem9 = alloca i64
%storemerge5.reg2mem = alloca i32
%.reg2mem7 = alloca i64
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%sv_3 = alloca i64, align 8
%2 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%3 = zext i32 %2 to i64
%4 = icmp sgt i32 %2, 4
store i64 %3, i64* %rax.0.reg2mem
br i1 %4, label LBL_12, label LBL_1
LBL_1:
%5 = trunc i64 %1 to i32
store i32 ptrtoint (i32* @gv_1 to i32), i32* bitcast (i64* @gv_0 to i32*), align 8
%6 = and i64 %1, 4294967295
%7 = icmp eq i32 %5, 0
store i64 %6, i64* %rax.0.reg2mem
br i1 %7, label LBL_12, label LBL_2
LBL_2:
%8 = ptrtoint i64* %arg1 to i64
%9 = ptrtoint i64* %sv_3 to i64
%sext = mul i64 %arg2, 4294967296
%10 = bitcast i64* %rdi to i32*
%11 = add i64 %9, -8
%12 = inttoptr i64 %11 to i64*
%13 = ashr exact i64 %sext, 32
store i32 %5, i32* %.reg2mem
store i64 0, i64* %.reg2mem7
store i32 0, i32* %storemerge5.reg2mem
br label LBL_3
LBL_3:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%.reload8 = load i64, i64* %.reg2mem7
%.reload = load i32, i32* %.reg2mem
%14 = mul i64 %.reload8, 32
%15 = add i64 %14, %8
%16 = add i64 %15, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 0
store i32 %.reload, i32* %.reg2mem11
br i1 %19, label LBL_11, label LBL_4
LBL_4:
%20 = add i64 %15, 16
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = add i64 %15, 20
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = add i64 %15, 24
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
store i32 %28, i32* %sv_2, align 4
%29 = zext i32 %25 to i64
%30 = call i64 @FUNC(i64 %8, i64 %29, i32 %22)
%31 = add i64 %15, 32
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = load i32, i32* %sv_2, align 4
%35 = zext i32 %34 to i64
store i64 %35, i64* %12, align 8
%36 = and i64 %30, 4294967295
%37 = call i64 @FUNC(i64* nonnull %sv_1, i32* nonnull %sv_2, i64* nonnull %sv_1, i64 10, i64 %33, i64 %36)
%38 = call i64 @FUNC(i64 %8, i64 %29)
%39 = load i64, i64* %sv_1, align 8
%40 = and i64 %39, 4294967295
%41 = icmp slt i64 %13, %40
store i64 %39, i64* %.reg2mem9
br i1 %41, label LBL_5, label LBL_6
LBL_5:
store i64 %13, i64* %sv_1, align 8
store i64 %13, i64* %.reg2mem9
br label LBL_6
LBL_6:
%.reload10 = load i64, i64* %.reg2mem9
%42 = add i64 %18, 328
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_8, label LBL_7
LBL_7:
%47 = trunc i64 %.reload10 to i32
%48 = load i32, i32* %sv_2, align 4
%49 = sub i32 %47, %48
store i32 %49, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_8:
%50 = icmp slt i32 %44, 1
store i32 %44, i32* %sv_0.0.reg2mem
br i1 %50, label LBL_9, label LBL_10
LBL_9:
%51 = trunc i64 %.reload10 to i32
%52 = mul i32 %44, -1
%53 = mul i32 %52, %51
%54 = sdiv i32 %53, 100
store i32 %54, i32* %43, align 4
store i32 %54, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%55 = zext i32 %sv_0.0.reload to i64
%56 = call i64 @FUNC(i64 %18, i64 %55, i64* nonnull %sv_1)
%.pre = load i32, i32* %10, align 8
store i32 %.pre, i32* %.reg2mem11
br label LBL_11
LBL_11:
%.reload12 = load i32, i32* %.reg2mem11
%57 = add i32 %storemerge5.reload, 1
%58 = zext i32 %.reload12 to i64
%59 = sext i32 %57 to i64
%60 = icmp slt i64 %59, %58
store i32 %.reload12, i32* %.reg2mem
store i64 %59, i64* %.reg2mem7
store i32 %57, i32* %storemerge5.reg2mem
store i64 %58, i64* %rax.0.reg2mem
br i1 %60, label LBL_3, label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload12, { 1, 0 }
uselistorder i32 %44, { 1, 0, 2, 3 }
uselistorder i64 %.reload10, { 1, 0 }
uselistorder i64 %15, { 0, 3, 2, 1, 4 }
uselistorder i64 %8, { 1, 2, 0 }
uselistorder i32* %sv_2, { 1, 0, 2, 3 }
uselistorder i64* %sv_1, { 0, 3, 4, 1, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem7, { 1, 0, 2 }
uselistorder i32* %storemerge5.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 10, { 1, 0 }
uselistorder i64 32, { 2, 0, 1 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder i32 0, { 3, 0, 1, 2 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 1, 0, 2 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | avc_parse_hrd_parameters_13021 | avc_parse_hrd_parameters | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.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 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0))
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 32
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%sext = mul i64 %5, 4294967296
%8 = ashr exact i64 %sext, 32
%9 = call i64 @FUNC(i64 1, i64 2, i64 %8, i64 %3, i64 %2, i64 %1)
br label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %4, i64 4, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0))
%11 = call i64 @FUNC(i64 %4, i64 4, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0))
%12 = icmp slt i32 %6, 0
store i32 0, i32* %storemerge1.reg2mem
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%13 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_3, i64 0, i64 0), i32 %storemerge1.reload)
%14 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_4, i64 0, i64 0), i32 %storemerge1.reload)
%15 = zext i32 %storemerge1.reload to i64
%16 = call i64 @FUNC(i64 %4, i64 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_5, i64 0, i64 0), i64 %15)
%17 = add i32 %storemerge1.reload, 1
%18 = icmp sgt i32 %17, %6
store i32 %17, i32* %storemerge1.reg2mem
br i1 %18, label LBL_4, label LBL_3
LBL_4:
%19 = ptrtoint i64* %arg2 to i64
%20 = call i64 @FUNC(i64 %4, i64 5, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_6, i64 0, i64 0))
%21 = call i64 @FUNC(i64 %4, i64 5, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_7, i64 0, i64 0))
%22 = trunc i64 %21 to i32
%23 = bitcast i64* %arg2 to i32*
store i32 %22, i32* %23, align 4
%24 = call i64 @FUNC(i64 %4, i64 5, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_8, i64 0, i64 0))
%25 = trunc i64 %24 to i32
%26 = add i64 %19, 4
%27 = inttoptr i64 %26 to i32*
store i32 %25, i32* %27, align 4
%28 = call i64 @FUNC(i64 %4, i64 5, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_9, i64 0, i64 0))
%29 = trunc i64 %28 to i32
%30 = add i64 %19, 8
%31 = inttoptr i64 %30 to i32*
store i32 %29, i32* %31, align 4
ret i64 %28
uselistorder i64 %28, { 1, 0 }
uselistorder i32 %storemerge1.reload, { 3, 2, 1, 0 }
uselistorder i32 %6, { 1, 0, 2 }
uselistorder i64 %4, { 3, 4, 6, 5, 2, 1, 0, 8, 7, 9 }
uselistorder i32* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i8*, i32)* @gf_bs_read_ue_log_idx, { 1, 0 }
uselistorder i64 (i64, i64, i8*)* @gf_bs_read_int_log, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 4, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | alloc_clusters_noref_807 | alloc_clusters_noref | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 %arg2)
%2 = icmp eq i64 %1, 0
br i1 %2, label LBL_7, label LBL_1
LBL_1:
%3 = add i64 %0, 1
br label LBL_2
LBL_2:
store i64 0, i64* %storemerge13.reg2mem
br label LBL_3
LBL_3:
store i64 %3, i64* %arg1, align 8
%4 = call i64 @FUNC(i64 %0, i64 %0)
%5 = trunc i64 %4 to i32
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_5, label LBL_4
LBL_4:
%sext = mul i64 %4, 4294967296
%8 = ashr exact i64 %sext, 32
store i64 %8, i64* %storemerge.reg2mem
br label LBL_8
LBL_5:
%9 = icmp eq i32 %5, 0
br i1 %9, label LBL_6, label LBL_2
LBL_6:
%storemerge13.reload = load i64, i64* %storemerge13.reg2mem
%10 = add nuw i64 %storemerge13.reload, 1
%11 = icmp ult i64 %10, %1
store i64 %10, i64* %storemerge13.reg2mem
br i1 %11, label LBL_3, label LBL_7
LBL_7:
%12 = sub i64 %0, %1
%13 = add i64 %0, 8
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = urem i32 %15, 64
%17 = zext i32 %16 to i64
%rdx.0 = shl i64 %12, %17
store i64 %rdx.0, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64 %0, { 3, 0, 1, 4, 2, 5 }
uselistorder i64* %storemerge13.reg2mem, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | RegisterFITSImage_8764 | RegisterFITSImage | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%1 = inttoptr i64 %0 to i64*
store i64 4198793, i64* %1, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
store i64 4198800, i64* %3, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
store i64 4198807, i64* %5, align 8
%6 = add i64 %0, 24
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %7, align 4
%8 = add i64 %0, 28
%9 = inttoptr i64 %8 to i32*
store i32 1, i32* %9, align 4
%10 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0))
%11 = add i64 %0, 32
%12 = inttoptr i64 %11 to i64*
store i64 %10, i64* %12, align 8
%13 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%14 = add i64 %0, 40
%15 = inttoptr i64 %14 to i64*
store i64 %13, i64* %15, align 8
%16 = call i64 @FUNC(i64 %0)
%17 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0))
%18 = inttoptr i64 %17 to i64*
store i64 4198793, i64* %18, align 8
%19 = add i64 %17, 8
%20 = inttoptr i64 %19 to i64*
store i64 4198800, i64* %20, align 8
%21 = add i64 %17, 16
%22 = inttoptr i64 %21 to i64*
store i64 4198807, i64* %22, align 8
%23 = add i64 %17, 24
%24 = inttoptr i64 %23 to i32*
store i32 0, i32* %24, align 4
%25 = add i64 %17, 28
%26 = inttoptr i64 %25 to i32*
store i32 1, i32* %26, align 4
%27 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0))
%28 = add i64 %17, 32
%29 = inttoptr i64 %28 to i64*
store i64 %27, i64* %29, align 8
%30 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0))
%31 = add i64 %17, 40
%32 = inttoptr i64 %31 to i64*
store i64 %30, i64* %32, align 8
%33 = call i64 @FUNC(i64 %17)
ret i64 305419896
uselistorder i64 (i64)* @RegisterMagickInfo, { 1, 0 }
uselistorder i64 (i8*)* @ConstantString, { 3, 2, 1, 0 }
uselistorder i32 1, { 1, 2, 0 }
uselistorder i64 (i8*)* @SetMagickInfo, { 1, 0 }
} | 0 |
BinRealVul | security_load_policycaps_8990 | security_load_policycaps | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64* nonnull @gv_0, i64 0)
%1 = trunc i64 %0 to i8
store i8 %1, i8* inttoptr (i64 4210724 to i8*), align 4
%2 = call i64 @FUNC(i64* nonnull @gv_0, i64 1)
%3 = trunc i64 %2 to i8
store i8 %3, i8* inttoptr (i64 4210725 to i8*), align 1
%4 = call i64 @FUNC(i64* nonnull @gv_0, i64 2)
%5 = trunc i64 %4 to i8
store i8 %5, i8* inttoptr (i64 4210726 to i8*), align 2
ret i64 %4
uselistorder i64 %4, { 1, 0 }
uselistorder i64 (i64*, i64)* @ebitmap_get_bit, { 2, 1, 0 }
} | 0 |
BinRealVul | virtio_gpu_object_create_13442 | virtio_gpu_object_create | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
store i64 0, i64* %arg5, align 8
%1 = call i64 @FUNC(i64 %0, i64 %arg2, i64 16)
%2 = call i64 @FUNC(i64 16, i64 0)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 4294967284, i64* %rax.0.shrunk.reg2mem
br i1 %4, label LBL_1, label LBL_5
LBL_1:
%5 = call i64 @FUNC(i64 %arg2, i64 4096)
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8, i64 %2, i64 %5)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = call i64 @FUNC(i64 %2)
store i64 %9, i64* %rax.0.shrunk.reg2mem
br label LBL_5
LBL_3:
%13 = trunc i64 %arg3 to i8
%14 = urem i64 %arg3, 256
%15 = urem i64 %arg4, 256
%16 = icmp eq i8 %13, 0
%. = zext i1 %16 to i32
%17 = add i64 %2, 4
%18 = inttoptr i64 %17 to i8*
store i8 0, i8* %18, align 1
%19 = call i64 @FUNC(i64 %2, i64 %15)
%20 = icmp eq i64 %14, 0
%21 = zext i1 %20 to i64
%22 = add i64 %2, 12
%23 = add i64 %2, 8
%24 = call i64 @FUNC(i64 %0, i64 %23, i64 %5, i32 %., i64 %22, i64 0, i64 %21)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
store i64 %24, i64* %rax.0.shrunk.reg2mem
br i1 %26, label LBL_4, label LBL_5
LBL_4:
store i64 %2, i64* %arg5, align 8
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_5
LBL_5:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %2, { 0, 2, 1, 3, 4, 5, 6, 7 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder label LBL_5, { 2, 0, 3, 1 }
} | 0 |
BinRealVul | asf_read_ext_content_3224 | asf_read_ext_content | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.0.lcssa.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%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 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %3)
%6 = urem i64 %5, 65536
%7 = icmp eq i64 %6, 0
store i64 %3, i64* %rdi.0.lcssa.reg2mem
br i1 %7, label LBL_8, label LBL_1
LBL_1:
%8 = add i64 %0, 16
store i32 0, i32* %storemerge3.reg2mem
br label LBL_2
LBL_2:
store i64 0, i64* %sv_0, align 8
%9 = call i64 @FUNC(i64 %3)
%10 = trunc i64 %9 to i16
%11 = icmp eq i16 %10, 0
%12 = icmp eq i1 %11, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %12, label LBL_3, label LBL_9
LBL_3:
%13 = urem i64 %9, 65536
%14 = call i64 @FUNC(i64 %13)
store i64 %14, i64* %sv_0, align 8
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %16, label LBL_4, label LBL_9
LBL_4:
%17 = call i64 @FUNC(i64 %3, i16 %10, i64 %14, i16 %10)
%18 = call i64 @FUNC(i64 %3)
%19 = call i64 @FUNC(i64 %3)
%20 = trunc i64 %19 to i16
%21 = load i64, i64* %sv_0, align 8
%22 = urem i64 %18, 65536
%23 = call i64 @FUNC(i64 %0, i64 %21, i16 %10, i16 %20, i64 %22, i64 %8)
%24 = trunc i64 %23 to i32
%25 = call i64 @FUNC(i64* nonnull %sv_0)
%26 = icmp slt i32 %24, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_6, label LBL_5
LBL_5:
%28 = and i64 %23, 4294967295
store i64 %28, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%29 = add i32 %storemerge3.reload, 1
%30 = sext i32 %29 to i64
%31 = icmp sgt i64 %6, %30
store i32 %29, i32* %storemerge3.reg2mem
br i1 %31, label LBL_2, label LBL_7
LBL_7:
%32 = ptrtoint i64* %sv_0 to i64
store i64 %32, i64* %rdi.0.lcssa.reg2mem
br label LBL_8
LBL_8:
%sext = mul i64 %4, 4294967296
%33 = ashr exact i64 %sext, 32
%rdi.0.lcssa.reload = load i64, i64* %rdi.0.lcssa.reg2mem
%34 = call i64 @FUNC(i64 %3, i64 %rdi.0.lcssa.reload, i64 %33)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i16 %10, { 0, 2, 1, 3 }
uselistorder i64 %3, { 1, 4, 3, 2, 5, 0, 6, 7 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 (i64)* @avio_rl16, { 3, 2, 1, 0 }
uselistorder label LBL_9, { 3, 2, 0, 1 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | generic_file_llseek_unlocked_17803 | generic_file_llseek_unlocked | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.pn.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg3 to i32
%2 = icmp eq i32 %1, 1
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = icmp eq i32 %1, 2
%4 = icmp eq i1 %3, false
%5 = select i1 %4, i64 0, i64 %0
store i64 %5, i64* %.pn.reg2mem
br label LBL_3
LBL_2:
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
store i64 %8, i64* %.pn.reg2mem
br label LBL_3
LBL_3:
%.pn.reload = load i64, i64* %.pn.reg2mem
%sv_0.0 = add i64 %.pn.reload, %arg2
%9 = icmp slt i64 %sv_0.0, 0
store i64 -22, i64* %storemerge.reg2mem
br i1 %9, label LBL_7, label LBL_4
LBL_4:
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp sgt i64 %sv_0.0, %14
store i64 -22, i64* %storemerge.reg2mem
br i1 %15, label LBL_7, label LBL_5
LBL_5:
%16 = icmp eq i64 %sv_0.0, %12
store i64 %sv_0.0, i64* %storemerge.reg2mem
br i1 %16, label LBL_7, label LBL_6
LBL_6:
store i64 %sv_0.0, i64* %11, align 8
%17 = add i64 %0, 16
%18 = inttoptr i64 %17 to i32*
store i32 0, i32* %18, align 4
store i64 %sv_0.0, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_0.0, { 1, 2, 0, 3, 4, 5 }
uselistorder i64 %0, { 1, 2, 3, 0 }
uselistorder i64* %.pn.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i64 -22, { 1, 0 }
uselistorder label LBL_7, { 1, 0, 3, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | process_frame_obj_12143 | process_frame_obj | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%.pre-phi18.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 8
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %4)
%7 = trunc i64 %6 to i32
%sext8 = mul i32 %7, 65536
%8 = ashr exact i32 %sext8, 16
%9 = call i64 @FUNC(i64 %4)
%10 = trunc i64 %9 to i32
%sext6 = mul i32 %10, 65536
%11 = ashr exact i32 %sext6, 16
%12 = call i64 @FUNC(i64 %4)
%13 = trunc i64 %12 to i32
%sext9 = mul i32 %13, 65536
%14 = ashr exact i32 %sext9, 16
%15 = call i64 @FUNC(i64 %4)
%16 = trunc i64 %15 to i32
%sext7 = mul i32 %16, 65536
%17 = ashr exact i32 %sext7, 16
%18 = inttoptr i64 %4 to i32*
%19 = load i32, i32* %18, align 4
%20 = zext i32 %19 to i64
%21 = urem i64 %12, 65536
%22 = urem i64 %6, 65536
%23 = add nuw nsw i64 %21, %22
%24 = icmp ugt i64 %23, %20
%.pre = add i64 %3, 12
%.pre11 = inttoptr i64 %.pre to i32*
br i1 %24, label LBL_0.LBL_3_crit_edge, label LBL_2
LBL_1:
%.pre13 = urem i32 %17, 65536
%.pre15 = urem i32 %11, 65536
%.pre17 = add nuw nsw i32 %.pre13, %.pre15
store i32 %.pre17, i32* %.pre-phi18.reg2mem
br label LBL_3
LBL_2:
%25 = load i32, i32* %.pre11, align 4
%26 = urem i32 %11, 65536
%27 = zext i32 %26 to i64
%28 = urem i32 %17, 65536
%29 = add nuw nsw i32 %28, %26
%30 = icmp ult i32 %25, %29
store i32 %29, i32* %.pre-phi18.reg2mem
store i64 %27, i64* %rcx.0.reg2mem
br i1 %30, label LBL_3, label LBL_5
LBL_3:
%.pre-phi18.reload = load i32, i32* %.pre-phi18.reg2mem
%31 = urem i32 %14, 65536
%32 = urem i32 %8, 65536
%33 = add nuw nsw i32 %31, %32
%34 = sub i32 %19, %33
%35 = xor i32 %34, -2147483648
%36 = and i32 %35, %19
%37 = icmp slt i32 %36, 0
%38 = icmp slt i32 %34, 0
%39 = icmp eq i1 %38, %37
%40 = select i1 %39, i32 %19, i32 %33
store i32 %40, i32* %18, align 4
%41 = load i32, i32* %.pre11, align 4
%42 = sub i32 %41, %.pre-phi18.reload
%43 = xor i32 %42, -2147483648
%44 = and i32 %43, %41
%45 = icmp slt i32 %44, 0
%46 = icmp slt i32 %42, 0
%47 = icmp eq i1 %46, %45
%48 = select i1 %47, i32 %41, i32 %.pre-phi18.reload
store i32 %48, i32* %.pre11, align 4
%49 = zext i32 %33 to i64
%50 = call i64 @FUNC(i64 %3, i64 %49, i32 %.pre-phi18.reload)
%51 = call i64 @FUNC(i64 %3)
%52 = trunc i64 %51 to i32
%53 = icmp eq i32 %52, 0
store i64 %49, i64* %rcx.0.reg2mem
br i1 %53, label LBL_5, label LBL_4
LBL_4:
%54 = call i64 @FUNC(i64 %3, i64 16, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %49, i64 %2, i64 %1)
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_14
LBL_5:
%55 = trunc i64 %5 to i32
%sext = mul i32 %55, 65536
%56 = ashr exact i32 %sext, 16
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%57 = call i64 @FUNC(i64 %4, i64 4)
%58 = trunc i32 %56 to i16
%59 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i16 %58, i64 %rcx.0.reload, i64 %2, i64 %1)
%60 = urem i32 %56, 65536
%61 = icmp eq i32 %60, 47
br i1 %61, label LBL_12, label LBL_6
LBL_6:
%62 = icmp ugt i32 %60, 47
br i1 %62, label LBL_13, label LBL_7
LBL_7:
%63 = icmp eq i32 %60, 37
br i1 %63, label LBL_11, label LBL_8
LBL_8:
%64 = icmp ugt i32 %60, 37
br i1 %64, label LBL_13, label LBL_9
LBL_9:
%65 = icmp ne i32 %60, 1
%66 = icmp eq i32 %60, 3
%67 = icmp eq i1 %66, false
%or.cond = icmp eq i1 %65, %67
br i1 %or.cond, label LBL_13, label LBL_10
LBL_10:
%68 = trunc i32 %14 to i16
%69 = trunc i32 %8 to i16
%70 = trunc i32 %11 to i16
%71 = urem i32 %17, 65536
%72 = zext i32 %71 to i64
%73 = call i64 @FUNC(i64 %3, i16 %70, i16 %69, i16 %68, i64 %72)
store i64 %73, i64* %rax.0.reg2mem
br label LBL_14
LBL_11:
%74 = trunc i32 %14 to i16
%75 = trunc i32 %8 to i16
%76 = trunc i32 %11 to i16
%77 = urem i32 %17, 65536
%78 = zext i32 %77 to i64
%79 = call i64 @FUNC(i64 %3, i16 %76, i16 %75, i16 %74, i64 %78)
store i64 %79, i64* %rax.0.reg2mem
br label LBL_14
LBL_12:
%80 = trunc i32 %14 to i16
%81 = trunc i32 %8 to i16
%82 = trunc i32 %11 to i16
%83 = urem i32 %17, 65536
%84 = zext i32 %83 to i64
%85 = call i64 @FUNC(i64 %3, i16 %82, i16 %81, i16 %80, i64 %84)
store i64 %85, i64* %rax.0.reg2mem
br label LBL_14
LBL_13:
%86 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0), i16 %58, i64 %rcx.0.reload, i64 %2, i64 %1)
store i64 22, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %60, { 5, 2, 4, 1, 3, 0 }
uselistorder i64 %rcx.0.reload, { 1, 0 }
uselistorder i64 %49, { 1, 0, 2 }
uselistorder i32 %42, { 1, 0 }
uselistorder i32 %41, { 1, 0, 2 }
uselistorder i32 %34, { 1, 0 }
uselistorder i32 %26, { 1, 0 }
uselistorder i32 %19, { 2, 0, 1, 3 }
uselistorder i32 %14, { 3, 2, 1, 0 }
uselistorder i32 %11, { 4, 3, 2, 0, 1 }
uselistorder i32 %8, { 3, 2, 1, 0 }
uselistorder i64 %4, { 2, 1, 0, 3, 4, 5, 6, 7, 8 }
uselistorder i64 %3, { 4, 3, 2, 1, 6, 5, 0, 7 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 5, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 16, { 4, 2, 0, 3, 1 }
uselistorder i32 65536, { 5, 6, 7, 8, 4, 9, 10, 11, 12, 13, 14, 0, 1, 2, 3 }
uselistorder i64 (i64)* @bytestream2_get_le16u, { 4, 3, 2, 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | new_node_9442 | new_node | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i32
%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 = add i64 %0, 12
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp eq i32 %3, %6
%8 = icmp eq i1 %7, false
store i32 %6, i32* %.reg2mem
br i1 %8, label LBL_3, label LBL_1
LBL_1:
%9 = icmp slt i32 %6, 1
%10 = mul i32 %6, 2
%spec.select = select i1 %9, i32 256, i32 %10
%11 = mul i32 %spec.select, 8
%12 = call i64* @realloc(i64* %arg1, i32 %11)
%13 = icmp eq i64* %12, null
%14 = icmp eq i1 %13, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %14, label LBL_2, label LBL_4
LBL_2:
%15 = ptrtoint i64* %12 to i64
store i64 %15, i64* %arg1, align 8
store i32 %spec.select, i32* %2, align 4
%.pre = load i32, i32* %5, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_3
LBL_3:
%.reload = load i32, i32* %.reg2mem
%16 = sext i32 %.reload to i64
%17 = mul i64 %16, 8
%18 = add i64 %17, %0
%19 = inttoptr i64 %18 to i32*
store i32 -1, i32* %19, align 4
%20 = load i32, i32* %5, align 4
%21 = sext i32 %20 to i64
%22 = mul i64 %21, 8
%23 = add i64 %0, 4
%24 = add i64 %23, %22
%25 = inttoptr i64 %24 to i32*
store i32 -2, i32* %25, align 4
store i64 1, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %12, { 1, 0 }
uselistorder i32 %spec.select, { 1, 0 }
uselistorder i32 %6, { 1, 2, 0, 3 }
uselistorder i32* %5, { 1, 0, 2 }
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | schedule_user_8149 | schedule_user | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = call i64 @FUNC()
%2 = call i64 @FUNC()
ret i64 %2
} | 0 |
BinRealVul | av_log_ask_for_sample_8284 | av_log_ask_for_sample | define i64 @FUNC(i64 %arg1, i8* %arg2, i8* %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%rcx.0.reg2mem = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%sv_0 = alloca i32, align 4
%11 = trunc i64 %2 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i128 %10)
%14 = call i64 @FUNC(i128 %9)
%15 = call i64 @FUNC(i128 %8)
%16 = call i64 @FUNC(i128 %7)
%17 = call i64 @FUNC(i128 %6)
%18 = call i64 @FUNC(i128 %5)
%19 = call i64 @FUNC(i128 %4)
%20 = call i64 @FUNC(i128 %3)
br label LBL_2
LBL_2:
store i32 16, i32* %sv_0, align 4
%21 = icmp eq i8* %arg2, null
store i64 %arg4, i64* %rcx.0.reg2mem
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = ptrtoint i32* %sv_0 to i64
%23 = ptrtoint i8* %arg2 to i64
%24 = call i64 @FUNC(i64 %arg1, i64 1, i64 %23, i32* nonnull %sv_0)
store i64 %22, i64* %rcx.0.reg2mem
br label LBL_4
LBL_4:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%25 = call i64 @FUNC(i64 %arg1, i64 1, i8* getelementptr inbounds ([157 x i8], [157 x i8]* @gv_0, i64 0, i64 0), i64 %rcx.0.reload, i64 %arg5, i64 %arg6)
ret i64 %25
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i64 %arg1, { 1, 0 }
} | 0 |
BinRealVul | cirrus_vga_load_15442 | cirrus_vga_load | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg3 to i32
%1 = icmp slt i32 %0, 3
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_5
LBL_1:
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = icmp eq i64* %arg2, null
%5 = icmp ne i32 %0, 2
%or.cond = or i1 %4, %5
br i1 %or.cond, label LBL_4, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %2, i64 %3)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = and i64 %6, 4294967295
store i64 %10, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%11 = add i64 %2, 8
%12 = call i64 @FUNC(i64 %3, i64 %11)
%13 = add i64 %2, 12
%14 = call i64 @FUNC(i64 %3, i64 %13)
%15 = add i64 %2, 13
%16 = call i64 @FUNC(i64 %3, i64 %15, i64 256)
%17 = add i64 %2, 269
%18 = call i64 @FUNC(i64 %3, i64 %17)
%19 = add i64 %2, 270
%20 = call i64 @FUNC(i64 %3, i64 %19)
%21 = add i64 %2, 271
%22 = call i64 @FUNC(i64 %3, i64 %21)
%23 = inttoptr i64 %19 to i8*
%24 = load i8, i8* %23, align 1
%25 = urem i8 %24, 16
%26 = add i64 %2, 272
%27 = inttoptr i64 %26 to i8*
store i8 %25, i8* %27, align 1
%28 = inttoptr i64 %21 to i8*
%29 = load i8, i8* %28, align 1
%30 = urem i8 %29, 16
%31 = add i64 %2, 273
%32 = inttoptr i64 %31 to i8*
store i8 %30, i8* %32, align 1
%33 = add i64 %2, 274
%34 = call i64 @FUNC(i64 %3, i64 %33, i64 254)
%35 = add i64 %2, 528
%36 = call i64 @FUNC(i64 %3, i64 %35)
%37 = add i64 %2, 529
%38 = call i64 @FUNC(i64 %3, i64 %37, i64 21)
%39 = call i64 @FUNC(i64 %3)
%40 = trunc i64 %39 to i32
%41 = add i64 %2, 552
%42 = inttoptr i64 %41 to i32*
store i32 %40, i32* %42, align 4
%43 = add i64 %2, 556
%44 = call i64 @FUNC(i64 %3, i64 %43)
%45 = add i64 %2, 557
%46 = call i64 @FUNC(i64 %3, i64 %45, i64 256)
%47 = add i64 %2, 813
%48 = call i64 @FUNC(i64 %3, i64 %47)
%49 = add i64 %2, 814
%50 = call i64 @FUNC(i64 %3, i64 %49)
%51 = add i64 %2, 815
%52 = call i64 @FUNC(i64 %3, i64 %51)
%53 = add i64 %2, 816
%54 = call i64 @FUNC(i64 %3, i64 %53)
%55 = add i64 %2, 817
%56 = call i64 @FUNC(i64 %3, i64 %55)
%57 = add i64 %2, 818
%58 = call i64 @FUNC(i64 %3, i64 %57)
%59 = add i64 %2, 819
%60 = call i64 @FUNC(i64 %3, i64 %59)
%61 = add i64 %2, 820
%62 = call i64 @FUNC(i64 %3, i64 %61)
%63 = add i64 %2, 821
%64 = call i64 @FUNC(i64 %3, i64 %63, i64 3)
%65 = add i64 %2, 824
%66 = call i64 @FUNC(i64 %3, i64 %65, i64 768)
%67 = call i64 @FUNC(i64 %3)
%68 = trunc i64 %67 to i32
%69 = add i64 %2, 1592
%70 = inttoptr i64 %69 to i32*
store i32 %68, i32* %70, align 4
%71 = add i64 %2, 1596
%72 = call i64 @FUNC(i64 %3, i64 %71)
%73 = add i64 %2, 1597
%74 = call i64 @FUNC(i64 %3, i64 %73)
%75 = add i64 %2, 1600
%76 = call i64 @FUNC(i64 %3, i64 %75)
%77 = add i64 %2, 1604
%78 = call i64 @FUNC(i64 %3, i64 %77)
%79 = call i64 @FUNC(i64 %2)
%80 = add i64 %2, 1608
%81 = inttoptr i64 %80 to i32*
store i32 -1, i32* %81, align 4
%82 = call i64 @FUNC(i64 %2, i64 0)
%83 = call i64 @FUNC(i64 %2, i64 1)
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 %3, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i64)* @cirrus_update_bank_ptr, { 1, 0 }
uselistorder i64 0, { 0, 3, 1, 2, 4 }
uselistorder i64 (i64)* @qemu_get_be32, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @qemu_get_buffer, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @qemu_get_8s, { 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @qemu_get_be32s, { 2, 1, 0 }
uselistorder label LBL_5, { 1, 2, 0 }
} | 1 |
BinRealVul | sh7750_irl_15241 | sh7750_irl | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %2, i64 1, i64 0)
%4 = call i64 @FUNC(i64 %0, i64 0)
%5 = and i64 %4, 4294967295
%6 = call i64 @FUNC(i64 4198743, i64 %5, i64 1)
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
ret i64 %9
uselistorder i64 1, { 1, 2, 0 }
uselistorder i64 (i64, i64)* @sh_intc_source, { 1, 0 }
} | 1 |
BinRealVul | perf_cost_14152 | perf_cost | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%3 = call i64 @FUNC()
store i64 1, i64* %sv_0, align 8
br label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 4198928)
%5 = call i64 @FUNC(i64 %4, i64* nonnull %sv_0)
%6 = call i64 @FUNC(i64 %4, i64* null)
%7 = load i64, i64* %sv_0, align 8
%8 = add i64 %7, 1
store i64 %8, i64* %sv_0, align 8
%9 = icmp ult i64 %7, 40000000
br i1 %9, label LBL_1, label LBL_2
LBL_2:
%10 = call i128 @FUNC()
%11 = call i64 @FUNC(i128 %10)
%12 = call i128 @FUNC(i128 %10, i128 %10)
%13 = call i128 @FUNC(i64 40000000)
%14 = call i128 @FUNC(i64 %11)
%15 = call i128 @FUNC(i64 4652007308841189376)
%16 = call i128 @FUNC(i128 %15, i128 %14)
%17 = call i128 @FUNC(i128 %13, i128 %16)
%18 = call i64 @FUNC(i128 %17)
%19 = call i128 @FUNC(i64 %11)
%20 = call i128 @FUNC(i64 4741671816366391296)
%21 = call i128 @FUNC(i128 %20, i128 %19)
%22 = load i128, i128* @gv_0, align 8
call void @FUNC(i128 %21, i128 %22)
%23 = trunc i128 %22 to i64
%24 = call i128 @FUNC(i64 %23)
%25 = call i128 @FUNC(i128 %21, i128 %24)
%26 = call i64 @FUNC(i128 %25)
%27 = xor i64 %26, -9223372036854775808
%28 = udiv i64 %27, 40000000
%29 = call i128 @__asm_movq.1(i64 %11)
%30 = call i64 @FUNC(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @gv_1, i64 0, i64 0), i64 40000000, i64 %18, i64 %28, i64 %2, i64 %1)
ret i64 %30
uselistorder i128 %10, { 1, 0, 2 }
uselistorder i64* %sv_0, { 2, 3, 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 40000000, { 1, 0, 2, 3 }
uselistorder i64 (i64, i64*)* @qemu_coroutine_enter, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 1, { 6, 5, 4, 7, 3, 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | read_packet_3156 | read_packet | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %0 to i8
%4 = icmp eq i8 %3, 71
br label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %2, i64 %1, i64 188, i64 %0)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 188
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = icmp slt i32 %6, 0
%9 = icmp eq i1 %8, false
%10 = and i64 %5, 4294967295
%11 = select i1 %9, i64 4294967295, i64 %10
store i64 %11, i64* %rax.0.reg2mem
br label LBL_5
LBL_3:
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_5, label LBL_4
LBL_4:
%12 = call i64 @FUNC(i64 %2, i64 4294967108, i64 1)
%13 = call i64 @FUNC(i64 %2)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %16, label LBL_1, label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder label LBL_5, { 1, 0, 2 }
} | 0 |
BinRealVul | handle_modify_maxdelaydevratio_8444 | handle_modify_maxdelaydevratio | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.in.reg2mem = alloca i16
%0 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0)
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = call i128 @FUNC(i32 %4)
%6 = call i128 @FUNC()
%7 = call i32 @__asm_movd.2(i128 %6)
%8 = call i128 @FUNC(i32 %7)
%9 = call i64 @FUNC(i64* nonnull %sv_0)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = call i16 @htons(i16 0)
%13 = bitcast i64* %arg2 to i16*
store i16 %12, i16* %13, align 2
store i16 %12, i16* %rax.0.in.reg2mem
br label LBL_3
LBL_2:
%14 = call i16 @htons(i16 1)
%15 = bitcast i64* %arg2 to i16*
store i16 %14, i16* %15, align 2
store i16 %14, i16* %rax.0.in.reg2mem
br label LBL_3
LBL_3:
%rax.0.in.reload = load i16, i16* %rax.0.in.reg2mem
%rax.0 = sext i16 %rax.0.in.reload to i64
ret i64 %rax.0
uselistorder i16* %rax.0.in.reg2mem, { 0, 2, 1 }
uselistorder i16 (i16)* @htons, { 1, 0 }
} | 0 |
BinRealVul | test_tco_second_timeout_reset_1774 | test_tco_second_timeout_reset | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i8*, align 8
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i8** %sv_0, align 8
%0 = bitcast i8** %sv_0 to i64*
%1 = call i64 @FUNC(i64* nonnull %0)
%2 = call i64 @FUNC(i64* nonnull %0)
%3 = call i64 @FUNC(i64* nonnull %0)
%4 = call i64 @FUNC(i64 1)
%5 = call i64 @FUNC(i64* nonnull %0, i64 16000)
%6 = call i64 @FUNC(i64* nonnull %0)
%7 = call i64 @FUNC(i64* nonnull %0)
%8 = call i64 @FUNC(i64 32000000)
%9 = call i64 @FUNC()
%10 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0))
%11 = inttoptr i64 %10 to i8*
%12 = call i32 @strcmp(i8* %11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
%14 = zext i1 %13 to i64
%15 = call i64 @FUNC(i64 %14)
%16 = call i64 @FUNC(i64 %9)
%17 = call i64 @FUNC(i64* nonnull %0)
%18 = call i64 @FUNC(i64* nonnull %0)
ret i64 %18
uselistorder i8** %sv_0, { 1, 0 }
uselistorder i64 (i64*)* @stop_tco, { 1, 0 }
uselistorder i32 1, { 11, 9, 10, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | sctp_destroy_sock_3812 | sctp_destroy_sock | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i64 %arg1)
%1 = call i64 @FUNC(i64 %arg1)
%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.reg2mem
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = add i64 %1, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, 0
store i64 %3, i64* %.reg2mem
br i1 %8, label LBL_3, label LBL_2
LBL_2:
store i32 0, i32* %6, align 4
%9 = add i64 %1, 16
%10 = call i64 @FUNC(i64 %9)
%.pre = load i64, i64* %2, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_3
LBL_3:
%.reload = load i64, i64* %.reg2mem
%11 = call i64 @FUNC(i64 %.reload)
%12 = call i64 @FUNC()
%13 = call i64 @FUNC(i64* nonnull @gv_1)
%14 = call i64 @FUNC(i64 %arg1)
%15 = and i64 %14, 4294967295
%16 = call i64 @FUNC(i64 %15, i64 ptrtoint (i64* @gv_1 to i64), i64 4294967295)
%17 = call i64 @FUNC()
store i64 %17, 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* %.reg2mem, { 0, 2, 1 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64* @gv_1, { 1, 0 }
uselistorder i32 1, { 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | machine_power_off_4013 | machine_power_off | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = call i64 @FUNC()
%2 = load i64, i64* @gv_0, align 8
ret i64 %2
} | 0 |
BinRealVul | dictAdd_7126 | dictAdd | define i64 @FUNC(i64* %arg1, i32* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i32* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, -1
%5 = icmp eq i1 %4, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%6 = call i64 @FUNC(i64 24)
%sext = mul i64 %2, 4294967296
%7 = ashr exact i64 %sext, 29
%8 = add nsw i64 %7, 24
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %6 to i64*
store i64 %10, i64* %11, align 8
store i64 %6, i64* %9, align 8
%12 = call i64 @FUNC(i64 %1, i64 %6, i64 %0)
%13 = ptrtoint i32* %arg3 to i64
%14 = call i64 @FUNC(i64 %1, i64 %6, i64 %13)
%15 = add i64 %1, 16
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = add i64 %17, 1
store i64 %18, i64* %16, align 8
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 %1, { 2, 1, 0, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | nfc_llcp_send_cc_5865 | nfc_llcp_send_cc | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.05.reg2mem = alloca i64
%sv_1.07.reg2mem = alloca i64
%sv_0.0.ph.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i16, align 2
%sv_3 = alloca i16, align 2
%sv_4 = alloca i8, align 1
%sv_5 = alloca i16, align 2
%1 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0))
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i16*
%4 = load i16, i16* %3, align 2
%5 = zext i16 %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i16
%8 = icmp ult i16 %7, 256
%9 = bitcast i64* %rdi to i16*
%storemerge.in.in = select i1 %8, i16* %3, i16* %9
%storemerge.in = load i16, i16* %storemerge.in.in, align 2
store i16 %storemerge.in, i16* %sv_5, align 2
%10 = add i64 %0, 10
%11 = inttoptr i64 %10 to i8*
%12 = load i8, i8* %11, align 1
store i8 %12, i8* %sv_4, align 1
%13 = bitcast i16* %sv_3 to i64*
%14 = call i64 @FUNC(i64 1, i16* nonnull %sv_5, i64 0, i64* nonnull %13)
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
store i64 0, i64* %sv_0.0.ph.reg2mem
br i1 %16, label LBL_1, label LBL_4
LBL_1:
%17 = load i16, i16* %sv_3, align 2
%18 = bitcast i8* %sv_4 to i16*
%19 = bitcast i16* %sv_2 to i64*
%20 = call i64 @FUNC(i64 2, i16* nonnull %18, i64 0, i64* nonnull %19)
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
store i64 %20, i64* %sv_0.0.ph.reg2mem
br i1 %22, label LBL_2, label LBL_4
LBL_2:
%23 = urem i16 %17, 256
%24 = load i16, i16* %sv_2, align 2
%25 = urem i16 %24, 256
%26 = add nuw nsw i16 %25, %23
%27 = call i64 @FUNC(i64 %0, i64 3, i16 %26)
%28 = icmp eq i64 %27, 0
%29 = icmp eq i1 %28, false
store i64 %20, i64* %sv_0.0.ph.reg2mem
br i1 %29, label LBL_3, label LBL_4
LBL_3:
%30 = load i16, i16* %sv_3, align 2
%31 = urem i16 %30, 256
%32 = zext i16 %31 to i64
%33 = call i64 @FUNC(i64 %27, i64 %14, i64 %32)
%34 = load i16, i16* %sv_2, align 2
%35 = urem i16 %34, 256
%36 = zext i16 %35 to i64
%37 = call i64 @FUNC(i64 %27, i64 %20, i64 %36)
%38 = call i64 @FUNC(i64 add (i64 ptrtoint ([12 x i8]* @gv_0 to i64), i64 8), i64 %27)
store i64 0, i64* %sv_1.07.reg2mem
store i64 %20, i64* %sv_0.05.reg2mem
br label LBL_5
LBL_4:
%sv_0.0.ph.reload = load i64, i64* %sv_0.0.ph.reg2mem
%39 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_1, i64 0, i64 0), i64 4294967284)
store i64 4294967284, i64* %sv_1.07.reg2mem
store i64 %sv_0.0.ph.reload, i64* %sv_0.05.reg2mem
br label LBL_5
LBL_5:
%sv_0.05.reload = load i64, i64* %sv_0.05.reg2mem
%sv_1.07.reload = load i64, i64* %sv_1.07.reg2mem
%40 = call i64 @FUNC(i64 %14)
%41 = call i64 @FUNC(i64 %sv_0.05.reload)
ret i64 %sv_1.07.reload
uselistorder i64 %27, { 0, 2, 1, 3 }
uselistorder i64 %20, { 0, 3, 2, 1, 4 }
uselistorder i16* %sv_3, { 1, 0, 2 }
uselistorder i16* %sv_2, { 1, 0, 2 }
uselistorder i64* %sv_0.0.ph.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_1.07.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.05.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @kfree, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @llcp_add_tlv, { 1, 0 }
uselistorder i64 (i64, i16*, i64, i64*)* @nfc_llcp_build_tlv, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 2, 1, 0 }
} | 0 |
BinRealVul | binder_vma_close_3893 | binder_vma_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 24
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = add i64 %0, 32
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = sub i64 %10, %6
%12 = udiv i64 %11, 1024
%13 = inttoptr i64 %3 to i32*
%14 = load i32, i32* %13, align 4
%15 = zext i32 %14 to i64
%16 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @gv_0, i64 0, i64 0), i64 %15, i64 %10, i64 %10, i64 %12)
%17 = add i64 %3, 8
%18 = inttoptr i64 %17 to i64*
store i64 0, i64* %18, align 8
%19 = add i64 %3, 16
%20 = inttoptr i64 %19 to i64*
store i64 0, i64* %20, align 8
%21 = call i64 @FUNC(i64 %3, i64 0)
ret i64 %21
} | 0 |
BinRealVul | runtime_refresh_within_9848 | runtime_refresh_within | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = call i64 @FUNC(i64 %0)
%5 = call i64 @FUNC(i64 %4)
%6 = icmp ult i64 %5, %arg2
%. = zext i1 %6 to i64
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
} | 0 |
BinRealVul | d_exchange_10739 | d_exchange | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64* nonnull @gv_0)
%1 = icmp eq i64* %arg2, null
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%4 = call i32 @fwrite(i64* bitcast ([28 x i8]* @gv_2 to i64*), i32 1, i32 27, %_IO_FILE* %3)
br label LBL_2
LBL_2:
%5 = ptrtoint i64* %arg2 to i64
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64 %6, i64 %5, i64 1)
%8 = call i64 @FUNC(i64* nonnull @gv_0)
ret i64 %8
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | iperf_on_test_start_8495 | iperf_on_test_start | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = add i64 %2, 16
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = sext i32 %7 to i64
%9 = add i64 %2, 12
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = sext i32 %11 to i64
%13 = add i64 %2, 24
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = add i64 %15, 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = sext i32 %18 to i64
%20 = add i64 %2, 8
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = sext i32 %22 to i64
%24 = add i64 %2, 32
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = call i64 @FUNC(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @gv_0, i64 0, i64 0), i64 %28, i64 %23, i64 %19, i64 %12, i64 %8)
%30 = add i64 %2, 40
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = call i64 @FUNC(i64 %32, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0), i64 %29)
store i64 %33, i64* %rax.0.reg2mem
br label LBL_8
LBL_2:
%34 = add i64 %2, 4
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = icmp eq i32 %36, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %37, label LBL_8, label LBL_3
LBL_3:
%38 = add i64 %2, 24
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = add i64 %40, 12
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = icmp eq i32 %43, 0
br i1 %44, label LBL_5, label LBL_4
LBL_4:
%45 = add i64 %2, 12
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = add i64 %40, 8
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = add i64 %2, 8
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = add i64 %2, 32
%55 = inttoptr i64 %54 to i64*
%56 = load i64, i64* %55, align 8
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = load i64, i64* bitcast ([3 x i8*]* @gv_2 to i64*), align 16
%60 = call i64 @FUNC(i64 %2, i64 %59, i64 %58, i32 %53, i32 %50, i32 %47)
store i64 %60, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%61 = add i64 %40, 16
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = icmp eq i32 %63, 0
%65 = add i64 %2, 12
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = add i64 %40, 8
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = add i64 %2, 8
%72 = inttoptr i64 %71 to i32*
%73 = load i32, i32* %72, align 4
%74 = add i64 %2, 32
%75 = inttoptr i64 %74 to i64*
%76 = load i64, i64* %75, align 8
%77 = inttoptr i64 %76 to i64*
%78 = load i64, i64* %77, align 8
br i1 %64, label LBL_7, label LBL_6
LBL_6:
%79 = load i64, i64* bitcast ([2 x i8*]* @gv_3 to i64*), align 8
%80 = call i64 @FUNC(i64 %2, i64 %79, i64 %78, i32 %73, i32 %70, i32 %67)
store i64 %80, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%81 = load [24 x i8]*, [24 x i8]** @gv_4, align 8
%82 = ptrtoint [24 x i8]* %81 to i64
%83 = call i64 @FUNC(i64 %2, i64 %82, i64 %78, i32 %73, i32 %70, i32 %67)
store i64 %83, 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 %78, { 1, 0 }
uselistorder i32 %73, { 1, 0 }
uselistorder i32 %70, { 1, 0 }
uselistorder i32 %67, { 1, 0 }
uselistorder i64 %40, { 1, 2, 0, 3 }
uselistorder i64 %2, { 6, 7, 4, 5, 3, 10, 8, 9, 2, 1, 16, 0, 12, 11, 13, 15, 14 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 5, 1 }
uselistorder i64 (i64, i64, i64, i32, i32, i32)* @iprintf, { 2, 1, 0 }
} | 0 |
BinRealVul | gdImageWebpCtx_5535 | gdImageWebpCtx | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.19.reg2mem = alloca i8*
%storemerge10.reg2mem = alloca i32
%.reg2mem12 = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i8*
%storemerge6.reg2mem = alloca i64
%sv_0.07.reg2mem = alloca i8*
%storemerge58.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_18, label LBL_1
LBL_1:
%1 = call i64 @FUNC(i64 %arg1)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0))
store i64 %5, i64* %rax.0.reg2mem
br label LBL_18
LBL_3:
%6 = call i64 @FUNC(i64 %arg1)
%7 = and i64 %6, 4294967295
%8 = call i64 @FUNC(i64 %7, i64 4)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 %8, i64* %rax.0.reg2mem
br i1 %11, label LBL_18, label LBL_4
LBL_4:
%12 = call i64 @FUNC(i64 %arg1)
%13 = call i64 @FUNC(i64 %arg1)
%14 = mul i64 %13, 4
%15 = and i64 %12, 4294967295
%16 = and i64 %14, 4294967292
%17 = call i64 @FUNC(i64 %16, i64 %15)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
store i64 %17, i64* %rax.0.reg2mem
br i1 %20, label LBL_18, label LBL_5
LBL_5:
%21 = call i64 @FUNC(i64 %arg1)
%22 = call i64 @FUNC(i64 %arg1)
%sext3 = mul i64 %22, 4294967296
%23 = ashr exact i64 %sext3, 32
%sext4 = mul i64 %21, 4294967296
%24 = ashr exact i64 %sext4, 32
%25 = mul nsw i64 %23, %24
%26 = trunc i64 %25 to i32
%27 = mul i32 %26, 4
%28 = sext i32 %27 to i64
%29 = call i64 @FUNC(i64 %28)
%30 = icmp eq i64 %29, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %30, label LBL_18, label LBL_6
LBL_6:
%31 = call i64 @FUNC(i64 %arg1)
%32 = icmp sgt i64 %31, 0
br i1 %32, label LBL_7, label LBL_14
LBL_7:
%33 = inttoptr i64 %29 to i8*
store i64 0, i64* %.reg2mem12
store i32 0, i32* %storemerge10.reg2mem
store i8* %33, i8** %sv_0.19.reg2mem
br label LBL_12
LBL_8:
%sv_0.07.reload = load i8*, i8** %sv_0.07.reg2mem
%storemerge58.reload = load i32, i32* %storemerge58.reg2mem
%.reload = load i64, i64* %.reg2mem
%34 = load i64, i64* %78, align 8
%35 = mul i64 %.reload, 4
%36 = add i64 %34, %35
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = zext i32 %38 to i64
%40 = call i64 @FUNC(i64 %39)
%41 = trunc i64 %40 to i8
%42 = icmp eq i8 %41, 127
%43 = icmp eq i1 %42, false
store i64 0, i64* %storemerge6.reg2mem
br i1 %43, label LBL_9, label LBL_10
LBL_9:
%44 = mul i64 %40, 2
%45 = ashr i8 %41, 6
%46 = zext i8 %45 to i64
%47 = add i64 %44, %46
%48 = and i64 %47, 4294967295
%49 = xor i64 %48, 4294967295
store i64 %49, i64* %storemerge6.reg2mem
br label LBL_10
LBL_10:
%storemerge6.reload = load i64, i64* %storemerge6.reg2mem
%50 = call i64 @FUNC(i64 %39)
%51 = ptrtoint i8* %sv_0.07.reload to i64
%52 = add i64 %51, 1
%53 = trunc i64 %50 to i8
store i8 %53, i8* %sv_0.07.reload, align 1
%54 = call i64 @FUNC(i64 %39)
%55 = add i64 %51, 2
%56 = trunc i64 %54 to i8
%57 = inttoptr i64 %52 to i8*
store i8 %56, i8* %57, align 1
%58 = call i64 @FUNC(i64 %39)
%59 = add i64 %51, 3
%60 = trunc i64 %58 to i8
%61 = inttoptr i64 %55 to i8*
store i8 %60, i8* %61, align 1
%62 = add i64 %51, 4
%63 = inttoptr i64 %62 to i8*
%64 = trunc i64 %storemerge6.reload to i8
%65 = inttoptr i64 %59 to i8*
store i8 %64, i8* %65, align 1
%66 = add i32 %storemerge58.reload, 1
%67 = call i64 @FUNC(i64 %arg1)
%68 = sext i32 %66 to i64
%69 = icmp sgt i64 %67, %68
store i64 %68, i64* %.reg2mem
store i32 %66, i32* %storemerge58.reg2mem
store i8* %63, i8** %sv_0.07.reg2mem
store i8* %63, i8** %sv_0.0.lcssa.reg2mem
br i1 %69, label LBL_8, label LBL_11
LBL_11:
%sv_0.0.lcssa.reload = load i8*, i8** %sv_0.0.lcssa.reg2mem
%70 = add i32 %storemerge10.reload, 1
%71 = call i64 @FUNC(i64 %arg1)
%72 = sext i32 %70 to i64
%73 = icmp sgt i64 %71, %72
store i64 %72, i64* %.reg2mem12
store i32 %70, i32* %storemerge10.reg2mem
store i8* %sv_0.0.lcssa.reload, i8** %sv_0.19.reg2mem
br i1 %73, label LBL_12, label LBL_14
LBL_12:
%sv_0.19.reload = load i8*, i8** %sv_0.19.reg2mem
%storemerge10.reload = load i32, i32* %storemerge10.reg2mem
%74 = call i64 @FUNC(i64 %arg1)
%75 = icmp sgt i64 %74, 0
store i8* %sv_0.19.reload, i8** %sv_0.0.lcssa.reg2mem
br i1 %75, label LBL_8.lr.ph, label LBL_11
LBL_13:
%.reload13 = load i64, i64* %.reg2mem12
%76 = mul i64 %.reload13, 8
%77 = add i64 %76, %arg1
%78 = inttoptr i64 %77 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge58.reg2mem
store i8* %sv_0.19.reload, i8** %sv_0.07.reg2mem
br label LBL_8
LBL_14:
%sext = mul i64 %arg3, 4294967296
%79 = ashr exact i64 %sext, 32
%80 = trunc i64 %79 to i32
%81 = icmp eq i32 %80, -1
%82 = icmp eq i1 %81, false
%83 = call i64 @FUNC(i64 %arg1)
%84 = mul i64 %83, 4
%85 = call i64 @FUNC(i64 %arg1)
%86 = call i64 @FUNC(i64 %arg1)
%87 = and i64 %86, 4294967295
%.op = and i64 %79, 4294967295
%88 = select i1 %82, i64 %.op, i64 80
%89 = and i64 %84, 4294967292
%90 = and i64 %85, 4294967295
%91 = call i64 @FUNC(i64 %29, i64 %87, i64 %90, i64 %89, i64 %88, i64* nonnull %sv_1)
%92 = icmp eq i64 %91, 0
%93 = icmp eq i1 %92, false
br i1 %93, label LBL_16, label LBL_15
LBL_15:
%94 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0))
br label LBL_17
LBL_16:
%95 = load i64, i64* %sv_1, align 8
%96 = call i64 @FUNC(i64 %95, i64 %91, i64 %arg2)
%97 = load i64, i64* %sv_1, align 8
%98 = inttoptr i64 %97 to i64*
call void @free(i64* %98)
br label LBL_17
LBL_17:
%99 = call i64 @FUNC(i64 %29)
store i64 %99, i64* %rax.0.reg2mem
br label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %51, { 3, 2, 1, 0 }
uselistorder i8* %sv_0.07.reload, { 1, 0 }
uselistorder i64* %sv_1, { 1, 2, 0 }
uselistorder i64* %.reg2mem, { 2, 1, 0 }
uselistorder i32* %storemerge58.reg2mem, { 2, 1, 0 }
uselistorder i8** %sv_0.07.reg2mem, { 2, 1, 0 }
uselistorder i64* %storemerge6.reg2mem, { 0, 2, 1 }
uselistorder i8** %sv_0.0.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 5, 1 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 32, { 2, 0, 1, 3, 4 }
uselistorder i64 4294967296, { 2, 0, 1, 3, 4 }
uselistorder i64 (i64)* @gdImageSY, { 4, 3, 0, 2, 1 }
uselistorder i64 (i64, i64)* @overflow2, { 1, 0 }
uselistorder i64 (i64)* @gdImageSX, { 5, 4, 0, 6, 3, 2, 1 }
uselistorder i64 (i64, i8*)* @zend_error, { 1, 0 }
uselistorder i64 1, { 1, 3, 2, 0 }
uselistorder i1 false, { 1, 4, 0, 2, 3, 5 }
uselistorder i64 %arg1, { 5, 4, 3, 0, 2, 7, 6, 1, 9, 8, 11, 10, 12, 13, 14 }
uselistorder label LBL_18, { 4, 0, 1, 2, 5, 3 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | qemu_chr_be_write_265 | qemu_chr_be_write | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
store i64 %0, i64* %rax.0.reg2mem
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
store i64 %4, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 0 }
} | 0 |
BinRealVul | store_cpu_offset_14116 | store_cpu_offset | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = load i64, i64* @gv_0, align 8
%1 = and i64 %arg2, 4294967295
%2 = and i64 %arg1, 4294967295
%3 = call i64 @FUNC(i64 %2, i64 %0, i64 %1)
%4 = call i64 @FUNC(i64 %2)
ret i64 %4
} | 1 |
BinRealVul | mwifiex_pcie_alloc_cmdrsp_buf_17358 | mwifiex_pcie_alloc_cmdrsp_buf | 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 1024)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0, i64 1, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%5 = call i64 @FUNC(i64 %1, i64 1024)
%6 = call i64 @FUNC(i64 %0, i64 %1, i64 1024, i64 0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %8, label LBL_3, label LBL_4
LBL_3:
store i64 %1, i64* %arg1, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 0, 2, 1, 3 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 1 |
BinRealVul | unimap_bsearch_12564 | unimap_bsearch | define i64 @FUNC(i16* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.09.reg2mem = alloca i64
%sv_0.0.ph10.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp ult i32 %0, 65536
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_9
LBL_1:
%2 = mul i64 %arg3, 4
%3 = ptrtoint i16* %arg1 to i64
%4 = add i64 %3, -4
%5 = add i64 %4, %2
%6 = icmp ult i64 %5, %3
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_9, label LBL_2
LBL_2:
%7 = trunc i64 %arg2 to i16
store i64 %3, i64* %.reg2mem
store i64 %5, i64* %sv_0.0.ph10.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.ph10.reload = load i64, i64* %sv_0.0.ph10.reg2mem
%.reload = load i64, i64* %.reg2mem
store i64 %sv_0.0.ph10.reload, i64* %sv_0.09.reg2mem
br label LBL_4
LBL_4:
%sv_0.09.reload = load i64, i64* %sv_0.09.reg2mem
%8 = sub i64 %sv_0.09.reload, %.reload
%9 = ashr i64 %8, 2
%10 = lshr i64 %9, 63
%11 = add nsw i64 %10, %9
%12 = udiv i64 %11, 2
%13 = mul i64 %12, 4
%14 = add i64 %13, %.reload
%15 = inttoptr i64 %14 to i16*
%16 = load i16, i16* %15, align 2
%17 = icmp ugt i16 %16, %7
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = add i64 %14, -4
%20 = icmp ult i64 %19, %.reload
store i64 %19, i64* %sv_0.09.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %20, label LBL_9, label LBL_4
LBL_6:
%21 = icmp ult i16 %16, %7
br i1 %21, label LBL_7, label LBL_8
LBL_7:
%22 = add i64 %14, 4
%23 = icmp ult i64 %sv_0.09.reload, %22
store i64 %22, i64* %.reg2mem
store i64 %sv_0.09.reload, i64* %sv_0.0.ph10.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %23, label LBL_9, label LBL_3
LBL_8:
%24 = add i64 %14, 2
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = zext i8 %26 to i64
store i64 %27, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.09.reload, { 2, 1, 0 }
uselistorder i64 %.reload, { 1, 2, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.ph10.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.09.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i64 2, { 1, 0, 2 }
uselistorder i64 4, { 2, 0, 1 }
uselistorder label LBL_9, { 4, 0, 1, 2, 3 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | smc91c111_init_14798 | smc91c111_init | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = trunc i64 %arg4 to i32
%3 = call i64 @FUNC(i64 40)
%4 = call i64 @FUNC(i64 0, i64 4198823, i64 4198830, i64 %3)
%5 = trunc i64 %4 to i32
%6 = and i64 %arg2, 4294967295
%7 = call i64 @FUNC(i64 %6, i64 16, i32 %5)
%8 = inttoptr i64 %3 to i32*
store i32 %1, i32* %8, align 4
%9 = add i64 %3, 8
%10 = inttoptr i64 %9 to i64*
store i64 %arg3, i64* %10, align 8
%11 = add i64 %3, 16
%12 = inttoptr i64 %11 to i32*
store i32 %2, i32* %12, align 4
%13 = add i64 %3, 20
%14 = inttoptr i64 %13 to i64*
%15 = bitcast i32* %arg1 to i64*
%16 = call i64* @memcpy(i64* %14, i64* %15, i32 6)
%17 = call i64 @FUNC(i64 %3)
%18 = add i64 %0, 8
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = zext i32 %20 to i64
%22 = call i64 @FUNC(i64 %21, i64 4198816, i64 %3)
%23 = add i64 %3, 32
%24 = inttoptr i64 %23 to i64*
store i64 %22, i64* %24, align 8
ret i64 %22
uselistorder i64 %22, { 1, 0 }
uselistorder i64 16, { 1, 0 }
} | 1 |
BinRealVul | div64_16596 | div64 | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge2.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i64
%sv_0.05.reg2mem = alloca i64
%sv_1.16.reg2mem = alloca i64
%storemerge7.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = icmp eq i64* %arg2, null
%3 = icmp eq i1 %2, false
store i32 0, i32* %storemerge7.reg2mem
store i64 %0, i64* %sv_1.16.reg2mem
store i64 %1, i64* %sv_0.05.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = udiv i64 %1, %arg3
%5 = urem i64 %1, %arg3
store i64 %4, i64* %storemerge3.reg2mem
store i64 %5, i64* %storemerge2.reg2mem
br label LBL_3
LBL_2:
%sv_0.05.reload = load i64, i64* %sv_0.05.reg2mem
%sv_1.16.reload = load i64, i64* %sv_1.16.reg2mem
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%6 = mul i64 %sv_1.16.reload, 2
%7 = lshr i64 %sv_0.05.reload, 63
%8 = or i64 %7, %6
%9 = icmp ult i64 %8, %arg3
%10 = select i1 %9, i64 0, i64 %arg3
%spec.select = sub i64 %8, %10
%not. = icmp ne i1 %9, true
%spec.select4 = zext i1 %not. to i64
%11 = mul i64 %sv_0.05.reload, 2
%12 = or i64 %11, %spec.select4
%13 = add nuw nsw i32 %storemerge7.reload, 1
%exitcond = icmp eq i32 %13, 64
store i32 %13, i32* %storemerge7.reg2mem
store i64 %spec.select, i64* %sv_1.16.reg2mem
store i64 %12, i64* %sv_0.05.reg2mem
store i64 %12, i64* %storemerge3.reg2mem
store i64 %spec.select, i64* %storemerge2.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
store i64 %storemerge3.reload, i64* %arg1, align 8
store i64 %storemerge2.reload, i64* %arg2, align 8
ret i64 %0
uselistorder i64 %sv_0.05.reload, { 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64 %0, { 1, 0 }
uselistorder i32* %storemerge7.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.16.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.05.reg2mem, { 2, 0, 1 }
uselistorder i64 %arg3, { 0, 3, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | new_audio_stream_16949 | new_audio_stream | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4, i64 %3, i64 1)
%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 %9, 12
%11 = inttoptr i64 %10 to i32*
store i32 1, i32* %11, align 4
%12 = add i64 %5, 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_1
LBL_1:
%17 = inttoptr i64 %9 to i32*
%18 = bitcast i64* %rdi to i32*
%19 = load i32, i32* %18, align 8
store i32 %19, i32* %17, align 4
%20 = add i64 %4, 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp eq i64 %22, 0
br i1 %23, label LBL_4, label LBL_2
LBL_2:
%24 = call i64 @FUNC(i64 %22)
%25 = trunc i64 %24 to i32
%26 = add i64 %9, 8
%27 = inttoptr i64 %26 to i32*
store i32 %25, i32* %27, align 4
%28 = icmp eq i32 %25, -1
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_4, label LBL_3
LBL_3:
%30 = call i64 @FUNC(i64 0, i64 16, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0), i64 %22, i64 %2, i64 %1)
%31 = call i64 @FUNC(i64 1)
unreachable
LBL_4:
%32 = add i64 %4, 16
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = add i64 %9, 4
%36 = inttoptr i64 %35 to i32*
store i32 %34, i32* %36, align 4
br label LBL_5
LBL_5:
ret i64 %5
uselistorder i64* %0, { 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
} | 1 |
BinRealVul | fntRender_7733 | fntRender | 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
%storemerge.reg2mem = alloca i64
%sv_0.119.reg2mem = alloca i32
%sv_1.121.reg2mem = alloca i32
%storemerge523.reg2mem = alloca i32
%storemerge617.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i32
%sv_3.1.reg2mem = alloca i64
%sv_4.224.reg2mem = alloca i32
%storemerge425.reg2mem = alloca i32
%sv_0.028.reg2mem = alloca i32
%sv_1.030.reg2mem = alloca i32
%storemerge832.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i64
%sv_4.133.reg2mem = alloca i32
%indvars.iv40.reg2mem = alloca i64
%sv_4.0.reg2mem = alloca i32
%storemerge1037.reg2mem = alloca i32
%.reg2mem54 = alloca i64
%.reg2mem52 = alloca i64
%.reg2mem = alloca i64
%.pre-phi44.reg2mem = alloca i32*
%rdi = alloca i64, align 8
%2 = load i64, i64* %1
%3 = load i64, i64* %1
%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
%11 = load i128, i128* %0
%sv_5 = alloca i8, align 1
%sv_6 = alloca i32, align 4
%sv_7 = alloca i64, align 8
%12 = trunc i64 %3 to i8
%13 = icmp eq i8 %12, 0
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = call i64 @FUNC(i128 %11)
%15 = call i64 @FUNC(i128 %10)
%16 = call i64 @FUNC(i128 %9)
%17 = call i64 @FUNC(i128 %8)
%18 = call i64 @FUNC(i128 %7)
%19 = call i64 @FUNC(i128 %6)
%20 = call i64 @FUNC(i128 %5)
%21 = call i64 @FUNC(i128 %4)
br label LBL_2
LBL_2:
%22 = ptrtoint i64* %arg1 to i64
store i32 24, i32* %sv_6, align 4
%23 = ptrtoint i32* %sv_6 to i64
%24 = call i32 @vsnprintf(i8* nonnull %sv_5, i32 512, i8* %arg3, i64 %23)
%25 = add i64 %22, 8
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp eq i64* %arg1, null
store i64 0, i64* %storemerge.reg2mem
br i1 %28, label LBL_42, label LBL_3
LBL_3:
%29 = sext i32 %27 to i64
%30 = mul i64 %29, 8
%31 = add i64 %30, ptrtoint (i64* @gv_0 to i64)
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = icmp eq i64 %33, 0
%35 = load i8, i8* %sv_5, align 1
%36 = icmp eq i8 %35, 0
%or.cond = or i1 %34, %36
store i64 0, i64* %storemerge.reg2mem
br i1 %or.cond, label LBL_42, label LBL_4
LBL_4:
%37 = zext i32 %27 to i64
%38 = bitcast i8* %sv_5 to i64*
%39 = call i64 @FUNC(i64 %37, i64* nonnull %38)
%40 = trunc i64 %39 to i32
%41 = icmp eq i32 %40, 0
%42 = icmp eq i1 %41, false
store i64 0, i64* %storemerge.reg2mem
br i1 %42, label LBL_5, label LBL_42
LBL_5:
%43 = trunc i64 %2 to i32
%44 = call i64 @FUNC(i64 %37, i64* nonnull %38)
%45 = load i64, i64* %32, align 8
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = add i64 %22, 32
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = icmp eq i64 %50, 0
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_5.LBL_8_crit_edge, label LBL_7
LBL_6:
%.pre42 = add i64 %22, 24
%.pre43 = inttoptr i64 %.pre42 to i32*
store i32* %.pre43, i32** %.pre-phi44.reg2mem
store i64 %45, i64* %.reg2mem
store i64 %50, i64* %.reg2mem52
br label LBL_8
LBL_7:
%53 = call i64 @FUNC(i64 %37, i64* nonnull %38)
%54 = trunc i64 %53 to i32
%55 = add i64 %22, 4
%56 = inttoptr i64 %55 to i32*
store i32 %54, i32* %56, align 4
%57 = add i64 %22, 20
%58 = inttoptr i64 %57 to i32*
store i32 %54, i32* %58, align 4
%59 = add i64 %22, 16
%60 = inttoptr i64 %59 to i32*
store i32 %43, i32* %60, align 4
%61 = load i32, i32* %56, align 4
%62 = mul i32 %43, 4
%63 = mul i32 %62, %61
%64 = add i64 %22, 24
%65 = inttoptr i64 %64 to i32*
store i32 %63, i32* %65, align 4
%66 = add i64 %22, 28
%67 = inttoptr i64 %66 to i32*
store i32 32, i32* %67, align 4
%68 = load i32, i32* %65, align 4
%69 = call i64* @malloc(i32 %68)
%70 = ptrtoint i64* %69 to i64
store i64 %70, i64* %49, align 8
%.pre = load i64, i64* %32, align 8
store i32* %65, i32** %.pre-phi44.reg2mem
store i64 %.pre, i64* %.reg2mem
store i64 %70, i64* %.reg2mem52
br label LBL_8
LBL_8:
%.reload53 = load i64, i64* %.reg2mem52
%.reload = load i64, i64* %.reg2mem
%.pre-phi44.reload = load i32*, i32** %.pre-phi44.reg2mem
%71 = add i64 %.reload, 8
%72 = inttoptr i64 %71 to i64*
%73 = load i64, i64* %72, align 8
%74 = load i32, i32* %.pre-phi44.reload, align 4
%75 = add i32 %74, 3
%76 = icmp slt i32 %74, 0
%77 = select i1 %76, i32 %75, i32 %74
%78 = icmp ugt i32 %77, 3
store i64 0, i64* %.reg2mem54
store i32 0, i32* %storemerge1037.reg2mem
br i1 %78, label LBL_9, label LBL_10
LBL_9:
%storemerge1037.reload = load i32, i32* %storemerge1037.reg2mem
%.reload55 = load i64, i64* %.reg2mem54
%79 = mul i64 %.reload55, 4
%80 = add i64 %79, %.reload53
%81 = inttoptr i64 %80 to i32*
store i32 16711935, i32* %81, align 4
%82 = add i32 %storemerge1037.reload, 1
%83 = load i32, i32* %.pre-phi44.reload, align 4
%84 = sdiv i32 %83, 8
%85 = zext i32 %84 to i64
%86 = sext i32 %82 to i64
%87 = icmp slt i64 %86, %85
store i64 %86, i64* %.reg2mem54
store i32 %82, i32* %storemerge1037.reg2mem
br i1 %87, label LBL_9, label LBL_10
LBL_10:
%88 = trunc i64 %44 to i32
%89 = icmp slt i32 %43, %88
br i1 %89, label LBL_14, label LBL_11
LBL_11:
%90 = add i64 %22, 40
%91 = inttoptr i64 %90 to i32*
%92 = load i32, i32* %91, align 4
store i32 0, i32* %sv_4.0.reg2mem
switch i32 %92, label LBL_15 [
i32 1, label LBL_12
i32 2, label LBL_13
]
LBL_12:
%93 = call i64 @FUNC(i64 %37, i64* nonnull %38)
%94 = trunc i64 %93 to i32
%95 = sub i32 %43, %94
%96 = icmp slt i32 %95, 0
%97 = zext i1 %96 to i32
%98 = add i32 %95, %97
%99 = ashr i32 %98, 1
store i32 %99, i32* %sv_4.0.reg2mem
br label LBL_15
LBL_13:
%100 = call i64 @FUNC(i64 %37, i64* nonnull %38)
%101 = trunc i64 %100 to i32
%102 = sub i32 %43, %101
store i32 %102, i32* %sv_4.0.reg2mem
br label LBL_15
LBL_14:
%103 = trunc i64 %arg2 to i32
store i32 %103, i32* %sv_4.0.reg2mem
br label LBL_15
LBL_15:
%104 = ptrtoint i64* %sv_7 to i64
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%105 = call i32 @strlen(i8* nonnull %sv_5)
%106 = icmp sgt i32 %105, 0
br i1 %106, label LBL_16, label LBL_27
LBL_16:
%107 = add i64 %104, -800
%sext45 = mul i64 %2, 4294967296
%108 = ashr exact i64 %sext45, 32
store i64 0, i64* %indvars.iv40.reg2mem
store i32 %sv_4.0.reload, i32* %sv_4.133.reg2mem
br label LBL_17
LBL_17:
%sv_4.133.reload = load i32, i32* %sv_4.133.reg2mem
%indvars.iv40.reload = load i64, i64* %indvars.iv40.reg2mem
%109 = add i64 %107, %indvars.iv40.reload
%110 = inttoptr i64 %109 to i8*
%111 = load i8, i8* %110, align 1
%112 = zext i8 %111 to i64
%113 = load i64, i64* %32, align 8
%114 = mul i64 %112, 16
%115 = add i64 %113, 16
%116 = add i64 %115, %114
%117 = inttoptr i64 %116 to i32*
%118 = load i32, i32* %117, align 4
%119 = icmp eq i32 %118, -1
%120 = icmp eq i1 %119, false
store i64 %112, i64* %sv_3.0.reg2mem
store i32 %118, i32* %sv_2.0.reg2mem
br i1 %120, label LBL_19, label LBL_18
LBL_18:
%121 = add i64 %113, 528
%122 = inttoptr i64 %121 to i32*
%123 = load i32, i32* %122, align 4
store i64 32, i64* %sv_3.0.reg2mem
store i32 %123, i32* %sv_2.0.reg2mem
br label LBL_19
LBL_19:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%124 = mul i64 %sv_3.0.reload, 16
%125 = add i64 %115, %124
%126 = add i64 %125, 4
%127 = inttoptr i64 %126 to i32*
%128 = load i32, i32* %127, align 4
%129 = icmp sgt i32 %sv_4.133.reload, -1
%130 = icmp sgt i32 %128, 0
%or.cond46 = icmp eq i1 %129, %130
br i1 %or.cond46, label LBL_20, label LBL_26
LBL_20:
%131 = add i64 %125, 8
%132 = inttoptr i64 %131 to i32*
%133 = load i32, i32* %132, align 4
%134 = add i64 %125, 12
%135 = inttoptr i64 %134 to i32*
%136 = load i32, i32* %135, align 4
%137 = mul i32 %136, %47
%138 = add i32 %137, %133
%139 = icmp sgt i32 %sv_2.0.reload, 0
%wide.trip.count = zext i32 %sv_2.0.reload to i64
store i32 0, i32* %storemerge832.reg2mem
store i32 %sv_4.133.reload, i32* %sv_1.030.reg2mem
store i32 %138, i32* %sv_0.028.reg2mem
br label LBL_25
LBL_21:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%140 = trunc i64 %indvars.iv.reload to i32
%141 = add i32 %sv_4.133.reload, %140
%142 = icmp sgt i32 %141, -1
%143 = zext i32 %141 to i64
%144 = icmp sgt i64 %108, %143
%or.cond48 = icmp eq i1 %142, %144
br i1 %or.cond48, label LBL_22, label LBL_23
LBL_22:
%145 = add i32 %sv_0.028.reload, %140
%146 = sext i32 %145 to i64
%147 = mul i64 %146, 4
%148 = add i64 %147, %73
%149 = add i32 %sv_1.030.reload, %140
%150 = sext i32 %149 to i64
%151 = mul i64 %150, 4
%152 = add i64 %151, %.reload53
%153 = inttoptr i64 %148 to i32*
%154 = load i32, i32* %153, align 4
%155 = inttoptr i64 %152 to i32*
store i32 %154, i32* %155, align 4
br label LBL_23
LBL_23:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond38 = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond38, label LBL_24, label LBL_21
LBL_24:
%156 = add i32 %sv_0.028.reload, %47
%157 = add i32 %sv_1.030.reload, %43
%158 = add nuw nsw i32 %storemerge832.reload, 1
%exitcond39 = icmp eq i32 %158, %128
store i32 %158, i32* %storemerge832.reg2mem
store i32 %157, i32* %sv_1.030.reg2mem
store i32 %156, i32* %sv_0.028.reg2mem
br i1 %exitcond39, label LBL_26, label LBL_25
LBL_25:
%sv_0.028.reload = load i32, i32* %sv_0.028.reg2mem
%sv_1.030.reload = load i32, i32* %sv_1.030.reg2mem
%storemerge832.reload = load i32, i32* %storemerge832.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br i1 %139, label LBL_21, label LBL_24
LBL_26:
%159 = add i32 %sv_2.0.reload, %sv_4.133.reload
%indvars.iv.next41 = add nuw nsw i64 %indvars.iv40.reload, 1
%160 = call i32 @strlen(i8* nonnull %sv_5)
%161 = sext i32 %160 to i64
%162 = icmp slt i64 %indvars.iv.next41, %161
store i64 %indvars.iv.next41, i64* %indvars.iv40.reg2mem
store i32 %159, i32* %sv_4.133.reg2mem
br i1 %162, label LBL_17, label LBL_27
LBL_27:
%163 = icmp slt i32 %sv_4.0.reload, 1
br i1 %163, label LBL_41, label LBL_28
LBL_28:
%164 = bitcast i64* %rdi to i32*
%165 = load i32, i32* %164, align 8
%166 = zext i32 %165 to i64
%sext12 = mul i64 %44, 4294967296
%167 = ashr exact i64 %sext12, 32
%168 = icmp sgt i64 %167, %166
br i1 %168, label LBL_29, label LBL_41
LBL_29:
%169 = call i32 @strlen(i8* nonnull %sv_5)
%170 = icmp eq i32 %169, 0
%171 = icmp slt i32 %169, 0
%172 = icmp eq i1 %171, false
%173 = icmp eq i1 %170, false
%174 = icmp eq i1 %172, %173
br i1 %174, label LBL_30, label LBL_41
LBL_30:
%175 = add i64 %104, -800
%sext = mul i64 %2, 4294967296
%176 = ashr exact i64 %sext, 32
store i32 %169, i32* %storemerge425.reg2mem
store i32 %sv_4.0.reload, i32* %sv_4.224.reg2mem
br label LBL_31
LBL_31:
%sv_4.224.reload = load i32, i32* %sv_4.224.reg2mem
%storemerge425.reload = load i32, i32* %storemerge425.reg2mem
%177 = sext i32 %storemerge425.reload to i64
%178 = add i64 %175, %177
%179 = inttoptr i64 %178 to i8*
%180 = load i8, i8* %179, align 1
%181 = zext i8 %180 to i64
%182 = load i64, i64* %32, align 8
%183 = mul i64 %181, 16
%184 = add i64 %182, 16
%185 = add i64 %184, %183
%186 = inttoptr i64 %185 to i32*
%187 = load i32, i32* %186, align 4
%188 = icmp eq i32 %187, -1
%189 = icmp eq i1 %188, false
store i64 %181, i64* %sv_3.1.reg2mem
store i32 %187, i32* %sv_2.1.reg2mem
br i1 %189, label LBL_33, label LBL_32
LBL_32:
%190 = add i64 %182, 528
%191 = inttoptr i64 %190 to i32*
%192 = load i32, i32* %191, align 4
store i64 32, i64* %sv_3.1.reg2mem
store i32 %192, i32* %sv_2.1.reg2mem
br label LBL_33
LBL_33:
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%sv_3.1.reload = load i64, i64* %sv_3.1.reg2mem
%193 = mul i64 %sv_3.1.reload, 16
%194 = add i64 %184, %193
%195 = add i64 %194, 4
%196 = inttoptr i64 %195 to i32*
%197 = load i32, i32* %196, align 4
%198 = sub i32 %sv_4.224.reload, %sv_2.1.reload
%199 = icmp sgt i32 %198, -1
%200 = icmp sgt i32 %197, 0
%or.cond49 = icmp eq i1 %199, %200
br i1 %or.cond49, label LBL_34, label LBL_40
LBL_34:
%201 = add i64 %194, 8
%202 = inttoptr i64 %201 to i32*
%203 = load i32, i32* %202, align 4
%204 = add i64 %194, 12
%205 = inttoptr i64 %204 to i32*
%206 = load i32, i32* %205, align 4
%207 = mul i32 %206, %47
%208 = add i32 %207, %203
%storemerge616 = add i32 %sv_2.1.reload, -1
%209 = icmp slt i32 %storemerge616, 0
%210 = icmp eq i1 %209, false
store i32 0, i32* %storemerge523.reg2mem
store i32 %198, i32* %sv_1.121.reg2mem
store i32 %208, i32* %sv_0.119.reg2mem
br label LBL_39
LBL_35:
%storemerge617.reload = load i32, i32* %storemerge617.reg2mem
%211 = add i32 %storemerge617.reload, %198
%212 = icmp sgt i32 %211, -1
%213 = zext i32 %211 to i64
%214 = icmp sgt i64 %176, %213
%or.cond51 = icmp eq i1 %212, %214
br i1 %or.cond51, label LBL_36, label LBL_37
LBL_36:
%215 = add i32 %storemerge617.reload, %sv_0.119.reload
%216 = sext i32 %215 to i64
%217 = mul i64 %216, 4
%218 = add i64 %217, %73
%219 = add i32 %storemerge617.reload, %sv_1.121.reload
%220 = sext i32 %219 to i64
%221 = mul i64 %220, 4
%222 = add i64 %221, %.reload53
%223 = inttoptr i64 %218 to i32*
%224 = load i32, i32* %223, align 4
%225 = inttoptr i64 %222 to i32*
store i32 %224, i32* %225, align 4
br label LBL_37
LBL_37:
%storemerge6 = add i32 %storemerge617.reload, -1
%226 = icmp slt i32 %storemerge6, 0
%227 = icmp eq i1 %226, false
store i32 %storemerge6, i32* %storemerge617.reg2mem
br i1 %227, label LBL_35, label LBL_38
LBL_38:
%228 = add i32 %sv_0.119.reload, %47
%229 = add i32 %sv_1.121.reload, %43
%230 = add nuw nsw i32 %storemerge523.reload, 1
%exitcond = icmp eq i32 %230, %197
store i32 %230, i32* %storemerge523.reg2mem
store i32 %229, i32* %sv_1.121.reg2mem
store i32 %228, i32* %sv_0.119.reg2mem
br i1 %exitcond, label LBL_40, label LBL_39
LBL_39:
%sv_0.119.reload = load i32, i32* %sv_0.119.reg2mem
%sv_1.121.reload = load i32, i32* %sv_1.121.reg2mem
%storemerge523.reload = load i32, i32* %storemerge523.reg2mem
store i32 %storemerge616, i32* %storemerge617.reg2mem
br i1 %210, label LBL_35, label LBL_38
LBL_40:
%231 = add i32 %storemerge425.reload, -1
%232 = icmp eq i32 %231, 0
%233 = icmp slt i32 %231, 0
%234 = icmp eq i1 %233, false
%235 = icmp eq i1 %232, false
%236 = icmp eq i1 %234, %235
store i32 %231, i32* %storemerge425.reg2mem
store i32 %198, i32* %sv_4.224.reg2mem
br i1 %236, label LBL_31, label LBL_41
LBL_41:
%237 = add i64 %22, 16
store i64 %237, i64* %storemerge.reg2mem
br label LBL_42
LBL_42:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %211, { 1, 0 }
uselistorder i32 %storemerge617.reload, { 0, 3, 2, 1 }
uselistorder i32 %198, { 1, 2, 0, 3 }
uselistorder i32 %197, { 1, 0 }
uselistorder i32 %sv_2.1.reload, { 1, 0 }
uselistorder i64 %182, { 1, 0 }
uselistorder i32 %sv_1.030.reload, { 1, 0 }
uselistorder i32 %sv_0.028.reload, { 1, 0 }
uselistorder i32 %141, { 1, 0 }
uselistorder i32 %128, { 1, 0 }
uselistorder i32 %sv_2.0.reload, { 2, 1, 0 }
uselistorder i64 %113, { 1, 0 }
uselistorder i32 %sv_4.133.reload, { 2, 3, 0, 1 }
uselistorder i32 %sv_4.0.reload, { 0, 2, 1 }
uselistorder i32* %.pre-phi44.reload, { 1, 0 }
uselistorder i64 %.reload53, { 2, 1, 0 }
uselistorder i32 %43, { 1, 2, 4, 3, 6, 0, 5 }
uselistorder i64* %38, { 1, 2, 0, 3, 4 }
uselistorder i64 %37, { 1, 2, 0, 3, 4 }
uselistorder i64* %32, { 1, 2, 0, 3, 4 }
uselistorder i64 %22, { 6, 7, 1, 2, 3, 4, 5, 0, 8, 9 }
uselistorder i8* %sv_5, { 5, 4, 0, 3, 1, 2 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64* %.reg2mem54, { 2, 0, 1 }
uselistorder i32* %storemerge1037.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_4.0.reg2mem, { 0, 4, 2, 3, 1 }
uselistorder i64* %indvars.iv40.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_4.133.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 2, 0 }
uselistorder i32* %storemerge425.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_4.224.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge617.reg2mem, { 1, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %1, { 1, 0 }
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 528, { 1, 0 }
uselistorder i32 -1, { 7, 6, 2, 4, 3, 8, 0, 1, 5 }
uselistorder i32 (i8*)* @strlen, { 3, 2, 0, 1 }
uselistorder i64 4, { 0, 1, 5, 2, 3, 6, 4, 7 }
uselistorder i64 32, { 0, 3, 4, 1, 2, 5 }
uselistorder i1 false, { 6, 3, 4, 2, 5, 0, 1, 7, 8, 9 }
uselistorder i64 (i64, i64*)* @fntTextWidth, { 3, 2, 1, 0 }
uselistorder label LBL_42, { 3, 2, 1, 0 }
uselistorder label LBL_38, { 1, 0 }
uselistorder label LBL_37, { 1, 0 }
uselistorder label LBL_31, { 1, 0 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_23, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_15, { 1, 2, 3, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | slab_err_8884 | slab_err | 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
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%11 = trunc i64 %2 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i128 %10)
%14 = call i64 @FUNC(i128 %9)
%15 = call i64 @FUNC(i128 %8)
%16 = call i64 @FUNC(i128 %7)
%17 = call i64 @FUNC(i128 %6)
%18 = call i64 @FUNC(i128 %5)
%19 = call i64 @FUNC(i128 %4)
%20 = call i64 @FUNC(i128 %3)
br label LBL_2
LBL_2:
%21 = ptrtoint i64* %arg2 to i64
%22 = ptrtoint i64* %arg1 to i64
store i32 24, i32* %sv_1, align 4
%23 = ptrtoint i32* %sv_1 to i64
%24 = bitcast i64* %sv_0 to i8*
%25 = call i32 @vsnprintf(i8* nonnull %24, i32 100, i8* %arg3, i64 %23)
%26 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0, i64 %23, i64 %arg5, i64 %arg6)
%27 = call i64 @FUNC(i64 %21)
%28 = call i64 @FUNC()
ret i64 %28
uselistorder i64 %23, { 1, 0 }
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
} | 0 |
BinRealVul | vm_stop_16613 | vm_stop | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC()
%4 = call i64 @FUNC()
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%5 = call i64 @FUNC()
store i64 %5, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 1, { 2, 1, 0 }
} | 1 |
BinRealVul | opfnstsw_10410 | opfnstsw | define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 1
%4 = icmp eq i1 %3, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %4, label LBL_6, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = ptrtoint i32* %arg3 to i64
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = urem i32 %9, 4
%11 = icmp eq i32 %10, 3
br i1 %11, label LBL_2, label LBL_3
LBL_2:
%12 = bitcast i64* %arg2 to i8*
store i8 -35, i8* %12, align 1
%13 = add i64 %6, 8
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = add i64 %5, 1
%17 = trunc i32 %15 to i8
%18 = or i8 %17, 56
%19 = inttoptr i64 %16 to i8*
store i8 %18, i8* %19, align 1
store i64 2, i64* %rax.0.reg2mem
br label LBL_6
LBL_3:
%20 = and i32 %9, 6
%21 = icmp eq i32 %20, 6
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %21, label LBL_4, label LBL_6
LBL_4:
%22 = add i64 %6, 12
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %26, label LBL_6, label LBL_5
LBL_5:
%27 = bitcast i64* %arg2 to i8*
store i8 -33, i8* %27, align 1
%28 = add i64 %5, 1
%29 = inttoptr i64 %28 to i8*
store i8 -32, i8* %29, align 1
store i64 2, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %9, { 1, 0 }
uselistorder i64 %6, { 1, 0, 2 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 5, 4, 2, 1 }
uselistorder i64 2, { 1, 0 }
uselistorder label LBL_6, { 3, 4, 0, 2, 1 }
} | 0 |
BinRealVul | relational_12424 | relational | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.be.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1)
%1 = trunc i64 %arg2 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
store i64 %0, i64* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%4 = call i64 @FUNC(i64 %arg1, i64 60)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_4, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %arg1)
%8 = call i64 @FUNC(i64 1, i64 %sv_0.0.reload, i64 %7)
store i64 %8, i64* %sv_0.0.be.reg2mem
br label LBL_1.backedge
LBL_3:
%sv_0.0.be.reload = load i64, i64* %sv_0.0.be.reg2mem
store i64 %sv_0.0.be.reload, i64* %sv_0.0.reg2mem
br label LBL_1
LBL_4:
%9 = call i64 @FUNC(i64 %arg1, i64 62)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_6, label LBL_5
LBL_5:
%12 = call i64 @FUNC(i64 %arg1)
%13 = call i64 @FUNC(i64 2, i64 %sv_0.0.reload, i64 %12)
store i64 %13, i64* %sv_0.0.be.reg2mem
br label LBL_1.backedge
LBL_6:
%14 = call i64 @FUNC(i64 %arg1, i64 7)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_8, label LBL_7
LBL_7:
%17 = call i64 @FUNC(i64 %arg1)
%18 = call i64 @FUNC(i64 3, i64 %sv_0.0.reload, i64 %17)
store i64 %18, i64* %sv_0.0.be.reg2mem
br label LBL_1.backedge
LBL_8:
%19 = call i64 @FUNC(i64 %arg1, i64 8)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_10, label LBL_9
LBL_9:
%22 = call i64 @FUNC(i64 %arg1)
%23 = call i64 @FUNC(i64 4, i64 %sv_0.0.reload, i64 %22)
store i64 %23, i64* %sv_0.0.be.reg2mem
br label LBL_1.backedge
LBL_10:
%24 = call i64 @FUNC(i64 %arg1, i64 9)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
br i1 %26, label LBL_12, label LBL_11
LBL_11:
%27 = call i64 @FUNC(i64 %arg1)
%28 = call i64 @FUNC(i64 5, i64 %sv_0.0.reload, i64 %27)
store i64 %28, i64* %sv_0.0.be.reg2mem
br label LBL_1.backedge
LBL_12:
br i1 %3, label LBL_15, label LBL_13
LBL_13:
%29 = call i64 @FUNC(i64 %arg1, i64 10)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_15, label LBL_14
LBL_14:
%32 = call i64 @FUNC(i64 %arg1)
%33 = call i64 @FUNC(i64 6, i64 %sv_0.0.reload, i64 %32)
store i64 %33, i64* %sv_0.0.be.reg2mem
br label LBL_1.backedge
LBL_15:
ret i64 %sv_0.0.reload
uselistorder i64 %sv_0.0.reload, { 6, 0, 1, 2, 3, 4, 5 }
uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.be.reg2mem, { 6, 5, 4, 3, 2, 0, 1 }
uselistorder i64 (i64, i64, i64)* @EXP2, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @jsP_accept, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 0, { 0, 2, 3, 4, 5, 6, 1 }
uselistorder i64 (i64)* @shift, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg1, { 1, 2, 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }
uselistorder label LBL_1.backedge, { 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | bm_poly_6743 | bm_poly | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.1.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i32* %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 ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_1, i64 0, i64 0), i32 19, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_2, i64 0, i64 0))
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
%4 = icmp ult i32 %arg3, 2
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %4, label LBL_6, label LBL_3
LBL_3:
%5 = ptrtoint i64* %arg2 to i64
%6 = trunc i64 %1 to i32
%7 = add i32 %arg3, -1
%8 = ptrtoint i32* %arg1 to i64
%wide.trip.count = zext i32 %7 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%9 = mul i64 %indvars.iv.next, 8
%10 = add i64 %9, %5
%11 = add i64 %10, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = inttoptr i64 %10 to i32*
%15 = load i32, i32* %14, align 4
%16 = mul i64 %indvars.iv.reload, 8
%17 = add i64 %16, %5
%18 = add i64 %17, 4
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = inttoptr i64 %17 to i32*
%22 = load i32, i32* %21, align 4
%23 = zext i32 %13 to i64
%24 = call i64 @FUNC(i64 %8, i32 %22, i32 %20, i32 %15, i64 %23)
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_5, label LBL_4
LBL_5:
%phitmp3 = and i64 %9, 34359738360
%25 = add i64 %phitmp3, %5
%26 = add i64 %25, 4
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = inttoptr i64 %25 to i32*
%30 = load i32, i32* %29, align 4
%31 = add i64 %5, 4
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = zext i32 %28 to i64
%35 = call i64 @FUNC(i64 %8, i32 %6, i32 %33, i32 %30, i64 %34)
store i64 %35, i64* %rax.1.reg2mem
br label LBL_6
LBL_6:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %9, { 1, 0 }
uselistorder i64 %indvars.iv.next, { 0, 2, 1 }
uselistorder i64 %indvars.iv.reload, { 1, 0 }
uselistorder i64 %5, { 3, 0, 1, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 4, { 2, 3, 0, 1 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | rsCStrExtendBuf_19075 | rsCStrExtendBuf | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i16
%.pre-phi2.reg2mem = alloca i16*
%.reg2mem = alloca i16
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp ult i64 %arg2, 17
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = trunc i64 %arg2 to i16
%3 = add i16 %2, 16
%4 = and i16 %3, -16
%.pre = add i64 %0, 8
%.pre1 = inttoptr i64 %.pre to i16*
%.pre3 = load i16, i16* %.pre1, align 2
store i16 %.pre3, i16* %.reg2mem
store i16* %.pre1, i16** %.pre-phi2.reg2mem
store i16 %4, i16* %storemerge.reg2mem
br label LBL_3
LBL_2:
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i16*
%7 = load i16, i16* %6, align 2
%8 = add i16 %7, 16
store i16 %7, i16* %.reg2mem
store i16* %6, i16** %.pre-phi2.reg2mem
store i16 %8, i16* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i16, i16* %storemerge.reg2mem
%.reload = load i16, i16* %.reg2mem
%9 = add i16 %.reload, %storemerge.reload
%10 = zext i16 %9 to i32
%11 = call i64* @realloc(i64* %arg1, i32 %10)
%12 = icmp eq i64* %11, null
%13 = icmp eq i1 %12, false
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_4, label LBL_5
LBL_4:
%.pre-phi2.reload = load i16*, i16** %.pre-phi2.reg2mem
%14 = ptrtoint i64* %11 to i64
store i16 %9, i16* %.pre-phi2.reload, align 2
store i64 %14, i64* %arg1, align 8
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* %11, { 1, 0 }
uselistorder i64 %0, { 1, 0 }
uselistorder i16* %.reg2mem, { 0, 2, 1 }
uselistorder i16** %.pre-phi2.reg2mem, { 0, 2, 1 }
uselistorder i16* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64 8, { 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.