dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | ne2000_asic_ioport_writel_9714 | ne2000_asic_ioport_writel | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = and i64 %arg3, 4294967295
%8 = and i64 %1, 4294967295
%9 = call i64 @FUNC(i64 %2, i64 %8, i64 %7)
%10 = call i64 @FUNC(i64 %2, i64 4)
store i64 %10, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | nodelist_remove_routerinfo_8364 | nodelist_remove_routerinfo | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1)
%1 = icmp eq i64 %0, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_4, label LBL_1
LBL_1:
%2 = inttoptr i64 %0 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, %arg1
%5 = icmp eq i1 %4, false
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_4, label LBL_2
LBL_2:
store i64 0, i64* %2, align 8
%6 = call i64 @FUNC(i64 %0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 %6, i64* %rax.0.reg2mem
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %0, i64 1)
%11 = call i64 @FUNC(i64 %0)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 0, 2, 3, 4 }
uselistorder i32 1, { 1, 0 }
} | 0 |
BinRealVul | jas_iccgetuint32_5416 | jas_iccgetuint32 | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i64 4, i64* nonnull %sv_0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = load i64, i64* %sv_0, align 8
store i64 %4, i64* %arg2, 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* %sv_0, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | tcp_v6_send_synack_11063 | tcp_v6_send_synack | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i64* %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i64* %arg3 to i64
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %0)
%5 = call i64 @FUNC(i64 %3)
%6 = icmp eq i64* %arg2, null
%7 = icmp eq i1 %6, false
store i64 %2, i64* %sv_1.0.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %3, i64 %1, i64 %0, i64 6)
%9 = icmp eq i64 %8, 0
store i64 %8, i64* %sv_1.0.reg2mem
store i64 4294967284, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_7, label LBL_2
LBL_2:
%10 = ptrtoint i64* %arg5 to i64
%11 = urem i64 %arg6, 256
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%12 = call i64 @FUNC(i64 %3, i64 %sv_1.0.reload, i64 %0, i64 %10, i64 %11)
%13 = icmp eq i64 %12, 0
store i64 4294967284, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_7, label LBL_3
LBL_3:
%14 = inttoptr i64 %5 to i32*
%15 = add i64 %4, 4
%16 = call i64 @FUNC(i64 %12, i64 %4, i64 %15)
%17 = inttoptr i64 %15 to i32*
%18 = load i32, i32* %17, align 4
%19 = bitcast i64* %arg3 to i32*
store i32 %18, i32* %19, align 4
%20 = load i32, i32* %14, align 4
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_6, label LBL_4
LBL_4:
%22 = add i64 %4, 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = icmp eq i64 %24, 0
br i1 %25, label LBL_6, label LBL_5
LBL_5:
%26 = call i64 @FUNC(i64 %24)
%27 = call i64 @FUNC(i64 %26)
%28 = trunc i64 %27 to i32
%29 = add i64 %1, 4
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
br label LBL_6
LBL_6:
%31 = add i64 %5, 16
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = add i64 %5, 8
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = zext i32 %33 to i64
%38 = call i64 @FUNC(i64 %3, i64 %12, i64 %1, i64 %36, i64 %37)
%39 = and i64 %38, 4294967295
%40 = call i64 @FUNC(i64 %39)
%phitmp = and i64 %40, 4294967295
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %4, { 0, 2, 1 }
uselistorder i64 %3, { 1, 2, 0, 3 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder i64 4294967284, { 1, 0 }
uselistorder label LBL_7, { 2, 0, 1 }
} | 1 |
BinRealVul | exif_process_IFD_in_MAKERNOTE_7849 | exif_process_IFD_in_MAKERNOTE | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i64* %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%.reg2mem = alloca i32
%1 = load i32, i32* %0
%sv_0 = alloca i64, align 8
store i64 %arg6, i64* %sv_0, align 8
%2 = load i64, i64* bitcast ([2 x i8*]* @gv_0 to i64*), align 8
%3 = icmp eq i64 %2, 0
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = icmp eq i64* %arg1, null
store i64 1, i64* %rax.0.reg2mem
br i1 %4, label LBL_17, label LBL_2
LBL_2:
%5 = inttoptr i64 %2 to i8*
%6 = bitcast i64* %arg1 to i8*
%7 = call i32 @strcmp(i8* %5, i8* %6)
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 1, i64* %rax.0.reg2mem
br i1 %9, label LBL_17, label LBL_3
LBL_3:
%10 = load i64, i64* inttoptr (i64 add (i64 ptrtoint ([2 x i8*]* @gv_0 to i64), i64 8) to i64*), align 8
%11 = icmp eq i64 %10, 0
br i1 %11, label LBL_5, label LBL_4
LBL_4:
%12 = bitcast i64* %arg2 to i8*
%13 = load i32, i32* inttoptr (i64 add (i64 ptrtoint ([2 x i8*]* @gv_0 to i64), i64 16) to i32*), align 8
%14 = inttoptr i64 %10 to i8*
%15 = call i32 @strncmp(i8* %14, i8* %12, i32 %13)
%16 = icmp eq i32 %15, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %16, label LBL_5, label LBL_17
LBL_5:
%17 = ptrtoint i64* %arg1 to i64
%18 = load i32, i32* inttoptr (i64 add (i64 ptrtoint ([2 x i8*]* @gv_0 to i64), i64 20) to i32*), align 4
%19 = zext i32 %18 to i64
%20 = sext i32 %arg3 to i64
%21 = icmp sgt i64 %20, %19
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%22 = zext i32 %arg3 to i64
%23 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %17, i64 2, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_2, i64 0, i64 0), i64 %22, i64 %19)
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_7:
%24 = add i64 %17, 12
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = or i32 %26, 1
store i32 %27, i32* %25, align 4
%28 = add i64 %17, 8
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = load i32, i32* inttoptr (i64 add (i64 ptrtoint ([2 x i8*]* @gv_0 to i64), i64 24) to i32*), align 8
store i32 %30, i32* %.reg2mem
switch i32 %31, label LBL_10 [
i32 0, label LBL_8
i32 1, label LBL_9
]
LBL_8:
store i32 0, i32* %29, align 4
store i32 0, i32* %.reg2mem
br label LBL_10
LBL_9:
store i32 1, i32* %29, align 4
store i32 1, i32* %.reg2mem
br label LBL_10
LBL_10:
%32 = ptrtoint i64* %arg2 to i64
%33 = sext i32 %18 to i64
%34 = add i64 %33, %32
%.reload = load i32, i32* %.reg2mem
%35 = zext i32 %.reload to i64
%36 = call i64 @FUNC(i64 %34, i64 %35)
%37 = trunc i64 %36 to i32
%38 = mul i32 %37, 12
%39 = or i32 %38, 1
%40 = zext i32 %39 to i64
%41 = icmp sgt i64 %20, %40
br i1 %41, label LBL_11, label LBL_13
LBL_11:
%42 = icmp sgt i32 %37, 0
br i1 %42, label LBL_12, label LBL_16
LBL_12:
%43 = ptrtoint i64* %arg4 to i64
%44 = ptrtoint i64* %sv_0 to i64
%45 = load i32, i32* inttoptr (i64 add (i64 ptrtoint ([2 x i8*]* @gv_0 to i64), i64 28) to i32*), align 4
%46 = icmp eq i32 %45, 0
%47 = icmp eq i1 %46, false
%spec.select = select i1 %47, i64 %43, i64 %32
%spec.select4 = select i1 %47, i32 %1, i32 %arg3
%48 = add i64 %44, -8
%49 = inttoptr i64 %48 to i64*
%50 = add i64 %44, -16
%51 = inttoptr i64 %50 to i64*
%sext = mul i64 %36, 4294967296
%52 = ashr exact i64 %sext, 32
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_14
LBL_13:
%53 = or i32 %38, 2
%54 = zext i32 %53 to i64
%55 = and i64 %36, 4294967295
%56 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %17, i64 2, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_3, i64 0, i64 0), i64 %55, i64 %54)
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_14:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%57 = load i64, i64* inttoptr (i64 add (i64 ptrtoint ([2 x i8*]* @gv_0 to i64), i64 32) to i64*), align 8
%58 = mul i64 %indvars.iv.reload, 51539607552
%sext9 = ashr exact i64 %58, 32
%59 = or i64 %sext9, 2
%60 = add i64 %59, %34
%61 = load i64, i64* %sv_0, align 8
store i64 %57, i64* %49, align 8
store i64 0, i64* %51, align 8
%62 = call i64 @FUNC(i64 %17, i64 %60, i64 %spec.select, i32 %spec.select4, i64 %61, i32 1)
%63 = trunc i64 %62 to i32
%64 = icmp eq i32 %63, 0
%65 = icmp eq i1 %64, false
store i64 0, i64* %rax.0.reg2mem
br i1 %65, label LBL_15, label LBL_17
LBL_15:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%66 = icmp slt i64 %indvars.iv.next, %52
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %66, label LBL_14, label LBL_16
LBL_16:
store i32 %30, i32* %29, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %36, { 1, 0, 2 }
uselistorder i64 %32, { 1, 0 }
uselistorder i32 %30, { 1, 0 }
uselistorder i32* %29, { 2, 0, 1, 3 }
uselistorder i64 %17, { 2, 1, 3, 4, 0 }
uselistorder i64* %sv_0, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 4, 6, 5, 3, 2, 1 }
uselistorder i64 32, { 0, 2, 1 }
uselistorder i64 (i8*, i64, i64, i8*, i64, i64)* @exif_error_docref, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 1, { 3, 6, 2, 1, 0, 4, 5 }
uselistorder i32 0, { 7, 8, 1, 0, 9, 2, 10, 11, 3, 4, 5, 6 }
uselistorder [2 x i8*]* @gv_0, { 1, 0 }
uselistorder i32 %arg3, { 0, 2, 1 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 2, 0, 1 }
uselistorder label LBL_17, { 4, 3, 5, 6, 2, 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_10, { 1, 2, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | crypto_nivaead_report_12127 | crypto_nivaead_report | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = bitcast i64* %sv_1 to i8*
%2 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %1, i32 64, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0))
%3 = bitcast i64* %sv_0 to i8*
%4 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %3, i32 64, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64* %arg2)
%5 = call i64 @FUNC(i64 %0, i64 1, i64 152, i64* nonnull %sv_1)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
%. = select i1 %8, i64 4294967206, i64 0
ret i64 %.
uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 1, 0 }
} | 1 |
BinRealVul | avcodec_pix_fmt_string_4177 | avcodec_pix_fmt_string | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%storemerge.in.reg2mem = alloca i32
%1 = load i32, i32* %0
%sext = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext, 32
%sext5 = mul i64 %arg3, 4294967296
%3 = ashr exact i64 %sext5, 32
%4 = trunc i64 %3 to i32
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = trunc i64 %2 to i32
%8 = bitcast i64* %arg1 to i8*
%9 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %8, i32 %7, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0))
store i32 %9, i32* %storemerge.in.reg2mem
br label LBL_3
LBL_2:
%10 = ashr exact i64 %sext5, 31
%11 = add nsw i64 %10, %3
%12 = mul i64 %11, 8
%13 = add i64 %12, ptrtoint ([5 x i8]** @gv_1 to i64)
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = add i64 %12, add (i64 ptrtoint ([5 x i8]** @gv_1 to i64), i64 8)
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = inttoptr i64 %15 to i8*
%20 = add i64 %12, add (i64 ptrtoint ([5 x i8]** @gv_1 to i64), i64 16)
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
%. = select i1 %24, i8 110, i8 121
%25 = trunc i64 %2 to i32
%26 = zext i32 %1 to i64
%27 = and i64 %18, 4294967295
%28 = bitcast i64* %arg1 to i8*
%29 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %28, i32 %25, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0), i8* %19, i64 %27, i64 %26, i8 %.)
store i32 %29, i32* %storemerge.in.reg2mem
br label LBL_3
LBL_3:
%storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem
%storemerge = sext i32 %storemerge.in.reload to i64
ret i64 %storemerge
uselistorder i64 %12, { 2, 1, 0 }
uselistorder i64 %sext5, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64 8, { 1, 0 }
uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 1, 0 }
} | 0 |
BinRealVul | fscrypt_d_revalidate_13419 | fscrypt_d_revalidate | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i1
%0 = urem i64 %arg2, 2
%1 = icmp eq i64 %0, 0
store i64 4294967286, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_8
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %3)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_3:
%10 = add i64 %2, 12
%11 = call i64 @FUNC(i64 %10)
%12 = add i64 %2, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = and i32 %14, 2
%16 = call i64 @FUNC(i64 %10)
%17 = call i64 @FUNC(i64 %3)
%18 = add i64 %17, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
%23 = call i64 @FUNC(i64 %3)
%24 = icmp eq i32 %15, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_4, label LBL_5
LBL_4:
%26 = icmp eq i1 %22, false
%27 = icmp eq i1 %26, false
store i1 %27, i1* %.reg2mem
br label LBL_7
LBL_5:
%28 = call i64 @FUNC(i64 %2)
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
store i64 0, i64* %rax.0.reg2mem
br i1 %31, label LBL_8, label LBL_6
LBL_6:
%32 = icmp eq i1 %22, false
%33 = icmp eq i1 %32, false
%or.cond = icmp eq i1 %24, %33
store i1 %33, i1* %.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_8, label LBL_7
LBL_7:
%.reload = load i1, i1* %.reg2mem
%or.cond3 = or i1 %24, %.reload
%spec.select = zext i1 %or.cond3 to i64
ret i64 %spec.select
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i1 %24, { 1, 0, 2 }
uselistorder i1 %22, { 1, 0 }
uselistorder i64 %3, { 1, 2, 0, 3, 4 }
uselistorder i64 %2, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i64 (i64)* @dput, { 1, 0 }
uselistorder i1 false, { 2, 3, 4, 0, 1, 5, 6, 7 }
uselistorder i64 (i64)* @d_inode, { 2, 1, 0 }
uselistorder label LBL_8, { 1, 0, 3, 2 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | vmx_set_msr_5691 | vmx_set_msr | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i64, i64* %0
%3 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = call i64 @FUNC(i64 %1)
%6 = icmp eq i32 %3, -1073741696
br i1 %6, label LBL_13, label LBL_1
LBL_1:
%7 = trunc i64 %4 to i32
%8 = icmp ult i32 %7, -1073741695
br i1 %8, label LBL_2, label LBL_21
LBL_2:
%9 = icmp eq i32 %7, 631
br i1 %9, label LBL_19, label LBL_3
LBL_3:
%10 = icmp ult i32 %7, 632
br i1 %10, label LBL_4, label LBL_21
LBL_4:
%11 = icmp eq i32 %7, 118
br i1 %11, label LBL_16, label LBL_5
LBL_5:
%12 = icmp ult i32 %7, 119
br i1 %12, label LBL_6, label LBL_21
LBL_6:
%13 = icmp eq i32 %7, 117
br i1 %13, label LBL_15, label LBL_7
LBL_7:
%14 = icmp ult i32 %7, 118
br i1 %14, label LBL_8, label LBL_21
LBL_8:
%15 = icmp eq i32 %7, 116
br i1 %15, label LBL_14, label LBL_9
LBL_9:
%16 = icmp ult i32 %7, 117
br i1 %16, label LBL_10, label LBL_21
LBL_10:
%17 = icmp ult i32 %7, 16
br i1 %17, label LBL_11, label LBL_12
LBL_11:
%18 = icmp ult i32 %7, 12
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_18, label LBL_21
LBL_12:
%20 = icmp eq i32 %7, 16
br i1 %20, label LBL_17, label LBL_21
LBL_13:
%21 = call i64 @FUNC(i64 %5)
%22 = and i64 %4, 4294967295
%23 = call i64 @FUNC(i64 %1, i64 %22, i64 %arg3)
store i64 %23, i64* %sv_0.0.reg2mem
br label LBL_24
LBL_14:
%24 = and i64 %arg3, 4294967295
%25 = call i64 @FUNC(i64 116, i64 %24)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_24
LBL_15:
%26 = call i64 @FUNC(i64 117, i64 %arg3)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_24
LBL_16:
%27 = call i64 @FUNC(i64 118, i64 %arg3)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_24
LBL_17:
%28 = call i64 @FUNC(i64 %2)
%29 = call i64 @FUNC(i64 %arg3, i64 %2)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_24
LBL_18:
%30 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_0, i64 0, i64 0), i32 %7, i64 %arg3)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_24
LBL_19:
%31 = load i32, i32* bitcast (i64* @gv_1 to i32*), align 8
%32 = and i32 %31, 2
%33 = icmp eq i32 %32, 0
br i1 %33, label LBL_21, label LBL_20
LBL_20:
%34 = call i64 @FUNC(i64 3, i64 %arg3)
store i64 %arg3, i64* %arg1, align 8
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_24
LBL_21:
%35 = call i64 @FUNC(i64 %5)
%36 = and i64 %4, 4294967295
%37 = call i64 @FUNC(i64 %5, i64 %36)
%38 = icmp eq i64 %37, 0
br i1 %38, label LBL_23, label LBL_22
LBL_22:
%39 = inttoptr i64 %37 to i64*
store i64 %arg3, i64* %39, align 8
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_24
LBL_23:
%40 = call i64 @FUNC(i64 %1, i64 %36, i64 %arg3)
store i64 %40, i64* %sv_0.0.reg2mem
br label LBL_24
LBL_24:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%41 = and i64 %sv_0.0.reload, 4294967295
ret i64 %41
uselistorder i32 %7, { 0, 2, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64 %4, { 0, 2, 1 }
uselistorder i64 %1, { 1, 0, 2, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 8, 7, 6, 2, 1, 5, 4, 3, 9 }
uselistorder i64 (i64, i64)* @vmcs_writel, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @kvm_set_msr_common, { 1, 0 }
uselistorder i64 (i64)* @vmx_load_host_state, { 1, 0 }
uselistorder i64 %arg3, { 8, 7, 6, 5, 1, 0, 4, 3, 2, 9 }
uselistorder label LBL_21, { 7, 0, 1, 2, 3, 4, 5, 6 }
} | 0 |
BinRealVul | omap_prcm_get_reset_sources_3756 | omap_prcm_get_reset_sources | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = call i64 @FUNC()
%2 = or i64 %1, %0
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 0, i64 0)
%6 = urem i64 %5, 128
store i64 %6, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%7 = call i64 @FUNC()
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 0, i64 0)
%11 = urem i64 %10, 128
store i64 %11, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64, i64)* @prm_read_mod_reg, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 0 |
BinRealVul | mxf_read_random_index_pack_8745 | mxf_read_random_index_pack | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = load i32, i32* %1
%sv_0 = alloca i32, align 4
%6 = add i64 %4, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = urem i64 %4, 2
%10 = icmp eq i64 %9, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_9, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 %4)
%12 = inttoptr i64 %8 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %11, -4
%15 = call i64 @FUNC(i64 %4, i64 %14, i64 0)
%16 = call i64 @FUNC(i64 %4)
%17 = and i64 %16, 4294967295
%18 = icmp ult i64 %17, 45
store i64 %4, i64* %rdi.0.reg2mem
br i1 %18, label LBL_8, label LBL_2
LBL_2:
%19 = sub i64 %11, %13
%20 = ashr i64 %19, 63
%21 = and i64 %20, 12
%22 = add nuw nsw i64 %21, 28
%23 = icmp ult i64 %22, %17
store i64 %4, i64* %rdi.0.reg2mem
br i1 %23, label LBL_8, label LBL_3
LBL_3:
%24 = sub i64 %11, %17
%25 = call i64 @FUNC(i64 %4, i64 %24, i64 0)
%26 = ptrtoint i32* %sv_0 to i64
%27 = bitcast i32* %sv_0 to i64*
%28 = call i64 @FUNC(i64* nonnull %27, i64 %4)
%29 = trunc i64 %28 to i32
%30 = icmp slt i32 %29, 0
store i64 %26, i64* %rdi.0.reg2mem
br i1 %30, label LBL_8, label LBL_4
LBL_4:
%31 = load i32, i32* %sv_0, align 4
%32 = icmp eq i32 %31, 256
%33 = icmp eq i1 %32, false
store i64 %26, i64* %rdi.0.reg2mem
br i1 %33, label LBL_8, label LBL_5
LBL_5:
%34 = trunc i64 %16 to i32
%35 = add i32 %34, -20
%36 = icmp eq i32 %5, %35
%37 = icmp eq i1 %36, false
store i64 %26, i64* %rdi.0.reg2mem
br i1 %37, label LBL_8, label LBL_6
LBL_6:
%38 = add i32 %5, -12
%39 = zext i32 %38 to i64
%40 = call i64 @FUNC(i64 %26, i64 %39)
%41 = call i64 @FUNC(i64 %26)
%42 = add i64 %8, 8
%43 = inttoptr i64 %42 to i64*
store i64 %41, i64* %43, align 8
%44 = load i64, i64* %12, align 8
%45 = add i64 %44, %41
%46 = icmp sgt i64 %11, %45
store i64 %26, i64* %rdi.0.reg2mem
br i1 %46, label LBL_8, label LBL_7
LBL_7:
%47 = call i64 @FUNC(i64 %4, i64 1, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_0, i64 0, i64 0), i64 %24, i64 %3, i64 %2)
store i64 0, i64* %43, align 8
store i64 %4, i64* %rdi.0.reg2mem
br label LBL_8
LBL_8:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%48 = load i64, i64* %12, align 8
%49 = call i64 @FUNC(i64 %rdi.0.reload, i64 %48, i64 0)
store i64 %49, 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 %26, { 0, 5, 4, 1, 2, 3 }
uselistorder i64 %17, { 1, 0, 2 }
uselistorder i64 %16, { 1, 0 }
uselistorder i64* %12, { 1, 0, 2 }
uselistorder i64 %11, { 0, 1, 3, 2 }
uselistorder i32* %sv_0, { 1, 2, 0 }
uselistorder i64 %4, { 0, 9, 5, 4, 1, 2, 8, 7, 6, 3, 10 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @avio_seek, { 2, 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 6, 0, 3, 2, 1, 5, 4 }
} | 0 |
BinRealVul | unlink_all_completed_17432 | unlink_all_completed | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%2 = zext i32 %1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC()
%5 = call i64 @FUNC(i64 0)
ret i64 %5
} | 1 |
BinRealVul | preloadobjstms_12418 | preloadobjstms | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp sgt i32 %3, 0
store i32 0, i32* %storemerge1.reg2mem
store i64 0, i64* %storemerge.lcssa.reg2mem
br i1 %4, label LBL_1, label LBL_5
LBL_1:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%5 = call i64 @FUNC(i64 %1, i64 %0, i32 %storemerge1.reload)
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = icmp eq i8 %7, 111
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %1, i64 %0, i32 %storemerge1.reload)
%11 = call i64 @FUNC(i64 %1, i64 %10)
br label LBL_3
LBL_3:
%12 = add nuw nsw i32 %storemerge1.reload, 1
%exitcond = icmp eq i32 %12, %3
store i32 %12, i32* %storemerge1.reg2mem
br i1 %exitcond, label LBL_4, label LBL_1
LBL_4:
%phitmp = and i64 %2, 4294967295
store i64 %phitmp, i64* %storemerge.lcssa.reg2mem
br label LBL_5
LBL_5:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i32 %storemerge1.reload, { 2, 0, 1 }
uselistorder i64 %1, { 1, 0, 2, 3 }
uselistorder i32* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.lcssa.reg2mem, { 0, 2, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | get_a32_user_mem_index_2645 | get_a32_user_mem_index | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp sgt i32 %2, 7
br i1 %3, label LBL_7, label LBL_1
LBL_1:
%4 = icmp sgt i32 %2, 5
br i1 %4, label LBL_6, label LBL_2
LBL_2:
%5 = icmp sgt i32 %2, 2
br i1 %5, label LBL_5, label LBL_3
LBL_3:
%6 = icmp slt i32 %2, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_4, label LBL_7
LBL_4:
%8 = call i64 @FUNC(i64 1)
store i64 %8, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%9 = call i64 @FUNC(i64 4)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_8
LBL_6:
%10 = call i64 @FUNC(i64 6)
store i64 %10, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%11 = call i64 @FUNC()
store i64 %11, 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 %2, { 3, 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64)* @arm_to_core_mmu_idx, { 2, 1, 0 }
} | 0 |
BinRealVul | nodelist_add_microdesc_9811 | nodelist_add_microdesc | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 1)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_6
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC()
%5 = call i64 @FUNC(i64 %0, i64 %3)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_6
LBL_2:
%8 = call i64 @FUNC(i64 %5)
%9 = icmp eq i64 %8, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_6, label LBL_3
LBL_3:
%10 = inttoptr i64 %8 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_5, label LBL_4
LBL_4:
%13 = add i64 %11, 32
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = add i32 %15, -1
store i32 %16, i32* %14, align 4
br label LBL_5
LBL_5:
store i64 %3, i64* %10, align 8
%17 = add i64 %3, 32
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = add i32 %19, 1
store i32 %20, i32* %18, align 4
store i64 %8, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder label LBL_6, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | send_response_8352 | send_response | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3, i64* %arg4, i8* %arg5, i8* %arg6) local_unnamed_addr {
LBL_0:
%storemerge3.reg2mem = alloca i32
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i8* %arg3 to i64
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%3 = trunc i64 %arg2 to i32
%4 = call i64 @FUNC(i64 %2, i32 %3, i64 %1, i64* nonnull @gv_0, i64 %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0))
%5 = and i64 %arg2, 4294967295
%6 = call i64 @FUNC(i64* nonnull %sv_1, i64 2000, i8* getelementptr inbounds ([128 x i8], [128 x i8]* @gv_2, i64 0, i64 0), i64 %5, i64 %1, i64 %5)
%7 = bitcast i64* %sv_1 to i8*
%8 = call i64 @FUNC(i64 %2, i8* nonnull %7)
%9 = ptrtoint i8* %arg6 to i64
%10 = call i64 @FUNC(i64 %9, i64* nonnull %sv_0, i64 1000)
%11 = ptrtoint i64* %sv_0 to i64
%12 = call i64 @FUNC(i64* nonnull %sv_1, i64 2000, i8* %arg5, i64 %11, i64 %1, i64 %5)
%13 = call i64 @FUNC(i64 %2, i8* nonnull %7)
%14 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0), i64 %2)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_4, label LBL_1
LBL_1:
%17 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0))
store i32 0, i32* %storemerge3.reg2mem
br label LBL_2
LBL_2:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%18 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @gv_5, i64 0, i64 0))
%19 = add nuw nsw i32 %storemerge3.reload, 1
%exitcond = icmp eq i32 %19, 6
store i32 %19, i32* %storemerge3.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%20 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0))
br label LBL_4
LBL_4:
%21 = call i64 @FUNC(i64 %2)
ret i64 %21
uselistorder i64 %5, { 1, 2, 0 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64 %2, { 3, 1, 0, 2, 4, 5, 6, 7 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i8*)* @add_response, { 4, 5, 3, 2, 1, 0 }
uselistorder i64 (i64*, i64, i8*, i64, i64, i64)* @my_snprintf, { 1, 0 }
} | 0 |
BinRealVul | mcf_fec_enable_rx_1538 | mcf_fec_enable_rx | 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 i32, align 4
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %5)
%7 = and i64 %1, 4294967295
%8 = bitcast i32* %sv_0 to i64*
%9 = call i64 @FUNC(i64* nonnull %8, i64 %7)
%10 = load i32, i32* %sv_0, align 4
%11 = urem i32 %10, 2
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
%14 = zext i1 %13 to i32
%15 = add i64 %2, 4
%16 = inttoptr i64 %15 to i32*
store i32 %14, i32* %16, align 4
%17 = icmp eq i1 %13, false
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_2, label LBL_1
LBL_1:
%18 = call i64 @FUNC(i64 %6)
store i64 %18, 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 | t_hash_show_10308 | t_hash_show | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = icmp eq i64* %arg2, null
%4 = zext i1 %3 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_5
LBL_1:
%8 = ptrtoint i64* %arg2 to i64
%9 = ptrtoint i64* %arg1 to i64
%10 = add i64 %8, 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 eq i64 %14, 0
store i64 %9, i64* %rax.0.reg2mem
br i1 %15, label LBL_2, label LBL_5
LBL_2:
%16 = add i64 %12, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 %8, i64 %18, i64 %2, i64 %1)
%20 = add i64 %8, 16
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp eq i64 %22, 0
br i1 %23, label LBL_4, label LBL_3
LBL_3:
%24 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i64 %22, i64 %18, i64 %2, i64 %1)
br label LBL_4
LBL_4:
%25 = call i64 @FUNC(i64 %9, i64 10)
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 %9, { 2, 1, 3, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @seq_printf, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_5, { 2, 0, 1 }
} | 0 |
BinRealVul | others_have_blocked_9509 | others_have_blocked | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp ne i32 %7, 0
%. = zext i1 %8 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 | msPostGISLayerSetTimeFilter_11775 | msPostGISLayerSetTimeFilter | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%storemerge7.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_0 = alloca i8, align 1
%sv_1 = alloca i8, align 1
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
store i32 0, i32* %sv_3, align 4
store i32 0, i32* %sv_2, align 4
store i8 0, i8* %sv_1, align 1
store i8 0, i8* %sv_0, align 1
%0 = icmp ne i64* %arg1, null
%1 = icmp ne i8* %arg2, null
%or.cond.not = icmp eq i1 %0, %1
%2 = icmp eq i8* %arg3, null
%3 = icmp eq i1 %2, false
%or.cond6 = icmp eq i1 %or.cond.not, %3
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond6, label LBL_1, label LBL_24
LBL_1:
%4 = call i8* @strchr(i8* nonnull %arg2, i32 44)
%5 = icmp eq i8* %4, null
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_4, label LBL_2
LBL_2:
%7 = call i8* @strchr(i8* nonnull %arg2, i32 47)
%8 = icmp eq i8* %7, null
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = ptrtoint i8* %arg2 to i64
%11 = ptrtoint i8* %arg3 to i64
%12 = call i64 @FUNC(i64 %11, i64 %10, i8* nonnull %sv_1, i64 512)
store i64 %11, i64* %rdi.0.reg2mem
br label LBL_17
LBL_4:
%13 = ptrtoint i8* %arg2 to i64
%14 = call i64 @FUNC(i64 %13, i64 44, i32* nonnull %sv_3)
%15 = icmp eq i64 %14, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_24, label LBL_5
LBL_5:
%16 = load i32, i32* %sv_3, align 4
%17 = icmp eq i32 %16, 0
%18 = icmp slt i32 %16, 0
%19 = icmp eq i1 %18, false
%20 = icmp eq i1 %17, false
%21 = icmp eq i1 %19, %20
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_6, label LBL_24
LBL_6:
%22 = call i64 @FUNC(i8* nonnull %sv_1, i64* nonnull @gv_0, i64 512)
%23 = load i32, i32* %sv_3, align 4
%24 = icmp eq i32 %23, 0
br i1 %24, label LBL_16, label LBL_7
LBL_7:
%25 = ptrtoint i8* %arg3 to i64
%26 = bitcast i8* %sv_0 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge7.reg2mem
br label LBL_8
LBL_8:
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%.reload = load i64, i64* %.reg2mem
%27 = icmp eq i32 %storemerge7.reload, 0
br i1 %27, label LBL_10, label LBL_9
LBL_9:
%28 = call i64 @FUNC(i8* nonnull %sv_1, i64* bitcast ([5 x i8]* @gv_1 to i64*), i64 512)
br label LBL_10
LBL_10:
%29 = call i64 @FUNC(i8* nonnull %sv_1, i64* nonnull @gv_0, i64 512)
%30 = mul i64 %.reload, 8
%31 = add i64 %30, %14
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = call i64 @FUNC(i64 %33, i64 47, i32* nonnull %sv_2)
%35 = icmp eq i64 %34, 0
%36 = icmp eq i1 %35, false
store i64 0, i64* %rax.0.reg2mem
br i1 %36, label LBL_11, label LBL_24
LBL_11:
%37 = load i32, i32* %sv_2, align 4
%38 = icmp eq i32 %37, 1
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_13, label LBL_12
LBL_12:
%40 = load i64, i64* %32, align 8
%41 = call i64 @FUNC(i64 %25, i64 %40, i8* nonnull %sv_0, i64 512)
%42 = call i64 @FUNC(i8* nonnull %sv_1, i64* nonnull %26, i64 512)
br label LBL_15
LBL_13:
%43 = icmp eq i32 %37, 2
%44 = icmp eq i1 %43, false
store i64 0, i64* %rax.0.reg2mem
br i1 %44, label LBL_24, label LBL_14
LBL_14:
%45 = add i64 %34, 8
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = inttoptr i64 %34 to i64*
%49 = load i64, i64* %48, align 8
%50 = call i64 @FUNC(i64 %25, i64 %49, i64 %47, i8* nonnull %sv_0, i64 512)
%51 = call i64 @FUNC(i8* nonnull %sv_1, i64* nonnull %26, i64 512)
br label LBL_15
LBL_15:
%52 = load i32, i32* %sv_2, align 4
%53 = zext i32 %52 to i64
%54 = call i64 @FUNC(i64 %34, i64 %53)
%55 = call i64 @FUNC(i8* nonnull %sv_1, i64* nonnull @gv_2, i64 512)
%56 = add i32 %storemerge7.reload, 1
%57 = load i32, i32* %sv_3, align 4
%58 = zext i32 %57 to i64
%59 = sext i32 %56 to i64
%60 = icmp slt i64 %59, %58
store i64 %59, i64* %.reg2mem
store i32 %56, i32* %storemerge7.reg2mem
br i1 %60, label LBL_8, label LBL_16
LBL_16:
%61 = call i64 @FUNC(i8* nonnull %sv_1, i64* nonnull @gv_2, i64 512)
%62 = load i32, i32* %sv_3, align 4
%63 = zext i32 %62 to i64
%64 = call i64 @FUNC(i64 %14, i64 %63)
store i64 %14, i64* %rdi.0.reg2mem
br label LBL_17
LBL_17:
%65 = load i8, i8* %sv_1, align 1
%66 = icmp eq i8 %65, 0
%67 = icmp eq i1 %66, false
store i64 0, i64* %rax.0.reg2mem
br i1 %67, label LBL_18, label LBL_24
LBL_18:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%68 = icmp eq i64 %rdi.0.reload, 0
br i1 %68, label LBL_20, label LBL_19
LBL_19:
%69 = inttoptr i64 %rdi.0.reload to i64*
call void @free(i64* %69)
br label LBL_20
LBL_20:
%70 = ptrtoint i8* %arg3 to i64
%71 = call i64 @FUNC(i64 %70)
store i64 %71, i64* %arg1, align 8
%72 = icmp eq i64* %arg1, inttoptr (i64 -8 to i64*)
store i64 1, i64* %rax.0.reg2mem
br i1 %72, label LBL_24, label LBL_21
LBL_21:
%73 = ptrtoint i64* %arg1 to i64
%74 = add i64 %73, 8
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
%77 = icmp eq i32 %76, 2
%78 = icmp eq i1 %77, false
br i1 %78, label LBL_23, label LBL_22
LBL_22:
%79 = add i64 %73, 16
%80 = inttoptr i64 %79 to i64*
%81 = load i64, i64* %80, align 8
%82 = inttoptr i64 %81 to i8*
%83 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %sv_0, i32 512, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_3, i64 0, i64 0), i8* %82, i8* nonnull %sv_1)
%84 = call i64 @FUNC(i64 %74, i8* nonnull %sv_0)
store i64 1, i64* %rax.0.reg2mem
br label LBL_24
LBL_23:
%85 = call i64 @FUNC(i64 %74)
%86 = call i64 @FUNC(i64 %74, i8* nonnull %sv_1)
store i64 1, i64* %rax.0.reg2mem
br label LBL_24
LBL_24:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %74, { 1, 2, 0, 3 }
uselistorder i64 %73, { 1, 0 }
uselistorder i64 %34, { 0, 2, 1, 3 }
uselistorder i32 %16, { 1, 0 }
uselistorder i64 %14, { 0, 2, 1, 3 }
uselistorder i32* %sv_3, { 2, 3, 0, 4, 1, 5 }
uselistorder i32* %sv_2, { 1, 2, 0, 3 }
uselistorder i8* %sv_1, { 0, 1, 10, 2, 3, 4, 5, 6, 7, 8, 9, 11 }
uselistorder i8* %sv_0, { 0, 1, 2, 4, 3, 5 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge7.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 6, 1, 2, 8, 7, 9 }
uselistorder i64 (i64, i8*)* @loadExpressionString, { 1, 0 }
uselistorder i64 1, { 2, 1, 0, 4, 3 }
uselistorder i64* @gv_2, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 8, { 3, 4, 0, 5, 6, 1, 2 }
uselistorder i64 (i8*, i64*, i64)* @strlcat, { 1, 6, 5, 4, 3, 2, 0 }
uselistorder i64 (i64, i64, i32*)* @msStringSplit, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64)* @createPostgresTimeCompareSimple, { 1, 0 }
uselistorder i64 512, { 7, 2, 1, 0, 4, 3, 5, 6, 8, 9 }
uselistorder i8* (i8*, i32)* @strchr, { 1, 0 }
uselistorder i1 false, { 3, 4, 5, 6, 7, 8, 2, 9, 10, 1, 11, 12, 0 }
uselistorder i8* null, { 3, 4, 1, 2, 5, 6, 0 }
uselistorder i8 0, { 2, 0, 1, 3 }
uselistorder i32 0, { 8, 0, 4, 9, 10, 6, 7, 3, 5, 1, 2 }
uselistorder i8* %arg3, { 2, 3, 1, 0 }
uselistorder i8* %arg2, { 2, 0, 1, 4, 3 }
uselistorder i64* %arg1, { 3, 0, 1, 2 }
uselistorder label LBL_24, { 4, 3, 2, 5, 0, 1, 7, 6, 8 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | find_port_by_vtermno_8580 | find_port_by_vtermno | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.reg2mem = alloca i64
%storemerge45.reg2mem = alloca i32*
%1 = load i64, i64* %0
%2 = call i64 @FUNC(i64* nonnull @gv_0, i64 %1)
%3 = trunc i64 %arg1 to i32
%4 = load i32, i32* bitcast (i32** @gv_1 to i32*), align 8
%5 = icmp eq i32 %4, %3
%6 = icmp eq i1 %5, false
store i32* bitcast (i32** @gv_1 to i32*), i32** %storemerge45.reg2mem
store i64 ptrtoint (i32** @gv_1 to i64), i64* %.reg2mem
br i1 %6, label LBL_2, label LBL_3
LBL_1:
%7 = inttoptr i64 %14 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, %3
%10 = icmp eq i1 %9, false
store i32* %7, i32** %storemerge45.reg2mem
store i64 %14, i64* %.reg2mem
br i1 %10, label LBL_2, label LBL_3
LBL_2:
%storemerge45.reload = load i32*, i32** %storemerge45.reg2mem
%11 = ptrtoint i32* %storemerge45.reload to i64
%12 = add i64 %11, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
store i64 0, i64* %.reg2mem
br i1 %16, label LBL_1, label LBL_3
LBL_3:
%.reload = load i64, i64* %.reg2mem
%17 = call i64 @FUNC(i64* nonnull @gv_0, i64 %1)
ret i64 %.reload
uselistorder i64 %14, { 1, 2, 0 }
uselistorder i32 %3, { 1, 0 }
uselistorder i32** %storemerge45.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 0, 2, 1, 3 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | qemu_rbd_close_3576 | qemu_rbd_close | 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 = call i64 @FUNC(i64 %4)
%6 = add i64 %0, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8)
%10 = add i64 %0, 24
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12)
ret i64 %13
} | 0 |
BinRealVul | vmdaudio_decode_init_17135 | vmdaudio_decode_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv17.reg2mem = alloca i64
%indvars.iv20.reg2mem = alloca i64
%indvars.iv23.reg2mem = alloca i64
%indvars.iv26.reg2mem = alloca i64
%indvars.iv29.reg2mem = alloca i64
%indvars.iv32.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%.pre-phi38.reg2mem = alloca i32
%indvars.iv35.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 16
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = trunc i64 %1 to i32
%7 = inttoptr i64 %5 to i32*
store i32 %6, i32* %7, align 4
%8 = add i64 %2, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %5, 4
%12 = inttoptr i64 %11 to i32*
store i32 %10, i32* %12, align 4
%13 = add i64 %2, 8
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = add i64 %5, 8
%17 = inttoptr i64 %16 to i32*
store i32 %15, i32* %17, align 4
%18 = zext i32 %15 to i64
%19 = load i32, i32* %12, align 4
%20 = zext i32 %19 to i64
%21 = load i32, i32* %7, align 4
%22 = zext i32 %21 to i64
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_0, i64 0, i64 0), i64 %22, i64 %20, i64 %18)
%24 = add i64 %5, 12
%25 = add i64 %5, 76
store i64 0, i64* %indvars.iv35.reg2mem
br label LBL_1
LBL_1:
%indvars.iv35.reload = load i64, i64* %indvars.iv35.reg2mem
%26 = icmp ugt i64 %indvars.iv35.reload, 3
br i1 %26, label LBL_2, label LBL_3
LBL_2:
%27 = add nsw i64 %indvars.iv35.reload, -1
%28 = mul i64 %27, 4
%29 = add i64 %28, %24
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = trunc i64 %27 to i32
%33 = add i32 %31, %32
%34 = mul i64 %indvars.iv35.reload, 4
%35 = add i64 %34, %24
%36 = inttoptr i64 %35 to i32*
store i32 %33, i32* %36, align 4
%.pre = trunc i64 %indvars.iv35.reload to i32
store i32 %.pre, i32* %.pre-phi38.reg2mem
store i64 %34, i64* %.pre-phi.reg2mem
br label LBL_9
LBL_3:
%37 = mul i64 %indvars.iv35.reload, 4
%38 = add i64 %37, %24
%39 = inttoptr i64 %38 to i32*
%40 = trunc i64 %indvars.iv35.reload to i32
store i32 %40, i32* %39, align 4
%41 = icmp eq i64 %indvars.iv35.reload, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_5, label LBL_4
LBL_4:
%43 = add i64 %37, %25
%44 = inttoptr i64 %43 to i32*
store i32 0, i32* %44, align 4
br label LBL_10
LBL_5:
%45 = icmp eq i64 %indvars.iv35.reload, 1
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_7, label LBL_6
LBL_6:
%47 = add i64 %37, %25
%48 = inttoptr i64 %47 to i32*
store i32 4, i32* %48, align 4
br label LBL_10
LBL_7:
%49 = icmp eq i64 %indvars.iv35.reload, 2
%50 = icmp eq i1 %49, false
store i32 %40, i32* %.pre-phi38.reg2mem
store i64 %37, i64* %.pre-phi.reg2mem
br i1 %50, label LBL_9, label LBL_8
LBL_8:
%51 = add i64 %37, %25
%52 = inttoptr i64 %51 to i32*
store i32 16, i32* %52, align 4
br label LBL_10
LBL_9:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%.pre-phi38.reload = load i32, i32* %.pre-phi38.reg2mem
%53 = add i32 %.pre-phi38.reload, 4
%54 = shl i32 1, %53
%55 = add i64 %.pre-phi.reload, %25
%56 = inttoptr i64 %55 to i32*
store i32 %54, i32* %56, align 4
br label LBL_10
LBL_10:
%indvars.iv.next36 = add nuw nsw i64 %indvars.iv35.reload, 1
%exitcond37 = icmp eq i64 %indvars.iv.next36, 8
store i64 %indvars.iv.next36, i64* %indvars.iv35.reg2mem
br i1 %exitcond37, label LBL_11, label LBL_1
LBL_11:
%57 = add i64 %5, 140
%58 = inttoptr i64 %57 to i32*
store i32 0, i32* %58, align 4
%59 = add i64 %5, 144
%60 = inttoptr i64 %59 to i32*
store i32 8, i32* %60, align 4
store i64 2, i64* %indvars.iv32.reg2mem
br label LBL_12
LBL_12:
%indvars.iv32.reload = load i64, i64* %indvars.iv32.reg2mem
%61 = mul i64 %indvars.iv32.reload, 4
%62 = add i64 %61, %57
%63 = inttoptr i64 %62 to i32*
%indvars.iv32.tr = trunc i64 %indvars.iv32.reload to i32
%64 = mul i32 %indvars.iv32.tr, 16
%65 = add i32 %64, -16
store i32 %65, i32* %63, align 4
%indvars.iv.next33 = add nuw nsw i64 %indvars.iv32.reload, 1
%exitcond34 = icmp eq i64 %indvars.iv.next33, 33
store i64 %indvars.iv.next33, i64* %indvars.iv32.reg2mem
store i64 33, i64* %indvars.iv29.reg2mem
br i1 %exitcond34, label LBL_13, label LBL_12
LBL_13:
%indvars.iv29.reload = load i64, i64* %indvars.iv29.reg2mem
%66 = mul i64 %indvars.iv29.reload, 4
%67 = add i64 %66, %57
%68 = inttoptr i64 %67 to i32*
%indvars.iv29.tr = trunc i64 %indvars.iv29.reload to i32
%69 = mul i32 %indvars.iv29.tr, 8
%70 = add i32 %69, 248
store i32 %70, i32* %68, align 4
%indvars.iv.next30 = add nuw nsw i64 %indvars.iv29.reload, 1
%exitcond31 = icmp eq i64 %indvars.iv.next30, 97
store i64 %indvars.iv.next30, i64* %indvars.iv29.reg2mem
store i64 97, i64* %indvars.iv26.reg2mem
br i1 %exitcond31, label LBL_14, label LBL_13
LBL_14:
%indvars.iv26.reload = load i64, i64* %indvars.iv26.reg2mem
%71 = mul i64 %indvars.iv26.reload, 4
%72 = add i64 %71, %57
%73 = inttoptr i64 %72 to i32*
%indvars.iv26.tr = trunc i64 %indvars.iv26.reload to i32
%74 = mul i32 %indvars.iv26.tr, 64
%75 = add i32 %74, -5184
store i32 %75, i32* %73, align 4
%indvars.iv.next27 = add nuw nsw i64 %indvars.iv26.reload, 1
%exitcond28 = icmp eq i64 %indvars.iv.next27, 113
store i64 %indvars.iv.next27, i64* %indvars.iv26.reg2mem
store i64 113, i64* %indvars.iv23.reg2mem
br i1 %exitcond28, label LBL_15, label LBL_14
LBL_15:
%indvars.iv23.reload = load i64, i64* %indvars.iv23.reg2mem
%76 = mul i64 %indvars.iv23.reload, 4
%77 = add i64 %76, %57
%78 = inttoptr i64 %77 to i32*
%indvars.iv23.tr = trunc i64 %indvars.iv23.reload to i32
%79 = mul i32 %indvars.iv23.tr, 256
%80 = add i32 %79, -26880
store i32 %80, i32* %78, align 4
%indvars.iv.next24 = add nuw nsw i64 %indvars.iv23.reload, 1
%exitcond25 = icmp eq i64 %indvars.iv.next24, 121
store i64 %indvars.iv.next24, i64* %indvars.iv23.reg2mem
store i64 121, i64* %indvars.iv20.reg2mem
br i1 %exitcond25, label LBL_16, label LBL_15
LBL_16:
%indvars.iv20.reload = load i64, i64* %indvars.iv20.reg2mem
%81 = mul i64 %indvars.iv20.reload, 4
%82 = add i64 %81, %57
%83 = inttoptr i64 %82 to i32*
%indvars.iv20.tr = trunc i64 %indvars.iv20.reload to i32
%84 = mul i32 %indvars.iv20.tr, 1024
%85 = add i32 %84, -119808
store i32 %85, i32* %83, align 4
%indvars.iv.next21 = add nuw nsw i64 %indvars.iv20.reload, 1
%exitcond22 = icmp eq i64 %indvars.iv.next21, 126
store i64 %indvars.iv.next21, i64* %indvars.iv20.reg2mem
br i1 %exitcond22, label LBL_17, label LBL_16
LBL_17:
%86 = add i64 %5, 644
%87 = inttoptr i64 %86 to i32*
store i32 12288, i32* %87, align 4
%88 = add i64 %5, 648
%89 = inttoptr i64 %88 to i32*
store i32 16384, i32* %89, align 4
store i64 0, i64* %indvars.iv17.reg2mem
br label LBL_18
LBL_18:
%indvars.iv17.reload = load i64, i64* %indvars.iv17.reg2mem
%90 = mul i64 %indvars.iv17.reload, 4
%91 = add i64 %90, %24
%92 = inttoptr i64 %91 to i32*
%93 = load i32, i32* %92, align 4
%94 = sub i32 0, %93
%95 = add nuw nsw i64 %90, 32
%96 = add i64 %95, %24
%97 = inttoptr i64 %96 to i32*
store i32 %94, i32* %97, align 4
%98 = add i64 %90, %25
%99 = inttoptr i64 %98 to i32*
%100 = load i32, i32* %99, align 4
%101 = sub i32 0, %100
%102 = add i64 %95, %25
%103 = inttoptr i64 %102 to i32*
store i32 %101, i32* %103, align 4
%indvars.iv.next18 = add nuw nsw i64 %indvars.iv17.reload, 1
%exitcond19 = icmp eq i64 %indvars.iv.next18, 8
store i64 %indvars.iv.next18, i64* %indvars.iv17.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br i1 %exitcond19, label LBL_19, label LBL_18
LBL_19:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%104 = mul i64 %indvars.iv.reload, 4
%105 = add i64 %104, %57
%106 = inttoptr i64 %105 to i32*
%107 = load i32, i32* %106, align 4
%108 = sub i32 0, %107
%109 = add i64 %105, 512
%110 = inttoptr i64 %109 to i32*
store i32 %108, i32* %110, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 128
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_20, label LBL_19
LBL_20:
ret i64 0
uselistorder i64 %90, { 2, 0, 1 }
uselistorder i64 %37, { 4, 0, 3, 2, 1 }
uselistorder i64 %27, { 1, 0 }
uselistorder i64 %indvars.iv35.reload, { 0, 3, 2, 1, 4, 9, 7, 8, 5, 6 }
uselistorder i64 %24, { 0, 1, 4, 2, 3 }
uselistorder i64 %5, { 0, 1, 2, 3, 5, 4, 6, 7, 8 }
uselistorder i64* %indvars.iv35.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv32.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv29.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv26.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv23.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv20.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv17.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64 1, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 0, { 0, 1, 2, 4, 3 }
uselistorder i64 8, { 1, 0, 2, 3 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | read_exif_orientation_tag_7043 | read_exif_orientation_tag | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%1 = trunc i64 %arg2 to i32
%2 = bitcast i32* %sv_0 to i64*
%3 = call i64 @FUNC(i64 %0, i32 %1, i64 274, i64* nonnull %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 1, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_4
LBL_1:
%7 = load i32, i32* %sv_0, align 4
%8 = add i64 %3, 2
%9 = urem i32 %7, 256
%10 = zext i32 %9 to i64
%11 = and i64 %8, 4294967295
%12 = call i64 @FUNC(i64 %0, i32 %1, i64 %11, i64 %10)
%13 = trunc i64 %12 to i16
%14 = load i32, i32* %sv_0, align 4
%15 = add i64 %3, 4
%16 = urem i32 %14, 256
%17 = zext i32 %16 to i64
%18 = and i64 %15, 4294967295
%19 = call i64 @FUNC(i64 %0, i32 %1, i64 %18, i64 %17)
%20 = icmp eq i16 %13, 3
%21 = icmp eq i1 %20, false
store i64 1, i64* %rax.0.reg2mem
br i1 %21, label LBL_4, label LBL_2
LBL_2:
%22 = trunc i64 %19 to i32
%23 = icmp eq i32 %22, 1
%24 = icmp eq i1 %23, false
store i64 1, i64* %rax.0.reg2mem
br i1 %24, label LBL_4, label LBL_3
LBL_3:
%25 = load i32, i32* %sv_0, align 4
%26 = add i64 %3, 8
%27 = urem i32 %25, 256
%28 = zext i32 %27 to i64
%29 = and i64 %26, 4294967295
%30 = call i64 @FUNC(i64 %0, i32 %1, i64 %29, i64 %28)
%31 = urem i64 %30, 65536
store i64 %31, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %1, { 2, 1, 0, 3 }
uselistorder i32* %sv_0, { 2, 1, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3 }
uselistorder i64 (i64, i32, i64, i64)* @read16, { 1, 0 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder label LBL_4, { 3, 1, 0, 2 }
} | 0 |
BinRealVul | mk_sched_remove_client_18100 | mk_sched_remove_client | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = call i64 @FUNC(i64 %0, i64 %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 %1)
%6 = call i64 @FUNC(i64 %1)
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_1, i64 0, i64 0), i64 %1)
%9 = call i64 @FUNC(i64 %1)
br label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %1)
%11 = add i64 %0, 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i32 %13, 1
store i32 %14, i32* %12, align 4
%15 = add i64 %0, 12
%16 = call i64 @FUNC(i64 %3, i64 %15)
%17 = call i64 @FUNC(i64 %1)
%18 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0))
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%19 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_3, i64 0, i64 0), i64 %1)
%20 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_4, i64 0, i64 0))
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 8, 10, 5, 4, 6, 3, 2, 7, 9, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i8*)* @MK_LT_SCHED, { 1, 0 }
uselistorder i64 (i8*, i64)* @MK_TRACE, { 1, 0 }
} | 1 |
BinRealVul | cli_check_17610 | cli_check | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %8)
ret i64 %9
LBL_2:
%10 = call i64 @FUNC(i64 %8)
%11 = load i64, i64* %7, align 8
%12 = call i64 @FUNC(i64 %11)
%13 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%14 = inttoptr i64 %12 to i8*
%15 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %13, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0), i8* %14)
call void @exit(i32 2)
unreachable
uselistorder i64 %8, { 1, 0 }
} | 1 |
BinRealVul | __glXDisp_ChangeDrawableAttributes_8481 | __glXDisp_ChangeDrawableAttributes | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = add i64 %arg2, 8
%4 = add i64 %arg2, 4
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = trunc i64 %2 to i32
%8 = and i64 %1, 4294967295
%9 = call i64 @FUNC(i64 %8, i32 %7, i32 %6, i64 %3)
ret i64 %9
uselistorder i64* %0, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
} | 0 |
BinRealVul | nuv_header_3700 | nuv_header | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = inttoptr i64 %3 to i32*
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7, i64* nonnull %sv_4, i64 12)
%9 = call i32 @memcmp(i64* nonnull %sv_4, i64* bitcast ([12 x i8]* @gv_0 to i64*), i32 12)
%10 = call i64 @FUNC(i64 %7, i64* nonnull %sv_3, i64 5)
%11 = call i64 @FUNC(i64 %7, i64 3)
%12 = call i64 @FUNC(i64 %7)
%13 = call i64 @FUNC(i64 %7)
%14 = call i64 @FUNC(i64 %7)
%15 = call i64 @FUNC(i64 %7)
%16 = call i64 @FUNC(i64 %7)
%17 = call i64 @FUNC(i64 %7, i64 3)
%18 = call i64 @FUNC(i64 %7)
%19 = call i128 @FUNC(i64 %18)
%20 = call i64 @FUNC(i128 %19)
%21 = call i64 @FUNC(i64 %7)
%22 = call i128 @FUNC(i64 %21)
%23 = call i64 @FUNC(i128 %22)
%24 = call i64 @FUNC(i64 %7)
%25 = trunc i64 %24 to i32
%26 = call i64 @FUNC(i64 %7)
%27 = call i64 @FUNC(i64 %7)
%28 = call i64 @FUNC(i64 %7)
%29 = icmp eq i32 %25, 0
br i1 %29, label LBL_3, label LBL_1
LBL_1:
store i32 0, i32* %4, align 4
%30 = call i64 @FUNC(i64 %0, i64 0)
%31 = icmp eq i64 %30, 0
%32 = icmp eq i1 %31, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %32, label LBL_2, label LBL_12
LBL_2:
%33 = trunc i64 %12 to i32
%34 = trunc i64 %13 to i32
%35 = inttoptr i64 %30 to i64*
%36 = load i64, i64* %35, align 8
%37 = inttoptr i64 %36 to i32*
store i32 0, i32* %37, align 4
%38 = load i64, i64* %35, align 8
%39 = add i64 %38, 4
%40 = inttoptr i64 %39 to i32*
store i32 0, i32* %40, align 4
%41 = load i64, i64* %35, align 8
%42 = add i64 %41, 8
%43 = inttoptr i64 %42 to i32*
store i32 %33, i32* %43, align 4
%44 = load i64, i64* %35, align 8
%45 = add i64 %44, 12
%46 = inttoptr i64 %45 to i32*
store i32 %34, i32* %46, align 4
%47 = load i64, i64* %35, align 8
%48 = add i64 %47, 16
%49 = inttoptr i64 %48 to i32*
store i32 10, i32* %49, align 4
%50 = load i64, i64* %35, align 8
%51 = call i128 @__asm_movq.1(i64 %20)
%52 = call i64 @FUNC(i64 10000)
%53 = trunc i64 %52 to i32
%54 = add i64 %50, 36
%55 = inttoptr i64 %54 to i32*
store i32 %53, i32* %55, align 4
%56 = call i128 @__asm_movq.1(i64 %23)
%57 = call i64 @FUNC(i64 60000)
%58 = trunc i64 %57 to i32
%59 = add i64 %30, 8
%60 = inttoptr i64 %59 to i32*
store i32 %58, i32* %60, align 4
%61 = call i64 @FUNC(i64 %30, i64 32, i64 1, i64 1000)
store i32 1, i32* %sv_2.0.reg2mem
store i64 %30, i64* %sv_1.0.reg2mem
br label LBL_4
LBL_3:
store i32 -1, i32* %4, align 4
store i32 0, i32* %sv_2.0.reg2mem
store i64 0, i64* %sv_1.0.reg2mem
br label LBL_4
LBL_4:
%62 = trunc i64 %26 to i32
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%63 = icmp eq i32 %62, 0
%64 = add i64 %3, 4
%65 = inttoptr i64 %64 to i32*
br i1 %63, label LBL_7, label LBL_5
LBL_5:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
store i32 %sv_2.0.reload, i32* %65, align 4
%66 = zext i32 %sv_2.0.reload to i64
%67 = call i64 @FUNC(i64 %0, i64 %66)
%68 = icmp eq i64 %67, 0
%69 = icmp eq i1 %68, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %69, label LBL_6, label LBL_12
LBL_6:
%70 = inttoptr i64 %67 to i64*
%71 = load i64, i64* %70, align 8
%72 = inttoptr i64 %71 to i32*
store i32 1, i32* %72, align 4
%73 = load i64, i64* %70, align 8
%74 = add i64 %73, 4
%75 = inttoptr i64 %74 to i32*
store i32 1, i32* %75, align 4
%76 = load i64, i64* %70, align 8
%77 = add i64 %76, 20
%78 = inttoptr i64 %77 to i32*
store i32 2, i32* %78, align 4
%79 = load i64, i64* %70, align 8
%80 = add i64 %79, 24
%81 = inttoptr i64 %80 to i32*
store i32 44100, i32* %81, align 4
%82 = load i64, i64* %70, align 8
%83 = add i64 %82, 28
%84 = inttoptr i64 %83 to i32*
store i32 1411200, i32* %84, align 4
%85 = load i64, i64* %70, align 8
%86 = add i64 %85, 32
%87 = inttoptr i64 %86 to i32*
store i32 4, i32* %87, align 4
%88 = load i64, i64* %70, align 8
%89 = add i64 %88, 16
%90 = inttoptr i64 %89 to i32*
store i32 16, i32* %90, align 4
%91 = call i64 @FUNC(i64 %67, i64 32, i64 1, i64 1000)
store i64 %67, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_7:
store i32 -1, i32* %65, align 4
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%92 = icmp eq i32 %9, 0
%93 = zext i1 %92 to i32
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%94 = call i64 @FUNC(i64 %7, i64 %sv_1.0.reload, i64 %sv_0.0.reload, i32 %93)
%95 = icmp eq i64 %sv_1.0.reload, 0
br i1 %95, label LBL_10, label LBL_9
LBL_9:
%96 = inttoptr i64 %sv_1.0.reload to i64*
%97 = load i64, i64* %96, align 8
%98 = add i64 %97, 4
%99 = inttoptr i64 %98 to i32*
%100 = load i32, i32* %99, align 4
%101 = icmp eq i32 %100, 0
%102 = icmp eq i1 %101, false
store i32 1, i32* %storemerge.reg2mem
br i1 %102, label LBL_10, label LBL_11
LBL_10:
store i32 0, i32* %storemerge.reg2mem
br label LBL_11
LBL_11:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%103 = add i64 %3, 8
%104 = inttoptr i64 %103 to i32*
store i32 %storemerge.reload, i32* %104, 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 i32 %sv_2.0.reload, { 1, 0 }
uselistorder i32* %65, { 1, 0 }
uselistorder i64 %sv_1.0.reload, { 2, 0, 1 }
uselistorder i32* %4, { 1, 0 }
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i32* %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 16, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @av_set_pts_info, { 1, 0 }
uselistorder i64 32, { 0, 2, 1 }
uselistorder i64 (i64)* @av_d2q, { 1, 0 }
uselistorder i64 4, { 0, 2, 1, 3 }
uselistorder i64 (i64, i64)* @av_new_stream, { 1, 0 }
uselistorder i128 (i64)* @av_int2dbl, { 1, 0 }
uselistorder i64 (i64)* @get_le64, { 1, 0 }
uselistorder i64 (i64)* @get_le32, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @url_fskip, { 1, 0 }
uselistorder i64 (i64, i64*, i64)* @get_buffer, { 1, 0 }
uselistorder i64 12, { 1, 0 }
uselistorder label LBL_12, { 2, 0, 1 }
uselistorder label LBL_11, { 1, 0 }
} | 0 |
BinRealVul | check_slab_10076 | check_slab | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = call i64 @FUNC()
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
call void @exit(i32 1)
unreachable
LBL_2:
%8 = ptrtoint i64* %arg1 to i64
%9 = ptrtoint i32* %arg2 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %8, i64 %9, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %9, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_4:
%15 = trunc i64 %3 to i32
%16 = call i64 @FUNC(i64 %9)
%17 = trunc i64 %16 to i32
%18 = urem i32 %17, 32
%19 = shl i32 4096, %18
%storemerge = sext i32 %19 to i64
%20 = add i64 %8, 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = udiv i64 %storemerge, %22
%24 = trunc i64 %23 to i32
%25 = icmp ugt i32 %15, %24
br i1 %25, label LBL_5, label LBL_6
LBL_5:
%26 = and i64 %23, 4294967295
%27 = and i64 %3, 4294967295
%28 = call i64 @FUNC(i64 %8, i64 %9, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_1, i64 0, i64 0), i64 %9, i64 %27, i64 %26)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%29 = add i64 %9, 4
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = icmp ugt i32 %31, %15
br i1 %32, label LBL_7, label LBL_8
LBL_7:
%33 = and i64 %3, 4294967295
%34 = zext i32 %31 to i64
%35 = call i64 @FUNC(i64 %8, i64 %9, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0), i64 %33, i64 %34, i64 %33)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%36 = call i64 @FUNC(i64 %8, i64 %9)
store i64 1, 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 %33, { 1, 0 }
uselistorder i32 %15, { 1, 0 }
uselistorder i64 %9, { 1, 2, 3, 7, 0, 4, 5, 6, 8 }
uselistorder i64 %8, { 1, 2, 3, 4, 0 }
uselistorder i64 %3, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @slab_err, { 2, 1, 0 }
} | 0 |
BinRealVul | imapd_check_9408 | imapd_check | 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 = load i64, i64* %0
%3 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%4 = load i64, i64* @gv_0, align 8
%5 = icmp eq i64 %4, 0
%6 = ptrtoint i64* %arg1 to i64
%7 = icmp eq i64 %4, %6
%or.cond = or i1 %5, %7
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64* nonnull %sv_0, i64 128)
%9 = load i64, i64* @gv_0, align 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_0, i64 %3, i64 %2, i64 %1)
%13 = load i64, i64* @gv_0, align 8
%14 = call i64 @FUNC(i64 %13, i64* nonnull %sv_0, i64 0)
store i64 %14, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%15 = and i64 %arg2, 4294967295
%16 = load i64, i64* @gv_2, align 8
%17 = call i64 @FUNC(i64 %16, i64 %15, i64 0)
store i64 %17, 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* %0, { 2, 1, 0 }
} | 0 |
BinRealVul | av_malloc_16205 | av_malloc | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = icmp ult i64 %arg1, 2147483616
store i64 0, i64* %storemerge.reg2mem
br i1 %0, label LBL_1, label LBL_2
LBL_1:
%1 = trunc i64 %arg1 to i32
%2 = call i64* @malloc(i32 %1)
%3 = ptrtoint i64* %2 to i64
store i64 %3, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | i2o_ECPublicKey_9068 | i2o_ECPublicKey | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 1, i64 2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_2:
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 16
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = add i64 %3, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %3, i64 %9, i32 %6, i64 0, i64 0, i64 0)
%11 = icmp ne i64* %arg2, null
%12 = icmp eq i64 %10, 0
%13 = icmp eq i1 %12, false
%or.cond = icmp eq i1 %11, %13
store i64 %10, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_3, label LBL_8
LBL_3:
%14 = icmp eq i64 %9, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = call i64 @FUNC(i64 %10)
store i64 %16, i64* %arg2, align 8
%17 = call i64 @FUNC(i64 1, i64 3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%18 = load i32, i32* %5, align 4
%19 = load i64, i64* %8, align 8
%20 = call i64 @FUNC(i64 %3, i64 %19, i32 %18, i64 %9, i64 %10, i64 0)
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_7, label LBL_6
LBL_6:
%23 = call i64 @FUNC(i64 1, i64 4)
%24 = call i64 @FUNC(i64 4)
store i64 0, i64* %arg2, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%25 = add i64 %19, %10
store i64 %25, i64* %arg2, align 8
store i64 %10, 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 %10, { 0, 2, 4, 5, 1, 3 }
uselistorder i64 %3, { 0, 1, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 5, 4, 2, 3 }
uselistorder i64 (i64, i64, i32, i64, i64, i64)* @EC_POINT_point2oct, { 1, 0 }
uselistorder i64 (i64, i64)* @ECerr, { 2, 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_8, { 0, 2, 3, 1, 4 }
} | 0 |
BinRealVul | MWrapChar_8938 | MWrapChar | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %arg3 to i32
%sext = mul i64 %arg3, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = trunc i64 %arg5 to i32
%7 = and i64 %arg3, 4294967295
%8 = call i64 @FUNC(i64 %3, i64 %7, i64 %2)
%9 = add i64 %3, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = call i64 @FUNC(i64* nonnull @gv_0, i64 %3, i32 %11)
%13 = icmp eq i32 %4, %6
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_2, label LBL_1
LBL_1:
%15 = trunc i64 %arg4 to i32
%16 = and i64 %1, 4294967295
%17 = call i64 @FUNC(i64 %3, i64 1, i32 %15, i32 %6, i64 %16)
store i64 %5, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_2:
%18 = add i64 %3, 12
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i32 %20, -1
%22 = zext i32 %21 to i64
%23 = icmp slt i64 %5, %22
store i64 %5, i64* %sv_0.0.reg2mem
br i1 %23, label LBL_3, label LBL_4
LBL_3:
%sext9 = add i64 %sext, 4294967296
%24 = ashr exact i64 %sext9, 32
store i64 %24, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%25 = trunc i64 %arg6 to i32
%26 = icmp eq i32 %25, 0
%27 = and i64 %sv_0.0.reload, 4294967295
br i1 %26, label LBL_6, label LBL_5
LBL_5:
%28 = call i64 @FUNC(i64 %3, i64 %2, i64 0, i64 %27)
store i64 %28, i64* %storemerge.reg2mem
br label LBL_7
LBL_6:
%29 = call i64 @FUNC(i64 %3, i64 %2, i64 0, i64 %27)
store i64 %29, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %27, { 1, 0 }
uselistorder i64 %5, { 1, 2, 0 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %3, { 1, 2, 3, 0, 4, 5, 6 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 4294967295, { 1, 0, 2 }
uselistorder i64 4294967296, { 1, 0 }
uselistorder i64 %arg3, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 0 |
BinRealVul | pi_next_rpcl_7514 | pi_next_rpcl | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge9.reg2mem = alloca i64
%.reg2mem52 = alloca i32
%.reg2mem50 = alloca i32
%.reg2mem48 = alloca i32
%.pre-phi22.reg2mem = alloca i64
%.reg2mem46 = alloca i32
%.pre-phi30.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%.reg2mem44 = alloca i32
%.pre-phi28.reg2mem = alloca i64
%.reg2mem42 = alloca i32
%.reg2mem40 = alloca i32
%storemerge12.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i64
%storemerge1120.reg2mem = alloca i32
%.reg2mem38 = alloca i32
%.reg2mem36 = alloca i64
%storemerge1021.reg2mem = alloca i32
%.reg2mem34 = alloca i64
%.reg2mem = alloca i32
%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_0.LBL_34_crit_edge, label LBL_2
LBL_1:
%.pre27 = add i64 %2, 32
%.phi.trans.insert = inttoptr i64 %.pre27 to i32*
%.pre33 = load i32, i32* %.phi.trans.insert, align 4
store i32 %.pre33, i32* %.reg2mem42
store i64 %.pre27, i64* %.pre-phi28.reg2mem
br label LBL_34
LBL_2:
%5 = bitcast i64* %arg1 to i32*
store i32 0, i32* %5, align 4
%6 = add i64 %2, 4
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %7, align 4
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = add i64 %2, 104
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_15, label LBL_3
LBL_3:
%14 = add i64 %2, 112
%15 = inttoptr i64 %14 to i64*
store i32 %12, i32* %.reg2mem
store i64 0, i64* %.reg2mem34
store i32 0, i32* %storemerge1021.reg2mem
br label LBL_4
LBL_4:
%storemerge1021.reload = load i32, i32* %storemerge1021.reg2mem
%.reload35 = load i64, i64* %.reg2mem34
%.reload = load i32, i32* %.reg2mem
%16 = load i64, i64* %15, align 8
%17 = mul nsw i64 %.reload35, 24
%18 = add i64 %16, %17
%19 = add i64 %18, 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, 0
store i32 %.reload, i32* %.reg2mem40
br i1 %22, label LBL_14, label LBL_5
LBL_5:
%23 = inttoptr i64 %18 to i32*
%24 = add i64 %18, 16
%25 = inttoptr i64 %24 to i64*
%26 = add i64 %18, 4
%27 = inttoptr i64 %26 to i32*
store i64 0, i64* %.reg2mem36
store i32 %21, i32* %.reg2mem38
store i32 0, i32* %storemerge1120.reg2mem
br label LBL_6
LBL_6:
%storemerge1120.reload = load i32, i32* %storemerge1120.reg2mem
%.reload39 = load i32, i32* %.reg2mem38
%.reload37 = load i64, i64* %.reg2mem36
%28 = load i64, i64* %25, align 8
%29 = mul i64 %.reload37, 16
%30 = add i64 %28, %29
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %23, align 4
%33 = load i32, i32* %31, align 4
%34 = xor i32 %storemerge1120.reload, 31
%35 = add i32 %34, %.reload39
%36 = add i32 %33, %35
%37 = urem i32 %36, 32
%38 = shl i32 %32, %37
%39 = load i32, i32* %27, align 4
%40 = add i64 %30, 4
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = load i32, i32* %7, align 4
%44 = icmp eq i32 %43, 0
br i1 %44, label LBL_8, label LBL_7
LBL_7:
%45 = sext i32 %38 to i64
%46 = sext i32 %43 to i64
%47 = call i64 @FUNC(i64 %46, i64 %45)
store i64 %47, i64* %storemerge13.reg2mem
br label LBL_9
LBL_8:
%48 = zext i32 %38 to i64
store i64 %48, i64* %storemerge13.reg2mem
br label LBL_9
LBL_9:
%49 = add i32 %42, %35
%50 = urem i32 %49, 32
%51 = shl i32 %39, %50
%storemerge13.reload = load i64, i64* %storemerge13.reg2mem
%52 = trunc i64 %storemerge13.reload to i32
store i32 %52, i32* %7, align 4
%53 = load i32, i32* %9, align 4
%54 = icmp eq i32 %53, 0
br i1 %54, label LBL_11, label LBL_10
LBL_10:
%55 = sext i32 %51 to i64
%56 = sext i32 %53 to i64
%57 = call i64 @FUNC(i64 %56, i64 %55)
store i64 %57, i64* %storemerge12.reg2mem
br label LBL_12
LBL_11:
%58 = zext i32 %51 to i64
store i64 %58, i64* %storemerge12.reg2mem
br label LBL_12
LBL_12:
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%59 = trunc i64 %storemerge12.reload to i32
store i32 %59, i32* %9, align 4
%60 = add i32 %storemerge1120.reload, 1
%61 = load i32, i32* %20, align 4
%62 = zext i32 %61 to i64
%63 = sext i32 %60 to i64
%64 = icmp slt i64 %63, %62
store i64 %63, i64* %.reg2mem36
store i32 %61, i32* %.reg2mem38
store i32 %60, i32* %storemerge1120.reg2mem
br i1 %64, label LBL_6, label LBL_13
LBL_13:
%.pre = load i32, i32* %11, align 4
store i32 %.pre, i32* %.reg2mem40
br label LBL_14
LBL_14:
%.reload41 = load i32, i32* %.reg2mem40
%65 = add i32 %storemerge1021.reload, 1
%66 = zext i32 %.reload41 to i64
%67 = sext i32 %65 to i64
%68 = icmp slt i64 %67, %66
store i32 %.reload41, i32* %.reg2mem
store i64 %67, i64* %.reg2mem34
store i32 %65, i32* %storemerge1021.reg2mem
br i1 %68, label LBL_4, label LBL_15
LBL_15:
%69 = add i64 %2, 120
%70 = inttoptr i64 %69 to i32*
%71 = load i32, i32* %70, align 4
%72 = icmp eq i32 %71, 0
%73 = icmp eq i1 %72, false
br i1 %73, label LBL_17, label LBL_16
LBL_16:
%74 = add i64 %2, 124
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
%77 = add i64 %2, 36
%78 = inttoptr i64 %77 to i32*
store i32 %76, i32* %78, align 4
%79 = add i64 %2, 128
%80 = inttoptr i64 %79 to i32*
%81 = load i32, i32* %80, align 4
%82 = add i64 %2, 40
%83 = inttoptr i64 %82 to i32*
store i32 %81, i32* %83, align 4
%84 = add i64 %2, 132
%85 = inttoptr i64 %84 to i32*
%86 = load i32, i32* %85, align 4
%87 = add i64 %2, 44
%88 = inttoptr i64 %87 to i32*
store i32 %86, i32* %88, align 4
%89 = add i64 %2, 136
%90 = inttoptr i64 %89 to i32*
%91 = load i32, i32* %90, align 4
%92 = add i64 %2, 48
%93 = inttoptr i64 %92 to i32*
store i32 %91, i32* %93, align 4
br label LBL_17
LBL_17:
%94 = add i64 %2, 52
%95 = inttoptr i64 %94 to i32*
%96 = load i32, i32* %95, align 4
%97 = add i64 %2, 12
%98 = inttoptr i64 %97 to i32*
store i32 %96, i32* %98, align 4
store i32 %96, i32* %.reg2mem52
br label LBL_47
LBL_18:
%99 = add i64 %2, 36
%100 = inttoptr i64 %99 to i32*
%101 = load i32, i32* %100, align 4
%102 = add i64 %2, 16
%103 = inttoptr i64 %102 to i32*
store i32 %101, i32* %103, align 4
store i32 %101, i32* %.reg2mem50
br label LBL_45
LBL_19:
%104 = add i64 %2, 40
%105 = inttoptr i64 %104 to i32*
%106 = load i32, i32* %105, align 4
%107 = add i64 %2, 20
%108 = inttoptr i64 %107 to i32*
store i32 %106, i32* %108, align 4
store i32 %106, i32* %.reg2mem48
br label LBL_43
LBL_20:
%109 = add i64 %2, 60
%110 = inttoptr i64 %109 to i32*
%111 = load i32, i32* %110, align 4
%112 = add i64 %2, 24
%113 = inttoptr i64 %112 to i32*
store i32 %111, i32* %113, align 4
store i32 %111, i32* %.reg2mem46
store i64 %112, i64* %.pre-phi22.reg2mem
br label LBL_41
LBL_21:
%.pre-phi22.reload = load i64, i64* %.pre-phi22.reg2mem
%114 = add i64 %2, 112
%115 = inttoptr i64 %114 to i64*
%116 = load i64, i64* %115, align 8
%117 = sext i32 %.reload47 to i64
%118 = mul nsw i64 %117, 24
%119 = add i64 %116, %118
%120 = add i64 %2, 12
%121 = inttoptr i64 %120 to i32*
%122 = load i32, i32* %121, align 4
%123 = add i64 %119, 8
%124 = inttoptr i64 %123 to i32*
%125 = load i32, i32* %124, align 4
%126 = icmp ult i32 %122, %125
store i64 %.pre-phi22.reload, i64* %.pre-phi30.reg2mem
br i1 %126, label LBL_22, label LBL_40
LBL_22:
%127 = inttoptr i64 %119 to i32*
%128 = add i64 %119, 16
%129 = inttoptr i64 %128 to i64*
%130 = load i64, i64* %129, align 8
%131 = sext i32 %122 to i64
%132 = mul i64 %131, 16
%133 = add i64 %130, %132
%134 = inttoptr i64 %133 to i32*
%135 = sub i32 0, %122
%136 = sub i32 %135, 1
%137 = add i32 %125, %136
%138 = load i32, i32* %127, align 4
%139 = urem i32 %137, 32
%140 = icmp eq i32 %139, 0
%141 = shl i32 %138, %139
%rdx.2 = zext i32 %141 to i64
%142 = add i64 %2, 128
%143 = inttoptr i64 %142 to i32*
%144 = load i32, i32* %143, align 4
%145 = zext i32 %144 to i64
%146 = call i64 @FUNC(i64 %145, i64 %rdx.2)
%147 = add i64 %119, 4
%148 = inttoptr i64 %147 to i32*
%149 = load i32, i32* %148, align 4
%150 = shl i32 %149, %139
%rdx.3 = zext i32 %150 to i64
%151 = add i64 %2, 124
%152 = inttoptr i64 %151 to i32*
%153 = load i32, i32* %152, align 4
%154 = zext i32 %153 to i64
%155 = call i64 @FUNC(i64 %154, i64 %rdx.3)
%156 = trunc i64 %155 to i32
%157 = load i32, i32* %127, align 4
%158 = shl i32 %157, %139
%rdx.4 = zext i32 %158 to i64
%159 = add i64 %2, 136
%160 = inttoptr i64 %159 to i32*
%161 = load i32, i32* %160, align 4
%162 = zext i32 %161 to i64
%163 = call i64 @FUNC(i64 %162, i64 %rdx.4)
%164 = load i32, i32* %148, align 4
%165 = shl i32 %164, %139
%rdx.5 = zext i32 %165 to i64
%166 = add i64 %2, 132
%167 = inttoptr i64 %166 to i32*
%168 = load i32, i32* %167, align 4
%169 = zext i32 %168 to i64
%170 = call i64 @FUNC(i64 %169, i64 %rdx.5)
%171 = load i32, i32* %134, align 4
%172 = add i64 %133, 4
%173 = inttoptr i64 %172 to i32*
%174 = load i32, i32* %173, align 4
%175 = add i32 %174, %137
%176 = add i64 %2, 16
%177 = inttoptr i64 %176 to i32*
%178 = load i32, i32* %177, align 4
%179 = zext i32 %178 to i64
%180 = load i32, i32* %148, align 4
%181 = urem i32 %175, 32
%182 = shl i32 %180, %181
%storemerge = zext i32 %182 to i64
%183 = ashr i32 %178, 31
%184 = zext i32 %183 to i64
%185 = mul i64 %184, 4294967296
%186 = or i64 %185, %179
%187 = srem i64 %186, %storemerge
%188 = trunc i64 %187 to i32
%189 = icmp eq i32 %188, 0
br i1 %189, label LBL_25, label LBL_23
LBL_23:
%190 = load i32, i32* %152, align 4
%191 = icmp eq i32 %178, %190
%192 = icmp eq i1 %191, false
br i1 %192, label LBL_37, label LBL_24
LBL_24:
%193 = and i64 %155, 4294967295
%194 = shl i32 %156, %139
%195 = zext i32 %194 to i64
%rdx.6 = select i1 %140, i64 %193, i64 %195
%196 = shl i32 1, %181
%storemerge6 = zext i32 %196 to i64
%197 = trunc i64 %rdx.6 to i32
%198 = ashr i32 %197, 31
%199 = zext i32 %198 to i64
%200 = mul i64 %199, 4294967296
%201 = or i64 %200, %rdx.6
%202 = srem i64 %201, %storemerge6
%203 = trunc i64 %202 to i32
%204 = icmp eq i32 %203, 0
br i1 %204, label LBL_37, label LBL_25
LBL_25:
%205 = trunc i64 %146 to i32
%206 = add i32 %171, %137
%207 = add i64 %2, 20
%208 = inttoptr i64 %207 to i32*
%209 = load i32, i32* %208, align 4
%210 = zext i32 %209 to i64
%211 = load i32, i32* %127, align 4
%212 = urem i32 %206, 32
%213 = shl i32 %211, %212
%rsi.0 = zext i32 %213 to i64
%214 = ashr i32 %209, 31
%215 = zext i32 %214 to i64
%216 = mul i64 %215, 4294967296
%217 = or i64 %216, %210
%218 = srem i64 %217, %rsi.0
%219 = trunc i64 %218 to i32
%220 = icmp eq i32 %219, 0
br i1 %220, label LBL_28, label LBL_26
LBL_26:
%221 = load i32, i32* %143, align 4
%222 = icmp eq i32 %209, %221
%223 = icmp eq i1 %222, false
br i1 %223, label LBL_38, label LBL_27
LBL_27:
%224 = and i64 %146, 4294967295
%225 = shl i32 %205, %139
%226 = zext i32 %225 to i64
%rdx.7 = select i1 %140, i64 %224, i64 %226
%227 = shl i32 1, %212
%storemerge8 = zext i32 %227 to i64
%228 = trunc i64 %rdx.7 to i32
%229 = ashr i32 %228, 31
%230 = zext i32 %229 to i64
%231 = mul i64 %230, 4294967296
%232 = or i64 %231, %rdx.7
%233 = srem i64 %232, %storemerge8
%234 = trunc i64 %233 to i32
%235 = icmp eq i32 %234, 0
br i1 %235, label LBL_38, label LBL_28
LBL_28:
%236 = add i64 %133, 8
%237 = inttoptr i64 %236 to i32*
%238 = load i32, i32* %237, align 4
%239 = icmp eq i32 %238, 0
br i1 %239, label LBL_39, label LBL_29
LBL_29:
%240 = add i64 %133, 12
%241 = inttoptr i64 %240 to i32*
%242 = load i32, i32* %241, align 4
%243 = icmp eq i32 %242, 0
br i1 %243, label LBL_39, label LBL_30
LBL_30:
%244 = trunc i64 %163 to i32
%245 = trunc i64 %170 to i32
%246 = icmp eq i32 %205, %244
%247 = icmp eq i32 %156, %245
%or.cond = or i1 %246, %247
store i64 %.pre-phi22.reload, i64* %.pre-phi30.reg2mem
br i1 %or.cond, label LBL_40, label LBL_31
LBL_31:
%248 = zext i32 %171 to i64
%249 = shl i32 %211, %139
%rdx.8 = zext i32 %249 to i64
%250 = call i64 @FUNC(i64 %210, i64 %rdx.8)
%251 = and i64 %250, 4294967295
%252 = call i64 @FUNC(i64 %251, i64 %248)
%253 = trunc i64 %252 to i32
%254 = load i32, i32* %134, align 4
%255 = zext i32 %254 to i64
%256 = and i64 %146, 4294967295
%257 = call i64 @FUNC(i64 %256, i64 %255)
%258 = trunc i64 %257 to i32
%259 = sub i32 %253, %258
%260 = load i32, i32* %173, align 4
%261 = zext i32 %260 to i64
%262 = load i32, i32* %148, align 4
%263 = shl i32 %262, %139
%rdx.9 = zext i32 %263 to i64
%264 = load i32, i32* %177, align 4
%265 = zext i32 %264 to i64
%266 = call i64 @FUNC(i64 %265, i64 %rdx.9)
%267 = and i64 %266, 4294967295
%268 = call i64 @FUNC(i64 %267, i64 %261)
%269 = load i32, i32* %173, align 4
%270 = zext i32 %269 to i64
%271 = and i64 %155, 4294967295
%272 = call i64 @FUNC(i64 %271, i64 %270)
%273 = sub i64 %268, %272
%274 = load i32, i32* %237, align 4
%275 = trunc i64 %273 to i32
%276 = mul i32 %274, %275
%277 = add i32 %259, %276
%278 = add i64 %2, 28
%279 = inttoptr i64 %278 to i32*
store i32 %277, i32* %279, align 4
%280 = add i64 %2, 68
%281 = inttoptr i64 %280 to i32*
%282 = load i32, i32* %281, align 4
%283 = add i64 %2, 32
%284 = inttoptr i64 %283 to i32*
store i32 %282, i32* %284, align 4
store i32 %282, i32* %.reg2mem44
store i64 %283, i64* %.pre-phi.reg2mem
br label LBL_35
LBL_32:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%285 = add i64 %2, 88
%286 = inttoptr i64 %285 to i32*
%287 = load i32, i32* %286, align 4
%288 = mul i32 %287, %.reload45
%289 = add i64 %2, 12
%290 = inttoptr i64 %289 to i32*
%291 = load i32, i32* %290, align 4
%292 = add i64 %2, 92
%293 = inttoptr i64 %292 to i32*
%294 = load i32, i32* %293, align 4
%295 = mul i32 %294, %291
%296 = add i32 %295, %288
%297 = add i64 %2, 24
%298 = inttoptr i64 %297 to i32*
%299 = load i32, i32* %298, align 4
%300 = add i64 %2, 96
%301 = inttoptr i64 %300 to i32*
%302 = load i32, i32* %301, align 4
%303 = mul i32 %302, %299
%304 = add i32 %296, %303
%305 = add i64 %2, 28
%306 = inttoptr i64 %305 to i32*
%307 = load i32, i32* %306, align 4
%308 = add i64 %2, 100
%309 = inttoptr i64 %308 to i32*
%310 = load i32, i32* %309, align 4
%311 = mul i32 %310, %307
%312 = add i32 %304, %311
%313 = sext i32 %312 to i64
%314 = add i64 %2, 80
%315 = inttoptr i64 %314 to i64*
%316 = load i64, i64* %315, align 8
%317 = mul i64 %313, 4
%318 = add i64 %317, %316
%319 = inttoptr i64 %318 to i32*
%320 = load i32, i32* %319, align 4
%321 = icmp eq i32 %320, 0
%322 = icmp eq i1 %321, false
store i32 %.reload45, i32* %.reg2mem42
store i64 %.pre-phi.reload, i64* %.pre-phi28.reg2mem
br i1 %322, label LBL_34, label LBL_33
LBL_33:
store i32 1, i32* %319, align 4
store i64 1, i64* %storemerge9.reg2mem
br label LBL_48
LBL_34:
%.pre-phi28.reload = load i64, i64* %.pre-phi28.reg2mem
%.reload43 = load i32, i32* %.reg2mem42
%323 = inttoptr i64 %.pre-phi28.reload to i32*
%324 = add i32 %.reload43, 1
store i32 %324, i32* %323, align 4
store i32 %324, i32* %.reg2mem44
store i64 %.pre-phi28.reload, i64* %.pre-phi.reg2mem
br label LBL_35
LBL_35:
%.reload45 = load i32, i32* %.reg2mem44
%325 = add i64 %2, 72
%326 = inttoptr i64 %325 to i32*
%327 = load i32, i32* %326, align 4
%328 = icmp ult i32 %.reload45, %327
br i1 %328, label LBL_32, label LBL_35.LBL_40_crit_edge
LBL_36:
%.pre29 = add i64 %2, 24
store i64 %.pre29, i64* %.pre-phi30.reg2mem
br label LBL_40
LBL_37:
store i64 %.pre-phi22.reload, i64* %.pre-phi30.reg2mem
br label LBL_40
LBL_38:
store i64 %.pre-phi22.reload, i64* %.pre-phi30.reg2mem
br label LBL_40
LBL_39:
store i64 %.pre-phi22.reload, i64* %.pre-phi30.reg2mem
br label LBL_40
LBL_40:
%.pre-phi30.reload = load i64, i64* %.pre-phi30.reg2mem
%329 = inttoptr i64 %.pre-phi30.reload to i32*
%330 = load i32, i32* %329, align 4
%331 = add i32 %330, 1
store i32 %331, i32* %329, align 4
store i32 %331, i32* %.reg2mem46
store i64 %.pre-phi30.reload, i64* %.pre-phi22.reg2mem
br label LBL_41
LBL_41:
%.reload47 = load i32, i32* %.reg2mem46
%332 = add i64 %2, 64
%333 = inttoptr i64 %332 to i32*
%334 = load i32, i32* %333, align 4
%335 = icmp ult i32 %.reload47, %334
br i1 %335, label LBL_21, label LBL_42
LBL_42:
%336 = add i64 %2, 20
%337 = inttoptr i64 %336 to i32*
%338 = load i32, i32* %337, align 4
%339 = add i64 %2, 4
%340 = inttoptr i64 %339 to i32*
%341 = load i32, i32* %340, align 4
%342 = ashr i32 %338, 31
%343 = zext i32 %338 to i64
%344 = zext i32 %342 to i64
%345 = mul i64 %344, 4294967296
%346 = or i64 %345, %343
%347 = zext i32 %341 to i64
%348 = srem i64 %346, %347
%349 = trunc i64 %348 to i32
%350 = add i32 %341, %338
%351 = sub i32 %350, %349
store i32 %351, i32* %337, align 4
store i32 %351, i32* %.reg2mem48
br label LBL_43
LBL_43:
%.reload49 = load i32, i32* %.reg2mem48
%352 = add i64 %2, 48
%353 = inttoptr i64 %352 to i32*
%354 = load i32, i32* %353, align 4
%355 = icmp ult i32 %.reload49, %354
br i1 %355, label LBL_20, label LBL_44
LBL_44:
%356 = add i64 %2, 16
%357 = inttoptr i64 %356 to i32*
%358 = load i32, i32* %357, align 4
%359 = add i64 %2, 8
%360 = inttoptr i64 %359 to i32*
%361 = load i32, i32* %360, align 4
%362 = ashr i32 %358, 31
%363 = zext i32 %358 to i64
%364 = zext i32 %362 to i64
%365 = mul i64 %364, 4294967296
%366 = or i64 %365, %363
%367 = zext i32 %361 to i64
%368 = srem i64 %366, %367
%369 = trunc i64 %368 to i32
%370 = add i32 %361, %358
%371 = sub i32 %370, %369
store i32 %371, i32* %357, align 4
store i32 %371, i32* %.reg2mem50
br label LBL_45
LBL_45:
%.reload51 = load i32, i32* %.reg2mem50
%372 = add i64 %2, 44
%373 = inttoptr i64 %372 to i32*
%374 = load i32, i32* %373, align 4
%375 = icmp ult i32 %.reload51, %374
br i1 %375, label LBL_19, label LBL_46
LBL_46:
%376 = add i64 %2, 12
%377 = inttoptr i64 %376 to i32*
%378 = load i32, i32* %377, align 4
%379 = add i32 %378, 1
store i32 %379, i32* %377, align 4
store i32 %379, i32* %.reg2mem52
br label LBL_47
LBL_47:
%.reload53 = load i32, i32* %.reg2mem52
%380 = add i64 %2, 56
%381 = inttoptr i64 %380 to i32*
%382 = load i32, i32* %381, align 4
%383 = icmp ult i32 %.reload53, %382
store i64 0, i64* %storemerge9.reg2mem
br i1 %383, label LBL_18, label LBL_48
LBL_48:
%storemerge9.reload = load i64, i64* %storemerge9.reg2mem
ret i64 %storemerge9.reload
uselistorder i32 %358, { 0, 2, 1 }
uselistorder i32 %338, { 0, 2, 1 }
uselistorder i32 %.reload47, { 1, 0 }
uselistorder i32 %.reload45, { 1, 0, 2 }
uselistorder i32 %212, { 1, 0 }
uselistorder i64 %210, { 1, 0 }
uselistorder i32 %205, { 1, 0 }
uselistorder i32 %181, { 1, 0 }
uselistorder i32 %171, { 1, 0 }
uselistorder i1 %140, { 1, 0 }
uselistorder i32 %139, { 6, 5, 7, 8, 4, 3, 2, 1, 0 }
uselistorder i32 %137, { 2, 1, 0 }
uselistorder i64 %.pre-phi22.reload, { 2, 3, 4, 0, 1 }
uselistorder i32 %.reload41, { 1, 0 }
uselistorder i32* %20, { 1, 0 }
uselistorder i64 %18, { 0, 1, 3, 2 }
uselistorder i64 %2, { 17, 21, 20, 26, 25, 24, 41, 40, 39, 0, 44, 43, 50, 51, 48, 49, 46, 47, 45, 30, 29, 31, 32, 33, 34, 35, 36, 37, 38, 42, 27, 28, 22, 23, 18, 19, 9, 8, 3, 2, 5, 4, 7, 6, 13, 14, 11, 12, 10, 15, 16, 1 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem34, { 1, 0, 2 }
uselistorder i32* %storemerge1021.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem36, { 1, 0, 2 }
uselistorder i32* %.reg2mem38, { 1, 0, 2 }
uselistorder i32* %storemerge1120.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge13.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge12.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre-phi.reg2mem, { 1, 0, 2 }
uselistorder i64* %.pre-phi30.reg2mem, { 0, 3, 2, 1, 6, 5, 4 }
uselistorder i64* %.pre-phi22.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem52, { 0, 2, 1 }
uselistorder i64 28, { 1, 0 }
uselistorder i64 (i64, i64)* @int_floordivpow2, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @int_ceildiv, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 20, { 2, 0, 1 }
uselistorder i64 12, { 2, 3, 0, 1, 4 }
uselistorder i1 false, { 2, 0, 1, 3 }
uselistorder i64 (i64, i64)* @int_min, { 1, 0 }
uselistorder i32 31, { 5, 6, 1, 2, 3, 4, 0, 7 }
uselistorder i64 16, { 5, 3, 0, 4, 2, 1, 6 }
uselistorder i64 24, { 0, 4, 2, 3, 1 }
uselistorder i64 8, { 2, 0, 1, 3, 4 }
uselistorder i64 4, { 3, 0, 1, 2, 4, 5, 6 }
uselistorder i64 32, { 1, 0 }
uselistorder i32 0, { 12, 5, 6, 7, 8, 9, 10, 11, 2, 15, 13, 14, 0, 3, 1, 4, 16, 17, 18, 19, 20 }
uselistorder label LBL_45, { 1, 0 }
uselistorder label LBL_43, { 1, 0 }
uselistorder label LBL_41, { 1, 0 }
uselistorder label LBL_40, { 3, 4, 5, 0, 1, 2 }
uselistorder label LBL_35, { 1, 0 }
uselistorder label LBL_34, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | usb_enumerate_device_otg_6770 | usb_enumerate_device_otg | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i8*, align 8
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %3, label LBL_11, label LBL_1
LBL_1:
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_11, label LBL_2
LBL_2:
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, %6
%12 = icmp eq i1 %11, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %12, label LBL_11, label LBL_3
LBL_3:
store i8* null, i8** %sv_1, align 8
%13 = add i64 %0, 24
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = load i64, i64* %5, align 8
%17 = inttoptr i64 %16 to i16*
%18 = load i16, i16* %17, align 2
%19 = zext i16 %18 to i64
%20 = add i64 %0, 32
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = bitcast i8** %sv_1 to i64*
%24 = call i64 @FUNC(i64 %22, i64 %19, i64 1, i64* nonnull %23, i64 2)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
store i64 0, i64* %storemerge.reg2mem
br i1 %27, label LBL_12, label LBL_4
LBL_4:
%28 = load i8*, i8** %sv_1, align 8
%29 = ptrtoint i8* %28 to i64
%30 = add i64 %29, 1
%31 = inttoptr i64 %30 to i8*
%32 = load i8, i8* %31, align 1
%33 = and i8 %32, 2
%34 = icmp eq i8 %33, 0
%35 = icmp eq i1 %34, false
store i64 0, i64* %storemerge.reg2mem
br i1 %35, label LBL_5, label LBL_12
LBL_5:
%36 = inttoptr i64 %8 to i32*
%37 = load i32, i32* %36, align 4
%38 = icmp eq i32 %15, %37
%39 = icmp eq i1 %38, false
%40 = select i1 %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i8* bitcast (i8** @gv_1 to i8*)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_2, i64 0, i64 0), i8* %40)
%42 = load i32, i32* %36, align 4
%43 = icmp eq i32 %15, %42
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_8, label LBL_6
LBL_6:
%45 = add i64 %0, 20
%46 = inttoptr i64 %45 to i32*
store i32 1, i32* %46, align 4
%47 = call i64 @FUNC(i64 %0, i64 0, i64 3, i64 0, i64 1, i64 0)
%48 = trunc i64 %47 to i32
%49 = icmp slt i32 %48, 0
%50 = icmp eq i1 %49, false
store i64 %47, i64* %sv_0.0.reg2mem
br i1 %50, label LBL_11, label LBL_7
LBL_7:
%51 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%52 = and i64 %47, 4294967295
%53 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %51, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_4, i64 0, i64 0), i64 %52)
store i32 0, i32* %46, align 4
store i64 %47, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_8:
%54 = load i8*, i8** %sv_1, align 8
%55 = load i8, i8* %54, align 1
%56 = icmp eq i8 %55, 2
%57 = icmp eq i1 %56, false
store i64 %24, i64* %sv_0.0.reg2mem
br i1 %57, label LBL_11, label LBL_9
LBL_9:
%58 = call i64 @FUNC(i64 %0, i64 0, i64 3, i64 0, i64 2, i64 0)
%59 = trunc i64 %58 to i32
%60 = icmp slt i32 %59, 0
%61 = icmp eq i1 %60, false
store i64 %58, i64* %sv_0.0.reg2mem
br i1 %61, label LBL_11, label LBL_10
LBL_10:
%62 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%63 = and i64 %58, 4294967295
%64 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %62, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_5, i64 0, i64 0), i64 %63)
store i64 %58, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_11:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%65 = and i64 %sv_0.0.reload, 4294967295
store i64 %65, i64* %storemerge.reg2mem
br label LBL_12
LBL_12:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %58, { 0, 2, 1, 3 }
uselistorder i64 %47, { 0, 2, 1, 3 }
uselistorder i8** %sv_1, { 2, 1, 3, 0 }
uselistorder i64 %0, { 3, 2, 0, 4, 5, 7, 6, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 4, 5, 1, 2, 6, 7, 8 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder %_IO_FILE** @gv_3, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64, i64)* @usb_control_msg, { 1, 0 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder label LBL_12, { 2, 1, 0 }
} | 0 |
BinRealVul | ShowConciseImageInfo_8082 | ShowConciseImageInfo | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i1
%xmm1.0.reg2mem = alloca i128
%2 = load i128, i128* %0
%3 = load i1, i1* %1
%4 = load i1, i1* %1
%5 = load i1, i1* %1
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i8* bitcast (i8** @gv_1 to i8*))
%7 = load i32, i32* @gv_2, align 4
%8 = zext i32 %7 to i64
%9 = load i32, i32* @gv_3, align 4
%10 = zext i32 %9 to i64
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0), i64 %10, i64 %8)
%12 = load i64, i64* @gv_5, align 8
%13 = call i128 @FUNC(i64 %12)
%14 = call i128 @FUNC(i128 %2, i128 %2)
call void @FUNC(i128 %13, i128 %14)
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%15 = call i128 @FUNC(i128 %14, i128 %14)
call void @FUNC(i128 %13, i128 %15)
store i128 %15, i128* %xmm1.0.reg2mem
br i1 %3, label LBL_5, label LBL_2
LBL_2:
%16 = load i64, i64* @gv_5, align 8
%17 = call i128 @FUNC(i64 %16)
%18 = call i128 @FUNC(i64 4602678819172646912)
call void @FUNC(i128 %18, i128 %17)
%19 = load i64, i64* @gv_5, align 8
br i1 %5, label LBL_4, label LBL_3
LBL_3:
%20 = call i128 @FUNC(i64 %19)
%21 = call i128 @FUNC(i64 4607182418800017408)
%22 = call i128 @FUNC(i128 %21)
%23 = call i128 @FUNC(i128 %22, i128 %20)
%24 = call i128 @FUNC(i64 4602678819172646912)
%25 = call i128 @FUNC(i128 %24, i128 %23)
%26 = call i32 @FUNC(i128 %25)
%27 = zext i32 %26 to i64
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_6, i64 0, i64 0), i64 %27)
store i128 %23, i128* %xmm1.0.reg2mem
br label LBL_5
LBL_4:
%29 = call i128 @FUNC(i64 %19)
%30 = trunc i128 %29 to i64
%31 = bitcast i64 %30 to double
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_7, i64 0, i64 0), double %31)
store i128 %17, i128* %xmm1.0.reg2mem
br label LBL_5
LBL_5:
%xmm1.0.reload = load i128, i128* %xmm1.0.reg2mem
%33 = load i64, i64* @gv_8, align 8
%34 = call i128 @FUNC(i64 %33)
%35 = call i128 @FUNC(i128 %xmm1.0.reload, i128 %xmm1.0.reload)
call void @FUNC(i128 %34, i128 %35)
br i1 %4, label LBL_7, label LBL_6
LBL_6:
%36 = call i128 @FUNC(i128 %35, i128 %35)
call void @FUNC(i128 %34, i128 %36)
br i1 %3, label LBL_8, label LBL_7
LBL_7:
%37 = load i64, i64* @gv_8, align 8
%38 = call i128 @FUNC(i64 %37)
%39 = trunc i128 %38 to i64
%40 = bitcast i64 %39 to double
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_9, i64 0, i64 0), double %40)
br label LBL_8
LBL_8:
%42 = load i32, i32* @gv_10, align 4
%43 = icmp eq i32 %42, 0
br i1 %43, label LBL_10, label LBL_9
LBL_9:
%44 = zext i32 %42 to i64
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_11, i64 0, i64 0), i64 %44)
br label LBL_10
LBL_10:
%46 = load i32, i32* @gv_12, align 4
%47 = icmp slt i32 %46, 0
%48 = urem i32 %46, 2
%49 = icmp eq i32 %48, 0
%or.cond = or i1 %47, %49
br i1 %or.cond, label LBL_12, label LBL_11
LBL_11:
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_13, i64 0, i64 0))
br label LBL_12
LBL_12:
%51 = load i32, i32* @gv_14, align 4
%52 = icmp eq i32 %51, 0
%53 = icmp eq i1 %52, false
br i1 %53, label LBL_14, label LBL_13
LBL_13:
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_15, i64 0, i64 0))
br label LBL_14
LBL_14:
%55 = call i32 @putchar(i32 10)
%56 = sext i32 %55 to i64
ret i64 %56
uselistorder i128 %35, { 1, 0, 2 }
uselistorder i64 %19, { 1, 0 }
uselistorder i128 %14, { 1, 0, 2 }
uselistorder i1 %4, { 1, 0 }
uselistorder i1 %3, { 1, 0 }
uselistorder i128* %xmm1.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i1* %1, { 2, 1, 0 }
uselistorder i32 (i8*, ...)* @printf, { 7, 1, 5, 2, 3, 6, 0, 4 }
} | 0 |
BinRealVul | decode_nal_16277 | decode_nal | define i64 @FUNC(i64* %arg1, i32* %arg2, i64* %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_1.0.lcssa.reg2mem = alloca i32
%sv_0.0.be.reg2mem = alloca i32
%sv_1.0.be.reg2mem = alloca i32
%sv_1.03.reg2mem = alloca i32
%sv_0.05.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i64
%storemerge.lcssa.reg2mem = alloca i32
%sv_3.1.reg2mem = alloca i32
%.pre-phi16.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%storemerge10.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %arg5 to i32
%5 = trunc i64 %1 to i8
%6 = udiv i8 %5, 32
%7 = zext i8 %6 to i32
%8 = bitcast i64* %arg1 to i32*
store i32 %7, i32* %8, align 4
%9 = urem i8 %5, 32
%10 = zext i8 %9 to i32
%11 = add i64 %3, 4
%12 = inttoptr i64 %11 to i32*
store i32 %10, i32* %12, align 4
%13 = add i64 %2, 1
%14 = add i32 %4, -1
%15 = sext i32 %14 to i64
%16 = icmp sgt i32 %14, 1
store i32 0, i32* %storemerge10.reg2mem
store i32 0, i32* %storemerge.lcssa.reg2mem
br i1 %16, label LBL_1, label LBL_10
LBL_1:
%storemerge10.reload = load i32, i32* %storemerge10.reg2mem
%17 = sext i32 %storemerge10.reload to i64
%18 = add i64 %13, %17
%19 = inttoptr i64 %18 to i8*
%20 = load i8, i8* %19, align 1
%21 = icmp eq i8 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_1.LBL_9_crit_edge, label LBL_3
LBL_2:
%.pre15 = add i32 %storemerge10.reload, 2
store i32 %.pre15, i32* %.pre-phi16.reg2mem
store i32 %storemerge10.reload, i32* %sv_3.1.reg2mem
br label LBL_9
LBL_3:
%23 = icmp slt i32 %storemerge10.reload, 1
store i32 %storemerge10.reload, i32* %sv_3.0.reg2mem
br i1 %23, label LBL_5, label LBL_4
LBL_4:
%24 = add i64 %17, %2
%25 = inttoptr i64 %24 to i8*
%26 = load i8, i8* %25, align 1
%27 = icmp eq i8 %26, 0
%28 = sext i1 %27 to i32
%spec.select = add i32 %storemerge10.reload, %28
store i32 %spec.select, i32* %sv_3.0.reg2mem
br label LBL_5
LBL_5:
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%29 = add i32 %sv_3.0.reload, 2
%30 = zext i32 %29 to i64
%31 = icmp sgt i64 %15, %30
store i32 %29, i32* %.pre-phi16.reg2mem
store i32 %sv_3.0.reload, i32* %sv_3.1.reg2mem
br i1 %31, label LBL_6, label LBL_9
LBL_6:
%32 = sext i32 %sv_3.0.reload to i64
%33 = add i64 %32, %2
%34 = add i64 %33, 2
%35 = inttoptr i64 %34 to i8*
%36 = load i8, i8* %35, align 1
%37 = icmp eq i8 %36, 0
%38 = icmp eq i1 %37, false
store i32 %29, i32* %.pre-phi16.reg2mem
store i32 %sv_3.0.reload, i32* %sv_3.1.reg2mem
br i1 %38, label LBL_9, label LBL_7
LBL_7:
%39 = add i64 %33, 3
%40 = inttoptr i64 %39 to i8*
%41 = load i8, i8* %40, align 1
%42 = icmp ult i8 %41, 4
store i32 %29, i32* %.pre-phi16.reg2mem
store i32 %sv_3.0.reload, i32* %sv_3.1.reg2mem
br i1 %42, label LBL_8, label LBL_9
LBL_8:
%43 = icmp eq i8 %41, 3
%spec.select1 = select i1 %43, i32 %14, i32 %sv_3.0.reload
store i64 %32, i64* %.pre-phi.reg2mem
store i32 %spec.select1, i32* %sv_2.0.reg2mem
br label LBL_11
LBL_9:
%sv_3.1.reload = load i32, i32* %sv_3.1.reg2mem
%.pre-phi16.reload = load i32, i32* %.pre-phi16.reg2mem
%44 = add i32 %sv_3.1.reload, 3
%45 = zext i32 %44 to i64
%46 = icmp sgt i64 %15, %45
store i32 %.pre-phi16.reload, i32* %storemerge10.reg2mem
store i32 %.pre-phi16.reload, i32* %storemerge.lcssa.reg2mem
br i1 %46, label LBL_1, label LBL_10
LBL_10:
%storemerge.lcssa.reload = load i32, i32* %storemerge.lcssa.reg2mem
%.pre = sext i32 %storemerge.lcssa.reload to i64
store i64 %.pre, i64* %.pre-phi.reg2mem
store i32 %14, i32* %sv_2.0.reg2mem
br label LBL_11
LBL_11:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%47 = add i32 %sv_2.0.reload, -1
%48 = zext i32 %47 to i64
%49 = icmp slt i64 %.pre-phi.reload, %48
br i1 %49, label LBL_13, label LBL_12
LBL_12:
%50 = bitcast i64* %arg3 to i32*
store i32 %sv_2.0.reload, i32* %50, align 4
%51 = add i32 %sv_2.0.reload, 1
%52 = bitcast i64* %arg4 to i32*
store i32 %51, i32* %52, align 4
store i64 %13, i64* %rax.0.reg2mem
br label LBL_24
LBL_13:
%53 = icmp eq i8 %9, 1
%54 = add i64 %3, 16
%55 = inttoptr i64 %54 to i64*
%56 = load i64, i64* %55, align 8
%57 = zext i1 %53 to i64
%58 = mul i64 %57, 4
%59 = add i64 %56, %58
%60 = add i64 %3, 8
%61 = inttoptr i64 %60 to i64*
%62 = load i64, i64* %61, align 8
%63 = mul i64 %57, 8
%64 = add i64 %62, %63
%65 = inttoptr i64 %64 to i64*
%66 = load i64, i64* %65, align 8
%67 = call i64 @FUNC(i64 %66, i64 %59, i32 %sv_2.0.reload)
store i64 %67, i64* %65, align 8
%68 = load i64, i64* %61, align 8
%69 = add i64 %68, %63
%70 = inttoptr i64 %69 to i64*
%71 = load i64, i64* %70, align 8
%72 = icmp eq i64 %71, 0
%73 = icmp eq i1 %72, false
store i64 0, i64* %rax.0.reg2mem
br i1 %73, label LBL_14, label LBL_24
LBL_14:
%74 = icmp sgt i32 %sv_2.0.reload, 0
store i32 0, i32* %sv_1.0.lcssa.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %74, label LBL_15, label LBL_23
LBL_15:
%75 = sext i32 %sv_2.0.reload to i64
store i32 0, i32* %sv_0.05.reg2mem
store i32 0, i32* %sv_1.03.reg2mem
br label LBL_16
LBL_16:
%sv_1.03.reload = load i32, i32* %sv_1.03.reg2mem
%sv_0.05.reload = load i32, i32* %sv_0.05.reg2mem
%76 = add i32 %sv_0.05.reload, 2
%77 = zext i32 %76 to i64
%78 = icmp sle i64 %75, %77
%79 = sext i32 %sv_0.05.reload to i64
%80 = add i64 %13, %79
%81 = inttoptr i64 %80 to i8*
%82 = load i8, i8* %81, align 1
%83 = icmp eq i8 %82, 0
%84 = icmp eq i1 %83, false
%or.cond = or i1 %78, %84
br i1 %or.cond, label LBL_22, label LBL_17
LBL_17:
%85 = add i64 %80, 1
%86 = inttoptr i64 %85 to i8*
%87 = load i8, i8* %86, align 1
%88 = icmp eq i8 %87, 0
%89 = icmp eq i1 %88, false
br i1 %89, label LBL_22, label LBL_18
LBL_18:
%90 = add i64 %80, 2
%91 = inttoptr i64 %90 to i8*
%92 = load i8, i8* %91, align 1
%93 = icmp ult i8 %92, 4
br i1 %93, label LBL_19, label LBL_22
LBL_19:
%94 = icmp eq i8 %92, 3
%95 = icmp eq i1 %94, false
store i32 %sv_1.03.reload, i32* %sv_1.0.lcssa.reg2mem
store i32 %sv_0.05.reload, i32* %sv_0.0.lcssa.reg2mem
br i1 %95, label LBL_23, label LBL_20
LBL_20:
%96 = add i32 %sv_1.03.reload, 1
%97 = sext i32 %sv_1.03.reload to i64
%98 = add i64 %71, %97
%99 = inttoptr i64 %98 to i8*
store i8 0, i8* %99, align 1
%100 = add i32 %sv_1.03.reload, 2
%101 = sext i32 %96 to i64
%102 = add i64 %71, %101
%103 = inttoptr i64 %102 to i8*
store i8 0, i8* %103, align 1
%104 = add i32 %sv_0.05.reload, 3
store i32 %100, i32* %sv_1.0.be.reg2mem
store i32 %104, i32* %sv_0.0.be.reg2mem
br label LBL_21
LBL_21:
%sv_0.0.be.reload = load i32, i32* %sv_0.0.be.reg2mem
%sv_1.0.be.reload = load i32, i32* %sv_1.0.be.reg2mem
%105 = icmp slt i32 %sv_0.0.be.reload, %sv_2.0.reload
store i32 %sv_0.0.be.reload, i32* %sv_0.05.reg2mem
store i32 %sv_1.0.be.reload, i32* %sv_1.03.reg2mem
store i32 %sv_1.0.be.reload, i32* %sv_1.0.lcssa.reg2mem
store i32 %sv_0.0.be.reload, i32* %sv_0.0.lcssa.reg2mem
br i1 %105, label LBL_16, label LBL_23
LBL_22:
%106 = add i32 %sv_0.05.reload, 1
%107 = add i32 %sv_1.03.reload, 1
%108 = sext i32 %sv_1.03.reload to i64
%109 = add i64 %71, %108
%110 = inttoptr i64 %109 to i8*
store i8 %82, i8* %110, align 1
store i32 %107, i32* %sv_1.0.be.reg2mem
store i32 %106, i32* %sv_0.0.be.reg2mem
br label LBL_21
LBL_23:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
%111 = bitcast i64* %arg3 to i32*
store i32 %sv_1.0.lcssa.reload, i32* %111, align 4
%112 = add i32 %sv_0.0.lcssa.reload, 1
%113 = bitcast i64* %arg4 to i32*
store i32 %112, i32* %113, align 4
store i64 %71, i64* %rax.0.reg2mem
br label LBL_24
LBL_24:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.0.be.reload, { 0, 2, 1 }
uselistorder i32 %sv_0.05.reload, { 4, 1, 0, 3, 2 }
uselistorder i32 %sv_1.03.reload, { 4, 5, 3, 2, 1, 0 }
uselistorder i64 %71, { 0, 3, 1, 2, 4 }
uselistorder i64 %63, { 1, 0 }
uselistorder i32 %sv_2.0.reload, { 4, 3, 6, 1, 5, 0, 2 }
uselistorder i32 %29, { 2, 0, 1, 3 }
uselistorder i32 %sv_3.0.reload, { 5, 2, 0, 3, 1, 4 }
uselistorder i64 %17, { 1, 0 }
uselistorder i32 %storemerge10.reload, { 5, 1, 2, 0, 4, 3 }
uselistorder i64 %15, { 1, 0 }
uselistorder i32 %14, { 0, 2, 1, 3 }
uselistorder i64 %13, { 2, 0, 1 }
uselistorder i8 %9, { 1, 0 }
uselistorder i8 %5, { 1, 0 }
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i32* %storemerge10.reg2mem, { 2, 0, 1 }
uselistorder i32* %.pre-phi16.reg2mem, { 0, 3, 1, 2, 4 }
uselistorder i32* %sv_3.1.reg2mem, { 0, 3, 1, 2, 4 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.05.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.03.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.0.be.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.be.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.0.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %sv_0.0.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 3, { 1, 0 }
uselistorder i8 3, { 1, 0 }
uselistorder i8 4, { 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i32 2, { 1, 2, 3, 0 }
uselistorder i1 false, { 1, 2, 0, 3, 4, 5 }
uselistorder i8 0, { 1, 2, 3, 0, 4, 5, 6 }
uselistorder i32 0, { 2, 3, 0, 1, 6, 4, 5 }
uselistorder i8 32, { 1, 0 }
uselistorder label LBL_24, { 1, 0, 2 }
uselistorder label LBL_22, { 1, 2, 0 }
uselistorder label LBL_21, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_9, { 1, 3, 2, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | jsvGetString_11816 | jsvGetString | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i64
%sv_1.04.reg2mem = alloca i64
%sv_0.05.reg2mem = alloca i64
%storemerge.lcssa.reg2mem = alloca i32
%storemerge7.reg2mem = alloca i32
%1 = load i64, i64* %0
%sv_2 = alloca i64, align 8
%2 = icmp eq i64 %arg3, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = call i64 @FUNC(i64 %arg1)
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_7, label LBL_3
LBL_3:
%6 = inttoptr i64 %4 to i8*
%7 = add i64 %arg3, -1
%8 = load i8, i8* %6, align 1
%9 = icmp eq i8 %8, 0
store i32 0, i32* %storemerge7.reg2mem
store i32 0, i32* %storemerge.lcssa.reg2mem
br i1 %9, label LBL_6, label LBL_5
LBL_4:
%10 = add i64 %4, %18
%11 = add i64 %18, %arg2
%12 = inttoptr i64 %10 to i8*
%13 = load i8, i8* %12, align 1
%14 = inttoptr i64 %11 to i8*
store i8 %13, i8* %14, align 1
%15 = add i32 %storemerge7.reload, 1
%16 = load i8, i8* %6, align 1
%17 = icmp eq i8 %16, 0
store i32 %15, i32* %storemerge7.reg2mem
store i32 %15, i32* %storemerge.lcssa.reg2mem
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%18 = sext i32 %storemerge7.reload to i64
%19 = icmp ugt i64 %7, %18
store i32 %storemerge7.reload, i32* %storemerge.lcssa.reg2mem
br i1 %19, label LBL_4, label LBL_6
LBL_6:
%storemerge.lcssa.reload = load i32, i32* %storemerge.lcssa.reg2mem
%20 = sext i32 %storemerge.lcssa.reload to i64
%21 = add i64 %20, %arg2
%22 = inttoptr i64 %21 to i8*
store i8 0, i8* %22, align 1
store i64 %20, i64* %rax.0.reg2mem
br label LBL_22
LBL_7:
%23 = call i64 @FUNC(i64 %arg1)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
br i1 %25, label LBL_9, label LBL_8
LBL_8:
%26 = and i64 %1, 4294967295
%27 = call i64 @FUNC(i64 %26, i64 %arg2, i64 10)
%28 = inttoptr i64 %arg2 to i8*
%29 = call i32 @strlen(i8* %28)
%30 = sext i32 %29 to i64
store i64 %30, i64* %rax.0.reg2mem
br label LBL_22
LBL_9:
%31 = call i64 @FUNC(i64 %arg1)
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 0
br i1 %33, label LBL_11, label LBL_10
LBL_10:
%34 = trunc i64 %1 to i32
%35 = call i128 @FUNC(i32 %34)
%36 = call i64 @FUNC(i64 %arg2, i64 %arg3)
%37 = inttoptr i64 %arg2 to i8*
%38 = call i32 @strlen(i8* %37)
%39 = sext i32 %38 to i64
store i64 %39, i64* %rax.0.reg2mem
br label LBL_22
LBL_11:
%40 = call i64 @FUNC(i64 %arg1)
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 0
br i1 %42, label LBL_19, label LBL_12
LBL_12:
%43 = call i64 @FUNC(i64 %arg1)
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, 0
br i1 %45, label LBL_14, label LBL_13
LBL_13:
call void @__assert_fail(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 54, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_14
LBL_14:
%46 = call i64 @FUNC(i64* nonnull %sv_2, i64 %arg1, i64 0)
%47 = call i64 @FUNC(i64* nonnull %sv_2)
%48 = trunc i64 %47 to i32
%49 = icmp eq i32 %48, 0
%50 = icmp eq i1 %49, false
store i64 %arg3, i64* %sv_0.05.reg2mem
store i64 %arg2, i64* %sv_1.04.reg2mem
store i64 %arg2, i64* %sv_1.0.lcssa.reg2mem
store i64 %arg3, i64* %sv_0.0.lcssa.reg2mem
br i1 %50, label LBL_15, label LBL_18
LBL_15:
%sv_1.04.reload = load i64, i64* %sv_1.04.reg2mem
%sv_0.05.reload = load i64, i64* %sv_0.05.reg2mem
%51 = icmp ult i64 %sv_0.05.reload, 2
br i1 %51, label LBL_16, label LBL_17
LBL_16:
%52 = inttoptr i64 %sv_1.04.reload to i8*
store i8 0, i8* %52, align 1
%53 = call i64 @FUNC(i64* nonnull %sv_2)
store i64 %arg3, i64* %rax.0.reg2mem
br label LBL_22
LBL_17:
%54 = add i64 %sv_0.05.reload, -1
%55 = add i64 %sv_1.04.reload, 1
%56 = call i64 @FUNC(i64* nonnull %sv_2)
%57 = trunc i64 %56 to i8
%58 = inttoptr i64 %sv_1.04.reload to i8*
store i8 %57, i8* %58, align 1
%59 = call i64 @FUNC(i64* nonnull %sv_2)
%60 = call i64 @FUNC(i64* nonnull %sv_2)
%61 = trunc i64 %60 to i32
%62 = icmp eq i32 %61, 0
%63 = icmp eq i1 %62, false
store i64 %54, i64* %sv_0.05.reg2mem
store i64 %55, i64* %sv_1.04.reg2mem
store i64 %55, i64* %sv_1.0.lcssa.reg2mem
store i64 %54, i64* %sv_0.0.lcssa.reg2mem
br i1 %63, label LBL_15, label LBL_18
LBL_18:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i64, i64* %sv_1.0.lcssa.reg2mem
%64 = call i64 @FUNC(i64* nonnull %sv_2)
%65 = inttoptr i64 %sv_1.0.lcssa.reload to i8*
store i8 0, i8* %65, align 1
%66 = sub i64 %arg3, %sv_0.0.lcssa.reload
store i64 %66, i64* %rax.0.reg2mem
br label LBL_22
LBL_19:
%67 = call i64 @FUNC(i64 %arg1, i64 0)
%68 = icmp eq i64 %67, 0
br i1 %68, label LBL_21, label LBL_20
LBL_20:
%69 = call i64 @FUNC(i64 %67, i64 %arg2, i64 %arg3)
store i64 %69, i64* %sv_2, align 8
%70 = call i64 @FUNC(i64 %67)
%71 = load i64, i64* %sv_2, align 8
store i64 %71, i64* %rax.0.reg2mem
br label LBL_22
LBL_21:
%72 = inttoptr i64 %arg2 to i8*
store i8 0, i8* %72, align 1
%73 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_4, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_22
LBL_22:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %67, { 1, 0, 2 }
uselistorder i64 %sv_1.04.reload, { 1, 0, 2 }
uselistorder i64 %18, { 2, 0, 1 }
uselistorder i32 %storemerge7.reload, { 0, 2, 1 }
uselistorder i8* %6, { 1, 0 }
uselistorder i64* %sv_2, { 7, 8, 1, 2, 3, 4, 5, 0, 6 }
uselistorder i32* %storemerge7.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.05.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.04.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 4, 5, 3, 2, 1 }
uselistorder i64 (i64*)* @jsvStringIteratorHasChar, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i32 0, { 3, 2, 4, 5, 6, 7, 0, 1 }
uselistorder i8 0, { 1, 3, 2, 4, 5, 0 }
uselistorder i64 -1, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i64 %arg3, { 6, 5, 0, 1, 2, 4, 3, 7 }
uselistorder i64 %arg2, { 9, 8, 0, 1, 7, 6, 5, 4, 2, 3 }
uselistorder i64 %arg1, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder label LBL_22, { 0, 1, 3, 2, 4, 5, 6 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_6, { 1, 0, 2 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | printDefineFont2_6393 | printDefineFont2 | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%storemerge29.reg2mem = alloca i64
%storemerge11.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%indvars.iv20.reg2mem = alloca i64
%indvars.iv24.reg2mem = alloca i64
%indvars.iv28.reg2mem = alloca i64
%storemerge8.reg2mem = alloca i32
%indvars.iv32.reg2mem = alloca i64
%sv_0.018.reg2mem = alloca i32
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC(i64 %arg1)
%2 = call i64 @FUNC(i64 %arg1)
%3 = trunc i64 %2 to i32
%4 = urem i32 %3, 256
%5 = call i64 @FUNC()
%6 = inttoptr i64 %5 to i8*
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i8* %6)
%8 = icmp eq i32 %4, 0
%9 = icmp eq i1 %8, false
store i32 %4, i32* %sv_0.018.reg2mem
br i1 %9, label LBL_1, label LBL_2
LBL_1:
%sv_0.018.reload = load i32, i32* %sv_0.018.reg2mem
%10 = call i64 @FUNC(i64 %arg1)
%11 = trunc i64 %10 to i32
%12 = urem i32 %11, 256
%13 = call i32 @putchar(i32 %12)
%14 = add i32 %sv_0.018.reload, -1
%15 = icmp eq i32 %14, 0
%16 = icmp slt i32 %14, 0
%17 = icmp eq i1 %16, false
%18 = icmp eq i1 %15, false
%19 = icmp eq i1 %17, %18
store i32 %14, i32* %sv_0.018.reg2mem
br i1 %19, label LBL_1, label LBL_2
LBL_2:
%20 = trunc i64 %0 to i32
%21 = call i32 @putchar(i32 10)
%22 = call i64 @FUNC(i64 %arg1)
%23 = trunc i64 %22 to i32
%24 = urem i32 %23, 65536
%25 = call i64 @FUNC()
%26 = zext i32 %24 to i64
%27 = inttoptr i64 %25 to i8*
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i8* %27, i64 %26)
%29 = mul i32 %24, 4
%30 = call i64* @malloc(i32 %29)
%31 = icmp eq i32 %24, 0
br i1 %31, label LBL_16, label LBL_3
LBL_3:
%32 = ptrtoint i64* %30 to i64
%33 = urem i32 %20, 2
%34 = icmp eq i32 %33, 0
store i64 0, i64* %indvars.iv32.reg2mem
br label LBL_4
LBL_4:
%indvars.iv32.reload = load i64, i64* %indvars.iv32.reg2mem
br i1 %34, label LBL_6, label LBL_5
LBL_5:
%35 = call i64 @FUNC(i64 %arg1)
%36 = trunc i64 %35 to i32
store i32 %36, i32* %storemerge8.reg2mem
br label LBL_7
LBL_6:
%37 = call i64 @FUNC(i64 %arg1)
%38 = trunc i64 %37 to i32
%39 = urem i32 %38, 65536
store i32 %39, i32* %storemerge8.reg2mem
br label LBL_7
LBL_7:
%storemerge8.reload = load i32, i32* %storemerge8.reg2mem
%40 = sub i32 %storemerge8.reload, %29
%41 = add i32 %40, -4
%42 = mul i64 %indvars.iv32.reload, 4
%43 = add i64 %42, %32
%44 = inttoptr i64 %43 to i32*
store i32 %41, i32* %44, align 4
%45 = call i64 @FUNC()
%46 = zext i32 %41 to i64
%47 = inttoptr i64 %45 to i8*
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0), i8* %47, i64 %indvars.iv32.reload, i64 %46)
%indvars.iv.next33 = add nuw nsw i64 %indvars.iv32.reload, 1
%exitcond35 = icmp eq i64 %indvars.iv.next33, %26
store i64 %indvars.iv.next33, i64* %indvars.iv32.reg2mem
store i64 0, i64* %indvars.iv28.reg2mem
br i1 %exitcond35, label LBL_8, label LBL_4
LBL_8:
%indvars.iv28.reload = load i64, i64* %indvars.iv28.reg2mem
%49 = call i64 @FUNC()
%50 = call i64 @FUNC()
%51 = inttoptr i64 %50 to i8*
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_3, i64 0, i64 0), i8* %51, i64 %indvars.iv28.reload)
%53 = call i64 @FUNC(i64 %arg1, i64 4)
%54 = trunc i64 %53 to i32
store i32 %54, i32* %sv_2, align 4
%55 = call i64 @FUNC(i64 %arg1, i64 4)
%56 = trunc i64 %55 to i32
store i32 %56, i32* %sv_1, align 4
%57 = call i64 @FUNC()
br label LBL_9
LBL_9:
%58 = call i64 @FUNC(i64 %arg1, i32* nonnull %sv_2, i32* nonnull %sv_1, i64 2)
%59 = trunc i64 %58 to i32
%60 = icmp eq i32 %59, 0
%61 = icmp eq i1 %60, false
br i1 %61, label LBL_9, label LBL_10
LBL_10:
%62 = call i32 @putchar(i32 10)
%indvars.iv.next29 = add nuw nsw i64 %indvars.iv28.reload, 1
%exitcond31 = icmp eq i64 %indvars.iv.next29, %26
store i64 %indvars.iv.next29, i64* %indvars.iv28.reg2mem
br i1 %exitcond31, label LBL_11, label LBL_8
LBL_11:
%63 = and i32 %20, 2
%64 = icmp eq i32 %63, 0
store i64 0, i64* %indvars.iv24.reg2mem
br label LBL_12
LBL_12:
%indvars.iv24.reload = load i64, i64* %indvars.iv24.reg2mem
br i1 %64, label LBL_14, label LBL_13
LBL_13:
%65 = call i64 @FUNC(i64 %arg1)
%66 = call i64 @FUNC()
%67 = urem i64 %65, 65536
%68 = inttoptr i64 %66 to i8*
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0), i8* %68, i64 %indvars.iv24.reload, i64 %67)
br label LBL_15
LBL_14:
%70 = call i64 @FUNC(i64 %arg1)
%71 = call i64 @FUNC()
%72 = urem i64 %70, 256
%73 = inttoptr i64 %71 to i8*
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0), i8* %73, i64 %indvars.iv24.reload, i64 %72)
br label LBL_15
LBL_15:
%indvars.iv.next25 = add nuw nsw i64 %indvars.iv24.reload, 1
%exitcond27 = icmp eq i64 %indvars.iv.next25, %26
store i64 %indvars.iv.next25, i64* %indvars.iv24.reg2mem
br i1 %exitcond27, label LBL_16, label LBL_12
LBL_16:
%75 = and i32 %20, 4
%76 = icmp eq i32 %75, 0
br i1 %76, label LBL_26, label LBL_17
LBL_17:
%77 = call i64 @FUNC(i64 %arg1)
%78 = call i64 @FUNC()
%79 = and i64 %77, 4294967295
%80 = inttoptr i64 %78 to i8*
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_5, i64 0, i64 0), i8* %80, i64 %79)
%82 = call i64 @FUNC(i64 %arg1)
%83 = call i64 @FUNC()
%84 = and i64 %82, 4294967295
%85 = inttoptr i64 %83 to i8*
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_6, i64 0, i64 0), i8* %85, i64 %84)
%87 = call i64 @FUNC(i64 %arg1)
%88 = call i64 @FUNC()
%89 = and i64 %87, 4294967295
%90 = inttoptr i64 %88 to i8*
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_7, i64 0, i64 0), i8* %90, i64 %89)
store i64 0, i64* %indvars.iv20.reg2mem
br i1 %31, label LBL_20, label LBL_18
LBL_18:
%indvars.iv20.reload = load i64, i64* %indvars.iv20.reg2mem
%92 = call i64 @FUNC(i64 %arg1)
%93 = and i64 %92, 4294967295
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_8, i64 0, i64 0), i64 %indvars.iv20.reload, i64 %93)
%indvars.iv.next21 = add nuw nsw i64 %indvars.iv20.reload, 1
%exitcond23 = icmp eq i64 %indvars.iv.next21, %26
store i64 %indvars.iv.next21, i64* %indvars.iv20.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br i1 %exitcond23, label LBL_19, label LBL_18
LBL_19:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%95 = call i64 @FUNC()
%96 = inttoptr i64 %95 to i8*
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_9, i64 0, i64 0), i8* %96, i64 %indvars.iv.reload)
%98 = call i64 @FUNC(i64 %arg1)
%99 = call i32 @putchar(i32 10)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond19 = icmp eq i64 %indvars.iv.next, %26
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond19, label LBL_20, label LBL_19
LBL_20:
%100 = call i64 @FUNC(i64 %arg1)
%101 = trunc i64 %100 to i32
%102 = urem i32 %101, 65536
%103 = icmp eq i32 %102, 0
br i1 %103, label LBL_26, label LBL_21
LBL_21:
%104 = and i32 %20, 2
%105 = icmp eq i32 %104, 0
store i32 0, i32* %storemerge11.reg2mem
br label LBL_22
LBL_22:
%storemerge11.reload = load i32, i32* %storemerge11.reg2mem
br i1 %105, label LBL_24, label LBL_23
LBL_23:
%106 = call i64 @FUNC(i64 %arg1)
%107 = urem i64 %106, 65536
%108 = call i64 @FUNC(i64 %arg1)
%109 = urem i64 %108, 65536
store i64 %107, i64* %storemerge29.reg2mem
store i64 %109, i64* %storemerge1.reg2mem
br label LBL_25
LBL_24:
%110 = call i64 @FUNC(i64 %arg1)
%111 = urem i64 %110, 256
%112 = call i64 @FUNC(i64 %arg1)
%113 = urem i64 %112, 256
store i64 %111, i64* %storemerge29.reg2mem
store i64 %113, i64* %storemerge1.reg2mem
br label LBL_25
LBL_25:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%storemerge29.reload = load i64, i64* %storemerge29.reg2mem
%114 = call i64 @FUNC(i64 %arg1)
%115 = call i64 @FUNC()
%116 = and i64 %114, 4294967295
%117 = inttoptr i64 %115 to i8*
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_10, i64 0, i64 0), i8* %117, i64 %storemerge29.reload, i64 %storemerge1.reload, i64 %116)
%119 = add nuw nsw i32 %storemerge11.reload, 1
%exitcond = icmp eq i32 %119, %102
store i32 %119, i32* %storemerge11.reg2mem
br i1 %exitcond, label LBL_26, label LBL_22
LBL_26:
%120 = call i32 @putchar(i32 10)
%121 = sext i32 %120 to i64
ret i64 %121
uselistorder i32 %102, { 1, 0 }
uselistorder i64 %indvars.iv24.reload, { 0, 2, 1 }
uselistorder i32 %29, { 1, 0 }
uselistorder i32 %24, { 2, 0, 1 }
uselistorder i32 %20, { 2, 3, 1, 0 }
uselistorder i32* %sv_0.018.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv32.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge8.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv28.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv24.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv20.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge11.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge29.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @readSInt16, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @readBits, { 1, 0 }
uselistorder i64 ()* @byteAlign, { 1, 0 }
uselistorder i64 4, { 1, 2, 0 }
uselistorder i64 (i64)* @readUInt16, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 10, { 2, 1, 0, 3 }
uselistorder i32 (i32)* @putchar, { 4, 3, 2, 0, 1 }
uselistorder i32 0, { 0, 4, 1, 6, 5, 7, 8, 2, 9, 10, 3 }
uselistorder i32 (i8*, ...)* @printf, { 11, 10, 9, 6, 5, 4, 8, 7, 3, 2, 1, 0 }
uselistorder i64 ()* @indent, { 10, 9, 6, 5, 4, 8, 7, 3, 2, 1, 0 }
uselistorder i64 (i64)* @readUInt8, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 0, 1, 3, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | r_io_bank_read_from_submap_at_12450 | r_io_bank_read_from_submap_at | define i64 @FUNC(i64* %arg1, i32 %arg2, i64 %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i64
%.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
store i64 %arg3, i64* %sv_1, align 8
%1 = and i64 %0, 4294967295
%2 = call i64 @FUNC(i64 %1, i64 4294967295)
%3 = zext i32 %arg2 to i64
%4 = call i64 @FUNC(i64 %0, i64 %3)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_14
LBL_1:
%sext = mul i64 %arg5, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_2, label LBL_14
LBL_2:
%11 = inttoptr i64 %4 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label LBL_5, label LBL_3
LBL_3:
%14 = inttoptr i64 %12 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %15, i64 %arg3)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%19 = load i64, i64* %11, align 8
store i64 %19, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_5:
%20 = add i64 %4, 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %22, i64* nonnull %sv_1, i64 4198816, i64 0)
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
store i64 0, i64* %rax.0.reg2mem
br i1 %25, label LBL_6, label LBL_14
LBL_6:
store i64 %23, i64* %11, align 8
store i64 %23, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%26 = inttoptr i64 %sv_0.0.reload to i64*
%27 = load i64, i64* %26, align 8
%28 = load i64, i64* %sv_1, align 8
%29 = call i64 @FUNC(i64 %27, i64 %28)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
store i64 0, i64* %rax.0.reg2mem
br i1 %32, label LBL_8, label LBL_14
LBL_8:
%33 = call i64 @FUNC(i64 %0, i64 %27)
%34 = icmp eq i64 %33, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %34, label LBL_14, label LBL_9
LBL_9:
%35 = inttoptr i64 %33 to i32*
%36 = load i32, i32* %35, align 4
%37 = urem i32 %36, 2
%38 = icmp eq i32 %37, 0
%39 = icmp eq i1 %38, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %39, label LBL_10, label LBL_14
LBL_10:
%40 = call i64 @FUNC(i64 %27)
%sext5 = mul i64 %40, 4294967296
%41 = ashr exact i64 %sext5, 32
%42 = load i64, i64* %sv_1, align 8
%43 = sub i64 1, %42
%44 = add i64 %43, %41
%45 = icmp ult i64 %7, %44
store i64 %42, i64* %.reg2mem
store i64 %7, i64* %storemerge.in.reg2mem
br i1 %45, label LBL_12, label LBL_11
LBL_11:
%46 = call i64 @FUNC(i64 %27)
%47 = load i64, i64* %sv_1, align 8
%48 = add i64 %46, 1
%49 = sub i64 %48, %47
store i64 %47, i64* %.reg2mem
store i64 %49, i64* %storemerge.in.reg2mem
br label LBL_12
LBL_12:
%50 = load i32, i32* %35, align 4
%51 = and i32 %50, 2
%52 = icmp eq i32 %51, 0
store i64 %0, i64* %rax.0.reg2mem
br i1 %52, label LBL_13, label LBL_14
LBL_13:
%53 = ptrtoint i64* %arg4 to i64
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%.reload = load i64, i64* %.reg2mem
%54 = and i64 %storemerge.in.reload, 4294967295
%55 = call i64 @FUNC(i64 %33)
%sext7 = mul i64 %55, 4294967296
%56 = ashr exact i64 %sext7, 32
%57 = add i64 %33, 8
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = add i64 %59, %.reload
%61 = sub i64 %60, %56
%62 = add i64 %33, 16
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = call i64 @FUNC(i64 %0, i32 %64, i64 %61, i64 %53, i64 %54)
store i64 %65, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %11, { 1, 0, 2 }
uselistorder i64* %sv_1, { 1, 2, 3, 0, 4 }
uselistorder i64 %0, { 1, 0, 2, 4, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 8, 1, 3, 2, 4, 5, 6, 7 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i64 (i64)* @r_io_submap_to, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 (i64, i64)* @r_io_submap_contain, { 1, 0 }
uselistorder label LBL_14, { 7, 0, 2, 1, 3, 4, 5, 6 }
uselistorder label LBL_12, { 1, 0 }
} | 1 |
BinRealVul | alloc_4520 | alloc | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = icmp ult i64 %arg1, -16
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0))
unreachable
LBL_2:
%2 = trunc i64 %arg1 to i32
%3 = add i32 %2, 16
%4 = call i64* @malloc(i32 %3)
%5 = icmp eq i64* %4, null
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0))
unreachable
LBL_4:
%8 = ptrtoint i64* %arg2 to i64
%9 = ptrtoint i64* %4 to i64
store i64 %8, i64* %4, align 8
%10 = add i64 %9, 8
%11 = inttoptr i64 %10 to i64*
store i64 0, i64* %11, align 8
%12 = icmp eq i64* %arg2, null
br i1 %12, label LBL_6, label LBL_5
LBL_5:
%13 = add i64 %8, 8
%14 = inttoptr i64 %13 to i64*
store i64 %9, i64* %14, align 8
br label LBL_6
LBL_6:
store i64 %9, i64* %arg2, align 8
%15 = call i64 @FUNC(i64 %9)
ret i64 %15
uselistorder i64 %9, { 1, 2, 0, 3 }
uselistorder i64* %4, { 0, 2, 1 }
uselistorder i64 (i64, i8*)* @internal_errorf, { 1, 0 }
} | 0 |
BinRealVul | mp_init_3965 | mp_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.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_4
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 40, i64 0, i64 0)
%sext = mul i64 %3, 4294967296
%4 = ashr exact i64 %sext, 32
store i64 %4, i64* %arg1, align 8
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%5 = mul i64 %indvars.iv.reload, 4
%6 = add nuw nsw i64 %5, 40
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %7, align 4
%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:
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = add i64 %2, 12
%11 = inttoptr i64 %10 to i32*
store i32 10, i32* %11, align 4
%12 = add i64 %2, 16
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
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* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
reposvul_c_test | io_req_init_async_305 | io_req_init_async | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = urem i32 %2, 2
%4 = zext i32 %3 to i64
%5 = icmp eq i32 %3, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = add i64 %7, 8
%9 = inttoptr i64 %8 to i64*
%10 = call i64* @memset(i64* %9, i32 0, i32 8)
%11 = or i32 %2, 1
%12 = bitcast i64* %arg1 to i32*
store i32 %11, i32* %12, align 4
%13 = add i64 %7, 16
store i64 %13, i64* %9, align 8
store i64 %7, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %3, { 1, 0 }
uselistorder i32 %2, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | apic_get_tmcct_12149 | apic_get_tmcct | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
%2 = icmp eq i1 %1, false
%3 = zext i1 %2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %0, i64 0)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 0, i64* %storemerge.reg2mem
br i1 %8, label LBL_1, label LBL_4
LBL_1:
%9 = call i64 @FUNC(i64 %0)
%10 = call i64 @FUNC(i64 %9, i64 %arg3)
%11 = icmp slt i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 %9, i64* %sv_1.0.reg2mem
store i64 %arg3, i64* %sv_0.0.reg2mem
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = call i64 @FUNC(i64 0, i64 0)
store i64 %13, i64* %sv_1.0.reg2mem
store i64 %9, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%14 = add i64 %0, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %sv_1.0.reload, i64 %sv_0.0.reload)
%19 = call i64 @FUNC(i64 %18, i64 %17)
%20 = add i64 %0, 8
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = mul i32 %22, 100
%24 = zext i32 %23 to i64
%25 = call i64 @FUNC(i64 %19, i64 %24)
%26 = and i64 %25, 4294967295
store i64 %26, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @ktime_to_ns, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | __key_instantiate_and_link_5228 | __key_instantiate_and_link | define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.02.reg2mem = alloca i64
%sv_0.0.ph.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %arg3)
%5 = call i64 @FUNC(i64* nonnull @gv_0)
%6 = trunc i64 %1 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967280, i64* %sv_0.0.ph.reg2mem
br i1 %8, label LBL_10, label LBL_1
LBL_1:
%9 = trunc i64 %2 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 %2, i64* %sv_0.0.ph.reg2mem
br i1 %11, label LBL_10, label LBL_2
LBL_2:
%12 = add i64 %2, 16
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %14)
%16 = call i64 @FUNC(i64 %2, i64 0)
%17 = add i64 %2, 24
%18 = call i64 @FUNC(i64 1, i64 %17)
%19 = icmp eq i64 %arg3, 0
store i64 %17, i64* %rsi.0.reg2mem
br i1 %19, label LBL_6, label LBL_3
LBL_3:
%20 = add i64 %arg3, 24
%21 = call i64 @FUNC(i64 2, i64 %20)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_5, label LBL_4
LBL_4:
%24 = call i64 @FUNC(i64 2, i64 %17)
br label LBL_5
LBL_5:
%25 = ptrtoint i64* %arg5 to i64
%26 = call i64 @FUNC(i64 %2, i64 %25)
store i64 %25, i64* %rsi.0.reg2mem
br label LBL_6
LBL_6:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%27 = icmp eq i64 %arg4, 0
br i1 %27, label LBL_8, label LBL_7
LBL_7:
%28 = call i64 @FUNC(i64 %arg4)
br label LBL_8
LBL_8:
%29 = icmp eq i64 %rsi.0.reload, -1
br i1 %29, label LBL_11, label LBL_9
LBL_9:
%30 = add i64 %2, 32
%31 = inttoptr i64 %30 to i64*
store i64 %rsi.0.reload, i64* %31, align 8
%32 = load i64, i64* @gv_1, align 8
%33 = add i64 %32, %rsi.0.reload
%34 = call i64 @FUNC(i64 %33)
br label LBL_11
LBL_10:
%sv_0.0.ph.reload = load i64, i64* %sv_0.0.ph.reg2mem
%35 = call i64 @FUNC(i64* nonnull @gv_0)
store i64 %sv_0.0.ph.reload, i64* %sv_0.02.reg2mem
br label LBL_13
LBL_11:
%36 = trunc i64 %18 to i32
%37 = icmp ne i32 %36, 0
%38 = call i64 @FUNC(i64* nonnull @gv_0)
%39 = icmp eq i1 %37, false
store i64 %2, i64* %sv_0.02.reg2mem
br i1 %39, label LBL_13, label LBL_12
LBL_12:
%40 = call i64 @FUNC(i64 %17, i64 1)
store i64 %2, i64* %sv_0.02.reg2mem
br label LBL_13
LBL_13:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%41 = and i64 %sv_0.02.reload, 4294967295
ret i64 %41
uselistorder i64 %rsi.0.reload, { 2, 0, 1 }
uselistorder i64 %17, { 1, 2, 0, 3 }
uselistorder i64 %2, { 1, 0, 4, 3, 5, 7, 6, 2, 8, 9 }
uselistorder i64* %sv_0.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.02.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64*)* @mutex_unlock, { 1, 0 }
uselistorder i64* @gv_0, { 1, 0, 2 }
uselistorder i64 (i64)* @key_check, { 1, 0 }
uselistorder i64 %arg4, { 1, 0 }
uselistorder i64 %arg3, { 1, 0, 2 }
uselistorder label LBL_13, { 1, 2, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | client_req_free_4087 | client_req_free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = call i64 @FUNC(i64 %arg1)
%2 = add i64 %arg1, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %arg1)
store i64 %6, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 (i64)* @xfree, { 2, 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | cache_insert_2296 | cache_insert | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %0, 4294967295
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %1)
%4 = call i64 @FUNC(i64 %0, i64 %arg2)
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
%.pre1 = add i64 %0, 8
%.pre2 = inttoptr i64 %.pre1 to i64*
store i64 %6, i64* %.reg2mem
br i1 %8, label LBL_4, label LBL_1
LBL_1:
%9 = load i64, i64* %.pre2, align 8
%10 = call i64 @FUNC(i64 %9)
store i64 %10, i64* %5, align 8
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%14 = call i32 @fwrite(i64* bitcast ([23 x i8]* @gv_1 to i64*), i32 1, i32 22, %_IO_FILE* %13)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_5
LBL_3:
%15 = add i64 %0, 16
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i32 %17, 1
store i32 %18, i32* %16, align 4
%.pre = load i64, i64* %5, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_4
LBL_4:
%.reload = load i64, i64* %.reg2mem
%19 = load i64, i64* %.pre2, align 8
%20 = inttoptr i64 %.reload to i64*
%21 = trunc i64 %19 to i32
%22 = call i64* @memcpy(i64* %20, i64* %arg3, i32 %21)
%23 = add i64 %0, 20
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = add i32 %25, 1
store i32 %26, i32* %24, align 4
%27 = add i64 %4, 16
%28 = inttoptr i64 %27 to i32*
store i32 %26, i32* %28, align 4
%29 = add i64 %4, 8
%30 = inttoptr i64 %29 to i64*
store i64 %arg2, i64* %30, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 2, 1, 0, 4, 3 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 }
uselistorder %_IO_FILE** @gv_0, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 (i64)* @g_assert, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | apm_cpu_idle_4323 | apm_cpu_idle | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = load i32, i32* @gv_0, align 4
%1 = icmp eq i32 %0, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_4, label LBL_1
LBL_1:
%2 = load i32, i32* inttoptr (i64 4210728 to i32*), align 8
%3 = icmp eq i32 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_4, label LBL_2
LBL_2:
%4 = call i64 @FUNC(i64 0, i64 0, i64* nonnull %sv_0)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_0)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 1, { 2, 0, 1 }
uselistorder label LBL_4, { 2, 3, 1, 0 }
} | 0 |
BinRealVul | wilc_wfi_cfg_parse_ch_attr_12275 | wilc_wfi_cfg_parse_ch_attr | define i64 @FUNC(i64* %arg1, i64 %arg2, i8 %arg3) local_unnamed_addr {
LBL_0:
%rax.3.reg2mem = alloca i64
%rax.2.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i32
%.reg2mem45 = alloca i64
%sv_0.0.reg2mem = alloca i8
%sv_1.0.reg2mem = alloca i8
%sv_2.015.reg2mem = alloca i32
%sv_1.116.reg2mem = alloca i8
%sv_0.117.reg2mem = alloca i8
%.reg2mem = alloca i64
%0 = sext i8 %arg3 to i64
%1 = and i64 %0, 4294967295
%2 = icmp eq i8 %arg3, -1
store i64 %1, i64* %rax.3.reg2mem
br i1 %2, label LBL_15, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = and i64 %arg2, 4294967295
%5 = icmp ult i64 %4, 4
store i64 0, i64* %.reg2mem
store i8 0, i8* %sv_0.117.reg2mem
store i8 0, i8* %sv_1.116.reg2mem
store i32 0, i32* %sv_2.015.reg2mem
store i64 %4, i64* %rax.3.reg2mem
br i1 %5, label LBL_15, label LBL_2
LBL_2:
%sv_2.015.reload = load i32, i32* %sv_2.015.reg2mem
%sv_0.117.reload = load i8, i8* %sv_0.117.reg2mem
%.reload = load i64, i64* %.reg2mem
%6 = add i64 %.reload, %3
%7 = inttoptr i64 %6 to i8*
%8 = load i8, i8* %7, align 1
%9 = icmp eq i8 %8, 1
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = trunc i32 %sv_2.015.reload to i8
store i8 %11, i8* %sv_1.0.reg2mem
store i8 %sv_0.117.reload, i8* %sv_0.0.reg2mem
br label LBL_5
LBL_4:
%sv_1.116.reload = load i8, i8* %sv_1.116.reg2mem
%12 = icmp eq i8 %8, 2
%13 = icmp eq i1 %12, false
%14 = trunc i32 %sv_2.015.reload to i8
%spec.select = select i1 %13, i8 %sv_0.117.reload, i8 %14
store i8 %sv_1.116.reload, i8* %sv_1.0.reg2mem
store i8 %spec.select, i8* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i8, i8* %sv_0.0.reg2mem
%sv_1.0.reload = load i8, i8* %sv_1.0.reg2mem
%15 = icmp ne i8 %sv_1.0.reload, 0
%16 = icmp eq i8 %sv_0.0.reload, 0
%17 = icmp eq i1 %16, false
%or.cond = icmp eq i1 %15, %17
br i1 %or.cond, label LBL_8, label LBL_6
LBL_6:
%18 = add i64 %6, 2
%19 = inttoptr i64 %18 to i16*
%20 = load i16, i16* %19, align 2
%21 = zext i16 %20 to i64
%22 = call i64 @FUNC(i64 %21)
%23 = trunc i64 %22 to i32
%24 = urem i32 %23, 65536
%25 = add i32 %sv_2.015.reload, 4
%26 = add i32 %25, %24
%27 = zext i32 %26 to i64
%28 = add nuw nsw i64 %27, 4
%29 = icmp ugt i64 %28, %4
store i64 %27, i64* %.reg2mem
store i8 %sv_0.0.reload, i8* %sv_0.117.reg2mem
store i8 %sv_1.0.reload, i8* %sv_1.116.reg2mem
store i32 %26, i32* %sv_2.015.reg2mem
br i1 %29, label LBL_7, label LBL_2
LBL_7:
%30 = icmp eq i8 %sv_1.0.reload, 0
store i64 %4, i64* %rax.2.reg2mem
br i1 %30, label LBL_13, label LBL_8
LBL_8:
%31 = zext i8 %sv_1.0.reload to i64
%32 = add i64 %31, %3
%33 = add i64 %32, 2
%34 = inttoptr i64 %33 to i16*
%35 = load i16, i16* %34, align 2
%36 = zext i16 %35 to i64
%37 = call i64 @FUNC(i64 %36)
%38 = urem i64 %37, 65536
%39 = icmp eq i64 %38, 0
store i64 0, i64* %rax.2.reg2mem
br i1 %39, label LBL_13, label LBL_9
LBL_9:
%40 = add i64 %32, 4
store i64 0, i64* %.reg2mem45
store i32 0, i32* %storemerge14.reg2mem
br label LBL_10
LBL_10:
%.reload46 = load i64, i64* %.reg2mem45
%41 = add i64 %40, %.reload46
%42 = inttoptr i64 %41 to i8*
%43 = load i8, i8* %42, align 1
%44 = icmp eq i8 %43, 1
%45 = icmp eq i1 %44, false
%46 = add i64 %41, 1
%47 = inttoptr i64 %46 to i8*
%48 = load i8, i8* %47, align 1
%49 = zext i8 %48 to i32
br i1 %45, label LBL_12, label LBL_11
LBL_11:
%50 = add i64 %41, 2
%51 = zext i8 %arg3 to i32
%52 = inttoptr i64 %50 to i64*
%53 = call i64* @memset(i64* %52, i32 %51, i32 %49)
%54 = ptrtoint i64* %53 to i64
store i64 %54, i64* %rax.3.reg2mem
br i1 %16, label LBL_15, label LBL_14
LBL_12:
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
%55 = add i32 %storemerge14.reload, %49
%56 = sext i32 %55 to i64
%57 = icmp sgt i64 %38, %56
store i64 %56, i64* %.reg2mem45
store i32 %55, i32* %storemerge14.reg2mem
store i64 %38, i64* %rax.2.reg2mem
br i1 %57, label LBL_10, label LBL_13
LBL_13:
%rax.2.reload = load i64, i64* %rax.2.reg2mem
store i64 %rax.2.reload, i64* %rax.3.reg2mem
br i1 %16, label LBL_15, label LBL_14
LBL_14:
%58 = zext i8 %sv_0.0.reload to i64
%59 = add i64 %58, %3
%60 = add i64 %59, 4
%61 = inttoptr i64 %60 to i8*
store i8 1, i8* %61, align 1
%62 = add i64 %59, 5
%63 = inttoptr i64 %62 to i8*
store i8 %arg3, i8* %63, align 1
store i64 %59, i64* %rax.3.reg2mem
br label LBL_15
LBL_15:
%rax.3.reload = load i64, i64* %rax.3.reg2mem
ret i64 %rax.3.reload
uselistorder i32 %49, { 1, 0 }
uselistorder i8 %sv_1.0.reload, { 2, 1, 3, 0 }
uselistorder i8 %sv_0.0.reload, { 1, 2, 0 }
uselistorder i8 %sv_0.117.reload, { 1, 0 }
uselistorder i32 %sv_2.015.reload, { 0, 2, 1 }
uselistorder i64 %4, { 1, 3, 0, 2 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i8* %sv_0.117.reg2mem, { 2, 0, 1 }
uselistorder i8* %sv_1.116.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.015.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem45, { 1, 0, 2 }
uselistorder i32* %storemerge14.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.3.reg2mem, { 0, 3, 4, 1, 2, 5 }
uselistorder i64 (i64)* @le16_to_cpu, { 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3 }
uselistorder i8 1, { 2, 1, 0 }
uselistorder i8 0, { 3, 2, 4, 0, 1 }
uselistorder i64 4, { 2, 1, 3, 0 }
uselistorder i8 %arg3, { 1, 0, 2, 3 }
uselistorder label LBL_15, { 3, 4, 0, 1, 2 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | touch_10926 | touch | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = inttoptr i64 %arg1 to i8*
%1 = call i32 (i8*, i32, ...) @open(i8* %0, i32 131266)
%2 = icmp eq i32 %1, -1
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = call i32* @__errno_location()
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 17
%7 = icmp eq i1 %6, false
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_4
LBL_2:
%8 = call i32* @__errno_location()
%9 = load i32, i32* %8, align 4
%10 = call i8* @strerror(i32 %9)
%11 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%12 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %11, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0), i8* %0, i8* %10)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%13 = call i32 @close(i32 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 0 |
BinRealVul | mp4info_7254 | mp4info | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i128
%rax.0.reg2mem = alloca i64
%1 = load i128, i128* %0
%2 = load i128, i128* %0
%3 = load i128, i128* %0
%4 = load i32, i32* @gv_0, align 4
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%8 = inttoptr i64 %6 to i8*
%9 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %7, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0), i8* %8)
%10 = load i32, i32* @gv_3, align 4
%11 = zext i32 %10 to i64
%12 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%13 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %12, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_4, i64 0, i64 0), i64 %11)
%14 = load i32, i32* @gv_5, align 4
%15 = zext i32 %14 to i64
%16 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%17 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %16, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_6, i64 0, i64 0), i64 %15)
%18 = load i32, i32* @gv_7, align 4
%19 = zext i32 %18 to i64
%20 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%21 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %20, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_8, i64 0, i64 0), i64 %19)
%22 = load i32, i32* @gv_9, align 4
%23 = zext i32 %22 to i64
%24 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%25 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %24, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_10, i64 0, i64 0), i64 %23)
%26 = load i32, i32* @gv_11, align 4
%27 = zext i32 %26 to i64
%28 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%29 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %28, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_12, i64 0, i64 0), i64 %27)
%30 = load i32, i32* @gv_13, align 4
%31 = zext i32 %30 to i64
%32 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%33 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %32, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_14, i64 0, i64 0), i64 %31)
%34 = load i32, i32* @gv_15, align 4
%35 = zext i32 %34 to i64
%36 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%37 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %36, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_16, i64 0, i64 0), i64 %35)
%38 = load i32, i32* @gv_17, align 4
%39 = zext i32 %38 to i64
%40 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%41 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %40, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_18, i64 0, i64 0), i64 %39)
%42 = load i32, i32* @gv_19, align 4
%43 = zext i32 %42 to i64
%44 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%45 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %44, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_20, i64 0, i64 0), i64 %43)
%46 = load i32, i32* @gv_5, align 4
%47 = call i128 @FUNC(i128 %3, i128 %3)
%48 = call i128 @FUNC(i32 %46)
%49 = load i32, i32* @gv_3, align 4
%50 = call i128 @FUNC(i128 %2, i128 %2)
%51 = call i128 @FUNC(i32 %49)
%52 = call i128 @FUNC(i128 %48, i128 %51)
%53 = call i128 @FUNC(i128 %1, i128 %1)
%54 = call i128 @FUNC(i128 %52)
%55 = call i64 @FUNC(i128 %54)
%56 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%57 = call i128 @__asm_movq.1(i64 %55)
%58 = trunc i128 %57 to i64
%59 = bitcast i64 %58 to double
%60 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %56, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_21, i64 0, i64 0), double %59)
%61 = load i32, i32* @gv_17, align 4
%62 = icmp eq i32 %61, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %62, label LBL_2, label LBL_1
LBL_1:
%63 = load i32, i32* @gv_22, align 4
%64 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%65 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %64, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_23, i64 0, i64 0), i32 %63)
%66 = sext i32 %65 to i64
store i64 %66, 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 i128* %0, { 2, 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 9, 11, 10, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder %_IO_FILE** @gv_1, { 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 1, { 1, 0 }
} | 0 |
BinRealVul | brcmf_rx_frame_13194 | brcmf_rx_frame | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%2 = call i64 @FUNC(i64 %1)
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %1)
%6 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %5, i64 %0)
%7 = call i64 @FUNC(i64 %4, i64 %0, i64* nonnull %sv_0)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 %7, i64* %rax.0.reg2mem
br i1 %10, label LBL_6, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 %0)
%12 = trunc i64 %11 to i8
%13 = icmp eq i8 %12, 0
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = load i64, i64* %sv_0, align 8
%15 = call i64 @FUNC(i64 %14, i64 %0)
store i64 %15, i64* %rax.0.reg2mem
br label LBL_6
LBL_3:
%16 = trunc i64 %arg3 to i8
%17 = icmp eq i8 %16, 0
br i1 %17, label LBL_5, label LBL_4
LBL_4:
%18 = load i64, i64* %sv_0, align 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = call i64 @FUNC(i64 %20, i64 %0)
br label LBL_5
LBL_5:
%22 = load i64, i64* %sv_0, align 8
%23 = call i64 @FUNC(i64 %22, i64 %0)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_0, { 1, 2, 3, 0 }
uselistorder i64 %0, { 2, 1, 0, 3, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder label LBL_6, { 1, 2, 0 }
} | 1 |
BinRealVul | add_av_stream1_918 | add_av_stream1 | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 16)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%3 = inttoptr i64 %0 to i32*
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 4)
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
store i64 %5, i64* %7, align 8
store i32 ptrtoint (i64* @gv_0 to i32), i32* %3, align 4
%8 = add i64 %4, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i32 %10, 1
store i32 %11, i32* %9, align 4
%12 = sext i32 %10 to i64
%13 = mul i64 %12, 8
%14 = or i64 %13, 4
%15 = inttoptr i64 %14 to i64*
store i64 %0, i64* %15, 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* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @av_mallocz, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | w64_read_header_16676 | w64_read_header | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %3, i64* nonnull %sv_0, i64 16)
%8 = call i32 @memcmp(i64* nonnull %sv_0, i64* nonnull @gv_0, i32 16)
%9 = icmp eq i32 %8, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %9, label LBL_1, label LBL_10
LBL_1:
%10 = call i64 @FUNC(i64 %3)
%11 = icmp sgt i64 %10, 71
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %11, label LBL_2, label LBL_10
LBL_2:
%12 = ptrtoint i64* %sv_0 to i64
%13 = call i64 @FUNC(i64 %3, i64* nonnull %sv_0, i64 16)
%14 = call i32 @memcmp(i64* nonnull %sv_0, i64* nonnull @gv_1, i32 16)
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = call i64 @FUNC(i64 %3, i64 16, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_2, i64 0, i64 0), i64 %12, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_10
LBL_4:
%17 = call i64 @FUNC(i64 %3, i64* nonnull @gv_3)
%18 = icmp slt i64 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = call i64 @FUNC(i64 %3, i64 16, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_4, i64 0, i64 0), i64 %12, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_10
LBL_6:
%21 = call i64 @FUNC(i64 %3, i64 0)
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %23, label LBL_7, label LBL_10
LBL_7:
%24 = add i64 %17, 4294967272
%25 = and i64 %24, 4294967295
%26 = inttoptr i64 %21 to i64*
%27 = load i64, i64* %26, align 8
%28 = call i64 @FUNC(i64 %3, i64 %27, i64 %25)
%sext = mul i64 %17, 4294967296
%29 = ashr exact i64 %sext, 32
%30 = add nsw i64 %29, 7
%31 = and i64 %30, -8
%32 = sub nsw i64 %31, %29
%33 = call i64 @FUNC(i64 %3, i64 %32)
%34 = add i64 %21, 8
%35 = inttoptr i64 %34 to i32*
store i32 1, i32* %35, align 4
%36 = load i64, i64* %26, align 8
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = zext i32 %38 to i64
%40 = call i64 @FUNC(i64 %21, i64 64, i64 1, i64 %39)
%41 = call i64 @FUNC(i64 %3, i64* nonnull @gv_5)
%42 = icmp slt i64 %41, 0
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_9, label LBL_8
LBL_8:
%44 = call i64 @FUNC(i64 %3, i64 16, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_6, i64 0, i64 0), i64 %39, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_10
LBL_9:
%45 = call i64 @FUNC(i64 %3)
%sext2 = mul i64 %41, 4294967296
%46 = ashr exact i64 %sext2, 32
%47 = add nsw i64 %46, -24
%48 = add i64 %47, %45
%49 = inttoptr i64 %6 to i64*
store i64 %48, i64* %49, align 8
%50 = add i64 %6, 8
%51 = inttoptr i64 %50 to i32*
store i32 1, i32* %51, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %29, { 1, 0 }
uselistorder i64 %12, { 1, 0 }
uselistorder i64* %sv_0, { 0, 1, 4, 2, 3 }
uselistorder i64 %3, { 2, 1, 3, 4, 5, 6, 7, 8, 0, 9, 10, 11, 12 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 1, 5, 4, 2, 3 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 64, { 2, 0, 1 }
uselistorder i64 (i64, i64*)* @find_guid, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 1, 0 }
uselistorder i64 4294967295, { 4, 5, 3, 2, 0, 1, 6 }
uselistorder i32 (i64*, i64*, i32)* @memcmp, { 1, 0 }
uselistorder i64 (i64, i64*, i64)* @avio_read, { 1, 0 }
uselistorder label LBL_10, { 3, 4, 0, 5, 6, 1, 2 }
} | 1 |
BinRealVul | ps_add_squares_c_329 | ps_add_squares_c | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = icmp sgt i32 %arg3, 0
store i64 0, i64* %storemerge.lcssa.reg2mem
br i1 %0, label LBL_1, label LBL_3
LBL_1:
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i32* %arg1 to i64
%wide.trip.count = zext i32 %arg3 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%3 = mul i64 %indvars.iv.reload, 8
%4 = add i64 %3, %1
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = call i128 @__asm_movss.1(i32 %7)
%9 = load i32, i32* %6, align 4
%10 = call i128 @__asm_movss.1(i32 %9)
%11 = inttoptr i64 %4 to i32*
%12 = load i32, i32* %11, align 4
%13 = call i128 @__asm_movss.1(i32 %12)
%14 = load i32, i32* %11, align 4
%15 = call i128 @FUNC(i128 %8)
%16 = call i128 @FUNC(i128 %10)
%17 = call i128 @FUNC(i128 %13)
%18 = call i128 @FUNC(i32 %14)
%19 = call i128 @FUNC()
%20 = mul i64 %indvars.iv.reload, 4
%21 = add i64 %20, %2
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = call i128 @__asm_movss.1(i32 %23)
%25 = call i128 @FUNC(i128 %19, i128 %24)
%26 = call i64 @FUNC(i128 %25)
%27 = trunc i64 %26 to i32
store i32 %27, i32* %22, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %wide.trip.count, i64* %storemerge.lcssa.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
} | 0 |
BinRealVul | v9fs_renameat_203 | v9fs_renameat | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%sv_3 = alloca i8*, align 8
%sv_4 = alloca i8*, align 8
%1 = bitcast i8** %sv_4 to i64*
%2 = call i64 @FUNC(i64* nonnull %1)
%3 = bitcast i8** %sv_3 to i64*
%4 = call i64 @FUNC(i64* nonnull %3)
%5 = bitcast i32* %sv_1 to i64*
%6 = bitcast i32* %sv_2 to i64*
%7 = call i64 @FUNC(i64 %0, i64 7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %5, i64* nonnull %1, i64* nonnull %6, i64* nonnull %3)
%8 = icmp slt i64 %7, 0
store i64 %7, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_8, label LBL_1
LBL_1:
%9 = load i8*, i8** %sv_4, align 8
%10 = ptrtoint i8* %9 to i64
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i64 -2, i64* %sv_0.0.reg2mem
br i1 %14, label LBL_8, label LBL_2
LBL_2:
%15 = load i8*, i8** %sv_3, align 8
%16 = ptrtoint i8* %15 to i64
%17 = call i64 @FUNC(i64 %16)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
store i64 -2, i64* %sv_0.0.reg2mem
br i1 %19, label LBL_3, label LBL_8
LBL_3:
%20 = load i8*, i8** %sv_4, align 8
%21 = call i32 @strcmp(i8* inttoptr (i64 4202517 to i8*), i8* %20)
%22 = icmp eq i32 %21, 0
store i64 -21, i64* %sv_0.0.reg2mem
br i1 %22, label LBL_8, label LBL_4
LBL_4:
%23 = load i8*, i8** %sv_4, align 8
%24 = call i32 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i8* %23)
%25 = icmp eq i32 %24, 0
store i64 -21, i64* %sv_0.0.reg2mem
br i1 %25, label LBL_8, label LBL_5
LBL_5:
%26 = load i8*, i8** %sv_3, align 8
%27 = call i32 @strcmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_2, i64 0, i64 0), i8* %26)
%28 = icmp eq i32 %27, 0
store i64 -21, i64* %sv_0.0.reg2mem
br i1 %28, label LBL_8, label LBL_6
LBL_6:
%29 = load i8*, i8** %sv_3, align 8
%30 = call i32 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i8* %29)
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
store i64 -21, i64* %sv_0.0.reg2mem
br i1 %32, label LBL_7, label LBL_8
LBL_7:
%33 = call i64 @FUNC(i64 %0)
%34 = load i32, i32* %sv_2, align 4
%35 = zext i32 %34 to i64
%36 = load i32, i32* %sv_1, align 4
%37 = zext i32 %36 to i64
%38 = call i64 @FUNC(i64 %0, i64 %37, i64* nonnull %1, i64 %35, i64* nonnull %3)
%39 = call i64 @FUNC(i64 %0)
%40 = icmp eq i64 %38, 0
%41 = icmp eq i1 %40, false
%spec.select = select i1 %41, i64 %38, i64 7
store i64 %spec.select, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%42 = call i64 @FUNC(i64 %0, i64 %sv_0.0.reload)
%43 = call i64 @FUNC(i64* nonnull %1)
%44 = call i64 @FUNC(i64* nonnull %3)
ret i64 %44
uselistorder i64* %3, { 1, 0, 2, 3 }
uselistorder i64* %1, { 1, 0, 2, 3 }
uselistorder i8** %sv_4, { 2, 1, 0, 3 }
uselistorder i8** %sv_3, { 2, 1, 0, 3 }
uselistorder i64 %0, { 3, 0, 1, 2, 4 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 5, 4, 3, 2, 7, 6, 8 }
uselistorder i64 (i64*)* @v9fs_string_free, { 1, 0 }
uselistorder i64 -21, { 3, 2, 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 3, 2, 0 }
uselistorder i64 -2, { 1, 0 }
uselistorder i64 (i64)* @name_is_illegal, { 1, 0 }
uselistorder i64 (i64*)* @v9fs_string_init, { 1, 0 }
uselistorder label LBL_8, { 0, 4, 3, 2, 1, 6, 5, 7 }
} | 0 |
BinRealVul | irda_getname_13798 | irda_getname | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge2.in.in.reg2mem = alloca i64
%sv_0.0.in.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%4 = trunc i64 %arg4 to i32
%5 = call i64 @FUNC(i64 %3)
%6 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 12)
%7 = icmp eq i32 %4, 0
br i1 %7, label LBL_3, label LBL_1
LBL_1:
%8 = trunc i64 %1 to i32
%9 = icmp eq i32 %8, 1
store i64 1, i64* %storemerge.reg2mem
br i1 %9, label LBL_2, label LBL_5
LBL_2:
store i64 1, i64* %sv_1, align 8
%10 = add i64 %5, 4
store i64 %5, i64* %sv_0.0.in.in.reg2mem
store i64 %10, i64* %storemerge2.in.in.reg2mem
br label LBL_4
LBL_3:
store i64 1, i64* %sv_1, align 8
%11 = add i64 %5, 8
%12 = add i64 %5, 12
store i64 %11, i64* %sv_0.0.in.in.reg2mem
store i64 %12, i64* %storemerge2.in.in.reg2mem
br label LBL_4
LBL_4:
%13 = trunc i64 %2 to i32
%storemerge2.in.in.reload = load i64, i64* %storemerge2.in.in.reg2mem
%sv_0.0.in.in.reload = load i64, i64* %sv_0.0.in.in.reg2mem
%sv_0.0.in = inttoptr i64 %sv_0.0.in.in.reload to i32*
%sv_0.0 = load i32, i32* %sv_0.0.in, align 4
%storemerge2.in = inttoptr i64 %storemerge2.in.in.reload to i32*
%storemerge2 = load i32, i32* %storemerge2.in, align 4
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i32 %sv_0.0)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i32 %storemerge2)
%16 = bitcast i64* %arg3 to i32*
store i32 12, i32* %16, align 4
%17 = call i64* @memcpy(i64* %arg2, i64* nonnull %sv_1, i32 %13)
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %5, { 1, 2, 0, 3 }
uselistorder i64* %sv_1, { 0, 2, 3, 1 }
uselistorder i64* %sv_0.0.in.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge2.in.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 12, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | aux_slave_class_init_719 | aux_slave_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %1, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = call i64 @FUNC(i64 1, i64 %3)
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
store i32 2, i32* %6, align 4
ret i64 %2
uselistorder i64 %2, { 1, 0 }
} | 0 |
BinRealVul | scsi_bus_legacy_add_drive_16593 | scsi_bus_legacy_add_drive | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%. = select i1 %4, i64 ptrtoint ([10 x i8]* @gv_0 to i64), i64 ptrtoint ([13 x i8]* @gv_1 to i64)
%5 = call i64 @FUNC(i64 %1, i64 %.)
%6 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_2, i64 0, i64 0), i32 %arg3)
%7 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0), i64 %0)
%8 = call i64 @FUNC(i64 %5)
ret i64 %5
} | 1 |
BinRealVul | signed_shift_3575 | signed_shift | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge4.reg2mem = alloca i64
%sext = mul i64 %arg1, 4294967296
%0 = ashr exact i64 %sext, 32
%1 = trunc i64 %arg2 to i32
%sext3 = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext3, 32
%3 = icmp slt i32 %1, 1
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = and i64 %0, 4294967295
%5 = trunc i64 %2 to i32
%6 = urem i32 %5, 32
%7 = icmp eq i32 %6, 0
%8 = trunc i64 %0 to i32
%9 = shl i32 %8, %6
%10 = zext i32 %9 to i64
%rdx.0 = select i1 %7, i64 %4, i64 %10
store i64 %rdx.0, i64* %storemerge4.reg2mem
br label LBL_3
LBL_2:
%11 = trunc i64 %2 to i32
%12 = sub i32 0, %11
%13 = and i64 %0, 4294967295
%14 = urem i32 %12, 32
%15 = icmp eq i32 %14, 0
%16 = trunc i64 %0 to i32
%17 = ashr i32 %16, %14
%18 = zext i32 %17 to i64
%storemerge = select i1 %15, i64 %13, i64 %18
store i64 %storemerge, i64* %storemerge4.reg2mem
br label LBL_3
LBL_3:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
ret i64 %storemerge4.reload
uselistorder i32 %14, { 1, 0 }
uselistorder i32 %6, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %0, { 3, 2, 1, 0 }
uselistorder i64* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | gigaset_initdriver_17812 | gigaset_initdriver | define i64 @FUNC(i64 %arg1, i64 %arg2, i8* %arg3, i8* %arg4, i64* %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = call i64* @malloc(i32 56)
%1 = icmp eq i64* %0, null
%2 = icmp eq i1 %1, false
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_8
LBL_1:
%3 = ptrtoint i64* %0 to i64
%4 = ptrtoint i64* %arg5 to i64
%5 = bitcast i64* %0 to i32*
store i32 0, i32* %5, align 4
%6 = trunc i64 %arg1 to i32
%7 = add i64 %3, 4
%8 = inttoptr i64 %7 to i32*
store i32 %6, i32* %8, align 4
%9 = trunc i64 %arg2 to i32
%10 = add i64 %3, 8
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 4
%12 = add i64 %3, 12
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
%14 = add i64 %3, 16
%15 = inttoptr i64 %14 to i64*
store i64 %4, i64* %15, align 8
%16 = add i64 %3, 48
%17 = inttoptr i64 %16 to i64*
store i64 %arg6, i64* %17, align 8
%18 = mul i32 %9, 32
%19 = call i64* @malloc(i32 %18)
%20 = ptrtoint i64* %19 to i64
%21 = add i64 %3, 24
%22 = inttoptr i64 %21 to i64*
store i64 %20, i64* %22, align 8
%23 = icmp eq i64* %19, null
br i1 %23, label LBL_7, label LBL_2
LBL_2:
%24 = icmp eq i32 %9, 0
br i1 %24, label LBL_6, label LBL_3
LBL_3:
%wide.trip.count = and i64 %arg2, 4294967295
store i64 %20, i64* %.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%.reload = load i64, i64* %.reg2mem
%25 = mul i64 %indvars.iv.reload, 32
%26 = add i64 %25, %.reload
%27 = inttoptr i64 %26 to i64*
store i64 0, i64* %27, align 8
%28 = load i64, i64* %22, align 8
%29 = or i64 %25, 8
%30 = add i64 %29, %28
%31 = inttoptr i64 %30 to i64*
store i64 %3, i64* %31, align 8
%32 = load i64, i64* %22, align 8
%33 = load i64, i64* %15, align 8
%34 = or i64 %25, 16
%35 = add i64 %32, %34
%36 = inttoptr i64 %35 to i64*
store i64 %33, i64* %36, align 8
%37 = load i64, i64* %22, align 8
%38 = or i64 %25, 24
%39 = add i64 %37, %38
%40 = inttoptr i64 %39 to i32*
%41 = trunc i64 %indvars.iv.reload to i32
store i32 %41, i32* %40, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
br i1 %exitcond, label LBL_6, label LBL_4.LBL_4_crit_edge
LBL_5:
%.pre = load i64, i64* %22, align 8
store i64 %.pre, i64* %.reg2mem
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_6:
%42 = ptrtoint i8* %arg4 to i64
%43 = ptrtoint i8* %arg3 to i64
%44 = call i64 @FUNC(i64 %3, i64 %43, i64 %42)
store i64 %3, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
call void @free(i64* null)
call void @free(i64* nonnull %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %25, { 2, 1, 0, 3 }
uselistorder i32 %9, { 1, 0, 2 }
uselistorder i64* %0, { 0, 1, 3, 2 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* (i32)* @malloc, { 1, 0 }
uselistorder label LBL_8, { 1, 2, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | net_socket_send_14612 | net_socket_send | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.2.reg2mem = alloca i64
%sv_0.0.ph6.reg2mem = alloca i32
%sv_1.0.ph7.reg2mem = alloca i64
%rax.1.ph.be.reg2mem = alloca i64
%sv_1.0.ph.be.reg2mem = alloca i64
%sv_0.0.ph.be.reg2mem = alloca i32
%1 = load i64, i64* %0
%sv_2 = alloca i64, align 8
%2 = trunc i64 %1 to i32
%3 = call i32 @recv(i32 %2, i64* nonnull %sv_2, i32 4096, i32 0)
%4 = icmp slt i32 %3, 0
%5 = icmp eq i1 %4, false
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, 11
br i1 %8, label LBL_4, label LBL_3
LBL_2:
%9 = icmp eq i32 %3, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = and i64 %1, 4294967295
%12 = call i64 @FUNC(i64 %11, i64 0, i64 0, i64 0)
%13 = call i64 @FUNC(i64 %11)
store i64 %13, i64* %rax.2.reg2mem
br label LBL_13
LBL_4:
%14 = ptrtoint i64* %sv_2 to i64
%15 = icmp eq i32 %3, 0
%16 = icmp eq i1 %15, false
%17 = icmp eq i1 %5, %16
store i64 %14, i64* %rax.2.reg2mem
br i1 %17, label LBL_5, label LBL_13
LBL_5:
%18 = ptrtoint i64* %arg1 to i64
%19 = add i64 %18, 4
%20 = inttoptr i64 %19 to i32*
%21 = add i64 %18, 12
%22 = inttoptr i64 %21 to i32*
%23 = add i64 %18, 8
%24 = inttoptr i64 %23 to i32*
%25 = add i64 %18, 16
%26 = add i64 %18, 4112
%27 = inttoptr i64 %26 to i64*
%28 = inttoptr i64 %25 to i32*
store i64 %14, i64* %sv_1.0.ph7.reg2mem
store i32 %3, i32* %sv_0.0.ph6.reg2mem
br label LBL_6.lr.ph
LBL_6:
switch i32 %71, label LBL_6 [
i32 0, label LBL_7
i32 1, label LBL_10
]
LBL_7:
%29 = load i32, i32* %24, align 4
%30 = sub i32 4, %29
%31 = icmp sgt i32 %30, %sv_0.0.ph6.reload
%spec.select = select i1 %31, i32 %sv_0.0.ph6.reload, i32 %30
%32 = sext i32 %29 to i64
%33 = add i64 %25, %32
%34 = inttoptr i64 %33 to i64*
%35 = inttoptr i64 %sv_1.0.ph7.reload to i64*
%36 = call i64* @memcpy(i64* %34, i64* %35, i32 %spec.select)
%37 = sext i32 %spec.select to i64
%38 = add i64 %sv_1.0.ph7.reload, %37
%39 = sub i32 %sv_0.0.ph6.reload, %spec.select
%40 = load i32, i32* %24, align 4
%41 = add i32 %spec.select, %40
store i32 %41, i32* %24, align 4
%42 = zext i32 %41 to i64
%43 = icmp eq i32 %41, 4
%44 = icmp eq i1 %43, false
store i32 %39, i32* %sv_0.0.ph.be.reg2mem
store i64 %38, i64* %sv_1.0.ph.be.reg2mem
store i64 %42, i64* %rax.1.ph.be.reg2mem
br i1 %44, label LBL_8, label LBL_9
LBL_8:
%rax.1.ph.be.reload = load i64, i64* %rax.1.ph.be.reg2mem
%sv_1.0.ph.be.reload = load i64, i64* %sv_1.0.ph.be.reg2mem
%sv_0.0.ph.be.reload = load i32, i32* %sv_0.0.ph.be.reg2mem
%45 = icmp eq i32 %sv_0.0.ph.be.reload, 0
%46 = icmp slt i32 %sv_0.0.ph.be.reload, 0
%47 = icmp eq i1 %46, false
%48 = icmp eq i1 %45, false
%49 = icmp eq i1 %47, %48
store i64 %sv_1.0.ph.be.reload, i64* %sv_1.0.ph7.reg2mem
store i32 %sv_0.0.ph.be.reload, i32* %sv_0.0.ph6.reg2mem
store i64 %rax.1.ph.be.reload, i64* %rax.2.reg2mem
br i1 %49, label LBL_6.lr.ph, label LBL_13
LBL_9:
%50 = load i32, i32* %28, align 4
%51 = call i32 @ntohl(i32 %50)
store i32 %51, i32* %22, align 4
store i32 0, i32* %24, align 4
store i32 1, i32* %20, align 4
store i32 %39, i32* %sv_0.0.ph.be.reg2mem
store i64 %38, i64* %sv_1.0.ph.be.reg2mem
store i64 %18, i64* %rax.1.ph.be.reg2mem
br label LBL_8
LBL_10:
%52 = load i32, i32* %22, align 4
%53 = load i32, i32* %24, align 4
%54 = sub i32 %52, %53
%55 = icmp sgt i32 %54, %sv_0.0.ph6.reload
%spec.select1 = select i1 %55, i32 %sv_0.0.ph6.reload, i32 %54
%56 = sext i32 %53 to i64
%57 = add i64 %25, %56
%58 = inttoptr i64 %57 to i64*
%59 = inttoptr i64 %sv_1.0.ph7.reload to i64*
%60 = call i64* @memcpy(i64* %58, i64* %59, i32 %spec.select1)
%61 = load i32, i32* %24, align 4
%62 = add i32 %spec.select1, %61
store i32 %62, i32* %24, align 4
%63 = sext i32 %spec.select1 to i64
%64 = add i64 %sv_1.0.ph7.reload, %63
%65 = sub i32 %sv_0.0.ph6.reload, %spec.select1
%66 = load i32, i32* %22, align 4
%67 = zext i32 %66 to i64
%68 = icmp ult i32 %62, %66
store i32 %65, i32* %sv_0.0.ph.be.reg2mem
store i64 %64, i64* %sv_1.0.ph.be.reg2mem
store i64 %67, i64* %rax.1.ph.be.reg2mem
br i1 %68, label LBL_8, label LBL_11
LBL_11:
%69 = load i64, i64* %27, align 8
%70 = call i64 @FUNC(i64 %69, i64 %25, i64 %67)
store i32 0, i32* %24, align 4
store i32 0, i32* %20, align 4
store i32 %65, i32* %sv_0.0.ph.be.reg2mem
store i64 %64, i64* %sv_1.0.ph.be.reg2mem
store i64 %18, i64* %rax.1.ph.be.reg2mem
br label LBL_8
LBL_12:
%sv_0.0.ph6.reload = load i32, i32* %sv_0.0.ph6.reg2mem
%sv_1.0.ph7.reload = load i64, i64* %sv_1.0.ph7.reg2mem
%71 = load i32, i32* %20, align 4
br label LBL_6
LBL_13:
%rax.2.reload = load i64, i64* %rax.2.reg2mem
ret i64 %rax.2.reload
uselistorder i64 %sv_1.0.ph7.reload, { 0, 3, 1, 2 }
uselistorder i32 %sv_0.0.ph6.reload, { 0, 4, 1, 2, 5, 3 }
uselistorder i64 %67, { 1, 0 }
uselistorder i32 %65, { 1, 0 }
uselistorder i64 %64, { 1, 0 }
uselistorder i32 %spec.select1, { 2, 3, 0, 1 }
uselistorder i32 %41, { 1, 0, 2 }
uselistorder i32 %39, { 1, 0 }
uselistorder i64 %38, { 1, 0 }
uselistorder i32 %spec.select, { 0, 2, 3, 1 }
uselistorder i64 %25, { 3, 1, 0, 2 }
uselistorder i32* %24, { 4, 6, 5, 7, 3, 1, 2, 0 }
uselistorder i32* %22, { 1, 2, 0 }
uselistorder i32* %20, { 2, 1, 0 }
uselistorder i64 %18, { 0, 1, 2, 3, 5, 4, 6 }
uselistorder i64 %14, { 1, 0 }
uselistorder i64 %11, { 1, 0 }
uselistorder i64* %sv_2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %sv_0.0.ph.be.reg2mem, { 2, 1, 4, 0, 3 }
uselistorder i64* %sv_1.0.ph.be.reg2mem, { 2, 1, 4, 0, 3 }
uselistorder i64* %rax.1.ph.be.reg2mem, { 2, 1, 4, 0, 3 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i1 false, { 3, 1, 2, 0, 4, 5 }
uselistorder i32 0, { 3, 4, 5, 6, 7, 0, 1, 8, 9, 2 }
uselistorder label LBL_6.lr.ph, { 1, 0 }
uselistorder label LBL_8, { 1, 0, 3, 2 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | carl9170_ps_beacon_17788 | carl9170_ps_beacon | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = urem i64 %1, 2
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 %6, i64* %rax.0.reg2mem
br i1 %9, label LBL_11, label LBL_1
LBL_1:
%sext = mul i64 %arg3, 4294967296
%10 = ashr exact i64 %sext, 32
%11 = urem i64 %2, 65536
%12 = call i64 @FUNC(i64 %11)
%13 = and i64 %12, 4294967295
%14 = xor i64 %13, 1
%15 = trunc i64 %14 to i8
%16 = icmp eq i8 %15, 0
%17 = icmp eq i1 %16, false
%18 = trunc i64 %10 to i32
%19 = icmp ult i32 %18, 45
%or.cond = or i1 %19, %17
store i64 %14, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_11, label LBL_2
LBL_2:
%20 = ptrtoint i64* %arg2 to i64
%21 = ptrtoint i64* %arg1 to i64
%22 = add i64 %21, 8
%23 = add i64 %20, 2
%24 = call i64 @FUNC(i64 %23, i64 %22)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
store i64 %24, i64* %rax.0.reg2mem
br i1 %27, label LBL_11, label LBL_3
LBL_3:
%28 = add i64 %21, 14
%29 = inttoptr i64 %28 to i8*
%30 = load i8, i8* %29, align 1
%31 = icmp eq i8 %30, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %31, label LBL_11, label LBL_4
LBL_4:
%32 = load i64, i64* @gv_0, align 8
%33 = add i64 %21, 16
%34 = inttoptr i64 %33 to i64*
store i64 %32, i64* %34, align 8
%35 = add nsw i64 %10, 4294967292
%36 = and i64 %35, 4294967295
%37 = call i64 @FUNC(i64 %20, i64 %36, i64 5)
%38 = icmp eq i64 %37, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %38, label LBL_11, label LBL_5
LBL_5:
%39 = add i64 %37, 1
%40 = inttoptr i64 %39 to i8*
%41 = load i8, i8* %40, align 1
%42 = zext i8 %41 to i64
%43 = icmp ult i8 %41, 4
store i64 %42, i64* %rax.0.reg2mem
br i1 %43, label LBL_11, label LBL_6
LBL_6:
%44 = add i64 %20, 4
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = icmp eq i32 %46, 0
%48 = zext i1 %47 to i64
%49 = call i64 @FUNC(i64 %48)
%50 = trunc i64 %49 to i32
%51 = icmp eq i32 %50, 0
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_8, label LBL_7
LBL_7:
%53 = add i64 %37, 4
%54 = inttoptr i64 %53 to i8*
%55 = load i8, i8* %54, align 1
%56 = zext i8 %55 to i32
%57 = add nsw i32 %56, -1
%58 = select i1 %47, i32* inttoptr (i64 5 to i32*), i32* inttoptr (i64 4 to i32*)
%59 = load i32, i32* %58, align 4
%60 = urem i32 %57, %59
%61 = add i64 %21, 24
%62 = inttoptr i64 %61 to i32*
store i32 %60, i32* %62, align 4
br label LBL_8
LBL_8:
%63 = add i64 %37, 2
%64 = load i8, i8* %29, align 1
%65 = zext i8 %64 to i64
%66 = call i64 @FUNC(i64 %63, i64 %42, i64 %65)
%67 = add i64 %37, 5
%68 = inttoptr i64 %67 to i8*
%69 = load i8, i8* %68, align 1
%70 = urem i8 %69, 2
%71 = icmp eq i8 %70, 0
%72 = icmp eq i1 %71, false
%73 = add i64 %21, 28
%74 = inttoptr i64 %73 to i32*
%75 = load i32, i32* %74, align 4
br i1 %72, label LBL_10, label LBL_9
LBL_9:
%76 = and i32 %75, -2
store i32 %76, i32* %74, align 4
%77 = call i64 @FUNC(i64 %21)
store i64 %77, i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
%78 = or i32 %75, 1
store i32 %78, i32* %74, align 4
store i64 %21, 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 i32 %75, { 1, 0 }
uselistorder i32* %74, { 1, 0, 2 }
uselistorder i64 %42, { 1, 0 }
uselistorder i64 %37, { 0, 2, 1, 3, 4 }
uselistorder i64 %21, { 0, 2, 3, 1, 4, 5, 6 }
uselistorder i64 %10, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4, 5, 6, 7, 8 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 5, { 1, 0, 2 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i64 32, { 2, 1, 0 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 6, 8, 7, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 0 }
uselistorder i64 2, { 1, 2, 0, 3 }
uselistorder label LBL_11, { 6, 7, 0, 1, 3, 2, 4, 5 }
} | 1 |
BinRealVul | bad_mode_switch_16093 | bad_mode_switch | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = icmp eq i32 %1, 8
br i1 %2, label LBL_7, label LBL_1
LBL_1:
%3 = icmp sgt i32 %1, 8
br i1 %3, label LBL_8, label LBL_2
LBL_2:
%4 = icmp sgt i32 %1, 6
br i1 %4, label LBL_4, label LBL_3
LBL_3:
%5 = icmp slt i32 %1, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_9, label LBL_8
LBL_4:
%7 = call i64 @FUNC(i64 %0, i64 1)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %9, label LBL_9, label LBL_5
LBL_5:
%10 = call i64 @FUNC(i64 %0)
%11 = trunc i64 %10 to i32
%12 = icmp slt i32 %11, 2
store i64 1, i64* %rax.0.reg2mem
br i1 %12, label LBL_9, label LBL_6
LBL_6:
%13 = call i64 @FUNC(i64 %0)
%14 = trunc i64 %13 to i32
%15 = icmp ne i32 %14, 0
%spec.select = zext i1 %15 to i64
ret i64 %spec.select
LBL_7:
%16 = call i64 @FUNC(i64 %0)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
%19 = zext i1 %18 to i64
store i64 %19, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
store i64 1, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %1, { 2, 1, 0, 3 }
uselistorder i64 %0, { 3, 0, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 5, 2, 1, 3 }
uselistorder i64 (i64)* @arm_is_secure, { 1, 0 }
uselistorder i64 1, { 2, 1, 0, 4, 3 }
uselistorder i32 8, { 1, 0 }
uselistorder label LBL_9, { 3, 4, 1, 0, 2 }
} | 1 |
BinRealVul | _AR_EXP_FromIdentifier_13260 | _AR_EXP_FromIdentifier | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %3, i64 %arg1)
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %4)
store i64 %6, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%7 = call i64 @FUNC(i64 %arg1)
store i64 %7, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | Jsi_NumberToString_9569 | Jsi_NumberToString | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = load i128, i128* %0
%2 = call i64 @FUNC(i128 %1)
%sext = mul i64 %arg3, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = call i128 @FUNC(i64 %2)
%5 = call i64 @FUNC()
%6 = trunc i64 %5 to i8
%7 = icmp eq i8 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i128 @__asm_movsd.1(i64 %2)
%9 = call i64 @FUNC(i128 %8)
%10 = trunc i64 %3 to i32
%11 = call i64 @FUNC(i64 %9, i64 %arg2, i32 %10)
br label LBL_11
LBL_2:
%12 = call i128 @FUNC(i64 %2)
%13 = call i64 @FUNC()
%14 = trunc i64 %13 to i8
%15 = icmp eq i8 %14, 0
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = ptrtoint i64* %arg1 to i64
%17 = and i64 %3, 4294967295
%18 = call i128 @FUNC(i64 %2)
%19 = call i64 @FUNC(i64 %16, i64 %arg2, i64 %17, i64 0)
br label LBL_11
LBL_4:
%20 = call i128 @FUNC(i64 %2)
%21 = call i64 @FUNC()
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%24 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0))
br label LBL_11
LBL_6:
%25 = call i128 @FUNC(i64 %2)
%26 = call i64 @FUNC()
%27 = trunc i64 %26 to i32
%28 = icmp slt i32 %27, 1
br i1 %28, label LBL_8, label LBL_7
LBL_7:
%29 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0))
br label LBL_11
LBL_8:
%30 = icmp ne i32 %27, 0
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_10, label LBL_9
LBL_9:
%32 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
br label LBL_11
LBL_10:
%33 = inttoptr i64 %arg2 to i8*
store i8 0, i8* %33, align 1
br label LBL_11
LBL_11:
ret i64 %arg2
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 2, 0, 3, 4, 5 }
uselistorder i64 (i64, i8*)* @Jsi_Strcpy, { 2, 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 %arg2, { 4, 5, 6, 3, 2, 1, 0 }
} | 0 |
BinRealVul | get_empty_filp_12321 | get_empty_filp | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = call i64 @FUNC()
%5 = call i64 @FUNC()
%6 = load i64, i64* @gv_0, align 8
%7 = icmp slt i64 %5, %6
br i1 %7, label LBL_3, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 0)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = call i64 @FUNC(i64* nonnull @gv_1)
%13 = load i64, i64* @gv_0, align 8
%14 = icmp slt i64 %12, %13
br i1 %14, label LBL_3, label LBL_7
LBL_3:
%15 = load i64, i64* @gv_2, align 8
%16 = call i64 @FUNC(i64 %15, i64 0)
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
store i64 -2, i64* %rax.0.reg2mem
br i1 %18, label LBL_4, label LBL_9
LBL_4:
%19 = call i64 @FUNC(i64* nonnull @gv_1)
%20 = call i64 @FUNC(i64 %4)
%21 = add i64 %16, 16
%22 = inttoptr i64 %21 to i64*
store i64 %20, i64* %22, align 8
%23 = call i64 @FUNC(i64 %16)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
br i1 %25, label LBL_6, label LBL_5
LBL_5:
%26 = call i64 @FUNC(i64 %16)
%sext = mul i64 %23, 4294967296
%27 = ashr exact i64 %sext, 32
store i64 %27, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%28 = call i64 @FUNC(i64 %16)
%29 = add i64 %16, 24
%30 = call i64 @FUNC(i64 %29, i64 1)
%31 = add i64 %16, 32
%32 = call i64 @FUNC(i64 %31)
%33 = add i64 %16, 36
%34 = call i64 @FUNC(i64 %33)
%35 = call i64 @FUNC(i64 %16)
store i64 %16, i64* %rax.0.reg2mem
br label LBL_9
LBL_7:
%36 = call i64 @FUNC()
%37 = load i64, i64* @gv_3, align 8
%38 = icmp sgt i64 %36, %37
store i64 -1, i64* %rax.0.reg2mem
br i1 %38, label LBL_8, label LBL_9
LBL_8:
%39 = call i64 @FUNC()
%40 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_4, i64 0, i64 0), i64 %39, i64 %37, i64 %3, i64 %2, i64 %1)
%41 = call i64 @FUNC()
store i64 %41, i64* @gv_3, align 8
store i64 -1, 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 %16, { 0, 1, 5, 4, 3, 2, 6, 7, 8, 9 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 5, 4, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 ()* @get_nr_files, { 2, 1, 0 }
uselistorder i32 1, { 5, 4, 6, 3, 0, 2, 1 }
uselistorder label LBL_9, { 0, 1, 3, 4, 2 }
} | 1 |
BinRealVul | idcin_read_packet_7564 | idcin_read_packet | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%storemerge9.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%storemerge511.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %3)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = trunc i64 %3 to i32
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%11 = icmp eq i32 %10, 0
%. = select i1 %11, i64 4294967295, i64 %3
store i64 %., i64* %rax.0.shrunk.reg2mem
br label LBL_31
LBL_2:
%12 = ptrtoint i64* %arg2 to i64
%13 = add i64 %6, 28
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_27, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %3)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 2
%20 = icmp eq i1 %19, false
store i64 4294967291, i64* %rax.0.shrunk.reg2mem
br i1 %20, label LBL_4, label LBL_31
LBL_4:
%21 = icmp eq i32 %18, 1
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_16, label LBL_5
LBL_5:
%23 = call i64 @FUNC(i64 %3, i64* nonnull %sv_2, i64 768)
%24 = trunc i64 %23 to i32
%25 = icmp slt i32 %24, 0
%26 = icmp eq i1 %25, false
store i64 %23, i64* %rax.0.shrunk.reg2mem
br i1 %26, label LBL_6, label LBL_31
LBL_6:
%27 = icmp eq i32 %24, 768
br i1 %27, label LBL_7, label LBL_8
LBL_7:
%28 = ptrtoint i64* %sv_3 to i64
%29 = add i64 %28, -832
store i32 0, i32* %storemerge511.reg2mem
br label LBL_9
LBL_8:
%30 = ptrtoint i64* %sv_2 to i64
%31 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %30, i64 %2, i64 %1)
store i64 4294967291, i64* %rax.0.shrunk.reg2mem
br label LBL_31
LBL_9:
%storemerge511.reload = load i32, i32* %storemerge511.reg2mem
%32 = sext i32 %storemerge511.reload to i64
%33 = add i64 %29, %32
%34 = inttoptr i64 %33 to i8*
%35 = load i8, i8* %34, align 1
%36 = icmp ult i8 %35, 64
store i32 0, i32* %sv_0.0.reg2mem
br i1 %36, label LBL_10, label LBL_11
LBL_10:
%37 = add nuw i32 %storemerge511.reload, 1
%38 = icmp ult i32 %37, 768
store i32 %37, i32* %storemerge511.reg2mem
store i32 2, i32* %sv_0.0.reg2mem
br i1 %38, label LBL_9, label LBL_11
LBL_11:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%39 = add i64 %28, -1856
%40 = icmp eq i32 %sv_0.0.reload, 2
%41 = icmp eq i1 %40, false
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_12
LBL_12:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%42 = mul nuw nsw i64 %indvars.iv.reload, 3
%43 = add i64 %42, %29
%44 = inttoptr i64 %43 to i8*
%45 = load i8, i8* %44, align 1
%46 = zext i8 %45 to i32
%47 = shl i32 %46, %sv_0.0.reload
%48 = add i64 %43, 1
%49 = inttoptr i64 %48 to i8*
%50 = load i8, i8* %49, align 1
%51 = zext i8 %50 to i32
%52 = shl i32 %51, %sv_0.0.reload
%53 = add i64 %43, 2
%54 = inttoptr i64 %53 to i8*
%55 = load i8, i8* %54, align 1
%56 = zext i8 %55 to i32
%57 = shl i32 %56, %sv_0.0.reload
%58 = mul i32 %47, 65536
%59 = mul i32 %52, 256
%60 = and i32 %59, 65280
%61 = or i32 %60, %58
%62 = urem i32 %57, 256
%63 = or i32 %61, %62
%64 = or i32 %63, -16777216
store i32 %64, i32* %storemerge9.reg2mem
br i1 %41, label LBL_14, label LBL_13
LBL_13:
%65 = udiv i32 %63, 64
%66 = and i32 %65, 197379
%67 = or i32 %66, %64
store i32 %67, i32* %storemerge9.reg2mem
br label LBL_14
LBL_14:
%68 = mul i64 %indvars.iv.reload, 4
%69 = add i64 %39, %68
%70 = inttoptr i64 %69 to i32*
%storemerge9.reload = load i32, i32* %storemerge9.reg2mem
store i32 %storemerge9.reload, i32* %70, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 256
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_15, label LBL_12
LBL_15:
%71 = zext i32 %sv_0.0.reload to i64
store i64 %71, i64* %rcx.1.reg2mem
br label LBL_16
LBL_16:
%72 = add i64 %3, 4
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = icmp eq i32 %74, 0
br i1 %75, label LBL_18, label LBL_17
LBL_17:
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%76 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %rcx.1.reload, i64 %2, i64 %1)
%77 = icmp eq i32 %10, 0
%.8 = select i1 %77, i64 4294967295, i64 %3
store i64 %.8, i64* %rax.0.shrunk.reg2mem
br label LBL_31
LBL_18:
%78 = call i64 @FUNC(i64 %3)
%79 = trunc i64 %78 to i32
%.off = add i32 %79, -4
%80 = icmp ult i32 %.off, 2147483640
br i1 %80, label LBL_20, label LBL_19
LBL_19:
%81 = and i64 %78, 4294967295
%82 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0), i64 %81, i64 %2, i64 %1)
store i64 4294967294, i64* %rax.0.shrunk.reg2mem
br label LBL_31
LBL_20:
%83 = call i64 @FUNC(i64 %3, i64 4)
%84 = call i64 @FUNC(i64 %3, i64 %12, i32 %.off)
%85 = trunc i64 %84 to i32
%86 = icmp slt i32 %85, 0
%87 = icmp eq i1 %86, false
store i64 %84, i64* %rax.0.shrunk.reg2mem
br i1 %87, label LBL_21, label LBL_31
LBL_21:
%88 = icmp eq i32 %.off, %85
br i1 %88, label LBL_23, label LBL_22
LBL_22:
%89 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %12, i64 %2, i64 %1)
store i64 4294967291, i64* %rax.0.shrunk.reg2mem
br label LBL_31
LBL_23:
br i1 %22, label LBL_26, label LBL_24
LBL_24:
%90 = call i64 @FUNC(i64 %12, i64 0, i64 1024)
%91 = icmp eq i64 %90, 0
%92 = icmp eq i1 %91, false
store i64 4294967284, i64* %rax.0.shrunk.reg2mem
br i1 %92, label LBL_25, label LBL_31
LBL_25:
%93 = inttoptr i64 %90 to i64*
%94 = call i64* @memcpy(i64* %93, i64* nonnull %sv_1, i32 1024)
%95 = add i64 %12, 8
%96 = inttoptr i64 %95 to i32*
%97 = load i32, i32* %96, align 4
%98 = or i32 %97, 1
store i32 %98, i32* %96, align 4
br label LBL_26
LBL_26:
%99 = inttoptr i64 %6 to i32*
%100 = load i32, i32* %99, align 4
%101 = bitcast i64* %arg2 to i32*
store i32 %100, i32* %101, align 4
%102 = add i64 %12, 4
%103 = inttoptr i64 %102 to i32*
store i32 1, i32* %103, align 4
br label LBL_29
LBL_27:
%104 = add i64 %6, 12
%105 = inttoptr i64 %104 to i32*
%106 = load i32, i32* %105, align 4
%107 = icmp eq i32 %106, 0
%storemerge6.in.in.v = select i1 %107, i64 16, i64 20
%storemerge6.in.in = add i64 %storemerge6.in.in.v, %6
%storemerge6.in = inttoptr i64 %storemerge6.in.in to i32*
%storemerge6 = load i32, i32* %storemerge6.in, align 4
%108 = call i64 @FUNC(i64 %3, i64 %12, i32 %storemerge6)
%109 = trunc i64 %108 to i32
%110 = icmp slt i32 %109, 0
%111 = icmp eq i1 %110, false
store i64 %108, i64* %rax.0.shrunk.reg2mem
br i1 %111, label LBL_28, label LBL_31
LBL_28:
%112 = add i64 %6, 4
%113 = inttoptr i64 %112 to i32*
%114 = load i32, i32* %113, align 4
%115 = bitcast i64* %arg2 to i32*
store i32 %114, i32* %115, align 4
%116 = add i64 %6, 24
%117 = inttoptr i64 %116 to i32*
%118 = load i32, i32* %117, align 4
%119 = udiv i32 %storemerge6, %118
%120 = add i64 %12, 4
%121 = inttoptr i64 %120 to i32*
store i32 %119, i32* %121, align 4
%122 = load i32, i32* %105, align 4
%123 = xor i32 %122, 1
store i32 %123, i32* %105, align 4
br label LBL_29
LBL_29:
%124 = add i64 %6, 8
%125 = inttoptr i64 %124 to i32*
%126 = load i32, i32* %125, align 4
%127 = icmp eq i32 %126, 0
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %127, label LBL_31, label LBL_30
LBL_30:
%128 = load i32, i32* %14, align 4
%129 = xor i32 %128, 1
store i32 %129, i32* %14, align 4
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_31
LBL_31:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i32* %105, { 1, 0, 2 }
uselistorder i32 %.off, { 1, 0, 2 }
uselistorder i32 %64, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i32 %sv_0.0.reload, { 4, 3, 2, 1, 0 }
uselistorder i64 %29, { 1, 0 }
uselistorder i32* %14, { 1, 0, 2 }
uselistorder i64 %12, { 5, 6, 3, 1, 2, 0, 4 }
uselistorder i64 %6, { 3, 1, 2, 0, 4, 6, 5 }
uselistorder i64* %sv_2, { 1, 0 }
uselistorder i64 %3, { 13, 8, 9, 10, 7, 11, 1, 6, 0, 4, 5, 12, 2, 3, 14, 15 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i32* %storemerge511.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge9.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 2, 1, 3, 4, 12, 5, 11, 6, 10, 7, 8, 9 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i32)* @av_get_packet, { 1, 0 }
uselistorder i64 4, { 2, 3, 4, 1, 5, 0, 6 }
uselistorder i32 256, { 1, 0 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 3, 2, 1, 0 }
uselistorder i64 4294967291, { 2, 1, 0 }
uselistorder i32 2, { 1, 0, 2 }
uselistorder i64 (i64)* @avio_rl32, { 1, 0 }
uselistorder i32 0, { 2, 3, 4, 5, 6, 7, 0, 1, 8, 9, 10, 11 }
uselistorder label LBL_31, { 1, 0, 2, 3, 9, 4, 10, 5, 11, 6, 7, 8 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | hfs_get_default_attr_type_9528 | hfs_get_default_attr_type | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
switch i64 %0, label LBL_1 [
i64 14, label LBL_3
i64 8, label LBL_3
i64 7, label LBL_3
i64 6, label LBL_3
i64 5, label LBL_3
i64 4, label LBL_3
i64 3, label LBL_3
]
LBL_1:
%1 = icmp eq i64* %arg1, inttoptr (i64 15 to i64*)
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_3
LBL_2:
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i32 %5, -1
%7 = icmp ult i32 %6, 2
%spec.select = zext i1 %7 to i64
ret i64 %spec.select
LBL_3:
ret i64 0
uselistorder i64 %0, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder label LBL_3, { 0, 7, 6, 5, 4, 3, 2, 1 }
} | 0 |
BinRealVul | udp_chr_close_3285 | udp_chr_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %0)
store i64 0, i64* %arg1, align 8
br label LBL_2
LBL_2:
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = call i64 @FUNC(i64 %5)
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = zext i32 %10 to i64
%12 = call i64 @FUNC(i64 %11)
br label LBL_4
LBL_4:
%13 = call i64 @FUNC(i64 %0)
%14 = call i64 @FUNC(i64 %0, i64 0)
ret i64 %14
uselistorder i64 %0, { 1, 2, 4, 3, 0 }
} | 0 |
reposvul_c_test | xen_blkbk_map_seg_7 | xen_blkbk_map_seg | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 20
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
%6 = zext i1 %5 to i64
%7 = add i64 %0, 16
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %0, i64 %12, i32 %9, i64 %6)
%14 = and i64 %13, 4294967295
ret i64 %14
uselistorder i64 %0, { 3, 1, 0, 2 }
} | 0 |
BinRealVul | sudoaddable_3884 | sudoaddable | define i64 @FUNC(i64 %arg1, i32* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
ret i64 0
} | 0 |
BinRealVul | qemu_file_skip_14764 | qemu_file_skip | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %arg2 to i32
%3 = trunc i64 %1 to i32
%4 = add i32 %3, %2
%5 = add i64 %arg1, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = zext i32 %7 to i64
%9 = icmp ugt i32 %4, %7
store i64 %8, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = inttoptr i64 %arg1 to i32*
store i32 %4, i32* %10, align 4
store i64 %arg1, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 1, { 1, 0 }
} | 1 |
BinRealVul | curl_read_cb_18979 | curl_read_cb | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.pre-phi.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg4 to i64
%4 = mul i64 %arg3, %arg2
%5 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %arg3, i64 %3, i64 %2, i64 %1)
%6 = icmp eq i64* %arg4, null
br i1 %6, label LBL_0.LBL_7_crit_edge, label LBL_2
LBL_1:
%.pre = mul i64 %4, 4294967296
%.pre5 = ashr exact i64 %.pre, 32
store i64 %.pre5, i64* %.pre-phi.reg2mem
br label LBL_7
LBL_2:
%7 = trunc i64 %4 to i32
%8 = add i64 %3, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = add i64 %10, %3
%12 = inttoptr i64 %11 to i64*
%13 = call i64* @memcpy(i64* %12, i64* %arg1, i32 %7)
%14 = load i64, i64* %9, align 8
%sext = mul i64 %4, 4294967296
%15 = ashr exact i64 %sext, 32
%16 = add i64 %14, %15
store i64 %16, i64* %9, align 8
%17 = add i64 %3, 16
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%18 = mul i64 %indvars.iv.reload, 8
%19 = add i64 %17, %18
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = icmp eq i64 %21, 0
br i1 %22, label LBL_6, label LBL_4
LBL_4:
%23 = load i64, i64* %9, align 8
%24 = add i64 %21, 24
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = icmp ult i64 %23, %26
br i1 %27, label LBL_6, label LBL_5
LBL_5:
%28 = add i64 %21, 16
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = sub i64 %26, %30
%32 = add i64 %21, 32
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34, i64 0, i64 %26, i64 %31)
%36 = call i64 @FUNC(i64 %21)
store i64 0, i64* %20, align 8
br label LBL_6
LBL_6:
%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
store i64 %15, i64* %.pre-phi.reg2mem
br i1 %exitcond, label LBL_7, label LBL_3
LBL_7:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
ret i64 %.pre-phi.reload
uselistorder i64* %9, { 0, 2, 1, 3 }
uselistorder i64 %4, { 0, 3, 1, 2 }
uselistorder i64 %3, { 1, 0, 2, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 32, { 2, 1, 0 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder label LBL_6, { 1, 2, 0 }
} | 1 |
BinRealVul | celt_search_for_dual_stereo_3485 | celt_search_for_dual_stereo | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
store i32 0, i32* %arg2, align 4
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp slt i32 %2, 2
store i64 %3, i64* %rax.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = ptrtoint i32* %arg2 to i64
%7 = bitcast i32* %sv_1 to i64*
%8 = call i64 @FUNC(i64 %5, i64 %6, i64* nonnull %7)
store i32 1, i32* %arg2, align 4
%9 = bitcast i32* %sv_0 to i64*
%10 = call i64 @FUNC(i64 %5, i64 %6, i64* nonnull %9)
%11 = load i32, i32* %sv_0, align 4
%12 = call i128 @FUNC(i32 %11)
%13 = load i32, i32* %sv_1, align 4
%14 = call i128 @FUNC(i32 %13)
call void @FUNC(i128 %14, i128 %12)
store i32 1, i32* %arg2, align 4
%15 = add i64 %5, 8
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = load i32, i32* %sv_0, align 4
%19 = call i128 @FUNC(i32 %18)
%20 = load i32, i32* %sv_1, align 4
%21 = call i128 @FUNC(i32 %20)
call void @FUNC(i128 %21, i128 %19)
%22 = add i32 %17, 1
store i32 %22, i32* %16, align 4
store i64 %5, 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 %5, { 0, 1, 3, 2 }
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 (i64, i64, i64*)* @bands_dist, { 1, 0 }
uselistorder i32* %arg2, { 0, 2, 1, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | do_divwuo_18632 | do_divwuo | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i32
%rax.0.reg2mem = alloca i64
%0 = load i32, i32* inttoptr (i64 4210728 to i32*), align 8
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
%3 = zext i1 %2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
store i32 0, i32* bitcast (i64* @gv_0 to i32*), align 8
%7 = load i32, i32* @gv_1, align 4
%8 = load i32, i32* @gv_2, align 4
%9 = udiv i32 %7, %8
%10 = zext i32 %9 to i64
store i64 %10, i64* %rax.0.reg2mem
store i32 %9, i32* %storemerge.reg2mem
br label LBL_3
LBL_2:
store i32 1, i32* inttoptr (i64 4210740 to i32*), align 4
store i32 1, i32* bitcast (i64* @gv_0 to i32*), align 8
store i64 %4, i64* %rax.0.reg2mem
store i32 0, i32* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%rax.0.reload = load i64, i64* %rax.0.reg2mem
store i32 %storemerge.reload, i32* @gv_1, align 4
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 1, { 2, 3, 1, 0 }
} | 1 |
BinRealVul | v9fs_version_1403 | v9fs_version | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8*, align 8
%3 = bitcast i8** %sv_0 to i64*
%4 = call i64 @FUNC(i64 %2, i64 7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 %2, i64* nonnull %3)
%5 = load i8*, i8** %sv_0, align 8
%6 = ptrtoint i8* %5 to i64
%7 = trunc i64 %1 to i32
%8 = add i64 %2, 16
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %2, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13, i32 %10, i32 %7, i64 %6)
%15 = load i8*, i8** %sv_0, align 8
%16 = call i32 @strcmp(i8* %15, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0))
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_2, label LBL_1
LBL_1:
%19 = add i64 %2, 4
%20 = inttoptr i64 %19 to i32*
store i32 2000, i32* %20, align 4
br label LBL_5
LBL_2:
%21 = load i8*, i8** %sv_0, align 8
%22 = call i32 @strcmp(i8* %21, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0))
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_4, label LBL_3
LBL_3:
%25 = add i64 %2, 4
%26 = inttoptr i64 %25 to i32*
store i32 2001, i32* %26, align 4
br label LBL_5
LBL_4:
%27 = call i64 @FUNC(i64* nonnull %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_3, i64 0, i64 0))
br label LBL_5
LBL_5:
%28 = bitcast i64* %rdi to i32*
%29 = load i32, i32* %28, align 8
%30 = zext i32 %29 to i64
%31 = call i64 @FUNC(i64 %2, i64 7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 %30, i64* nonnull %3)
%32 = add i64 %31, 7
%33 = load i8*, i8** %sv_0, align 8
%34 = ptrtoint i8* %33 to i64
%35 = load i32, i32* %9, align 4
%36 = load i64, i64* %12, align 8
%37 = call i64 @FUNC(i64 %36, i32 %35, i32 %29, i64 %34)
%38 = call i64 @FUNC(i64 %2, i64 %2, i64 %32)
%39 = call i64 @FUNC(i64* nonnull %3)
ret i64 %39
uselistorder i8** %sv_0, { 3, 2, 1, 0, 4 }
uselistorder i64 %2, { 3, 2, 4, 1, 0, 5, 6, 8, 7 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
} | 0 |
reposvul_c_test | index_entry_size_274 | index_entry_size | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64 %arg2, 0
%1 = add i64 %arg1, 8
%2 = and i64 %1, -8
%3 = add i64 %arg1, 1
%4 = add i64 %3, %arg2
%rax.0 = select i1 %0, i64 %2, i64 %4
ret i64 %rax.0
} | 1 |
BinRealVul | scsi_init_iovec_12155 | scsi_init_iovec | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = mul i32 %3, 512
%5 = icmp ult i32 %4, 4096
%6 = select i1 %5, i32 %4, i32 4096
%7 = bitcast i64* %arg1 to i32*
store i32 %6, i32* %7, align 4
%8 = add i64 %0, 4
%9 = call i64 @FUNC(i64 %8, i64 %0, i64 1)
%10 = inttoptr i64 %8 to i32*
%11 = load i32, i32* %10, align 4
%12 = udiv i32 %11, 512
%13 = zext i32 %12 to i64
ret i64 %13
uselistorder i32 %4, { 1, 0 }
uselistorder i32 512, { 1, 0 }
} | 1 |
BinRealVul | av_register_input_format_14708 | av_register_input_format | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = load i64, i64* @gv_0, align 8
store i64 0, i64* %arg1, align 8
store i64 %1, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_1:
%.reload = load i64, i64* %.reg2mem
store i64 %.reload, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%2 = inttoptr i64 %sv_0.0.reload to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 %3, i64* %.reg2mem
br i1 %5, label LBL_1, label LBL_3
LBL_3:
%6 = call i64 @FUNC(i64 %sv_0.0.reload, i64 0, i64 %0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3.LBL_1_crit_edge, label LBL_5
LBL_4:
%.pre = load i64, i64* %2, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_1
LBL_5:
store i64 %0, i64* @gv_0, align 8
ret i64 %0
uselistorder i64* %.reg2mem, { 2, 1, 0 }
} | 1 |
BinRealVul | bdrv_all_goto_snapshot_15247 | bdrv_all_goto_snapshot | define i64 @FUNC(i8* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.12.reg2mem = alloca i32
%sv_1.03.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_2 = alloca i64, align 8
%0 = ptrtoint i8* %arg1 to i64
store i64 0, i64* %sv_1.03.reg2mem
store i32 0, i32* %sv_0.12.reg2mem
br label LBL_4
LBL_1:
%1 = load i64, i64* %sv_2, align 8
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %2)
%4 = load i64, i64* %sv_2, align 8
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i32 %sv_0.12.reload, i32* %sv_0.0.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = load i64, i64* %sv_2, align 8
%9 = call i64 @FUNC(i64 %8, i64 %0)
%10 = trunc i64 %9 to i32
store i32 %10, i32* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%11 = call i64 @FUNC(i64 %2)
%12 = icmp eq i32 %sv_0.0.reload, 0
%13 = icmp eq i1 %12, false
store i64 %14, i64* %sv_1.03.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.12.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%sv_0.12.reload = load i32, i32* %sv_0.12.reg2mem
%sv_1.03.reload = load i64, i64* %sv_1.03.reg2mem
%14 = call i64 @FUNC(i64 %sv_1.03.reload, i64* nonnull %sv_2)
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
store i32 %sv_0.12.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %16, label LBL_1, label LBL_5
LBL_5:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%17 = load i64, i64* %sv_2, align 8
store i64 %17, i64* %arg2, align 8
%18 = zext i32 %sv_0.1.lcssa.reload to i64
ret i64 %18
uselistorder i64 %14, { 1, 0 }
uselistorder i64* %sv_2, { 1, 0, 2, 3, 4 }
uselistorder i32* %sv_0.1.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 2, 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | sysbus_esp_class_init_1628 | sysbus_esp_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 4198662, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 4198669, i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %4, align 8
%5 = add i64 %0, 32
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 1, i64 %7)
%9 = add i64 %0, 24
%10 = inttoptr i64 %9 to i8*
store i8 1, i8* %10, align 1
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3, 4 }
} | 0 |
BinRealVul | gic_acknowledge_irq_17228 | gic_acknowledge_irq | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = and i64 %arg3, 4294967295
%5 = and i64 %3, 4294967295
%6 = call i64 @FUNC(i64 %2, i64 %5, i64 %4)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 1020
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = and i64 %6, 4294967295
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_0, i64 0, i64 0), i64 %9)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_9
LBL_2:
%11 = ashr exact i64 %sext, 30
%12 = add i64 %2, 4
%13 = add i64 %12, %11
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
%17 = icmp slt i32 %15, 0
%18 = icmp eq i1 %17, false
%19 = icmp eq i1 %16, false
%20 = icmp eq i1 %18, %19
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = and i64 %6, 4294967295
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i64 %21)
store i64 1023, i64* %rax.0.reg2mem
br label LBL_9
LBL_4:
%23 = trunc i64 %1 to i32
%24 = add i32 %23, -1
%25 = icmp ult i32 %24, 2
%26 = icmp sgt i32 %7, 15
%or.cond14 = or i1 %25, %26
store i32 %7, i32* %sv_0.0.reg2mem
br i1 %or.cond14, label LBL_8, label LBL_5
LBL_5:
%sext9 = mul i64 %6, 4294967296
%27 = ashr exact i64 %sext9, 30
%28 = add nsw i64 %27, %3
%29 = mul i64 %28, 4
%30 = add i64 %2, 20
%31 = add i64 %30, %29
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
store i32 %33, i32* %.reg2mem
br i1 %35, label LBL_7, label LBL_6
LBL_6:
call void @__assert_fail(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_3, i64 0, i64 0), i32 43, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_4, i64 0, i64 0))
%.pre = load i32, i32* %32, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_7
LBL_7:
%.reload = load i32, i32* %.reg2mem
%36 = call i32 @FUNC(i32 %.reload)
%37 = load i32, i32* %32, align 4
%38 = urem i32 %36, 32
%39 = icmp eq i32 %38, 0
%40 = shl i32 -1, %38
%phitmp = add i32 %40, -1
%storemerge7 = select i1 %39, i32 -2, i32 %phitmp
%41 = and i32 %storemerge7, %37
store i32 %41, i32* %32, align 4
%42 = mul i32 %36, 1024
%43 = and i32 %42, 7168
%44 = or i32 %43, %7
store i32 %44, i32* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%45 = call i64 @FUNC(i64 %2, i64 %5, i32 %7)
%46 = call i64 @FUNC(i64 %2)
%47 = and i64 %6, 4294967295
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_5, i64 0, i64 0), i64 %47)
%49 = zext i32 %sv_0.0.reload to i64
store i64 %49, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %32, { 1, 2, 0, 3 }
uselistorder i32 %15, { 1, 0 }
uselistorder i32 %7, { 3, 1, 0, 2, 4 }
uselistorder i64 %6, { 1, 0, 2, 3, 4 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %2, { 2, 1, 0, 3, 4 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i64 4294967295, { 0, 1, 2, 4, 3 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | avcodec_close_14995 | avcodec_close | 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
store i32 ptrtoint (i32* @gv_0 to i32), i32* bitcast (i64* @gv_1 to i32*), align 8
br i1 icmp eq (i32 sub (i32 ptrtoint (i32* @gv_0 to i32), i32 1), i32 0), label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_2, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_5
LBL_2:
%6 = add i64 %4, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %4)
br label LBL_4
LBL_4:
%11 = call i64 @FUNC(i64 %4)
%12 = add i64 %4, 8
%13 = call i64 @FUNC(i64 %12)
store i64 0, i64* %arg1, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%storemerge1.in = load i32, i32* bitcast (i64* @gv_1 to i32*), align 8
%storemerge1 = add i32 %storemerge1.in, -1
store i32 %storemerge1, i32* bitcast (i64* @gv_1 to i32*), align 8
ret i64 %storemerge.reload
uselistorder i64 %4, { 1, 0, 4, 2, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i32* bitcast (i64* @gv_1 to i32*), { 1, 0, 2 }
} | 1 |
BinRealVul | add_attendees_3945 | add_attendees | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_12, label LBL_1
LBL_1:
%1 = call i64 @FUNC(i64 %arg1)
%2 = call i64 @FUNC(i64 %1, i64 1)
%3 = icmp eq i64 %2, 0
store i64 0, i64* %rax.1.reg2mem
br i1 %3, label LBL_12, label LBL_2
LBL_2:
%4 = call i64 @FUNC(i64 %1)
%5 = icmp eq i64 %1, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %rax.1.reg2mem
br i1 %6, label LBL_3, label LBL_12
LBL_3:
%7 = ptrtoint i64* %arg3 to i64
%8 = inttoptr i64 %arg2 to i8*
%9 = and i64 %4, 4294967295
store i64 %1, i64* %sv_0.03.reg2mem
br label LBL_4
LBL_4:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%10 = call i64 @FUNC(i64 %sv_0.03.reload)
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 %10, i64* %storemerge2.reg2mem
br i1 %12, label LBL_5, label LBL_11
LBL_5:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
%13 = call i64 @FUNC(i64 %storemerge2.reload)
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_10, label LBL_6
LBL_6:
%15 = inttoptr i64 %13 to i8*
%16 = call i32 @strncasecmp(i8* %15, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i32 7)
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
%19 = add i64 %13, 7
%20 = inttoptr i64 %19 to i8*
%sv_1.0 = select i1 %18, i8* %15, i8* %20
%21 = call i32 @strcasecmp(i8* %sv_1.0, i8* %8)
%22 = icmp eq i32 %21, 0
br i1 %22, label LBL_10, label LBL_7
LBL_7:
%23 = call i64 @FUNC(i64 %storemerge2.reload)
%24 = icmp eq i64 %23, 0
br i1 %24, label LBL_9, label LBL_8
LBL_8:
%25 = call i64 @FUNC(i64 %23)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 1
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_10, label LBL_9
LBL_9:
%29 = ptrtoint i8* %sv_1.0 to i64
%30 = call i64 @FUNC(i64 %7, i64 %29)
br label LBL_10
LBL_10:
%31 = call i64 @FUNC(i64 %sv_0.03.reload)
%32 = icmp eq i64 %31, 0
%33 = icmp eq i1 %32, false
store i64 %31, i64* %storemerge2.reg2mem
br i1 %33, label LBL_5, label LBL_11
LBL_11:
%34 = call i64 @FUNC(i64 %arg1, i64 %9)
%35 = icmp eq i64 %34, 0
%36 = icmp eq i1 %35, false
store i64 %34, i64* %sv_0.03.reg2mem
store i64 %34, i64* %rax.1.reg2mem
br i1 %36, label LBL_4, label LBL_12
LBL_12:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i8* %sv_1.0, { 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64* %sv_0.03.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 5, 4, 2, 3, 1, 0 }
uselistorder label LBL_10, { 3, 0, 1, 2 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | evutil_adjust_hints_for_addrconfig__9652 | evutil_adjust_hints_for_addrconfig_ | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = urem i64 %1, 2
%3 = icmp eq i64 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_10, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = zext i32 %7 to i64
%9 = icmp eq i32 %7, 0
%10 = icmp eq i1 %9, false
store i64 %8, i64* %rax.0.reg2mem
br i1 %10, label LBL_10, label LBL_2
LBL_2:
%11 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 0)
br label LBL_4
LBL_4:
%15 = load i32, i32* @gv_1, align 4
%16 = icmp eq i32 %15, 0
%17 = load i32, i32* @gv_2, align 4
%18 = icmp eq i32 %17, 0
br i1 %16, label LBL_8, label LBL_5
LBL_5:
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_6, label LBL_7
LBL_6:
%20 = zext i32 %15 to i64
store i64 %20, i64* %rax.0.reg2mem
br label LBL_10
LBL_7:
store i32 2, i32* %6, align 4
store i64 %4, i64* %rax.0.reg2mem
br label LBL_10
LBL_8:
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_10, label LBL_9
LBL_9:
store i32 10, i32* %6, align 4
store i64 %4, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i1 %18, { 1, 0 }
uselistorder i32* %6, { 1, 0, 2 }
uselistorder i64 %4, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1, 5, 6 }
uselistorder i32* @gv_2, { 1, 0 }
uselistorder i32* @gv_1, { 1, 0 }
uselistorder label LBL_10, { 3, 4, 5, 0, 1, 2 }
} | 0 |
BinRealVul | PredictorEncodeRow_13449 | PredictorEncodeRow | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i16 %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i32 24, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = inttoptr i64 %1 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i32 25, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
%8 = add i64 %1, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_6, label LBL_5
LBL_5:
call void @__assert_fail(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i32 26, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0))
br label LBL_6
LBL_6:
%13 = trunc i64 %0 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
%storemerge = select i1 %15, i64 %0, i64 0
ret i64 %storemerge
uselistorder i64 %0, { 1, 0, 2 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 2, 1, 0 }
} | 0 |
BinRealVul | ga_channel_open_143 | ga_channel_open | 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 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%6 = bitcast i64* %arg1 to i32*
store i32 %arg3, i32* %6, align 4
%7 = trunc i64 %3 to i32
%8 = icmp eq i32 %7, 2
br i1 %8, label LBL_11, label LBL_1
LBL_1:
%9 = zext i32 %arg3 to i64
%10 = icmp ult i32 %7, 3
br i1 %10, label LBL_2, label LBL_14
LBL_2:
switch i32 %7, label LBL_14 [
i32 0, label LBL_3
i32 1, label LBL_7
]
LBL_3:
%11 = call i64 @FUNC(i64 %arg2, i64 10242)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, -1
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_5, label LBL_4
LBL_4:
%15 = call i32* @__errno_location()
%16 = load i32, i32* %15, align 4
%17 = call i8* @strerror(i32 %16)
%18 = ptrtoint i8* %17 to i64
%19 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %18, i64 %9, i64 %4, i64 %2, i64 %1)
call void @exit(i32 1)
unreachable
LBL_5:
%20 = and i64 %11, 4294967295
%21 = call i64 @FUNC(i64 %5, i64 %20)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %23, label LBL_15, label LBL_6
LBL_6:
%24 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), i64 %20, i64 %20, i64 %4, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_7:
%25 = call i64 @FUNC(i64 %arg2, i64 2306)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, -1
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_9, label LBL_8
LBL_8:
%29 = call i32* @__errno_location()
%30 = load i32, i32* %29, align 4
%31 = call i8* @strerror(i32 %30)
%32 = ptrtoint i8* %31 to i64
%33 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %32, i64 %9, i64 %4, i64 %2, i64 %1)
call void @exit(i32 1)
unreachable
LBL_9:
%34 = bitcast i32* %sv_1 to %termios*
%35 = call i32 @tcgetattr(i32 %26, %termios* nonnull %34)
%36 = load i32, i32* %sv_1, align 4
%37 = and i32 %36, -15872
store i32 %37, i32* %sv_1, align 4
%38 = call i32 @tcflush(i32 %26, i32 0)
%39 = call i32 @tcsetattr(i32 %26, i32 0, %termios* nonnull %34)
%40 = and i64 %25, 4294967295
%41 = call i64 @FUNC(i64 %5, i64 %40)
%42 = trunc i64 %41 to i32
%43 = icmp eq i32 %42, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %43, label LBL_15, label LBL_10
LBL_10:
%44 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), i64 %40, i64 %40, i64 %4, i64 %2, i64 %1)
store i64 1, i64* %rax.0.reg2mem
br label LBL_15
LBL_11:
store i64 0, i64* %sv_0, align 8
%45 = inttoptr i64 %arg2 to i8*
%46 = call i32 @strlen(i8* %45)
%47 = sext i32 %46 to i64
%48 = call i64 @FUNC(i64 %arg2, i64 0, i64 %47, i64* nonnull %sv_0)
%49 = load i64, i64* %sv_0, align 8
%50 = icmp eq i64 %49, 0
br i1 %50, label LBL_13, label LBL_12
LBL_12:
%51 = ptrtoint i64* %sv_0 to i64
%52 = call i64 @FUNC(i64 %49)
%53 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0), i64 %52, i64 %47, i64 %51, i64 %2, i64 %1)
%54 = load i64, i64* %sv_0, align 8
%55 = call i64 @FUNC(i64 %54)
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_13:
%56 = and i64 %48, 4294967295
%57 = call i64 @FUNC(i64 %5, i64 %56, i64 1)
store i64 1, i64* %rax.0.reg2mem
br label LBL_15
LBL_14:
%58 = call i64 @FUNC(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_3, i64 0, i64 0), i64 %arg2, i64 %9, i64 %4, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %40, { 2, 1, 0 }
uselistorder i32 %26, { 0, 2, 1, 3 }
uselistorder i64 %20, { 2, 1, 0 }
uselistorder i32 %7, { 2, 1, 0 }
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i64* %sv_0, { 1, 3, 2, 0, 4 }
uselistorder i64 %5, { 2, 0, 1 }
uselistorder i64 %4, { 4, 2, 3, 0, 1 }
uselistorder i64 %2, { 5, 4, 0, 3, 2, 1 }
uselistorder i64 %1, { 5, 4, 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 7, 3, 4, 6, 2 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), { 1, 0 }
uselistorder i64 1, { 0, 4, 2, 3, 1 }
uselistorder i64 (i64, i64)* @ga_channel_client_add, { 1, 0 }
uselistorder i64 4294967295, { 0, 2, 1 }
uselistorder void (i32)* @exit, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @g_critical, { 4, 3, 2, 1, 0 }
uselistorder i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), { 1, 0 }
uselistorder i8* (i32)* @strerror, { 1, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i64 (i64, i64)* @qemu_open, { 1, 0 }
uselistorder i32 %arg3, { 1, 0 }
uselistorder i64 %arg2, { 0, 4, 3, 1, 2 }
uselistorder label LBL_15, { 4, 0, 5, 2, 3, 6, 1 }
} | 1 |
BinRealVul | get_len_14348 | get_len | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = and i32 %1, %arg3
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i32 %2, i32* %sv_0.0.reg2mem
store i32 %2, i32* %sv_0.1.reg2mem
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%5 = call i64 @FUNC(i64 %0)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = add i32 %sv_0.0.reload, 255
store i32 %8, i32* %sv_0.0.reg2mem
br i1 %7, label LBL_1, label LBL_2
LBL_2:
%9 = add i32 %sv_0.0.reload, %arg3
%10 = add i32 %9, %6
store i32 %10, i32* %sv_0.1.reg2mem
br label LBL_3
LBL_3:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%11 = zext i32 %sv_0.1.reload to i64
ret i64 %11
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | virtio_scsi_bad_req_14674 | virtio_scsi_bad_req | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0))
call void @exit(i32 1)
ret i64 ptrtoint (i32* @0 to i64)
} | 1 |
BinRealVul | qemu_iovec_concat_iov_18558 | qemu_iovec_concat_iov | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i64
%sv_1.03.reg2mem = alloca i32
%sv_2.14.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, -1
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i32 26, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%6 = icmp ne i64 %arg5, 0
%7 = icmp eq i1 %6, false
store i64 %arg4, i64* %sv_0.0.lcssa.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_10, label LBL_3
LBL_3:
%8 = ptrtoint i64* %arg2 to i64
%9 = trunc i64 %arg3 to i32
store i64 0, i64* %sv_2.14.reg2mem
store i32 0, i32* %sv_1.03.reg2mem
store i64 %arg4, i64* %sv_0.02.reg2mem
br label LBL_8
LBL_4:
%sv_2.14.reload = load i64, i64* %sv_2.14.reg2mem
%10 = sext i32 %sv_1.03.reload to i64
%11 = mul i64 %10, 16
%12 = add i64 %11, %8
%13 = add i64 %12, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = icmp ult i64 %sv_0.02.reload, %15
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%18 = sub i64 %arg5, %sv_2.14.reload
%19 = sub i64 %15, %sv_0.02.reload
%20 = icmp ugt i64 %18, %19
%21 = select i1 %20, i64 %19, i64 %18
%22 = inttoptr i64 %12 to i64*
%23 = load i64, i64* %22, align 8
%24 = add i64 %23, %sv_0.02.reload
%25 = call i64 @FUNC(i64 %0, i64 %24, i64 %21)
%26 = add i64 %21, %sv_2.14.reload
store i64 %26, i64* %sv_2.0.reg2mem
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_6:
%27 = sub i64 %sv_0.02.reload, %15
store i64 %sv_2.14.reload, i64* %sv_2.0.reg2mem
store i64 %27, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%28 = add i32 %sv_1.03.reload, 1
%29 = icmp ult i64 %sv_2.0.reload, %arg5
%30 = icmp eq i1 %29, false
store i64 %sv_2.0.reload, i64* %sv_2.14.reg2mem
store i32 %28, i32* %sv_1.03.reg2mem
store i64 %storemerge.reload, i64* %sv_0.02.reg2mem
store i64 %storemerge.reload, i64* %sv_0.0.lcssa.reg2mem
store i64 %sv_2.0.reload, i64* %rax.0.reg2mem
br i1 %30, label LBL_10, label LBL_8
LBL_8:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%sv_1.03.reload = load i32, i32* %sv_1.03.reg2mem
%31 = icmp ult i32 %sv_1.03.reload, %9
br i1 %31, label LBL_4, label LBL_8.LBL_10_crit_edge
LBL_9:
%32 = zext i32 %sv_1.03.reload to i64
store i64 %sv_0.02.reload, i64* %sv_0.0.lcssa.reg2mem
store i64 %32, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%33 = icmp eq i64 %sv_0.0.lcssa.reload, 0
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %33, label LBL_12, label LBL_11
LBL_11:
call void @__assert_fail(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i32 35, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint (i32* @0 to i64), i64* %rax.1.reg2mem
br label LBL_12
LBL_12:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32 %sv_1.03.reload, { 3, 2, 1, 0 }
uselistorder i64 %sv_0.02.reload, { 0, 1, 3, 4, 2 }
uselistorder i64 %15, { 1, 0, 2 }
uselistorder i64 %sv_2.14.reload, { 2, 1, 0 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_2.14.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.lcssa.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder i1 false, { 2, 1, 0, 3, 4 }
uselistorder i64 %arg5, { 2, 1, 0 }
uselistorder i64 %arg4, { 1, 0 }
uselistorder label LBL_10, { 1, 0, 2 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | av_mallocz_static_15394 | av_mallocz_static | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = and i64 %arg1, 4294967295
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %1, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_3, label LBL_1
LBL_1:
%3 = load i32, i32* inttoptr (i64 4210780 to i32*), align 4
%4 = add i32 %3, 1
%5 = zext i32 %4 to i64
%6 = mul i64 %5, 8
%7 = load i64, i64* @gv_0, align 8
%8 = call i64 @FUNC(i64 %7, i64* nonnull @gv_1, i64 %6)
store i64 %8, i64* @gv_0, align 8
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 0, i64* %storemerge.reg2mem
br i1 %10, label LBL_2, label LBL_3
LBL_2:
%11 = load i32, i32* @gv_2, align 4
store i32 ptrtoint (i64* @gv_3 to i32), i32* @gv_2, align 4
%12 = zext i32 %11 to i64
%13 = mul i64 %12, 8
%14 = add i64 %13, %8
%15 = inttoptr i64 %14 to i64*
store i64 %1, i64* %15, align 8
store i64 %1, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* @gv_2, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 2, 0 }
} | 1 |
BinRealVul | ff_cavs_init_top_lines_15446 | ff_cavs_init_top_lines | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = bitcast i64* %rdi to i32*
%sext = mul i64 %1, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
store i64 %5, i64* %7, align 8
%8 = load i32, i32* %3, align 8
%9 = mul i32 %8, 2
%10 = or i32 %9, 1
%11 = sext i32 %10 to i64
%12 = mul i64 %11, 8
%13 = add i64 %2, 16
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %12)
%17 = inttoptr i64 %15 to i64*
store i64 %16, i64* %17, align 8
%18 = load i32, i32* %3, align 8
%19 = mul i32 %18, 2
%20 = or i32 %19, 1
%21 = sext i32 %20 to i64
%22 = mul i64 %21, 8
%23 = load i64, i64* %14, align 8
%24 = add i64 %23, 8
%25 = call i64 @FUNC(i64 %22)
%26 = inttoptr i64 %24 to i64*
store i64 %25, i64* %26, align 8
%27 = load i32, i32* %3, align 8
%28 = mul i32 %27, 2
%29 = sext i32 %28 to i64
%30 = call i64 @FUNC(i64 %29)
%31 = add i64 %2, 24
%32 = inttoptr i64 %31 to i64*
store i64 %30, i64* %32, align 8
%33 = load i32, i32* %3, align 8
%34 = mul i32 %33, 16
%35 = add i32 %34, 16
%36 = sext i32 %35 to i64
%37 = call i64 @FUNC(i64 %36)
%38 = add i64 %2, 32
%39 = inttoptr i64 %38 to i64*
store i64 %37, i64* %39, align 8
%40 = load i32, i32* %3, align 8
%41 = mul i32 %40, 10
%42 = sext i32 %41 to i64
%43 = call i64 @FUNC(i64 %42)
%44 = add i64 %2, 40
%45 = inttoptr i64 %44 to i64*
store i64 %43, i64* %45, align 8
%46 = load i32, i32* %3, align 8
%47 = mul i32 %46, 10
%48 = sext i32 %47 to i64
%49 = call i64 @FUNC(i64 %48)
%50 = add i64 %2, 48
%51 = inttoptr i64 %50 to i64*
store i64 %49, i64* %51, align 8
%52 = load i32, i32* %3, align 8
%53 = add i64 %2, 4
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = mul i32 %52, 4
%57 = mul i32 %56, %55
%58 = sext i32 %57 to i64
%59 = mul i64 %58, 8
%60 = call i64 @FUNC(i64 %59)
%61 = add i64 %2, 56
%62 = inttoptr i64 %61 to i64*
store i64 %60, i64* %62, align 8
%63 = load i32, i32* %3, align 8
%64 = load i32, i32* %54, align 4
%65 = mul i32 %64, %63
%66 = sext i32 %65 to i64
%67 = call i64 @FUNC(i64 %66)
%68 = add i64 %2, 64
%69 = inttoptr i64 %68 to i64*
store i64 %67, i64* %69, align 8
%70 = call i64 @FUNC(i64 128)
%71 = add i64 %2, 72
%72 = inttoptr i64 %71 to i64*
store i64 %70, i64* %72, align 8
ret i64 %70
uselistorder i64 %70, { 1, 0 }
uselistorder i64 8, { 0, 3, 1, 2, 4 }
uselistorder i64 (i64)* @av_malloc, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 32, { 1, 0 }
} | 1 |
BinRealVul | packet_getname_spkt_5348 | packet_getname_spkt | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = trunc i64 %arg4 to i32
%1 = icmp eq i32 %0, 0
store i64 95, i64* %storemerge.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 = bitcast i64* %arg2 to i16*
store i16 17, i16* %4, align 2
%5 = call i64 @FUNC()
%6 = call i64 @FUNC(i64 %3)
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = call i64 @FUNC(i64 %3)
%10 = zext i32 %8 to i64
%11 = call i64 @FUNC(i64 %9, i64 %10)
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = inttoptr i64 %11 to i8*
%14 = add i64 %2, 2
%15 = inttoptr i64 %14 to i8*
%16 = call i8* @strncpy(i8* %15, i8* %13, i32 14)
br label LBL_4
LBL_3:
%17 = add i64 %2, 2
%18 = inttoptr i64 %17 to i64*
%19 = call i64* @memset(i64* %18, i32 0, i32 14)
br label LBL_4
LBL_4:
%20 = call i64 @FUNC()
%21 = bitcast i64* %arg3 to i32*
store i32 16, i32* %21, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | track_set_index_12833 | track_set_index | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp slt i32 %0, 101
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%3 = call i32 @fwrite(i64* bitcast ([18 x i8]* @gv_1 to i64*), i32 1, i32 17, %_IO_FILE* %2)
%4 = sext i32 %3 to i64
store i64 %4, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%sext = mul i64 %arg2, 4294967296
%5 = ashr exact i64 %sext, 29
%6 = add i64 %5, %arg1
%7 = inttoptr i64 %6 to i64*
store i64 %arg3, i64* %7, align 8
store i64 %arg1, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | gen_op_mfspr_2694 | gen_op_mfspr | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.in.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = and i64 %3, 4294967295
%6 = call i64 @FUNC(i64 %5)
%7 = add i64 %4, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 2
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = and i64 %6, 4294967295
%13 = mul nuw nsw i64 %12, 24
%14 = add i64 %4, 16
%15 = add i64 %14, %13
store i64 %15, i64* %sv_0.0.in.in.reg2mem
br label LBL_5
LBL_2:
%16 = icmp eq i32 %9, 0
%17 = and i64 %6, 4294967295
%18 = mul nuw nsw i64 %17, 24
%19 = add i64 %18, %4
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%20 = add i64 %19, 24
store i64 %20, i64* %sv_0.0.in.in.reg2mem
br label LBL_5
LBL_4:
%21 = add i64 %19, 32
store i64 %21, i64* %sv_0.0.in.in.reg2mem
br label LBL_5
LBL_5:
%22 = trunc i64 %6 to i32
%sv_0.0.in.in.reload = load i64, i64* %sv_0.0.in.in.reg2mem
%sv_0.0.in = inttoptr i64 %sv_0.0.in.in.reload to i64*
%sv_0.0 = load i64, i64* %sv_0.0.in, align 8
%23 = icmp eq i64 %sv_0.0, 0
%24 = icmp eq i1 %23, false
%25 = zext i1 %24 to i64
%26 = call i64 @FUNC(i64 %25)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_11, label LBL_6
LBL_6:
%29 = call i64 @FUNC(i64 %25)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_8, label LBL_7
LBL_7:
%32 = call i64 @FUNC(i64 %5)
store i64 %4, i64* %rax.0.reg2mem
br label LBL_12
LBL_8:
%33 = icmp eq i32 %22, 291
br i1 %33, label LBL_10, label LBL_9
LBL_9:
%34 = add i64 %4, 8
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = add i64 %36, -4
%38 = and i64 %6, 4294967295
%39 = call i64 @FUNC(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_0, i64 0, i64 0), i64 %38, i32 %22, i64 %37, i64 %2, i64 %1)
%40 = load i64, i64* %35, align 8
%41 = trunc i64 %40 to i32
%42 = add i32 %41, -4
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_0, i64 0, i64 0), i64 %38, i32 %22, i32 %42)
br label LBL_10
LBL_10:
%44 = call i64 @FUNC(i64 %4, i64 1)
store i64 %44, i64* %rax.0.reg2mem
br label LBL_12
LBL_11:
%45 = add i64 %4, 8
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = add i64 %47, -4
%49 = and i64 %6, 4294967295
%50 = call i64 @FUNC(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_1, i64 0, i64 0), i64 %49, i32 %22, i64 %48, i64 %2, i64 %1)
%51 = load i64, i64* %46, align 8
%52 = trunc i64 %51 to i32
%53 = add i32 %52, -4
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_1, i64 0, i64 0), i64 %49, i32 %22, i32 %53)
%55 = call i64 @FUNC(i64 %4, i64 2)
store i64 %55, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %22, { 3, 4, 0, 2, 1 }
uselistorder i64 %19, { 1, 0 }
uselistorder i64 %6, { 1, 2, 4, 0, 3 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 5, 6, 4, 3, 0, 1, 2, 7 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %sv_0.0.in.in.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @gen_inval_exception, { 1, 0 }
uselistorder i32 (i8*, ...)* @printf, { 1, 0, 2 }
uselistorder i64 (i8*, i64, i32, i64, i64, i64)* @qemu_log, { 1, 0 }
uselistorder i64 (i64)* @likely, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 4294967295, { 2, 3, 1, 4, 0, 5, 6 }
} | 0 |
BinRealVul | TIFFReadEncodedStrip_11795 | TIFFReadEncodedStrip | 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* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 0)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_13
LBL_1:
%sext = mul i64 %arg2, 4294967296
%8 = ashr exact i64 %sext, 32
%9 = trunc i64 %2 to i32
%10 = trunc i64 %8 to i32
%11 = icmp ugt i32 %9, %10
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = and i64 %2, 4294967295
%13 = and i64 %8, 4294967295
%14 = add i64 %3, 16
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0), i64 %13, i64 %12, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_13
LBL_3:
%18 = add i64 %3, 4
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i64 %3, 8
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = icmp ugt i32 %20, %23
%spec.select7 = select i1 %24, i32 %23, i32 %20
%25 = add i32 %23, -1
%26 = add i32 %25, %spec.select7
%27 = udiv i32 %26, %spec.select7
%28 = urem i32 %10, %27
%29 = mul i32 %spec.select7, %28
%30 = sub i32 %23, %29
%31 = icmp ugt i32 %30, %spec.select7
%spec.select = select i1 %31, i32 %spec.select7, i32 %30
%32 = zext i32 %spec.select to i64
%33 = call i64 @FUNC(i64 %3, i64 %32)
%34 = icmp eq i64 %33, 0
%35 = icmp eq i1 %34, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %35, label LBL_4, label LBL_13
LBL_4:
%36 = add i64 %3, 14
%37 = inttoptr i64 %36 to i16*
%38 = load i16, i16* %37, align 2
%39 = icmp eq i16 %38, 1
%40 = icmp eq i1 %39, false
%41 = icmp eq i64 %arg4, -1
%or.cond = or i1 %41, %40
%42 = icmp ugt i64 %33, %arg4
%or.cond4 = or i1 %42, %or.cond
br i1 %or.cond4, label LBL_11, label LBL_5
LBL_5:
%43 = call i64 @FUNC(i64 %3)
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_11, label LBL_6
LBL_6:
%47 = add i64 %3, 24
%48 = inttoptr i64 %47 to i16*
%49 = load i16, i16* %48, align 2
%50 = urem i16 %49, 2
%51 = icmp eq i16 %50, 0
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_11, label LBL_7
LBL_7:
%53 = ptrtoint i64* %arg3 to i64
%54 = call i64 @FUNC(i64 %3, i32 %10, i64 %53, i64 %33, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0))
%55 = icmp eq i64 %33, %54
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %55, label LBL_8, label LBL_13
LBL_8:
%56 = add i64 %3, 12
%57 = inttoptr i64 %56 to i16*
%58 = load i16, i16* %57, align 2
%59 = zext i16 %58 to i64
%60 = call i64 @FUNC(i64 %3, i64 %59)
%61 = trunc i64 %60 to i32
%62 = icmp eq i32 %61, 0
%63 = icmp eq i1 %62, false
store i64 %33, i64* %rax.0.reg2mem
br i1 %63, label LBL_13, label LBL_9
LBL_9:
%64 = load i16, i16* %48, align 2
%65 = and i16 %64, 2
%66 = icmp eq i16 %65, 0
%67 = icmp eq i1 %66, false
store i64 %33, i64* %rax.0.reg2mem
br i1 %67, label LBL_13, label LBL_10
LBL_10:
%68 = call i64 @FUNC(i64 %53, i64 %33)
store i64 %33, i64* %rax.0.reg2mem
br label LBL_13
LBL_11:
%69 = and i64 %8, 4294967295
%70 = call i64 @FUNC(i64 %3, i64 %69)
%71 = trunc i64 %70 to i32
%72 = icmp eq i32 %71, 0
%73 = icmp eq i1 %72, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %73, label LBL_12, label LBL_13
LBL_12:
%74 = icmp eq i1 %42, false
%or.cond6 = or i1 %41, %74
%sv_0.0 = select i1 %or.cond6, i64 %33, i64 %arg4
%75 = icmp eq i64* %arg1, null
%76 = icmp eq i1 %75, false
%sv_0.0. = select i1 %76, i64 %sv_0.0, i64 4294967295
store i64 %sv_0.0., i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i1 %42, { 1, 0 }
uselistorder i1 %41, { 1, 0 }
uselistorder i64 %33, { 3, 2, 5, 1, 0, 7, 6, 4, 8 }
uselistorder i32 %spec.select7, { 4, 2, 1, 3, 0 }
uselistorder i32 %23, { 1, 0, 2, 3 }
uselistorder i32 %10, { 1, 0, 2 }
uselistorder i64 %8, { 0, 2, 1 }
uselistorder i64 %3, { 6, 1, 2, 4, 3, 5, 7, 8, 10, 9, 0, 11 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 5, 4, 3, 6, 7, 9, 8 }
uselistorder i64* %0, { 1, 0 }
uselistorder i16 2, { 1, 0 }
uselistorder i64 4294967295, { 6, 0, 7, 1, 2, 4, 8, 5, 3, 9 }
uselistorder i1 false, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9 }
uselistorder label LBL_13, { 0, 1, 4, 3, 2, 5, 6, 8, 7 }
} | 1 |
BinRealVul | readUInt16_12984 | readUInt16 | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC(i64 %arg1)
%2 = mul i64 %1, 256
%3 = add i64 %2, %0
%4 = and i64 %3, 4294967295
ret i64 %4
uselistorder i64 (i64)* @readUInt8, { 1, 0 }
} | 1 |
BinRealVul | spapr_get_cpu_core_type_14931 | spapr_get_cpu_core_type | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = call i64 @FUNC(i64 %arg1, i64* nonnull @gv_0, i64 2)
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i64 %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
%8 = call i64 @FUNC(i64 %4)
%9 = call i64 @FUNC(i64 %7)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i64 %7, i64* %rax.0.reg2mem
br i1 %12, label LBL_3, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i64 %7)
%14 = call i64 @FUNC(i64 %arg1)
%15 = icmp eq i64 %14, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = call i64 @FUNC(i64 %14)
store i64 %16, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %7, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 1 |
BinRealVul | arm_gic_class_init_2269 | arm_gic_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i32*
store i32 1, i32* %1, align 4
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
store i64 %4, i64* %arg1, align 8
store i64 4198662, i64* %3, align 8
ret i64 %0
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.