dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | GetCode__5605 | GetCode_ | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%sv_0.01.reg2mem = alloca i32
%sv_1.02.reg2mem = alloca i32
%storemerge3.reg2mem = alloca i32
%.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i32
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = icmp eq i32 %arg4, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = bitcast i64* %arg2 to i32*
store i32 0, i32* %4, align 4
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
store i32 0, i32* %6, align 4
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i32*
store i32 0, i32* %8, align 4
%9 = add i64 %2, 12
%10 = inttoptr i64 %9 to i32*
store i32 0, i32* %10, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_2:
%11 = trunc i64 %1 to i32
%12 = add i32 %11, %arg3
%13 = add i64 %2, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp ult i32 %12, %15
store i32 %12, i32* %.pre-phi.reg2mem
store i32 %11, i32* %.reg2mem
br i1 %16, label LBL_7, label LBL_3
LBL_3:
%17 = add i64 %2, 12
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp eq i32 %19, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %20, label LBL_4, label LBL_14
LBL_4:
%21 = ptrtoint i64* %arg1 to i64
%22 = add i64 %2, 8
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i32 %24, -2
%26 = sext i32 %25 to i64
%27 = add i64 %2, 16
%28 = add i64 %27, %26
%29 = inttoptr i64 %28 to i8*
%30 = load i8, i8* %29, align 1
%31 = inttoptr i64 %27 to i8*
store i8 %30, i8* %31, align 1
%32 = load i32, i32* %23, align 4
%33 = add i32 %32, -1
%34 = sext i32 %33 to i64
%35 = add i64 %27, %34
%36 = inttoptr i64 %35 to i8*
%37 = load i8, i8* %36, align 1
%38 = add i64 %2, 17
%39 = inttoptr i64 %38 to i8*
store i8 %37, i8* %39, align 1
%40 = add i64 %2, 18
%41 = call i64 @FUNC(i64 %21, i64 %40, i64 %arg5)
%42 = trunc i64 %41 to i32
%43 = icmp eq i32 %42, 0
%44 = icmp slt i32 %42, 0
%45 = icmp eq i1 %44, false
%46 = icmp eq i1 %43, false
%47 = icmp eq i1 %45, %46
br i1 %47, label LBL_6, label LBL_5
LBL_5:
store i32 1, i32* %18, align 4
br label LBL_6
LBL_6:
%48 = bitcast i64* %rsi to i32*
%49 = add i32 %42, 2
store i32 %49, i32* %23, align 4
%50 = load i32, i32* %48, align 8
%51 = load i32, i32* %14, align 4
%52 = add i32 %50, 16
%53 = sub i32 %52, %51
%54 = bitcast i64* %arg2 to i32*
store i32 %53, i32* %54, align 4
%55 = mul i32 %42, 8
%56 = add i32 %55, 16
store i32 %56, i32* %14, align 4
%.pre = load i32, i32* %48, align 8
%.pre4 = add i32 %.pre, %arg3
store i32 %.pre4, i32* %.pre-phi.reg2mem
store i32 %.pre, i32* %.reg2mem
br label LBL_7
LBL_7:
%.reload = load i32, i32* %.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%57 = icmp slt i32 %.pre-phi.reload, 2049
store i64 4294967295, i64* %sv_0.1.reg2mem
br i1 %57, label LBL_8, label LBL_13
LBL_8:
%58 = icmp sgt i32 %arg3, 0
store i64 0, i64* %sv_0.1.reg2mem
br i1 %58, label LBL_9, label LBL_13
LBL_9:
%59 = add i64 %2, 16
store i32 0, i32* %storemerge3.reg2mem
store i32 %.reload, i32* %sv_1.02.reg2mem
store i32 0, i32* %sv_0.01.reg2mem
br label LBL_10
LBL_10:
%sv_0.01.reload = load i32, i32* %sv_0.01.reg2mem
%sv_1.02.reload = load i32, i32* %sv_1.02.reg2mem
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%60 = sdiv i32 %sv_1.02.reload, 128
%61 = sext i32 %60 to i64
%62 = add i64 %59, %61
%63 = inttoptr i64 %62 to i8*
%64 = load i8, i8* %63, align 1
%65 = zext i8 %64 to i64
%66 = urem i32 %sv_1.02.reload, 8
%67 = icmp eq i32 %66, 0
store i64 %65, i64* %rdx.0.reg2mem
br i1 %67, label LBL_11, label %68
LBL_11:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%72 = urem i64 %rdx.0.reload, 2
%73 = icmp eq i64 %72, 0
%74 = icmp eq i1 %73, false
%75 = zext i1 %74 to i32
%76 = urem i32 %storemerge3.reload, 32
%77 = shl i32 %75, %76
%78 = or i32 %77, %sv_0.01.reload
%79 = add i32 %sv_1.02.reload, 1
%80 = add nuw nsw i32 %storemerge3.reload, 1
%exitcond = icmp eq i32 %80, %arg3
store i32 %80, i32* %storemerge3.reg2mem
store i32 %79, i32* %sv_1.02.reg2mem
store i32 %78, i32* %sv_0.01.reg2mem
br i1 %exitcond, label LBL_12, label LBL_10
LBL_12:
%phitmp = zext i32 %78 to i64
store i64 %phitmp, i64* %sv_0.1.reg2mem
br label LBL_13
LBL_13:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%81 = add i32 %.reload, %arg3
%82 = bitcast i64* %arg2 to i32*
store i32 %81, i32* %82, align 4
store i64 %sv_0.1.reload, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %78, { 1, 0 }
uselistorder i32 %66, { 1, 0 }
uselistorder i32 %sv_1.02.reload, { 0, 2, 1 }
uselistorder i32 %.reload, { 1, 0 }
uselistorder i32 %42, { 0, 1, 3, 2 }
uselistorder i64 %27, { 0, 2, 1 }
uselistorder i64 %2, { 5, 3, 4, 8, 9, 7, 6, 0, 1, 2 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.02.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.01.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 16, { 1, 0 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i32 %arg3, { 0, 3, 4, 1, 2 }
uselistorder label LBL_14, { 1, 0, 2 }
uselistorder label LBL_11, { 1, 0 }
} | 0 |
BinRealVul | mirror_complete_597 | mirror_complete | define i64 @FUNC(i64* %arg1, i64* %arg2) 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 = add i64 %1, 16
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4, i64 0)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = load i64, i64* %3, align 8
%10 = call i64 @FUNC(i64 %9, i64* nonnull %sv_0, i64 4096)
%11 = call i64 @FUNC(i64 %0, i64 1, i64* nonnull %sv_0)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%12 = add i64 %1, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = inttoptr i64 %4 to i64*
%18 = call i64 @FUNC(i64 %0, i64 2, i64* %17)
store i64 %18, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%19 = add i64 %1, 12
%20 = inttoptr i64 %19 to i32*
store i32 1, i32* %20, align 4
%21 = call i64 @FUNC(i64 %1)
store i64 %21, 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 %1, { 0, 2, 1, 3 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i64, i64*)* @error_set, { 1, 0 }
} | 0 |
BinRealVul | fiin_dump_10207 | fiin_dump | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i64 %arg2)
%1 = inttoptr i64 %arg2 to %_IO_FILE*
%2 = call i32 @fwrite(i64* bitcast ([3 x i8]* @gv_1 to i64*), i32 1, i32 2, %_IO_FILE* %1)
%3 = call i64 @FUNC(i64 ptrtoint ([3 x i8]* @gv_1 to i64), i64 %arg2)
%4 = add i64 %arg1, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %6, i64 %arg2)
br label LBL_2
LBL_2:
%9 = add i64 %arg1, 16
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i64 %11, i64 %arg2)
br label LBL_4
LBL_4:
%14 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i64 %arg1, i64 %arg2)
ret i64 0
uselistorder i64 (i64, i64)* @gf_isom_box_dump, { 1, 0 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 2, 1, 0 }
uselistorder i64 %arg2, { 2, 1, 0, 3, 4, 5 }
} | 0 |
BinRealVul | write_pseudoref_4226 | write_pseudoref | define i64 @FUNC(i64 %arg1, i64* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
store i64 0, i64* %sv_2, align 8
%3 = icmp eq i64* %arg2, null
%4 = icmp eq i1 %3, false
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_12
LBL_1:
%5 = ptrtoint i64* %arg4 to i64
%6 = ptrtoint i64* %arg2 to i64
%7 = call i64 @FUNC(i64 %6)
%8 = call i64 @FUNC(i64* nonnull %sv_2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64 %7, i64 %5, i64 %2, i64 %1)
%9 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 %arg1)
%10 = call i64 @FUNC()
%11 = and i64 %10, 4294967295
%12 = call i64 @FUNC(i64 4211200, i64 %9, i64 1, i64 %11)
%13 = trunc i64 %12 to i32
%14 = icmp slt i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = call i32* @__errno_location()
%17 = load i32, i32* %16, align 4
%18 = call i8* @strerror(i32 %17)
%19 = ptrtoint i8* %18 to i64
%20 = call i64 @FUNC(i64* %arg4, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_2, i64 0, i64 0), i64 %9, i64 %19, i64 %2, i64 %1)
store i64 4294967295, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_3:
%21 = icmp eq i64* %arg3, null
br i1 %21, label LBL_8, label LBL_4
LBL_4:
%22 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_1)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%25 = call i64 @FUNC(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_3, i64 0, i64 0), i64 %arg1)
unreachable
LBL_6:
%26 = ptrtoint i64* %arg3 to i64
%27 = call i64 @FUNC(i64* nonnull %sv_1, i64 %26)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
br i1 %29, label LBL_8, label LBL_7
LBL_7:
%30 = call i64 @FUNC(i64* %arg4, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_4, i64 0, i64 0), i64 %arg1, i64 %11, i64 %2, i64 %1)
%31 = call i64 @FUNC(i64 4211200)
store i64 4294967295, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_8:
%32 = load i64, i64* %sv_2, align 8
%33 = and i64 %12, 4294967295
%34 = call i64 @FUNC(i64 %33, i64 %32, i64 0)
%35 = trunc i64 %34 to i32
%36 = icmp slt i32 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_10, label LBL_9
LBL_9:
%38 = call i64 @FUNC(i64* %arg4, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_5, i64 0, i64 0), i64 %9, i64 %32, i64 %2, i64 %1)
%39 = call i64 @FUNC(i64 4211200)
store i64 4294967295, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_10:
%40 = call i64 @FUNC(i64 4211200)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_11:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%41 = call i64 @FUNC(i64* nonnull %sv_2)
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br label LBL_12
LBL_12:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %9, { 1, 0, 2 }
uselistorder i64* %sv_2, { 0, 2, 1, 3 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64)* @rollback_lock_file, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 4294967295, { 2, 3, 1, 0, 5, 4 }
uselistorder i64 (i64*, i8*, i64, i64, i64, i64)* @strbuf_addf, { 3, 2, 1, 0 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2, 3 }
uselistorder label LBL_12, { 1, 0 }
} | 0 |
BinRealVul | xlnx_zynqmp_class_init_2180 | xlnx_zynqmp_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = load i64, i64* @gv_0, align 8
store i64 %1, i64* %arg1, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
store i64 4198662, i64* %3, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i32*
store i32 1, i32* %5, align 4
ret i64 %0
uselistorder i64 %0, { 1, 0, 2 }
} | 0 |
reposvul_c_test | rebase_bytes_194 | rebase_bytes | define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i32* %arg1, null
%3 = icmp eq i64* %arg2, null
%or.cond = or i1 %2, %3
br i1 %or.cond, label LBL_7, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg4, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = trunc i64 %1 to i32
%7 = icmp eq i32 %6, 3
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = trunc i64 %5 to i32
%10 = ptrtoint i32* %arg1 to i64
%11 = call i64 @FUNC(i64 %10, i64 %4, i64 %arg3, i32 %9, i64 %arg5)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_7
LBL_3:
%12 = icmp ne i32 %6, 2
%13 = icmp eq i32 %6, 4
%14 = icmp eq i1 %13, false
%or.cond5 = icmp eq i1 %12, %14
br i1 %or.cond5, label LBL_5, label LBL_4
LBL_4:
%15 = trunc i64 %5 to i32
%16 = ptrtoint i32* %arg1 to i64
%17 = call i64 @FUNC(i64 %16, i64 %4, i64 %arg3, i32 %15, i64 %arg5)
store i64 %17, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%18 = and i64 %1, 4294967295
%19 = icmp eq i32 %6, 1
%20 = icmp eq i1 %19, false
store i64 %18, i64* %rax.0.reg2mem
br i1 %20, label LBL_7, label LBL_6
LBL_6:
%21 = trunc i64 %5 to i32
%22 = ptrtoint i32* %arg1 to i64
%23 = call i64 @FUNC(i64 %22, i64 %4, i64 %arg3, i32 %21, i64 %arg5)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %6, { 2, 3, 1, 0 }
uselistorder i64 %5, { 1, 2, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i64 %arg3, { 1, 2, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i32* %arg1, { 1, 2, 0, 3 }
uselistorder label LBL_7, { 1, 2, 3, 4, 0 }
} | 0 |
BinRealVul | uwtmp_login_10149 | uwtmp_login | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%2 = call i32 @getpid()
%3 = trunc i64 %1 to i32
%4 = call i8* @ttyname(i32 %3)
%5 = call i32 @strncmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i32 5)
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
%8 = ptrtoint i8* %4 to i64
%9 = add i64 %8, 5
%10 = inttoptr i64 %9 to i8*
%sv_7.0 = select i1 %7, i8* %4, i8* %10
%11 = call i64* @memset(i64* nonnull %sv_6, i32 0, i32 384)
store i64 7, i64* %sv_6, align 8
%12 = ptrtoint i32* %arg1 to i64
%13 = add i64 %12, 4
%14 = bitcast i64* %sv_5 to i8*
%15 = inttoptr i64 %13 to i8*
%16 = call i8* @strncpy(i8* nonnull %14, i8* %15, i32 32)
%17 = bitcast i64* %sv_4 to i8*
%18 = call i8* @strncpy(i8* nonnull %17, i8* %sv_7.0, i32 32)
%19 = bitcast i64* %sv_2 to i8*
%20 = bitcast i64* %sv_3 to i8*
%21 = call i8* @strncpy(i8* nonnull %19, i8* nonnull %20, i32 4)
%22 = add i64 %12, 36
%23 = inttoptr i64 %22 to %ether_addr*
%24 = call i8* @ether_ntoa(%ether_addr* %23)
%25 = bitcast i64* %sv_1 to i8*
%26 = call i8* @strncpy(i8* nonnull %25, i8* %24, i32 256)
%27 = bitcast i64* %sv_0 to i32*
%28 = call i32 @time(i32* nonnull %27)
call void @setutent()
%29 = bitcast i64* %sv_6 to %utmp*
%30 = call %utmp* @pututline(%utmp* nonnull %29)
call void @endutent()
call void @updwtmp(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0), %utmp* nonnull %29)
ret i64 ptrtoint (i32* @0 to i64)
uselistorder i64* %sv_6, { 0, 2, 1 }
} | 0 |
BinRealVul | snd_hda_multi_out_analog_open_4878 | snd_hda_multi_out_analog_open | define i64 @FUNC(i64* %arg1, i32* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdx.3.reg2mem = alloca i64
%rdx.2.reg2mem = alloca i64
%rdx.1.reg2mem = alloca i64
%rdx.0.in.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i32* %arg2 to i64
%4 = trunc i64 %1 to i32
%5 = and i64 %1, 4294967295
%6 = bitcast i64* %arg3 to i32*
store i32 %4, i32* %6, align 4
%7 = add i64 %3, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
store i64 %5, i64* %rdx.3.reg2mem
br i1 %10, label LBL_10, label LBL_1
LBL_1:
%11 = ptrtoint i64* %arg4 to i64
%12 = ptrtoint i64* %arg3 to i64
%13 = add i64 %3, 8
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_3, label LBL_2
LBL_2:
%18 = trunc i64 %2 to i32
store i32 %18, i32* %14, align 4
%19 = add i64 %11, 4
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i64 %3, 12
%23 = inttoptr i64 %22 to i32*
store i32 %21, i32* %23, align 4
%24 = add i64 %11, 8
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = add i64 %3, 16
%28 = inttoptr i64 %27 to i32*
store i32 %26, i32* %28, align 4
store i32 %26, i32* %rdx.0.in.reg2mem
br label LBL_4
LBL_3:
%29 = add i64 %12, 4
%30 = inttoptr i64 %29 to i32*
store i32 %15, i32* %30, align 4
%31 = add i64 %3, 12
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = add i64 %12, 8
%35 = inttoptr i64 %34 to i32*
store i32 %33, i32* %35, align 4
%36 = add i64 %3, 16
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = add i64 %11, 8
%40 = inttoptr i64 %39 to i32*
store i32 %38, i32* %40, align 4
store i32 %38, i32* %rdx.0.in.reg2mem
br label LBL_4
LBL_4:
%41 = ptrtoint i64* %arg1 to i64
%rdx.0.in.reload = load i32, i32* %rdx.0.in.reg2mem
%rdx.0 = zext i32 %rdx.0.in.reload to i64
%42 = add i64 %3, 20
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
store i64 %rdx.0, i64* %rdx.1.reg2mem
br i1 %46, label LBL_6, label LBL_5
LBL_5:
%47 = add i64 %3, 28
%48 = add i64 %3, 24
%49 = load i32, i32* %8, align 4
%50 = call i64 @FUNC(i64 %41, i32 %49, i64 %42, i64 %48, i64 %47)
store i64 %42, i64* %rdx.1.reg2mem
br label LBL_6
LBL_6:
%rdx.1.reload = load i64, i64* %rdx.1.reg2mem
%51 = call i64 @FUNC(i64 %41)
%52 = add i64 %3, 32
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = icmp eq i32 %54, 0
store i64 %rdx.1.reload, i64* %rdx.2.reg2mem
br i1 %55, label LBL_9, label LBL_7
LBL_7:
%56 = add i64 %12, 4
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = load i32, i32* %43, align 4
%60 = and i32 %59, %58
store i32 %60, i32* %57, align 4
%61 = add i64 %12, 8
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = add i64 %3, 24
%65 = inttoptr i64 %64 to i32*
%66 = load i32, i32* %65, align 4
%67 = and i32 %66, %63
store i32 %67, i32* %62, align 4
%68 = add i64 %3, 28
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = zext i32 %70 to i64
%72 = add i64 %11, 8
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = icmp ult i32 %70, %74
store i64 %71, i64* %rdx.2.reg2mem
br i1 %75, label LBL_8, label LBL_9
LBL_8:
store i32 %70, i32* %73, align 4
store i64 %71, i64* %rdx.2.reg2mem
br label LBL_9
LBL_9:
%rdx.2.reload = load i64, i64* %rdx.2.reg2mem
%76 = call i64 @FUNC(i64 %41)
store i64 %rdx.2.reload, i64* %rdx.3.reg2mem
br label LBL_10
LBL_10:
%rdx.3.reload = load i64, i64* %rdx.3.reg2mem
%77 = call i64 @FUNC(i64 %rdx.3.reload, i64 0, i64 0, i64 2)
ret i64 %77
uselistorder i64 %71, { 1, 0 }
uselistorder i64 %41, { 1, 2, 0 }
uselistorder i64 %11, { 2, 3, 0, 1 }
uselistorder i64 %3, { 2, 3, 4, 7, 6, 5, 8, 9, 0, 1, 10, 11 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %rdx.0.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdx.2.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder label LBL_9, { 1, 0, 2 }
} | 0 |
BinRealVul | gen_subq_msw_246 | gen_subq_msw | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = call i64 @FUNC(i64 %1)
%4 = call i64 @FUNC(i64 %0, i64 %0, i64 32)
%5 = call i64 @FUNC(i64 %arg1, i64 %0, i64 %arg1)
%6 = call i64 @FUNC(i64 %0)
ret i64 %arg1
uselistorder i64 %0, { 0, 1, 3, 2, 4 }
uselistorder i64 %arg1, { 0, 2, 1 }
} | 0 |
BinRealVul | visit_end_implicit_struct_16946 | visit_end_implicit_struct | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 %0, i64* %rdi.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @gv_1, i64 0, i64 0), i32 18, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([20 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%4 = ptrtoint i64* %arg1 to i64
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%5 = icmp eq i64 %rdi.0.reload, 0
%spec.select = select i1 %5, i64 0, i64 %4
ret i64 %spec.select
uselistorder [20 x i8]* @gv_0, { 1, 0 }
} | 1 |
BinRealVul | e1000e_set_pbaclr_1245 | e1000e_set_pbaclr | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.2.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %arg3 to i32
%4 = bitcast i64* %arg1 to i32*
store i32 %3, i32* %4, align 4
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = trunc i64 %1 to i32
store i64 0, i64* %indvars.iv.reg2mem
store i64 %8, i64* %rax.2.reg2mem
br i1 %10, label LBL_4, label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%12 = trunc i64 %indvars.iv.reload to i32
%13 = shl i32 1, %12
%14 = and i32 %13, %11
%15 = icmp eq i32 %14, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = load i64, i64* %6, align 8
%17 = call i64 @FUNC(i64 %16, i64 %indvars.iv.reload)
store i64 %17, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 32
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %rax.0.reload, i64* %rax.2.reg2mem
br i1 %exitcond, label LBL_4, label LBL_1
LBL_4:
%rax.2.reload = load i64, i64* %rax.2.reg2mem
ret i64 %rax.2.reload
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | virtio_setup_2618 | virtio_setup | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.in.in.in.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%sv_1 = alloca i64, align 8
%0 = call i64 @FUNC()
%1 = icmp eq i64 %arg1, -1
store i32 0, i32* %storemerge2.reg2mem
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = urem i64 %arg1, 65536
%3 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 %2)
%4 = udiv i64 %arg1, 65536
%5 = trunc i64 %4 to i16
%6 = urem i16 %5, 4
store i16 %6, i16* inttoptr (i64 4210762 to i16*), align 2
%7 = load i16, i16* bitcast (i32* @gv_1 to i16*), align 4
%8 = zext i16 %7 to i64
%9 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0), i64 %8)
%10 = call i64 @FUNC(i64* nonnull %sv_1, i64 %2)
store i64 %10, i64* %sv_0.1.in.in.in.reg2mem
br label LBL_3
LBL_2:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%11 = trunc i32 %storemerge2.reload to i16
store i16 %11, i16* bitcast (i32* @gv_1 to i16*), align 4
%12 = call i64 @FUNC(i64* nonnull %sv_1, i64 4294967295)
%13 = trunc i64 %12 to i8
%14 = icmp eq i8 %13, 0
%15 = add nuw nsw i32 %storemerge2.reload, 1
%16 = icmp ult i32 %15, 3
%or.cond = icmp eq i1 %16, %14
store i32 %15, i32* %storemerge2.reg2mem
store i64 %12, i64* %sv_0.1.in.in.in.reg2mem
br i1 %or.cond, label LBL_2, label LBL_3
LBL_3:
%sv_0.1.in.in.in.reload = load i64, i64* %sv_0.1.in.in.in.reg2mem
%sv_0.1.in.mask5 = urem i64 %sv_0.1.in.in.in.reload, 256
%17 = icmp eq i64 %sv_0.1.in.mask5, 1
br i1 %17, label LBL_5, label LBL_4
LBL_4:
%18 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_3, i64 0, i64 0))
br label LBL_5
LBL_5:
%19 = load i16, i16* bitcast (i32* @gv_1 to i16*), align 4
%20 = call i64 @FUNC(i16 %19)
%21 = call i64 @FUNC()
%22 = and i64 %21, 4294967295
%23 = xor i64 %22, 1
%24 = trunc i64 %23 to i8
%25 = icmp eq i8 %24, 0
store i64 %23, i64* %rax.0.reg2mem
br i1 %25, label LBL_7, label LBL_6
LBL_6:
%26 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_4, i64 0, i64 0))
store i64 %26, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 1, 0 }
uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i64 (i8*)* @panic, { 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i64 (i64*, i64)* @find_dev, { 1, 0 }
uselistorder i16* bitcast (i32* @gv_1 to i16*), { 2, 1, 0 }
uselistorder i64 (i8*, i64)* @debug_print_int, { 1, 0 }
uselistorder i32 1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | v9fs_lcreate_3416 | v9fs_lcreate | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%sv_0.1.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%.reg2mem = alloca i32
%.pre-phi9.reg2mem = alloca i64*
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%1 = ptrtoint i64* %arg1 to i64
%2 = load i32, i32* %0
%3 = load i32, i32* %0
%sv_2 = alloca i32, align 4
%sv_3 = alloca i64, align 8
%4 = load i32, i32* %0
%5 = load i32, i32* %0
%sv_4 = alloca i32, align 4
%sv_5 = alloca i64, align 8
%sv_6 = alloca i32, align 4
%6 = bitcast i32* %sv_4 to i64*
%7 = bitcast i32* %sv_6 to i64*
%8 = call i64 @FUNC(i64 %1, i64 7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %6, i64* nonnull %sv_5, i64* nonnull %7)
%9 = zext i32 %4 to i64
%10 = load i32, i32* %sv_6, align 4
%11 = zext i32 %10 to i64
%12 = load i32, i32* %sv_4, align 4
%13 = zext i32 %12 to i64
%14 = add i64 %1, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = zext i32 %5 to i64
%18 = call i64 @FUNC(i64 %9, i32 %16, i64 %13, i64 %11, i64 %9, i64 %17)
%19 = load i32, i32* %sv_4, align 4
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %1, i64 %20)
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_2, label LBL_0.LBL_7_crit_edge
LBL_1:
%.pre7 = add i64 %1, 16
%.pre8 = inttoptr i64 %.pre7 to i64*
store i64* %.pre8, i64** %.pre-phi9.reg2mem
store i64 -2, i64* %sv_0.1.reg2mem
br label LBL_7
LBL_2:
%24 = load i32, i32* %sv_6, align 4
%25 = add i64 %1, 16
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = zext i32 %24 to i64
%29 = call i64 @FUNC(i64 %27, i64 %28)
%30 = trunc i64 %29 to i32
store i32 %30, i32* %sv_6, align 4
%31 = and i64 %29, 4294967231
%32 = or i64 %31, 64
%33 = call i64 @FUNC(i64 %1, i64 %21, i64* nonnull %sv_5, i64 %17, i64 %32, i64 %9)
%34 = icmp slt i64 %33, 0
store i64 %33, i64* %sv_0.0.reg2mem
br i1 %34, label LBL_6, label LBL_3
LBL_3:
%35 = inttoptr i64 %21 to i32*
store i32 1, i32* %35, align 4
%36 = load i32, i32* %sv_6, align 4
%37 = add i64 %21, 4
%38 = inttoptr i64 %37 to i32*
store i32 %36, i32* %38, align 4
%39 = load i32, i32* %sv_6, align 4
%40 = trunc i32 %39 to i8
%41 = icmp sgt i8 %40, -1
br i1 %41, label LBL_5, label LBL_4
LBL_4:
%42 = add i64 %21, 8
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = or i32 %44, 2
store i32 %45, i32* %43, align 4
br label LBL_5
LBL_5:
%46 = add i64 %21, 16
%47 = call i64 @FUNC(i64 %1, i64 %46)
%48 = trunc i64 %47 to i32
%49 = bitcast i32* %sv_2 to i64*
%50 = call i64 @FUNC(i64* nonnull %sv_3, i64* nonnull %49)
%51 = and i64 %47, 4294967295
%52 = call i64 @FUNC(i64 %1, i64 7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %49, i64 %51)
%53 = add i64 %52, 7
store i32 %48, i32* %sv_1.0.reg2mem
store i64 %53, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%54 = call i64 @FUNC(i64 %1, i64 %21)
%.pre = load i32, i32* %sv_2, align 4
store i64* %26, i64** %.pre-phi9.reg2mem
store i32 %.pre, i32* %.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_7
LBL_7:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%.reload = load i32, i32* %.reg2mem
%.pre-phi9.reload = load i64*, i64** %.pre-phi9.reg2mem
%55 = zext i32 %3 to i64
%56 = zext i32 %.reload to i64
%57 = load i32, i32* %15, align 4
%58 = zext i32 %sv_1.1.reload to i64
%59 = call i64 @FUNC(i64 %55, i32 %57, i64 %56, i32 %2, i64 %55, i64 %58)
%60 = load i64, i64* %.pre-phi9.reload, align 8
%61 = call i64 @FUNC(i64 %60, i64 %1, i64 %sv_0.1.reload)
%62 = call i64 @FUNC(i64* nonnull %sv_5)
ret i64 %62
uselistorder i64 %21, { 0, 1, 2, 3, 5, 4, 6 }
uselistorder i32* %sv_6, { 4, 3, 2, 1, 0, 5 }
uselistorder i32* %sv_4, { 1, 0, 2 }
uselistorder i64 %1, { 3, 4, 1, 2, 5, 6, 0, 7, 8, 9 }
uselistorder i32* %0, { 3, 2, 1, 0 }
uselistorder i64 16, { 1, 2, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | armv7m_nvic_class_init_1323 | armv7m_nvic_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %4, align 8
store i64 4198662, i64* %arg1, align 8
store i64 4198669, i64* %2, align 8
ret i64 %0
} | 0 |
BinRealVul | ext4_llseek_10531 | ext4_llseek | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 1)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 %0, i64* %storemerge.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0)
%6 = add i64 %5, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
store i64 %8, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%9 = trunc i64 %arg3 to i32
%10 = icmp eq i32 %9, 4
br i1 %10, label LBL_8, label LBL_3
LBL_3:
%11 = icmp sgt i32 %9, 4
store i64 -22, i64* %rax.0.reg2mem
br i1 %11, label LBL_9, label LBL_4
LBL_4:
%12 = icmp sgt i32 %9, 2
br i1 %12, label LBL_7, label LBL_5
LBL_5:
%13 = icmp slt i32 %9, 0
%14 = icmp eq i1 %13, false
store i64 -22, i64* %rax.0.reg2mem
br i1 %14, label LBL_6, label LBL_9
LBL_6:
%15 = call i64 @FUNC(i64 %0)
%16 = call i64 @FUNC(i64 %0, i64 %arg2, i32 %9, i64 %storemerge.reload, i64 %15)
store i64 %16, i64* %rax.0.reg2mem
br label LBL_9
LBL_7:
%17 = call i64 @FUNC(i64 %0, i64 %arg2, i64 %storemerge.reload)
store i64 %17, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%18 = call i64 @FUNC(i64 %0, i64 %arg2, i64 %storemerge.reload)
store i64 %18, 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 %0, { 4, 3, 1, 2, 5, 0, 6 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 2, 1 }
uselistorder i64 -22, { 1, 0 }
uselistorder i32 4, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 %arg2, { 2, 1, 0 }
uselistorder label LBL_9, { 2, 3, 4, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | pdf_finalize_string_7686 | pdf_finalize_string | define i64 @FUNC(i32* %arg1, i32* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i8*
%storemerge7.reg2mem = alloca i32
%.reg2mem26 = alloca i64
%sv_0.1.reg2mem = alloca i8*
%sv_1.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i8*
%sv_1.0.reg2mem = alloca i64
%.reg2mem24 = alloca i32
%sv_2.3.lcssa.reg2mem = alloca i64
%.pre.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%sv_2.2.reg2mem = alloca i64
%.pre-phi20.reg2mem = alloca i8*
%sv_2.38.reg2mem = alloca i64
%storemerge59.reg2mem = alloca i32
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i8, align 1
%sv_7 = alloca i64, align 8
%2 = icmp eq i64 %arg3, 0
%3 = icmp eq i1 %2, false
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_41
LBL_1:
%4 = add i64 %arg4, 1
%5 = call i64 @FUNC(i64 %4, i64 1)
%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_41
LBL_2:
%8 = trunc i64 %1 to i32
%9 = inttoptr i64 %5 to i8*
%10 = inttoptr i64 %5 to i64*
%11 = inttoptr i64 %arg3 to i64*
%12 = trunc i64 %arg4 to i32
%13 = call i64* @memcpy(i64* %10, i64* %11, i32 %12)
%14 = call i8* @strchr(i8* %9, i32 92)
%15 = icmp eq i8* %14, null
store i32 %8, i32* %.reg2mem24
store i64 %arg4, i64* %sv_1.0.reg2mem
store i8* %9, i8** %sv_0.0.reg2mem
br i1 %15, label LBL_30, label LBL_3
LBL_3:
%16 = call i64 @FUNC(i64 %4, i64 1)
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_4, label LBL_41
LBL_4:
%19 = icmp eq i64 %arg4, 0
store i32 %8, i32* %.pre.reg2mem
store i64 0, i64* %sv_2.3.lcssa.reg2mem
br i1 %19, label LBL_29, label LBL_5
LBL_5:
%20 = bitcast i64* %sv_7 to i8*
%21 = bitcast i64* %sv_5 to i8**
%22 = ptrtoint i8* %sv_6 to i64
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge59.reg2mem
store i64 0, i64* %sv_2.38.reg2mem
br label LBL_6
LBL_6:
%sv_2.38.reload = load i64, i64* %sv_2.38.reg2mem
%storemerge59.reload = load i32, i32* %storemerge59.reg2mem
%.reload = load i64, i64* %.reg2mem
%23 = add i32 %storemerge59.reload, 1
%24 = zext i32 %23 to i64
%25 = icmp uge i64 %24, %arg4
%26 = add i64 %.reload, %5
%27 = inttoptr i64 %26 to i8*
%28 = load i8, i8* %27, align 1
%29 = icmp eq i8 %28, 92
%30 = icmp eq i1 %29, false
%or.cond23 = or i1 %25, %30
br i1 %or.cond23, label LBL_26, label LBL_7
LBL_7:
%31 = add i32 %storemerge59.reload, 3
%32 = zext i32 %31 to i64
%33 = icmp ult i64 %32, %arg4
br i1 %33, label LBL_9, label LBL_7.LBL_14_crit_edge
LBL_8:
%.pre17 = add i64 %5, %24
%.pre19 = inttoptr i64 %.pre17 to i8*
store i8* %.pre19, i8** %.pre-phi20.reg2mem
br label LBL_14
LBL_9:
%34 = call i16** @__ctype_b_loc()
%35 = load i16*, i16** %34, align 8
%36 = ptrtoint i16* %35 to i64
%37 = add i64 %5, %24
%38 = inttoptr i64 %37 to i8*
%39 = load i8, i8* %38, align 1
%40 = sext i8 %39 to i64
%41 = mul i64 %40, 2
%42 = add i64 %41, %36
%43 = inttoptr i64 %42 to i16*
%44 = load i16, i16* %43, align 2
%45 = and i16 %44, 2048
%46 = icmp eq i16 %45, 0
store i8* %38, i8** %.pre-phi20.reg2mem
br i1 %46, label LBL_14, label LBL_10
LBL_10:
%47 = call i16** @__ctype_b_loc()
%48 = load i16*, i16** %47, align 8
%49 = ptrtoint i16* %48 to i64
%50 = add i32 %storemerge59.reload, 2
%51 = zext i32 %50 to i64
%52 = add i64 %5, %51
%53 = inttoptr i64 %52 to i8*
%54 = load i8, i8* %53, align 1
%55 = sext i8 %54 to i64
%56 = mul i64 %55, 2
%57 = add i64 %56, %49
%58 = inttoptr i64 %57 to i16*
%59 = load i16, i16* %58, align 2
%60 = and i16 %59, 2048
%61 = icmp eq i16 %60, 0
store i8* %38, i8** %.pre-phi20.reg2mem
br i1 %61, label LBL_14, label LBL_11
LBL_11:
%62 = call i16** @__ctype_b_loc()
%63 = load i16*, i16** %62, align 8
%64 = ptrtoint i16* %63 to i64
%65 = add i64 %5, %32
%66 = inttoptr i64 %65 to i8*
%67 = load i8, i8* %66, align 1
%68 = sext i8 %67 to i64
%69 = mul i64 %68, 2
%70 = add i64 %69, %64
%71 = inttoptr i64 %70 to i16*
%72 = load i16, i16* %71, align 2
%73 = and i16 %72, 2048
%74 = icmp eq i16 %73, 0
store i8* %38, i8** %.pre-phi20.reg2mem
br i1 %74, label LBL_14, label LBL_12
LBL_12:
%75 = inttoptr i64 %37 to i64*
%76 = call i64* @memcpy(i64* nonnull %sv_7, i64* %75, i32 3)
store i8 0, i8* %sv_6, align 1
%77 = call i32 @strtoul(i8* nonnull %20, i8** nonnull %21, i32 8)
%78 = load i64, i64* %sv_5, align 8
%79 = icmp eq i64 %78, %22
%80 = icmp eq i1 %79, false
store i64 %sv_2.38.reload, i64* %sv_2.2.reg2mem
store i32 %31, i32* %sv_3.0.reg2mem
br i1 %80, label LBL_27, label LBL_13
LBL_13:
%81 = trunc i32 %77 to i8
%82 = add i64 %sv_2.38.reload, 1
%83 = add i64 %sv_2.38.reload, %16
%84 = inttoptr i64 %83 to i8*
store i8 %81, i8* %84, align 1
store i64 %82, i64* %sv_2.2.reg2mem
store i32 %31, i32* %sv_3.0.reg2mem
br label LBL_27
LBL_14:
%.pre-phi20.reload = load i8*, i8** %.pre-phi20.reg2mem
%85 = load i8, i8* %.pre-phi20.reload, align 1
%86 = icmp sgt i8 %85, 116
store i64 %sv_2.38.reload, i64* %sv_2.2.reg2mem
store i32 %23, i32* %sv_3.0.reg2mem
br i1 %86, label LBL_27, label LBL_15
LBL_15:
%87 = icmp sgt i8 %85, 91
br i1 %87, label LBL_17, label LBL_16
LBL_16:
store i64 %sv_2.38.reload, i64* %sv_2.2.reg2mem
store i32 %23, i32* %sv_3.0.reg2mem
switch i8 %85, label LBL_27 [
i8 40, label LBL_23
i8 41, label LBL_24
]
LBL_17:
%88 = sext i8 %85 to i64
%89 = add nsw i64 %88, 4294967204
%90 = and i64 %89, 4294967295
store i64 %90, i64* @0, align 8
%trunc = trunc i64 %89 to i32
%91 = udiv i32 %trunc, 2
%92 = shl i32 %trunc, 31
%93 = or i32 %91, %92
store i64 %sv_2.38.reload, i64* %sv_2.2.reg2mem
store i32 %23, i32* %sv_3.0.reg2mem
switch i32 %93, label LBL_27 [
i32 0, label LBL_25
i32 3, label LBL_21
i32 5, label LBL_22
i32 9, label LBL_18
i32 11, label LBL_19
i32 12, label LBL_20
]
LBL_18:
%94 = add i64 %sv_2.38.reload, 1
%95 = add i64 %sv_2.38.reload, %16
%96 = inttoptr i64 %95 to i8*
store i8 10, i8* %96, align 1
store i64 %94, i64* %sv_2.2.reg2mem
store i32 %23, i32* %sv_3.0.reg2mem
br label LBL_27
LBL_19:
%97 = add i64 %sv_2.38.reload, 1
%98 = add i64 %sv_2.38.reload, %16
%99 = inttoptr i64 %98 to i8*
store i8 13, i8* %99, align 1
store i64 %97, i64* %sv_2.2.reg2mem
store i32 %23, i32* %sv_3.0.reg2mem
br label LBL_27
LBL_20:
%100 = add i64 %sv_2.38.reload, 1
%101 = add i64 %sv_2.38.reload, %16
%102 = inttoptr i64 %101 to i8*
store i8 9, i8* %102, align 1
store i64 %100, i64* %sv_2.2.reg2mem
store i32 %23, i32* %sv_3.0.reg2mem
br label LBL_27
LBL_21:
%103 = add i64 %sv_2.38.reload, 1
%104 = add i64 %sv_2.38.reload, %16
%105 = inttoptr i64 %104 to i8*
store i8 8, i8* %105, align 1
store i64 %103, i64* %sv_2.2.reg2mem
store i32 %23, i32* %sv_3.0.reg2mem
br label LBL_27
LBL_22:
%106 = add i64 %sv_2.38.reload, 1
%107 = add i64 %sv_2.38.reload, %16
%108 = inttoptr i64 %107 to i8*
store i8 12, i8* %108, align 1
store i64 %106, i64* %sv_2.2.reg2mem
store i32 %23, i32* %sv_3.0.reg2mem
br label LBL_27
LBL_23:
%109 = add i64 %sv_2.38.reload, 1
%110 = add i64 %sv_2.38.reload, %16
%111 = inttoptr i64 %110 to i8*
store i8 40, i8* %111, align 1
store i64 %109, i64* %sv_2.2.reg2mem
store i32 %23, i32* %sv_3.0.reg2mem
br label LBL_27
LBL_24:
%112 = add i64 %sv_2.38.reload, 1
%113 = add i64 %sv_2.38.reload, %16
%114 = inttoptr i64 %113 to i8*
store i8 41, i8* %114, align 1
store i64 %112, i64* %sv_2.2.reg2mem
store i32 %23, i32* %sv_3.0.reg2mem
br label LBL_27
LBL_25:
%115 = add i64 %sv_2.38.reload, 1
%116 = add i64 %sv_2.38.reload, %16
%117 = inttoptr i64 %116 to i8*
store i8 92, i8* %117, align 1
store i64 %115, i64* %sv_2.2.reg2mem
store i32 %23, i32* %sv_3.0.reg2mem
br label LBL_27
LBL_26:
%118 = add i64 %sv_2.38.reload, 1
%119 = add i64 %sv_2.38.reload, %16
%120 = inttoptr i64 %119 to i8*
store i8 %28, i8* %120, align 1
store i64 %118, i64* %sv_2.2.reg2mem
store i32 %storemerge59.reload, i32* %sv_3.0.reg2mem
br label LBL_27
LBL_27:
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%sv_2.2.reload = load i64, i64* %sv_2.2.reg2mem
%121 = add i32 %sv_3.0.reload, 1
%122 = zext i32 %121 to i64
%123 = icmp ult i64 %122, %arg4
store i64 %122, i64* %.reg2mem
store i32 %121, i32* %storemerge59.reg2mem
store i64 %sv_2.2.reload, i64* %sv_2.38.reg2mem
br i1 %123, label LBL_6, label LBL_28
LBL_28:
%.phi.trans.insert.phi.trans.insert = bitcast i64* %rdi to i32*
%.pre.pre = load i32, i32* %.phi.trans.insert.phi.trans.insert, align 8
store i32 %.pre.pre, i32* %.pre.reg2mem
store i64 %sv_2.2.reload, i64* %sv_2.3.lcssa.reg2mem
br label LBL_29
LBL_29:
%sv_2.3.lcssa.reload = load i64, i64* %sv_2.3.lcssa.reg2mem
%.pre.reload = load i32, i32* %.pre.reg2mem
call void @free(i64* %10)
%124 = call i64 @FUNC(i64 %16)
%125 = inttoptr i64 %124 to i8*
%126 = inttoptr i64 %16 to i64*
call void @free(i64* %126)
store i32 %.pre.reload, i32* %.reg2mem24
store i64 %sv_2.3.lcssa.reload, i64* %sv_1.0.reg2mem
store i8* %125, i8** %sv_0.0.reg2mem
br label LBL_30
LBL_30:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%.reload25 = load i32, i32* %.reg2mem24
%127 = urem i32 %.reload25, 2
%128 = icmp eq i32 %127, 0
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
store i8* %sv_0.0.reload, i8** %sv_0.1.reg2mem
br i1 %128, label LBL_35, label LBL_31
LBL_31:
store i64 %sv_1.0.reload, i64* %sv_4, align 8
%129 = ptrtoint i8* %sv_0.0.reload to i64
%130 = ptrtoint i32* %arg2 to i64
%131 = ptrtoint i32* %arg1 to i64
%132 = call i64 @FUNC(i64 %131, i64 %130, i64 %129, i64* nonnull %sv_4)
%133 = load i64, i64* %sv_4, align 8
%134 = bitcast i8* %sv_0.0.reload to i64*
call void @free(i64* %134)
%135 = icmp eq i64 %132, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %135, label LBL_41, label LBL_32
LBL_32:
%136 = add i64 %133, 1
%137 = call i64 @FUNC(i64 %136, i64 1)
%138 = icmp eq i64 %137, 0
%139 = icmp eq i1 %138, false
br i1 %139, label LBL_34, label LBL_33
LBL_33:
%140 = inttoptr i64 %132 to i64*
call void @free(i64* %140)
store i64 0, i64* %rax.0.reg2mem
br label LBL_41
LBL_34:
%141 = inttoptr i64 %137 to i8*
%142 = inttoptr i64 %137 to i64*
%143 = inttoptr i64 %132 to i64*
%144 = trunc i64 %133 to i32
%145 = call i64* @memcpy(i64* %142, i64* %143, i32 %144)
call void @free(i64* %143)
store i64 %133, i64* %sv_1.1.reg2mem
store i8* %141, i8** %sv_0.1.reg2mem
br label LBL_35
LBL_35:
%sv_0.1.reload = load i8*, i8** %sv_0.1.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%146 = icmp eq i64 %sv_1.1.reload, 0
store i8* %sv_0.1.reload, i8** %sv_0.2.reg2mem
br i1 %146, label LBL_40, label LBL_36
LBL_36:
%147 = ptrtoint i8* %sv_0.1.reload to i64
store i64 0, i64* %.reg2mem26
store i32 0, i32* %storemerge7.reg2mem
br label LBL_37
LBL_37:
%.reload27 = load i64, i64* %.reg2mem26
%148 = add i64 %.reload27, %147
%149 = inttoptr i64 %148 to i8*
%150 = load i8, i8* %149, align 1
%151 = icmp sgt i8 %150, -1
%152 = icmp eq i8 %150, 0
%153 = icmp eq i1 %152, false
%or.cond = icmp eq i1 %151, %153
br i1 %or.cond, label LBL_38, label LBL_39
LBL_38:
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%154 = add i32 %storemerge7.reload, 1
%155 = zext i32 %154 to i64
%156 = icmp ugt i64 %sv_1.1.reload, %155
store i64 %155, i64* %.reg2mem26
store i32 %154, i32* %storemerge7.reg2mem
store i8* %sv_0.1.reload, i8** %sv_0.2.reg2mem
br i1 %156, label LBL_37, label LBL_40
LBL_39:
%157 = call i64 @FUNC(i64 %147, i64 %sv_1.1.reload)
%158 = bitcast i8* %sv_0.1.reload to i64*
call void @free(i64* %158)
%159 = inttoptr i64 %157 to i8*
store i8* %159, i8** %sv_0.2.reg2mem
br label LBL_40
LBL_40:
%sv_0.2.reload = load i8*, i8** %sv_0.2.reg2mem
%160 = ptrtoint i8* %sv_0.2.reload to i64
store i64 %160, i64* %rax.0.reg2mem
br label LBL_41
LBL_41:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8 %150, { 1, 0 }
uselistorder i64 %147, { 1, 0 }
uselistorder i64 %sv_1.1.reload, { 1, 0, 2 }
uselistorder i8* %sv_0.1.reload, { 3, 0, 2, 1 }
uselistorder i64 %132, { 1, 0, 2 }
uselistorder i64 %sv_1.0.reload, { 1, 0 }
uselistorder i8* %sv_0.0.reload, { 2, 1, 0 }
uselistorder i32 %trunc, { 1, 0 }
uselistorder i8 %85, { 3, 0, 1, 2 }
uselistorder i8* %38, { 2, 1, 0, 3 }
uselistorder i32 %23, { 3, 1, 2, 5, 4, 8, 7, 6, 9, 0, 10, 11 }
uselistorder i64 %sv_2.38.reload, { 23, 13, 22, 7, 15, 5, 16, 6, 20, 9, 21, 8, 17, 12, 18, 11, 19, 10, 1, 0, 2, 14, 4, 3 }
uselistorder i64 %16, { 11, 10, 0, 1, 8, 7, 3, 2, 6, 5, 4, 9, 12 }
uselistorder i32 %8, { 1, 0 }
uselistorder i64* %sv_7, { 1, 0 }
uselistorder i8* %sv_6, { 1, 0 }
uselistorder i64* %sv_5, { 1, 0 }
uselistorder i64* %sv_4, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge59.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.38.reg2mem, { 1, 0, 2 }
uselistorder i8** %.pre-phi20.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64* %sv_2.2.reg2mem, { 0, 14, 4, 2, 3, 6, 5, 9, 8, 7, 10, 1, 11, 12, 13 }
uselistorder i32* %sv_3.0.reg2mem, { 0, 14, 4, 2, 3, 6, 5, 9, 8, 7, 10, 1, 11, 12, 13 }
uselistorder i32* %.pre.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_2.3.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem24, { 0, 2, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i8** %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem26, { 1, 0, 2 }
uselistorder i32* %storemerge7.reg2mem, { 1, 0, 2 }
uselistorder i8** %sv_0.2.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 1, 2, 3, 4 }
uselistorder i64 (i64)* @cli_strdup, { 2, 1, 0 }
uselistorder i8 41, { 1, 0 }
uselistorder i8 40, { 1, 0 }
uselistorder i16** ()* @__ctype_b_loc, { 2, 0, 1 }
uselistorder i8 92, { 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @cli_calloc, { 2, 1, 0 }
uselistorder i64 1, { 0, 9, 10, 3, 11, 12, 4, 5, 6, 7, 8, 13, 1, 2, 14 }
uselistorder i1 false, { 1, 2, 3, 0, 4, 5, 6 }
uselistorder i64 %arg4, { 4, 2, 3, 1, 0, 5, 6 }
uselistorder label LBL_41, { 4, 5, 0, 1, 2, 3 }
uselistorder label LBL_40, { 2, 0, 1 }
uselistorder label LBL_37, { 1, 0 }
uselistorder label LBL_30, { 1, 0 }
uselistorder label LBL_29, { 1, 0 }
uselistorder label LBL_27, { 13, 7, 1, 0, 6, 5, 4, 3, 2, 8, 10, 9, 12, 11 }
uselistorder label LBL_14, { 1, 2, 3, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | subband_scale_16094 | subband_scale | define i64 @FUNC(i64* %arg1, i32* %arg2, i32 %arg3, i32 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%rax.0.in.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv22.reg2mem = alloca i64
%indvars.iv26.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg5, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = sub i32 0, %arg3
%3 = icmp slt i32 %2, 0
%4 = icmp eq i1 %3, false
%5 = select i1 %4, i32 %2, i32 %arg3
%6 = ashr i32 %5, 2
%7 = sub i32 %arg4, %6
%8 = icmp slt i32 %7, 32
br i1 %8, label LBL_4, label LBL_1
LBL_1:
%9 = trunc i64 %1 to i32
%10 = icmp sgt i32 %9, 0
store i64 0, i64* %rax.0.in.reg2mem
br i1 %10, label LBL_2, label LBL_11
LBL_2:
%wide.trip.count28 = and i64 %1, 4294967295
store i64 0, i64* %indvars.iv26.reg2mem
br label LBL_3
LBL_3:
%indvars.iv26.reload = load i64, i64* %indvars.iv26.reg2mem
%11 = mul i64 %indvars.iv26.reload, 4
%12 = add i64 %11, %0
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
%indvars.iv.next27 = add nuw nsw i64 %indvars.iv26.reload, 1
%exitcond29 = icmp eq i64 %indvars.iv.next27, %wide.trip.count28
store i64 %indvars.iv.next27, i64* %indvars.iv26.reg2mem
store i64 %wide.trip.count28, i64* %rax.0.in.reg2mem
br i1 %exitcond29, label LBL_11, label LBL_3
LBL_4:
%14 = icmp slt i32 %arg3, 0
%15 = icmp eq i1 %14, false
%16 = select i1 %15, i32 1, i32 -1
%17 = mul i32 %5, 4
%18 = and i32 %17, 12
%19 = zext i32 %18 to i64
%20 = add i64 %19, ptrtoint (i32** @gv_0 to i64)
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = sext i32 %22 to i128
%24 = icmp slt i32 %7, 1
br i1 %24, label LBL_8, label LBL_5
LBL_5:
%25 = trunc i64 %1 to i32
%26 = icmp sgt i32 %25, 0
store i64 0, i64* %rax.0.in.reg2mem
br i1 %26, label LBL_6, label LBL_11
LBL_6:
%27 = add i32 %7, 31
%28 = urem i32 %27, 32
%29 = shl i32 1, %28
%30 = ptrtoint i32* %arg2 to i64
%31 = urem i32 %7, 32
%wide.trip.count24 = and i64 %1, 4294967295
store i64 0, i64* %indvars.iv22.reg2mem
br label LBL_7
LBL_7:
%indvars.iv22.reload = load i64, i64* %indvars.iv22.reg2mem
%32 = mul i64 %indvars.iv22.reload, 4
%33 = add i64 %32, %30
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = sext i32 %35 to i128
%37 = mul nsw i128 %36, %23
%38 = trunc i128 %37 to i64
%39 = udiv i64 %38, 4294967296
%40 = trunc i64 %39 to i32
%41 = add i32 %29, %40
%42 = ashr i32 %41, %31
%43 = add i64 %32, %0
%44 = mul i32 %42, %16
%45 = inttoptr i64 %43 to i32*
store i32 %44, i32* %45, align 4
%indvars.iv.next23 = add nuw nsw i64 %indvars.iv22.reload, 1
%exitcond25 = icmp eq i64 %indvars.iv.next23, %wide.trip.count24
store i64 %indvars.iv.next23, i64* %indvars.iv22.reg2mem
store i64 %1, i64* %rax.0.in.reg2mem
br i1 %exitcond25, label LBL_11, label LBL_7
LBL_8:
%46 = trunc i64 %1 to i32
%47 = icmp sgt i32 %46, 0
store i64 0, i64* %rax.0.in.reg2mem
br i1 %47, label LBL_9, label LBL_11
LBL_9:
%48 = add i32 %7, 31
%49 = urem i32 %48, 32
%50 = shl i32 1, %49
%51 = add i32 %7, 32
%52 = ptrtoint i32* %arg2 to i64
%53 = zext i32 %50 to i64
%54 = urem i32 %51, 64
%55 = zext i32 %54 to i64
%wide.trip.count = and i64 %1, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_10
LBL_10:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%56 = mul i64 %indvars.iv.reload, 4
%57 = add i64 %56, %52
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = sext i32 %59 to i128
%61 = mul nsw i128 %60, %23
%62 = trunc i128 %61 to i64
%63 = add i64 %62, %53
%rdx.1 = ashr i64 %63, %55
%64 = add i64 %56, %0
%65 = trunc i64 %rdx.1 to i32
%66 = mul i32 %16, %65
%67 = inttoptr i64 %64 to i32*
store i32 %66, i32* %67, 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 %1, i64* %rax.0.in.reg2mem
br i1 %exitcond, label LBL_11, label LBL_10
LBL_11:
%rax.0.in.reload = load i64, i64* %rax.0.in.reg2mem
%rax.0 = and i64 %rax.0.in.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %56, { 1, 0 }
uselistorder i64 %32, { 1, 0 }
uselistorder i32 %7, { 1, 2, 0, 3, 4, 5 }
uselistorder i64 %1, { 1, 2, 7, 0, 3, 6, 4, 5 }
uselistorder i64* %indvars.iv26.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv22.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.in.reg2mem, { 0, 3, 6, 2, 5, 1, 4 }
uselistorder i32 31, { 1, 0 }
uselistorder i64 4294967295, { 3, 0, 1, 2 }
uselistorder i32 32, { 4, 0, 1, 2, 3 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 4294967296, { 1, 0 }
uselistorder i32 %arg3, { 2, 1, 0 }
uselistorder i32* %arg2, { 1, 0 }
uselistorder label LBL_11, { 2, 5, 1, 4, 0, 3 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | cliprdr_init_8799 | cliprdr_init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 15, i64 4198789)
store i64 %0, i64* @gv_1, align 8
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
%3 = zext i1 %2 to i64
ret i64 %3
} | 0 |
BinRealVul | rawvideo_read_packet_1813 | rawvideo_read_packet | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = and i64 %1, 4294967295
%10 = zext i32 %8 to i64
%11 = call i64 @FUNC(i64 %10, i64 %9, i32 %5)
%12 = trunc i64 %11 to i32
%13 = icmp slt i32 %12, 0
%14 = icmp eq i1 %13, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %14, label LBL_1, label LBL_2
LBL_1:
%15 = ptrtoint i64* %arg2 to i64
%16 = inttoptr i64 %6 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17, i64 %15, i32 %12)
%19 = trunc i64 %18 to i32
%20 = add i64 %15, 8
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = ashr i32 %22, 31
%24 = zext i32 %22 to i64
%25 = zext i32 %23 to i64
%26 = mul i64 %25, 4294967296
%27 = or i64 %26, %24
%28 = and i64 %11, 4294967295
%29 = sdiv i64 %27, %28
%30 = trunc i64 %29 to i32
%31 = add i64 %15, 4
%32 = inttoptr i64 %31 to i32*
store i32 %30, i32* %32, align 4
%33 = bitcast i64* %arg2 to i32*
store i32 %30, i32* %33, align 4
%34 = add i64 %15, 12
%35 = inttoptr i64 %34 to i32*
store i32 0, i32* %35, align 4
%36 = icmp eq i32 %19, 0
%37 = icmp slt i32 %19, 0
%38 = icmp eq i1 %37, false
%39 = icmp eq i1 %36, false
%40 = icmp eq i1 %38, %39
%. = select i1 %40, i64 0, i64 4294967291
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
uselistorder i32 %19, { 1, 0 }
uselistorder i64 %15, { 0, 1, 3, 2 }
uselistorder i1 false, { 1, 0, 2 }
} | 0 |
BinRealVul | usb_serial_handle_data_15423 | usb_serial_handle_data | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = ptrtoint i64* %arg2 to i64
%7 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8, align 1
%8 = trunc i64 %6 to i8
%9 = add i64 %6, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
switch i32 %11, label LBL_16 [
i32 0, label LBL_1
i32 1, label LBL_6
]
LBL_1:
%12 = icmp eq i8 %8, 2
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_17, label LBL_2
LBL_2:
%14 = add i64 %6, 16
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_5, label LBL_3
LBL_3:
%18 = add i64 %6, 24
%19 = inttoptr i64 %18 to i64*
%20 = add i64 %7, 272
%21 = inttoptr i64 %20 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge3.reg2mem
br label LBL_4
LBL_4:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload = load i64, i64* %.reg2mem
%22 = load i64, i64* %19, align 8
%23 = mul i64 %.reload, 16
%24 = add i64 %22, %23
%25 = add i64 %24, 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = inttoptr i64 %24 to i64*
%29 = load i64, i64* %28, align 8
%30 = load i64, i64* %21, align 8
%31 = call i64 @FUNC(i64 %30, i64 %29, i64 %27)
%32 = add i32 %storemerge3.reload, 1
%33 = load i32, i32* %15, align 4
%34 = zext i32 %33 to i64
%35 = sext i32 %32 to i64
%36 = icmp slt i64 %35, %34
store i64 %35, i64* %.reg2mem
store i32 %32, i32* %storemerge3.reg2mem
br i1 %36, label LBL_4, label LBL_5
LBL_5:
%37 = add i64 %6, 32
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = add i64 %6, 40
%41 = inttoptr i64 %40 to i64*
store i64 %39, i64* %41, align 8
store i64 %6, i64* %rax.0.reg2mem
br label LBL_18
LBL_6:
%42 = icmp eq i8 %8, 1
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_17, label LBL_7
LBL_7:
%44 = add i64 %6, 32
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = trunc i64 %46 to i32
%48 = icmp sgt i32 %47, 2
br i1 %48, label LBL_9, label LBL_8
LBL_8:
%49 = add i64 %6, 48
%50 = inttoptr i64 %49 to i32*
store i32 1, i32* %50, align 4
store i64 %6, i64* %rax.0.reg2mem
br label LBL_18
LBL_9:
%51 = call i64 @FUNC(i64 %7)
%52 = trunc i64 %51 to i8
%53 = or i8 %52, 1
store i8 %53, i8* %sv_0, align 1
%54 = add i64 %7, 264
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = urem i32 %56, 2
%58 = icmp eq i32 %57, 0
br i1 %58, label LBL_11, label LBL_10
LBL_10:
%59 = and i32 %56, -2
store i32 %59, i32* %55, align 4
%60 = call i64 @FUNC(i64 %6, i8* nonnull %sv_0, i64 2)
store i64 %60, i64* %rax.0.reg2mem
br label LBL_18
LBL_11:
%61 = add i32 %47, -2
%62 = add i64 %7, 4
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = zext i32 %64 to i64
%66 = sext i32 %61 to i64
%67 = icmp sgt i64 %66, %65
%spec.select = select i1 %67, i32 %64, i32 %61
%68 = icmp eq i32 %spec.select, 0
%69 = icmp eq i1 %68, false
br i1 %69, label LBL_13, label LBL_12
LBL_12:
%70 = add i64 %6, 48
%71 = inttoptr i64 %70 to i32*
store i32 1, i32* %71, align 4
store i64 %6, i64* %rax.0.reg2mem
br label LBL_18
LBL_13:
%72 = trunc i64 %3 to i32
%73 = sub i32 256, %72
%74 = icmp sgt i32 %73, %spec.select
%spec.select1 = select i1 %74, i32 %spec.select, i32 %73
%75 = call i64 @FUNC(i64 %6, i8* nonnull %sv_0, i64 2)
%76 = sext i32 %spec.select1 to i64
%77 = add i64 %7, 8
%sext = mul i64 %3, 4294967296
%78 = ashr exact i64 %sext, 32
%79 = add i64 %78, %77
%80 = inttoptr i64 %79 to i8*
%81 = call i64 @FUNC(i64 %6, i8* %80, i64 %76)
%82 = icmp sgt i32 %spec.select, %73
br i1 %82, label LBL_14, label LBL_15
LBL_14:
%83 = sub i32 %spec.select, %spec.select1
%84 = sext i32 %83 to i64
%85 = inttoptr i64 %77 to i8*
%86 = call i64 @FUNC(i64 %6, i8* %85, i64 %84)
br label LBL_15
LBL_15:
%87 = bitcast i64* %rdi to i32*
%88 = load i32, i32* %63, align 4
%89 = sub i32 %88, %spec.select
store i32 %89, i32* %63, align 4
%90 = load i32, i32* %87, align 8
%91 = add i32 %90, %spec.select
%92 = srem i32 %91, 256
%93 = bitcast i64* %arg1 to i32*
store i32 %92, i32* %93, align 4
store i64 %7, i64* %rax.0.reg2mem
br label LBL_18
LBL_16:
%94 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 %6, i64 %4, i64 %5, i64 %2, i64 %1)
br label LBL_17
LBL_17:
%95 = add i64 %6, 48
%96 = inttoptr i64 %95 to i32*
store i32 2, i32* %96, align 4
store i64 %6, i64* %rax.0.reg2mem
br label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %77, { 1, 0 }
uselistorder i32 %spec.select1, { 1, 0 }
uselistorder i32 %spec.select, { 0, 6, 5, 1, 2, 3, 4 }
uselistorder i32* %63, { 1, 0, 2 }
uselistorder i32 %56, { 1, 0 }
uselistorder i32* %15, { 1, 0 }
uselistorder i8 %8, { 1, 0 }
uselistorder i64 %7, { 0, 1, 2, 4, 3, 5 }
uselistorder i64 %6, { 3, 17, 5, 9, 10, 11, 1, 8, 7, 0, 6, 12, 2, 15, 14, 16, 13, 18, 4 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 4, 3, 2, 1, 5 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i8*, i64)* @usb_packet_copy, { 3, 2, 1, 0 }
uselistorder i32 2, { 2, 0, 1 }
uselistorder i32 0, { 4, 2, 0, 1, 3 }
uselistorder label LBL_17, { 2, 0, 1 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | queue_lock_12285 | queue_lock | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
store i64 %2, i64* %arg1, align 8
%3 = call i64 @FUNC(i64 %2)
ret i64 %2
} | 1 |
BinRealVul | find_check_match_8898 | find_check_match | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.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 = call i64 @FUNC(i64 2, i64 %0, i32 %3)
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %4)
store i64 %8, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%9 = ptrtoint i64* %arg2 to i64
store i64 %4, i64* %arg1, align 8
%10 = call i64 @FUNC(i64 %0, i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_3, label LBL_4
LBL_3:
%14 = call i64 @FUNC(i64 %0)
%15 = and i64 %10, 4294967295
store i64 %15, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %4, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 0 |
BinRealVul | sd_init_5275 | sd_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = call i64 @FUNC(i64 24)
%3 = call i64 @FUNC(i64 512, i64 512)
%4 = inttoptr i64 %2 to i64*
store i64 %3, i64* %4, align 8
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i32*
store i32 %1, i32* %6, align 4
%7 = add i64 %2, 12
%8 = inttoptr i64 %7 to i32*
store i32 1, i32* %8, align 4
%9 = call i64 @FUNC(i64 %2, i64 %0)
%10 = add i64 %2, 16
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = call i64 @FUNC(i64 %12, i64 4198863, i64 %2)
br label LBL_2
LBL_2:
ret i64 %2
uselistorder i64 %2, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder i64 512, { 1, 0 }
} | 0 |
BinRealVul | vga_invalidate_display_5016 | vga_invalidate_display | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
store i32 1, i32* %arg1, align 4
ret i64 %0
} | 0 |
BinRealVul | ismode_w_10044 | ismode_w | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i64
%0 = icmp ult i64 %arg1, %arg2
store i64 0, i64* %rax.0.reg2mem
br i1 %0, label LBL_1, label LBL_11
LBL_1:
%1 = bitcast i64* %arg3 to i32*
store i32 0, i32* %1, align 4
store i64 %arg1, i64* %sv_0.02.reg2mem
br label LBL_2
LBL_2:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%2 = inttoptr i64 %sv_0.02.reload to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 45
br i1 %4, label LBL_3, label LBL_4
LBL_3:
%5 = add i64 %sv_0.02.reload, 4
%6 = icmp ult i64 %5, %arg2
store i64 %5, i64* %sv_0.02.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_11
LBL_4:
%.off = add i32 %3, -45
%7 = icmp ugt i32 %.off, 75
%8 = icmp slt i32 %3, 82
%or.cond1 = or i1 %8, %7
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond1, label LBL_11, label LBL_5
LBL_5:
%9 = add i32 %3, 46
%10 = urem i32 %9, 64
%11 = zext i32 %10 to i64
%12 = shl i64 1, %11
%13 = and i64 %12, 274877907008
%14 = icmp eq i64 %13, 0
%15 = icmp eq i1 %14, false
%16 = icmp eq i1 %15, false
%17 = icmp eq i1 %16, false
%18 = trunc i64 %12 to i32
br i1 %17, label LBL_10, label LBL_6
LBL_6:
%19 = and i64 %12, 137438953504
%20 = icmp eq i64 %19, 0
%21 = icmp eq i1 %20, false
%22 = icmp eq i1 %21, false
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_9, label LBL_7
LBL_7:
%24 = urem i64 %12, 4294967298
%25 = icmp eq i64 %24, 0
%26 = icmp eq i1 %25, false
%27 = icmp eq i1 %26, false
store i64 0, i64* %rax.0.reg2mem
br i1 %27, label LBL_11, label LBL_8
LBL_8:
%28 = or i32 %18, 1
store i32 %28, i32* %1, align 4
br label LBL_3
LBL_9:
%29 = or i32 %18, 2
store i32 %29, i32* %1, align 4
br label LBL_3
LBL_10:
%30 = or i32 %18, 4
store i32 %30, i32* %1, align 4
br label LBL_3
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %12, { 0, 2, 1, 3 }
uselistorder i32 %3, { 2, 1, 0, 3 }
uselistorder i32* %1, { 2, 1, 0, 3 }
uselistorder i64* %sv_0.02.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 0, 3, 4, 1, 5, 6, 2, 7 }
uselistorder i64 1, { 1, 0 }
uselistorder label LBL_3, { 3, 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | readBytes_12722 | readBytes | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp eq i32 %0, 0
%2 = icmp slt i32 %0, 0
%3 = icmp eq i1 %2, false
%4 = icmp eq i1 %1, false
%5 = icmp eq i1 %3, %4
%6 = select i1 %5, i32 %0, i32 0
%7 = call i64* @malloc(i32 %6)
%8 = ptrtoint i64* %7 to i64
%9 = icmp sgt i32 %6, 0
br i1 %9, label LBL_1, label LBL_3
LBL_1:
%wide.trip.count = zext i32 %6 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%10 = call i64 @FUNC(i64 %arg1)
%11 = add i64 %indvars.iv.reload, %8
%12 = trunc i64 %10 to i8
%13 = inttoptr i64 %11 to i8*
store i8 %12, i8* %13, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
ret i64 %8
uselistorder i64 %8, { 1, 0 }
uselistorder i32 %0, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | allocate_buffers_15284 | allocate_buffers | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.pre-phi27.reg2mem = alloca i32*
%.lcssa.reg2mem = alloca i64
%.lcssa3.reg2mem = alloca i32
%storemerge111.reg2mem = alloca i32
%.reg2mem52 = alloca i64
%.reg2mem50 = alloca i64
%rcx.013.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = trunc i64 %3 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_0.LBL_14_crit_edge, label LBL_2
LBL_1:
%.pre = add i64 %4, 12
%.pre26 = inttoptr i64 %.pre to i32*
store i32* %.pre26, i32** %.pre-phi27.reg2mem
br label LBL_14
LBL_2:
%7 = bitcast i64* %rdi to i32*
%8 = add i64 %4, 4
%9 = inttoptr i64 %8 to i32*
%10 = add i64 %4, 8
%11 = inttoptr i64 %10 to i32*
%12 = add i64 %4, 12
%13 = inttoptr i64 %12 to i32*
%14 = add i64 %4, 40
%15 = inttoptr i64 %14 to i64*
%16 = add i64 %4, 24
%17 = inttoptr i64 %16 to i64*
%18 = add i64 %4, 32
%19 = inttoptr i64 %18 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge14.reg2mem
br label LBL_3
LBL_3:
%rcx.013.reload = load i64, i64* %rcx.013.reg2mem
%20 = load i32, i32* %9, align 4
%21 = icmp slt i32 %20, 1
%22 = icmp ult i32 %20, 1073741823
%or.cond = or i1 %21, %22
br i1 %or.cond, label LBL_5, label LBL_4
LBL_4:
%23 = add i64 %4, 16
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %25, i64 0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64 %rcx.013.reload, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_15
LBL_5:
%27 = load i32, i32* %11, align 4
%28 = load i32, i32* %13, align 4
%29 = add i32 %28, %27
%30 = icmp ult i32 %29, 1073741823
%31 = icmp ugt i32 %29, %28
%or.cond2 = icmp eq i1 %30, %31
br i1 %or.cond2, label LBL_7, label LBL_6
LBL_6:
%32 = add i64 %4, 16
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34, i64 0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_1, i64 0, i64 0), i64 %rcx.013.reload, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_15
LBL_7:
%.reload = load i64, i64* %.reg2mem
%36 = icmp sgt i32 %20, 1
%37 = select i1 %36, i32 %20, i32 1
%38 = zext i32 %37 to i64
%39 = load i64, i64* %15, align 8
%40 = mul i64 %.reload, 8
%41 = add i64 %39, %40
%42 = call i64 @FUNC(i64 %41, i64 4, i64 %38)
%43 = trunc i64 %42 to i32
%44 = icmp slt i32 %43, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_9, label LBL_8
LBL_8:
%46 = and i64 %42, 4294967295
store i64 %46, i64* %rax.0.reg2mem
br label LBL_15
LBL_9:
%47 = load i32, i32* %11, align 4
%48 = load i32, i32* %13, align 4
%49 = add i32 %48, %47
%50 = sext i32 %49 to i64
%51 = load i64, i64* %17, align 8
%52 = add i64 %51, %40
%53 = call i64 @FUNC(i64 %52, i64 %50, i64 4)
%54 = trunc i64 %53 to i32
%55 = icmp slt i32 %54, 0
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_10, label LBL_11
LBL_10:
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
%57 = load i32, i32* %13, align 4
%58 = icmp eq i32 %57, 0
%59 = load i64, i64* %17, align 8
%60 = add i64 %59, %40
%61 = inttoptr i64 %60 to i64*
%62 = load i64, i64* %61, align 8
store i64 %62, i64* %.reg2mem50
store i64 0, i64* %.reg2mem52
store i32 0, i32* %storemerge111.reg2mem
store i32 0, i32* %.lcssa3.reg2mem
store i64 %62, i64* %.lcssa.reg2mem
br i1 %58, label LBL_13, label LBL_12
LBL_11:
%63 = and i64 %53, 4294967295
store i64 %63, i64* %rax.0.reg2mem
br label LBL_15
LBL_12:
%storemerge111.reload = load i32, i32* %storemerge111.reg2mem
%.reload53 = load i64, i64* %.reg2mem52
%.reload51 = load i64, i64* %.reg2mem50
%64 = mul i64 %.reload53, 4
%65 = add i64 %64, %.reload51
%66 = inttoptr i64 %65 to i32*
store i32 0, i32* %66, align 4
%67 = add i32 %storemerge111.reload, 1
%68 = load i32, i32* %13, align 4
%69 = zext i32 %68 to i64
%70 = sext i32 %67 to i64
%71 = icmp slt i64 %70, %69
%72 = load i64, i64* %17, align 8
%73 = add i64 %72, %40
%74 = inttoptr i64 %73 to i64*
%75 = load i64, i64* %74, align 8
store i64 %75, i64* %.reg2mem50
store i64 %70, i64* %.reg2mem52
store i32 %67, i32* %storemerge111.reg2mem
store i32 %68, i32* %.lcssa3.reg2mem
store i64 %75, i64* %.lcssa.reg2mem
br i1 %71, label LBL_12, label LBL_13
LBL_13:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%.lcssa3.reload = load i32, i32* %.lcssa3.reg2mem
%76 = sext i32 %.lcssa3.reload to i64
%77 = mul i64 %76, 4
%78 = load i64, i64* %19, align 8
%79 = add i64 %78, %40
%80 = add i64 %77, %.lcssa.reload
%81 = inttoptr i64 %79 to i64*
store i64 %80, i64* %81, align 8
%82 = add i32 %storemerge14.reload, 1
%83 = load i32, i32* %7, align 8
%84 = zext i32 %83 to i64
%85 = sext i32 %82 to i64
%86 = icmp slt i64 %85, %84
store i64 %85, i64* %.reg2mem
store i32 %82, i32* %storemerge14.reg2mem
store i64 %78, i64* %rcx.013.reg2mem
store i32* %13, i32** %.pre-phi27.reg2mem
br i1 %86, label LBL_3, label LBL_14
LBL_14:
%.pre-phi27.reload = load i32*, i32** %.pre-phi27.reg2mem
%87 = load i32, i32* %.pre-phi27.reload, align 4
%88 = sext i32 %87 to i64
%89 = add i64 %4, 48
%90 = call i64 @FUNC(i64 %89, i64 %88, i64 4)
%91 = trunc i64 %90 to i32
%92 = icmp slt i32 %91, 0
%93 = icmp eq i1 %92, false
%94 = and i64 %90, 4294967295
%spec.select = select i1 %93, i64 0, i64 %94
ret i64 %spec.select
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %40, { 4, 3, 2, 1, 0 }
uselistorder i32 %28, { 1, 0 }
uselistorder i32 %20, { 1, 0, 2, 3 }
uselistorder i64 %rcx.013.reload, { 1, 0 }
uselistorder i64* %17, { 1, 0, 2 }
uselistorder i32* %13, { 0, 2, 1, 3, 4 }
uselistorder i64 %4, { 8, 1, 9, 2, 3, 6, 5, 4, 7, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge14.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.013.reg2mem, { 1, 0 }
uselistorder i64* %.reg2mem50, { 2, 0, 1 }
uselistorder i64* %.reg2mem52, { 2, 0, 1 }
uselistorder i32* %storemerge111.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i1 false, { 2, 0, 1, 3 }
uselistorder i64 (i64, i64, i64)* @av_reallocp_array, { 0, 2, 1 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i32 1073741823, { 1, 0 }
uselistorder i64 4, { 2, 0, 1, 3, 4, 5 }
uselistorder i64 12, { 1, 0 }
uselistorder i32 0, { 8, 5, 0, 1, 3, 6, 7, 2, 4 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | ne2000_buffer_full_10163 | ne2000_buffer_full | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = mul i32 %3, 256
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = mul i32 %7, 256
%9 = icmp sgt i32 %8, %4
br i1 %9, label LBL_1, label LBL_2
LBL_1:
%10 = sub i32 %8, %4
store i32 %10, i32* %storemerge1.reg2mem
br label LBL_3
LBL_2:
%11 = add i64 %2, 12
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i64 %2, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = sub i32 %8, %4
%18 = add i32 %17, %13
%19 = sub i32 %18, %16
store i32 %19, i32* %storemerge1.reg2mem
br label LBL_3
LBL_3:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%20 = icmp slt i32 %storemerge1.reload, 1504
%. = zext i1 %20 to i64
ret i64 %.
uselistorder i32 %8, { 2, 0, 1 }
uselistorder i32 %4, { 2, 0, 1 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | GetAnsiStatus_9266 | GetAnsiStatus | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i8*
%sv_0.1.reg2mem = alloca i64
%.reg2mem7 = alloca i32
%sv_0.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_9
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%sext6 = mul i64 %1, 4294967296
%6 = ashr exact i64 %sext6, 29
%7 = add i64 %6, ptrtoint ([3 x i8*]* @gv_0 to i64)
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = bitcast i64* %arg2 to i8*
%11 = inttoptr i64 %9 to i8*
%12 = call i8* @strcpy(i8* %10, i8* %11)
%13 = call i32 @strlen(i8* %10)
%14 = sext i32 %13 to i64
%15 = add i64 %14, %5
%16 = ptrtoint i32* %arg1 to i64
%17 = add i64 %16, 4
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp eq i32 %19, 0
store i32 %2, i32* %.reg2mem7
store i64 %15, i64* %sv_0.1.reg2mem
br i1 %20, label LBL_5, label LBL_2
LBL_2:
%21 = add i64 %15, 1
%22 = inttoptr i64 %15 to i8*
store i8 45, i8* %22, align 1
%23 = load i32, i32* %18, align 4
%24 = icmp slt i32 %23, 256
store i32 %23, i32* %.reg2mem
store i64 %21, i64* %sv_0.0.reg2mem
br i1 %24, label LBL_4, label LBL_3
LBL_3:
%25 = udiv i32 %23, 256
%26 = zext i32 %25 to i64
%27 = call i64 @FUNC(i64 %21, i64 %26)
%sext = mul i64 %27, 4294967296
%28 = ashr exact i64 %sext, 32
%29 = add i64 %28, %21
%.pre = load i32, i32* %18, align 4
store i32 %.pre, i32* %.reg2mem
store i64 %29, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%30 = bitcast i64* %rdi to i32*
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%.reload = load i32, i32* %.reg2mem
%31 = urem i32 %.reload, 256
%32 = zext i32 %31 to i64
%33 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %32)
%sext2 = mul i64 %33, 4294967296
%34 = ashr exact i64 %sext2, 32
%35 = add i64 %34, %sv_0.0.reload
%36 = inttoptr i64 %35 to i8*
store i8 0, i8* %36, align 1
%.pre4 = load i32, i32* %30, align 8
store i32 %.pre4, i32* %.reg2mem7
store i64 %35, i64* %sv_0.1.reg2mem
br label LBL_5
LBL_5:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%.reload8 = load i32, i32* %.reg2mem7
%37 = icmp ne i32 %.reload8, 1
%38 = icmp eq i32 %.reload8, 2
%39 = icmp eq i1 %38, false
%or.cond = icmp eq i1 %37, %39
br i1 %or.cond, label LBL_5.LBL_8_crit_edge, label LBL_7
LBL_6:
%.pre5 = inttoptr i64 %sv_0.1.reload to i8*
store i8* %.pre5, i8** %.pre-phi.reg2mem
br label LBL_8
LBL_7:
%40 = add i64 %16, 8
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = sext i32 %42 to i64
%44 = mul i64 %43, 8
%45 = add i64 %44, ptrtoint ([2 x i8*]* @gv_1 to i64)
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = inttoptr i64 %sv_0.1.reload to i8*
%49 = inttoptr i64 %47 to i8*
%50 = call i32 (i8*, i8*, ...) @sprintf(i8* %48, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i8* %49)
store i8* %48, i8** %.pre-phi.reg2mem
br label LBL_8
LBL_8:
%.pre-phi.reload = load i8*, i8** %.pre-phi.reg2mem
%51 = call i32 @strlen(i8* %.pre-phi.reload)
%52 = sext i32 %51 to i64
%53 = sub i64 %sv_0.1.reload, %5
%54 = add i64 %53, %52
store i64 %54, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_0.1.reload, { 2, 0, 1 }
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %23, { 1, 0, 2 }
uselistorder i64 %21, { 1, 2, 0 }
uselistorder i64 %15, { 1, 2, 0 }
uselistorder i8* %10, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @AddXChar, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i32 0, { 10, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 0 |
BinRealVul | address_space_access_valid_1508 | address_space_access_valid | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3, i8 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i64
%sv_1.04.reg2mem = alloca i32
%sv_2 = alloca i64, align 8
%sv_3 = alloca i32, align 4
%0 = call i64 @FUNC()
%1 = icmp eq i32 %arg3, 0
%2 = icmp slt i32 %arg3, 0
%3 = icmp eq i1 %2, false
%4 = icmp eq i1 %1, false
%5 = icmp eq i1 %3, %4
br i1 %5, label LBL_1, label LBL_6
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = zext i8 %arg4 to i64
%8 = bitcast i32* %sv_3 to i64*
store i32 %arg3, i32* %sv_1.04.reg2mem
store i64 %arg2, i64* %sv_0.03.reg2mem
br label LBL_2
LBL_2:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%sv_1.04.reload = load i32, i32* %sv_1.04.reg2mem
store i32 %sv_1.04.reload, i32* %sv_3, align 4
%9 = call i64 @FUNC(i64 %6, i64 %sv_0.03.reload, i64* nonnull %sv_2, i64* nonnull %8, i64 %7)
%10 = call i64 @FUNC(i64 %9, i64 %7)
%11 = trunc i64 %10 to i8
%12 = icmp eq i8 %11, 1
br i1 %12, label LBL_5, label LBL_3
LBL_3:
%13 = load i32, i32* %sv_3, align 4
%14 = sext i32 %13 to i64
%15 = call i64 @FUNC(i64 %9, i64 %14, i64 %sv_0.03.reload)
%16 = trunc i64 %15 to i32
store i32 %16, i32* %sv_3, align 4
%sext = mul i64 %15, 4294967296
%17 = ashr exact i64 %sext, 32
%18 = load i64, i64* %sv_2, align 8
%19 = call i64 @FUNC(i64 %9, i64 %18, i64 %17, i64 %7)
%20 = trunc i64 %19 to i8
%21 = icmp eq i8 %20, 1
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%22 = call i64 @FUNC()
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_5:
%23 = load i32, i32* %sv_3, align 4
%24 = sub i32 %sv_1.04.reload, %23
%25 = sext i32 %23 to i64
%26 = add i64 %sv_0.03.reload, %25
%27 = icmp eq i32 %24, 0
%28 = icmp slt i32 %24, 0
%29 = icmp eq i1 %28, false
%30 = icmp eq i1 %27, false
%31 = icmp eq i1 %29, %30
store i32 %24, i32* %sv_1.04.reg2mem
store i64 %26, i64* %sv_0.03.reg2mem
br i1 %31, label LBL_2, label LBL_6
LBL_6:
%32 = call i64 @FUNC()
store i64 1, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_0.03.reload, { 2, 0, 1 }
uselistorder i32* %sv_3, { 3, 2, 1, 0, 4 }
uselistorder i64* %sv_2, { 1, 0 }
uselistorder i32* %sv_1.04.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.03.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 3, 2, 0, 1 }
uselistorder i32 0, { 2, 3, 0, 1 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | nfs4_do_open_11222 | nfs4_do_open | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64* %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg5 to i64
%1 = ptrtoint i64* %arg4 to i64
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%sext = mul i64 %arg3, 4294967296
%4 = ashr exact i64 %sext, 32
store i32 0, i32* %sv_1, align 4
%5 = and i64 %4, 4294967295
%6 = ptrtoint i64* %sv_0 to i64
%7 = trunc i64 %4 to i32
br label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %3, i64 %2, i32 %7, i64 %1, i64 %0, i64* nonnull %sv_0)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_10, label LBL_2
LBL_2:
%11 = icmp eq i32 %9, 1
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i64 %3)
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @gv_0, i64 0, i64 0), i64 %17, i64 %5, i64 %1, i64 %0, i64 %6)
store i32 1, i32* %sv_1, align 4
store i32 1, i32* %.reg2mem
br label LBL_9
LBL_4:
%19 = icmp eq i32 %9, 2
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_6, label LBL_5
LBL_5:
store i32 1, i32* %sv_1, align 4
store i32 1, i32* %.reg2mem
br label LBL_9
LBL_6:
%21 = icmp eq i32 %9, 3
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_8, label LBL_7
LBL_7:
store i32 1, i32* %sv_1, align 4
store i32 1, i32* %.reg2mem
br label LBL_9
LBL_8:
%23 = call i64 @FUNC(i64 %3)
%24 = and i64 %8, 4294967295
%25 = call i64 @FUNC(i64 %23, i64 %24, i32* nonnull %sv_1)
%26 = and i64 %25, 4294967295
%27 = call i64 @FUNC(i64 %26)
store i64 %27, i64* %sv_0, align 8
%.pre = load i32, i32* %sv_1, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_9
LBL_9:
%.reload = load i32, i32* %.reg2mem
%28 = icmp eq i32 %.reload, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_1, label LBL_10
LBL_10:
%30 = load i64, i64* %sv_0, align 8
ret i64 %30
uselistorder i64 %4, { 1, 0 }
uselistorder i64* %sv_0, { 1, 2, 0, 3 }
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64)* @NFS_SERVER, { 1, 0 }
uselistorder i64 4294967295, { 1, 0, 2, 3 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | idtoname_show_3739 | idtoname_show | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdx.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = icmp eq i64* %arg3, null
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0))
br label LBL_5
LBL_2:
%6 = ptrtoint i64* %arg3 to i64
%7 = add i64 %6, -24
%8 = add i64 %6, -12
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = zext i32 %10 to i64
%12 = add i64 %6, -16
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 1
%16 = icmp eq i1 %15, false
%. = select i1 %16, i64 ptrtoint ([5 x i8]* @gv_1 to i64), i64 ptrtoint ([6 x i8]* @gv_2 to i64)
%17 = inttoptr i64 %7 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0), i64 %18, i64 %., i64 %11, i64 %1)
%20 = call i64 @FUNC(i64 0, i64 %6)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
store i64 %18, i64* %rdx.0.reg2mem
br i1 %22, label LBL_4, label LBL_3
LBL_3:
%23 = add i64 %6, -8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0), i64 %25, i64 %., i64 %11, i64 %1)
store i64 %25, i64* %rdx.0.reg2mem
br label LBL_4
LBL_4:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%27 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_5, i64 0, i64 0), i64 %rdx.0.reload, i64 %., i64 %11, i64 %1)
br label LBL_5
LBL_5:
ret i64 0
uselistorder i64 %., { 1, 0, 2 }
uselistorder i64 %11, { 1, 2, 0 }
uselistorder i64 %6, { 0, 1, 4, 3, 2 }
uselistorder i64 %2, { 2, 1, 3, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @seq_printf, { 2, 1, 0 }
uselistorder i64* %arg3, { 1, 0 }
} | 0 |
BinRealVul | ntohll_1900 | ntohll | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%1 = load i32, i32* %0
%2 = trunc i64 %arg1 to i32
%3 = call i32 @ntohl(i32 %2)
%4 = zext i32 %3 to i64
%5 = mul i64 %4, 4294967296
%6 = call i32 @ntohl(i32 %1)
%7 = zext i32 %6 to i64
%8 = or i64 %5, %7
ret i64 %8
uselistorder i32 (i32)* @ntohl, { 1, 0 }
} | 0 |
BinRealVul | ga_create_file_8744 | ga_create_file | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = inttoptr i64 %arg1 to i8*
%1 = call i32 (i8*, i32, ...) @open(i8* %0, i32 65)
%2 = icmp eq i32 %1, -1
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i32* @__errno_location()
%5 = load i32, i32* %4, align 4
%6 = call i8* @strerror(i32 %5)
%7 = ptrtoint i8* %6 to i64
%8 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0), i64 %arg1, i64 %7)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%9 = call i32 @close(i32 %1)
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, 1 }
} | 0 |
BinRealVul | enable_store_18018 | enable_store | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = bitcast i64* %arg3 to i8*
%3 = call i32 (i8*, i8*, ...) @sscanf(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0)
ret i64 %arg4
} | 1 |
BinRealVul | trim_attendees_4468 | trim_attendees | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3, i64* %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%sv_0.1.lcssa.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_0.12.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%0 = icmp eq i64* %arg4, null
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = bitcast i64* %arg4 to i32*
store i32 0, i32* %1, align 4
br label LBL_2
LBL_2:
%2 = call i64 @FUNC(i64 %arg1)
%3 = call i64 @FUNC(i64 %2)
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %sv_0.1.lcssa.reg2mem
br i1 %5, label LBL_3, label LBL_13
LBL_3:
%6 = bitcast i32* %sv_2 to i64*
%7 = bitcast i64* %arg4 to i32*
store i64 %3, i64* %storemerge3.reg2mem
store i64 0, i64* %sv_0.12.reg2mem
br label LBL_4
LBL_4:
%sv_0.12.reload = load i64, i64* %sv_0.12.reg2mem
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%8 = call i64 @FUNC(i64 %storemerge3.reload)
%9 = call i64 @FUNC(i64 %2)
%10 = icmp eq i64 %sv_0.12.reload, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_11, label LBL_5
LBL_5:
%12 = load [23 x i8]*, [23 x i8]** @gv_0, align 8
%13 = ptrtoint [23 x i8]* %12 to i64
%14 = call i64 @FUNC(i64 %8, i64* nonnull %6, i64 %13)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_11, label LBL_6
LBL_6:
%18 = load i32, i32* %sv_2, align 4
%19 = urem i32 %18, 2
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_11, label LBL_7
LBL_7:
%22 = call i64 @FUNC(i64* nonnull %sv_1, i64 %arg2)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_11, label LBL_8
LBL_8:
store i64 %storemerge3.reload, i64* %sv_0.0.reg2mem
br i1 %0, label LBL_12, label LBL_9
LBL_9:
%26 = call i64 @FUNC(i64 %storemerge3.reload, i64 2)
%27 = icmp eq i64 %26, 0
store i64 %storemerge3.reload, i64* %sv_0.0.reg2mem
br i1 %27, label LBL_12, label LBL_10
LBL_10:
%28 = call i64 @FUNC(i64 %26)
%29 = trunc i64 %28 to i32
store i32 %29, i32* %7, align 4
store i64 %storemerge3.reload, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_11:
%30 = call i64 @FUNC(i64 %2, i64 %storemerge3.reload)
store i64 %sv_0.12.reload, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%31 = call i64 @FUNC(i64* nonnull %6)
%32 = icmp eq i64 %9, 0
%33 = icmp eq i1 %32, false
store i64 %9, i64* %storemerge3.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.12.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.lcssa.reg2mem
br i1 %33, label LBL_4, label LBL_13
LBL_13:
%34 = icmp eq i64* %arg3, null
br i1 %34, label LBL_15, label LBL_14
LBL_14:
%sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem
store i64 %sv_0.1.lcssa.reload, i64* %arg3, align 8
br label LBL_15
LBL_15:
%35 = icmp eq i64* %arg5, null
br i1 %35, label LBL_19, label LBL_16
LBL_16:
%36 = call i64 @FUNC(i64 %2, i64 1)
%37 = icmp eq i64 %36, 0
br i1 %37, label LBL_18, label LBL_17
LBL_17:
%38 = call i64 @FUNC(i64 %36)
store i64 %38, i64* %arg5, align 8
br label LBL_19
LBL_18:
store i64 ptrtoint (i64* @gv_1 to i64), i64* %arg5, align 8
br label LBL_19
LBL_19:
ret i64 %2
uselistorder i64 %storemerge3.reload, { 5, 0, 1, 3, 2, 4 }
uselistorder i64 %2, { 1, 0, 2, 3, 4 }
uselistorder i64* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.12.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i1 false, { 5, 1, 2, 3, 4, 0 }
uselistorder label LBL_12, { 3, 2, 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | hash__init_new_context_19070 | hash__init_new_context | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC()
%3 = trunc i64 %2 to i32
%4 = icmp slt i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_1, label LBL_4
LBL_1:
%6 = trunc i64 %1 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
%.pre = ptrtoint i32* %arg1 to i64
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %.pre)
br label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %.pre)
%11 = call i64 @FUNC(i64 %.pre)
br label LBL_4
LBL_4:
%storemerge = and i64 %2, 4294967295
ret i64 %storemerge
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | ssl_cipher_disabled_9323 | ssl_cipher_disabled | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = and i64 %2, %1
%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_12, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg2 to i64
%8 = ptrtoint i64* %arg1 to i64
%9 = add i64 %7, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = add i64 %8, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = and i32 %14, %11
%16 = icmp eq i32 %15, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %16, label LBL_2, label LBL_12
LBL_2:
%17 = add i64 %8, 8
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
store i64 1, i64* %rax.0.reg2mem
br i1 %21, label LBL_3, label LBL_12
LBL_3:
%22 = call i64 @FUNC(i64 %8)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_8, label LBL_4
LBL_4:
%26 = add i64 %7, 8
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = icmp eq i32 %28, 769
%30 = icmp eq i1 %29, false
%31 = trunc i64 %arg4 to i32
%32 = icmp eq i32 %31, 0
%or.cond = or i1 %32, %30
store i32 %28, i32* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_6, label LBL_5
LBL_5:
%33 = urem i64 %2, 4
%34 = icmp eq i64 %33, 0
%spec.select = select i1 %34, i32 %28, i32 768
store i32 %spec.select, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%35 = load i32, i32* %18, align 4
%36 = zext i32 %35 to i64
%37 = sext i32 %sv_0.0.reload to i64
%38 = icmp sgt i64 %37, %36
store i64 1, i64* %rax.0.reg2mem
br i1 %38, label LBL_12, label LBL_7
LBL_7:
%39 = add i64 %7, 12
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = add i64 %8, 12
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = icmp ult i32 %41, %44
store i64 1, i64* %rax.0.reg2mem
br i1 %45, label LBL_12, label LBL_8
LBL_8:
%46 = call i64 @FUNC(i64 %8)
%47 = trunc i64 %46 to i32
%48 = icmp eq i32 %47, 0
br i1 %48, label LBL_11, label LBL_9
LBL_9:
%49 = load i32, i32* %18, align 4
%50 = add i64 %7, 16
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = zext i32 %49 to i64
%54 = zext i32 %52 to i64
%55 = call i64 @FUNC(i64 %54, i64 %53)
%56 = trunc i64 %55 to i32
%57 = icmp eq i32 %56, 0
%58 = icmp eq i1 %57, false
store i64 1, i64* %rax.0.reg2mem
br i1 %58, label LBL_12, label LBL_10
LBL_10:
%59 = add i64 %8, 12
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = add i64 %7, 20
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = zext i32 %61 to i64
%66 = zext i32 %64 to i64
%67 = call i64 @FUNC(i64 %66, i64 %65)
%68 = trunc i64 %67 to i32
%69 = icmp eq i32 %68, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %69, label LBL_11, label LBL_12
LBL_11:
%70 = add i64 %7, 24
%71 = inttoptr i64 %70 to i32*
%72 = load i32, i32* %71, align 4
%73 = trunc i64 %arg3 to i32
%74 = call i64 @FUNC(i64 %8, i32 %73, i32 %72, i64 0, i64 %7)
%75 = trunc i64 %74 to i32
%76 = icmp eq i32 %75, 0
%77 = zext i1 %76 to i64
store i64 %77, 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 %28, { 1, 0, 2 }
uselistorder i32* %18, { 1, 0, 2 }
uselistorder i64 %8, { 2, 1, 3, 0, 6, 5, 4 }
uselistorder i64 %7, { 5, 4, 2, 3, 0, 1, 6 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 8, 2, 1, 4, 3, 5, 7, 6 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64)* @SSL_IS_DTLS, { 1, 0 }
uselistorder i64 1, { 1, 0, 3, 2, 4, 6, 5, 7 }
uselistorder i32 0, { 1, 2, 3, 4, 0, 5, 6, 7, 8, 9, 10, 11, 12, 13 }
uselistorder label LBL_12, { 7, 1, 0, 3, 2, 4, 6, 5 }
} | 0 |
BinRealVul | f2fs_set_data_page_dirty_12737 | f2fs_set_data_page_dirty | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %0)
br label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %0)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_6, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %0)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_6, label LBL_4
LBL_4:
%14 = call i64 @FUNC(i64 %0)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_8, label LBL_5
LBL_5:
%18 = call i64 @FUNC(i64 %0, i64 %0)
store i64 1, i64* %rax.0.reg2mem
br label LBL_8
LBL_6:
%19 = call i64 @FUNC(i64 %0)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_8, label LBL_7
LBL_7:
%23 = call i64 @FUNC(i64 %0)
%24 = call i64 @FUNC(i64 %0, i64 %0)
store i64 1, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 7, 5, 6, 8, 2, 1, 3, 4, 9, 0, 10, 11 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64 1, { 1, 0 }
uselistorder label LBL_8, { 2, 0, 3, 1 }
} | 1 |
BinRealVul | throttle_compute_wait_1305 | throttle_compute_wait | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%rax.0.reg2mem = alloca i64
%xmm1.1.reg2mem = alloca i128
%sv_0.0.reg2mem = alloca i64
%xmm1.0.reg2mem = alloca i128
%1 = load i128, i128* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%3 = ptrtoint i64* %sv_1 to i64
%4 = add i64 %3, -48
%5 = icmp eq i64 %4, 0
%6 = trunc i64 %4 to i8
%7 = call i8 @llvm.ctpop.i8(i8 %6), !range !8
%8 = urem i8 %7, 2
%9 = icmp eq i8 %8, 0
%10 = call i128 @__asm_movsd.1(i64 %2)
%11 = call i128 @FUNC(i128 %1, i128 %1)
call void @FUNC(i128 %10, i128 %11)
store i128 %11, i128* %xmm1.0.reg2mem
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%12 = call i128 @FUNC(i128 %11, i128 %11)
call void @FUNC(i128 %10, i128 %12)
%13 = icmp eq i1 %5, false
store i128 %12, i128* %xmm1.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_2, label LBL_9
LBL_2:
%xmm1.0.reload = load i128, i128* %xmm1.0.reg2mem
%14 = add i64 %2, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i128 @__asm_movsd.1(i64 %16)
%18 = call i128 @FUNC(i128 %xmm1.0.reload, i128 %xmm1.0.reload)
call void @FUNC(i128 %17, i128 %18)
br i1 %9, label LBL_5, label LBL_3
LBL_3:
%19 = call i128 @FUNC(i128 %18, i128 %18)
call void @FUNC(i128 %17, i128 %19)
%20 = icmp eq i1 %5, false
br i1 %20, label LBL_5, label LBL_4
LBL_4:
%21 = call i128 @__asm_movsd.1(i64 %2)
%22 = call i128 @__asm_movsd.1(i64 4621819117588971520)
%23 = call i128 @FUNC(i128 %21, i128 %22)
%24 = call i64 @FUNC(i128 %23)
%25 = call i128 @FUNC(i128 %23, i128 %23)
%26 = call i64 @FUNC(i128 %25)
store i64 %24, i64* %sv_0.0.reg2mem
store i128 %22, i128* %xmm1.1.reg2mem
br label LBL_6
LBL_5:
%27 = load i64, i64* %15, align 8
%28 = call i128 @__asm_movsd.1(i64 %27)
%29 = add i64 %2, 24
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i128 @__asm_movsd.1(i64 %31)
%33 = call i128 @__asm_mulsd.2(i128 %32, i128 %28)
%34 = call i64 @FUNC(i128 %33)
%35 = load i64, i64* %15, align 8
%36 = call i128 @__asm_movsd.1(i64 %35)
%37 = call i128 @__asm_movsd.1(i64 4621819117588971520)
%38 = call i128 @FUNC(i128 %36, i128 %37)
%39 = call i64 @FUNC(i128 %38)
store i64 %34, i64* %sv_0.0.reg2mem
store i128 %37, i128* %xmm1.1.reg2mem
br label LBL_6
LBL_6:
%40 = icmp ult i64* %sv_1, inttoptr (i64 48 to i64*)
%xmm1.1.reload = load i128, i128* %xmm1.1.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%41 = add i64 %2, 16
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = call i128 @__asm_movsd.1(i64 %43)
%45 = call i128 @FUNC(i128 %44, i64 %sv_0.0.reload)
%46 = call i64 @FUNC(i128 %45)
%47 = call i128 @__asm_movsd.1(i64 %46)
%48 = call i128 @FUNC(i128 %xmm1.1.reload, i128 %xmm1.1.reload)
call void @FUNC(i128 %47, i128 %48)
%49 = or i1 %40, %5
br i1 %49, label LBL_8, label LBL_7
LBL_7:
%50 = call i128 @__asm_movsd.1(i64 %46)
%51 = call i128 @FUNC(i128 %50)
%52 = call i128 @FUNC(i64 %2)
%53 = call i64 @FUNC()
store i64 %53, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%54 = add i64 %2, 24
%55 = inttoptr i64 %54 to i64*
%56 = load i64, i64* %55, align 8
%57 = call i128 @__asm_movsd.1(i64 %56)
%58 = call i128 @__asm_movsd.1(i64 4607182418800017408)
call void @FUNC(i128 %57, i128 %58)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i128 %23, { 2, 1, 0 }
uselistorder i128 %18, { 1, 0, 2 }
uselistorder i128 %11, { 2, 1, 0, 3 }
uselistorder i1 %5, { 2, 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %2, { 2, 1, 3, 4, 0, 5, 6 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i128* %xmm1.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2 }
uselistorder label LBL_9, { 0, 2, 1 }
} | 0 |
BinRealVul | hevc_decode_extradata_1396 | hevc_decode_extradata | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg3 to i32
%3 = add i64 %1, 20
%4 = add i64 %1, 16
%5 = add i64 %1, 8
%6 = call i64 @FUNC(i64 %0, i32 %2, i64 %1, i64 %5, i64 %4, i64 %3)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = and i64 %6, 4294967295
store i64 %10, i64* %storemerge.reg2mem
br label LBL_5
LBL_2:
%11 = trunc i64 %arg4 to i32
%12 = icmp eq i32 %11, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %12, label LBL_5, label LBL_3
LBL_3:
%13 = load i64, i64* %arg2, align 8
%14 = icmp eq i64 %13, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %14, label LBL_5, label LBL_4
LBL_4:
%15 = inttoptr i64 %13 to i64*
%16 = load i64, i64* %15, align 8
%17 = add i64 %1, 32
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = call i64 @FUNC(i64 %19, i64 %1, i64 %16)
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* %storemerge.reg2mem, { 0, 3, 1, 2, 4 }
uselistorder label LBL_5, { 2, 0, 1, 3 }
} | 0 |
BinRealVul | multi_config_port_9618 | multi_config_port | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = urem i64 %arg2, 2
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %2, i64 0)
br label LBL_2
LBL_2:
%6 = trunc i64 %1 to i32
%7 = icmp eq i32 %6, 0
%8 = and i64 %arg2, 2
%9 = icmp eq i64 %8, 0
%or.cond = or i1 %9, %7
br i1 %or.cond, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %2)
br label LBL_4
LBL_4:
%11 = and i64 %1, 4294967295
%12 = icmp eq i1 %7, false
store i64 %11, i64* %rax.0.reg2mem
br i1 %12, label LBL_6, label LBL_5
LBL_5:
%13 = call i64 @FUNC(i64 %2)
store i64 %13, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
} | 0 |
BinRealVul | vmxnet3_ring_write_curr_cell_15921 | vmxnet3_ring_write_curr_cell | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %1, i64 %arg2, i64 %0)
ret i64 %2
} | 1 |
BinRealVul | v4l2_try_start_15363 | v4l2_try_start | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 16
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %7, 240
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_3, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i64 %8, i64 1074026002)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_3, label LBL_2
LBL_2:
%17 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
%18 = and i64 %13, 4294967295
store i64 %18, i64* %rax.0.reg2mem
br label LBL_15
LBL_3:
%19 = inttoptr i64 %7 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_4, label LBL_15
LBL_4:
%22 = add i64 %7, 224
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i64 %7, 8
%26 = inttoptr i64 %25 to i32*
store i32 %24, i32* %26, align 4
%27 = add i64 %7, 480
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = call i32 (i32, i32, ...) @ioctl(i32 %29, i32 -1060088316)
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_6, label LBL_5
LBL_5:
%32 = call i64 @FUNC(i64 %4, i64 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_1, i64 0, i64 0), i64 3234878980, i64 %2, i64 %1)
%33 = zext i32 %30 to i64
store i64 %33, i64* %rax.0.reg2mem
br label LBL_15
LBL_6:
%34 = add i64 %7, 24
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = zext i32 %36 to i64
%38 = call i64 @FUNC(i64 %37, i64 0)
%39 = trunc i64 %38 to i32
%40 = bitcast i64* %arg1 to i32*
store i32 %39, i32* %40, align 4
%41 = bitcast i64* %rdi to i32*
%42 = load i32, i32* %41, align 8
%43 = add i64 %7, 228
%44 = inttoptr i64 %43 to i32*
store i32 %42, i32* %44, align 4
%45 = add i64 %4, 4
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = add i64 %4, 8
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = load i32, i32* %28, align 4
%52 = call i32 (i32, i32, ...) @ioctl(i32 %51, i32 -1069525409)
%53 = icmp eq i32 %52, 0
%54 = icmp eq i1 %53, false
store i64 3225441887, i64* %rcx.0.reg2mem
br i1 %54, label LBL_10, label LBL_7
LBL_7:
%55 = load i32, i32* %28, align 4
%56 = call i32 (i32, i32, ...) @ioctl(i32 %55, i32 -1069525410)
%57 = icmp eq i32 %56, 0
br i1 %57, label LBL_9, label LBL_8
LBL_8:
%58 = call i64 @FUNC(i64 %4, i64 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_2, i64 0, i64 0), i64 3225441886, i64 %2, i64 %1)
store i64 3225441886, i64* %rcx.0.reg2mem
br label LBL_10
LBL_9:
%59 = zext i32 %47 to i64
%60 = zext i32 %50 to i64
%61 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0), i64 %60, i64 %59, i64 %1)
%62 = add i64 %7, 216
%63 = inttoptr i64 %62 to i32*
store i32 %47, i32* %63, align 4
%64 = add i64 %7, 220
%65 = inttoptr i64 %64 to i32*
store i32 %50, i32* %65, align 4
store i64 %60, i64* %rcx.0.reg2mem
store i64 %59, i64* %r8.0.reg2mem
br label LBL_10
LBL_10:
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%66 = add i64 %7, 232
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = icmp eq i32 %68, 0
%70 = icmp eq i1 %69, false
br i1 %70, label LBL_13, label LBL_11
LBL_11:
%71 = call i64 @FUNC(i64 %7)
%72 = trunc i64 %71 to i32
%73 = icmp eq i32 %72, 0
br i1 %73, label LBL_13, label LBL_12
LBL_12:
%74 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_4, i64 0, i64 0), i64 %rcx.0.reload, i64 %r8.0.reload, i64 %1)
%75 = and i64 %71, 4294967295
store i64 %75, i64* %rax.0.reg2mem
br label LBL_15
LBL_13:
%76 = call i64 @FUNC(i64 %7, i64 1074026002)
%77 = trunc i64 %76 to i32
%78 = icmp eq i32 %77, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %78, label LBL_15, label LBL_14
LBL_14:
%79 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_5, i64 0, i64 0), i64 %rcx.0.reload, i64 %r8.0.reload, i64 %1)
%80 = and i64 %76, 4294967295
store i64 %80, 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 %7, { 2, 3, 4, 0, 1, 5, 6, 9, 7, 8, 10, 11 }
uselistorder i64 %4, { 5, 4, 3, 2, 7, 6, 1, 0, 8 }
uselistorder i64 %1, { 5, 4, 3, 2, 1, 0 }
uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 5, 4, 2, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i32 (i32, i32, ...)* @ioctl, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @ff_v4l2_context_set_status, { 1, 0 }
uselistorder label LBL_15, { 2, 0, 3, 4, 1, 5 }
} | 1 |
BinRealVul | do_sigreturn_v1_16568 | do_sigreturn_v1 | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%3 = load i32, i32* %1
%4 = load i64, i64* %0
%sv_3 = alloca i64, align 8
%5 = add i64 %2, 104
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = urem i64 %7, 8
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_8, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 0, i64 %4, i64 %7, i64 1)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
store i64 %7, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_8, label LBL_2
LBL_2:
%14 = zext i32 %3 to i64
%15 = call i64 @FUNC(i64 %14, i64 %4)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
store i64 %7, i64* %sv_0.0.reg2mem
br i1 %18, label LBL_8, label LBL_3
LBL_3:
%19 = ptrtoint i64* %sv_3 to i64
%20 = add i64 %19, -160
store i64 1, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%21 = mul i64 %indvars.iv.reload, 4
%22 = add i64 %21, %4
%23 = add i64 %20, %21
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = zext i32 %25 to i64
%27 = call i64 @FUNC(i64 %26, i64 %22)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
%30 = icmp eq i1 %29, false
store i64 %7, i64* %sv_0.0.reg2mem
br i1 %30, label LBL_8, label LBL_5
LBL_5:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%31 = icmp ult i64 %indvars.iv.next, 32
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %31, label LBL_4, label LBL_6
LBL_6:
%32 = call i64 @FUNC(i64* nonnull %sv_1, i32* nonnull %sv_2)
%33 = bitcast i64* %sv_1 to %_TYPEDEF_sigset_t*
%34 = call i32 @sigprocmask(i32 2, %_TYPEDEF_sigset_t* nonnull %33, %_TYPEDEF_sigset_t* null)
%35 = call i64 @FUNC(i64 %2, i64 %4)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
store i64 %7, i64* %sv_0.0.reg2mem
br i1 %38, label LBL_8, label LBL_7
LBL_7:
%39 = call i64 @FUNC(i64 %4, i64 %7, i64 0)
br label LBL_9
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%40 = call i64 @FUNC(i64 %4, i64 %sv_0.0.reload, i64 0)
%41 = call i64 @FUNC(i64 11)
store i64 0, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %7, { 5, 1, 0, 2, 3, 6, 4 }
uselistorder i64 %4, { 0, 1, 2, 5, 3, 4 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64 (i64, i64, i64)* @unlock_user_struct, { 1, 0 }
uselistorder i64 (i64, i64)* @__get_user, { 1, 0 }
uselistorder i32 0, { 1, 0, 2, 3 }
uselistorder i64 1, { 2, 0, 3, 1 }
uselistorder i1 false, { 1, 0, 2, 3 }
uselistorder label LBL_8, { 1, 0, 2, 3, 4 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | bm_get_font_6731 | bm_get_font | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
%2 = icmp eq i1 %1, false
store i64 %0, i64* %rdi.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_1, i64 0, i64 0), i32 13, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([2 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
ret i64 %rdi.0.reload
uselistorder [2 x i8]* @gv_0, { 1, 0 }
} | 0 |
BinRealVul | dlm_migrate_request_handler_17421 | dlm_migrate_request_handler | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg3 to i64
%sv_1 = alloca i64, align 8
store i64 0, i64* %sv_1, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 0, i64* %storemerge.reg2mem
br i1 %7, label LBL_1, label LBL_12
LBL_1:
%8 = ptrtoint i64* %arg1 to i64
%9 = add i64 %8, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = zext i32 %11 to i64
%13 = call i64 @FUNC(i64 %3, i64 %12)
%14 = load i64, i64* @gv_0, align 8
%15 = call i64 @FUNC(i64 %14, i64 0)
%16 = icmp eq i64 %15, 0
%17 = icmp eq i1 %16, false
store i32 -12, i32* %sv_0.1.reg2mem
br i1 %17, label LBL_2, label LBL_11
LBL_2:
%18 = trunc i64 %13 to i32
%19 = call i64 @FUNC(i64 %3)
%20 = call i64 @FUNC(i64 %3, i64 %3, i32 %11, i32 %18)
%21 = icmp eq i64 %20, 0
br i1 %21, label LBL_6, label LBL_3
LBL_3:
%22 = inttoptr i64 %20 to i32*
%23 = add i64 %20, 4
%24 = call i64 @FUNC(i64 %23)
%25 = load i32, i32* %22, align 4
%26 = urem i32 %25, 2
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_5, label LBL_4
LBL_4:
%28 = and i64 %13, 4294967295
%29 = call i64 @FUNC(i64 %23)
%30 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @gv_1, i64 0, i64 0), i64 %12, i64 %28, i64 %2, i64 %1)
%31 = load i64, i64* @gv_0, align 8
%32 = call i64 @FUNC(i64 %31, i64 %15)
store i32 -22, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_5:
%33 = or i32 %25, 2
store i32 %33, i32* %22, align 4
%34 = call i64 @FUNC(i64 %23)
br label LBL_6
LBL_6:
%35 = add i64 %3, 4
%36 = call i64 @FUNC(i64 %35)
%37 = call i64 @FUNC(i64 %3, i64 %20, i64 %15, i64* nonnull %sv_1, i64 %3, i32 %11)
%38 = trunc i64 %37 to i32
%39 = call i64 @FUNC(i64 %35)
store i32 %38, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%40 = call i64 @FUNC(i64 %3)
%41 = load i64, i64* %sv_1, align 8
%42 = icmp eq i64 %41, 0
br i1 %42, label LBL_9, label LBL_8
LBL_8:
%43 = call i64 @FUNC(i64 %3, i64 %41)
%44 = load i64, i64* %sv_1, align 8
%45 = call i64 @FUNC(i64 %44)
br label LBL_9
LBL_9:
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %21, label LBL_11, label LBL_10
LBL_10:
%46 = call i64 @FUNC(i64 %20)
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_11
LBL_11:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%47 = call i64 @FUNC(i64 %3)
%48 = zext i32 %sv_0.1.reload to i64
store i64 %48, i64* %storemerge.reg2mem
br label LBL_12
LBL_12:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %25, { 1, 0 }
uselistorder i64 %23, { 1, 0, 2 }
uselistorder i64 %20, { 1, 0, 2, 3, 4 }
uselistorder i64 %15, { 1, 0, 2 }
uselistorder i64* %sv_1, { 1, 2, 0, 3 }
uselistorder i64 %3, { 1, 0, 2, 4, 3, 5, 7, 6, 8, 9, 10 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64)* @spin_unlock, { 3, 2, 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 (i64)* @spin_lock, { 2, 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 2, 1, 0 }
} | 1 |
BinRealVul | alloc_ucounts_11980 | alloc_ucounts | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = call i64 @FUNC(i64* nonnull @gv_0)
%4 = call i64 @FUNC(i64 %0, i64 %1, i64 %2)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %sv_0.0.reg2mem
br i1 %6, label LBL_5, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64* nonnull @gv_0)
%8 = call i64 @FUNC(i64 16, i64 0)
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_2, label LBL_7
LBL_2:
%sext = mul i64 %arg2, 4294967296
%11 = ashr exact i64 %sext, 32
%12 = inttoptr i64 %8 to i64*
store i64 %0, i64* %12, align 8
%13 = trunc i64 %11 to i32
%14 = add i64 %8, 8
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = add i64 %8, 12
%17 = call i64 @FUNC(i64 %16, i64 1)
%18 = call i64 @FUNC(i64* nonnull @gv_0)
%19 = and i64 %11, 4294967295
%20 = call i64 @FUNC(i64 %0, i64 %19, i64 %2)
%21 = icmp eq i64 %20, 0
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = call i64 @FUNC(i64 %8)
store i64 %20, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_4:
%23 = add i64 %8, 16
%24 = call i64 @FUNC(i64 %23, i64 %2)
%25 = call i64 @FUNC(i64* nonnull @gv_0)
store i64 %8, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%26 = call i64 @FUNC(i64 %sv_0.0.reload)
%27 = urem i64 %26, 256
%28 = icmp eq i64 %27, 0
%29 = call i64 @FUNC(i64* nonnull @gv_0)
%30 = icmp eq i1 %28, false
store i64 %sv_0.0.reload, i64* %rax.0.reg2mem
br i1 %30, label LBL_7, label LBL_6
LBL_6:
%31 = call i64 @FUNC(i64 %sv_0.0.reload)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.0.reload, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 (i64*)* @spin_unlock_irq, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @find_ucounts, { 1, 0 }
uselistorder i64 (i64*)* @spin_lock_irq, { 1, 0 }
uselistorder i64* @gv_0, { 1, 0, 2, 3, 4 }
uselistorder label LBL_7, { 2, 0, 3, 1 }
} | 1 |
BinRealVul | rxrpc_put_bundle_12934 | rxrpc_put_bundle | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i32, align 4
%3 = add i64 %2, 4
%4 = bitcast i32* %sv_0 to i64*
%5 = call i64 @FUNC(i64 %3, i64* nonnull %4)
%6 = trunc i64 %5 to i8
%7 = load i32, i32* %sv_0, align 4
%8 = zext i32 %7 to i64
%9 = and i64 %1, 4294967295
%10 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 %9, i64 %8)
%11 = icmp eq i8 %6, 0
store i64 %10, i64* %rax.0.reg2mem
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = call i64 @FUNC(i64 %2)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 1 |
BinRealVul | qed_dcbnl_get_dcbx_17459 | qed_dcbnl_get_dcbx | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 4, i64 0)
%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 = trunc i64 %arg2 to i32
%5 = call i64 @FUNC(i64 %3, i64 %0, i32 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_3:
%9 = icmp eq i32 %4, 0
%10 = icmp eq i1 %9, false
store i64 %0, i64* %rax.0.reg2mem
br i1 %10, label LBL_6, label LBL_4
LBL_4:
%11 = inttoptr i64 %0 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i64 %0, i64* %rax.0.reg2mem
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_0, i64 0, i64 0))
%16 = call i64 @FUNC(i64 %0)
store i64 0, 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 %0, { 2, 1, 5, 0, 3, 4, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 2, 1, 4, 3 }
uselistorder label LBL_6, { 3, 1, 0, 4, 2 }
} | 1 |
BinRealVul | g_try_realloc_14331 | g_try_realloc | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg2)
%1 = icmp eq i64 %arg2, 0
%phitmp = trunc i64 %arg2 to i32
%storemerge = select i1 %1, i32 1, i32 %phitmp
%2 = inttoptr i64 %arg1 to i64*
%3 = call i64* @realloc(i64* %2, i32 %storemerge)
%4 = ptrtoint i64* %3 to i64
ret i64 %4
} | 1 |
BinRealVul | cbq_dump_ovl_5374 | cbq_dump_ovl | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%3 = trunc i64 %1 to i32
store i32 %3, i32* %sv_0, align 4
%4 = call i64 @FUNC(i64 %2, i64 1, i64 16, i32* nonnull %sv_0)
%5 = add i64 %2, 16
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = zext i32 %7 to i64
ret i64 %8
uselistorder i64 16, { 1, 0 }
} | 0 |
BinRealVul | read_exif_orientation_tag_19274 | 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 slt 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 i32
%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 i32 %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)
store i64 %30, 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, 3, 4 }
uselistorder label LBL_4, { 3, 1, 0, 2 }
} | 1 |
BinRealVul | aead_sock_destruct_6720 | aead_sock_destruct | 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 %1, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %1 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %7, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12)
%14 = trunc i64 %13 to i32
%15 = inttoptr i64 %4 to i32*
%16 = load i32, i32* %15, align 4
%17 = call i64 @FUNC(i64 %0, i32 %16, i64 0, i64 0)
%18 = add i64 %4, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = call i64 @FUNC(i64 %0, i64 %20, i32 %14)
%22 = add i64 %4, 16
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = call i64 @FUNC(i64 %0, i64 %4, i32 %24)
%26 = call i64 @FUNC(i64 %0)
ret i64 %26
uselistorder i64 16, { 1, 0 }
uselistorder i64 (i64)* @alg_sk, { 1, 0 }
} | 0 |
BinRealVul | ufs_mtk_init_va09_pwr_ctrl_12908 | ufs_mtk_init_va09_pwr_ctrl | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%3 = inttoptr i64 %1 to i64*
store i64 %2, i64* %3, align 8
%4 = icmp eq i64 %2, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0))
store i64 %6, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%7 = add i64 %1, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = or i64 %9, 1
store i64 %10, i64* %8, align 8
store i64 %1, 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 | xt_request_find_target_4806 | xt_request_find_target | define i64 @FUNC(i64 %arg1, i8* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = call i32 @strnlen(i8* %arg2, i32 36)
%4 = icmp eq i32 %3, 36
%5 = icmp eq i1 %4, false
store i64 -22, i64* %storemerge.reg2mem
br i1 %5, label LBL_1, label LBL_3
LBL_1:
%6 = urem i64 %arg1, 256
%7 = trunc i64 %arg3 to i8
%8 = ptrtoint i8* %arg2 to i64
%9 = call i64 @FUNC(i64 %6, i64 %8, i8 %7)
%10 = icmp ult i64 %9, -1000
store i64 %9, i64* %storemerge.reg2mem
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = add i64 %6, ptrtoint (i8** @gv_0 to i64)
%12 = inttoptr i64 %11 to i8*
%13 = load i8, i8* %12, align 1
%14 = zext i8 %13 to i64
%15 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i64 %14, i64 %8, i64 %8, i64 %2, i64 %1)
%16 = call i64 @FUNC(i64 %6, i64 %8, i8 %7)
store i64 %16, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %8, { 0, 2, 1, 3 }
uselistorder i64 %6, { 2, 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i8)* @xt_find_target, { 1, 0 }
uselistorder label LBL_3, { 1, 0, 2 }
} | 0 |
BinRealVul | getparam_8256 | getparam | define i64 @FUNC(i8* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i8
%storemerge3.reg2mem = alloca i32
%0 = ptrtoint i8* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = load i64, i64* bitcast ([2 x i8*]* @gv_1 to i64*), align 8
store i64 %4, i64* %rax.0.reg2mem
br label LBL_10
LBL_2:
%5 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_2, i64 0, i64 0))
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i32 0, i32* %storemerge3.reg2mem
br i1 %7, label LBL_7, label LBL_3
LBL_3:
%8 = load [21 x i8]*, [21 x i8]** @gv_3, align 8
%9 = ptrtoint [21 x i8]* %8 to i64
store i64 %9, i64* %rax.0.reg2mem
br label LBL_10
LBL_4:
%10 = call i64 @FUNC(i64 %0, i8* %21)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_4.LBL_8_crit_edge, label LBL_6
LBL_5:
%.pre = load i64, i64* %19, align 8
%.phi.trans.insert = inttoptr i64 %.pre to i8*
%.pre5 = load i8, i8* %.phi.trans.insert, align 1
store i8 %.pre5, i8* %.reg2mem
br label LBL_8
LBL_6:
%14 = add nuw i32 %storemerge3.reload, 1
%15 = icmp ugt i32 %storemerge3.reload, 8
store i32 %14, i32* %storemerge3.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_10, label LBL_7
LBL_7:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%16 = sext i32 %storemerge3.reload to i64
%17 = mul i64 %16, 8
%18 = add i64 %17, ptrtoint ([10 x i8*]* @gv_4 to i64)
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21, align 1
%23 = icmp eq i8 %22, 0
%24 = icmp eq i1 %23, false
store i8 %22, i8* %.reg2mem
br i1 %24, label LBL_4, label LBL_8
LBL_8:
%.reload = load i8, i8* %.reg2mem
%25 = icmp eq i8 %.reload, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %25, label LBL_10, label LBL_9
LBL_9:
%26 = add i64 %17, ptrtoint ([10 x i8*]* @gv_5 to i64)
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
store i64 %28, 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 i8* %21, { 1, 0 }
uselistorder i64* %19, { 1, 0 }
uselistorder i64 %17, { 1, 0 }
uselistorder i32 %storemerge3.reload, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 2, 1, 4, 3 }
uselistorder i8* bitcast ([10 x i8*]* @gv_6 to i8*), { 5, 6, 7, 8, 9, 0, 1, 2, 3, 4 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 25, 0, 26, 27, 28, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }
uselistorder i64 (i64, i8*)* @strieq, { 2, 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder label LBL_10, { 2, 1, 0, 3, 4 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | validate_event_13729 | validate_event | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %0)
%8 = trunc i64 %7 to i32
%9 = icmp ne i32 %8, 0
%10 = icmp eq i64 %6, %0
%11 = icmp eq i1 %10, false
%or.cond = or i1 %11, %9
store i64 1, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_5, label LBL_1
LBL_1:
%12 = add i64 %0, 16
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
store i64 1, i64* %rax.0.reg2mem
br i1 %16, label LBL_2, label LBL_5
LBL_2:
%17 = icmp eq i32 %14, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%19 = add i64 %0, 20
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
store i64 1, i64* %rax.0.reg2mem
br i1 %23, label LBL_4, label LBL_5
LBL_4:
%24 = icmp sge i64* %arg1, null
%25 = zext i1 %24 to i64
store i64 %25, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 2, 1, 0, 3, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i1 false, { 1, 2, 3, 0 }
uselistorder label LBL_5, { 3, 1, 2, 0 }
} | 0 |
BinRealVul | video_sample_entry_box_size_6429 | video_sample_entry_box_size | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
store i32 0, i32* %sv_0, align 4
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0, i64 %0, i32* nonnull %sv_0)
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %0, i64 %5, i32* nonnull %sv_0)
%7 = add i64 %0, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %0, i64 %9, i32* nonnull %sv_0)
%11 = add i64 %0, 24
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %0, i64 %13, i32* nonnull %sv_0)
%15 = add i64 %0, 32
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = icmp eq i64 %17, 0
br i1 %18, label LBL_2, label LBL_1
LBL_1:
%19 = call i64 @FUNC(i64 %0, i64 1)
%20 = call i64 @FUNC(i64 %0, i64 %19, i32* nonnull %sv_0)
%21 = load i64, i64* %16, align 8
%22 = call i64 @FUNC(i64 %0, i64 %21, i32* nonnull %sv_0)
br label LBL_2
LBL_2:
%23 = add i64 %0, 40
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %0, i64 %25, i32* nonnull %sv_0)
%27 = add i64 %0, 48
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 %0, i64 %29, i32* nonnull %sv_0)
%31 = add i64 %0, 56
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = call i64 @FUNC(i64 %0, i64 %33, i32* nonnull %sv_0)
%35 = add i64 %0, 64
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = call i64 @FUNC(i64 %0, i64 %37, i32* nonnull %sv_0)
%39 = add i64 %0, 72
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = call i64 @FUNC(i64 %0, i64 %41, i32* nonnull %sv_0)
%43 = add i64 %0, 80
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = call i64 @FUNC(i64 %0, i64 %45, i32* nonnull %sv_0)
%47 = add i64 %0, 88
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = call i64 @FUNC(i64 %0, i64 %49, i32* nonnull %sv_0)
%51 = add i64 %0, 96
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = call i64 @FUNC(i64 %53, i64 2)
%55 = icmp eq i64 %54, 0
br i1 %55, label LBL_4, label LBL_3
LBL_3:
%56 = call i64 @FUNC(i64 %0, i64 %54, i32* nonnull %sv_0)
br label LBL_4
LBL_4:
%57 = load i64, i64* %52, align 8
%58 = call i64 @FUNC(i64 %57, i64 3)
%59 = icmp eq i64 %58, 0
br i1 %59, label LBL_6, label LBL_5
LBL_5:
%60 = call i64 @FUNC(i64 %0, i64 %58, i32* nonnull %sv_0)
br label LBL_6
LBL_6:
ret i64 0
uselistorder i64 %0, { 4, 3, 7, 5, 6, 9, 11, 8, 10, 13, 15, 12, 14, 17, 19, 16, 18, 1, 0, 2, 29, 20, 28, 22, 27, 21, 26, 25, 23, 24 }
uselistorder i64 (i64, i64)* @gf_isom_box_find_child, { 2, 1, 0 }
uselistorder i64 (i64, i64, i32*)* @gf_isom_check_position, { 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | resolve_deps_7668 | resolve_deps | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rbx.1.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.0.ph21.reg2mem = alloca i32
%r8.2.ph22.reg2mem = alloca i64
%.reg2mem141 = alloca i8*
%rcx.1.reg2mem = alloca i64
%rbx.0.ph.reg2mem = alloca i64
%rdx.3.reg2mem = alloca i64
%.reg2mem139 = alloca i8*
%sv_1.1.reg2mem = alloca i8*
%.reg2mem = alloca i8*
%sv_1.0.reg2mem = alloca i8*
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_2 = alloca i32, align 4
%sv_3 = alloca i8*, align 8
%sv_4 = alloca %_IO_FILE*, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i8*, align 8
%3 = call i64* @malloc(i32 4096)
%4 = bitcast i64* %3 to i8*
store i8* %4, i8** %sv_6, align 8
store i64 4096, i64* %sv_5, align 8
store %_IO_FILE* null, %_IO_FILE** %sv_4, align 8
store i8* null, i8** %sv_3, align 8
%5 = inttoptr i64 %arg1 to i8*
%6 = call i8* @strstr(i8* %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0))
%7 = icmp eq i8* %6, null
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_16, label LBL_1
LBL_1:
%9 = call i32 (i8*, i32, ...) @open(i8* %5, i32 524288)
store i32 %9, i32* %sv_2, align 4
%10 = icmp slt i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = call i32* @__errno_location()
%13 = load i32, i32* %12, align 4
%14 = sub i32 0, %13
%15 = zext i32 %14 to i64
store i64 %15, i64* %rbx.0.ph.reg2mem
br label LBL_14
LBL_3:
%16 = load i8*, i8** %sv_6, align 8
%17 = ptrtoint i8* %16 to i64
%18 = bitcast i8* %16 to i64*
%19 = call i32 @read(i32 %9, i64* %18, i32 4096)
%20 = load i8*, i8** %sv_6, align 8
%21 = ptrtoint i8* %20 to i64
%22 = add i64 %21, 4095
%23 = inttoptr i64 %22 to i8*
store i8 0, i8* %23, align 1
%24 = load i8*, i8** %sv_6, align 8
%25 = load i8, i8* %24, align 1
%26 = icmp eq i8 %25, 35
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_15, label LBL_4
LBL_4:
%28 = ptrtoint i8* %24 to i64
%29 = add i64 %28, 1
%30 = inttoptr i64 %29 to i8*
%31 = load i8, i8* %30, align 1
%32 = icmp eq i8 %31, 33
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_15, label LBL_5
LBL_5:
%34 = add i64 %28, 2
%storemerge26 = inttoptr i64 %34 to i8*
%35 = load i8, i8* %storemerge26, align 1
%36 = icmp eq i8 %35, 0
store i8* %storemerge26, i8** %sv_1.0.reg2mem
store i8* %storemerge26, i8** %sv_1.1.reg2mem
store i8* %storemerge26, i8** %.reg2mem139
store i64 4096, i64* %rdx.3.reg2mem
br i1 %36, label LBL_11, label LBL_7
LBL_6:
%37 = ptrtoint i8* %sv_1.0.reload to i64
%38 = add i64 %37, 1
%storemerge = inttoptr i64 %38 to i8*
%39 = load i8, i8* %storemerge, align 1
%40 = icmp eq i8 %39, 0
store i8* %storemerge, i8** %sv_1.0.reg2mem
store i8* %storemerge, i8** %sv_1.1.reg2mem
store i8* %storemerge, i8** %.reg2mem139
store i64 %43, i64* %rdx.3.reg2mem
br i1 %40, label LBL_11, label LBL_7
LBL_7:
%sv_1.0.reload = load i8*, i8** %sv_1.0.reg2mem
%41 = call i16** @__ctype_b_loc()
%42 = load i16*, i16** %41, align 8
%43 = ptrtoint i16* %42 to i64
%44 = load i8, i8* %sv_1.0.reload, align 1
%45 = sext i8 %44 to i64
%46 = mul i64 %45, 2
%47 = add i64 %46, %43
%48 = inttoptr i64 %47 to i16*
%49 = load i16, i16* %48, align 2
%50 = and i16 %49, 8192
%51 = icmp eq i16 %50, 0
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_6, label LBL_8
LBL_8:
%53 = icmp eq i8 %44, 0
store i8* %sv_1.0.reload, i8** %.reg2mem
store i8* %sv_1.0.reload, i8** %sv_1.1.reg2mem
store i8* %sv_1.0.reload, i8** %.reg2mem139
store i64 %43, i64* %rdx.3.reg2mem
br i1 %53, label LBL_11, label LBL_10
LBL_9:
%54 = ptrtoint i8* %.reload to i64
%55 = add i64 %54, 1
%56 = inttoptr i64 %55 to i8*
%57 = load i8, i8* %56, align 1
%58 = icmp eq i8 %57, 0
store i8* %56, i8** %.reg2mem
store i8* %sv_1.0.reload, i8** %sv_1.1.reg2mem
store i8* %56, i8** %.reg2mem139
store i64 %61, i64* %rdx.3.reg2mem
br i1 %58, label LBL_11, label LBL_10
LBL_10:
%.reload = load i8*, i8** %.reg2mem
%59 = call i16** @__ctype_b_loc()
%60 = load i16*, i16** %59, align 8
%61 = ptrtoint i16* %60 to i64
%62 = load i8, i8* %.reload, align 1
%63 = sext i8 %62 to i64
%64 = mul i64 %63, 2
%65 = add i64 %64, %61
%66 = inttoptr i64 %65 to i16*
%67 = load i16, i16* %66, align 2
%68 = and i16 %67, 8192
%69 = icmp eq i16 %68, 0
store i8* %sv_1.0.reload, i8** %sv_1.1.reg2mem
store i8* %.reload, i8** %.reg2mem139
store i64 %61, i64* %rdx.3.reg2mem
br i1 %69, label LBL_9, label LBL_11
LBL_11:
%rdx.3.reload = load i64, i64* %rdx.3.reg2mem
%.reload140 = load i8*, i8** %.reg2mem139
%sv_1.1.reload = load i8*, i8** %sv_1.1.reg2mem
store i8 0, i8* %.reload140, align 1
%70 = ptrtoint i8* %sv_1.1.reload to i64
%71 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0), i64 %70, i64 %rdx.3.reload, i64 %17, i64 %2, i64 %1)
%72 = call i64 @FUNC(i64 %70, i64 %70, i64 0, i64 1, i64 0)
%73 = trunc i64 %72 to i32
%74 = icmp eq i32 %73, 0
br i1 %74, label LBL_13, label LBL_12
LBL_12:
%75 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_2, i64 0, i64 0), i64 %70, i64 0, i64 1, i64 0, i64 %1)
br label LBL_13
LBL_13:
%76 = and i64 %72, 4294967295
store i64 %76, i64* %rbx.0.ph.reg2mem
br label LBL_14
LBL_14:
%rbx.0.ph.reload = load i64, i64* %rbx.0.ph.reg2mem
%77 = ptrtoint i32* %sv_2 to i64
%78 = trunc i64 %77 to i32
%79 = call i32 @close(i32 %78)
store i64 %rbx.0.ph.reload, i64* %rbx.1.reg2mem
br label LBL_42
LBL_15:
%80 = ptrtoint i32* %sv_2 to i64
%81 = trunc i64 %80 to i32
%82 = call i32 @close(i32 %81)
store i64 %17, i64* %rcx.1.reg2mem
br label LBL_16
LBL_16:
%83 = call i32 (i8**, i8*, ...) @asprintf(i8** nonnull %sv_3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_3, i64 0, i64 0), i8* %5)
%84 = icmp slt i32 %83, 0
%85 = icmp eq i1 %84, false
br i1 %85, label LBL_18, label LBL_17
LBL_17:
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%86 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_4, i64 0, i64 0), i64 ptrtoint ([12 x i8]* @gv_3 to i64), i64 %arg1, i64 %rcx.1.reload, i64 %2, i64 %1)
call void @exit(i32 1)
unreachable
LBL_18:
%87 = load i8*, i8** %sv_3, align 8
%88 = call %_IO_FILE* @popen(i8* %87, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_5, i64 0, i64 0))
store %_IO_FILE* %88, %_IO_FILE** %sv_4, align 8
%89 = call i32 @feof(%_IO_FILE* %88)
%90 = icmp eq i32 %89, 0
store i32 0, i32* %sv_0.1.reg2mem
br i1 %90, label LBL_19, label LBL_41
LBL_19:
%91 = ptrtoint i64* %sv_5 to i64
%92 = bitcast i64* %sv_5 to i32*
store i32 0, i32* %sv_0.0.ph21.reg2mem
br label LBL_20.lr.ph
LBL_20:
%93 = load %_IO_FILE*, %_IO_FILE** %sv_4, align 8
%94 = call i32 @getline(i8** nonnull %sv_6, i32* nonnull %92, %_IO_FILE* %93)
%95 = icmp eq i32 %94, 0
%96 = icmp slt i32 %94, 0
%97 = icmp eq i1 %96, false
%98 = icmp eq i1 %95, false
%99 = icmp eq i1 %97, %98
br i1 %99, label LBL_21, label LBL_29
LBL_21:
%100 = ptrtoint %_IO_FILE* %93 to i64
%101 = load i8*, i8** %sv_6, align 8
%102 = ptrtoint i8* %101 to i64
%103 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_6, i64 0, i64 0), i64 %102, i64 %100, i64 %91, i64 %r8.2.ph22.reload, i64 %1)
%104 = load i8*, i8** %sv_6, align 8
%105 = call i8* @strstr(i8* %104, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_7, i64 0, i64 0))
%106 = icmp eq i8* %105, null
%107 = load i8*, i8** %sv_6, align 8
br i1 %106, label LBL_23, label LBL_22
LBL_22:
%108 = ptrtoint i8* %107 to i64
%109 = call i64 @FUNC(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_8, i64 0, i64 0), i64 %108, i64 %100, i64 %91, i64 %r8.2.ph22.reload, i64 %1)
%110 = add i32 %sv_0.0.ph21.reload, 1
store i32 %110, i32* %sv_0.1.reg2mem
br label LBL_41
LBL_23:
%111 = call i8* @strstr(i8* %107, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_9, i64 0, i64 0))
%112 = icmp eq i8* %111, null
%113 = icmp eq i1 %112, false
store i32 %sv_0.0.ph21.reload, i32* %sv_0.1.reg2mem
br i1 %113, label LBL_41, label LBL_24
LBL_24:
%114 = load i8*, i8** %sv_6, align 8
%115 = call i8* @strstr(i8* %114, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_10, i64 0, i64 0))
%116 = icmp eq i8* %115, null
%117 = icmp eq i1 %116, false
store i32 %sv_0.0.ph21.reload, i32* %sv_0.1.reg2mem
br i1 %117, label LBL_41, label LBL_25
LBL_25:
%118 = load i8*, i8** %sv_6, align 8
%119 = call i8* @strstr(i8* %118, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_11, i64 0, i64 0))
%120 = icmp eq i8* %119, null
%121 = icmp eq i1 %120, false
store i32 %sv_0.0.ph21.reload, i32* %sv_0.1.reg2mem
br i1 %121, label LBL_41, label LBL_26
LBL_26:
%122 = load i8*, i8** %sv_6, align 8
%123 = call i8* @strstr(i8* %122, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_12, i64 0, i64 0))
%124 = icmp eq i8* %123, null
%125 = icmp eq i1 %124, false
store i32 %sv_0.0.ph21.reload, i32* %sv_0.1.reg2mem
br i1 %125, label LBL_41, label LBL_27
LBL_27:
%126 = load [16 x i8]*, [16 x i8]** @gv_13, align 8
%127 = load i8*, i8** %sv_6, align 8
%128 = getelementptr inbounds [16 x i8], [16 x i8]* %126, i64 0, i64 0
%129 = call i8* @strstr(i8* %127, i8* %128)
%130 = icmp eq i8* %129, null
%131 = icmp eq i1 %130, false
store i32 %sv_0.0.ph21.reload, i32* %sv_0.1.reg2mem
br i1 %131, label LBL_41, label LBL_28
LBL_28:
%132 = load i8*, i8** %sv_6, align 8
%133 = call i8* @strchr(i8* %132, i32 47)
%134 = icmp eq i8* %133, null
store i8* %133, i8** %.reg2mem141
br i1 %134, label LBL_29, label LBL_31
LBL_29:
%135 = load %_IO_FILE*, %_IO_FILE** %sv_4, align 8
%136 = call i32 @feof(%_IO_FILE* %135)
%137 = icmp eq i32 %136, 0
store i32 %sv_0.0.ph21.reload, i32* %sv_0.1.reg2mem
br i1 %137, label LBL_20, label LBL_41
LBL_30:
%138 = ptrtoint i8* %.reload142 to i64
%139 = add i64 %138, 1
%140 = inttoptr i64 %139 to i8*
store i8* %140, i8** %.reg2mem141
br label LBL_31
LBL_31:
%.reload142 = load i8*, i8** %.reg2mem141
%141 = load i8, i8* %.reload142, align 1
switch i8 %141, label LBL_32 [
i8 0, label LBL_33
i8 32, label LBL_33
]
LBL_32:
%142 = icmp eq i8 %141, 10
%143 = icmp eq i1 %142, false
br i1 %143, label LBL_30, label LBL_33
LBL_33:
store i8 0, i8* %.reload142, align 1
%144 = ptrtoint i8* %133 to i64
%145 = call i64 @FUNC(i64 %144, i64 %144, i64 0, i64 0, i64 1)
%146 = trunc i64 %145 to i32
%147 = icmp eq i32 %146, 0
br i1 %147, label LBL_35, label LBL_34
LBL_34:
%148 = call i64 @FUNC(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_14, i64 0, i64 0), i64 %144, i64 %arg1, i64 0, i64 1, i64 %1)
br label LBL_36
LBL_35:
%149 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_15, i64 0, i64 0), i64 %144, i64 0, i64 0, i64 1, i64 %1)
br label LBL_36
LBL_36:
%150 = call i8* @strstr(i8* nonnull %133, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_16, i64 0, i64 0))
%151 = icmp eq i8* %150, null
br i1 %151, label LBL_37, label LBL_38
LBL_37:
%152 = add i32 %sv_0.0.ph21.reload, %146
%153 = load %_IO_FILE*, %_IO_FILE** %sv_4, align 8
%154 = call i32 @feof(%_IO_FILE* %153)
%155 = icmp eq i32 %154, 0
store i64 1, i64* %r8.2.ph22.reg2mem
store i32 %152, i32* %sv_0.0.ph21.reg2mem
store i32 %152, i32* %sv_0.1.reg2mem
br i1 %155, label LBL_20.lr.ph, label LBL_41
LBL_38:
%156 = ptrtoint i8* %150 to i64
%157 = add i64 %156, 3
%158 = inttoptr i64 %157 to i8*
store i8 0, i8* %158, align 1
%159 = call i64 @FUNC(i64 %144, i64 %144, i64 0, i64 0, i64 1)
%160 = trunc i64 %159 to i32
%161 = icmp eq i32 %160, 0
%162 = icmp eq i1 %161, false
br i1 %162, label LBL_37, label LBL_39
LBL_39:
%163 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_15, i64 0, i64 0), i64 %144, i64 0, i64 0, i64 1, i64 %1)
br label LBL_37
LBL_40:
%sv_0.0.ph21.reload = load i32, i32* %sv_0.0.ph21.reg2mem
%r8.2.ph22.reload = load i64, i64* %r8.2.ph22.reg2mem
br label LBL_20
LBL_41:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%164 = zext i32 %sv_0.1.reload to i64
store i64 %164, i64* %rbx.1.reg2mem
br label LBL_42
LBL_42:
%rbx.1.reload = load i64, i64* %rbx.1.reg2mem
%165 = bitcast i8** %sv_3 to i64*
call void @free(i64* nonnull %165)
%166 = bitcast %_IO_FILE** %sv_4 to %_IO_FILE*
%167 = call i32 @pclose(%_IO_FILE* nonnull %166)
%168 = and i64 %rbx.1.reload, 4294967295
ret i64 %168
uselistorder i32 %sv_0.0.ph21.reload, { 7, 4, 3, 2, 1, 0, 5, 6 }
uselistorder i64 %144, { 2, 0, 1, 3, 4, 6, 5 }
uselistorder i8 %141, { 1, 0 }
uselistorder i8* %.reload142, { 2, 1, 0 }
uselistorder i8* %133, { 2, 1, 0, 3 }
uselistorder i8* %107, { 1, 0 }
uselistorder %_IO_FILE* %93, { 1, 0 }
uselistorder i64 %61, { 0, 2, 1 }
uselistorder i64 %43, { 1, 2, 0 }
uselistorder i8* %sv_1.0.reload, { 1, 2, 0, 3, 4, 5, 6 }
uselistorder i8* %5, { 1, 0, 2 }
uselistorder i8** %sv_6, { 11, 10, 9, 8, 7, 6, 5, 4, 12, 3, 2, 1, 0 }
uselistorder %_IO_FILE** %sv_4, { 5, 0, 4, 3, 2, 1 }
uselistorder i8** %sv_3, { 3, 1, 2, 0 }
uselistorder i32* %sv_2, { 1, 0, 2 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 7, 6, 3, 2, 5, 1, 0, 4 }
uselistorder i8** %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i8** %.reg2mem, { 0, 2, 1 }
uselistorder i8** %sv_1.1.reg2mem, { 0, 2, 3, 4, 1, 5 }
uselistorder i8** %.reg2mem139, { 0, 2, 3, 4, 1, 5 }
uselistorder i64* %rdx.3.reg2mem, { 0, 2, 3, 4, 1, 5 }
uselistorder i8** %.reg2mem141, { 0, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 1, 7, 2, 3, 4, 5, 6, 9, 8 }
uselistorder i64* %rbx.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_15, i64 0, i64 0), { 1, 0 }
uselistorder i32 (%_IO_FILE*)* @feof, { 1, 2, 0 }
uselistorder [12 x i8]* @gv_3, { 1, 0 }
uselistorder i32 (i32)* @close, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @log_error, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64)* @dracut_install, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @log_debug, { 3, 2, 1, 0 }
uselistorder i8 0, { 4, 5, 2, 6, 7, 1, 8, 0, 9, 10, 11, 3 }
uselistorder i8* (i8*, i8*)* @strstr, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_42, { 1, 0 }
uselistorder label LBL_41, { 0, 6, 1, 2, 3, 4, 5, 8, 7 }
uselistorder label LBL_20.lr.ph, { 1, 0 }
uselistorder label LBL_37, { 2, 1, 0 }
uselistorder label LBL_33, { 2, 0, 1 }
uselistorder label LBL_31, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_11, { 1, 2, 4, 0, 3 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | sysMapFD_6188 | sysMapFD | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
%0 = icmp eq i64* %arg2, null
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_1, i64 0, i64 0), i32 52, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%sext = mul i64 %arg1, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = and i64 %2, 4294967295
%4 = bitcast i32* %sv_0 to i64*
%5 = bitcast i32* %sv_1 to i64*
%6 = call i64 @FUNC(i64 %3, i64* nonnull %4, i64* nonnull %5)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_8
LBL_3:
%10 = load i32, i32* %sv_0, align 4
%11 = sext i32 %10 to i64
%12 = load i32, i32* %sv_1, align 4
%13 = trunc i64 %2 to i32
%14 = call i64* @mmap(i64* null, i32 %12, i32 1, i32 2, i32 %13, i32 %10)
%15 = icmp eq i64* %14, inttoptr (i64 -1 to i64*)
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = call i32* @__errno_location()
%18 = load i32, i32* %17, align 4
%19 = call i8* @strerror(i32 %18)
%20 = ptrtoint i8* %19 to i64
%21 = load i32, i32* %sv_0, align 4
%22 = zext i32 %21 to i64
%23 = load i32, i32* %sv_1, align 4
%24 = zext i32 %23 to i64
%25 = call i64 @FUNC(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_3, i64 0, i64 0), i64 %24, i64 %3, i64 %22, i64 %20, i64 %11)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%26 = ptrtoint i64* %arg2 to i64
%27 = ptrtoint i64* %14 to i64
store i64 %27, i64* %arg2, align 8
%28 = load i32, i32* %sv_1, align 4
%29 = sext i32 %28 to i64
%30 = add i64 %26, 8
%31 = inttoptr i64 %30 to i64*
store i64 %29, i64* %31, align 8
%32 = add i64 %26, 16
%33 = inttoptr i64 %32 to i32*
store i32 1, i32* %33, align 4
%34 = call i64* @malloc(i32 24)
%35 = ptrtoint i64* %34 to i64
%36 = add i64 %26, 24
%37 = inttoptr i64 %36 to i64*
store i64 %35, i64* %37, align 8
%38 = icmp eq i64* %34, null
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_7, label LBL_6
LBL_6:
%40 = call i32* @__errno_location()
%41 = load i32, i32* %40, align 4
%42 = call i8* @strerror(i32 %41)
%43 = ptrtoint i8* %42 to i64
%44 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_4, i64 0, i64 0), i64 %43, i64 %35, i64 2, i64 %3, i64 %11)
%45 = load i32, i32* %sv_1, align 4
%46 = call i32 @munmap(i64* %14, i32 %45)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
store i64 %27, i64* %34, align 8
%47 = load i64, i64* %37, align 8
%48 = load i32, i32* %sv_1, align 4
%49 = sext i32 %48 to i64
%50 = add i64 %47, 8
%51 = inttoptr i64 %50 to i64*
store i64 %49, i64* %51, align 8
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* %34, { 1, 0, 2 }
uselistorder i64* %14, { 0, 2, 1 }
uselistorder i64 %11, { 1, 0 }
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i32* %sv_1, { 4, 3, 2, 1, 0, 5 }
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i8* (i32)* @strerror, { 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i64 4294967295, { 2, 1, 0, 3 }
uselistorder i64* null, { 0, 2, 1 }
uselistorder i64* %arg2, { 0, 2, 1 }
uselistorder label LBL_8, { 1, 2, 3, 0 }
} | 0 |
BinRealVul | Con_Dump_f_19091 | Con_Dump_f | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge10.reg2mem = alloca i32
%storemerge28.reg2mem = alloca i32
%.reg2mem21 = alloca i64
%sv_0.011.reg2mem = alloca i32
%storemerge4.in.reg2mem = alloca i32
%storemerge5.lcssa.reg2mem = alloca i32
%storemerge512.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%6 = call i64 @FUNC()
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 2
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %4, i64 %5, i64 %2, i64 %1)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_18
LBL_2:
%10 = call i64 @FUNC(i64 1)
%11 = call i64 @FUNC(i64* nonnull %sv_1, i64 %10, i64 64)
%12 = call i64 @FUNC(i64* nonnull %sv_1, i64 64, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%13 = call i64 @FUNC(i64* nonnull %sv_1)
%14 = icmp eq i64 %13, 0
%15 = icmp eq i1 %14, false
%16 = ptrtoint i64* %sv_1 to i64
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_2, i64 0, i64 0), i64 %16, i64 ptrtoint ([5 x i8]* @gv_1 to i64), i64 %10, i64 %2, i64 %1)
store i64 %17, i64* %rax.0.reg2mem
br label LBL_18
LBL_4:
%18 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_3, i64 0, i64 0), i64 %16, i64 ptrtoint ([5 x i8]* @gv_1 to i64), i64 %10, i64 %2, i64 %1)
%19 = load i32, i32* @gv_4, align 4
%20 = load i32, i32* @gv_5, align 4
%21 = sub i32 %19, %20
%22 = zext i32 %19 to i64
%23 = load i64, i64* @gv_6, align 8
%24 = zext i32 %20 to i64
%25 = load i32, i32* @gv_7, align 4
%26 = icmp eq i32 %25, 0
%27 = zext i32 %25 to i64
store i32 %21, i32* %storemerge4.in.reg2mem
br label LBL_9
LBL_5:
%28 = ashr i32 %storemerge4, 31
%29 = zext i32 %storemerge4 to i64
%30 = zext i32 %28 to i64
%31 = mul i64 %30, 4294967296
%32 = or i64 %31, %29
%33 = srem i64 %32, %24
%34 = trunc i64 %33 to i32
%35 = mul i32 %25, %34
%36 = sext i32 %35 to i64
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge512.reg2mem
store i32 0, i32* %storemerge5.lcssa.reg2mem
br i1 %26, label LBL_8, label LBL_6
LBL_6:
%storemerge512.reload = load i32, i32* %storemerge512.reg2mem
%.reload = load i64, i64* %.reg2mem
%reass.add = add nsw i64 %.reload, %36
%reass.mul = mul i64 %reass.add, 2
%37 = add i64 %reass.mul, %23
%38 = inttoptr i64 %37 to i16*
%39 = load i16, i16* %38, align 2
%40 = urem i16 %39, 256
%41 = icmp eq i16 %40, 32
%42 = icmp eq i1 %41, false
store i32 %storemerge512.reload, i32* %storemerge5.lcssa.reg2mem
br i1 %42, label LBL_8, label LBL_7
LBL_7:
%43 = add i32 %storemerge512.reload, 1
%44 = sext i32 %43 to i64
%45 = icmp slt i64 %44, %27
store i64 %44, i64* %.reg2mem
store i32 %43, i32* %storemerge512.reg2mem
store i32 %43, i32* %storemerge5.lcssa.reg2mem
br i1 %45, label LBL_6, label LBL_8
LBL_8:
%storemerge5.lcssa.reload = load i32, i32* %storemerge5.lcssa.reg2mem
%46 = icmp eq i32 %storemerge5.lcssa.reload, %25
%47 = icmp eq i1 %46, false
store i32 %storemerge4, i32* %storemerge4.in.reg2mem
br i1 %47, label LBL_10, label LBL_9
LBL_9:
%storemerge4.in.reload = load i32, i32* %storemerge4.in.reg2mem
%storemerge4 = add i32 %storemerge4.in.reload, 1
%48 = sext i32 %storemerge4 to i64
%49 = icmp sgt i64 %48, %22
br i1 %49, label LBL_10, label LBL_5
LBL_10:
%50 = call i64 @FUNC(i64 zext (i32 ptrtoint (i32* @gv_8 to i32) to i64))
%51 = inttoptr i64 %50 to i8*
%52 = add i64 %50, ptrtoint (i8** @gv_9 to i64)
%53 = inttoptr i64 %52 to i8*
store i8 0, i8* %53, align 1
%54 = load i32, i32* @gv_4, align 4
%55 = zext i32 %54 to i64
%56 = icmp sgt i64 %48, %55
store i32 %storemerge4, i32* %sv_0.011.reg2mem
br i1 %56, label LBL_17, label LBL_11
LBL_11:
%sv_0.011.reload = load i32, i32* %sv_0.011.reg2mem
%57 = load i64, i64* @gv_6, align 8
%58 = load i32, i32* @gv_5, align 4
%59 = ashr i32 %sv_0.011.reload, 31
%60 = zext i32 %sv_0.011.reload to i64
%61 = zext i32 %59 to i64
%62 = mul i64 %61, 4294967296
%63 = or i64 %62, %60
%64 = zext i32 %58 to i64
%65 = srem i64 %63, %64
%66 = load i32, i32* @gv_7, align 4
%67 = trunc i64 %65 to i32
%68 = mul i32 %66, %67
%69 = sext i32 %68 to i64
%70 = icmp eq i32 %66, 0
store i64 0, i64* %.reg2mem21
store i32 0, i32* %storemerge28.reg2mem
br i1 %70, label LBL_16, label LBL_12
LBL_12:
%storemerge28.reload = load i32, i32* %storemerge28.reg2mem
%.reload22 = load i64, i64* %.reg2mem21
%reass.add6 = add nsw i64 %.reload22, %69
%reass.mul7 = mul i64 %reass.add6, 2
%71 = add i64 %reass.mul7, %57
%72 = inttoptr i64 %71 to i16*
%73 = load i16, i16* %72, align 2
%74 = add i64 %.reload22, %50
%75 = trunc i16 %73 to i8
%76 = inttoptr i64 %74 to i8*
store i8 %75, i8* %76, align 1
%77 = add i32 %storemerge28.reload, 1
%78 = load i32, i32* @gv_7, align 4
%79 = zext i32 %78 to i64
%80 = sext i32 %77 to i64
%81 = icmp slt i64 %80, %79
store i64 %80, i64* %.reg2mem21
store i32 %77, i32* %storemerge28.reg2mem
br i1 %81, label LBL_12, label LBL_13
LBL_13:
%storemerge9 = add i32 %78, -1
%82 = icmp slt i32 %storemerge9, 0
%83 = icmp eq i1 %82, false
store i32 %storemerge9, i32* %storemerge10.reg2mem
br i1 %83, label LBL_14, label LBL_16
LBL_14:
%storemerge10.reload = load i32, i32* %storemerge10.reg2mem
%84 = sext i32 %storemerge10.reload to i64
%85 = add i64 %50, %84
%86 = inttoptr i64 %85 to i8*
%87 = load i8, i8* %86, align 1
%88 = icmp eq i8 %87, 32
%89 = icmp eq i1 %88, false
br i1 %89, label LBL_16, label LBL_15
LBL_15:
store i8 0, i8* %86, align 1
%storemerge = add i32 %storemerge10.reload, -1
%90 = icmp slt i32 %storemerge, 0
%91 = icmp eq i1 %90, false
store i32 %storemerge, i32* %storemerge10.reg2mem
br i1 %91, label LBL_14, label LBL_16
LBL_16:
%92 = call i64 @FUNC(i64 %50, i64 sext (i32 ptrtoint (i32* @gv_8 to i32) to i64), i64 4202607)
%93 = call i32 @strlen(i8* %51)
%94 = sext i32 %93 to i64
%95 = call i64 @FUNC(i64 %50, i64 %94, i64 %13)
%96 = add i32 %sv_0.011.reload, 1
%97 = load i32, i32* @gv_4, align 4
%98 = zext i32 %97 to i64
%99 = sext i32 %96 to i64
%100 = icmp sgt i64 %99, %98
store i32 %96, i32* %sv_0.011.reg2mem
br i1 %100, label LBL_17, label LBL_11
LBL_17:
%101 = call i64 @FUNC(i64 %50)
%102 = call i64 @FUNC(i64 %13)
store i64 %102, i64* %rax.0.reg2mem
br label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %storemerge10.reload, { 1, 0 }
uselistorder i64 %.reload22, { 1, 0 }
uselistorder i64 %50, { 2, 3, 4, 0, 1, 6, 5 }
uselistorder i32 %storemerge4, { 0, 4, 2, 3, 1 }
uselistorder i32 %storemerge512.reload, { 1, 0 }
uselistorder i32 %25, { 1, 0, 2, 3 }
uselistorder i64 %16, { 1, 0 }
uselistorder i64 %13, { 1, 0, 2 }
uselistorder i64* %sv_1, { 3, 0, 1, 2 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge512.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge5.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %sv_0.011.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem21, { 2, 0, 1 }
uselistorder i32* %storemerge28.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge10.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i32 (i8*)* @strlen, { 3, 2, 1, 0 }
uselistorder i32 -1, { 1, 0, 2 }
uselistorder i1 false, { 2, 1, 0, 3, 4, 5 }
uselistorder [5 x i8]* @gv_1, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @Com_Printf, { 2, 1, 0 }
uselistorder label LBL_16, { 0, 1, 3, 2 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | __net_random_once_deferred_6569 | __net_random_once_deferred | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = zext i1 %2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %3)
%6 = call i64 @FUNC(i64 %arg1)
ret i64 %6
uselistorder i64 %3, { 1, 0 }
} | 0 |
BinRealVul | openfile_1634 | openfile | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%3 = call i32 @fwrite(i64* bitcast ([37 x i8]* @gv_2 to i64*), i32 1, i32 36, %_IO_FILE* %2)
%4 = call i64 @FUNC(i64 %arg4)
store i64 1, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%sext = mul i64 %arg2, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = trunc i64 %arg3 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_5, label LBL_3
LBL_3:
%8 = and i64 %5, 4294967294
%9 = or i64 %8, 1
%10 = call i64 @FUNC(i64* nonnull @gv_0, i64 %arg1, i64 0, i64 %arg4, i64 %9, i64 0)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_7, label LBL_4
LBL_4:
%13 = call i64 @FUNC(i64 0)
%14 = load [8 x i8]*, [8 x i8]** @gv_3, align 8
%15 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%16 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%17 = inttoptr i64 %arg1 to i8*
%18 = inttoptr i64 %13 to i8*
%19 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %15, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_4, i64 0, i64 0), i8* %16, i8* %17, i8* %18)
%20 = call i64 @FUNC(i64 0)
store i64 1, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%21 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0), i64 4198837)
store i64 %21, i64* @gv_0, align 8
%22 = and i64 %5, 4294967295
%23 = call i64 @FUNC(i64* nonnull @gv_0, i64 %arg1, i64 0, i64 %arg4, i64 %22, i64 0)
%24 = trunc i64 %23 to i32
%25 = icmp slt i32 %24, 0
%26 = icmp eq i1 %25, false
store i64 0, i64* %rax.0.reg2mem
br i1 %26, label LBL_7, label LBL_6
LBL_6:
%27 = call i64 @FUNC(i64 0)
%28 = load [8 x i8]*, [8 x i8]** @gv_3, align 8
%29 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%30 = getelementptr inbounds [8 x i8], [8 x i8]* %28, i64 0, i64 0
%31 = inttoptr i64 %arg1 to i8*
%32 = inttoptr i64 %27 to i8*
%33 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %29, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_4, i64 0, i64 0), i8* %30, i8* %31, i8* %32)
%34 = call i64 @FUNC(i64 0)
%35 = load i64, i64* @gv_0, align 8
%36 = call i64 @FUNC(i64 %35)
store i64 0, i64* @gv_0, align 8
store i64 1, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %5, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 2, 4, 1, 3 }
uselistorder i64 (i64)* @error_free, { 1, 0 }
uselistorder i64 (i64)* @error_get_pretty, { 1, 0 }
uselistorder i64 (i64*, i64, i64, i64, i64, i64)* @bdrv_open, { 1, 0 }
uselistorder i64* @gv_0, { 2, 3, 0, 4, 1, 5 }
uselistorder i64 %arg4, { 2, 1, 0 }
uselistorder i64 %arg1, { 2, 3, 0, 1 }
uselistorder label LBL_7, { 2, 1, 3, 0, 4 }
} | 0 |
BinRealVul | pty_chr_write_14955 | pty_chr_write | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %2)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%7 = ptrtoint i64* %arg2 to i64
%8 = add i64 %2, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = trunc i64 %arg3 to i32
%12 = zext i32 %10 to i64
%13 = call i64 @FUNC(i64 %12, i64 %7, i32 %11)
store i64 %13, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | fslib_copy_libs_11598 | fslib_copy_libs | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_1, i64 0, i64 0), i32 43, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%2 = load i32, i32* @gv_3, align 4
%3 = load i32, i32* @gv_4, align 4
%4 = or i32 %3, %2
%5 = icmp eq i32 %4, 0
%.pre = inttoptr i64 %arg1 to i8*
br i1 %5, label LBL_4, label LBL_3
LBL_3:
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_5, i64 0, i64 0), i8* %.pre)
br label LBL_4
LBL_4:
%7 = call i32 @access(i8* %.pre, i32 4)
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_7, label LBL_5
LBL_5:
%9 = load i32, i32* @gv_3, align 4
%10 = load i32, i32* @gv_4, align 4
%11 = or i32 %10, %9
%12 = icmp eq i32 %11, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_18, label LBL_6
LBL_6:
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_6, i64 0, i64 0), i8* %.pre)
%14 = sext i32 %13 to i64
store i64 %14, i64* %rax.0.reg2mem
br label LBL_18
LBL_7:
%15 = call i32 @unlink(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_7, i64 0, i64 0))
%16 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_7, i64 0, i64 0), i64 420)
%17 = call i32 @getgid()
%18 = call i32 @getuid()
%19 = call i32 @chown(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_7, i64 0, i64 0), i32 %18, i32 %17)
%20 = icmp eq i32 %19, 0
br i1 %20, label LBL_9, label LBL_8
LBL_8:
%21 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_8, i64 0, i64 0))
unreachable
LBL_9:
%22 = load i32, i32* @gv_3, align 4
%23 = load i32, i32* @gv_4, align 4
%24 = or i32 %23, %22
%25 = icmp eq i32 %24, 0
br i1 %25, label LBL_11, label LBL_10
LBL_10:
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_9, i64 0, i64 0), i8* %.pre)
br label LBL_11
LBL_11:
%27 = call i64 @FUNC(i64 7, i64 3, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_10, i64 0, i64 0), i64 %arg1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_7, i64 0, i64 0))
%28 = call %_IO_FILE* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_11, i64 0, i64 0))
%29 = icmp eq %_IO_FILE* %28, null
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_12, label LBL_13
LBL_12:
%31 = bitcast i64* %sv_0 to i8*
%32 = call i8* @fgets(i8* nonnull %31, i32 1024, %_IO_FILE* %28)
%33 = icmp eq i8* %32, null
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_14, label LBL_17
LBL_13:
%35 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_12, i64 0, i64 0))
unreachable
LBL_14:
%36 = call i8* @strchr(i8* nonnull %31, i32 10)
%37 = icmp eq i8* %36, null
br i1 %37, label LBL_16, label LBL_15
LBL_15:
store i8 0, i8* %36, align 1
br label LBL_16
LBL_16:
%38 = call i64 @FUNC(i64* nonnull %sv_0)
%39 = call i8* @fgets(i8* nonnull %31, i32 1024, %_IO_FILE* %28)
%40 = icmp eq i8* %39, null
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_14, label LBL_17
LBL_17:
%42 = call i32 @fclose(%_IO_FILE* %28)
%43 = sext i32 %42 to i64
store i64 %43, i64* %rax.0.reg2mem
br label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %31, { 2, 1, 0 }
uselistorder %_IO_FILE* %28, { 1, 2, 0, 3 }
uselistorder i8* %.pre, { 1, 0, 2, 3 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 (%_IO_FILE*)* @fclose, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i8* null, { 2, 1, 0 }
uselistorder i8* (i8*, i32, %_IO_FILE*)* @fgets, { 1, 0 }
uselistorder i32 1024, { 1, 0 }
uselistorder %_IO_FILE* (i8*, i8*)* @fopen, { 1, 0 }
uselistorder i64 (i8*)* @errExit, { 2, 1, 0 }
uselistorder i32 (i8*, ...)* @printf, { 2, 1, 0 }
uselistorder i32* @gv_4, { 1, 0, 2 }
uselistorder i32 0, { 1, 5, 0, 6, 2, 3, 4 }
uselistorder i32* @gv_3, { 2, 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3, 4 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_18, { 1, 2, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | do_memory_save_14869 | do_memory_save | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i32
%sv_1.04.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_2 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%2 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0))
%3 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0))
%4 = call i64 @FUNC()
%5 = icmp eq i64 %4, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_7, label LBL_1
LBL_1:
%6 = inttoptr i64 %2 to i8*
%7 = call %_IO_FILE* @fopen(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_3, i64 0, i64 0))
%8 = icmp eq %_IO_FILE* %7, null
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_4
LBL_2:
%10 = trunc i64 %1 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_3, label LBL_6
LBL_3:
%13 = and i64 %3, 4294967295
store i64 %13, i64* %sv_1.04.reg2mem
store i32 %10, i32* %sv_0.03.reg2mem
br label LBL_5
LBL_4:
%14 = ptrtoint i64* %arg1 to i64
%15 = call i64 @FUNC(i64 %14, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0), i64 %2)
store i64 %15, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%sv_1.04.reload = load i64, i64* %sv_1.04.reg2mem
%16 = icmp ult i32 %sv_0.03.reload, 1024
%spec.select = select i1 %16, i32 %sv_0.03.reload, i32 1024
%17 = call i64 @FUNC(i64 %4, i64 %sv_1.04.reload, i64* nonnull %sv_2, i32 %spec.select, i64 0)
%18 = call i32 @fwrite(i64* nonnull %sv_2, i32 1, i32 %spec.select, %_IO_FILE* %7)
%19 = zext i32 %spec.select to i64
%20 = add i64 %sv_1.04.reload, %19
%21 = sub i32 %sv_0.03.reload, %spec.select
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
store i64 %20, i64* %sv_1.04.reg2mem
store i32 %21, i32* %sv_0.03.reg2mem
br i1 %23, label LBL_5, label LBL_6
LBL_6:
%24 = call i32 @fclose(%_IO_FILE* %7)
%25 = sext i32 %24 to i64
store i64 %25, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %spec.select, { 3, 0, 1, 2 }
uselistorder i64 %sv_1.04.reload, { 1, 0 }
uselistorder i32 %sv_0.03.reload, { 2, 0, 1 }
uselistorder i64* %sv_1.04.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i64 (i64, i8*)* @qdict_get_int, { 1, 0 }
uselistorder label LBL_7, { 1, 2, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | xen_platform_initfn_2972 | xen_platform_initfn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC()
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 %0, i64* %rdi.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_1, i64 0, i64 0), i32 53, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([14 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%5 = add i64 %rdi.0.reload, 4
%6 = call i64 @FUNC(i64 %5, i64 3)
%7 = call i64 @FUNC(i64 %rdi.0.reload, i64 0)
%8 = add i64 %rdi.0.reload, 3
%9 = inttoptr i64 %8 to i8*
store i8 1, i8* %9, align 1
%10 = call i64 @FUNC(i64 %0)
%11 = call i64 @FUNC(i64 %0, i64 0, i64 1, i64 %0)
%12 = call i64 @FUNC(i64 %0)
%13 = add i64 %0, 4
%14 = call i64 @FUNC(i64 %0, i64 1, i64 2, i64 %13)
%15 = call i64 @FUNC(i64 %0)
ret i64 0
uselistorder i64 %0, { 1, 3, 7, 6, 5, 2, 4, 0 }
uselistorder i64 (i64, i64, i64, i64)* @pci_register_bar, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i64 3, { 1, 0 }
uselistorder [14 x i8]* @gv_0, { 1, 0 }
} | 0 |
BinRealVul | sysbus_ahci_class_init_14511 | sysbus_ahci_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 ptrtoint (i64* @gv_0 to i64), i64* %2, align 8
%3 = load i64, i64* @gv_1, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
store i64 %3, i64* %5, align 8
%6 = add i64 %0, 24
%7 = inttoptr i64 %6 to i64*
store i64 4198669, i64* %7, align 8
%8 = add i64 %0, 32
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 0, i64 %10)
ret i64 %11
} | 1 |
BinRealVul | nfs_inode_return_delegation_noreclaim_17823 | nfs_inode_return_delegation_noreclaim | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %1, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %0, i64 %1, i64 0)
store i64 %3, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 1 |
BinRealVul | i915_gem_create_4392 | i915_gem_create | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
%0 = and i64 %arg3, 4294967295
%1 = call i64 @FUNC(i64 %0, i64 4096)
%2 = and i64 %1, 4294967295
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_5
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = call i64 @FUNC(i64 %5, i64 %2)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_5
LBL_2:
%9 = ptrtoint i64* %arg1 to i64
%10 = bitcast i32* %sv_0 to i64*
%11 = call i64 @FUNC(i64 %9, i64 %6, i64* nonnull %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %6)
%15 = inttoptr i64 %6 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %6, i64 %16)
%18 = call i64 @FUNC(i64 %6)
%19 = and i64 %11, 4294967295
store i64 %19, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%20 = call i64 @FUNC(i64 %6)
%21 = call i64 @FUNC(i64 %6)
%22 = load i32, i32* %sv_0, align 4
%23 = bitcast i64* %arg4 to i32*
store i32 %22, i32* %23, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %6, { 2, 1, 3, 0, 4, 5, 6, 7 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder label LBL_5, { 2, 3, 0, 1 }
} | 0 |
BinRealVul | OALMarshal_UncompressValue_12715 | OALMarshal_UncompressValue | define i64 @FUNC(i64 %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.lcssa.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.010.reg2mem = alloca i32
%storemerge11.reg2mem = alloca i32
%sv_1.015.reg2mem = alloca i8
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%sext = mul i64 %arg1, 72057594037927936
%2 = ashr exact i64 %sext, 56
%3 = trunc i64 %1 to i8
%4 = udiv i8 %3, 64
switch i8 %4, label LBL_1 [
i8 2, label LBL_2
i8 3, label LBL_3
]
LBL_1:
%5 = urem i8 %3, -128
%6 = zext i8 %5 to i32
store i32 1, i32* %sv_0.0.lcssa.reg2mem
store i32 %6, i32* %storemerge.lcssa.reg2mem
br label LBL_7
LBL_2:
%7 = trunc i64 %2 to i8
%8 = icmp ult i8 %7, 3
%. = select i1 %8, i8 127, i8 63
%9 = and i8 %., %3
%10 = zext i8 %9 to i32
store i32 %10, i32* %.reg2mem
store i8 2, i8* %sv_1.015.reg2mem
br label LBL_4
LBL_3:
%11 = trunc i64 %2 to i8
%12 = icmp ult i8 %11, 3
%.9 = select i1 %12, i8 127, i8 63
%13 = and i8 %.9, %3
%14 = zext i8 %13 to i32
%15 = icmp ugt i8 %11, 1
store i32 %14, i32* %.reg2mem
store i8 %11, i8* %sv_1.015.reg2mem
store i32 1, i32* %sv_0.0.lcssa.reg2mem
store i32 %14, i32* %storemerge.lcssa.reg2mem
br i1 %15, label LBL_4, label LBL_7
LBL_4:
%sv_1.015.reload = load i8, i8* %sv_1.015.reg2mem
%.reload = load i32, i32* %.reg2mem
%16 = ptrtoint i32* %arg3 to i64
store i32 %.reload, i32* %storemerge11.reg2mem
store i32 1, i32* %sv_0.010.reg2mem
br label LBL_5
LBL_5:
%sv_0.010.reload = load i32, i32* %sv_0.010.reg2mem
%storemerge11.reload = load i32, i32* %storemerge11.reg2mem
%17 = mul i32 %storemerge11.reload, 256
%18 = mul i32 %sv_0.010.reload, 16777216
%sext7 = add i32 %18, 16777216
%19 = ashr exact i32 %sext7, 24
%20 = urem i32 %sv_0.010.reload, 256
%21 = zext i32 %20 to i64
%22 = add i64 %21, %16
%23 = inttoptr i64 %22 to i8*
%24 = load i8, i8* %23, align 1
%25 = zext i8 %24 to i32
%26 = or i32 %17, %25
%27 = trunc i32 %19 to i8
%28 = icmp ugt i8 %sv_1.015.reload, %27
store i32 %26, i32* %storemerge11.reg2mem
store i32 %19, i32* %sv_0.010.reg2mem
br i1 %28, label LBL_5, label LBL_6
LBL_6:
%phitmp13 = urem i32 %19, 256
store i32 %phitmp13, i32* %sv_0.0.lcssa.reg2mem
store i32 %26, i32* %storemerge.lcssa.reg2mem
br label LBL_7
LBL_7:
%storemerge.lcssa.reload = load i32, i32* %storemerge.lcssa.reg2mem
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%29 = bitcast i64* %arg2 to i32*
store i32 %sv_0.0.lcssa.reload, i32* %29, align 4
%30 = zext i32 %storemerge.lcssa.reload to i64
ret i64 %30
uselistorder i32 %19, { 1, 0, 2 }
uselistorder i8 %3, { 3, 2, 0, 1 }
uselistorder i32* %storemerge11.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.010.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.lcssa.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %storemerge.lcssa.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 16777216, { 1, 0 }
uselistorder i32 256, { 1, 2, 0 }
uselistorder i8 3, { 2, 1, 0 }
uselistorder label LBL_7, { 1, 2, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | bmp_validate_11211 | bmp_validate | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i8
%storemerge.in.reg2mem = alloca i32
%1 = ptrtoint i64* %arg1 to i64
%2 = load i8, i8* %0
%sv_0 = alloca i8, align 1
%sv_1 = alloca i64, align 8
%3 = bitcast i8* %sv_0 to i64*
%4 = call i64 @FUNC(i64 %1, i64* nonnull %3, i64 2)
%5 = trunc i64 %4 to i32
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_1, label LBL_6
LBL_1:
%8 = ptrtoint i64* %sv_1 to i64
%9 = add i64 %8, -10
store i32 %5, i32* %storemerge.in.reg2mem
br label LBL_3
LBL_2:
%10 = sext i32 %storemerge to i64
%11 = add i64 %9, %10
%12 = inttoptr i64 %11 to i8*
%13 = load i8, i8* %12, align 1
%14 = zext i8 %13 to i64
%15 = call i64 @FUNC(i64 %1, i64 %14)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, -1
%18 = icmp eq i1 %17, false
store i32 %storemerge, i32* %storemerge.in.reg2mem
br i1 %18, label LBL_3, label LBL_6
LBL_3:
%storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem
%storemerge = add i32 %storemerge.in.reload, -1
%19 = icmp slt i32 %storemerge, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_2, label LBL_4
LBL_4:
%21 = icmp sgt i32 %5, 1
br i1 %21, label LBL_5, label LBL_6
LBL_5:
%22 = load i8, i8* %sv_0, align 1
%23 = icmp eq i8 %22, 66
%24 = icmp eq i8 %2, 77
%25 = icmp eq i1 %24, %23
%spec.select = select i1 %25, i64 0, i64 4294967295
ret i64 %spec.select
LBL_6:
ret i64 4294967295
uselistorder i32 %storemerge, { 2, 1, 0 }
uselistorder i32 %5, { 1, 0, 2 }
uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder label LBL_6, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | tas2552_sw_shutdown_5366 | tas2552_sw_shutdown | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
store i64 %0, i64* %rax.0.reg2mem
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = trunc i64 %arg2 to i32
%3 = icmp eq i32 %2, 0
%. = zext i1 %3 to i64
%4 = call i64 @FUNC(i64 %0, i64 2, i64 1, i64 %.)
store i64 %4, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | tb_target_set_jmp_target_5081 | tb_target_set_jmp_target | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = sub i64 %arg3, %arg1
%1 = add i64 %0, 32768
%2 = icmp ult i64 %1, 65536
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = sub i64 67108860, %arg2
%5 = add i64 %4, %arg3
%6 = mul i64 %0, 1024
%7 = or i64 %6, 19
%8 = and i64 %5, 67108860
%9 = or i64 %8, 3758096384
store i64 %7, i64* %sv_0.0.reg2mem
store i64 %9, i64* %storemerge.reg2mem
br label LBL_5
LBL_2:
%sext = mul i64 %0, 281474976710656
%10 = ashr exact i64 %sext, 48
%11 = sub i64 %0, %10
%sext3 = mul i64 %11, 4294967296
%12 = ashr exact i64 %sext3, 32
%13 = add nsw i64 %12, %10
%sext4 = mul i64 %0, 4294967296
%14 = ashr exact i64 %sext4, 32
%15 = icmp eq i64 %13, %14
br i1 %15, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @gv_1, i64 0, i64 0), i32 31, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
%16 = ashr i64 %sext3, 48
%17 = mul i64 %16, 1024
%18 = or i64 %17, 27
%19 = ashr exact i64 %sext, 38
%20 = or i64 %19, 19
store i64 %18, i64* %sv_0.0.reg2mem
store i64 %20, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%21 = mul i64 %storemerge.reload, 4294967296
%22 = and i64 %sv_0.0.reload, 4294967295
%23 = or i64 %21, %22
%24 = inttoptr i64 %arg2 to i64*
store i64 %23, i64* %24, align 8
ret i64 %arg2
uselistorder i64 %sext3, { 1, 0 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %0, { 0, 3, 1, 2, 4 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 19, { 1, 0 }
uselistorder i64 67108860, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg2, { 1, 2, 0 }
} | 0 |
BinRealVul | add_route_tree_18262 | add_route_tree | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge12.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 16
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = zext i32 %5 to i64
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = and i64 %1, 4294967295
%11 = inttoptr i64 %9 to i8*
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %10, i8* %11, i64 %6)
%13 = load i32, i32* %4, align 4
%14 = icmp eq i32 %13, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %14, label LBL_5, label LBL_1
LBL_1:
%15 = ptrtoint i64* %arg2 to i64
%16 = add i64 %2, 24
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = zext i32 %13 to i64
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge12.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
%20 = mul i64 %.reload, 8
%21 = add i64 %20, %18
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_4, label LBL_3
LBL_3:
store i64 %15, i64* %22, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%26 = add i32 %storemerge12.reload, 1
%27 = sext i32 %26 to i64
%28 = icmp slt i64 %27, %19
store i64 %27, i64* %.reg2mem
store i32 %26, i32* %storemerge12.reg2mem
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %28, label LBL_2, label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge12.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 }
uselistorder label LBL_5, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | spr_write_hdecr_14454 | spr_write_hdecr | 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
%sext = mul i64 %arg3, 4294967296
%2 = urem i64 %1, 2
%3 = icmp eq i64 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC()
%6 = ashr exact i64 %sext, 30
%7 = add i64 %6, ptrtoint (i32** @gv_0 to i64)
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = load i64, i64* @gv_1, align 8
%11 = zext i32 %9 to i64
%12 = call i64 @FUNC(i64 %10, i64 %11)
%13 = call i64 @FUNC()
%14 = call i64 @FUNC(i64 %4)
store i64 %14, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%15 = ashr exact i64 %sext, 30
%16 = add i64 %15, ptrtoint (i32** @gv_0 to i64)
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = load i64, i64* @gv_1, align 8
%20 = zext i32 %18 to i64
%21 = call i64 @FUNC(i64 %19, i64 %20)
store i64 0, 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 %sext, { 1, 0 }
} | 1 |
BinRealVul | jswrap_ble_BluetoothDevice_sendPasskey_6326 | jswrap_ble_BluetoothDevice_sendPasskey | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%1 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 7)
%2 = call i64 @FUNC(i64 %0, i64 0, i64* nonnull %sv_0, i64 7)
%3 = call i64 @FUNC(i64* nonnull %sv_0)
%4 = and i64 %3, 4294967295
%5 = call i64 @FUNC(i64 %4)
ret i64 %5
} | 0 |
BinRealVul | vmx_hwapic_irr_update_10356 | vmx_hwapic_irr_update | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = call i64 @FUNC(i64 %0)
%3 = and i64 %2, 4294967295
%4 = xor i64 %3, 1
%5 = trunc i64 %4 to i8
%6 = icmp eq i8 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = and i64 %1, 4294967295
%8 = call i64 @FUNC(i64 %7)
store i64 %8, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%9 = trunc i64 %1 to i32
%10 = icmp eq i32 %9, -1
store i64 %4, i64* %rax.0.reg2mem
br i1 %10, label LBL_7, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 %0)
%12 = trunc i64 %11 to i8
%13 = icmp eq i8 %12, 0
%14 = icmp eq i1 %13, false
store i64 %11, i64* %rax.0.reg2mem
br i1 %14, label LBL_7, label LBL_4
LBL_4:
%15 = call i64 @FUNC(i64 %0)
%16 = and i64 %15, 4294967295
%17 = xor i64 %16, 1
%18 = trunc i64 %17 to i8
%19 = icmp eq i8 %18, 0
store i64 %17, i64* %rax.0.reg2mem
br i1 %19, label LBL_7, label LBL_5
LBL_5:
%20 = call i64 @FUNC(i64 %0)
%21 = trunc i64 %20 to i8
%22 = icmp eq i8 %21, 0
store i64 %20, i64* %rax.0.reg2mem
br i1 %22, label LBL_7, label LBL_6
LBL_6:
%23 = and i64 %1, 4294967295
%24 = call i64 @FUNC(i64 %0, i64 %23, i64 0)
%25 = call i64 @FUNC(i64 %0)
store i64 %25, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 5, 6, 1 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder label LBL_7, { 2, 3, 4, 0, 1, 5 }
} | 0 |
BinRealVul | rtl_set_rx_max_size_13079 | rtl_set_rx_max_size | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 4660, i64 16383)
ret i64 %0
} | 1 |
BinRealVul | drm_load_edid_firmware_11259 | drm_load_edid_firmware | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i8*
%1 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%2 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0), i64 0)
store i64 %2, i64* %sv_1, align 8
%3 = bitcast i64* %sv_1 to i8**
%4 = bitcast i64* %arg1 to i8*
br label LBL_3
LBL_1:
%5 = ptrtoint i8* %12 to i64
%6 = sub i64 %1, %5
%7 = trunc i64 %6 to i32
%8 = call i32 @strncmp(i8* %4, i8* %12, i32 %7)
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_2, label LBL_3
LBL_2:
%10 = add i64 %1, 1
%11 = inttoptr i64 %10 to i8*
store i8* %11, i8** %sv_0.0.reg2mem
br label LBL_4
LBL_3:
%12 = call i8* @strsep(i8** nonnull %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0))
%13 = icmp eq i8* %12, null
%14 = icmp eq i1 %13, false
store i8* %12, i8** %sv_0.0.reg2mem
br i1 %14, label LBL_1, label LBL_4
LBL_4:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%15 = load i8, i8* %sv_0.0.reload, align 1
%16 = zext i8 %15 to i64
%17 = icmp eq i8 %15, 0
%18 = ptrtoint i8* %sv_0.0.reload to i64
%spec.select = select i1 %17, i64 %16, i64 %18
ret i64 %spec.select
uselistorder i8* %sv_0.0.reload, { 1, 0 }
uselistorder i8* %12, { 0, 3, 1, 2 }
} | 1 |
BinRealVul | php_stream_temp_close_6403 | php_stream_temp_close | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge24.reg2mem = alloca i64
%storemerge23.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
%2 = icmp eq i1 %1, false
store i64 %0, i64* %rdi.0.reg2mem
br i1 %2, 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 ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i32 40, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([11 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
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 = trunc i64 %arg2 to i32
%8 = icmp eq i32 %7, 0
%. = select i1 %8, i64 3, i64 1
%9 = call i64 @FUNC(i64 %5, i64 %.)
%phitmp = and i64 %9, 4294967295
store i64 %phitmp, i64* %storemerge23.reg2mem
br label LBL_5
LBL_4:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%10 = icmp eq i64 %rdi.0.reload, 0
store i64 0, i64* %storemerge23.reg2mem
store i64 0, i64* %storemerge24.reg2mem
br i1 %10, label LBL_6, label LBL_5
LBL_5:
%storemerge23.reload = load i64, i64* %storemerge23.reg2mem
%11 = call i64 @FUNC(i64 %0)
store i64 %storemerge23.reload, i64* %storemerge24.reg2mem
br label LBL_6
LBL_6:
%storemerge24.reload = load i64, i64* %storemerge24.reg2mem
%12 = call i64 @FUNC(i64 %0)
ret i64 %storemerge24.reload
uselistorder i64 %0, { 2, 1, 3, 0 }
uselistorder i64* %storemerge24.reg2mem, { 0, 2, 1 }
uselistorder [11 x i8]* @gv_0, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | pi_next_rpcl_7772 | pi_next_rpcl | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge10.reg2mem = alloca i64
%.reg2mem57 = alloca i32
%.reg2mem55 = alloca i32
%.reg2mem53 = alloca i32
%.pre-phi27.reg2mem = alloca i64
%.reg2mem51 = alloca i32
%.pre-phi35.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%.reg2mem49 = alloca i32
%.pre-phi33.reg2mem = alloca i64
%.reg2mem47 = alloca i32
%.reg2mem45 = alloca i32
%storemerge13.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i64
%storemerge1225.reg2mem = alloca i32
%.reg2mem43 = alloca i32
%.reg2mem41 = alloca i64
%storemerge1126.reg2mem = alloca i32
%.reg2mem39 = 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_35_crit_edge, label LBL_2
LBL_1:
%.pre32 = add i64 %2, 32
%.phi.trans.insert = inttoptr i64 %.pre32 to i32*
%.pre38 = load i32, i32* %.phi.trans.insert, align 4
store i32 %.pre38, i32* %.reg2mem47
store i64 %.pre32, i64* %.pre-phi33.reg2mem
br label LBL_35
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, 88
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_13, label LBL_3
LBL_3:
%14 = add i64 %2, 80
%15 = inttoptr i64 %14 to i64*
store i32 %12, i32* %.reg2mem
store i64 0, i64* %.reg2mem39
store i32 0, i32* %storemerge1126.reg2mem
br label LBL_4
LBL_4:
%storemerge1126.reload = load i32, i32* %storemerge1126.reg2mem
%.reload40 = load i64, i64* %.reg2mem39
%.reload = load i32, i32* %.reg2mem
%16 = load i64, i64* %15, align 8
%17 = mul nsw i64 %.reload40, 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* %.reg2mem45
br i1 %22, label LBL_12, 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* %.reg2mem41
store i32 %21, i32* %.reg2mem43
store i32 0, i32* %storemerge1225.reg2mem
br label LBL_6
LBL_6:
%storemerge1225.reload = load i32, i32* %storemerge1225.reg2mem
%.reload44 = load i32, i32* %.reg2mem43
%.reload42 = load i64, i64* %.reg2mem41
%28 = load i64, i64* %25, align 8
%29 = mul i64 %.reload42, 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 %storemerge1225.reload, 31
%35 = add i32 %34, %.reload44
%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
%45 = zext i32 %38 to i64
store i64 %45, i64* %storemerge14.reg2mem
br i1 %44, label LBL_8, label LBL_7
LBL_7:
%46 = zext i32 %43 to i64
%47 = call i64 @FUNC(i64 %46, i64 %45)
store i64 %47, i64* %storemerge14.reg2mem
br label LBL_8
LBL_8:
%48 = add i32 %42, %35
%49 = urem i32 %48, 32
%50 = shl i32 %39, %49
%storemerge14.reload = load i64, i64* %storemerge14.reg2mem
%51 = trunc i64 %storemerge14.reload to i32
store i32 %51, i32* %7, align 4
%52 = load i32, i32* %9, align 4
%53 = icmp eq i32 %52, 0
%54 = zext i32 %50 to i64
store i64 %54, i64* %storemerge13.reg2mem
br i1 %53, label LBL_10, label LBL_9
LBL_9:
%55 = zext i32 %52 to i64
%56 = call i64 @FUNC(i64 %55, i64 %54)
store i64 %56, i64* %storemerge13.reg2mem
br label LBL_10
LBL_10:
%storemerge13.reload = load i64, i64* %storemerge13.reg2mem
%57 = trunc i64 %storemerge13.reload to i32
store i32 %57, i32* %9, align 4
%58 = add i32 %storemerge1225.reload, 1
%59 = load i32, i32* %20, align 4
%60 = zext i32 %59 to i64
%61 = sext i32 %58 to i64
%62 = icmp slt i64 %61, %60
store i64 %61, i64* %.reg2mem41
store i32 %59, i32* %.reg2mem43
store i32 %58, i32* %storemerge1225.reg2mem
br i1 %62, label LBL_6, label LBL_11
LBL_11:
%.pre = load i32, i32* %11, align 4
store i32 %.pre, i32* %.reg2mem45
br label LBL_12
LBL_12:
%.reload46 = load i32, i32* %.reg2mem45
%63 = add i32 %storemerge1126.reload, 1
%64 = zext i32 %.reload46 to i64
%65 = sext i32 %63 to i64
%66 = icmp slt i64 %65, %64
store i32 %.reload46, i32* %.reg2mem
store i64 %65, i64* %.reg2mem39
store i32 %63, i32* %storemerge1126.reg2mem
br i1 %66, label LBL_4, label LBL_13
LBL_13:
%67 = add i64 %2, 132
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = icmp eq i32 %69, 0
%71 = icmp eq i1 %70, false
br i1 %71, label LBL_15, label LBL_14
LBL_14:
%72 = add i64 %2, 136
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = add i64 %2, 92
%76 = inttoptr i64 %75 to i32*
store i32 %74, i32* %76, align 4
%77 = add i64 %2, 140
%78 = inttoptr i64 %77 to i32*
%79 = load i32, i32* %78, align 4
%80 = add i64 %2, 96
%81 = inttoptr i64 %80 to i32*
store i32 %79, i32* %81, align 4
%82 = add i64 %2, 144
%83 = inttoptr i64 %82 to i32*
%84 = load i32, i32* %83, align 4
%85 = add i64 %2, 100
%86 = inttoptr i64 %85 to i32*
store i32 %84, i32* %86, align 4
%87 = add i64 %2, 148
%88 = inttoptr i64 %87 to i32*
%89 = load i32, i32* %88, align 4
%90 = add i64 %2, 104
%91 = inttoptr i64 %90 to i32*
store i32 %89, i32* %91, align 4
br label LBL_15
LBL_15:
%92 = add i64 %2, 108
%93 = inttoptr i64 %92 to i32*
%94 = load i32, i32* %93, align 4
%95 = add i64 %2, 12
%96 = inttoptr i64 %95 to i32*
store i32 %94, i32* %96, align 4
store i32 %94, i32* %.reg2mem57
br label LBL_49
LBL_16:
%97 = add i64 %2, 92
%98 = inttoptr i64 %97 to i32*
%99 = load i32, i32* %98, align 4
%100 = add i64 %2, 16
%101 = inttoptr i64 %100 to i32*
store i32 %99, i32* %101, align 4
store i32 %99, i32* %.reg2mem55
br label LBL_47
LBL_17:
%102 = add i64 %2, 96
%103 = inttoptr i64 %102 to i32*
%104 = load i32, i32* %103, align 4
%105 = add i64 %2, 20
%106 = inttoptr i64 %105 to i32*
store i32 %104, i32* %106, align 4
store i32 %104, i32* %.reg2mem53
br label LBL_45
LBL_18:
%107 = add i64 %2, 116
%108 = inttoptr i64 %107 to i32*
%109 = load i32, i32* %108, align 4
%110 = add i64 %2, 24
%111 = inttoptr i64 %110 to i32*
store i32 %109, i32* %111, align 4
store i32 %109, i32* %.reg2mem51
store i64 %110, i64* %.pre-phi27.reg2mem
br label LBL_43
LBL_19:
%.pre-phi27.reload = load i64, i64* %.pre-phi27.reg2mem
%112 = add i64 %2, 80
%113 = inttoptr i64 %112 to i64*
%114 = load i64, i64* %113, align 8
%115 = sext i32 %.reload52 to i64
%116 = mul nsw i64 %115, 24
%117 = add i64 %114, %116
%118 = add i64 %2, 12
%119 = inttoptr i64 %118 to i32*
%120 = load i32, i32* %119, align 4
%121 = add i64 %117, 8
%122 = inttoptr i64 %121 to i32*
%123 = load i32, i32* %122, align 4
%124 = icmp ult i32 %120, %123
store i64 %.pre-phi27.reload, i64* %.pre-phi35.reg2mem
br i1 %124, label LBL_20, label LBL_42
LBL_20:
%125 = inttoptr i64 %117 to i32*
%126 = add i64 %117, 16
%127 = inttoptr i64 %126 to i64*
%128 = load i64, i64* %127, align 8
%129 = sext i32 %120 to i64
%130 = mul i64 %129, 16
%131 = add i64 %128, %130
%132 = inttoptr i64 %131 to i32*
%133 = sub i32 0, %120
%134 = sub i32 %133, 1
%135 = add i32 %123, %134
%136 = load i32, i32* %125, align 4
%137 = urem i32 %135, 32
%138 = shl i32 %136, %137
%rdx.2 = zext i32 %138 to i64
%139 = add i64 %2, 140
%140 = inttoptr i64 %139 to i32*
%141 = load i32, i32* %140, align 4
%142 = zext i32 %141 to i64
%143 = call i64 @FUNC(i64 %142, i64 %rdx.2)
%144 = add i64 %117, 4
%145 = inttoptr i64 %144 to i32*
%146 = load i32, i32* %145, align 4
%147 = shl i32 %146, %137
%rdx.3 = zext i32 %147 to i64
%148 = add i64 %2, 136
%149 = inttoptr i64 %148 to i32*
%150 = load i32, i32* %149, align 4
%151 = zext i32 %150 to i64
%152 = call i64 @FUNC(i64 %151, i64 %rdx.3)
%153 = load i32, i32* %125, align 4
%154 = shl i32 %153, %137
%rdx.4 = zext i32 %154 to i64
%155 = add i64 %2, 148
%156 = inttoptr i64 %155 to i32*
%157 = load i32, i32* %156, align 4
%158 = zext i32 %157 to i64
%159 = call i64 @FUNC(i64 %158, i64 %rdx.4)
%160 = load i32, i32* %145, align 4
%161 = shl i32 %160, %137
%rdx.5 = zext i32 %161 to i64
%162 = add i64 %2, 144
%163 = inttoptr i64 %162 to i32*
%164 = load i32, i32* %163, align 4
%165 = zext i32 %164 to i64
%166 = call i64 @FUNC(i64 %165, i64 %rdx.5)
%167 = load i32, i32* %132, align 4
%168 = add i32 %167, %135
%169 = icmp sgt i32 %168, 30
br i1 %169, label LBL_38, label LBL_21
LBL_21:
%170 = add i64 %131, 4
%171 = inttoptr i64 %170 to i32*
%172 = load i32, i32* %171, align 4
%173 = add i32 %172, %135
%174 = load i32, i32* %125, align 4
%175 = urem i32 %168, 32
%176 = shl i32 %174, %175
%177 = ashr i32 %176, %175
%178 = icmp eq i32 %174, %177
%179 = icmp eq i1 %178, false
%180 = icmp sgt i32 %173, 30
%or.cond = or i1 %180, %179
br i1 %or.cond, label LBL_38, label LBL_22
LBL_22:
%181 = load i32, i32* %145, align 4
%182 = urem i32 %173, 32
%183 = shl i32 %181, %182
%184 = ashr i32 %183, %182
%185 = icmp eq i32 %184, %181
%186 = icmp eq i1 %185, false
br i1 %186, label LBL_38, label LBL_23
LBL_23:
%187 = icmp eq i32 %137, 0
%188 = trunc i64 %152 to i32
%189 = add i64 %2, 16
%190 = inttoptr i64 %189 to i32*
%191 = load i32, i32* %190, align 4
%192 = zext i32 %191 to i64
%rsi.0 = zext i32 %183 to i64
%193 = ashr i32 %191, 31
%194 = zext i32 %193 to i64
%195 = mul i64 %194, 4294967296
%196 = or i64 %195, %192
%197 = srem i64 %196, %rsi.0
%198 = trunc i64 %197 to i32
%199 = icmp eq i32 %198, 0
br i1 %199, label LBL_26, label LBL_24
LBL_24:
%200 = load i32, i32* %149, align 4
%201 = icmp eq i32 %191, %200
%202 = icmp eq i1 %201, false
br i1 %202, label LBL_39, label LBL_25
LBL_25:
%203 = and i64 %152, 4294967295
%204 = shl i32 %188, %137
%205 = zext i32 %204 to i64
%rdx.10 = select i1 %187, i64 %203, i64 %205
%206 = shl i32 1, %182
%storemerge = zext i32 %206 to i64
%207 = trunc i64 %rdx.10 to i32
%208 = ashr i32 %207, 31
%209 = zext i32 %208 to i64
%210 = mul i64 %209, 4294967296
%211 = or i64 %210, %rdx.10
%212 = srem i64 %211, %storemerge
%213 = trunc i64 %212 to i32
%214 = icmp eq i32 %213, 0
br i1 %214, label LBL_39, label LBL_26
LBL_26:
%215 = trunc i64 %143 to i32
%216 = add i64 %2, 20
%217 = inttoptr i64 %216 to i32*
%218 = load i32, i32* %217, align 4
%219 = zext i32 %218 to i64
%rsi.1 = zext i32 %176 to i64
%220 = ashr i32 %218, 31
%221 = zext i32 %220 to i64
%222 = mul i64 %221, 4294967296
%223 = or i64 %222, %219
%224 = srem i64 %223, %rsi.1
%225 = trunc i64 %224 to i32
%226 = icmp eq i32 %225, 0
br i1 %226, label LBL_29, label LBL_27
LBL_27:
%227 = load i32, i32* %140, align 4
%228 = icmp eq i32 %218, %227
%229 = icmp eq i1 %228, false
br i1 %229, label LBL_40, label LBL_28
LBL_28:
%230 = and i64 %143, 4294967295
%231 = shl i32 %215, %137
%232 = zext i32 %231 to i64
%rdx.11 = select i1 %187, i64 %230, i64 %232
%233 = shl i32 1, %175
%storemerge9 = zext i32 %233 to i64
%234 = trunc i64 %rdx.11 to i32
%235 = ashr i32 %234, 31
%236 = zext i32 %235 to i64
%237 = mul i64 %236, 4294967296
%238 = or i64 %237, %rdx.11
%239 = srem i64 %238, %storemerge9
%240 = trunc i64 %239 to i32
%241 = icmp eq i32 %240, 0
br i1 %241, label LBL_40, label LBL_29
LBL_29:
%242 = add i64 %131, 8
%243 = inttoptr i64 %242 to i32*
%244 = load i32, i32* %243, align 4
%245 = icmp eq i32 %244, 0
br i1 %245, label LBL_41, label LBL_30
LBL_30:
%246 = add i64 %131, 12
%247 = inttoptr i64 %246 to i32*
%248 = load i32, i32* %247, align 4
%249 = icmp eq i32 %248, 0
br i1 %249, label LBL_41, label LBL_31
LBL_31:
%250 = trunc i64 %159 to i32
%251 = trunc i64 %166 to i32
%252 = icmp eq i32 %215, %250
%253 = icmp eq i32 %188, %251
%or.cond21 = or i1 %252, %253
store i64 %.pre-phi27.reload, i64* %.pre-phi35.reg2mem
br i1 %or.cond21, label LBL_42, label LBL_32
LBL_32:
%254 = zext i32 %167 to i64
%255 = shl i32 %174, %137
%rdx.12 = zext i32 %255 to i64
%256 = call i64 @FUNC(i64 %219, i64 %rdx.12)
%257 = and i64 %256, 4294967295
%258 = call i64 @FUNC(i64 %257, i64 %254)
%259 = trunc i64 %258 to i32
%260 = load i32, i32* %132, align 4
%261 = zext i32 %260 to i64
%262 = and i64 %143, 4294967295
%263 = call i64 @FUNC(i64 %262, i64 %261)
%264 = trunc i64 %263 to i32
%265 = sub i32 %259, %264
%266 = load i32, i32* %171, align 4
%267 = zext i32 %266 to i64
%268 = load i32, i32* %145, align 4
%269 = shl i32 %268, %137
%rdx.13 = zext i32 %269 to i64
%270 = load i32, i32* %190, align 4
%271 = zext i32 %270 to i64
%272 = call i64 @FUNC(i64 %271, i64 %rdx.13)
%273 = and i64 %272, 4294967295
%274 = call i64 @FUNC(i64 %273, i64 %267)
%275 = load i32, i32* %171, align 4
%276 = zext i32 %275 to i64
%277 = and i64 %152, 4294967295
%278 = call i64 @FUNC(i64 %277, i64 %276)
%279 = sub i64 %274, %278
%280 = load i32, i32* %243, align 4
%281 = trunc i64 %279 to i32
%282 = mul i32 %280, %281
%283 = add i32 %265, %282
%284 = add i64 %2, 28
%285 = inttoptr i64 %284 to i32*
store i32 %283, i32* %285, align 4
%286 = add i64 %2, 124
%287 = inttoptr i64 %286 to i32*
%288 = load i32, i32* %287, align 4
%289 = add i64 %2, 32
%290 = inttoptr i64 %289 to i32*
store i32 %288, i32* %290, align 4
store i32 %288, i32* %.reg2mem49
store i64 %289, i64* %.pre-phi.reg2mem
br label LBL_36
LBL_33:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%291 = add i64 %2, 48
%292 = inttoptr i64 %291 to i64*
%293 = load i64, i64* %292, align 8
%294 = sext i32 %.reload50 to i64
%295 = mul i64 %293, %294
%296 = add i64 %2, 12
%297 = inttoptr i64 %296 to i32*
%298 = load i32, i32* %297, align 4
%299 = add i64 %2, 56
%300 = inttoptr i64 %299 to i64*
%301 = load i64, i64* %300, align 8
%302 = sext i32 %298 to i64
%303 = mul i64 %301, %302
%304 = add i64 %303, %295
%305 = add i64 %2, 24
%306 = inttoptr i64 %305 to i32*
%307 = load i32, i32* %306, align 4
%308 = add i64 %2, 64
%309 = inttoptr i64 %308 to i64*
%310 = load i64, i64* %309, align 8
%311 = sext i32 %307 to i64
%312 = mul i64 %310, %311
%313 = add i64 %304, %312
%314 = add i64 %2, 28
%315 = inttoptr i64 %314 to i32*
%316 = load i32, i32* %315, align 4
%317 = add i64 %2, 72
%318 = inttoptr i64 %317 to i64*
%319 = load i64, i64* %318, align 8
%320 = sext i32 %316 to i64
%321 = mul i64 %319, %320
%322 = add i64 %313, %321
%323 = add i64 %2, 40
%324 = inttoptr i64 %323 to i64*
%325 = load i64, i64* %324, align 8
%326 = mul i64 %322, 4
%327 = add i64 %326, %325
%328 = inttoptr i64 %327 to i32*
%329 = load i32, i32* %328, align 4
%330 = icmp eq i32 %329, 0
%331 = icmp eq i1 %330, false
store i32 %.reload50, i32* %.reg2mem47
store i64 %.pre-phi.reload, i64* %.pre-phi33.reg2mem
br i1 %331, label LBL_35, label LBL_34
LBL_34:
store i32 1, i32* %328, align 4
store i64 1, i64* %storemerge10.reg2mem
br label LBL_50
LBL_35:
%.pre-phi33.reload = load i64, i64* %.pre-phi33.reg2mem
%.reload48 = load i32, i32* %.reg2mem47
%332 = inttoptr i64 %.pre-phi33.reload to i32*
%333 = add i32 %.reload48, 1
store i32 %333, i32* %332, align 4
store i32 %333, i32* %.reg2mem49
store i64 %.pre-phi33.reload, i64* %.pre-phi.reg2mem
br label LBL_36
LBL_36:
%.reload50 = load i32, i32* %.reg2mem49
%334 = add i64 %2, 128
%335 = inttoptr i64 %334 to i32*
%336 = load i32, i32* %335, align 4
%337 = icmp ult i32 %.reload50, %336
br i1 %337, label LBL_33, label LBL_36.LBL_42_crit_edge
LBL_37:
%.pre34 = add i64 %2, 24
store i64 %.pre34, i64* %.pre-phi35.reg2mem
br label LBL_42
LBL_38:
store i64 %.pre-phi27.reload, i64* %.pre-phi35.reg2mem
br label LBL_42
LBL_39:
store i64 %.pre-phi27.reload, i64* %.pre-phi35.reg2mem
br label LBL_42
LBL_40:
store i64 %.pre-phi27.reload, i64* %.pre-phi35.reg2mem
br label LBL_42
LBL_41:
store i64 %.pre-phi27.reload, i64* %.pre-phi35.reg2mem
br label LBL_42
LBL_42:
%.pre-phi35.reload = load i64, i64* %.pre-phi35.reg2mem
%338 = inttoptr i64 %.pre-phi35.reload to i32*
%339 = load i32, i32* %338, align 4
%340 = add i32 %339, 1
store i32 %340, i32* %338, align 4
store i32 %340, i32* %.reg2mem51
store i64 %.pre-phi35.reload, i64* %.pre-phi27.reg2mem
br label LBL_43
LBL_43:
%.reload52 = load i32, i32* %.reg2mem51
%341 = add i64 %2, 120
%342 = inttoptr i64 %341 to i32*
%343 = load i32, i32* %342, align 4
%344 = icmp ult i32 %.reload52, %343
br i1 %344, label LBL_19, label LBL_44
LBL_44:
%345 = add i64 %2, 20
%346 = inttoptr i64 %345 to i32*
%347 = load i32, i32* %346, align 4
%348 = add i64 %2, 4
%349 = inttoptr i64 %348 to i32*
%350 = load i32, i32* %349, align 4
%351 = ashr i32 %347, 31
%352 = zext i32 %347 to i64
%353 = zext i32 %351 to i64
%354 = mul i64 %353, 4294967296
%355 = or i64 %354, %352
%356 = zext i32 %350 to i64
%357 = srem i64 %355, %356
%358 = trunc i64 %357 to i32
%359 = add i32 %350, %347
%360 = sub i32 %359, %358
store i32 %360, i32* %346, align 4
store i32 %360, i32* %.reg2mem53
br label LBL_45
LBL_45:
%.reload54 = load i32, i32* %.reg2mem53
%361 = add i64 %2, 104
%362 = inttoptr i64 %361 to i32*
%363 = load i32, i32* %362, align 4
%364 = icmp ult i32 %.reload54, %363
br i1 %364, label LBL_18, label LBL_46
LBL_46:
%365 = add i64 %2, 16
%366 = inttoptr i64 %365 to i32*
%367 = load i32, i32* %366, align 4
%368 = add i64 %2, 8
%369 = inttoptr i64 %368 to i32*
%370 = load i32, i32* %369, align 4
%371 = ashr i32 %367, 31
%372 = zext i32 %367 to i64
%373 = zext i32 %371 to i64
%374 = mul i64 %373, 4294967296
%375 = or i64 %374, %372
%376 = zext i32 %370 to i64
%377 = srem i64 %375, %376
%378 = trunc i64 %377 to i32
%379 = add i32 %370, %367
%380 = sub i32 %379, %378
store i32 %380, i32* %366, align 4
store i32 %380, i32* %.reg2mem55
br label LBL_47
LBL_47:
%.reload56 = load i32, i32* %.reg2mem55
%381 = add i64 %2, 100
%382 = inttoptr i64 %381 to i32*
%383 = load i32, i32* %382, align 4
%384 = icmp ult i32 %.reload56, %383
br i1 %384, label LBL_17, label LBL_48
LBL_48:
%385 = add i64 %2, 12
%386 = inttoptr i64 %385 to i32*
%387 = load i32, i32* %386, align 4
%388 = add i32 %387, 1
store i32 %388, i32* %386, align 4
store i32 %388, i32* %.reg2mem57
br label LBL_49
LBL_49:
%.reload58 = load i32, i32* %.reg2mem57
%389 = add i64 %2, 112
%390 = inttoptr i64 %389 to i32*
%391 = load i32, i32* %390, align 4
%392 = icmp ult i32 %.reload58, %391
store i64 0, i64* %storemerge10.reg2mem
br i1 %392, label LBL_16, label LBL_50
LBL_50:
%storemerge10.reload = load i64, i64* %storemerge10.reg2mem
ret i64 %storemerge10.reload
uselistorder i32 %367, { 0, 2, 1 }
uselistorder i32 %347, { 0, 2, 1 }
uselistorder i32 %.reload52, { 1, 0 }
uselistorder i32 %.reload50, { 1, 0, 2 }
uselistorder i64 %219, { 1, 0 }
uselistorder i32 %215, { 1, 0 }
uselistorder i1 %187, { 1, 0 }
uselistorder i32 %182, { 2, 1, 0 }
uselistorder i32 %175, { 2, 1, 0 }
uselistorder i32 %167, { 1, 0 }
uselistorder i32 %137, { 6, 5, 7, 8, 0, 4, 3, 2, 1 }
uselistorder i32 %135, { 1, 2, 0 }
uselistorder i64 %.pre-phi27.reload, { 2, 3, 4, 5, 0, 1 }
uselistorder i32 %.reload46, { 1, 0 }
uselistorder i64 %54, { 1, 0 }
uselistorder i64 %45, { 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* %.reg2mem39, { 1, 0, 2 }
uselistorder i32* %storemerge1126.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem41, { 1, 0, 2 }
uselistorder i32* %.reg2mem43, { 1, 0, 2 }
uselistorder i32* %storemerge1225.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge14.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge13.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre-phi.reg2mem, { 1, 0, 2 }
uselistorder i64* %.pre-phi35.reg2mem, { 0, 4, 3, 2, 1, 7, 6, 5 }
uselistorder i64* %.pre-phi27.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem57, { 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, { 4, 0, 1, 2, 3, 5 }
uselistorder i64 (i64, i64)* @int_min, { 1, 0 }
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 label LBL_47, { 1, 0 }
uselistorder label LBL_45, { 1, 0 }
uselistorder label LBL_43, { 1, 0 }
uselistorder label LBL_42, { 3, 4, 5, 6, 0, 1, 2 }
uselistorder label LBL_36, { 1, 0 }
uselistorder label LBL_35, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | ieee80211_radiotap_iterator_init_18712 | ieee80211_radiotap_iterator_init | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %arg3 to i32
%3 = icmp sgt i32 %2, 7
%4 = trunc i64 %1 to i8
%5 = icmp eq i8 %4, 0
%or.cond = icmp eq i1 %3, %5
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_6
LBL_1:
%6 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg3, 4294967296
%7 = add i64 %6, 2
%8 = call i64 @FUNC(i64 %7)
%9 = urem i64 %8, 65536
%10 = ashr exact i64 %sext, 32
%11 = icmp slt i64 %10, %9
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %11, label LBL_6, label LBL_2
LBL_2:
%12 = ptrtoint i64* %arg4 to i64
%13 = ptrtoint i64* %arg1 to i64
store i64 %6, i64* %arg1, align 8
%14 = call i64 @FUNC(i64 %7)
%15 = trunc i64 %14 to i32
%16 = urem i32 %15, 65536
%17 = add i64 %13, 8
%18 = inttoptr i64 %17 to i32*
store i32 %16, i32* %18, align 4
%19 = add i64 %13, 12
%20 = inttoptr i64 %19 to i32*
store i32 0, i32* %20, align 4
%21 = add i64 %6, 4
%22 = call i64 @FUNC(i64 %21)
%23 = trunc i64 %22 to i32
%24 = add i64 %13, 16
%25 = inttoptr i64 %24 to i32*
store i32 %23, i32* %25, align 4
%26 = add i64 %6, 8
%27 = add i64 %13, 24
%28 = inttoptr i64 %27 to i64*
store i64 %26, i64* %28, align 8
%29 = add i64 %13, 32
%30 = inttoptr i64 %29 to i32*
store i32 0, i32* %30, align 4
%31 = add i64 %13, 40
%32 = inttoptr i64 %31 to i64*
store i64 %26, i64* %32, align 8
%33 = add i64 %13, 48
%34 = inttoptr i64 %33 to i64*
store i64 %12, i64* %34, align 8
%35 = add i64 %13, 56
%36 = inttoptr i64 %35 to i64*
store i64 4210725, i64* %36, align 8
%37 = add i64 %13, 64
%38 = inttoptr i64 %37 to i32*
store i32 1, i32* %38, align 4
%39 = add i64 %13, 72
%40 = inttoptr i64 %39 to i64*
store i64 0, i64* %40, align 8
%41 = load i32, i32* %20, align 4
%42 = sext i32 %41 to i64
%43 = add nsw i64 %42, 4
%44 = load i32, i32* %18, align 4
%45 = sext i32 %44 to i64
%46 = icmp ugt i64 %43, %45
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %46, label LBL_6, label LBL_3
LBL_3:
%.pre = load i64, i64* %28, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_5
LBL_4:
%47 = load i32, i32* %20, align 4
%48 = sext i32 %47 to i64
%49 = add nsw i64 %48, 4
%50 = load i32, i32* %18, align 4
%51 = sext i32 %50 to i64
%52 = icmp ugt i64 %49, %51
store i64 %58, i64* %.reg2mem
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %52, label LBL_6, label LBL_5
LBL_5:
%.reload = load i64, i64* %.reg2mem
%53 = call i64 @FUNC(i64 %.reload)
%54 = urem i64 %53, 2
%55 = icmp eq i64 %54, 0
%56 = icmp eq i1 %55, false
%57 = load i64, i64* %28, align 8
%58 = add i64 %57, 4
store i64 %58, i64* %28, align 8
store i64 %13, i64* %rax.0.reg2mem
br i1 %56, label LBL_4, label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %58, { 1, 0 }
uselistorder i64* %28, { 2, 1, 0, 3 }
uselistorder i64 (i64)* @get_unaligned_le32, { 1, 0 }
uselistorder i64 4, { 1, 0, 2, 3 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 65536, { 1, 0 }
uselistorder i64 (i64)* @get_unaligned_le16, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | gfs2_init_inode_once_17968 | gfs2_init_inode_once | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC(i64 %arg1)
%2 = add i64 %arg1, 8
%3 = inttoptr i64 %2 to i64*
store i64 0, i64* %3, align 8
ret i64 %arg1
uselistorder i64 %arg1, { 2, 3, 1, 0 }
} | 1 |
BinRealVul | may_ptrace_stop_12115 | may_ptrace_stop | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = zext i32 %3 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_1, label LBL_4
LBL_1:
%9 = load i64, i64* @gv_0, align 8
%10 = add i64 %9, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = zext i32 %14 to i64
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_3, label LBL_2
LBL_2:
%19 = load i64, i64* @gv_0, align 8
%20 = add i64 %19, 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = inttoptr i64 %19 to i64*
%24 = load i64, i64* %23, align 8
%25 = add i64 %24, 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = icmp eq i64 %22, %27
%29 = zext i1 %28 to i64
%30 = call i64 @FUNC(i64 %29)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %32, label LBL_3, label LBL_4
LBL_3:
store i64 1, 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)* @unlikely, { 1, 0 }
uselistorder label LBL_4, { 2, 0, 1 }
} | 1 |
BinRealVul | saa7134_vbi_fini_7159 | saa7134_vbi_fini | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
ret i64 0
} | 0 |
BinRealVul | snd_usbmidi_urb_error_10670 | snd_usbmidi_urb_error | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, -2
store i64 4294967277, i64* %rax.0.reg2mem
br i1 %3, label LBL_12, label LBL_1
LBL_1:
%4 = icmp sgt i32 %2, -2
br i1 %4, label LBL_11, label LBL_2
LBL_2:
%5 = icmp eq i32 %2, -19
store i64 4294967277, i64* %rax.0.reg2mem
br i1 %5, label LBL_12, label LBL_3
LBL_3:
%6 = icmp sgt i32 %2, -19
br i1 %6, label LBL_11, label LBL_4
LBL_4:
%7 = icmp eq i32 %2, -62
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %7, label LBL_12, label LBL_5
LBL_5:
%8 = icmp sgt i32 %2, -62
br i1 %8, label LBL_11, label LBL_6
LBL_6:
%9 = icmp eq i32 %2, -71
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %9, label LBL_12, label LBL_7
LBL_7:
%10 = icmp sgt i32 %2, -71
br i1 %10, label LBL_11, label LBL_8
LBL_8:
%11 = icmp eq i32 %2, -84
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %11, label LBL_12, label LBL_9
LBL_9:
%12 = icmp sgt i32 %2, -84
br i1 %12, label LBL_11, label LBL_10
LBL_10:
%13 = icmp ne i32 %2, -108
%14 = icmp eq i32 %2, -104
%15 = icmp eq i1 %14, false
%or.cond = icmp eq i1 %13, %15
store i64 4294967277, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_11, label LBL_12
LBL_11:
%16 = ptrtoint i64* %arg1 to i64
%17 = add i64 %16, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = call i64 @FUNC(i64 %19, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i32 %2)
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 %2, { 0, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 3, 2, 1, 5, 4 }
uselistorder i32 -84, { 1, 0 }
uselistorder i32 -71, { 1, 0 }
uselistorder i64 4294967291, { 2, 1, 0 }
uselistorder i32 -62, { 1, 0 }
uselistorder i32 -19, { 1, 0 }
uselistorder i64 4294967277, { 2, 1, 0 }
uselistorder i32 -2, { 1, 0 }
uselistorder label LBL_12, { 6, 5, 2, 1, 0, 4, 3 }
} | 0 |
BinRealVul | pvscsi_on_cmd_setup_rings_16447 | pvscsi_on_cmd_setup_rings | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0))
%2 = call i64 @FUNC(i64 %0)
%3 = add i64 %0, 16
%4 = call i64 @FUNC(i64 %3, i64 %0)
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i32*
store i32 1, i32* %6, align 4
ret i64 0
} | 1 |
BinRealVul | SMB2_sess_establish_session_17349 | SMB2_sess_establish_session | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.14.reg2mem = alloca i64*
%sv_0.13.reg2mem = alloca i64*
%.pre-phi6.reg2mem = alloca i64*
%sv_0.0.reg2mem = alloca i64*
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 24
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %1 to i8
%4 = icmp eq i8 %3, 0
store i64 %1, i64* %rdi.0.reg2mem
store i64* null, i64** %sv_0.0.reg2mem
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = add i64 %0, 32
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
store i64 %1, i64* %rdi.0.reg2mem
store i64* null, i64** %sv_0.0.reg2mem
br i1 %10, label LBL_4, label LBL_2
LBL_2:
%11 = trunc i64 %0 to i32
%12 = and i64 %0, 4294967295
%13 = inttoptr i64 %12 to i64*
%14 = add i64 %0, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16)
store i64 0, i64* %15, align 8
%18 = icmp eq i32 %11, 0
store i64 %16, i64* %rdi.0.reg2mem
store i64* %13, i64** %sv_0.0.reg2mem
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%19 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0))
%20 = call i64 @FUNC(i64 24)
store i64* %15, i64** %.pre-phi6.reg2mem
store i64* %13, i64** %sv_0.13.reg2mem
br label LBL_8
LBL_4:
%sv_0.0.reload = load i64*, i64** %sv_0.0.reg2mem
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%21 = add i64 %rdi.0.reload, 16
%22 = inttoptr i64 %21 to i8*
%23 = load i8, i8* %22, align 1
%24 = icmp eq i8 %23, 1
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%25 = add i64 %rdi.0.reload, 20
%26 = inttoptr i64 %25 to i32*
store i32 2, i32* %26, align 4
store i8 1, i8* %22, align 1
br label LBL_6
LBL_6:
%27 = add i64 %rdi.0.reload, 24
%28 = call i64 @FUNC(i64 %27)
%29 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_1, i64 0, i64 0))
%30 = call i64 @FUNC(i64* nonnull @gv_2)
%31 = add i64 %0, 16
%32 = inttoptr i64 %31 to i32*
store i32 0, i32* %32, align 4
%33 = add i64 %0, 20
%34 = inttoptr i64 %33 to i8*
store i8 0, i8* %34, align 1
%35 = call i64 @FUNC(i64* nonnull @gv_2)
store i64* %sv_0.0.reload, i64** %sv_0.14.reg2mem
br i1 icmp eq (i8 ptrtoint (i64* @gv_2 to i8), i8 1), label LBL_9, label LBL_6.LBL_8_crit_edge
LBL_7:
%.pre = add i64 %0, 8
%.pre5 = inttoptr i64 %.pre to i64*
store i64* %.pre5, i64** %.pre-phi6.reg2mem
store i64* %sv_0.0.reload, i64** %sv_0.13.reg2mem
br label LBL_8
LBL_8:
%sv_0.13.reload = load i64*, i64** %sv_0.13.reg2mem
%.pre-phi6.reload = load i64*, i64** %.pre-phi6.reg2mem
%36 = load i64, i64* %.pre-phi6.reload, align 8
%37 = call i64 @FUNC(i64 %36)
store i64 0, i64* %.pre-phi6.reload, align 8
store i64* %sv_0.13.reload, i64** %sv_0.14.reg2mem
br label LBL_9
LBL_9:
%sv_0.14.reload = load i64*, i64** %sv_0.14.reg2mem
%38 = ptrtoint i64* %sv_0.14.reload to i64
%39 = and i64 %38, 4294967295
ret i64 %39
uselistorder i64 %rdi.0.reload, { 2, 1, 0 }
uselistorder i64* %sv_0.0.reload, { 1, 0 }
uselistorder i64 %0, { 0, 5, 6, 4, 3, 2, 1, 7 }
uselistorder i64** %.pre-phi6.reg2mem, { 0, 2, 1 }
uselistorder i64** %sv_0.13.reg2mem, { 0, 2, 1 }
uselistorder i64** %sv_0.14.reg2mem, { 0, 2, 1 }
uselistorder i8 1, { 0, 2, 1 }
uselistorder i64 (i64)* @mutex_unlock, { 1, 0 }
uselistorder i64 (i64, i8*)* @cifs_dbg, { 1, 0 }
uselistorder i64 (i64)* @kfree, { 1, 0 }
uselistorder i64 24, { 1, 0, 2 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | control_to_network_3127 | control_to_network | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = call i32 @htonl(i32 %3)
store i32 %4, i32* %arg1, align 4
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = call i32 @htonl(i32 %7)
store i32 %8, i32* %6, align 4
%9 = add i64 %2, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = call i32 @htonl(i32 %11)
%13 = sext i32 %12 to i64
store i32 %12, i32* %10, align 4
ret i64 %13
uselistorder i32 (i32)* @htonl, { 2, 1, 0 }
} | 0 |
BinRealVul | cpu_reset_499 | cpu_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64 1)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = and i64 %3, 4294967295
%11 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %10, i64 %4, i64 %5, i64 %2, i64 %1)
%12 = call i64 @FUNC(i64 %6, i64 0)
br label LBL_2
LBL_2:
%13 = call i64* @memset(i64* %arg1, i32 0, i32 16)
%14 = call i64 @FUNC(i64 %6)
%15 = add i64 %6, 8
%16 = inttoptr i64 %15 to i32*
store i32 0, i32* %16, align 4
%17 = add i64 %6, 12
%18 = inttoptr i64 %17 to i32*
store i32 0, i32* %18, align 4
%19 = call i64 @FUNC(i64 %6, i64 1)
ret i64 %19
uselistorder i64 %6, { 1, 2, 4, 3, 0 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i32 0, { 1, 2, 0, 3 }
} | 0 |
BinRealVul | i440fx_pcihost_class_init_15271 | i440fx_pcihost_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 ptrtoint ([4 x i8]* @gv_0 to i64), i64* %2, align 8
%3 = load i64, i64* @gv_1, align 8
%4 = add i64 %0, 16
%5 = inttoptr i64 %4 to i64*
store i64 %3, i64* %5, align 8
ret i64 %0
uselistorder i64 %0, { 1, 0, 2 }
} | 1 |
BinRealVul | khugepaged_6613 | khugepaged | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = load i64, i64* @gv_0, align 8
%2 = call i64 @FUNC(i64 %1, i64 19)
%3 = call i64 @FUNC(i64* nonnull @gv_1)
br label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64* nonnull @gv_1)
%5 = load i64, i64* @gv_2, align 8
%6 = load i64, i64* @gv_0, align 8
%7 = icmp eq i64 %5, %6
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%9 = call i32 @fwrite(i64* bitcast ([18 x i8]* @gv_4 to i64*), i32 1, i32 17, %_IO_FILE* %8)
call void @exit(i32 1)
unreachable
LBL_3:
%10 = call i64 @FUNC()
%11 = load i64, i64* @gv_2, align 8
%12 = load i64, i64* @gv_0, align 8
%13 = icmp eq i64 %11, %12
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = load %_IO_FILE*, %_IO_FILE** @gv_3, align 8
%15 = call i32 @fwrite(i64* bitcast ([18 x i8]* @gv_4 to i64*), i32 1, i32 17, %_IO_FILE* %14)
call void @exit(i32 1)
unreachable
LBL_5:
%16 = call i64 @FUNC(i64* nonnull @gv_1)
%17 = call i64 @FUNC()
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_7, label LBL_6
LBL_6:
%20 = call i64 @FUNC()
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
%24 = icmp eq i1 %23, false
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_7, label LBL_1
LBL_7:
%26 = call i64 @FUNC(i64* nonnull @gv_5)
%27 = load i64, i64* @gv_6, align 8
store i64 0, i64* @gv_6, align 8
%28 = icmp eq i64 %27, 0
br i1 %28, label LBL_9, label LBL_8
LBL_8:
%29 = call i64 @FUNC(i64 %27)
br label LBL_9
LBL_9:
%30 = call i64 @FUNC(i64* nonnull @gv_5)
store i64 0, i64* @gv_2, align 8
%31 = call i64 @FUNC(i64* nonnull @gv_1)
ret i64 0
uselistorder i1 false, { 1, 0, 2 }
uselistorder void (i32)* @exit, { 1, 0 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 }
uselistorder %_IO_FILE** @gv_3, { 1, 0 }
uselistorder i64 (i64*)* @mutex_unlock, { 1, 0 }
uselistorder i64 (i64*)* @mutex_lock, { 1, 0 }
} | 0 |
BinRealVul | av_get_cpu_flags_15258 | av_get_cpu_flags | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i32
%0 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4
%1 = icmp eq i32 %0, -1
%2 = icmp eq i1 %1, false
store i32 %0, i32* %sv_0.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC()
%4 = trunc i64 %3 to i32
store i32 %4, i32* bitcast (i64* @gv_0 to i32*), align 8
store i32 %4, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%5 = zext i32 %sv_0.0.reload to i64
ret i64 %5
} | 1 |
BinRealVul | avfilter_graph_send_command_1500 | avfilter_graph_send_command | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i32 %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_0.25.reg2mem = alloca i32
%storemerge6.reg2mem = alloca i32
%.reg2mem11 = alloca i64
%.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i32*
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = icmp eq i64 %arg1, 0
%3 = icmp eq i1 %2, false
store i32 -78, i32* %rax.0.shrunk.reg2mem
br i1 %3, label LBL_1, label LBL_16
LBL_1:
%sext = mul i64 %arg7, 4294967296
%4 = ashr exact i64 %sext, 32
%5 = urem i64 %arg7, 2
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_4, label LBL_2
LBL_2:
%7 = and i64 %arg7, 2
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = and i64 %4, 4294967293
%11 = or i64 %10, 2
%12 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i32 %arg6, i64 %11)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, -78
store i32 %13, i32* %rax.0.shrunk.reg2mem
br i1 %14, label LBL_4, label LBL_16
LBL_4:
%15 = icmp eq i32 %arg6, 0
%16 = icmp eq i64 %arg5, 0
%or.cond = or i1 %16, %15
br i1 %or.cond, label LBL_4.LBL_7_crit_edge, label LBL_6
LBL_5:
%17 = trunc i64 %1 to i32
%.pre8 = bitcast i64* %rdi to i32*
store i32* %.pre8, i32** %.pre-phi.reg2mem
store i32 %17, i32* %.reg2mem
br label LBL_7
LBL_6:
%18 = inttoptr i64 %arg5 to i8*
store i8 0, i8* %18, align 1
%.phi.trans.insert = bitcast i64* %rdi to i32*
%.pre = load i32, i32* %.phi.trans.insert, align 8
store i32* %.phi.trans.insert, i32** %.pre-phi.reg2mem
store i32 %.pre, i32* %.reg2mem
br label LBL_7
LBL_7:
%.reload = load i32, i32* %.reg2mem
%19 = icmp eq i32 %.reload, 0
store i32 -78, i32* %rax.0.shrunk.reg2mem
br i1 %19, label LBL_16, label LBL_8
LBL_8:
%.pre-phi.reload = load i32*, i32** %.pre-phi.reg2mem
%20 = add i64 %arg1, 8
%21 = inttoptr i64 %20 to i64*
%22 = inttoptr i64 %arg2 to i8*
%23 = trunc i64 %4 to i32
%24 = zext i32 %arg6 to i64
store i64 0, i64* %.reg2mem11
store i32 0, i32* %storemerge6.reg2mem
store i32 -78, i32* %sv_0.25.reg2mem
br label LBL_9
LBL_9:
%storemerge6.reload = load i32, i32* %storemerge6.reg2mem
%.reload12 = load i64, i64* %.reg2mem11
%25 = load i64, i64* %21, align 8
%26 = mul i64 %.reload12, 8
%27 = add i64 %25, %26
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i32 @strcmp(i8* %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0))
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_13, label LBL_10
LBL_10:
%sv_0.25.reload = load i32, i32* %sv_0.25.reg2mem
%32 = inttoptr i64 %29 to i64*
%33 = load i64, i64* %32, align 8
%34 = icmp eq i64 %33, 0
br i1 %34, label LBL_12, label LBL_11
LBL_11:
%35 = inttoptr i64 %33 to i8*
%36 = call i32 @strcmp(i8* %22, i8* %35)
%37 = icmp eq i32 %36, 0
br i1 %37, label LBL_13, label LBL_12
LBL_12:
%38 = add i64 %29, 8
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = inttoptr i64 %42 to i8*
%44 = call i32 @strcmp(i8* %22, i8* %43)
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
store i32 %sv_0.25.reload, i32* %sv_0.1.reg2mem
br i1 %46, label LBL_15, label LBL_13
LBL_13:
%47 = call i64 @FUNC(i64 %29, i64 %arg3, i64 %arg4, i64 %arg5, i64 %24, i32 %23)
%48 = trunc i64 %47 to i32
%49 = icmp eq i32 %48, -78
store i32 -78, i32* %sv_0.1.reg2mem
br i1 %49, label LBL_15, label LBL_14
LBL_14:
%50 = icmp slt i32 %48, 0
%51 = icmp eq i1 %50, false
%or.cond4 = icmp eq i1 %6, %51
store i32 %48, i32* %sv_0.1.reg2mem
store i32 %48, i32* %rax.0.shrunk.reg2mem
br i1 %or.cond4, label LBL_15, label LBL_16
LBL_15:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%52 = add i32 %storemerge6.reload, 1
%53 = load i32, i32* %.pre-phi.reload, align 8
%54 = zext i32 %53 to i64
%55 = sext i32 %52 to i64
%56 = icmp slt i64 %55, %54
store i64 %55, i64* %.reg2mem11
store i32 %52, i32* %storemerge6.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.25.reg2mem
store i32 %sv_0.1.reload, i32* %rax.0.shrunk.reg2mem
br i1 %56, label LBL_9, label LBL_16
LBL_16:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i64 %29, { 2, 0, 1 }
uselistorder i8* %22, { 1, 0, 2 }
uselistorder i64* %rdi, { 1, 0 }
uselistorder i64* %.reg2mem11, { 1, 0, 2 }
uselistorder i32* %storemerge6.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.25.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 1, 3, 2 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 2, 1, 3, 4, 5 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0, 2 }
uselistorder i64 8, { 1, 0, 2 }
uselistorder i32 0, { 2, 3, 4, 5, 0, 1, 6 }
uselistorder i64 2, { 2, 1, 0 }
uselistorder i32 -78, { 2, 4, 3, 0, 5, 1 }
uselistorder i64 %arg7, { 2, 1, 0 }
uselistorder i32 %arg6, { 1, 2, 0 }
uselistorder i64 %arg5, { 1, 3, 2, 0 }
uselistorder i64 %arg4, { 1, 0 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | jsi_ValueToOInt32_11977 | jsi_ValueToOInt32 | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
store i64 %arg2, i64* %sv_0, align 8
%0 = call i128 @FUNC(i64 %arg1, i64 %arg2, i64 1)
%1 = call i64 @FUNC(i128 %0)
%2 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_0)
%3 = call i128 @__asm_movq.1(i64 %1)
%4 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_0)
%5 = call i128 @__asm_movsd.2(i64 %1)
%6 = call i32 @FUNC(i128 %5)
%7 = sext i32 %6 to i64
ret i64 %7
uselistorder i64 %1, { 1, 0 }
uselistorder i32 1, { 4, 3, 1, 2, 0 }
} | 1 |
BinRealVul | piix3_class_init_3100 | piix3_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 ptrtoint ([11 x i8]* @gv_0 to i64), i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i32*
store i32 1, i32* %4, align 4
%5 = bitcast i64* %arg1 to i32*
store i32 1, i32* %5, align 4
store i64 4198694, i64* %2, align 8
%6 = inttoptr i64 %3 to i64*
store i64 4198701, i64* %6, align 8
%7 = add i64 %0, 24
%8 = inttoptr i64 %7 to i32*
store i32 32902, i32* %8, align 4
%9 = add i64 %0, 28
%10 = inttoptr i64 %9 to i32*
store i32 28947, i32* %10, align 4
%11 = add i64 %0, 32
%12 = inttoptr i64 %11 to i32*
store i32 1537, i32* %12, align 4
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5 }
} | 0 |
BinRealVul | uvc_fraction_to_interval_8497 | uvc_fraction_to_interval | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i32
%sv_1.08.reg2mem = alloca i64
%sv_0.09.reg2mem = alloca i32
%0 = trunc i64 %arg2 to i32
%1 = icmp eq i32 %0, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %1, label LBL_7, label LBL_1
LBL_1:
%sext3 = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext3, 32
%.lhs.trunc = trunc i64 %arg1 to i32
%.rhs.trunc = trunc i64 %2 to i32
%3 = udiv i32 %.lhs.trunc, %.rhs.trunc
%4 = icmp ult i32 %3, 429
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %4, label LBL_2, label LBL_7
LBL_2:
%5 = icmp ugt i32 %.lhs.trunc, 429
store i32 10000000, i32* %sv_0.09.reg2mem
store i64 %2, i64* %sv_1.08.reg2mem
store i32 %.rhs.trunc, i32* %.pre-phi.reg2mem
store i32 10000000, i32* %sv_0.0.lcssa.reg2mem
br i1 %5, label LBL_3, label LBL_5
LBL_3:
%sv_1.08.reload = load i64, i64* %sv_1.08.reg2mem
%sv_0.09.reload = load i32, i32* %sv_0.09.reg2mem
%6 = udiv i32 %sv_0.09.reload, 2
%7 = udiv i64 %sv_1.08.reload, 2
%8 = urem i64 %7, 2147483648
%9 = udiv i32 -1, %6
%10 = icmp ult i32 %9, %.lhs.trunc
store i32 %6, i32* %sv_0.09.reg2mem
store i64 %8, i64* %sv_1.08.reg2mem
br i1 %10, label LBL_3, label LBL_4
LBL_4:
%.pre = trunc i64 %8 to i32
store i32 %.pre, i32* %.pre-phi.reg2mem
store i32 %6, i32* %sv_0.0.lcssa.reg2mem
br label LBL_5
LBL_5:
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%11 = icmp eq i32 %.pre-phi.reload, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_7, label LBL_6
LBL_6:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%12 = mul i32 %sv_0.0.lcssa.reload, %.lhs.trunc
%13 = udiv i32 %12, %.pre-phi.reload
%.zext7 = zext i32 %13 to i64
store i64 %.zext7, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %8, { 1, 0 }
uselistorder i32* %sv_0.09.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.08.reg2mem, { 2, 0, 1 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder label LBL_7, { 3, 0, 2, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | opfisub_8639 | opfisub | define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 1
%4 = icmp eq i1 %3, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %4, label LBL_6, label LBL_1
LBL_1:
%5 = ptrtoint i32* %arg3 to i64
%6 = add i64 %5, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = urem i32 %8, 2
%10 = icmp eq i32 %9, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %10, label LBL_6, label LBL_2
LBL_2:
%11 = ptrtoint i64* %arg2 to i64
%12 = and i32 %8, 2
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = bitcast i64* %arg2 to i8*
store i8 -38, i8* %14, align 1
%15 = add i64 %5, 8
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i64 %11, 1
%19 = trunc i32 %17 to i8
%20 = or i8 %19, 32
%21 = inttoptr i64 %18 to i8*
store i8 %20, i8* %21, align 1
store i64 2, i64* %rax.0.reg2mem
br label LBL_6
LBL_4:
%22 = and i32 %8, 4
%23 = icmp eq i32 %22, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%24 = bitcast i64* %arg2 to i8*
store i8 -34, i8* %24, align 1
%25 = add i64 %5, 8
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i64 %11, 1
%29 = trunc i32 %27 to i8
%30 = or i8 %29, 32
%31 = inttoptr i64 %28 to i8*
store i8 %30, i8* %31, align 1
store i64 2, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %11, { 1, 0 }
uselistorder i32 %8, { 1, 2, 0 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 5, 1, 4, 3 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder label LBL_6, { 1, 4, 0, 3, 2 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.