dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | gen_wsr_3415 | gen_wsr | define i64 @FUNC(i32* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = mul i64 %arg2, 8
%1 = and i64 %0, 34359738360
%2 = add i64 %1, ptrtoint (i64* @gv_0 to i64)
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = ptrtoint i32* %arg1 to i64
store i64 %6, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%7 = mul i64 %arg2, 4
%8 = and i64 %7, 17179869180
%9 = add i64 %8, ptrtoint (i32** @gv_1 to i64)
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = zext i32 %arg3 to i64
%13 = zext i32 %11 to i64
%14 = call i64 @FUNC(i64 %13, i64 %12)
store i64 %14, 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 | filter_frame_3041 | filter_frame | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.ph.reg2mem = alloca i64
%.reg2mem = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = load i128, i128* %0
%5 = ptrtoint i64* %arg2 to i64
%6 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
store i64 %5, i64* %sv_2, align 8
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %9, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %9 to i64*
%14 = load i64, i64* %13, align 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = trunc i64 %2 to i32
%18 = call i128 @FUNC(i128 %4, i128 %4)
%19 = call i128 @FUNC(i32 %17)
%20 = inttoptr i64 %12 to i32*
%21 = load i32, i32* %20, align 4
%22 = call i128 @FUNC(i128 %3, i128 %3)
%23 = call i128 @FUNC(i32 %21)
%24 = call i128 @FUNC(i128 %19)
%25 = call i128 @FUNC(i128 %24, i128 %23)
%26 = call i128 @FUNC(i64 4602678819172646912)
%27 = call i128 @FUNC(i128 %26, i128 %25)
%28 = call i32 @FUNC(i128 %27)
%29 = add i64 %5, 8
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
store i64 %33, i64* %sv_1, align 8
%34 = add i64 %12, 4
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = mul i32 %36, %17
%38 = sext i32 %37 to i64
%39 = add i64 %33, %38
%40 = add i64 %12, 8
%41 = inttoptr i64 %40 to i64*
%42 = zext i32 %28 to i64
%43 = add i64 %12, 16
%44 = inttoptr i64 %43 to i64*
%45 = add i64 %12, 24
%46 = inttoptr i64 %45 to i64*
store i64 0, i64* %sv_0.0.ph.reg2mem
br label LBL_8
LBL_1:
%47 = load i64, i64* %41, align 8
%48 = icmp eq i64 %47, 0
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_1.LBL_6_crit_edge, label LBL_3
LBL_2:
%.pre = load i64, i64* %46, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_6
LBL_3:
%50 = call i64 @FUNC(i64 %16, i64 %42)
store i64 %50, i64* %41, align 8
%51 = icmp eq i64 %50, 0
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_5, label LBL_4
LBL_4:
%53 = call i64 @FUNC(i64* nonnull %sv_2)
store i64 4294967284, i64* %storemerge.reg2mem
br label LBL_12
LBL_5:
%54 = load i64, i64* %sv_2, align 8
%55 = call i64 @FUNC(i64 %50, i64 %54)
%56 = load i64, i64* %41, align 8
%57 = add i64 %56, 8
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = inttoptr i64 %59 to i64*
%61 = load i64, i64* %60, align 8
store i64 %61, i64* %44, align 8
%62 = load i32, i32* %35, align 4
%63 = mul i32 %62, %28
%64 = sext i32 %63 to i64
%65 = add i64 %61, %64
store i64 %65, i64* %46, align 8
store i64 %65, i64* %.reg2mem
br label LBL_6
LBL_6:
%.reload = load i64, i64* %.reg2mem
%66 = call i64 @FUNC(i64 %12, i64* nonnull %sv_1, i64 %39, i64 %43, i64 %.reload)
%67 = load i64, i64* %44, align 8
%68 = load i64, i64* %46, align 8
%69 = icmp eq i64 %67, %68
%70 = icmp eq i1 %69, false
br i1 %70, label LBL_9, label LBL_7
LBL_7:
%71 = load i64, i64* %41, align 8
%72 = add i64 %71, 8
%73 = inttoptr i64 %72 to i64*
%74 = load i64, i64* %73, align 8
%75 = inttoptr i64 %74 to i64*
%76 = load i64, i64* %75, align 8
%77 = sub i64 %67, %76
%78 = load i32, i32* %35, align 4
%79 = sext i32 %78 to i64
%80 = udiv i64 %77, %79
%81 = trunc i64 %80 to i32
%82 = call i64 @FUNC(i64 %12, i64 %16, i32 %81)
%83 = trunc i64 %82 to i32
%84 = icmp slt i32 %83, 0
store i64 %82, i64* %sv_0.0.ph.reg2mem
store i64 %82, i64* %sv_0.1.reg2mem
br i1 %84, label LBL_11, label LBL_8
LBL_8:
%sv_0.0.ph.reload = load i64, i64* %sv_0.0.ph.reg2mem
br label LBL_9
LBL_9:
%85 = load i64, i64* %sv_1, align 8
%86 = icmp ugt i64 %39, %85
br i1 %86, label LBL_1, label LBL_10
LBL_10:
%87 = add i64 %12, 32
%88 = inttoptr i64 %87 to i32*
%89 = load i32, i32* %88, align 4
%90 = add i32 %89, %17
store i32 %90, i32* %88, align 4
store i64 %sv_0.0.ph.reload, i64* %sv_0.1.reg2mem
br label LBL_11
LBL_11:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%91 = call i64 @FUNC(i64* nonnull %sv_2)
%92 = and i64 %sv_0.1.reload, 4294967295
store i64 %92, i64* %storemerge.reg2mem
br label LBL_12
LBL_12:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %50, { 1, 0, 2 }
uselistorder i64* %46, { 1, 2, 0 }
uselistorder i64 %39, { 1, 0 }
uselistorder i32* %35, { 1, 0, 2 }
uselistorder i64 %16, { 1, 0 }
uselistorder i64 %12, { 5, 2, 3, 0, 1, 4, 6, 7 }
uselistorder i64* %sv_2, { 0, 2, 1, 3 }
uselistorder i64* %sv_1, { 1, 0, 2 }
uselistorder i64* %sv_0.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i128* %0, { 1, 0 }
uselistorder i64 (i64*)* @av_frame_free, { 1, 0 }
uselistorder i64 0, { 3, 4, 0, 5, 1, 2 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | hb_count_between_14554 | hb_count_between | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.1.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_0.04.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%2 = add i64 %arg3, 1
%3 = urem i64 %1, 64
%storemerge3 = shl i64 %arg2, %3
%4 = ptrtoint i32* %arg1 to i64
%5 = bitcast i32* %sv_2 to i64*
%6 = call i64 @FUNC(i64* nonnull %5, i64 %4, i64 %storemerge3)
%7 = call i64 @FUNC(i64* nonnull %5, i64* nonnull %sv_1)
%8 = icmp ult i64 %7, %2
%9 = icmp eq i1 %8, false
store i64 0, i64* %sv_0.04.reg2mem
store i64 0, i64* %sv_0.0.lcssa.reg2mem
store i64 %7, i64* %.lcssa.reg2mem
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem
%10 = load i64, i64* %sv_1, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = add i64 %11, %sv_0.04.reload
%13 = call i64 @FUNC(i64* nonnull %5, i64* nonnull %sv_1)
%14 = icmp ult i64 %13, %2
%15 = icmp eq i1 %14, false
store i64 %12, i64* %sv_0.04.reg2mem
store i64 %12, i64* %sv_0.0.lcssa.reg2mem
store i64 %13, i64* %.lcssa.reg2mem
br i1 %15, label LBL_2, label LBL_1
LBL_2:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%16 = icmp eq i64 %.lcssa.reload, %2
%17 = icmp eq i1 %16, false
store i64 %sv_0.0.lcssa.reload, i64* %sv_0.1.reg2mem
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = trunc i64 %2 to i32
%19 = urem i32 %18, 64
store i32 %19, i32* %sv_2, align 4
%20 = urem i64 %2, 64
%21 = icmp eq i64 %20, 0
%notmask = shl nsw i64 -1, %20
%22 = sub i64 0, %notmask
%phitmp = sub i64 %22, 1
%storemerge = select i1 %21, i64 0, i64 %phitmp
%23 = load i64, i64* %sv_1, align 8
%24 = and i64 %23, %storemerge
store i64 %24, i64* %sv_1, align 8
%25 = call i64 @FUNC(i64 %24)
%26 = add i64 %25, %sv_0.0.lcssa.reload
store i64 %26, i64* %sv_0.1.reg2mem
br label LBL_4
LBL_4:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
ret i64 %sv_0.1.reload
uselistorder i64 %sv_0.0.lcssa.reload, { 1, 0 }
uselistorder i64* %5, { 1, 0, 2 }
uselistorder i64 %2, { 0, 2, 3, 4, 1 }
uselistorder i64* %sv_1, { 2, 3, 1, 4, 0 }
uselistorder i64* %sv_0.04.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @popcountl, { 1, 0 }
uselistorder i1 false, { 2, 3, 0, 4, 1 }
uselistorder i64 (i64*, i64*)* @hbitmap_iter_next_word, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | release_drive_681 | release_drive | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %4)
%7 = load i64, i64* %3, align 8
%8 = call i64 @FUNC(i64 %7, i64 %1)
store i64 %8, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 0 |
BinRealVul | palette8torgb15_14781 | palette8torgb15 | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg4 to i64
%1 = icmp sgt i64 %arg3, 0
store i64 0, i64* %storemerge1.reg2mem
store i64 0, i64* %storemerge.lcssa.reg2mem
br i1 %1, label LBL_1, label LBL_2
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%2 = add i64 %storemerge1.reload, %arg1
%3 = inttoptr i64 %2 to i8*
%4 = load i8, i8* %3, align 1
%5 = zext i8 %4 to i64
%6 = mul i64 %5, 2
%7 = add i64 %6, %0
%8 = mul i64 %storemerge1.reload, 2
%9 = add i64 %8, %arg2
%10 = inttoptr i64 %7 to i16*
%11 = load i16, i16* %10, align 2
%12 = inttoptr i64 %9 to i16*
store i16 %11, i16* %12, align 2
%13 = add nuw nsw i64 %storemerge1.reload, 1
%exitcond = icmp eq i64 %13, %arg3
store i64 %13, i64* %storemerge1.reg2mem
store i64 %arg3, i64* %storemerge.lcssa.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i64 %storemerge1.reload, { 0, 2, 1 }
uselistorder i64* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | hdlr_dump_11813 | hdlr_dump | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.pre-phi.reg2mem = alloca %_IO_FILE*
%.reg2mem = alloca i8*
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 %arg2)
%4 = add i64 %2, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
store i8* null, i8** %.reg2mem
br i1 %7, label LBL_4, label LBL_1
LBL_1:
%8 = inttoptr i64 %6 to i8*
%9 = load i8, i8* %8, align 1
%10 = sext i8 %9 to i64
%11 = and i64 %10, 4294967295
%12 = add i64 %6, 1
%13 = inttoptr i64 %12 to i8*
%14 = call i32 @strlen(i8* %13)
%15 = sext i32 %14 to i64
%16 = icmp eq i64 %11, %15
%17 = icmp eq i1 %16, false
%.pre = load i64, i64* %5, align 8
br i1 %17, label LBL_1.LBL_4_crit_edge, label LBL_3
LBL_2:
%phitmp = inttoptr i64 %.pre to i8*
store i8* %phitmp, i8** %.reg2mem
br label LBL_4
LBL_3:
%18 = add i64 %.pre, 1
%19 = and i64 %1, 4294967295
%20 = call i64 @FUNC(i64 %19)
%21 = inttoptr i64 %arg2 to %_IO_FILE*
%22 = inttoptr i64 %20 to i8*
%23 = inttoptr i64 %18 to i8*
%24 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %21, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i8* %22, i8* %23)
store %_IO_FILE* %21, %_IO_FILE** %.pre-phi.reg2mem
br label LBL_5
LBL_4:
%.reload = load i8*, i8** %.reg2mem
%25 = and i64 %1, 4294967295
%26 = call i64 @FUNC(i64 %25)
%27 = inttoptr i64 %arg2 to %_IO_FILE*
%28 = inttoptr i64 %26 to i8*
%29 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %27, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i8* %28, i8* %.reload)
store %_IO_FILE* %27, %_IO_FILE** %.pre-phi.reg2mem
br label LBL_5
LBL_5:
%.pre-phi.reload = load %_IO_FILE*, %_IO_FILE** %.pre-phi.reg2mem
%30 = add i64 %2, 16
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = zext i32 %32 to i64
%34 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %.pre-phi.reload, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0), i64 %33)
%35 = add i64 %2, 20
%36 = call i64 @FUNC(i64 %arg2, i64 %35, i64 12)
%37 = call i32 @fputc(i32 34, %_IO_FILE* %.pre-phi.reload)
%38 = call i32 @fwrite(i64* bitcast ([3 x i8]* @gv_3 to i64*), i32 1, i32 2, %_IO_FILE* %.pre-phi.reload)
%39 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 %2, i64 %arg2)
ret i64 0
uselistorder i64 %6, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i8** %.reg2mem, { 0, 2, 1 }
uselistorder %_IO_FILE** %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 0, 4, 3, 1, 5, 2 }
uselistorder i64 (i64)* @gf_4cc_to_str, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i64 4294967295, { 0, 1, 3, 2 }
uselistorder i64 %arg2, { 1, 2, 3, 0, 4 }
} | 1 |
BinRealVul | ape_decode_close_1532 | ape_decode_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%1 = mul i64 %indvars.iv.reload, 8
%2 = add i64 %1, %0
%3 = call i64 @FUNC(i64 %2)
%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
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%4 = add i64 %0, 256
%5 = call i64 @FUNC(i64 %4)
ret i64 0
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
} | 0 |
BinRealVul | pci_device_reset_14297 | pci_device_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64* @memset(i64* %arg1, i32 0, i32 64)
%2 = add i64 %0, 80
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = and i32 %4, -8
store i32 %5, i32* %3, align 4
%6 = add i64 %0, 112
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %7, align 4
%8 = add i64 %0, 304
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = add i64 %0, 64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%11 = mul i64 %indvars.iv.reload, 8
%12 = add i64 %11, %0
%13 = add i64 %12, 320
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_3, label LBL_2
LBL_2:
%17 = add i64 %12, 324
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = call i64 @FUNC(i64 %0, i64 %indvars.iv.reload)
%sext = mul i64 %20, 4294967296
%21 = ashr exact i64 %sext, 30
%22 = add i64 %10, %21
%23 = zext i32 %19 to i64
%24 = call i64 @FUNC(i64 %22, i64 %23)
br label LBL_3
LBL_3:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 6
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_4, label LBL_1
LBL_4:
%25 = call i64 @FUNC(i64 %0)
ret i64 %25
uselistorder i64 %0, { 1, 2, 0, 3, 4, 5, 6 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | net_slirp_redir_14103 | net_slirp_redir | define i64 @FUNC(i8* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64* nonnull @gv_0)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 272)
%4 = ptrtoint i8* %arg1 to i64
%5 = call i64 @FUNC(i64 %3, i64 256, i64 %4)
%6 = add i64 %3, 256
%7 = inttoptr i64 %6 to i32*
store i32 3, i32* %7, align 4
%8 = load i64, i64* @gv_1, align 8
%9 = add i64 %3, 264
%10 = inttoptr i64 %9 to i64*
store i64 %8, i64* %10, align 8
store i64 %3, i64* @gv_1, align 8
store i64 %3, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%11 = call i64 @FUNC(i64* nonnull @gv_0)
%12 = ptrtoint i8* %arg1 to i64
%13 = call i64 @FUNC(i64 %11, i64 0, i64 %12, i64 1)
store i64 %13, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 256, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder i8* %arg1, { 1, 0 }
} | 1 |
BinRealVul | pgp_finish_18475 | pgp_finish | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_1, label LBL_2
LBL_1:
%2 = call i64 @FUNC(i64 %arg1, i64 99, i64 4198710)
%3 = inttoptr i64 %arg1 to i64*
call void @free(i64* %3)
br label LBL_2
LBL_2:
ret i64 0
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | _gdContributionsAlloc_12677 | _gdContributionsAlloc | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge7.reg2mem = alloca i32
%.reg2mem12 = alloca i64
%.reg2mem = alloca i64
%storemerge58.reg2mem = alloca i32
%0 = call i64 @FUNC(i64 16)
%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_13
LBL_1:
%sext = mul i64 %arg1, 4294967296
%3 = ashr exact i64 %sext, 32
%sext4 = mul i64 %arg2, 4294967296
%4 = ashr exact i64 %sext4, 32
%5 = inttoptr i64 %0 to i32*
%6 = trunc i64 %4 to i32
store i32 %6, i32* %5, align 4
%7 = trunc i64 %3 to i32
%8 = add i64 %0, 4
%9 = inttoptr i64 %8 to i32*
store i32 %7, i32* %9, align 4
%10 = and i64 %3, 4294967295
%11 = call i64 @FUNC(i64 %10, i64 8)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_3:
%15 = mul i64 %arg1, 8
%16 = and i64 %15, 34359738360
%17 = call i64 @FUNC(i64 %16)
%18 = add i64 %0, 8
%19 = inttoptr i64 %18 to i64*
store i64 %17, i64* %19, align 8
%20 = icmp eq i64 %17, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_4, label LBL_6
LBL_4:
%22 = icmp eq i32 %7, 0
store i64 %0, i64* %rax.0.reg2mem
br i1 %22, label LBL_13, label LBL_5
LBL_5:
%23 = and i64 %4, 4294967295
%24 = mul i64 %arg2, 8
%25 = and i64 %24, 34359738360
store i32 0, i32* %storemerge58.reg2mem
br label LBL_7
LBL_6:
%26 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_7:
%storemerge58.reload = load i32, i32* %storemerge58.reg2mem
%27 = call i64 @FUNC(i64 %23, i64 8)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
%30 = load i64, i64* %19, align 8
store i64 %30, i64* %.reg2mem
br i1 %29, label LBL_8, label LBL_9
LBL_8:
%31 = zext i32 %storemerge58.reload to i64
%32 = mul i64 %31, 8
%33 = add i64 %30, %32
%34 = call i64 @FUNC(i64 %25)
%35 = inttoptr i64 %33 to i64*
store i64 %34, i64* %35, align 8
%36 = load i64, i64* %19, align 8
%37 = add i64 %36, %32
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = icmp eq i64 %39, 0
%41 = icmp eq i1 %40, false
store i64 %36, i64* %.reg2mem
br i1 %41, label LBL_12, label LBL_9
LBL_9:
%.reload = load i64, i64* %.reg2mem
%42 = add i32 %storemerge58.reload, -1
store i64 %.reload, i64* %.reg2mem12
store i32 0, i32* %storemerge7.reg2mem
br label LBL_10
LBL_10:
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%.reload13 = load i64, i64* %.reg2mem12
%43 = zext i32 %storemerge7.reload to i64
%44 = mul i64 %43, 8
%45 = add i64 %44, %.reload13
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = call i64 @FUNC(i64 %47)
%49 = add i32 %storemerge7.reload, 1
%50 = icmp ugt i32 %49, %42
%51 = load i64, i64* %19, align 8
store i64 %51, i64* %.reg2mem12
store i32 %49, i32* %storemerge7.reg2mem
br i1 %50, label LBL_11, label LBL_10
LBL_11:
%52 = call i64 @FUNC(i64 %51)
%53 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_12:
%54 = add i32 %storemerge58.reload, 1
%55 = icmp ult i32 %54, %7
store i32 %54, i32* %storemerge58.reg2mem
store i64 %0, i64* %rax.0.reg2mem
br i1 %55, label LBL_7, label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %51, { 1, 0 }
uselistorder i64 %32, { 1, 0 }
uselistorder i64 %30, { 1, 0 }
uselistorder i32 %storemerge58.reload, { 0, 2, 1 }
uselistorder i64* %19, { 1, 0, 2, 3 }
uselistorder i32 %7, { 1, 0, 2 }
uselistorder i64 %0, { 0, 2, 3, 1, 4, 5, 6, 7, 8 }
uselistorder i32* %storemerge58.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem12, { 1, 0, 2 }
uselistorder i32* %storemerge7.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 6, 5, 2, 4, 3 }
uselistorder i32 0, { 0, 3, 1, 2, 4 }
uselistorder i64 (i64, i64)* @overflow2, { 1, 0 }
uselistorder i64 (i64)* @gdMalloc, { 2, 1, 0 }
uselistorder i32 1, { 5, 6, 4, 3, 2, 1, 0 }
uselistorder label LBL_13, { 0, 3, 4, 1, 5, 2 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | readSBits_6372 | readSBits | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.in3.reg2mem = alloca i32
%0 = trunc i64 %arg2 to i32
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC(i64 %arg1, i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %0, 0
store i32 %3, i32* %storemerge.in3.reg2mem
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = add i32 %0, 31
%6 = urem i32 %5, 32
%7 = shl i32 1, %6
%8 = and i32 %7, %3
%9 = icmp eq i32 %8, 0
store i32 %3, i32* %storemerge.in3.reg2mem
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = urem i32 %0, 32
%11 = shl i32 1, %10
%12 = sub i32 %3, %11
store i32 %12, i32* %storemerge.in3.reg2mem
br label LBL_3
LBL_3:
%storemerge.in3.reload = load i32, i32* %storemerge.in3.reg2mem
%storemerge = zext i32 %storemerge.in3.reload to i64
ret i64 %storemerge
uselistorder i32 %3, { 3, 1, 2, 0 }
uselistorder i32* %storemerge.in3.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 0 |
BinRealVul | pci_piix3_xen_ide_unplug_5753 | pci_piix3_xen_ide_unplug | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%2 = call i64 @FUNC(i64 0, i64 %indvars.iv.reload)
%3 = icmp eq i64 %2, 0
br i1 %3, label LBL_6, label LBL_2
LBL_2:
%4 = inttoptr i64 %2 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_6, label LBL_3
LBL_3:
%8 = call i64 @FUNC(i64 %2)
%9 = call i64 @FUNC(i64 %8)
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%11 = call i64 @FUNC(i64 %8, i64 %9)
br label LBL_5
LBL_5:
%12 = add i64 %2, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i64 %2, 8
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = sext i32 %17 to i64
%19 = sext i32 %14 to i64
%20 = mul i64 %19, 4
%21 = add nsw i64 %20, %18
%22 = mul i64 %21, 8
%23 = add i64 %22, %1
%24 = inttoptr i64 %23 to i64*
store i64 0, i64* %24, align 8
%25 = urem i64 %indvars.iv.reload, 2
%26 = icmp eq i64 %25, 0
%27 = icmp eq i1 %26, false
%28 = load i32, i32* %13, align 4
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 32
%storemerge2.in.in.v = select i1 %27, i64 24, i64 16
%31 = add i64 %storemerge2.in.in.v, %1
%storemerge2.in.in = add i64 %31, %30
%storemerge2.in = inttoptr i64 %storemerge2.in.in to i64*
%storemerge2 = load i64, i64* %storemerge2.in, align 8
%32 = inttoptr i64 %storemerge2 to i64*
store i64 0, i64* %32, align 8
%33 = call i64 @FUNC(i64 %8)
br label LBL_6
LBL_6:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 4
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_7, label LBL_1
LBL_7:
%34 = call i64 @FUNC(i64 %0)
ret i64 0
uselistorder i64 %8, { 1, 0, 2 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 4, { 1, 0, 2 }
} | 0 |
BinRealVul | error_setg_file_open_14086 | error_setg_file_open | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i8* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg2 to i32
%3 = call i64 @FUNC(i64 %1, i32 %2, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %0)
ret i64 %3
} | 1 |
BinRealVul | hsr_check_carrier_10638 | hsr_check_carrier | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i8
%storemerge.in4.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC()
%2 = add i64 %0, 16
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%storemerge.in.in2 = inttoptr i64 %4 to i64*
%storemerge.in3 = load i64, i64* %storemerge.in.in2, align 8
%5 = icmp eq i64 %storemerge.in3, 0
%6 = icmp eq i1 %5, false
store i64 %storemerge.in3, i64* %storemerge.in4.reg2mem
store i8 0, i8* %sv_0.0.reg2mem
br i1 %6, label LBL_1, label LBL_4
LBL_1:
%storemerge.in4.reload = load i64, i64* %storemerge.in4.reg2mem
%storemerge = inttoptr i64 %storemerge.in4.reload to i32*
%7 = load i32, i32* %storemerge, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = add i64 %storemerge.in4.reload, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11)
%13 = trunc i64 %12 to i8
%14 = icmp eq i8 %13, 0
store i8 1, i8* %sv_0.0.reg2mem
br i1 %14, label LBL_3, label LBL_4
LBL_3:
%15 = add i64 %storemerge.in4.reload, 24
%storemerge.in.in = inttoptr i64 %15 to i64*
%storemerge.in = load i64, i64* %storemerge.in.in, align 8
%16 = icmp eq i64 %storemerge.in, 0
%17 = icmp eq i1 %16, false
store i64 %storemerge.in, i64* %storemerge.in4.reg2mem
store i8 0, i8* %sv_0.0.reg2mem
br i1 %17, label LBL_1, label LBL_4
LBL_4:
%sv_0.0.reload = load i8, i8* %sv_0.0.reg2mem
%18 = call i64 @FUNC()
%19 = icmp eq i8 %sv_0.0.reload, 0
%20 = add i64 %0, 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%23 = call i64 @FUNC(i64 %22)
br label LBL_7
LBL_6:
%24 = call i64 @FUNC(i64 %22)
br label LBL_7
LBL_7:
%25 = zext i8 %sv_0.0.reload to i64
ret i64 %25
uselistorder i64 %22, { 1, 0 }
uselistorder i8 %sv_0.0.reload, { 1, 0 }
uselistorder i64* %storemerge.in4.reg2mem, { 2, 0, 1 }
uselistorder i8* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | ide_atapi_cmd_reply_end_7792 | ide_atapi_cmd_reply_end | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%.reg2mem9 = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = bitcast i64* %rdi to i32*
%4 = add i64 %2, 8
%5 = inttoptr i64 %4 to i32*
%6 = add i64 %2, 4
%7 = inttoptr i64 %6 to i32*
%8 = add i64 %2, 12
%9 = inttoptr i64 %8 to i32*
%10 = add i64 %2, 16
%11 = inttoptr i64 %10 to i32*
%12 = add i64 %2, 20
%13 = inttoptr i64 %12 to i32*
%14 = add i64 %2, 32
%15 = inttoptr i64 %14 to i32*
%16 = add i64 %2, 24
%17 = inttoptr i64 %16 to i32*
%18 = add i64 %2, 28
%19 = inttoptr i64 %18 to i32*
%20 = add i64 %2, 48
%21 = inttoptr i64 %20 to i32*
%22 = bitcast i64* %arg1 to i32*
%23 = add i64 %2, 40
%24 = inttoptr i64 %23 to i64*
%25 = trunc i64 %1 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp slt i32 %25, 0
%28 = icmp eq i1 %27, false
%29 = icmp eq i1 %26, false
%30 = icmp eq i1 %28, %29
store i32 %25, i32* %.reg2mem
br i1 %30, label LBL_1, label LBL_17
LBL_1:
%.reload = load i32, i32* %.reg2mem
%31 = load i32, i32* %5, align 4
%32 = load i32, i32* %7, align 4
%33 = call i64 @FUNC(i64 %2, i32 %.reload, i32 %32, i32 %31)
%34 = load i32, i32* %9, align 4
%35 = icmp eq i32 %34, -1
br i1 %35, label LBL_8, label LBL_2
LBL_2:
%36 = load i32, i32* %5, align 4
%37 = load i32, i32* %11, align 4
%38 = icmp ult i32 %36, %37
br i1 %38, label LBL_8, label LBL_3
LBL_3:
%39 = load i32, i32* %7, align 4
%40 = icmp eq i32 %39, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_6, label LBL_4
LBL_4:
%42 = call i64 @FUNC(i64 %2)
%43 = trunc i64 %42 to i32
%44 = icmp slt i32 %43, 0
%45 = icmp eq i1 %44, false
store i64 %42, i64* %rax.0.reg2mem
br i1 %45, label LBL_18, label LBL_5
LBL_5:
%46 = and i64 %42, 4294967295
%47 = call i64 @FUNC(i64 %2, i64 %46)
store i64 %47, i64* %rax.0.reg2mem
br label LBL_18
LBL_6:
%48 = call i64 @FUNC(i64 %2)
%49 = trunc i64 %48 to i32
%50 = icmp slt i32 %49, 0
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_8, label LBL_7
LBL_7:
%52 = and i64 %48, 4294967295
%53 = call i64 @FUNC(i64 %2, i64 %52)
store i64 %53, i64* %rax.0.reg2mem
br label LBL_18
LBL_8:
%54 = load i32, i32* %7, align 4
%55 = icmp slt i32 %54, 1
br i1 %55, label LBL_10, label LBL_9
LBL_9:
%56 = load i32, i32* %11, align 4
%57 = load i32, i32* %5, align 4
%58 = sub i32 %56, %57
%59 = zext i32 %54 to i64
%60 = sext i32 %58 to i64
%61 = icmp sgt i64 %60, %59
%spec.select = select i1 %61, i32 %54, i32 %58
store i32 %.reload, i32* %.reg2mem9
store i32 %spec.select, i32* %sv_0.2.reg2mem
br label LBL_15
LBL_10:
%62 = load i32, i32* %13, align 4
%63 = and i32 %62, -8
%64 = or i32 %63, 1
store i32 %64, i32* %13, align 4
%65 = load i32, i32* %15, align 4
%66 = zext i32 %65 to i64
%67 = call i64 @FUNC(i64 %66)
%68 = call i64 @FUNC(i64 %2)
%69 = trunc i64 %68 to i32
%70 = and i64 %68, 4294967295
%71 = call i64 @FUNC(i64 %2, i64 %70)
%72 = load i32, i32* %3, align 8
%73 = icmp sgt i32 %72, %69
store i32 %72, i32* %sv_0.0.reg2mem
br i1 %73, label LBL_11, label LBL_12
LBL_11:
%74 = urem i32 %69, 2
%75 = icmp ne i32 %74, 0
%76 = sext i1 %75 to i32
%spec.select1 = add i32 %76, %69
store i32 %spec.select1, i32* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
store i32 %sv_0.0.reload, i32* %17, align 4
%77 = ashr i32 %sv_0.0.reload, 8
store i32 %77, i32* %19, align 4
store i32 %sv_0.0.reload, i32* %7, align 4
%78 = load i32, i32* %9, align 4
%79 = icmp eq i32 %78, -1
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %79, label LBL_14, label LBL_13
LBL_13:
%80 = load i32, i32* %11, align 4
%81 = load i32, i32* %5, align 4
%82 = sub i32 %80, %81
%83 = zext i32 %82 to i64
%84 = sext i32 %sv_0.0.reload to i64
%85 = icmp sgt i64 %84, %83
%spec.select2 = select i1 %85, i32 %82, i32 %sv_0.0.reload
store i32 %spec.select2, i32* %sv_0.1.reg2mem
br label LBL_14
LBL_14:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%86 = load i32, i32* %21, align 4
%87 = zext i32 %86 to i64
%88 = call i64 @FUNC(i64 %2, i64 %87)
%.pre5 = load i32, i32* %3, align 8
store i32 %.pre5, i32* %.reg2mem9
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br label LBL_15
LBL_15:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%.reload10 = load i32, i32* %.reg2mem9
%89 = sub i32 %.reload10, %sv_0.2.reload
store i32 %89, i32* %22, align 4
%90 = load i32, i32* %7, align 4
%91 = sub i32 %90, %sv_0.2.reload
store i32 %91, i32* %7, align 4
%92 = load i32, i32* %5, align 4
%93 = add i32 %92, %sv_0.2.reload
store i32 %93, i32* %5, align 4
%94 = load i64, i64* %24, align 8
%95 = sext i32 %93 to i64
%96 = sext i32 %sv_0.2.reload to i64
%97 = sub nsw i64 %95, %96
%98 = add i64 %97, %94
%99 = call i64 @FUNC(i64 %2, i64 %98, i32 %sv_0.2.reload, i64 4198878)
%100 = trunc i64 %99 to i32
%101 = icmp eq i32 %100, 0
store i64 %99, i64* %rax.0.reg2mem
br i1 %101, label LBL_18, label LBL_15.dec_label_pc_401417_crit_edge
LBL_16:
%.pre = load i32, i32* %3, align 8
%102 = icmp eq i32 %.pre, 0
%103 = icmp slt i32 %.pre, 0
%104 = icmp eq i1 %103, false
%105 = icmp eq i1 %102, false
%106 = icmp eq i1 %104, %105
store i32 %.pre, i32* %.reg2mem
br i1 %106, label LBL_1, label LBL_17
LBL_17:
%107 = load i32, i32* %21, align 4
%108 = zext i32 %107 to i64
%109 = call i64 @FUNC(i64 %2, i64 %108)
%110 = call i64 @FUNC(i64 %2)
%111 = load i32, i32* %15, align 4
%112 = zext i32 %111 to i64
%113 = call i64 @FUNC(i64 %112)
store i64 %113, 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 %sv_0.2.reload, { 2, 3, 4, 1, 0 }
uselistorder i32 %sv_0.0.reload, { 5, 4, 0, 3, 2, 1 }
uselistorder i32 %69, { 1, 0, 2 }
uselistorder i32 %54, { 1, 0, 2 }
uselistorder i64 %42, { 1, 0, 2 }
uselistorder i32* %7, { 2, 1, 3, 4, 0, 5 }
uselistorder i32* %5, { 3, 2, 4, 1, 0, 5 }
uselistorder i32* %3, { 1, 0, 2 }
uselistorder i64 %2, { 0, 19, 4, 6, 9, 10, 2, 16, 1, 15, 20, 3, 5, 7, 8, 11, 12, 14, 13, 18, 17 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem9, { 0, 2, 1 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 5, 3, 4 }
uselistorder i64 (i64, i64)* @ide_atapi_io_error, { 1, 0 }
uselistorder i64 4294967295, { 2, 0, 1 }
uselistorder i1 false, { 6, 2, 3, 4, 5, 0, 1 }
uselistorder i32 0, { 7, 8, 2, 3, 4, 5, 6, 0, 1 }
uselistorder label LBL_18, { 4, 0, 3, 2, 1 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | nfs41_check_expired_locks_5373 | nfs41_check_expired_locks | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_0.13.reg2mem = alloca i32
%storemerge5.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 %1, i64* %storemerge5.in.reg2mem
store i32 0, i32* %sv_0.13.reg2mem
store i32 0, i32* %sv_0.1.lcssa.reg2mem
br i1 %3, label LBL_1, label LBL_6
LBL_1:
%sv_0.13.reload = load i32, i32* %sv_0.13.reg2mem
%storemerge5.in.reload = load i64, i64* %storemerge5.in.reg2mem
%storemerge5 = inttoptr i64 %storemerge5.in.reload to i32*
%4 = load i32, i32* %storemerge5, align 4
%5 = urem i32 %4, 2
%6 = icmp eq i32 %5, 0
store i32 %sv_0.13.reload, i32* %sv_0.0.reg2mem
br i1 %6, label LBL_5, label LBL_2
LBL_2:
%7 = add i64 %storemerge5.in.reload, 4
%8 = call i64 @FUNC(i64 %0, i64 %7)
%9 = trunc i64 %8 to i32
store i32 %sv_0.13.reload, i32* %sv_0.0.reg2mem
switch i32 %9, label LBL_3 [
i32 0, label LBL_5
i32 1, label LBL_4
]
LBL_3:
%10 = call i64 @FUNC(i64 %0, i64 %7)
br label LBL_4
LBL_4:
%11 = load i32, i32* %storemerge5, align 4
%12 = and i32 %11, -2
store i32 %12, i32* %storemerge5, align 4
store i32 %9, i32* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%13 = add i64 %storemerge5.in.reload, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = icmp eq i64 %15, 0
%17 = icmp eq i1 %16, false
store i64 %15, i64* %storemerge5.in.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.13.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %17, label LBL_1, label LBL_6
LBL_6:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%18 = zext i32 %sv_0.1.lcssa.reload to i64
ret i64 %18
uselistorder i32* %storemerge5, { 1, 0, 2 }
uselistorder i64 %storemerge5.in.reload, { 2, 1, 0 }
uselistorder i64* %storemerge5.in.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.13.reg2mem, { 2, 0, 1 }
uselistorder i32 0, { 2, 3, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_5, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | dns_add_rr_nested_end_12937 | dns_add_rr_nested_end | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = icmp eq i64* %arg1, null
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %0, label LBL_4, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 24
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = add i64 %1, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
store i64 %7, i64* %sv_0, align 8
%8 = icmp eq i64 %7, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %8, label LBL_4, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %2)
%10 = trunc i64 %9 to i32
%11 = icmp sgt i32 %10, 1
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_4
LBL_3:
%12 = sub i64 %4, %1
%13 = trunc i64 %12 to i32
%14 = add i64 %1, 16
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = sub i32 %13, %16
%18 = zext i32 %17 to i64
%19 = call i64 @FUNC(i64* nonnull %sv_0, i64 %18)
%20 = add i64 %1, 40
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = add i64 %1, 32
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = trunc i64 %arg2 to i32
%27 = call i64 @FUNC(i64 %25, i32 %22, i32 %26, i32 %13)
store i64 %27, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 1, 0, 2, 5, 3, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_4, { 3, 1, 0, 2 }
} | 1 |
BinRealVul | complete_collecting_data_16111 | complete_collecting_data | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = bitcast i64* %arg1 to i32*
store i32 0, i32* %3, align 4
%4 = call i64 @FUNC(i64 %2)
%5 = icmp sgt i64 %4, 0
%6 = trunc i64 %1 to i32
br i1 %5, label LBL_1, label LBL_3
LBL_1:
%7 = add i64 %2, 36
%8 = mul i32 %6, 256
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
store i32 %8, i32* %3, align 4
%9 = add i64 %7, %.reload
%10 = inttoptr i64 %9 to i8*
%11 = load i8, i8* %10, align 1
%12 = zext i8 %11 to i32
%13 = or i32 %12, %6
store i32 %13, i32* %3, align 4
%14 = add i32 %storemerge1.reload, 1
%15 = call i64 @FUNC(i64 %2)
%16 = sext i32 %14 to i64
%17 = icmp sgt i64 %15, %16
store i64 %16, i64* %.reg2mem
store i32 %14, i32* %storemerge1.reg2mem
br i1 %17, label LBL_2, label LBL_3
LBL_3:
%18 = call i64 @FUNC(i64 %2)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 3
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%22 = add i64 %2, 12
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = mul i32 %24, 16777216
%26 = add i32 %25, %6
store i32 %26, i32* %3, align 4
br label LBL_5
LBL_5:
%27 = add i64 %2, 4
%28 = inttoptr i64 %27 to i32*
store i32 0, i32* %28, align 4
store i64 %2, i64* @0, align 8
%29 = add i64 %2, 8
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = zext i32 %31 to i64
%33 = mul i64 %32, 8
%34 = add i64 %33, ptrtoint (i64* @gv_0 to i64)
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
store i64 %36, i64* %rax.0.reg2mem
switch i64 %2, label LBL_19 [
i64 0, label LBL_6
i64 1, label LBL_6
i64 2, label LBL_6
i64 3, label LBL_6
i64 4, label LBL_6
i64 5, label LBL_7
i64 6, label LBL_7
i64 7, label LBL_7
i64 8, label LBL_7
i64 9, label LBL_7
i64 10, label LBL_7
i64 11, label LBL_7
i64 12, label LBL_7
i64 13, label LBL_7
i64 14, label LBL_7
i64 15, label LBL_7
i64 16, label LBL_7
i64 17, label LBL_8
i64 18, label LBL_8
i64 19, label LBL_8
i64 20, label LBL_8
i64 21, label LBL_8
i64 22, label LBL_8
i64 23, label LBL_9
i64 24, label LBL_15
i64 25, label LBL_16
i64 26, label LBL_17
i64 27, label LBL_18
]
LBL_6:
store i32 1, i32* %28, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_19
LBL_7:
store i32 2, i32* %28, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_19
LBL_8:
%37 = bitcast i64* %rdi to i32*
%38 = load i32, i32* %37, align 8
%39 = zext i32 %38 to i64
%40 = call i64 @FUNC(i64 %2, i64 %39, i32 %31)
store i64 %40, i64* %rax.0.reg2mem
br label LBL_19
LBL_9:
%41 = call i64 @FUNC(i64 23)
%42 = trunc i64 %41 to i32
switch i32 %42, label LBL_13 [
i32 0, label LBL_10
i32 1, label LBL_11
]
LBL_10:
%43 = load i8, i8* inttoptr (i64 60 to i8*), align 4
%44 = and i8 %43, 2
%45 = icmp eq i8 %44, 0
%46 = icmp eq i1 %45, false
%47 = zext i1 %46 to i8
store i8 %47, i8* inttoptr (i64 52 to i8*), align 4
br label LBL_13
LBL_11:
%48 = load i8, i8* inttoptr (i64 59 to i8*), align 1
%49 = zext i8 %48 to i64
%50 = call i64 @FUNC(i64 %49, i64 6, i64 1)
%51 = trunc i64 %50 to i8
store i8 %51, i8* inttoptr (i64 52 to i8*), align 4
%52 = load i32, i32* inttoptr (i64 55 to i32*), align 4
%53 = icmp slt i32 %52, 2
br i1 %53, label LBL_13, label LBL_12
LBL_12:
%54 = load i8, i8* inttoptr (i64 60 to i8*), align 4
%55 = zext i8 %54 to i64
%56 = call i64 @FUNC(i64 %55, i64 5, i64 1)
%57 = trunc i64 %56 to i8
store i8 %57, i8* inttoptr (i64 53 to i8*), align 1
br label LBL_13
LBL_13:
%58 = load i8, i8* inttoptr (i64 51 to i8*), align 1
%59 = icmp eq i8 %58, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %59, label LBL_19, label LBL_14
LBL_14:
store i8 0, i8* inttoptr (i64 51 to i8*), align 1
store i64 23, i64* %rax.0.reg2mem
br label LBL_19
LBL_15:
%60 = load i8, i8* inttoptr (i64 60 to i8*), align 4
%61 = zext i8 %60 to i32
store i32 %61, i32* inttoptr (i64 36 to i32*), align 4
store i64 24, i64* %rax.0.reg2mem
br label LBL_19
LBL_16:
%62 = load i8, i8* inttoptr (i64 61 to i8*), align 1
%63 = load i8, i8* inttoptr (i64 62 to i8*), align 2
%64 = zext i8 %63 to i32
%65 = mul i32 %64, 256
%66 = zext i8 %62 to i32
%67 = or i32 %65, %66
store i32 %67, i32* inttoptr (i64 41 to i32*), align 4
store i64 25, i64* %rax.0.reg2mem
br label LBL_19
LBL_17:
%68 = load i8, i8* inttoptr (i64 62 to i8*), align 2
%69 = zext i8 %68 to i32
store i32 %69, i32* inttoptr (i64 46 to i32*), align 4
store i64 26, i64* %rax.0.reg2mem
br label LBL_19
LBL_18:
%70 = load i8, i8* inttoptr (i64 63 to i8*), align 1
%71 = zext i8 %70 to i32
store i32 %71, i32* inttoptr (i64 51 to i32*), align 4
store i64 27, i64* %rax.0.reg2mem
br label LBL_19
LBL_19:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %6, { 1, 2, 0 }
uselistorder i64 %2, { 5, 1, 0, 3, 7, 6, 8, 4, 9, 11, 10, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 9, 8, 7, 6, 4, 5, 3, 2, 1, 10 }
uselistorder i8* inttoptr (i64 62 to i8*), { 1, 0 }
uselistorder i64 51, { 1, 0 }
uselistorder i8* inttoptr (i64 51 to i8*), { 1, 0 }
uselistorder i64 (i64, i64, i64)* @extract32, { 1, 0 }
uselistorder i8* inttoptr (i64 52 to i8*), { 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i8* inttoptr (i64 60 to i8*), { 2, 1, 0 }
uselistorder i64 3, { 1, 0 }
uselistorder i64 8, { 1, 0, 2 }
uselistorder i64 (i64)* @get_addr_length, { 2, 1, 0 }
uselistorder i32 0, { 2, 4, 0, 5, 6, 3, 1, 7, 8 }
uselistorder label LBL_19, { 3, 4, 5, 6, 1, 0, 7, 8, 9, 2 }
uselistorder label LBL_13, { 2, 1, 3, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | write_strip_header_14603 | write_strip_header | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64* %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg5 to i64
%3 = and i64 %arg2, 4294967295
%4 = and i64 %arg3, 4294967295
%5 = trunc i64 %arg4 to i32
%6 = icmp eq i32 %5, 0
%. = select i1 %6, i8 16, i8 17
%7 = bitcast i64* %arg5 to i8*
store i8 %., i8* %7, align 1
%8 = add i64 %arg6, 11
%9 = add i64 %2, 1
%10 = and i64 %8, 4294967295
%11 = call i64 @FUNC(i64 %9, i64 %10)
%12 = add i64 %2, 4
%13 = call i64 @FUNC(i64 %12, i64 %3)
%14 = add i64 %2, 6
%15 = call i64 @FUNC(i64 %14, i64 0)
%16 = add i64 %2, 8
%17 = call i64 @FUNC(i64 %16, i64 %4)
%18 = add i64 %2, 10
%19 = and i64 %1, 4294967295
%20 = call i64 @FUNC(i64 %18, i64 %19)
ret i64 %20
uselistorder i64 %2, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @AV_WB16, { 3, 2, 1, 0 }
uselistorder i64 4294967295, { 0, 3, 1, 2 }
} | 1 |
BinRealVul | packet_alloc_14060 | packet_alloc | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp ult i32 %0, -32
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_4
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %arg2, 32
%4 = and i64 %3, 4294967295
%5 = call i64 @FUNC(i64 %2, i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = and i64 %5, 4294967295
store i64 %9, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%sext = mul i64 %arg2, 4294967296
%10 = ashr exact i64 %sext, 32
%11 = add i64 %10, %2
%12 = inttoptr i64 %11 to i64*
%13 = call i64* @memset(i64* %12, i32 0, i32 32)
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | SProcXIBarrierReleasePointer_5471 | SProcXIBarrierReleasePointer | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64* @malloc(i32 8)
%1 = ptrtoint i64* %0 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = add i64 %1, 4
%4 = call i64 @FUNC(i64 %3)
%5 = inttoptr i64 %3 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp ult i32 %6, 536870912
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %7, label LBL_1, label LBL_2
LBL_1:
%8 = add i64 %1, 8
%9 = call i64 @FUNC(i64 %8)
%10 = add i64 %1, 12
%11 = call i64 @FUNC(i64 %10)
store i64 %11, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 1, 0, 2, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @swapl, { 2, 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | kbd_put_keycode_16029 | kbd_put_keycode | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = call i64 @FUNC()
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 %1, i64* %rax.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 1)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i64 %5, i64* %rax.0.reg2mem
store i64 %5, i64* %rax.1.reg2mem
br i1 %7, label LBL_4, label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%8 = icmp eq i64 %0, 0
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = add i64 %0, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
store i64 %11, i64* %rax.1.reg2mem
br label LBL_4
LBL_4:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %rax.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | hns_roce_alloc_ucontext_11683 | hns_roce_alloc_ucontext | 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
%sv_1 = alloca i32, align 4
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
store i32 %3, i32* %sv_1, align 4
%4 = call i64 @FUNC(i64 32, i64 0)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 -12, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_7
LBL_1:
%7 = call i64 @FUNC(i64 %1, i64 %4)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 %7, i64* %sv_0.0.reg2mem
br i1 %10, label LBL_6, label LBL_2
LBL_2:
%11 = add i64 %1, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = urem i32 %13, 2
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = add i64 %4, 8
%17 = call i64 @FUNC(i64 %16)
%18 = add i64 %4, 24
%19 = call i64 @FUNC(i64 %18)
br label LBL_4
LBL_4:
%20 = ptrtoint i64* %arg2 to i64
%21 = call i64 @FUNC(i64 %20, i32* nonnull %sv_1, i64 4)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %24, label LBL_5, label LBL_7
LBL_5:
%25 = call i64 @FUNC(i64 %1, i64 %4)
store i64 %21, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%26 = call i64 @FUNC(i64 %4)
%sext = mul i64 %sv_0.0.reload, 4294967296
%27 = ashr exact i64 %sext, 32
store i64 %27, 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 %4, { 4, 3, 0, 2, 1, 5, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_7, { 2, 0, 1 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | GetXMLTreeContent_9975 | GetXMLTreeContent | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 27, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 305419896
br i1 %5, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 28, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_6, label LBL_5
LBL_5:
%11 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0))
br label LBL_6
LBL_6:
%12 = add i64 %6, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
ret i64 %14
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
} | 0 |
BinRealVul | audit_log_n_string_4388 | audit_log_n_string | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_4, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = trunc i64 %arg2 to i32
%5 = add i32 %4, 3
%6 = icmp sgt i32 %5, %3
br i1 %6, label LBL_2, label LBL_3
LBL_2:
%7 = zext i32 %5 to i64
%8 = call i64 @FUNC(i64 %1, i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
store i64 %8, i64* %rax.0.reg2mem
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = add i64 %1, 1
%12 = bitcast i64* %arg1 to i8*
store i8 34, i8* %12, align 1
%13 = inttoptr i64 %11 to i64*
%14 = inttoptr i64 %arg3 to i64*
%15 = call i64* @memcpy(i64* %13, i64* %14, i32 %4)
%16 = add i64 %11, %arg2
%17 = add i64 %16, 1
%18 = inttoptr i64 %16 to i8*
store i8 34, i8* %18, align 1
%19 = inttoptr i64 %17 to i8*
store i8 0, i8* %19, align 1
%20 = add i64 %arg2, 2
%21 = call i64 @FUNC(i64 %1, i64 %20)
store i64 %21, 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 %16, { 1, 0 }
uselistorder i64 %1, { 1, 0, 2, 3 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_4, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | get_die_name_6135 | get_die_name | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 1)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, -1
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%sext = mul i64 %1, 4294967296
%4 = ashr exact i64 %sext, 29
%5 = add i64 %4, %0
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = inttoptr i64 %7 to i8*
%10 = call i8* @strdup(i8* %9)
%11 = ptrtoint i8* %10 to i64
store i64 %11, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
%12 = add i64 %0, 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)
store i64 %16, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | lxcfs_getattr_9979 | lxcfs_getattr | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = inttoptr i64 %arg1 to i8*
%2 = call i32 @strcmp(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i32*
store i32 16877, i32* %6, align 4
%7 = add i64 %0, 16
%8 = inttoptr i64 %7 to i64*
store i64 2, i64* %8, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_2:
%9 = call i32 @strncmp(i8* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i32 7)
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %arg1, i64 %0)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_6
LBL_4:
%13 = call i32 @strncmp(i8* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0), i32 5)
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %15, label LBL_6, label LBL_5
LBL_5:
%16 = call i64 @FUNC(i64 %arg1, i64 %0)
store i64 %16, 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, { 3, 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i32 (i8*, i8*, i32)* @strncmp, { 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_6, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | map_create_19023 | map_create | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 0
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_10
LBL_1:
%6 = trunc i64 %3 to i32
%7 = add i32 %6, 1
%8 = icmp ult i32 %7, 2
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_10
LBL_2:
%9 = call i64* @malloc(i32 304)
%10 = icmp ugt i64* %9, inttoptr (i64 -1001 to i64*)
br i1 %10, label LBL_3, label LBL_4
LBL_3:
%11 = ptrtoint i64* %9 to i64
store i64 %11, i64* %rax.0.reg2mem
br label LBL_10
LBL_4:
%12 = bitcast i64* %rdi to i32*
%13 = bitcast i64* %9 to i8*
%14 = bitcast i64* %arg1 to i8*
%15 = call i8* @strncpy(i8* %13, i8* %14, i32 256)
%16 = ptrtoint i64* %9 to i64
%17 = add i64 %16, 256
%18 = inttoptr i64 %17 to i32*
store i32 1, i32* %18, align 4
%19 = add i64 %16, 260
%20 = inttoptr i64 %19 to i32*
store i32 1, i32* %20, align 4
%21 = add i64 %16, 268
%22 = inttoptr i64 %21 to i32*
store i32 -22, i32* %22, align 4
%23 = load i32, i32* %12, align 8
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
store i64 0, i64* %rax.0.reg2mem
br i1 %25, label LBL_5, label LBL_10
LBL_5:
%26 = zext i32 %23 to i64
%27 = call i64 @FUNC(i64 %26)
%sext = mul i64 %27, 4294967296
%28 = ashr exact i64 %sext, 32
%29 = icmp ult i64 %28, -1001
%30 = icmp eq i64 %sext, -4299262263296
%31 = or i1 %30, %29
store i64 %28, i64* %sv_0.0.reg2mem
br i1 %31, label LBL_6, label LBL_9
LBL_6:
%32 = add i64 %16, 272
%33 = inttoptr i64 %32 to i64*
store i64 %28, i64* %33, align 8
%34 = load i32, i32* %12, align 8
%35 = icmp eq i32 %34, 0
br i1 %35, label LBL_8, label LBL_7
LBL_7:
%36 = call i64 @FUNC(i64 %16, i64 %28, i32 %34, i32 %34)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 0
%39 = icmp eq i1 %38, false
store i64 %36, i64* %sv_0.0.reg2mem
br i1 %39, label LBL_9, label LBL_8
LBL_8:
%40 = add i64 %16, 280
%41 = inttoptr i64 %40 to i32*
store i32 %34, i32* %41, align 4
%42 = load i32, i32* %12, align 8
%43 = add i64 %16, 284
%44 = inttoptr i64 %43 to i32*
store i32 %42, i32* %44, align 4
%45 = load i32, i32* %12, align 8
%46 = add i64 %16, 288
%47 = inttoptr i64 %46 to i32*
store i32 %45, i32* %47, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_9:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%48 = and i64 %sv_0.0.reload, 4294967295
store i64 %48, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %34, { 0, 2, 1, 3 }
uselistorder i64 %28, { 1, 2, 0, 3 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %16, { 1, 2, 3, 0, 4, 5, 6, 7 }
uselistorder i64* %9, { 1, 3, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 2, 3, 6, 4, 1 }
uselistorder i64 -1001, { 1, 0 }
uselistorder i64 4294967274, { 1, 0 }
uselistorder label LBL_10, { 4, 1, 2, 5, 3, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | config_input_18000 | config_input | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = add i64 %2, 16
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = zext i32 %10 to i64
%12 = call i64 @FUNC(i64 %11)
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i64 %12, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = trunc i64 %1 to i32
%19 = add i32 %18, 15
%20 = and i32 %19, -16
%21 = add i64 %7, 8
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = add i32 %23, 1
%25 = mul i32 %24, %20
%26 = ashr exact i32 %25, 1
%27 = add nsw i32 %26, 32
%28 = sext i32 %27 to i64
%29 = mul i64 %28, 2
%30 = call i64 @FUNC(i64 %29)
%31 = inttoptr i64 %7 to i64*
store i64 %30, i64* %31, align 8
%32 = icmp eq i64 %30, 0
%33 = icmp eq i1 %32, false
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %33, label LBL_1, label LBL_2
LBL_1:
%34 = bitcast i64* %rdi to i32*
%35 = load i32, i32* %34, align 8
%36 = sub i32 0, %35
%37 = urem i32 %14, 32
%38 = ashr i32 %36, %37
%39 = sub i32 0, %38
%40 = add i64 %7, 12
%41 = inttoptr i64 %40 to i32*
store i32 %39, i32* %41, align 4
%42 = add i64 %2, 4
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = sub i32 0, %44
%46 = urem i32 %17, 32
%47 = ashr i32 %45, %46
%48 = sub i32 0, %47
%49 = add i64 %7, 16
%50 = inttoptr i64 %49 to i32*
store i32 %48, i32* %50, align 4
%51 = load i32, i32* %22, align 4
%52 = ashr i32 %51, %37
%53 = ashr i32 %51, %46
%54 = add i32 %53, %52
%55 = icmp slt i32 %54, 0
%56 = zext i1 %55 to i32
%57 = add i32 %54, %56
%58 = ashr i32 %57, 1
%59 = add nsw i32 %58, 1
%60 = and i32 %59, -2
%61 = zext i32 %60 to i64
%62 = call i64 @FUNC(i64 %61, i64 4, i64 32)
%63 = trunc i64 %62 to i32
%64 = add i64 %7, 20
%65 = inttoptr i64 %64 to i32*
store i32 %63, i32* %65, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %46, { 1, 0 }
uselistorder i32 %37, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 32, { 2, 0, 1 }
uselistorder i32 0, { 0, 2, 3, 4, 5, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | test_validate_fail_struct_18926 | test_validate_fail_struct | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
store i64 0, i64* %sv_1, align 8
store i64 0, i64* %sv_0, align 8
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @gv_0, i64 0, i64 0))
%2 = call i64 @FUNC(i64 %1, i64* nonnull %sv_1, i64 0, i64* nonnull %sv_0)
%3 = load i64, i64* %sv_0, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = load i64, i64* %sv_0, align 8
%6 = call i64 @FUNC(i64 %5)
%7 = load i64, i64* %sv_1, align 8
%8 = icmp eq i64 %7, 0
store i64 0, i64* %.reg2mem
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = add i64 %7, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11)
%.pre = load i64, i64* %sv_1, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
%13 = call i64 @FUNC(i64 %.reload)
ret i64 %13
uselistorder i64* %sv_1, { 0, 2, 1, 3 }
uselistorder i64* %sv_0, { 1, 2, 0, 3 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @g_free, { 1, 0 }
} | 1 |
BinRealVul | clear_eir_4701 | clear_eir | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = add i64 %0, 6
%2 = inttoptr i64 %1 to i8*
%3 = load i8, i8* %2, align 1
%4 = urem i8 %3, 2
%5 = icmp eq i8 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i64*
%9 = call i64* @memset(i64* %8, i32 0, i32 240)
%10 = call i64 @FUNC(i64 %0, i64 2, i64 0, i64* nonnull %sv_0)
store i64 %10, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | av_log_default_callback_16577 | av_log_default_callback | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%sv_0 = alloca i8, align 1
%sv_1 = alloca i64, align 8
%0 = trunc i64 %arg2 to i32
%1 = ashr i32 %0, 8
%2 = zext i32 %1 to i64
%3 = call i64 @FUNC(i64 %2, i64 0, i64 256)
%4 = urem i32 %0, 256
%5 = load i32, i32* @gv_0, align 4
%6 = zext i32 %5 to i64
%7 = icmp ugt i32 %4, %5
store i64 %6, i64* %rax.0.reg2mem
br i1 %7, label LBL_18, label LBL_1
LBL_1:
store i8 0, i8* %sv_0, align 1
%8 = load i32, i32* inttoptr (i64 4210780 to i32*), align 4
%9 = icmp eq i32 %8, 0
%10 = icmp eq i64* %arg1, null
%or.cond = or i1 %10, %9
br i1 %or.cond, label LBL_1.LBL_8_crit_edge, label LBL_3
LBL_2:
%.pre = ptrtoint i8* %sv_0 to i64
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_8
LBL_3:
%11 = bitcast i64* %arg1 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_7, label LBL_4
LBL_4:
%14 = ptrtoint i64* %arg1 to i64
%15 = sext i32 %12 to i64
%16 = add i64 %15, %14
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 0
br i1 %19, label LBL_7, label LBL_5
LBL_5:
%20 = inttoptr i64 %18 to i64*
%21 = load i64, i64* %20, align 8
%22 = icmp eq i64 %21, 0
br i1 %22, label LBL_7, label LBL_6
LBL_6:
%23 = inttoptr i64 %18 to i8*
%24 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %sv_0, i32 1024, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0), i8* %23, i8* %23)
br label LBL_7
LBL_7:
%25 = call i32 @strlen(i8* nonnull %sv_0)
%26 = sub i32 1024, %25
%27 = call i32 @strlen(i8* nonnull %sv_0)
%28 = sext i32 %27 to i64
%29 = ptrtoint i8* %sv_0 to i64
%30 = add i64 %28, %29
%31 = inttoptr i64 %30 to i8*
%32 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %31, i32 %26, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %arg1, i64* nonnull %arg1)
store i64 %29, i64* %.pre-phi.reg2mem
br label LBL_8
LBL_8:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%33 = call i32 @strlen(i8* nonnull %sv_0)
%34 = sub i32 1024, %33
%35 = call i32 @strlen(i8* nonnull %sv_0)
%36 = sext i32 %35 to i64
%37 = add i64 %.pre-phi.reload, %36
%38 = inttoptr i64 %37 to i8*
%39 = call i32 @vsnprintf(i8* %38, i32 %34, i8* %arg3, i64 %arg4)
%40 = load i8, i8* %sv_0, align 1
%41 = icmp eq i8 %40, 0
br i1 %41, label LBL_10, label LBL_9
LBL_9:
%42 = ptrtoint i64* %sv_1 to i64
%43 = call i32 @strlen(i8* nonnull %sv_0)
%44 = sext i32 %43 to i64
%45 = add i64 %42, -1073
%46 = add i64 %45, %44
%47 = inttoptr i64 %46 to i8*
%48 = load i8, i8* %47, align 1
%49 = icmp eq i8 %48, 10
%50 = icmp eq i1 %49, false
br i1 %50, label LBL_10, label LBL_11
LBL_10:
store i32 0, i32* @gv_2, align 4
br label LBL_15
LBL_11:
store i32 1, i32* @gv_2, align 4
%51 = load i32, i32* @gv_3, align 4
%52 = urem i32 %51, 2
%53 = icmp eq i32 %52, 0
br i1 %53, label LBL_15, label LBL_12
LBL_12:
%54 = call i32 @strncmp(i8* nonnull %sv_0, i8* bitcast (i8** @gv_4 to i8*), i32 1024)
%55 = icmp eq i32 %54, 0
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_15, label LBL_13
LBL_13:
store i32 ptrtoint (i32* @gv_5 to i32), i32* @gv_6, align 4
%57 = load i32, i32* inttoptr (i64 4211844 to i32*), align 4
%58 = zext i32 %57 to i64
%59 = icmp eq i32 %57, 1
%60 = icmp eq i1 %59, false
store i64 %58, i64* %rax.0.reg2mem
br i1 %60, label LBL_18, label LBL_14
LBL_14:
%61 = load %_IO_FILE*, %_IO_FILE** @gv_7, align 8
%62 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %61, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_8, i64 0, i64 0), i64 zext (i32 ptrtoint (i32* @gv_5 to i32) to i64))
%63 = sext i32 %62 to i64
store i64 %63, i64* %rax.0.reg2mem
br label LBL_18
LBL_15:
%64 = load i32, i32* @gv_6, align 4
%65 = icmp slt i32 %64, 1
br i1 %65, label LBL_17, label LBL_16
LBL_16:
%66 = zext i32 %64 to i64
%67 = load %_IO_FILE*, %_IO_FILE** @gv_7, align 8
%68 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %67, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_9, i64 0, i64 0), i64 %66)
store i32 0, i32* @gv_6, align 4
br label LBL_17
LBL_17:
%69 = udiv i32 %4, 8
%70 = zext i32 %69 to i64
%71 = call i64 @FUNC(i64 %70, i64 0, i64 6)
%72 = and i64 %3, 4294967295
%73 = and i64 %71, 4294967295
%74 = call i64 @FUNC(i64 %73, i64 %72, i8* nonnull %sv_0)
%75 = call i64 @FUNC(i64* bitcast (i8** @gv_4 to i64*), i8* nonnull %sv_0, i64 1024)
store i64 %75, 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* %23, { 1, 0 }
uselistorder i64 %18, { 1, 0, 2 }
uselistorder i8* %sv_0, { 1, 2, 3, 4, 10, 5, 6, 11, 7, 8, 9, 0, 12 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2, 4 }
uselistorder i64 4294967295, { 2, 0, 1 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0 }
uselistorder %_IO_FILE** @gv_7, { 2, 1, 0 }
uselistorder i32* @gv_6, { 2, 1, 0 }
uselistorder i32* @gv_2, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 1024, { 2, 0, 1, 3 }
uselistorder i32 0, { 3, 4, 5, 0, 6, 7, 1, 2 }
uselistorder i8 0, { 2, 1, 3, 0 }
uselistorder i64 (i64, i64, i64)* @av_clip, { 1, 0 }
uselistorder i64* %arg1, { 1, 0, 4, 2, 3 }
uselistorder label LBL_18, { 3, 1, 0, 2 }
uselistorder label LBL_15, { 1, 2, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | is_default_salt_p_10222 | is_default_salt_p | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg2, null
%3 = icmp eq i1 %2, false
store i64 1, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_3
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = trunc i64 %4 to i32
%6 = trunc i64 %1 to i32
%7 = icmp eq i32 %6, %5
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_3
LBL_2:
%8 = add i64 %4, 8
%9 = ptrtoint i32* %arg1 to i64
%10 = add i64 %9, 8
%11 = call i64 @FUNC(i64 %10, i64 %8)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
%. = zext i1 %13 to i64
store i64 %., 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* %arg2, { 1, 0 }
} | 0 |
BinRealVul | tcp_wait_for_connect_5093 | tcp_wait_for_connect | define i64 @FUNC(i64 %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg3 to i64
%5 = ptrtoint i64* %arg2 to i64
%6 = trunc i64 %arg1 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 = call i64 @FUNC(i64 %5)
%10 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i64 %9, i64 %4, i64 %3, i64 %2, i64 %1)
store i64 0, i64* %arg3, align 8
%11 = call i64 @FUNC(i64 %4, i64 %5)
store i64 %11, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%12 = and i64 %arg1, 4294967295
%13 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %5, i64 %4, i64 %3, i64 %2, i64 %1)
%14 = call i64 @FUNC(i64 %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0))
store i64 %14, i64* %arg3, align 8
%15 = call i64 @FUNC(i64 %4)
store i64 %15, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %5, { 2, 0, 1 }
uselistorder i64 %4, { 2, 3, 0, 1 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @DPRINTF, { 1, 0 }
} | 0 |
BinRealVul | clk_divider_round_rate_18189 | clk_divider_round_rate | define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i32* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = urem i32 %3, 2
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = add i64 %1, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8)
%10 = add i64 %1, 16
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = urem i32 %12, 64
%14 = zext i32 %13 to i64
%rdx.0 = lshr i64 %9, %14
%15 = add i64 %1, 20
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = zext i32 %17 to i64
%19 = call i64 @FUNC(i64 %18)
%20 = load i32, i32* %2, align 4
%21 = zext i32 %20 to i64
%22 = add i64 %1, 24
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = and i64 %19, 4294967295
%26 = and i64 %25, %rdx.0
%27 = call i64 @FUNC(i64 %24, i64 %26, i32 %20)
%sext = mul i64 %27, 4294967296
%28 = ashr exact i64 %sext, 32
%29 = add nsw i64 %21, -1
%30 = add nsw i64 %29, %28
%31 = udiv i64 %30, %28
store i64 %31, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%32 = ptrtoint i64* %arg3 to i64
%33 = add i64 %1, 20
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = add i64 %1, 24
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = zext i32 %3 to i64
%40 = zext i32 %35 to i64
%41 = call i64 @FUNC(i64 %0, i64 %arg2, i64 %32, i64 %38, i64 %40, i64 %39)
store i64 %41, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %28, { 1, 0 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %1, { 4, 5, 0, 1, 2, 3, 6 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 1, 0, 2 }
} | 1 |
BinRealVul | vterm_new_with_allocator_6257 | vterm_new_with_allocator | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg4, 0
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_5
LBL_1:
%2 = ptrtoint i64* %arg3 to i64
%3 = inttoptr i64 %arg4 to i64*
store i64 %2, i64* %3, align 8
%4 = add i64 %arg4, 8
%5 = inttoptr i64 %4 to i64*
store i64 %arg4, i64* %5, align 8
%6 = trunc i64 %arg1 to i32
%7 = add i64 %arg4, 16
%8 = inttoptr i64 %7 to i32*
store i32 %6, i32* %8, align 4
%9 = trunc i64 %arg2 to i32
%10 = add i64 %arg4, 20
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 4
%12 = add i64 %arg4, 24
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
%14 = add i64 %arg4, 32
%15 = inttoptr i64 %14 to i64*
store i64 0, i64* %15, align 8
%16 = add i64 %arg4, 40
%17 = inttoptr i64 %16 to i64*
store i64 0, i64* %17, align 8
%18 = add i64 %arg4, 48
%19 = inttoptr i64 %18 to i32*
store i32 500, i32* %19, align 4
%20 = add i64 %arg4, 52
%21 = inttoptr i64 %20 to i32*
store i32 0, i32* %21, align 4
%22 = load i32, i32* %19, align 4
%23 = sext i32 %22 to i64
%24 = call i64 @FUNC(i64 %arg4, i64 %23)
%25 = add i64 %arg4, 56
%26 = inttoptr i64 %25 to i64*
store i64 %24, i64* %26, align 8
%27 = icmp eq i64 %24, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_3, label LBL_2
LBL_2:
%29 = call i64 @FUNC(i64 %arg4, i64 %arg4)
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_3:
%30 = add i64 %arg4, 64
%31 = inttoptr i64 %30 to i32*
store i32 200, i32* %31, align 4
%32 = add i64 %arg4, 68
%33 = inttoptr i64 %32 to i32*
store i32 0, i32* %33, align 4
%34 = load i32, i32* %31, align 4
%35 = sext i32 %34 to i64
%36 = call i64 @FUNC(i64 %arg4, i64 %35)
%37 = add i64 %arg4, 72
%38 = inttoptr i64 %37 to i64*
store i64 %36, i64* %38, align 8
%39 = icmp eq i64 %36, 0
%40 = icmp eq i1 %39, false
store i64 %arg4, i64* %rax.0.reg2mem
br i1 %40, label LBL_5, label LBL_4
LBL_4:
%41 = load i64, i64* %26, align 8
%42 = call i64 @FUNC(i64 %arg4, i64 %41)
%43 = call i64 @FUNC(i64 %arg4, i64 %arg4)
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* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64 (i64, i64)* @vterm_allocator_malloc, { 1, 0 }
uselistorder i64 %arg4, { 1, 2, 3, 0, 4, 5, 6, 9, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 }
uselistorder label LBL_5, { 2, 0, 3, 1 }
} | 0 |
BinRealVul | fgetwln_5470 | fgetwln | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64*
%0 = load i32, i32* @gv_0, align 4
%1 = sext i32 %0 to i64
%2 = mul nsw i64 %1, 24
%3 = add i64 %2, ptrtoint (i64* @gv_1 to i64)
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, %arg1
%7 = icmp eq i64 %5, 0
%or.cond = or i1 %6, %7
store i64* %4, i64** %.pre-phi.reg2mem
store i64 %3, i64* %sv_1.0.reg2mem
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%8 = urem i32 %0, 2
%9 = xor i32 %8, 1
store i32 %9, i32* @gv_0, align 4
%10 = mul i32 %9, 2
%11 = or i32 %10, %9
%12 = mul i32 %11, 8
%13 = zext i32 %12 to i64
%14 = add i64 %13, ptrtoint (i64* @gv_1 to i64)
%.pre3 = inttoptr i64 %14 to i64*
store i64* %.pre3, i64** %.pre-phi.reg2mem
store i64 %14, i64* %sv_1.0.reg2mem
br label LBL_2
LBL_2:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%.pre-phi.reload = load i64*, i64** %.pre-phi.reg2mem
store i64 %arg1, i64* %.pre-phi.reload, align 8
%15 = inttoptr i64 %arg1 to %_IO_FILE*
%16 = add i64 %sv_1.0.reload, 16
%17 = inttoptr i64 %16 to i64*
%18 = add i64 %sv_1.0.reload, 8
%19 = inttoptr i64 %18 to i64*
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_3:
%20 = load i64, i64* %17, align 8
%21 = icmp ult i64 %sv_0.0.reload, %20
br i1 %21, label LBL_3.LBL_8_crit_edge, label LBL_5
LBL_4:
%.pre = load i64, i64* %19, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_8
LBL_5:
%22 = icmp eq i64 %20, 0
%23 = mul i64 %20, 2
%storemerge1 = select i1 %22, i64 16, i64 %23
store i64 %storemerge1, i64* %17, align 8
%24 = load i64, i64* %19, align 8
%25 = call i64 @reallocarray(i64 %24, i64 %storemerge1, i64 4)
%26 = icmp eq i64 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_7, label LBL_6
LBL_6:
store i64 0, i64* %arg2, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_12
LBL_7:
store i64 %25, i64* %19, align 8
store i64 %25, i64* %.reg2mem
br label LBL_8
LBL_8:
%.reload = load i64, i64* %.reg2mem
%28 = add i64 %sv_0.0.reload, 1
%29 = mul i64 %sv_0.0.reload, 4
%30 = add i64 %.reload, %29
%31 = inttoptr i64 %30 to i32*
store i32 %33, i32* %31, align 4
%32 = icmp eq i32 %33, 10
store i64 %28, i64* %sv_0.0.reg2mem
store i64 %28, i64* %sv_0.1.reg2mem
br i1 %32, label LBL_10, label LBL_9
LBL_9:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%33 = call i32 @fgetwc(%_IO_FILE* %15)
%34 = icmp eq i32 %33, -1
%35 = icmp eq i1 %34, false
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br i1 %35, label LBL_3, label LBL_10
LBL_10:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
store i64 %sv_0.1.reload, i64* %arg2, align 8
%36 = icmp eq i64 %sv_0.1.reload, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %36, label LBL_12, label LBL_11
LBL_11:
%37 = load i64, i64* %19, align 8
store i64 %37, i64* %storemerge.reg2mem
br label LBL_12
LBL_12:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_0.1.reload, { 1, 0 }
uselistorder i32 %33, { 2, 1, 0 }
uselistorder i64 %sv_0.0.reload, { 0, 2, 1, 3 }
uselistorder i64* %19, { 0, 2, 3, 1 }
uselistorder i64 %sv_1.0.reload, { 1, 0 }
uselistorder i32 %9, { 1, 0, 2 }
uselistorder i64** %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* @gv_0, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_12, { 2, 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 0 |
BinRealVul | device_space_6338 | device_space | define i64 @FUNC(i64* %arg1, i16* %arg2, i64* %arg3, i64* %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i128
%storemerge5.reg2mem = alloca i128
%zf.0.reg2mem = alloca i1
%pf.0.in.in.reg2mem = alloca i8
%storemerge6.reg2mem = alloca i128
%storemerge7.reg2mem = alloca i128
%2 = load i128, i128* %0
%3 = load i128, i128* %0
%4 = ptrtoint i64* %arg3 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = load i32, i32* %1
%7 = load i32, i32* %1
%sv_0 = alloca i32, align 4
%8 = call i128 @FUNC(i128 %3, i128 %3)
%9 = call i64 @FUNC(i128 %8)
%10 = trunc i64 %9 to i32
%11 = call i64 @FUNC(i64 %5, i64 %4)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = call i128 @__asm_movss.1(i32 %10)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_18
LBL_2:
%15 = bitcast i16* %arg2 to i8*
%16 = bitcast i32* %sv_0 to %statvfs*
%17 = call i32 @statvfs(i8* %15, %statvfs* nonnull %16)
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%19 = sext i32 %17 to i64
%20 = call i128 @__asm_movss.1(i32 %10)
store i64 %19, i64* %rax.0.reg2mem
br label LBL_18
LBL_4:
%21 = sext i32 %7 to i64
%22 = icmp slt i32 %7, 0
br i1 %22, label LBL_6, label LBL_5
LBL_5:
%23 = call i128 @FUNC(i128 %8, i128 %8)
%24 = call i128 @FUNC(i64 %21)
store i128 %24, i128* %storemerge7.reg2mem
br label LBL_7
LBL_6:
%25 = udiv i64 %21, 2
%26 = urem i64 %21, 2
%27 = or i64 %25, %26
%28 = call i128 @FUNC(i128 %8, i128 %8)
%29 = call i128 @FUNC(i64 %27)
%30 = call i128 @FUNC(i128 %29, i128 %29)
store i128 %30, i128* %storemerge7.reg2mem
br label LBL_7
LBL_7:
%storemerge7.reload = load i128, i128* %storemerge7.reg2mem
%31 = call i64 @FUNC(i128 %storemerge7.reload)
%32 = sext i32 %6 to i64
%33 = icmp slt i32 %6, 0
br i1 %33, label LBL_9, label LBL_8
LBL_8:
%34 = call i128 @FUNC(i128 %storemerge7.reload, i128 %storemerge7.reload)
%35 = call i128 @FUNC(i64 %32)
store i128 %35, i128* %storemerge6.reg2mem
br label LBL_10
LBL_9:
%36 = udiv i64 %32, 2
%37 = urem i64 %32, 2
%38 = or i64 %36, %37
%39 = call i128 @FUNC(i128 %storemerge7.reload, i128 %storemerge7.reload)
%40 = call i128 @FUNC(i64 %38)
%41 = call i128 @FUNC(i128 %40, i128 %40)
store i128 %41, i128* %storemerge6.reg2mem
br label LBL_10
LBL_10:
%storemerge6.reload = load i128, i128* %storemerge6.reg2mem
%42 = call i64 @FUNC(i128 %storemerge6.reload)
%43 = load i32, i32* %sv_0, align 4
%44 = sext i32 %43 to i64
%45 = icmp slt i32 %43, 0
br i1 %45, label LBL_12, label LBL_11
LBL_11:
%46 = trunc i32 %43 to i8
%47 = call i8 @llvm.ctpop.i8(i8 %46), !range !43
%48 = icmp eq i32 %43, 0
%49 = call i128 @FUNC(i128 %storemerge6.reload, i128 %storemerge6.reload)
%50 = call i128 @FUNC(i64 %44)
store i8 %47, i8* %pf.0.in.in.reg2mem
store i1 %48, i1* %zf.0.reg2mem
store i128 %50, i128* %storemerge5.reg2mem
br label LBL_13
LBL_12:
%51 = udiv i64 %44, 2
%52 = urem i64 %44, 2
%53 = or i64 %51, %52
%54 = icmp eq i64 %53, 0
%55 = trunc i64 %53 to i8
%56 = call i8 @llvm.ctpop.i8(i8 %55), !range !43
%57 = call i128 @FUNC(i128 %storemerge6.reload, i128 %storemerge6.reload)
%58 = call i128 @FUNC(i64 %53)
%59 = call i128 @FUNC(i128 %58, i128 %58)
store i8 %56, i8* %pf.0.in.in.reg2mem
store i1 %54, i1* %zf.0.reg2mem
store i128 %59, i128* %storemerge5.reg2mem
br label LBL_13
LBL_13:
%60 = ptrtoint i64* %arg5 to i64
%61 = ptrtoint i64* %arg4 to i64
%storemerge5.reload = load i128, i128* %storemerge5.reg2mem
%pf.0.in.in.reload = load i8, i8* %pf.0.in.in.reg2mem
%pf.0.in = urem i8 %pf.0.in.in.reload, 2
%pf.0 = icmp eq i8 %pf.0.in, 0
%62 = call i64 @FUNC(i128 %storemerge5.reload)
%63 = call i128 @__asm_movsd.2(i64 %61)
%64 = call i128 @__asm_movsd.2(i64 %42)
%65 = call i128 @FUNC(i128 %64, i64 %62)
%66 = call i128 @FUNC(i128 %65, i128 %63)
%67 = call i64 @FUNC(i128 %66)
store i64 %67, i64* %arg4, align 8
%68 = call i128 @__asm_movsd.2(i64 %60)
%69 = call i128 @__asm_movsd.2(i64 %31)
%70 = call i128 @FUNC(i128 %69, i64 %62)
%71 = call i128 @FUNC(i128 %70, i128 %68)
%72 = call i64 @FUNC(i128 %71)
store i64 %72, i64* %arg5, align 8
%73 = call i128 @FUNC(i128 %71, i128 %71)
call void @FUNC(i128 %73, i64 %42)
br i1 %pf.0, label LBL_15, label LBL_14
LBL_14:
%zf.0.reload = load i1, i1* %zf.0.reg2mem
%74 = call i128 @FUNC(i128 %73, i128 %73)
call void @FUNC(i128 %74, i64 %42)
br i1 %zf.0.reload, label LBL_16, label LBL_15
LBL_15:
%75 = call i128 @__asm_movsd.2(i64 %42)
%76 = call i128 @FUNC(i128 %75, i64 %31)
%77 = call i128 @FUNC(i128 %68, i128 %68)
%78 = call i128 @FUNC(i64 %42)
%79 = call i128 @FUNC(i128 %2, i128 %2)
%80 = call i128 @FUNC(i128 %78)
%81 = call i128 @FUNC(i128 %76)
%82 = call i128 @FUNC(i128 %81, i128 %80)
%83 = call i128 @__asm_movsd.2(i64 4636737291354636288)
%84 = call i128 @__asm_mulsd.3(i128 %83, i128 %82)
%85 = call i128 @__asm_cvtsd2ss.4(i128 %84)
store i128 %85, i128* %storemerge.reg2mem
br label LBL_17
LBL_16:
%86 = call i128 @FUNC(i128 %74, i128 %74)
store i128 %86, i128* %storemerge.reg2mem
br label LBL_17
LBL_17:
%storemerge.reload = load i128, i128* %storemerge.reg2mem
%87 = call i64 @FUNC(i128 %storemerge.reload)
%88 = trunc i64 %87 to i32
%89 = call i128 @__asm_movss.1(i32 %88)
store i64 %60, 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 i128 %74, { 1, 0, 2 }
uselistorder i128 %73, { 1, 0, 2 }
uselistorder i128 %71, { 2, 1, 0 }
uselistorder i128 %68, { 1, 0, 2 }
uselistorder i64 %62, { 1, 0 }
uselistorder i128 %58, { 1, 0 }
uselistorder i64 %44, { 1, 0, 2 }
uselistorder i32 %43, { 2, 0, 1, 3 }
uselistorder i64 %42, { 2, 1, 0, 3, 4 }
uselistorder i128 %storemerge6.reload, { 1, 2, 3, 4, 0 }
uselistorder i128 %40, { 1, 0 }
uselistorder i64 %32, { 1, 0, 2 }
uselistorder i128 %storemerge7.reload, { 1, 2, 3, 4, 0 }
uselistorder i128 %29, { 1, 0 }
uselistorder i64 %21, { 1, 0, 2 }
uselistorder i32 %17, { 1, 0 }
uselistorder i32 %10, { 1, 0 }
uselistorder i128 %8, { 3, 2, 1, 0, 4 }
uselistorder i128* %storemerge7.reg2mem, { 0, 2, 1 }
uselistorder i128* %storemerge6.reg2mem, { 0, 2, 1 }
uselistorder i8* %pf.0.in.in.reg2mem, { 0, 2, 1 }
uselistorder i1* %zf.0.reg2mem, { 0, 2, 1 }
uselistorder i128* %storemerge5.reg2mem, { 0, 2, 1 }
uselistorder i128* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %1, { 1, 0 }
uselistorder i128* %0, { 1, 0 }
uselistorder i64 2, { 1, 0, 3, 2, 5, 4 }
uselistorder i32 0, { 1, 0, 2, 3, 4, 5 }
} | 0 |
BinRealVul | td_alloc_init_desc_4031 | td_alloc_init_desc | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = call i64 @FUNC(i64 40, i64 0)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = ptrtoint i32* %arg1 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %5, i64 %2, i64 %1)
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_2:
%12 = inttoptr i64 %6 to i32*
%13 = trunc i64 %3 to i32
%14 = mul i32 %13, 64
store i32 %14, i32* %12, align 4
%15 = sext i32 %14 to i64
%16 = call i64 @FUNC(i64 %15, i64 0)
%17 = add i64 %6, 8
%18 = inttoptr i64 %17 to i64*
store i64 %16, i64* %18, align 8
%19 = icmp eq i64 %16, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = ptrtoint i32* %arg1 to i64
%22 = call i64 @FUNC(i64 %21)
%23 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0), i64 %6, i64 %5, i64 %2, i64 %1)
br label LBL_6
LBL_4:
%24 = add i64 %6, 16
%25 = ptrtoint i32* %arg1 to i64
%26 = call i64 @FUNC(i64 %24, i64 %25)
%27 = inttoptr i64 %24 to i64*
store i64 4199054, i64* %27, align 8
%28 = add i64 %6, 24
%29 = inttoptr i64 %28 to i32*
store i32 2, i32* %29, align 4
%30 = load i32, i32* %12, align 4
%31 = sext i32 %30 to i64
%32 = load i64, i64* %18, align 8
%33 = call i64 @FUNC(i64 %25)
%34 = call i64 @FUNC(i64 %33, i64 %32, i64 %31, i64 1)
%35 = add i64 %6, 32
%36 = inttoptr i64 %35 to i64*
store i64 %34, i64* %36, align 8
%37 = call i64 @FUNC(i64 %25)
%38 = call i64 @FUNC(i64 %37, i64 %34)
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
store i64 %6, i64* %storemerge.reg2mem
br i1 %40, label LBL_7, label LBL_5
LBL_5:
%41 = call i64 @FUNC(i64 %25)
%42 = and i64 %38, 4294967295
%43 = call i64 @FUNC(i64 %41, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_1, i64 0, i64 0), i64 %42, i64 %41, i64 %2, i64 %1)
br label LBL_6
LBL_6:
%44 = load i64, i64* %18, align 8
%45 = call i64 @FUNC(i64 %44)
%46 = call i64 @FUNC(i64 %6)
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %41, { 1, 0 }
uselistorder i32 %14, { 1, 0 }
uselistorder i64 %6, { 3, 0, 1, 2, 4, 5, 6, 7, 8 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @kfree, { 1, 0 }
uselistorder i64 (i64)* @chan2dmadev, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @dev_err, { 2, 1, 0 }
uselistorder i64 (i64)* @chan2dev, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @kzalloc, { 1, 0 }
uselistorder i32* %arg1, { 2, 1, 0 }
uselistorder label LBL_7, { 2, 0, 1 }
} | 0 |
BinRealVul | av1dmx_parse_flush_sample_12913 | av1dmx_parse_flush_sample | 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
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
store i32 0, i32* %sv_1, align 4
store i64 0, i64* %sv_0, align 8
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 1, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_15
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = add i64 %5, 8
%7 = add i64 %5, 16
%8 = add i64 %5, 72
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10, i64 %7, i32* nonnull %sv_1, i64 %6)
%12 = load i32, i32* %sv_1, align 4
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = call i64 @FUNC(i64 3, i64 4, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_3:
%16 = zext i32 %12 to i64
%17 = and i64 %1, 4294967295
%18 = call i64 @FUNC(i64 %17, i64 %16, i64* nonnull %sv_0)
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
store i64 2, i64* %rax.0.reg2mem
br i1 %20, label LBL_4, label LBL_15
LBL_4:
%21 = add i64 %5, 96
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %23, 0
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%25 = call i64 @FUNC(i64 %23, i64 %18)
br label LBL_6
LBL_6:
%26 = add i64 %5, 80
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = zext i32 %28 to i64
%30 = call i64 @FUNC(i64 %18, i64 %29)
%31 = add i64 %5, 24
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, 0
%. = select i1 %34, i64 0, i64 5
%35 = call i64 @FUNC(i64 %18, i64 %.)
%36 = load i32, i32* %sv_1, align 4
%37 = inttoptr i64 %7 to i64*
%38 = load i64, i64* %37, align 8
%39 = load i64, i64* %sv_0, align 8
%40 = inttoptr i64 %39 to i64*
%41 = inttoptr i64 %38 to i64*
%42 = call i64* @memcpy(i64* %40, i64* %41, i32 %36)
%43 = add i64 %5, 104
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = icmp eq i64 %45, 0
br i1 %46, label LBL_8, label LBL_7
LBL_7:
%47 = load i32, i32* %32, align 4
%48 = icmp eq i32 %47, 0
%49 = select i1 %48, i64 16, i64 32
%50 = add i64 %5, 28
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = icmp eq i32 %52, 0
%storemerge = select i1 %53, i64 8, i64 4
%54 = or i64 %storemerge, %49
%55 = call i64 @FUNC(i64 %18, i64 %54)
br label LBL_8
LBL_8:
%56 = add i64 %5, 32
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = icmp eq i32 %58, 0
br i1 %59, label LBL_11, label LBL_9
LBL_9:
%60 = add i64 %5, 40
%61 = call i64 @FUNC(i64 %60, i64 4)
%62 = trunc i64 %61 to i32
%63 = add i64 %5, 84
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = icmp eq i32 %65, %62
br i1 %66, label LBL_11, label LBL_10
LBL_10:
%67 = call i64 @FUNC(i64 %18, i64 6, i64 %60)
br label LBL_11
LBL_11:
%68 = add i64 %5, 36
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = icmp eq i32 %70, 0
br i1 %71, label LBL_14, label LBL_12
LBL_12:
%72 = add i64 %5, 44
%73 = call i64 @FUNC(i64 %72, i64 24)
%74 = trunc i64 %73 to i32
%75 = add i64 %5, 88
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = icmp eq i32 %77, %74
br i1 %78, label LBL_14, label LBL_13
LBL_13:
%79 = call i64 @FUNC(i64 %5, i64 0, i64 %18)
br label LBL_14
LBL_14:
%80 = call i64 @FUNC(i64 %18)
%81 = call i64 @FUNC(i64 %5)
%82 = call i64 @FUNC(i64 %6, i64 0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %18, { 3, 2, 1, 0, 4, 5, 6, 7 }
uselistorder i64 %5, { 4, 3, 2, 6, 5, 1, 8, 7, 0, 9, 10, 11, 12, 15, 14, 13 }
uselistorder i32* %sv_1, { 1, 2, 0, 3 }
uselistorder i64* %sv_0, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64 (i64, i64)* @gf_crc_32, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 4, { 1, 0, 2 }
uselistorder i32 0, { 2, 3, 4, 5, 6, 7, 8, 1, 9, 0 }
uselistorder label LBL_15, { 2, 0, 3, 1 }
} | 1 |
BinRealVul | map_linear_vram_3440 | map_linear_vram | 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* %arg1, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_4, label LBL_1
LBL_1:
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
store i64 %0, i64* %rax.0.reg2mem
br i1 %7, label LBL_11, label LBL_2
LBL_2:
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
store i64 %0, i64* %rax.0.reg2mem
br i1 %11, label LBL_11, label LBL_3
LBL_3:
store i64 %6, i64* %arg1, align 8
%12 = load i64, i64* %9, align 8
%13 = add i64 %0, 24
%14 = inttoptr i64 %13 to i64*
store i64 %12, i64* %14, align 8
%15 = add i64 %0, 32
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = sub i64 %12, %0
%19 = call i64 @FUNC(i64 %0, i64 %18, i64 %17)
store i64 %0, i64* %rax.0.reg2mem
br label LBL_11
LBL_4:
%20 = add i64 %0, 584
%21 = inttoptr i64 %20 to i32*
store i32 0, i32* %21, align 4
%22 = add i64 %0, 32
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = add i64 %0, 40
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = add i64 %27, %24
%29 = call i64 @FUNC(i64 655360, i64 32768, i64 %28)
%30 = load i64, i64* %23, align 8
%31 = add i64 %0, 48
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = add i64 %33, %30
%35 = call i64 @FUNC(i64 688128, i64 32768, i64 %34)
%36 = add i64 %0, 56
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = add i64 %0, 64
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = icmp eq i64 %38, %41
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_9, label LBL_5
LBL_5:
%44 = add i64 %0, 79
%45 = inttoptr i64 %44 to i8*
%46 = load i8, i8* %45, align 1
%47 = urem i8 %46, 2
%48 = icmp eq i8 %47, 0
br i1 %48, label LBL_9, label LBL_6
LBL_6:
%49 = add i64 %0, 339
%50 = inttoptr i64 %49 to i8*
%51 = load i8, i8* %50, align 1
%52 = and i8 %51, 20
%53 = icmp eq i8 %52, 20
br i1 %53, label LBL_9, label LBL_7
LBL_7:
%54 = and i8 %51, 2
%55 = icmp eq i8 %54, 0
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_9, label LBL_8
LBL_8:
%57 = call i64 @FUNC(i64 %0)
%58 = load i64, i64* %23, align 8
%59 = load i64, i64* %26, align 8
%60 = add i64 %59, %58
%61 = or i64 %60, 1
%62 = call i64 @FUNC(i64 655360, i64 32768, i64 %61)
%63 = load i64, i64* %23, align 8
%64 = load i64, i64* %32, align 8
%65 = add i64 %64, %63
%66 = or i64 %65, 1
%67 = call i64 @FUNC(i64 688128, i64 32768, i64 %66)
store i32 1, i32* %21, align 4
br label LBL_10
LBL_9:
%68 = add i64 %0, 592
%69 = inttoptr i64 %68 to i64*
%70 = load i64, i64* %69, align 8
%71 = call i64 @FUNC(i64 655360, i64 131072, i64 %70)
br label LBL_10
LBL_10:
%72 = call i64 @FUNC(i64 %0)
store i64 %72, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 9, 10, 15, 14, 13, 12, 11, 16, 18, 17, 19, 2, 4, 3, 5, 6, 1, 8, 0, 7, 20 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i8 2, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @cpu_register_physical_memory, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @vga_dirty_log_stop, { 1, 0 }
uselistorder label LBL_11, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | qemu_fopen_ops_2502 | qemu_fopen_ops | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = call i64 @FUNC(i64 16)
%2 = inttoptr i64 %1 to i64*
store i64 %arg1, i64* %2, align 8
%3 = add i64 %1, 8
%4 = inttoptr i64 %3 to i64*
store i64 %0, i64* %4, align 8
ret i64 %1
} | 0 |
BinRealVul | gui_buffer_line_add_to_infolist_5291 | gui_buffer_line_add_to_infolist | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%.reg2mem11 = alloca i32
%storemerge5.reg2mem = alloca i32
%.reg2mem9 = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.06.reg2mem = alloca i32
%storemerge27.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%0 = icmp ne i64* %arg1, null
%1 = icmp eq i64* %arg2, null
%2 = icmp eq i1 %1, false
%or.cond = icmp eq i1 %0, %2
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_23
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_23
LBL_2:
%7 = ptrtoint i64* %arg2 to i64
%8 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_23
LBL_3:
%12 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64 ptrtoint ([5 x i8]* @gv_0 to i64))
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_4, label LBL_23
LBL_4:
%16 = add i64 %7, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0), i64 %18)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_5, label LBL_23
LBL_5:
%23 = add i64 %7, 16
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0), i32 %25)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
store i64 0, i64* %rax.0.reg2mem
br i1 %29, label LBL_6, label LBL_23
LBL_6:
%30 = load i32, i32* %24, align 4
%31 = icmp eq i32 %30, 0
store i32 1, i32* %sv_0.0.lcssa.reg2mem
br i1 %31, label LBL_11, label LBL_7
LBL_7:
%32 = bitcast i64* %sv_1 to i8*
%33 = add i64 %7, 24
%34 = inttoptr i64 %33 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge27.reg2mem
store i32 0, i32* %sv_0.06.reg2mem
br label LBL_8
LBL_8:
%storemerge27.reload = load i32, i32* %storemerge27.reg2mem
%.reload = load i64, i64* %.reg2mem
%35 = add i32 %storemerge27.reload, 1
%36 = zext i32 %35 to i64
%37 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %32, i32 64, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_4, i64 0, i64 0), i64 %36)
%38 = load i64, i64* %34, align 8
%39 = mul i64 %.reload, 8
%40 = add i64 %38, %39
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = call i64 @FUNC(i64 %4, i8* nonnull %32, i64 %42)
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
store i64 0, i64* %rax.0.reg2mem
br i1 %46, label LBL_9, label LBL_23
LBL_9:
%sv_0.06.reload = load i32, i32* %sv_0.06.reg2mem
%47 = load i64, i64* %34, align 8
%48 = add i64 %47, %39
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = inttoptr i64 %50 to i8*
%52 = call i32 @strlen(i8* %51)
%53 = add i32 %sv_0.06.reload, 1
%54 = add i32 %53, %52
%55 = load i32, i32* %24, align 4
%56 = zext i32 %55 to i64
%57 = sext i32 %35 to i64
%58 = icmp slt i64 %57, %56
store i64 %57, i64* %.reg2mem
store i32 %35, i32* %storemerge27.reg2mem
store i32 %54, i32* %sv_0.06.reg2mem
br i1 %58, label LBL_8, label LBL_10
LBL_10:
%phitmp = add i32 %54, 1
store i32 %phitmp, i32* %sv_0.0.lcssa.reg2mem
br label LBL_11
LBL_11:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%59 = call i64* @malloc(i32 %sv_0.0.lcssa.reload)
%60 = icmp eq i64* %59, null
%61 = icmp eq i1 %60, false
store i64 0, i64* %rax.0.reg2mem
br i1 %61, label LBL_12, label LBL_23
LBL_12:
%62 = bitcast i64* %59 to i8*
store i8 0, i8* %62, align 1
%63 = load i32, i32* %24, align 4
%64 = icmp eq i32 %63, 0
br i1 %64, label LBL_12.LBL_18_crit_edge, label LBL_14
LBL_13:
%.pre8 = ptrtoint i64* %59 to i64
store i64 %.pre8, i64* %.pre-phi.reg2mem
br label LBL_18
LBL_14:
%65 = add i64 %7, 24
%66 = inttoptr i64 %65 to i64*
%67 = ptrtoint i64* %59 to i64
store i64 0, i64* %.reg2mem9
store i32 0, i32* %storemerge5.reg2mem
br label LBL_15
LBL_15:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%.reload10 = load i64, i64* %.reg2mem9
%68 = load i64, i64* %66, align 8
%69 = mul i64 %.reload10, 8
%70 = add i64 %68, %69
%71 = inttoptr i64 %70 to i64*
%72 = load i64, i64* %71, align 8
%73 = inttoptr i64 %72 to i8*
%74 = call i8* @strcat(i8* %62, i8* %73)
%75 = load i32, i32* %24, align 4
%76 = add i32 %75, -1
%77 = zext i32 %76 to i64
%78 = icmp slt i64 %.reload10, %77
store i32 %75, i32* %.reg2mem11
br i1 %78, label LBL_16, label LBL_17
LBL_16:
%79 = call i32 @strlen(i8* %62)
%80 = sext i32 %79 to i64
%81 = add i64 %80, %67
%82 = inttoptr i64 %81 to i16*
store i16 44, i16* %82, align 2
%.pre = load i32, i32* %24, align 4
store i32 %.pre, i32* %.reg2mem11
br label LBL_17
LBL_17:
%.reload12 = load i32, i32* %.reg2mem11
%83 = add i32 %storemerge5.reload, 1
%84 = zext i32 %.reload12 to i64
%85 = sext i32 %83 to i64
%86 = icmp slt i64 %85, %84
store i64 %85, i64* %.reg2mem9
store i32 %83, i32* %storemerge5.reg2mem
store i64 %67, i64* %.pre-phi.reg2mem
br i1 %86, label LBL_15, label LBL_18
LBL_18:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%87 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_5, i64 0, i64 0), i64 %.pre-phi.reload)
%88 = trunc i64 %87 to i32
%89 = icmp eq i32 %88, 0
%90 = icmp eq i1 %89, false
call void @free(i64* %59)
store i64 0, i64* %rax.0.reg2mem
br i1 %90, label LBL_19, label LBL_23
LBL_19:
%91 = add i64 %7, 32
%92 = inttoptr i64 %91 to i32*
%93 = load i32, i32* %92, align 4
%94 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_6, i64 0, i64 0), i32 %93)
%95 = trunc i64 %94 to i32
%96 = icmp eq i32 %95, 0
%97 = icmp eq i1 %96, false
store i64 0, i64* %rax.0.reg2mem
br i1 %97, label LBL_20, label LBL_23
LBL_20:
%98 = add i64 %7, 36
%99 = inttoptr i64 %98 to i32*
%100 = load i32, i32* %99, align 4
%101 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_7, i64 0, i64 0), i32 %100)
%102 = trunc i64 %101 to i32
%103 = icmp eq i32 %102, 0
%104 = icmp eq i1 %103, false
store i64 0, i64* %rax.0.reg2mem
br i1 %104, label LBL_21, label LBL_23
LBL_21:
%105 = add i64 %7, 40
%106 = inttoptr i64 %105 to i64*
%107 = load i64, i64* %106, align 8
%108 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_8, i64 0, i64 0), i64 %107)
%109 = trunc i64 %108 to i32
%110 = icmp eq i32 %109, 0
%111 = icmp eq i1 %110, false
store i64 0, i64* %rax.0.reg2mem
br i1 %111, label LBL_22, label LBL_23
LBL_22:
%112 = add i64 %7, 48
%113 = inttoptr i64 %112 to i64*
%114 = load i64, i64* %113, align 8
%115 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_9, i64 0, i64 0), i64 %114)
%116 = trunc i64 %115 to i32
%117 = icmp eq i32 %116, 0
%118 = icmp eq i1 %117, false
%. = zext i1 %118 to i64
store i64 %., i64* %rax.0.reg2mem
br label LBL_23
LBL_23:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %59, { 2, 1, 0, 4, 3 }
uselistorder i32 %54, { 1, 0 }
uselistorder i64 %39, { 1, 0 }
uselistorder i32* %24, { 0, 3, 2, 4, 1, 5 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge27.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.06.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem9, { 1, 0, 2 }
uselistorder i32* %storemerge5.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 4, 5, 6, 7, 1, 8, 9, 10, 11, 12, 13 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i64 (i64, i8*, i32)* @infolist_new_var_integer, { 2, 1, 0 }
uselistorder i64 (i64, i8*, i64)* @infolist_new_var_string, { 4, 3, 2, 1, 0 }
uselistorder i32 0, { 6, 7, 8, 9, 10, 0, 3, 11, 1, 2, 4, 12, 13, 14, 15, 5 }
uselistorder i64 (i64, i8*, i64)* @infolist_new_var_time, { 1, 0 }
uselistorder [5 x i8]* @gv_0, { 1, 0 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 7, 6, 8, 9, 10, 11, 12, 0 }
uselistorder i64* null, { 1, 0, 2 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_23, { 1, 2, 3, 4, 5, 6, 0, 7, 8, 9, 10, 11, 12 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 0 |
BinRealVul | sd_open_16267 | sd_open | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32*
%.pre-phi.reg2mem = alloca i32*
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i32, align 4
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i8*, align 8
%sv_6 = alloca i64, align 8
store i64 %arg2, i64* %sv_6, align 8
store i8* null, i8** %sv_5, align 8
%3 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_6)
%4 = add i64 %2, 312
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %2, 320
%7 = call i64 @FUNC(i64 %6)
%8 = bitcast i64* %arg1 to i32*
store i32 -1, i32* %8, align 4
%9 = call i64* @memset(i64* nonnull %sv_4, i32 0, i32 256)
%10 = call i64* @memset(i64* nonnull %sv_3, i32 0, i32 64)
%11 = load i64, i64* %sv_6, align 8
%12 = bitcast i32* %sv_2 to i64*
%13 = call i64 @FUNC(i64 %2, i64 %11, i64* nonnull %sv_4, i64* nonnull %12, i64* nonnull %sv_3)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_2, label LBL_0.LBL_13_crit_edge
LBL_1:
%.pre = bitcast i64* %rdi to i32*
store i32* %.pre, i32** %.pre-phi.reg2mem
store i32* null, i32** %sv_1.0.reg2mem
store i32 -22, i32* %sv_0.0.reg2mem
br label LBL_13
LBL_2:
%17 = trunc i64 %1 to i32
%18 = call i64 @FUNC(i64 %2)
%19 = trunc i64 %18 to i32
store i32 %19, i32* %8, align 4
%20 = bitcast i64* %rdi to i32*
%21 = icmp slt i32 %17, 0
%22 = icmp eq i1 %21, false
store i32* %20, i32** %.pre-phi.reg2mem
store i32* null, i32** %sv_1.0.reg2mem
store i32 %17, i32* %sv_0.0.reg2mem
br i1 %22, label LBL_3, label LBL_13
LBL_3:
%23 = load i32, i32* %sv_2, align 4
%24 = zext i32 %23 to i64
%25 = bitcast i8** %sv_5 to i32*
%26 = call i64 @FUNC(i64 %2, i64* nonnull %sv_4, i64 %24, i64* nonnull %sv_3, i32* nonnull %25, i64 0)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
store i32* %20, i32** %.pre-phi.reg2mem
store i32* null, i32** %sv_1.0.reg2mem
store i32 %27, i32* %sv_0.0.reg2mem
br i1 %29, label LBL_13, label LBL_4
LBL_4:
%30 = add i64 %2, 8
%31 = inttoptr i64 %30 to i32*
store i32 1, i32* %31, align 4
%32 = add i64 %2, 296
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = add i64 %2, 288
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = zext i32 %34 to i64
%39 = call i64 @FUNC(i64 %37, i64 %38)
%40 = trunc i64 %39 to i32
%41 = add i64 %2, 4
%42 = inttoptr i64 %41 to i32*
store i32 %40, i32* %42, align 4
%43 = icmp slt i32 %40, 0
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_6, label LBL_5
LBL_5:
%45 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_1, i64 0, i64 0))
%46 = load i32, i32* %42, align 4
store i32* %20, i32** %.pre-phi.reg2mem
store i32* null, i32** %sv_1.0.reg2mem
store i32 %46, i32* %sv_0.0.reg2mem
br label LBL_13
LBL_6:
%47 = load i32, i32* %sv_2, align 4
%48 = icmp eq i32 %47, 0
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_8, label LBL_7
LBL_7:
%50 = load i64, i64* %sv_3, align 8
%51 = trunc i64 %50 to i8
%52 = icmp eq i8 %51, 0
br i1 %52, label LBL_9, label LBL_8
LBL_8:
%53 = load i8*, i8** %sv_5, align 8
%54 = ptrtoint i8* %53 to i64
%55 = trunc i64 %54 to i32
%56 = call i32 (i32, i8*, ...) @dprintf(i32 ptrtoint (i32* @gv_2 to i32), i8* %53, i32 %55)
%57 = add i64 %2, 12
%58 = inttoptr i64 %57 to i32*
store i32 1, i32* %58, align 4
br label LBL_9
LBL_9:
%59 = load i32, i32* %33, align 4
%60 = load i64, i64* %36, align 8
%61 = zext i32 %59 to i64
%62 = call i64 @FUNC(i64 %60, i64 %61)
%63 = trunc i64 %62 to i32
%64 = icmp slt i32 %63, 0
%65 = icmp eq i1 %64, false
br i1 %65, label LBL_11, label LBL_10
LBL_10:
%66 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_1, i64 0, i64 0))
store i32* %20, i32** %.pre-phi.reg2mem
store i32* null, i32** %sv_1.0.reg2mem
store i32 %63, i32* %sv_0.0.reg2mem
br label LBL_13
LBL_11:
%67 = call i64 @FUNC(i64 512)
%68 = inttoptr i64 %67 to i32*
%69 = load i8*, i8** %sv_5, align 8
%70 = ptrtoint i8* %69 to i64
%71 = and i64 %70, 4294967295
%72 = call i64 @FUNC(i64 %71)
%73 = and i64 %72, 4294967295
%74 = and i64 %62, 4294967295
%75 = call i64 @FUNC(i64 %74, i64 %67, i64 %73, i64 0, i64 512, i64 0)
%76 = trunc i64 %75 to i32
%77 = call i64 @FUNC(i64 %74)
%78 = icmp eq i32 %76, 0
%79 = icmp eq i1 %78, false
store i32* %20, i32** %.pre-phi.reg2mem
store i32* %68, i32** %sv_1.0.reg2mem
store i32 %76, i32* %sv_0.0.reg2mem
br i1 %79, label LBL_13, label LBL_12
LBL_12:
%80 = add i64 %2, 280
%81 = load i32, i32* %68, align 4
%82 = inttoptr i64 %80 to i32*
store i32 %81, i32* %82, align 4
%83 = add i64 %2, 16
%84 = inttoptr i64 %83 to i32*
store i32 -1, i32* %84, align 4
%85 = add i64 %2, 20
%86 = inttoptr i64 %85 to i32*
store i32 0, i32* %86, align 4
%87 = load i32, i32* %82, align 4
%88 = udiv i32 %87, 512
store i32 %88, i32* %31, align 4
%89 = add i64 %2, 24
%90 = inttoptr i64 %89 to i8*
%91 = bitcast i64* %sv_4 to i8*
%92 = call i8* @strncpy(i8* %90, i8* nonnull %91, i32 256)
%93 = add i64 %2, 304
%94 = call i64 @FUNC(i64 %93)
%95 = call i64 @FUNC(i64 %67)
store i64 0, i64* %storemerge.reg2mem
br label LBL_16
LBL_13:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i32*, i32** %sv_1.0.reg2mem
%.pre-phi.reload = load i32*, i32** %.pre-phi.reg2mem
%96 = load i32, i32* %.pre-phi.reload, align 8
%97 = zext i32 %96 to i64
%98 = call i64 @FUNC(i64 %97, i64 0, i64 0, i64 0, i64 0)
%99 = icmp slt i32 %96, 0
br i1 %99, label LBL_15, label LBL_14
LBL_14:
%100 = call i64 @FUNC(i64 %97)
br label LBL_15
LBL_15:
%101 = ptrtoint i32* %sv_1.0.reload to i64
%102 = call i64 @FUNC(i64 %101)
%103 = zext i32 %sv_0.0.reload to i64
store i64 %103, i64* %storemerge.reg2mem
br label LBL_16
LBL_16:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %74, { 1, 0 }
uselistorder i32* %68, { 1, 0 }
uselistorder i64 %67, { 0, 2, 1 }
uselistorder i8* %53, { 1, 0 }
uselistorder i32* %20, { 3, 1, 0, 2, 4 }
uselistorder i64* %sv_6, { 1, 0, 2 }
uselistorder i8** %sv_5, { 2, 1, 3, 0 }
uselistorder i64* %sv_3, { 3, 0, 1, 2 }
uselistorder i32* %sv_2, { 1, 0, 2 }
uselistorder i64 %2, { 1, 0, 2, 3, 4, 5, 6, 8, 7, 9, 10, 11, 12, 13, 14 }
uselistorder i64* %rdi, { 1, 0 }
uselistorder i32** %.pre-phi.reg2mem, { 0, 4, 2, 1, 3, 5, 6 }
uselistorder i32** %sv_1.0.reg2mem, { 0, 4, 2, 1, 3, 5, 6 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 4, 2, 1, 3, 5, 6 }
uselistorder i64 (i64)* @g_free, { 1, 0 }
uselistorder i64 (i64)* @closesocket, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 (i8*)* @error_report, { 1, 0 }
uselistorder i64 (i64, i64)* @connect_to_sdog, { 1, 0 }
uselistorder i32* null, { 1, 0, 2, 3, 4 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i64 (i64)* @QLIST_INIT, { 1, 0 }
uselistorder label LBL_13, { 2, 4, 5, 3, 1, 0 }
} | 1 |
BinRealVul | putsum_16943 | putsum | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sext = mul i64 %arg2, 4294967296
%0 = ashr exact i64 %sext, 32
%1 = trunc i64 %arg5 to i32
%2 = icmp eq i32 %1, 0
store i64 %0, i64* %sv_0.0.reg2mem
br i1 %2, label LBL_3, label LBL_1
LBL_1:
%3 = trunc i64 %0 to i32
%4 = icmp ult i32 %1, %3
%5 = icmp eq i1 %4, false
store i64 %0, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%sext6 = mul i64 %arg5, 4294967296
%sext7 = add i64 %sext6, 4294967296
%6 = ashr exact i64 %sext7, 32
store i64 %6, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sext4 = mul i64 %arg3, 4294967296
%7 = ashr exact i64 %sext4, 32
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%8 = add nsw i64 %sv_0.0.reload, 4294967295
%9 = and i64 %8, 4294967295
%10 = trunc i64 %7 to i32
%11 = trunc i64 %8 to i32
%12 = icmp ult i32 %10, %11
%13 = icmp eq i1 %12, false
store i64 %9, i64* %rax.0.reg2mem
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = ptrtoint i64* %arg1 to i64
%sext5 = mul i64 %arg4, 4294967296
%15 = ashr exact i64 %sext5, 32
%16 = and i64 %15, 4294967295
%17 = add i64 %16, %14
%18 = sub nsw i64 %sv_0.0.reload, %15
%19 = and i64 %18, 4294967295
%20 = call i64 @FUNC(i64 %19, i64 %17)
%21 = and i64 %20, 4294967295
%22 = call i64 @FUNC(i64 %21)
%23 = and i64 %7, 4294967295
%24 = add i64 %23, %14
%25 = and i64 %22, 4294967295
%26 = call i64 @FUNC(i64 %24, i64 %25)
store i64 %26, 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 %15, { 1, 0 }
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %0, { 0, 2, 1 }
uselistorder i64 4294967295, { 1, 2, 3, 4, 5, 6, 7, 8, 0 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder i64 32, { 1, 2, 0, 3 }
uselistorder i64 4294967296, { 1, 2, 4, 0, 3 }
} | 1 |
BinRealVul | walk_string_11754 | walk_string | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rax.0.ph.in.reg2mem = alloca i32
%rcx.1.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg4 to i64
%sv_0 = alloca i32, align 4
%1 = icmp eq i64* %arg4, null
store i64 %0, i64* %rax.0.reg2mem
br i1 %1, label LBL_11, label LBL_1
LBL_1:
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i32*
%4 = bitcast i32* %sv_0 to i64*
%5 = trunc i64 %arg2 to i32
%6 = icmp eq i32 %5, 32
%7 = trunc i64 %arg3 to i32
%8 = icmp eq i32 %7, 0
%9 = add i64 %0, 12
%10 = inttoptr i64 %9 to i32*
store i64 %0, i64* %rcx.0.reg2mem
br label LBL_2
LBL_2:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%11 = load i32, i32* %3, align 4
%12 = sext i32 %11 to i64
%13 = add i64 %rcx.0.reload, %12
%14 = call i64 @FUNC(i64* nonnull %4, i64 %13)
%15 = load i32, i32* %sv_0, align 4
%16 = icmp eq i32 %15, %5
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = trunc i64 %14 to i32
%19 = load i32, i32* %3, align 4
%20 = add i32 %19, %18
store i32 %20, i32* %3, align 4
br label LBL_7
LBL_4:
store i32 %15, i32* %rax.0.ph.in.reg2mem
br i1 %6, label LBL_10, label LBL_5
LBL_5:
%21 = icmp eq i32 %15, 32
br i1 %21, label LBL_7, label LBL_6
LBL_6:
store i32 -1, i32* %3, align 4
store i64 %0, i64* %rax.0.reg2mem
br label LBL_11
LBL_7:
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
br i1 %8, label LBL_9, label LBL_8
LBL_8:
%sext5 = mul i64 %14, 4294967296
%22 = ashr exact i64 %sext5, 32
%23 = add i64 %22, %13
%24 = inttoptr i64 %23 to i8*
%25 = call i32 @strlen(i8* %24)
%26 = add i32 %25, 1
%27 = inttoptr i64 %13 to i64*
%28 = inttoptr i64 %23 to i64*
%29 = call i64* @memmove(i64* %27, i64* %28, i32 %26)
store i32 1, i32* %10, align 4
store i64 %23, i64* %rcx.1.reg2mem
br label LBL_9
LBL_9:
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%30 = load i32, i32* %sv_0, align 4
%31 = icmp eq i32 %30, %5
%32 = icmp eq i1 %31, false
store i64 %rcx.1.reload, i64* %rcx.0.reg2mem
store i32 %30, i32* %rax.0.ph.in.reg2mem
br i1 %32, label LBL_2, label LBL_10
LBL_10:
%rax.0.ph.in.reload = load i32, i32* %rax.0.ph.in.reg2mem
%rax.0.ph = zext i32 %rax.0.ph.in.reload to i64
store i64 %rax.0.ph, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %15, { 1, 0, 2 }
uselistorder i64 %13, { 1, 0, 2 }
uselistorder i32 %5, { 0, 2, 1 }
uselistorder i32* %3, { 0, 2, 1, 3 }
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64 %0, { 0, 2, 3, 4, 1 }
uselistorder i64* %rcx.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %rax.0.ph.in.reg2mem, { 0, 2, 1 }
uselistorder label LBL_11, { 0, 2, 1 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | error_propagate_15931 | error_propagate | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
store i64 %arg2, i64* %arg1, align 8
store i64 %1, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%2 = icmp eq i64 %arg2, 0
br i1 %2, label LBL_4, label LBL_3
LBL_3:
%3 = call i64 @FUNC(i64 %arg2)
store i64 %3, 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, 2, 1 }
uselistorder i64 %arg2, { 1, 2, 0 }
uselistorder i64* %arg1, { 0, 2, 1 }
} | 1 |
BinRealVul | SPR_NameToID_10851 | SPR_NameToID | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg3 to i64
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 %5, i64 %4, i64 %3)
%7 = load i32, i32* inttoptr (i64 4210728 to i32*), align 8
%8 = zext i32 %7 to i64
%9 = load i32, i32* @gv_0, align 4
%10 = and i64 %6, 4294967295
%11 = trunc i64 %6 to i32
%12 = call i64 @FUNC(i64 %5, i32 %9, i32 %11, i32 %7)
%sext = mul i64 %6, 4294967296
%13 = ashr exact i64 %sext, 32
%14 = call i64 @FUNC(i64 125, i64 %13, i64 %10, i64 %8, i64 %2, i64 %1)
ret i64 %10
uselistorder i64* %0, { 1, 0 }
} | 0 |
BinRealVul | cpu_create_16115 | cpu_create | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
store i64 0, i64* %sv_0, align 8
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %2, i64 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0)
%4 = load i64, i64* %sv_0, align 8
%5 = icmp eq i64 %4, 0
store i64 %1, i64* %storemerge.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %4)
%7 = call i64 @FUNC(i64 %1)
%8 = call i64 @FUNC(i64 %7)
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64* %sv_0, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @OBJECT, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | check_restricted_11128 | check_restricted | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = load i8, i8* inttoptr (i64 4210725 to i8*), align 1
%1 = icmp eq i8 %0, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @globalFUNCvarFUNC402010, i64 0, i64 0))
%3 = call i64 @FUNC(i64 %2)
store i64 1, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | vmsvga_class_init_8951 | vmsvga_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 i32*
store i32 5549, i32* %4, align 4
%5 = add i64 %0, 20
%6 = inttoptr i64 %5 to i32*
store i32 1029, i32* %6, align 4
%7 = add i64 %0, 24
%8 = inttoptr i64 %7 to i32*
store i32 196608, i32* %8, align 4
%9 = add i64 %0, 28
%10 = inttoptr i64 %9 to i32*
store i32 5549, i32* %10, align 4
%11 = add i64 %0, 32
%12 = inttoptr i64 %11 to i32*
store i32 1029, i32* %12, align 4
store i64 4198669, i64* %arg1, align 8
store i64 ptrtoint (i64* @gv_0 to i64), i64* %2, align 8
%13 = load i64, i64* @gv_1, align 8
%14 = inttoptr i64 %3 to i64*
store i64 %13, i64* %14, align 8
%15 = inttoptr i64 %7 to i8*
store i8 0, i8* %15, align 1
%16 = inttoptr i64 %11 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 0, i64 %17)
ret i64 %18
} | 0 |
BinRealVul | vnc_update_client_15434 | vnc_update_client | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.4.lcssa.reg2mem = alloca i32
%sv_0.411.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_0.3.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_0.25.reg2mem = alloca i32
%sv_1.16.reg2mem = alloca i32
%storemerge27.reg2mem = alloca i32
%storemerge3.reg2mem = alloca i64
%storemerge4.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
%.pre = add i64 %2, 4
%.pre15 = inttoptr i64 %.pre to i32*
%.pre17 = load i32, i32* %.pre15, align 4
%phitmp = icmp eq i32 %.pre17, -1
br i1 %4, label LBL_25, label LBL_1
LBL_1:
br i1 %phitmp, label LBL_26, label LBL_2
LBL_2:
%5 = add i64 %2, 432
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_5, label LBL_3
LBL_3:
%12 = add i64 %2, 12
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = add i64 %2, 16
%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 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_5, label LBL_27
LBL_5:
%22 = trunc i64 %arg2 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_8, label LBL_6
LBL_6:
%25 = add i64 %2, 12
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_8, label LBL_7
LBL_7:
%30 = add i64 %2, 16
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = icmp eq i32 %32, 0
%34 = icmp eq i1 %33, false
store i64 0, i64* %rax.0.reg2mem
br i1 %34, label LBL_8, label LBL_27
LBL_8:
%35 = call i64 @FUNC(i64 %2)
%36 = inttoptr i64 %7 to i64*
%37 = load i64, i64* %36, align 8
%38 = call i64 @FUNC(i64 %37)
%39 = add i64 %2, 20
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = zext i32 %41 to i64
%43 = icmp slt i64 %38, %42
store i64 %42, i64* %storemerge4.reg2mem
br i1 %43, label LBL_9, label LBL_10
LBL_9:
%44 = load i64, i64* %36, align 8
%45 = call i64 @FUNC(i64 %44)
store i64 %45, i64* %storemerge4.reg2mem
br label LBL_10
LBL_10:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%46 = load i64, i64* %36, align 8
%47 = call i64 @FUNC(i64 %46)
%48 = add i64 %2, 24
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = zext i32 %50 to i64
%52 = icmp slt i64 %47, %51
store i64 %51, i64* %storemerge3.reg2mem
br i1 %52, label LBL_11, label LBL_12
LBL_11:
%53 = load i64, i64* %36, align 8
%54 = call i64 @FUNC(i64 %53)
store i64 %54, i64* %storemerge3.reg2mem
br label LBL_12
LBL_12:
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%55 = trunc i64 %storemerge3.reload to i32
%56 = icmp sgt i32 %55, 0
store i32 0, i32* %sv_0.4.lcssa.reg2mem
br i1 %56, label LBL_13, label LBL_24
LBL_13:
%57 = trunc i64 %storemerge4.reload to i32
%58 = sdiv i32 %57, 32768
%59 = zext i32 %58 to i64
%.off = add i32 %57, 32767
%60 = icmp ult i32 %.off, 65535
%61 = add i64 %2, 28
%62 = and i64 %storemerge3.reload, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
store i32 0, i32* %sv_0.411.reg2mem
br label LBL_22
LBL_14:
%sv_0.25.reload = load i32, i32* %sv_0.25.reg2mem
%sv_1.16.reload = load i32, i32* %sv_1.16.reg2mem
%storemerge27.reload = load i32, i32* %storemerge27.reg2mem
%63 = load i32, i32* %97, align 4
%64 = zext i32 %63 to i64
%65 = zext i32 %storemerge27.reload to i64
%66 = call i64 @FUNC(i64 %65, i64 %64)
%67 = trunc i64 %66 to i32
%68 = icmp eq i32 %67, 0
%69 = icmp eq i32 %sv_1.16.reload, -1
br i1 %68, label LBL_16, label LBL_15
LBL_15:
%70 = icmp eq i1 %69, false
%spec.select = select i1 %70, i32 %sv_1.16.reload, i32 %storemerge27.reload
store i32 %sv_0.25.reload, i32* %sv_0.1.reg2mem
store i32 %spec.select, i32* %sv_1.0.reg2mem
br label LBL_18
LBL_16:
store i32 %sv_0.25.reload, i32* %sv_0.1.reg2mem
store i32 -1, i32* %sv_1.0.reg2mem
br i1 %69, label LBL_18, label LBL_17
LBL_17:
%71 = call i64 @FUNC(i64 %2, i32 %98, i32 %sv_1.16.reload, i32 %storemerge27.reload, i64 %62)
%72 = sub i32 %storemerge27.reload, %sv_1.16.reload
%73 = mul i32 %72, 16
%74 = zext i32 %73 to i64
%75 = mul i32 %sv_1.16.reload, 16
%76 = zext i32 %75 to i64
%77 = and i64 %71, 4294967295
%78 = call i64 @FUNC(i64 %35, i64 %76, i32 %98, i64 %74, i64 %77)
%79 = trunc i64 %78 to i32
%80 = add i32 %sv_0.25.reload, %79
store i32 %80, i32* %sv_0.1.reg2mem
store i32 -1, i32* %sv_1.0.reg2mem
br label LBL_18
LBL_18:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%81 = add i32 %storemerge27.reload, 1
%82 = sext i32 %81 to i64
%83 = icmp slt i64 %82, %59
store i32 %81, i32* %storemerge27.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.16.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.25.reg2mem
br i1 %83, label LBL_14, label LBL_19
LBL_19:
%84 = icmp eq i32 %sv_1.0.reload, -1
store i32 %sv_0.1.reload, i32* %sv_0.3.reg2mem
br i1 %84, label LBL_21, label LBL_20
LBL_20:
%85 = call i64 @FUNC(i64 %2, i32 %98, i32 %sv_1.0.reload, i32 %81, i64 %62)
%86 = sub i32 %81, %sv_1.0.reload
%87 = mul i32 %86, 16
%88 = zext i32 %87 to i64
%89 = mul i32 %sv_1.0.reload, 16
%90 = zext i32 %89 to i64
%91 = and i64 %85, 4294967295
%92 = call i64 @FUNC(i64 %35, i64 %90, i32 %98, i64 %88, i64 %91)
%93 = trunc i64 %92 to i32
%94 = add i32 %sv_0.1.reload, %93
store i32 %94, i32* %sv_0.3.reg2mem
br label LBL_21
LBL_21:
%sv_0.3.reload = load i32, i32* %sv_0.3.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %62
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %sv_0.3.reload, i32* %sv_0.411.reg2mem
store i32 %sv_0.3.reload, i32* %sv_0.4.lcssa.reg2mem
br i1 %exitcond, label LBL_24, label LBL_22
LBL_22:
%sv_0.411.reload = load i32, i32* %sv_0.411.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
store i32 %sv_0.411.reload, i32* %sv_0.3.reg2mem
br i1 %60, label LBL_21, label LBL_14.lr.ph
LBL_23:
%95 = mul i64 %indvars.iv.reload, 4
%96 = add i64 %61, %95
%97 = inttoptr i64 %96 to i32*
%98 = trunc i64 %indvars.iv.reload to i32
store i32 0, i32* %storemerge27.reg2mem
store i32 -1, i32* %sv_1.16.reg2mem
store i32 %sv_0.411.reload, i32* %sv_0.25.reg2mem
br label LBL_14
LBL_24:
%sv_0.4.lcssa.reload = load i32, i32* %sv_0.4.lcssa.reg2mem
%99 = call i64 @FUNC(i64 %35)
%100 = add i64 %2, 16
%101 = inttoptr i64 %100 to i32*
store i32 0, i32* %101, align 4
%102 = zext i32 %sv_0.4.lcssa.reload to i64
store i64 %102, i64* %rax.0.reg2mem
br label LBL_27
LBL_25:
%phitmp18 = icmp eq i1 %phitmp, false
store i64 0, i64* %rax.0.reg2mem
br i1 %phitmp18, label LBL_27, label LBL_26
LBL_26:
%103 = call i64 @FUNC(i64 %2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_27
LBL_27:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %98, { 3, 2, 0, 1 }
uselistorder i64 %indvars.iv.reload, { 1, 2, 0 }
uselistorder i32 %81, { 2, 1, 0, 3 }
uselistorder i32 %sv_0.1.reload, { 1, 0, 2 }
uselistorder i32 %sv_1.0.reload, { 3, 1, 0, 2, 4 }
uselistorder i1 %69, { 1, 0 }
uselistorder i32 %storemerge27.reload, { 4, 2, 1, 0, 3 }
uselistorder i32 %sv_1.16.reload, { 4, 2, 3, 0, 1 }
uselistorder i32 %sv_0.25.reload, { 2, 0, 1 }
uselistorder i64 %storemerge3.reload, { 1, 0 }
uselistorder i1 %phitmp, { 1, 0 }
uselistorder i64 %2, { 14, 6, 7, 8, 1, 9, 10, 11, 5, 4, 3, 2, 12, 13, 0 }
uselistorder i64* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge27.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_1.16.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.25.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.3.reg2mem, { 1, 0, 2, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 5, 3, 4 }
uselistorder i64 (i64)* @pixman_image_get_height, { 1, 0 }
uselistorder i64 (i64)* @pixman_image_get_width, { 1, 0 }
uselistorder i32 -1, { 2, 5, 0, 1, 4, 3 }
uselistorder i32 0, { 6, 2, 5, 1, 0, 3, 7, 8, 9, 10, 11, 12, 13, 4 }
uselistorder label LBL_27, { 1, 0, 4, 2, 3 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_18, { 2, 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | ScaKwdTab_13034 | ScaKwdTab | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%.reg2mem = alloca %_IO_FILE*
%rdi.1.ph.be.reg2mem = alloca i64
%storemerge8.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%sv_2 = alloca i8, align 1
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = urem i32 %3, 2
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_13, label LBL_1
LBL_1:
%6 = bitcast i64* %arg1 to %_IO_FILE*
%7 = call i32 (%_IO_FILE*, i8*, ...) @fscanf(%_IO_FILE* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* nonnull %sv_2)
%8 = icmp eq i32 %7, -1
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_24
LBL_2:
%10 = ptrtoint i8* %sv_2 to i64
store %_IO_FILE* %6, %_IO_FILE** %.reg2mem
br label LBL_3.lr.ph
LBL_3:
%11 = call i16** @__ctype_b_loc()
%12 = load i16*, i16** %11, align 8
%13 = ptrtoint i16* %12 to i64
%14 = load i8, i8* %sv_2, align 1
%15 = sext i8 %14 to i64
%16 = mul i64 %15, 2
%17 = add i64 %16, %13
%18 = inttoptr i64 %17 to i16*
%19 = load i16, i16* %18, align 2
%20 = and i16 %19, 1024
%21 = icmp eq i16 %20, 0
br i1 %21, label LBL_9, label LBL_4
LBL_4:
store i32 1, i32* %sv_1, align 4
store i32 1, i32* %storemerge8.reg2mem
br label LBL_5
LBL_5:
%storemerge8.reload = load i32, i32* %storemerge8.reg2mem
%22 = sext i32 %storemerge8.reload to i64
%23 = mul i64 %22, 8
%24 = add i64 %23, ptrtoint (i64* @gv_1 to i64)
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = inttoptr i64 %26 to i8*
%28 = call i32 @strcmp(i8* nonnull %sv_2, i8* %27)
%29 = icmp eq i32 %28, 0
%30 = icmp eq i1 %29, false
%31 = load i32, i32* %sv_1, align 4
br i1 %30, label LBL_8, label LBL_6
LBL_6:
%32 = zext i32 %31 to i64
%33 = call i64 @FUNC(i64 %0, i64 %32)
store i64 %0, i64* %rdi.1.ph.be.reg2mem
br label LBL_7
LBL_7:
%rdi.1.ph.be.reload = load i64, i64* %rdi.1.ph.be.reg2mem
%34 = inttoptr i64 %rdi.1.ph.be.reload to %_IO_FILE*
%35 = call i32 (%_IO_FILE*, i8*, ...) @fscanf(%_IO_FILE* %34, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* nonnull %sv_2)
%36 = icmp eq i32 %35, -1
%37 = icmp eq i1 %36, false
store %_IO_FILE* %34, %_IO_FILE** %.reg2mem
br i1 %37, label LBL_3.lr.ph, label LBL_24
LBL_8:
%38 = add i32 %31, 1
store i32 %38, i32* %sv_1, align 4
%39 = icmp slt i32 %38, 101
store i32 %38, i32* %storemerge8.reg2mem
store i64 %10, i64* %rdi.1.ph.be.reg2mem
br i1 %39, label LBL_5, label LBL_7
LBL_9:
%40 = icmp eq i8 %14, 35
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_10, label LBL_11
LBL_10:
%42 = call i32 (%_IO_FILE*, i8*, ...) @fscanf(%_IO_FILE* %.reload, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i8* nonnull %sv_2)
%43 = icmp eq i32 %42, -1
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_3, label LBL_24
LBL_11:
%45 = call i32 @fgetc(%_IO_FILE* %.reload)
%46 = icmp ne i32 %45, 10
%47 = icmp eq i32 %45, -1
%48 = icmp eq i1 %47, false
%or.cond = icmp eq i1 %46, %48
br i1 %or.cond, label LBL_11, label LBL_10
LBL_12:
%.reload = load %_IO_FILE*, %_IO_FILE** %.reg2mem
br label LBL_3
LBL_13:
%49 = call i64 @FUNC(i64 %0)
%sext = mul i64 %49, 4294967296
%50 = ashr exact i64 %sext, 32
store i64 -1, i64* %sv_0.0.reg2mem
br label LBL_14
LBL_14:
%51 = call i64 @FUNC(i64 %0, i32* nonnull %sv_1)
%52 = call i64 @FUNC(i64 %0)
%sext1 = mul i64 %52, 4294967296
%53 = ashr exact i64 %sext1, 32
%54 = icmp sgt i64 %53, %50
br i1 %54, label LBL_15, label LBL_16
LBL_15:
%55 = trunc i64 %0 to i32
%56 = add i32 %55, 16
%57 = insertvalue [8 x i32] undef, i32 %56, 0
%58 = insertvalue %__jmp_buf_tag undef, [8 x i32] %57, 0
%59 = insertvalue [1 x %__jmp_buf_tag] undef, %__jmp_buf_tag %58, 0
call void @longjmp([1 x %__jmp_buf_tag] %59, i32 -24)
unreachable
LBL_16:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%60 = icmp eq i64 %sext1, 0
%61 = icmp sgt i64 %53, %sv_0.0.reload
%or.cond4 = or i1 %60, %61
br i1 %or.cond4, label LBL_18, label LBL_17
LBL_17:
%62 = trunc i64 %0 to i32
%63 = add i32 %62, 16
%64 = insertvalue [8 x i32] undef, i32 %63, 0
%65 = insertvalue %__jmp_buf_tag undef, [8 x i32] %64, 0
%66 = insertvalue [1 x %__jmp_buf_tag] undef, %__jmp_buf_tag %65, 0
call void @longjmp([1 x %__jmp_buf_tag] %66, i32 -30)
unreachable
LBL_18:
%67 = load i32, i32* %sv_1, align 4
%.off = add i32 %67, -1
%68 = icmp ugt i32 %.off, 99
br i1 %68, label LBL_20, label LBL_19
LBL_19:
%69 = zext i32 %67 to i64
%70 = call i64 @FUNC(i64 %0, i64 %69)
br label LBL_20
LBL_20:
br i1 %60, label LBL_24, label LBL_21
LBL_21:
%71 = call i64 @FUNC(i64 %0, i64 %53)
%72 = trunc i64 %71 to i32
%73 = icmp eq i32 %72, 0
%74 = icmp eq i1 %73, false
br i1 %74, label LBL_23, label LBL_22
LBL_22:
%75 = trunc i64 %0 to i32
%76 = add i32 %75, 16
%77 = insertvalue [8 x i32] undef, i32 %76, 0
%78 = insertvalue %__jmp_buf_tag undef, [8 x i32] %77, 0
%79 = insertvalue [1 x %__jmp_buf_tag] undef, %__jmp_buf_tag %78, 0
call void @longjmp([1 x %__jmp_buf_tag] %79, i32 -25)
unreachable
LBL_23:
%80 = load i32, i32* %sv_1, align 4
%81 = icmp eq i32 %80, 0
%82 = icmp eq i1 %81, false
store i64 %53, i64* %sv_0.0.reg2mem
br i1 %82, label LBL_14, label LBL_24
LBL_24:
ret i64 1
uselistorder i32 %67, { 1, 0 }
uselistorder i64 %53, { 0, 2, 1, 3 }
uselistorder i64 %sext1, { 1, 0 }
uselistorder %_IO_FILE* %.reload, { 1, 0 }
uselistorder i32 %38, { 0, 2, 1 }
uselistorder i32 %31, { 1, 0 }
uselistorder i8* %sv_2, { 3, 2, 4, 5, 0, 1 }
uselistorder i32* %sv_1, { 3, 4, 2, 1, 5, 0 }
uselistorder i64 %0, { 4, 5, 3, 2, 6, 8, 7, 9, 0, 1, 10 }
uselistorder i32* %storemerge8.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.1.ph.be.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder void ([1 x %__jmp_buf_tag], i32)* @longjmp, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @ScaKwdHdr, { 1, 0 }
uselistorder i32 -1, { 3, 2, 4, 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fscanf, { 2, 1, 0 }
uselistorder i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), { 2, 1, 0 }
uselistorder label LBL_24, { 3, 2, 1, 0, 4 }
uselistorder label LBL_3.lr.ph, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | chaoskey_rng_read_17495 | chaoskey_rng_read | define i64 @FUNC(i8* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.reg2mem4 = alloca i32
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i8* %arg1 to i64
%5 = add i64 %4, 104
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = trunc i64 %arg4 to i8
%9 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 %arg3, i8 %8, i64 %2, i64 %1)
%10 = trunc i64 %3 to i8
%11 = icmp eq i8 %10, 1
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = load i64, i64* %6, align 8
%13 = call i64 @FUNC(i64 %12, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %arg3, i8 %8, i64 %2, i64 %1)
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_2:
%14 = add i64 %4, 24
%15 = call i64 @FUNC(i64 %14)
%16 = add i64 %4, 64
%17 = call i64 @FUNC(i64 %16)
%18 = call i64 @FUNC(i64 %14)
%19 = add i64 %4, 4
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i64 %4, 8
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp eq i32 %21, %24
%26 = icmp eq i1 %25, false
store i32 %24, i32* %.reg2mem
store i32 %21, i32* %.reg2mem4
br i1 %26, label LBL_4, label LBL_3
LBL_3:
%27 = call i64 @FUNC(i64 %4)
%.pre = load i32, i32* %20, align 4
%.pre3 = load i32, i32* %23, align 4
store i32 %.pre3, i32* %.reg2mem
store i32 %.pre, i32* %.reg2mem4
br label LBL_4
LBL_4:
%.reload5 = load i32, i32* %.reg2mem4
%.reload = load i32, i32* %.reg2mem
%28 = sub i32 %.reload5, %.reload
%29 = sext i32 %28 to i64
%30 = icmp ugt i64 %29, %arg3
%31 = icmp eq i1 %30, false
%sext = mul i64 %arg3, 4294967296
%32 = ashr exact i64 %sext, 32
%sv_0.0 = select i1 %31, i64 %29, i64 %32
%33 = trunc i64 %sv_0.0 to i32
%34 = add i64 %4, 16
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = inttoptr i64 %36 to i64*
%38 = call i64* @memcpy(i64* %arg2, i64* %37, i32 %33)
%39 = load i32, i32* %23, align 4
%40 = add i32 %39, %33
store i32 %40, i32* %23, align 4
%41 = call i64 @FUNC(i64 %16)
%42 = load i64, i64* %6, align 8
%43 = and i64 %sv_0.0, 4294967295
%44 = trunc i64 %36 to i8
%45 = call i64 @FUNC(i64 %42, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_2, i64 0, i64 0), i64 %43, i8 %44, i64 %2, i64 %1)
store i64 %43, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %36, { 1, 0 }
uselistorder i64 %sv_0.0, { 1, 0 }
uselistorder i32* %23, { 2, 1, 0, 3 }
uselistorder i64* %6, { 1, 0, 2 }
uselistorder i64 %4, { 0, 2, 1, 3, 5, 4, 6 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem4, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @mutex_unlock, { 1, 0 }
uselistorder i64 (i64)* @mutex_lock, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i8, i64, i64)* @usb_dbg, { 2, 1, 0 }
} | 1 |
BinRealVul | ssl_write_hello_verify_request_8000 | ssl_write_hello_verify_request | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 4
%2 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0))
%3 = add i64 %0, 40
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = add i64 %5, 16
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = add i64 %0, 32
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = add i64 %0, 28
%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, i32 %11, i32 %8, i64 %1)
%17 = call i64 @FUNC(i64 3, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i64 %1, i64 2)
%18 = load i64, i64* %4, align 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_2, label LBL_1
LBL_1:
%23 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_2, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%24 = add i64 %18, 8
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_4, label LBL_3
LBL_3:
%29 = and i64 %26, 4294967295
%30 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_3, i64 0, i64 0), i64 %29)
store i64 %29, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%31 = add i64 %0, 6
%32 = add i64 %0, 7
%33 = inttoptr i64 %31 to i8*
%34 = xor i64 %31, 255
%35 = add i64 %34, %32
%36 = trunc i64 %35 to i8
store i8 %36, i8* %33, align 1
%37 = urem i64 %35, 256
%38 = call i64 @FUNC(i64 3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_4, i64 0, i64 0), i64 %32, i64 %37)
%39 = trunc i64 %32 to i32
%40 = add i32 %39, -3
%41 = add i64 %0, 16
%42 = inttoptr i64 %41 to i32*
store i32 %40, i32* %42, align 4
%43 = add i64 %0, 20
%44 = inttoptr i64 %43 to i32*
store i32 22, i32* %44, align 4
store i8 14, i8* inttoptr (i64 3 to i8*), align 1
%45 = add i64 %0, 24
%46 = inttoptr i64 %45 to i32*
store i32 1, i32* %46, align 4
%47 = call i64 @FUNC(i64 %0)
%48 = trunc i64 %47 to i32
%49 = icmp eq i32 %48, 0
br i1 %49, label LBL_6, label LBL_5
LBL_5:
%50 = and i64 %47, 4294967295
%51 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_5, i64 0, i64 0), i64 %50)
store i64 %50, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%52 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_6, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %32, { 2, 1, 0 }
uselistorder i64 %0, { 2, 3, 4, 5, 0, 1, 6, 7, 8, 9 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64, i8*, i64)* @MBEDTLS_SSL_DEBUG_RET, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64)* @MBEDTLS_SSL_DEBUG_BUF, { 1, 0 }
uselistorder i64 (i64, i8*)* @MBEDTLS_SSL_DEBUG_MSG, { 2, 1, 0 }
} | 0 |
BinRealVul | i915_gem_init_stolen_17847 | i915_gem_init_stolen | 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 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4)
store i64 %5, i64* %arg1, align 8
%6 = icmp eq i64* %arg1, null
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_1, label LBL_3
LBL_1:
%8 = add i64 %4, 24
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_0, i64 0, i64 0), i64 %10, i64 %4, i64 %3, i64 %2, i64 %1)
%12 = call i64 @FUNC(i64 %4)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%spec.select = select i1 %14, i64 0, i64 1048576
%15 = load i64, i64* %9, align 8
%16 = icmp uge i64 %15, %spec.select
%17 = icmp ne i1 %16, true
%18 = zext i1 %17 to i64
%19 = call i64 @FUNC(i64 %18)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_2, label LBL_3
LBL_2:
%22 = load i64, i64* %9, align 8
%23 = sub i64 %22, %spec.select
%24 = add i64 %4, 16
%25 = call i64 @FUNC(i64 %24, i64 0, i64 %23)
br label LBL_3
LBL_3:
ret i64 0
uselistorder i64 %4, { 0, 1, 3, 2, 4 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 1 |
BinRealVul | qemu_anon_ram_free_14354 | qemu_anon_ram_free | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1, i64 %arg2)
%1 = icmp eq i64 %arg1, 0
store i64 %0, i64* %rax.0.reg2mem
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = inttoptr i64 %arg1 to i64*
%3 = trunc i64 %arg2 to i32
%4 = call i32 @munmap(i64* %2, i32 %3)
%5 = sext i32 %4 to i64
store i64 %5, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %arg1, { 0, 2, 1 }
} | 1 |
BinRealVul | usb_device_post_load_6573 | usb_device_post_load | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
%6 = add i64 %2, 4
%7 = inttoptr i64 %6 to i32*
%. = zext i1 %5 to i32
store i32 %., i32* %7, align 4
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label LBL_3, label LBL_1
LBL_1:
%12 = add i64 %2, 12
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp sgt i32 %14, -1
%16 = icmp ult i32 %10, 256
%or.cond = icmp eq i1 %16, %15
br i1 %or.cond, label LBL_2, label LBL_3
LBL_2:
%17 = icmp ult i32 %14, 256
%spec.select = select i1 %17, i64 0, i64 4294967274
ret i64 %spec.select
LBL_3:
ret i64 4294967274
uselistorder i32 %14, { 1, 0 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i32 256, { 1, 0 }
} | 0 |
BinRealVul | l3_unscale_17308 | l3_unscale | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge2.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = trunc i64 %arg2 to i32
%4 = mul i64 %arg1, 4
%5 = urem i64 %arg2, 4
%6 = or i64 %5, %4
%sext = mul i64 %6, 4294967296
%7 = ashr exact i64 %sext, 30
%8 = add i64 %7, ptrtoint (i32** @gv_0 to i64)
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %7, ptrtoint (i32** @gv_1 to i64)
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = ashr i32 %3, 2
%15 = sub i32 %10, %14
%16 = icmp eq i32 %15, 0
%17 = icmp slt i32 %15, 0
%18 = icmp eq i1 %17, false
%19 = icmp eq i1 %16, false
%20 = icmp eq i1 %18, %19
br i1 %20, label LBL_2, label LBL_1
LBL_1:
%21 = zext i32 %15 to i64
%22 = call i64 @FUNC(i64 0, i64 1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0), i64 %21, i64 %2, i64 %1)
br label LBL_2
LBL_2:
%23 = icmp ult i32 %15, 32
store i64 0, i64* %storemerge2.reg2mem
br i1 %23, label LBL_3, label LBL_4
LBL_3:
%24 = add i32 %15, 31
%25 = urem i32 %24, 32
%26 = shl i32 1, %25
%27 = add i32 %26, %13
%28 = urem i32 %15, 32
%29 = lshr i32 %27, %28
%rdx.0 = zext i32 %29 to i64
store i64 %rdx.0, i64* %storemerge2.reg2mem
br label LBL_4
LBL_4:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
ret i64 %storemerge2.reload
uselistorder i32 %15, { 0, 2, 1, 3, 5, 4 }
uselistorder i64* %storemerge2.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i32 1, { 4, 3, 2, 5, 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | mm_answer_skeyquery_10571 | mm_answer_skeyquery | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
%4 = load i64, i64* @gv_0, align 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = bitcast i32* %sv_0 to i64*
%8 = call i64 @FUNC(i64* nonnull %7, i64 %6, i64* nonnull %sv_1, i64 1024)
%9 = trunc i64 %8 to i32
%10 = icmp sgt i32 %9, -1
%11 = zext i1 %10 to i32
store i32 %11, i32* %sv_0, align 4
%12 = call i64 @FUNC(i64 %3)
%13 = load i32, i32* %sv_0, align 4
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %3, i64 %14)
%16 = load i32, i32* %sv_0, align 4
%17 = icmp eq i32 %16, 0
store i64 0, i64* %.reg2mem
br i1 %17, label LBL_2, label LBL_1
LBL_1:
%18 = call i64 @FUNC(i64 %3, i64* nonnull %sv_1)
%.pre = load i32, i32* %sv_0, align 4
%phitmp = zext i32 %.pre to i64
store i64 %phitmp, i64* %.reg2mem
br label LBL_2
LBL_2:
%19 = and i64 %arg1, 4294967295
%.reload = load i64, i64* %.reg2mem
%20 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0), i64 %.reload, i64 1024, i64 %2, i64 %1)
%21 = call i64 @FUNC(i64 %19, i64 1, i64 %3)
ret i64 0
uselistorder i32* %sv_0, { 0, 3, 2, 1, 4 }
uselistorder i64 %3, { 1, 0, 3, 2 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
} | 0 |
BinRealVul | nut_write_trailer_13887 | nut_write_trailer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%3 = add i64 %2, 16
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = trunc i64 %1 to i32
%7 = icmp slt i32 %6, 3
br i1 %7, label LBL_1, label LBL_2
LBL_1:
%8 = call i64 @FUNC(i64 %2, i64 %5)
br label LBL_1
LBL_2:
%9 = call i64 @FUNC(i64* nonnull %sv_0)
%10 = trunc i64 %9 to i32
%11 = icmp slt i32 %10, 0
br i1 %11, label LBL_7, label LBL_3
LBL_3:
%12 = add i64 %2, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_7, label LBL_4
LBL_4:
%16 = add i64 %2, 32
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_6, label LBL_5
LBL_5:
call void @exit(i32 1)
unreachable
LBL_6:
%21 = load i64, i64* %sv_0, align 8
%22 = call i64 @FUNC(i64 %2, i64 %21)
%23 = load i64, i64* %sv_0, align 8
%24 = call i64 @FUNC(i64 %2, i64 %5, i64 %23, i64 1, i64 0)
br label LBL_7
LBL_7:
%25 = call i64 @FUNC(i64 %2)
%26 = add i64 %2, 8
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = icmp eq i32 %28, 0
br i1 %29, label LBL_10, label LBL_8
LBL_8:
%30 = inttoptr i64 %26 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_9
LBL_9:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%31 = load i64, i64* %30, align 8
%32 = mul i64 %.reload, 8
%33 = add i64 %31, %32
%34 = call i64 @FUNC(i64 %33)
%35 = add i32 %storemerge1.reload, 1
%36 = load i32, i32* %27, align 4
%37 = zext i32 %36 to i64
%38 = sext i32 %35 to i64
%39 = icmp slt i64 %38, %37
store i64 %38, i64* %.reg2mem
store i32 %35, i32* %storemerge1.reg2mem
br i1 %39, label LBL_9, label LBL_10
LBL_10:
%40 = call i64 @FUNC(i64 %26)
%41 = call i64 @FUNC(i64 %3)
%42 = add i64 %2, 24
%43 = call i64 @FUNC(i64 %42)
ret i64 0
uselistorder i32* %27, { 1, 0 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64 %2, { 4, 5, 6, 2, 3, 1, 0, 7, 8 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @av_freep, { 2, 1, 0, 3 }
uselistorder i32 0, { 0, 1, 3, 4, 5, 2 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | parse_int32_14213 | parse_int32 | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8*, align 8
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = inttoptr i64 %arg3 to i8*
%4 = call i32 @strtol(i8* %3, i8** nonnull %sv_0, i32 10)
%5 = inttoptr i64 %2 to i32*
store i32 %4, i32* %5, align 4
%6 = load i8*, i8** %sv_0, align 8
%7 = load i8, i8* %6, align 1
%8 = icmp eq i8 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = ptrtoint i8* %6 to i64
%11 = icmp eq i64 %10, %arg3
%12 = icmp eq i1 %11, false
%spec.select = select i1 %12, i64 0, i64 4294967274
ret i64 %spec.select
LBL_2:
ret i64 4294967274
uselistorder i8 0, { 1, 0 }
} | 1 |
BinRealVul | spatial_decompose97i_14528 | spatial_decompose97i | define i64 @FUNC(i64 %arg1, i32 %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i64
%sv_0.06.reg2mem = alloca i64
%sv_1.07.reg2mem = alloca i64
%sv_2.08.reg2mem = alloca i64
%sv_3.09.reg2mem = alloca i64
%storemerge10.reg2mem = alloca i32
%0 = add i32 %arg3, -1
%1 = zext i32 %0 to i64
%2 = call i64 @FUNC(i64 4294967291, i64 %1)
%3 = call i64 @FUNC(i64 4294967292, i64 %1)
%4 = call i64 @FUNC(i64 4294967293, i64 %1)
%5 = call i64 @FUNC(i64 4294967294, i64 %1)
%6 = icmp sgt i32 %arg3, -4
store i64 4294967292, i64* %storemerge.lcssa.reg2mem
br i1 %6, label LBL_1, label LBL_16
LBL_1:
%7 = trunc i64 %5 to i32
%8 = mul i32 %7, %arg4
%9 = sext i32 %8 to i64
%10 = mul i64 %9, 4
%11 = add i64 %10, %arg1
%12 = trunc i64 %4 to i32
%13 = mul i32 %12, %arg4
%14 = sext i32 %13 to i64
%15 = mul i64 %14, 4
%16 = add i64 %15, %arg1
%17 = trunc i64 %3 to i32
%18 = mul i32 %17, %arg4
%19 = sext i32 %18 to i64
%20 = mul i64 %19, 4
%21 = add i64 %20, %arg1
%22 = trunc i64 %2 to i32
%23 = mul i32 %22, %arg4
%24 = sext i32 %23 to i64
%25 = mul i64 %24, 4
%26 = add i64 %25, %arg1
%27 = zext i32 %arg2 to i64
%28 = sext i32 %arg3 to i64
store i32 -4, i32* %storemerge10.reg2mem
store i64 %11, i64* %sv_3.09.reg2mem
store i64 %16, i64* %sv_2.08.reg2mem
store i64 %21, i64* %sv_1.07.reg2mem
store i64 %26, i64* %sv_0.06.reg2mem
br label LBL_2
LBL_2:
%sv_0.06.reload = load i64, i64* %sv_0.06.reg2mem
%sv_1.07.reload = load i64, i64* %sv_1.07.reg2mem
%sv_2.08.reload = load i64, i64* %sv_2.08.reg2mem
%sv_3.09.reload = load i64, i64* %sv_3.09.reg2mem
%storemerge10.reload = load i32, i32* %storemerge10.reg2mem
%29 = add i32 %storemerge10.reload, 3
%30 = zext i32 %29 to i64
%31 = call i64 @FUNC(i64 %30, i64 %1)
%32 = trunc i64 %31 to i32
%33 = mul i32 %32, %arg4
%34 = sext i32 %33 to i64
%35 = mul i64 %34, 4
%36 = add i64 %35, %arg1
%37 = add i32 %storemerge10.reload, 4
%38 = zext i32 %37 to i64
%39 = call i64 @FUNC(i64 %38, i64 %1)
%40 = trunc i64 %39 to i32
%41 = mul i32 %40, %arg4
%42 = sext i32 %41 to i64
%43 = mul i64 %42, 4
%44 = add i64 %43, %arg1
%45 = icmp ugt i64 %sv_3.09.reload, %44
br i1 %45, label LBL_4, label LBL_3
LBL_3:
%46 = call i64 @FUNC(i64 %36, i64 %27)
br label LBL_4
LBL_4:
%47 = icmp sgt i64 %28, %38
br i1 %47, label LBL_5, label LBL_6
LBL_5:
%48 = call i64 @FUNC(i64 %44, i64 %27)
br label LBL_6
LBL_6:
br i1 %45, label LBL_8, label LBL_7
LBL_7:
%49 = call i64 @FUNC(i64 %sv_3.09.reload, i64 %36, i64 %44, i32 %arg2)
br label LBL_8
LBL_8:
%50 = icmp ugt i64 %sv_2.08.reload, %36
br i1 %50, label LBL_10, label LBL_9
LBL_9:
%51 = call i64 @FUNC(i64 %sv_2.08.reload, i64 %sv_3.09.reload, i64 %36, i32 %arg2)
br label LBL_10
LBL_10:
%52 = icmp ugt i64 %sv_1.07.reload, %sv_3.09.reload
br i1 %52, label LBL_12, label LBL_11
LBL_11:
%53 = call i64 @FUNC(i64 %sv_1.07.reload, i64 %sv_2.08.reload, i64 %sv_3.09.reload, i32 %arg2)
br label LBL_12
LBL_12:
%54 = icmp ugt i64 %sv_0.06.reload, %sv_2.08.reload
br i1 %54, label LBL_14, label LBL_13
LBL_13:
%55 = call i64 @FUNC(i64 %sv_0.06.reload, i64 %sv_1.07.reload, i64 %sv_2.08.reload, i32 %arg2)
br label LBL_14
LBL_14:
%56 = add i32 %storemerge10.reload, 2
%57 = icmp slt i32 %56, %arg3
store i32 %56, i32* %storemerge10.reg2mem
store i64 %44, i64* %sv_3.09.reg2mem
store i64 %36, i64* %sv_2.08.reg2mem
store i64 %sv_3.09.reload, i64* %sv_1.07.reg2mem
store i64 %sv_2.08.reload, i64* %sv_0.06.reg2mem
br i1 %57, label LBL_2, label LBL_15
LBL_15:
%phitmp = zext i32 %56 to i64
store i64 %phitmp, i64* %storemerge.lcssa.reg2mem
br label LBL_16
LBL_16:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i32 %56, { 1, 0, 2 }
uselistorder i64 %36, { 0, 4, 3, 2, 1 }
uselistorder i64 %sv_3.09.reload, { 0, 3, 2, 1, 4, 5 }
uselistorder i64 %sv_2.08.reload, { 0, 3, 2, 1, 5, 4 }
uselistorder i64 %sv_1.07.reload, { 0, 2, 1 }
uselistorder i64 %sv_0.06.reload, { 1, 0 }
uselistorder i32* %storemerge10.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.09.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.08.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.07.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.06.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @horizontal_decompose97i, { 1, 0 }
uselistorder i64 (i64, i64)* @mirror, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 %arg3, { 2, 1, 0, 3 }
uselistorder i32 %arg2, { 4, 3, 2, 1, 0 }
uselistorder label LBL_14, { 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 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | kvm_uncoalesce_mmio_region_335 | kvm_uncoalesce_mmio_region | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%0 = load i32*, i32** @gv_0, align 8
%1 = load i32, i32* %0, align 4
%2 = icmp eq i32 %1, 0
store i64 4294967258, i64* %sv_0.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
store i64 %arg1, i64* %sv_1, align 8
%3 = ptrtoint i32* %0 to i64
%4 = call i64 @FUNC(i64 %3, i64 1, i64* nonnull %sv_1)
%phitmp = and i64 %4, 4294967295
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
} | 0 |
BinRealVul | g2m_init_buffers_15093 | g2m_init_buffers | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 32
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
%7 = trunc i64 %1 to i32
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp ult i32 %10, %7
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = add i64 %2, 12
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i64 %2, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp ult i32 %14, %17
br i1 %18, label LBL_3, label LBL_4
LBL_3:
%19 = mul i32 %7, 3
%20 = add i32 %19, 15
%21 = and i32 %20, -16
%22 = add i64 %2, 40
%23 = inttoptr i64 %22 to i32*
store i32 %21, i32* %23, align 4
%24 = add i64 %2, 4
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = add i32 %26, 15
%28 = and i32 %27, -16
%29 = load i64, i64* %4, align 8
%30 = call i64 @FUNC(i64 %29)
%31 = load i32, i32* %23, align 4
%32 = mul i32 %31, %28
%33 = sext i32 %32 to i64
%34 = call i64 @FUNC(i64 %33)
store i64 %34, i64* %4, align 8
%35 = icmp eq i64 %34, 0
%36 = icmp eq i1 %35, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %36, label LBL_4, label LBL_12
LBL_4:
%37 = add i64 %2, 48
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = icmp eq i64 %39, 0
%.pre2 = add i64 %2, 56
%.pre4 = inttoptr i64 %.pre2 to i64*
br i1 %40, label LBL_8, label LBL_5
LBL_5:
%41 = load i64, i64* %.pre4, align 8
%42 = icmp eq i64 %41, 0
br i1 %42, label LBL_8, label LBL_6
LBL_6:
%43 = add i64 %2, 24
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = add i64 %2, 16
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = icmp ult i32 %45, %48
br i1 %49, label LBL_8, label LBL_7
LBL_7:
%50 = add i64 %2, 28
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = add i64 %2, 20
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = icmp ult i32 %52, %55
br i1 %56, label LBL_8, label LBL_11
LBL_8:
%57 = add i64 %2, 16
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = add i32 %59, 15
%61 = and i32 %60, -16
%62 = mul i32 %61, 3
%63 = add i64 %2, 64
%64 = inttoptr i64 %63 to i32*
store i32 %62, i32* %64, align 4
%65 = add i64 %2, 20
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = add i32 %67, 15
%69 = and i32 %68, -16
%70 = load i64, i64* %38, align 8
%71 = call i64 @FUNC(i64 %70)
%72 = load i64, i64* %.pre4, align 8
%73 = call i64 @FUNC(i64 %72)
%74 = add i64 %2, 72
%75 = inttoptr i64 %74 to i64*
%76 = load i64, i64* %75, align 8
%77 = call i64 @FUNC(i64 %76)
%78 = add i64 %2, 80
%79 = inttoptr i64 %78 to i64*
%80 = load i64, i64* %79, align 8
%81 = call i64 @FUNC(i64 %80)
%82 = load i32, i32* %64, align 4
%83 = mul i32 %82, %69
%84 = sext i32 %83 to i64
%85 = call i64 @FUNC(i64 %84)
store i64 %85, i64* %38, align 8
%86 = load i32, i32* %64, align 4
%87 = mul i32 %86, %69
%88 = sext i32 %87 to i64
%89 = call i64 @FUNC(i64 %88)
store i64 %89, i64* %.pre4, align 8
%90 = load i32, i32* %58, align 4
%91 = add i32 %90, 1
%92 = mul i32 %91, %69
%93 = add i32 %92, 32
%94 = sext i32 %93 to i64
%95 = call i64 @FUNC(i64 %94)
store i64 %95, i64* %75, align 8
%96 = load i32, i32* %58, align 4
%97 = mul i32 %96, %69
%98 = sext i32 %97 to i64
%99 = call i64 @FUNC(i64 %98)
store i64 %99, i64* %79, align 8
%100 = load i64, i64* %38, align 8
%101 = icmp eq i64 %100, 0
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %101, label LBL_12, label LBL_9
LBL_9:
%102 = load i64, i64* %.pre4, align 8
%103 = icmp eq i64 %102, 0
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %103, label LBL_12, label LBL_10
LBL_10:
%104 = load i64, i64* %75, align 8
%105 = icmp ne i64 %104, 0
%106 = icmp eq i64 %99, 0
%107 = icmp eq i1 %106, false
%or.cond = icmp eq i1 %107, %105
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_11, label LBL_12
LBL_11:
store i64 0, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 1, 2, 3, 5, 4, 9, 10, 7, 8, 0, 6, 11, 12, 14, 13, 15, 16 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 3, 2, 1, 4 }
uselistorder i64 4294967284, { 2, 1, 0, 3 }
uselistorder i64 (i64)* @av_mallocz, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @av_free, { 4, 3, 2, 1, 0 }
uselistorder label LBL_12, { 4, 0, 2, 1, 3 }
uselistorder label LBL_8, { 1, 2, 3, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 2, 0 }
} | 1 |
BinRealVul | jas_image_growcmpts_9168 | jas_image_growcmpts | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge24.reg2mem = alloca i32
%.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
%7 = and i64 %1, 4294967295
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %7, i64 8)
store i64 %8, i64* %storemerge3.reg2mem
br label LBL_3
LBL_2:
%9 = call i64 @FUNC(i64 %4, i64 %7, i64 8)
store i64 %9, i64* %storemerge3.reg2mem
br label LBL_3
LBL_3:
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%10 = icmp eq i64 %storemerge3.reload, 0
%11 = icmp eq i1 %10, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %11, label LBL_4, label LBL_6
LBL_4:
store i64 %storemerge3.reload, i64* %3, align 8
%12 = trunc i64 %1 to i32
%13 = add i64 %0, 4
%14 = inttoptr i64 %13 to i32*
store i32 %12, i32* %14, align 4
%15 = bitcast i64* %rdi to i32*
%16 = load i32, i32* %15, align 8
%17 = sext i32 %16 to i64
%18 = icmp sgt i64 %7, %17
store i64 %17, i64* %.reg2mem
store i32 %16, i32* %storemerge24.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %18, label LBL_5, label LBL_6
LBL_5:
%storemerge24.reload = load i32, i32* %storemerge24.reg2mem
%.reload = load i64, i64* %.reg2mem
%19 = load i64, i64* %3, align 8
%20 = mul i64 %.reload, 8
%21 = add i64 %19, %20
%22 = inttoptr i64 %21 to i64*
store i64 0, i64* %22, align 8
%23 = add i32 %storemerge24.reload, 1
%24 = load i32, i32* %14, align 4
%25 = zext i32 %24 to i64
%26 = sext i32 %23 to i64
%27 = icmp slt i64 %26, %25
store i64 %26, i64* %.reg2mem
store i32 %23, i32* %storemerge24.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %27, label LBL_5, label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %storemerge3.reload, { 1, 0 }
uselistorder i64 %7, { 0, 2, 1 }
uselistorder i64* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge24.reg2mem, { 2, 0, 1 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | mutt_mktime_4598 | mutt_mktime | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 20
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp slt i32 %3, 139
store i64 -1, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_5
LBL_1:
%5 = icmp sgt i32 %3, 69
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_5
LBL_2:
%6 = add i64 %0, 16
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = srem i32 %8, 12
%10 = sext i32 %9 to i64
%11 = mul i64 %10, 4
%12 = add i64 %11, ptrtoint (i32** @gv_0 to i64)
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i64 %0, 12
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i32 %17, %14
%19 = urem i32 %3, 4
%20 = icmp ne i32 %19, 0
%21 = icmp slt i32 %8, 2
%not.or.cond = or i1 %20, %21
%22 = sext i1 %not.or.cond to i32
%sv_0.0 = add i32 %18, %22
%23 = add i64 %0, 28
%24 = inttoptr i64 %23 to i32*
store i32 %sv_0.0, i32* %24, align 4
%25 = load i32, i32* %2, align 4
%26 = mul i32 %25, 365
%27 = add i32 %25, -69
%28 = add i32 %25, -66
%29 = icmp slt i32 %27, 0
%30 = select i1 %29, i32 %28, i32 %27
%31 = ashr i32 %30, 2
%32 = add i32 %sv_0.0, -25550
%33 = add i32 %32, %26
%34 = add i32 %33, %31
%35 = mul i32 %34, 24
%36 = add i64 %0, 8
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = add i32 %35, %38
%40 = mul i32 %39, 60
%41 = add i64 %0, 4
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = add i32 %40, %43
%45 = mul i32 %44, 60
%46 = bitcast i64* %rdi to i32*
%47 = load i32, i32* %46, align 8
%48 = add i32 %45, %47
%49 = trunc i64 %arg2 to i32
%50 = icmp eq i32 %49, 0
store i32 %48, i32* %sv_0.1.reg2mem
br i1 %50, label LBL_4, label LBL_3
LBL_3:
%51 = sext i32 %48 to i64
%52 = call i64 @FUNC(i64 %51, i64 %0)
%53 = trunc i64 %52 to i32
%54 = sub i32 %48, %53
store i32 %54, i32* %sv_0.1.reg2mem
br label LBL_4
LBL_4:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%55 = sext i32 %sv_0.1.reload to i64
store i64 %55, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %48, { 2, 1, 0 }
uselistorder i32 %25, { 1, 0, 2 }
uselistorder i32 %8, { 1, 0 }
uselistorder i64 %0, { 0, 1, 2, 3, 5, 4, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder label LBL_5, { 2, 0, 1 }
} | 0 |
BinRealVul | __release_sock_12670 | __release_sock | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = icmp eq i64* %arg1, null
%4 = icmp eq i1 %3, false
br label LBL_1
LBL_1:
store i64 0, i64* %2, align 8
store i64 0, i64* %arg1, align 8
%5 = call i64 @FUNC(i64 %0)
store i64 %0, i64* %sv_0.1.reg2mem
br label LBL_2
LBL_2:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%6 = inttoptr i64 %sv_0.1.reload to i64*
%7 = load i64, i64* %6, align 8
store i64 0, i64* %6, align 8
%8 = call i64 @FUNC(i64 %0, i64 %sv_0.1.reload)
%9 = call i64 @FUNC()
%10 = icmp eq i64 %7, 0
%11 = icmp eq i1 %10, false
store i64 %7, i64* %sv_0.1.reg2mem
br i1 %11, label LBL_2, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %0)
br i1 %4, label LBL_1, label LBL_4
LBL_4:
ret i64 %0
uselistorder i64 %sv_0.1.reload, { 1, 0 }
uselistorder i64 %0, { 1, 2, 3, 0, 4, 5 }
uselistorder i64* %sv_0.1.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 1, 0 }
uselistorder i64* %arg1, { 1, 0, 2 }
} | 1 |
BinRealVul | bnx2x_nic_init_17801 | bnx2x_nic_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%3 = call i64 @FUNC(i64 %2, i64 %indvars.iv.reload)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 4
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%4 = trunc i64 %1 to i32
%5 = and i64 %arg2, 4294967295
%6 = call i64 @FUNC()
%7 = call i64 @FUNC(i64 %2)
%8 = call i64 @FUNC(i64 %2)
%9 = add i64 %2, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = add i64 %2, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i64 %2, 12
%16 = zext i32 %11 to i64
%17 = call i64 @FUNC(i64 %2, i64 %15, i32 %4, i32 %14, i64 %16, i64 0)
%18 = call i64 @FUNC(i64 %2)
%19 = call i64 @FUNC(i64 %2)
%20 = call i64 @FUNC(i64 %2)
%21 = call i64 @FUNC(i64 %2)
%22 = call i64 @FUNC(i64 %2, i64 %5)
%23 = call i64 @FUNC(i64 %2)
%24 = call i64 @FUNC(i64 %2)
%25 = call i64 @FUNC()
%26 = call i64 @FUNC()
%27 = call i64 @FUNC(i64 %2)
%28 = call i64 @FUNC(i64 %2, i64 256)
%29 = urem i64 %28, 2
%30 = call i64 @FUNC(i64 %2, i64 %29)
ret i64 %30
uselistorder i64 %2, { 2, 1, 0, 6, 5, 4, 3, 11, 10, 9, 8, 7, 15, 14, 13, 12, 16 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 4, { 1, 0 }
} | 1 |
BinRealVul | mm_for_maps_11698 | mm_for_maps | 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
%3 = icmp eq i1 %2, false
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_5
LBL_1:
%4 = load i64, i64* @gv_0, align 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %1, %6
br i1 %7, label LBL_4, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %0, i64 1)
%9 = trunc i64 %8 to i32
%10 = icmp ne i32 %9, 0
%11 = icmp eq i64 %1, %0
%or.cond = icmp eq i1 %11, %10
br i1 %or.cond, label LBL_4, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%13 = call i64 @FUNC(i64 %1)
store i64 %1, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 0, 3, 2, 1, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 1, { 1, 0 }
uselistorder label LBL_5, { 1, 2, 0 }
} | 1 |
BinRealVul | updateDevice_4728 | updateDevice | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.07.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%.pre-phi29.reg2mem = alloca i64*
%.pre-phi33.reg2mem = alloca i32*
%.pre-phi37.reg2mem = alloca i32*
%rdi.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%.pre-phi21.pre-phi.reg2mem = alloca i32*
%.pre-phi25.pre-phi.reg2mem = alloca i32*
%sv_2.010.reg2mem = alloca i64
%rdi.111.reg2mem = alloca i64
%storemerge112.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%storemerge19 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %storemerge19, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_0.LBL_13_crit_edge
LBL_1:
%.pre26 = add i64 %0, 16
%.pre28 = inttoptr i64 %.pre26 to i64*
%.pre30 = add i64 %0, 24
%.pre32 = inttoptr i64 %.pre30 to i32*
%.pre34 = add i64 %0, 8
%.pre36 = inttoptr i64 %.pre34 to i32*
store i32* %.pre36, i32** %.pre-phi37.reg2mem
store i32* %.pre32, i32** %.pre-phi33.reg2mem
store i64* %.pre28, i64** %.pre-phi29.reg2mem
br label LBL_13
LBL_2:
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i32*
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i32*
%7 = add i64 %0, 16
%8 = inttoptr i64 %7 to i64*
store i64 %storemerge19, i64* %storemerge112.reg2mem
store i64 %0, i64* %rdi.111.reg2mem
store i64 ptrtoint (i64* @gv_0 to i64), i64* %sv_2.010.reg2mem
br label LBL_3
LBL_3:
%rdi.111.reload = load i64, i64* %rdi.111.reg2mem
%storemerge112.reload = load i64, i64* %storemerge112.reg2mem
%9 = add i64 %storemerge112.reload, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = load i32, i32* %4, align 4
%13 = icmp eq i32 %11, %12
%14 = icmp eq i1 %13, false
store i64 %rdi.111.reload, i64* %rdi.0.reg2mem
br i1 %14, label LBL_12, label LBL_4
LBL_4:
%15 = inttoptr i64 %storemerge112.reload to i64*
%16 = load i64, i64* %15, align 8
%17 = inttoptr i64 %16 to i64*
%18 = inttoptr i64 %rdi.111.reload to i64*
%19 = call i32 @memcmp(i64* %17, i64* %18, i32 %12)
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
store i64 %16, i64* %rdi.0.reg2mem
br i1 %21, label LBL_12, label LBL_5
LBL_5:
%22 = add i64 %storemerge112.reload, 24
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = load i32, i32* %6, align 4
%26 = icmp eq i32 %24, %25
%27 = icmp eq i1 %26, false
store i64 %16, i64* %rdi.0.reg2mem
br i1 %27, label LBL_12, label LBL_6
LBL_6:
%28 = load i64, i64* %8, align 8
%29 = add i64 %storemerge112.reload, 16
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = inttoptr i64 %31 to i64*
%33 = inttoptr i64 %28 to i64*
%34 = call i32 @memcmp(i64* %32, i64* %33, i32 %25)
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
store i64 %31, i64* %rdi.0.reg2mem
br i1 %36, label LBL_12, label LBL_7
LBL_7:
%sv_2.010.reload = load i64, i64* %sv_2.010.reg2mem
%37 = load i64, i64* %8, align 8
%38 = load i32, i32* %6, align 4
%39 = zext i32 %38 to i64
%40 = inttoptr i64 %37 to i8*
call void (i32, i8*, ...) @syslog(i32 7, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i64 %39, i8* %40)
%41 = add i64 %storemerge112.reload, 56
%42 = inttoptr i64 %41 to i64*
store i64 %arg2, i64* %42, align 8
%43 = add i64 %0, 40
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = add i64 %storemerge112.reload, 40
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = icmp ugt i32 %45, %48
store i32* %23, i32** %.pre-phi25.pre-phi.reg2mem
store i32* %10, i32** %.pre-phi21.pre-phi.reg2mem
store i32 %45, i32* %.reg2mem
store i64 %storemerge112.reload, i64* %sv_1.0.reg2mem
br i1 %49, label LBL_8, label LBL_11
LBL_8:
%50 = load i32, i32* %4, align 4
%51 = load i32, i32* %6, align 4
%52 = add i32 %45, 72
%53 = add i32 %52, %50
%54 = add i32 %53, %51
%55 = call i64* @realloc(i64* %15, i32 %54)
%56 = icmp eq i64* %55, null
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_10, label LBL_9
LBL_9:
call void (i32, i8*, ...) @syslog(i32 3, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_2, i64 0, i64 0))
%58 = add i64 %storemerge112.reload, 64
%59 = inttoptr i64 %58 to i64*
%60 = load i64, i64* %59, align 8
%61 = inttoptr i64 %sv_2.010.reload to i64*
store i64 %60, i64* %61, align 8
call void @free(i64* %15)
store i64 0, i64* %rax.0.reg2mem
br label LBL_18
LBL_10:
%62 = ptrtoint i64* %55 to i64
%63 = inttoptr i64 %sv_2.010.reload to i64*
store i64 %62, i64* %63, align 8
%.pre = load i32, i32* %44, align 4
%.pre19 = add i64 %62, 8
%.pre22 = add i64 %62, 24
%.pre49 = inttoptr i64 %.pre19 to i32*
%.pre50 = inttoptr i64 %.pre22 to i32*
store i32* %.pre50, i32** %.pre-phi25.pre-phi.reg2mem
store i32* %.pre49, i32** %.pre-phi21.pre-phi.reg2mem
store i32 %.pre, i32* %.reg2mem
store i64 %62, i64* %sv_1.0.reg2mem
br label LBL_11
LBL_11:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%.reload = load i32, i32* %.reg2mem
%.pre-phi21.pre-phi.reload = load i32*, i32** %.pre-phi21.pre-phi.reg2mem
%.pre-phi25.pre-phi.reload = load i32*, i32** %.pre-phi25.pre-phi.reg2mem
%64 = add i64 %0, 32
%65 = inttoptr i64 %64 to i64*
%66 = load i64, i64* %65, align 8
%67 = add i64 %sv_1.0.reload, 48
%68 = inttoptr i64 %67 to i64*
%69 = load i64, i64* %68, align 8
%70 = load i32, i32* %.pre-phi21.pre-phi.reload, align 4
%71 = sext i32 %70 to i64
%72 = load i32, i32* %.pre-phi25.pre-phi.reload, align 4
%73 = sext i32 %72 to i64
%74 = add i64 %69, %71
%75 = add i64 %74, %73
%76 = inttoptr i64 %75 to i64*
%77 = inttoptr i64 %66 to i64*
%78 = call i64* @memcpy(i64* %76, i64* %77, i32 %.reload)
store i64 0, i64* %rax.0.reg2mem
br label LBL_18
LBL_12:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%79 = add i64 %storemerge112.reload, 64
%80 = inttoptr i64 %79 to i64*
%storemerge1 = load i64, i64* %80, align 8
%81 = icmp eq i64 %storemerge1, 0
%82 = icmp eq i1 %81, false
store i64 %storemerge1, i64* %storemerge112.reg2mem
store i64 %rdi.0.reload, i64* %rdi.111.reg2mem
store i64 %79, i64* %sv_2.010.reg2mem
store i32* %4, i32** %.pre-phi37.reg2mem
store i32* %6, i32** %.pre-phi33.reg2mem
store i64* %8, i64** %.pre-phi29.reg2mem
br i1 %82, label LBL_3, label LBL_13
LBL_13:
%.pre-phi29.reload = load i64*, i64** %.pre-phi29.reg2mem
%.pre-phi33.reload = load i32*, i32** %.pre-phi33.reg2mem
%.pre-phi37.reload = load i32*, i32** %.pre-phi37.reg2mem
%83 = load i64, i64* %.pre-phi29.reload, align 8
%84 = load i32, i32* %.pre-phi33.reload, align 4
%85 = zext i32 %84 to i64
%86 = inttoptr i64 %83 to i8*
call void (i32, i8*, ...) @syslog(i32 6, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_3, i64 0, i64 0), i64 %85, i8* %86)
%87 = load i32, i32* %.pre-phi37.reload, align 4
%88 = load i32, i32* %.pre-phi33.reload, align 4
%89 = add i64 %0, 40
%90 = inttoptr i64 %89 to i32*
%91 = load i32, i32* %90, align 4
%92 = add i32 %87, 72
%93 = add i32 %92, %88
%94 = add i32 %93, %91
%95 = call i64* @malloc(i32 %94)
%96 = icmp eq i64* %95, null
%97 = icmp eq i1 %96, false
br i1 %97, label LBL_15, label LBL_14
LBL_14:
call void (i32, i8*, ...) @syslog(i32 3, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_4, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_18
LBL_15:
%98 = ptrtoint i64* %95 to i64
%99 = load i64, i64* @gv_0, align 8
%100 = add i64 %98, 64
%101 = inttoptr i64 %100 to i64*
store i64 %99, i64* %101, align 8
%102 = add i64 %98, 56
%103 = inttoptr i64 %102 to i64*
store i64 %arg2, i64* %103, align 8
%104 = add i64 %98, 48
%105 = inttoptr i64 %104 to i64*
%106 = load i64, i64* %105, align 8
store i64 0, i64* %indvars.iv.reg2mem
store i64 %106, i64* %sv_0.07.reg2mem
br label LBL_16
LBL_16:
%sv_0.07.reload = load i64, i64* %sv_0.07.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%107 = mul i64 %indvars.iv.reload, 16
%108 = add i64 %107, %98
%109 = inttoptr i64 %108 to i64*
store i64 %sv_0.07.reload, i64* %109, align 8
%110 = add i64 %107, %0
%111 = add i64 %110, 8
%112 = inttoptr i64 %111 to i32*
%113 = load i32, i32* %112, align 4
%114 = add i64 %108, 8
%115 = inttoptr i64 %114 to i32*
store i32 %113, i32* %115, align 4
%116 = load i32, i32* %112, align 4
%117 = inttoptr i64 %110 to i64*
%118 = load i64, i64* %117, align 8
%119 = inttoptr i64 %sv_0.07.reload to i64*
%120 = inttoptr i64 %118 to i64*
%121 = call i64* @memcpy(i64* %119, i64* %120, i32 %116)
%122 = load i32, i32* %112, align 4
%123 = sext i32 %122 to i64
%124 = add i64 %sv_0.07.reload, %123
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 3
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %124, i64* %sv_0.07.reg2mem
br i1 %exitcond, label LBL_17, label LBL_16
LBL_17:
store i64 %98, i64* @gv_0, align 8
%125 = call i64 @FUNC(i64 1, i64 %98, i64 0)
store i64 1, 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 %107, { 1, 0 }
uselistorder i64 %sv_0.07.reload, { 2, 0, 1 }
uselistorder i64 %98, { 1, 2, 0, 3, 4, 5 }
uselistorder i64* %95, { 1, 0 }
uselistorder i64* %55, { 1, 0 }
uselistorder i32 %45, { 1, 0, 2 }
uselistorder i64 %storemerge112.reload, { 5, 8, 0, 7, 6, 2, 1, 3, 4 }
uselistorder i64 %rdi.111.reload, { 1, 0 }
uselistorder i32* %6, { 0, 2, 1, 3 }
uselistorder i64 %0, { 1, 5, 6, 7, 0, 9, 8, 10, 2, 3, 4 }
uselistorder i64* %storemerge112.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.111.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.010.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.07.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i32 3, { 1, 0 }
uselistorder i64* null, { 1, 0 }
uselistorder i32 72, { 1, 0 }
uselistorder i64 40, { 0, 2, 1 }
uselistorder void (i32, i8*, ...)* @syslog, { 1, 2, 0, 3 }
uselistorder i32 (i64*, i64*, i32)* @memcmp, { 1, 0 }
uselistorder i64 8, { 2, 3, 1, 5, 4, 0 }
uselistorder i64 24, { 1, 3, 2, 0 }
uselistorder i64 16, { 0, 2, 3, 1 }
uselistorder i1 false, { 6, 7, 1, 2, 3, 4, 5, 0 }
uselistorder i64* @gv_0, { 1, 2, 3, 0 }
uselistorder label LBL_18, { 0, 3, 1, 2 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | patch_legacy_mode_8258 | patch_legacy_mode | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4
%1 = icmp eq i32 %0, 0
br i1 %1, label LBL_3, label LBL_1
LBL_1:
store i32 0, i32* bitcast (i64* @gv_0 to i32*), align 8
%2 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%3 = trunc i64 %2 to i32
store i32 %3, i32* inttoptr (i64 4210732 to i32*), align 4
%4 = load i32, i32* @gv_3, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_4, i64 0, i64 0))
br label LBL_3
LBL_3:
%7 = load i32, i32* @gv_3, align 4
%8 = zext i32 %7 to i64
ret i64 %8
uselistorder i32* @gv_3, { 1, 0 }
} | 0 |
BinRealVul | decode_i_picture_primary_header_16853 | decode_i_picture_primary_header | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 32
%7 = trunc i64 %3 to i32
%8 = icmp sgt i32 %7, 1
br i1 %8, label LBL_3, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %6, i64 7)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = add i64 %5, 24
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %14, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %2, i64 %1)
br label LBL_3
LBL_3:
%16 = call i64 @FUNC(i64 %6, i64 5)
%17 = add i64 %5, 4
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp eq i32 %19, 1
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%sext = mul i64 %16, 4294967296
%22 = ashr exact i64 %sext, 30
%23 = add i64 %22, ptrtoint (i32** @gv_1 to i64)
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = add i64 %5, 8
%27 = inttoptr i64 %26 to i32*
store i32 %25, i32* %27, align 4
br label LBL_6
LBL_5:
%28 = add i32 %19, -1
%sext1 = mul i64 %16, 4294967296
%29 = ashr exact i64 %sext1, 32
%30 = sext i32 %28 to i64
%31 = mul i64 %30, 32
%32 = add nsw i64 %31, %29
%33 = mul i64 %32, 4
%34 = add i64 %33, ptrtoint (i32** @gv_1 to i64)
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = add i64 %5, 8
%38 = inttoptr i64 %37 to i32*
store i32 %36, i32* %38, align 4
br label LBL_6
LBL_6:
%39 = trunc i64 %16 to i32
%40 = icmp sgt i32 %39, 8
br i1 %40, label LBL_8, label LBL_7
LBL_7:
%41 = call i64 @FUNC(i64 %6, i64 1)
%42 = trunc i64 %41 to i32
%43 = add i64 %5, 12
%44 = inttoptr i64 %43 to i32*
store i32 %42, i32* %44, align 4
br label LBL_8
LBL_8:
%45 = load i32, i32* %18, align 4
%46 = icmp eq i32 %45, 2
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_10, label LBL_9
LBL_9:
%48 = call i64 @FUNC(i64 %6, i64 1)
%49 = trunc i64 %48 to i32
%50 = add i64 %5, 16
%51 = inttoptr i64 %50 to i32*
store i32 %49, i32* %51, align 4
br label LBL_10
LBL_10:
%52 = add i64 %5, 12
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = add i64 %5, 8
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = add i64 %5, 24
%59 = inttoptr i64 %58 to i64*
%60 = load i64, i64* %59, align 8
%61 = zext i32 %54 to i64
%62 = zext i32 %57 to i64
%63 = call i64 @FUNC(i64 %60, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_2, i64 0, i64 0), i64 %62, i64 %61, i64 %1)
ret i64 0
uselistorder i64 %16, { 2, 0, 1 }
uselistorder i64 %6, { 1, 0, 2, 3 }
uselistorder i64 %5, { 5, 4, 3, 2, 1, 7, 8, 6, 0, 9 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i64 (i64, i64)* @get_bits, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | snd_card_new_7507 | snd_card_new | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3, i64* %arg4, i64 %arg5, i64* %arg6) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_0.012.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i64
%.pre-phi14.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i32
%0 = icmp eq i64* %arg6, null
%1 = zext i1 %0 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i32 -22, i32* %rax.0.shrunk.reg2mem
br i1 %4, label LBL_1, label LBL_25
LBL_1:
%sext4 = mul i64 %arg5, 4294967296
%5 = ashr exact i64 %sext4, 32
store i64 0, i64* %arg6, align 8
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
%spec.select = select i1 %8, i64 %5, i64 0
%9 = add nsw i64 %spec.select, 176
%10 = call i64 @FUNC(i64 %9, i64 0)
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i32 -12, i32* %rax.0.shrunk.reg2mem
br i1 %12, label LBL_2, label LBL_25
LBL_2:
%13 = trunc i64 %spec.select to i32
%14 = icmp slt i32 %13, 1
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = add i64 %10, 176
%16 = add i64 %10, 56
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
br label LBL_4
LBL_4:
%18 = icmp eq i8* %arg3, null
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = add i64 %10, 24
%20 = ptrtoint i8* %arg3 to i64
%21 = call i64 @FUNC(i64 %19, i64 %20, i64 32)
br label LBL_6
LBL_6:
%22 = ptrtoint i64* %arg4 to i64
%sext = mul i64 %arg2, 4294967296
%23 = ashr exact i64 %sext, 32
%24 = call i64 @FUNC(i64* nonnull @gv_0)
%25 = trunc i64 %23 to i32
%26 = icmp slt i32 %25, 0
%27 = icmp eq i1 %26, false
store i32 %25, i32* %.pre-phi.reg2mem
store i64 %23, i64* %sv_1.0.reg2mem
br i1 %27, label LBL_8, label LBL_7
LBL_7:
%28 = load i64, i64* @gv_1, align 8
%29 = and i64 %23, 4294967295
%30 = call i64 @FUNC(i64 %29, i64 %28, i64 %22)
%sext6 = mul i64 %30, 4294967296
%31 = ashr exact i64 %sext6, 32
%.pre = trunc i64 %31 to i32
store i32 %.pre, i32* %.pre-phi.reg2mem
store i64 %31, i64* %sv_1.0.reg2mem
br label LBL_8
LBL_8:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%32 = icmp slt i32 %.pre-phi.reload, 0
%33 = icmp eq i1 %32, false
store i32 %.pre-phi.reload, i32* %.pre-phi14.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
br i1 %33, label LBL_10, label LBL_9
LBL_9:
%34 = load i64, i64* @gv_2, align 8
%35 = and i64 %sv_1.0.reload, 4294967295
%36 = call i64 @FUNC(i64 %35, i64 %34, i64 %22)
%sext7 = mul i64 %36, 4294967296
%37 = ashr exact i64 %sext7, 32
%.pre13 = trunc i64 %37 to i32
store i32 %.pre13, i32* %.pre-phi14.reg2mem
store i64 %37, i64* %sv_1.1.reg2mem
br label LBL_10
LBL_10:
%38 = ptrtoint i64* %arg6 to i64
%39 = ptrtoint i64* %arg1 to i64
%.pre-phi14.reload = load i32, i32* %.pre-phi14.reg2mem
%40 = icmp slt i32 %.pre-phi14.reload, 0
%41 = icmp eq i1 %40, false
store i32 -19, i32* %sv_0.012.reg2mem
br i1 %41, label LBL_11, label LBL_15
LBL_11:
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%42 = load i32, i32* @gv_3, align 4
%43 = zext i32 %42 to i64
%44 = icmp slt i64 %sv_1.1.reload, %43
br i1 %44, label LBL_12, label LBL_13
LBL_12:
%45 = load i64, i64* @gv_4, align 8
%46 = and i64 %sv_1.1.reload, 4294967295
%47 = call i64 @FUNC(i64 %46, i64 %45)
%48 = trunc i64 %47 to i32
%49 = icmp eq i32 %48, 0
%spec.select10 = select i1 %49, i32 0, i32 -16
store i32 %spec.select10, i32* %sv_0.0.reg2mem
br label LBL_14
LBL_13:
%50 = icmp slt i32 %.pre-phi14.reload, 32
%spec.select11 = select i1 %50, i32 0, i32 -19
store i32 %spec.select11, i32* %sv_0.0.reg2mem
br label LBL_14
LBL_14:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%51 = icmp slt i32 %sv_0.0.reload, 0
%52 = icmp eq i1 %51, false
store i32 %sv_0.0.reload, i32* %sv_0.012.reg2mem
br i1 %52, label LBL_16, label LBL_15
LBL_15:
%sv_0.012.reload = load i32, i32* %sv_0.012.reg2mem
%53 = call i64 @FUNC(i64* nonnull @gv_0)
%54 = zext i32 %sv_0.012.reload to i64
%55 = call i64 @FUNC(i64 %39, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @gv_5, i64 0, i64 0), i32 %.pre-phi14.reload, i64* nonnull @gv_6, i64 %54, i64 %38)
%56 = call i64 @FUNC(i64 %10)
store i32 %sv_0.012.reload, i32* %rax.0.shrunk.reg2mem
br label LBL_25
LBL_16:
%57 = load i64, i64* @gv_4, align 8
%58 = and i64 %sv_1.1.reload, 4294967295
%59 = call i64 @FUNC(i64 %58, i64 %57)
%60 = load i32, i32* @gv_3, align 4
%61 = zext i32 %60 to i64
%62 = icmp slt i64 %sv_1.1.reload, %61
br i1 %62, label LBL_18, label LBL_17
LBL_17:
%63 = add i32 %.pre-phi14.reload, 1
store i32 %63, i32* @gv_3, align 4
br label LBL_18
LBL_18:
%64 = call i64 @FUNC(i64* nonnull @gv_0)
%65 = inttoptr i64 %10 to i64*
store i64 %39, i64* %65, align 8
%66 = add i64 %10, 8
%67 = inttoptr i64 %66 to i32*
store i32 %.pre-phi14.reload, i32* %67, align 4
%68 = add i64 %10, 16
%69 = inttoptr i64 %68 to i64*
store i64 %22, i64* %69, align 8
%70 = add i64 %10, 64
%71 = call i64 @FUNC(i64 %70)
%72 = add i64 %10, 72
%73 = call i64 @FUNC(i64 %72)
%74 = add i64 %10, 80
%75 = call i64 @FUNC(i64 %74)
%76 = add i64 %10, 88
%77 = call i64 @FUNC(i64 %76)
%78 = add i64 %10, 96
%79 = call i64 @FUNC(i64 %78)
%80 = add i64 %10, 104
%81 = call i64 @FUNC(i64 %80)
%82 = add i64 %10, 112
%83 = call i64 @FUNC(i64 %82)
%84 = add i64 %10, 120
%85 = call i64 @FUNC(i64 %84)
%86 = add i64 %10, 128
%87 = call i64 @FUNC(i64 %86)
%88 = add i64 %10, 136
%89 = call i64 @FUNC(i64 %88)
%90 = inttoptr i64 %88 to i64*
store i64 %39, i64* %90, align 8
%91 = load i64, i64* @gv_7, align 8
%92 = add i64 %10, 144
%93 = inttoptr i64 %92 to i64*
store i64 %91, i64* %93, align 8
%94 = load i64, i64* @gv_8, align 8
%95 = add i64 %10, 152
%96 = inttoptr i64 %95 to i64*
store i64 %94, i64* %96, align 8
%97 = load i64, i64* @gv_9, align 8
%98 = add i64 %10, 160
%99 = inttoptr i64 %98 to i64*
store i64 %97, i64* %99, align 8
%100 = add i64 %10, 168
%101 = call i64 @FUNC(i64 %100, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_10, i64 0, i64 0), i64 %58, i64 %100, i64 %arg5, i64 %38)
%102 = trunc i64 %101 to i32
%103 = icmp slt i32 %102, 0
store i32 %102, i32* %sv_0.1.reg2mem
br i1 %103, label LBL_24, label LBL_19
LBL_19:
%104 = call i64 @FUNC(i64 %10)
%105 = trunc i64 %104 to i32
%106 = icmp slt i32 %105, 0
%107 = icmp eq i1 %106, false
br i1 %107, label LBL_21, label LBL_20
LBL_20:
%108 = inttoptr i64 %100 to i64*
%109 = call i64 @FUNC(i64 %39, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_11, i64 0, i64 0), i32 %.pre-phi14.reload, i64* %108, i64 %arg5, i64 %38)
store i32 %105, i32* %sv_0.1.reg2mem
br label LBL_24
LBL_21:
%110 = call i64 @FUNC(i64 %10)
%111 = trunc i64 %110 to i32
%112 = icmp slt i32 %111, 0
%113 = icmp eq i1 %112, false
br i1 %113, label LBL_23, label LBL_22
LBL_22:
%114 = inttoptr i64 %100 to i64*
%115 = call i64 @FUNC(i64 %39, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_12, i64 0, i64 0), i32 %.pre-phi14.reload, i64* %114, i64 %arg5, i64 %38)
%116 = call i64 @FUNC(i64 %10)
store i32 %111, i32* %sv_0.1.reg2mem
br label LBL_24
LBL_23:
store i64 %10, i64* %arg6, align 8
store i32 0, i32* %rax.0.shrunk.reg2mem
br label LBL_25
LBL_24:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%117 = call i64 @FUNC(i64 %88)
store i32 %sv_0.1.reload, i32* %rax.0.shrunk.reg2mem
br label LBL_25
LBL_25:
%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 %100, { 1, 0, 3, 2 }
uselistorder i64 %sv_1.1.reload, { 2, 1, 0, 3 }
uselistorder i32 %.pre-phi14.reload, { 3, 2, 4, 1, 0, 5, 6 }
uselistorder i64 %39, { 2, 1, 3, 4, 0 }
uselistorder i64 %38, { 2, 1, 3, 0 }
uselistorder i64 %sv_1.0.reload, { 1, 0 }
uselistorder i64 %23, { 2, 0, 1 }
uselistorder i64 %22, { 2, 1, 0 }
uselistorder i64 %10, { 3, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 1, 0, 24, 23, 25 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %.pre-phi14.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.012.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 5, 4, 3, 1, 2 }
uselistorder i64 (i64)* @INIT_LIST_HEAD, { 3, 2, 1, 0 }
uselistorder i64 (i64, i8*, i32, i64*, i64, i64)* @dev_err, { 2, 1, 0 }
uselistorder i64 (i64*)* @mutex_unlock, { 1, 0 }
uselistorder i32* @gv_3, { 2, 1, 0 }
uselistorder i32 -19, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @get_slot_from_bitmask, { 1, 0 }
uselistorder i64 32, { 0, 1, 3, 4, 2 }
uselistorder i64 4294967296, { 0, 1, 3, 2 }
uselistorder i64* %arg6, { 0, 3, 1, 2 }
uselistorder i64 %arg5, { 2, 1, 3, 0 }
uselistorder i8* %arg3, { 1, 0 }
uselistorder label LBL_25, { 2, 3, 4, 0, 1 }
uselistorder label LBL_24, { 1, 2, 0 }
uselistorder label LBL_15, { 1, 0 }
} | 1 |
BinRealVul | event_set_3772 | event_set | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = trunc i64 %arg3 to i16
%3 = load i32*, i32** @gv_0, align 8
%4 = ptrtoint i32* %3 to i64
store i64 %4, i64* %arg1, align 8
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
store i64 %arg4, i64* %6, align 8
%7 = add i64 %0, 16
%8 = inttoptr i64 %7 to i64*
store i64 %arg5, i64* %8, align 8
%9 = add i64 %0, 24
%10 = inttoptr i64 %9 to i32*
store i32 %1, i32* %10, align 4
%11 = add i64 %0, 28
%12 = inttoptr i64 %11 to i16*
store i16 %2, i16* %12, align 2
%13 = add i64 %0, 32
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
%15 = add i64 %0, 36
%16 = inttoptr i64 %15 to i32*
store i32 0, i32* %16, align 4
%17 = add i64 %0, 40
%18 = inttoptr i64 %17 to i32*
store i32 0, i32* %18, align 4
%19 = add i64 %0, 48
%20 = inttoptr i64 %19 to i64*
store i64 0, i64* %20, align 8
%21 = load i32*, i32** @gv_0, align 8
%22 = ptrtoint i32* %21 to i64
%23 = icmp eq i32* %21, null
store i64 %22, i64* %rax.0.reg2mem
br i1 %23, label LBL_2, label LBL_1
LBL_1:
%24 = load i32, i32* %21, align 4
%25 = icmp slt i32 %24, 0
%26 = zext i1 %25 to i32
%27 = add i32 %24, %26
%28 = ashr i32 %27, 1
%29 = add i64 %0, 56
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
store i64 %0, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32** @gv_0, { 1, 0 }
} | 0 |
BinRealVul | icp_control_init_15655 | icp_control_init | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i32
%1 = call i64 @FUNC(i64 4)
%2 = load i64, i64* @gv_0, align 8
%3 = load i64, i64* @gv_1, align 8
%4 = call i64 @FUNC(i64 0, i64 %3, i64 %2, i64 %1)
%5 = trunc i64 %4 to i32
%6 = and i64 %arg1, 4294967295
%7 = call i64 @FUNC(i64 %6, i64 8388607, i32 %5)
%8 = inttoptr i64 %1 to i32*
store i32 %0, i32* %8, align 4
ret i64 %1
uselistorder i64 %1, { 1, 0, 2 }
} | 1 |
BinRealVul | jas_stream_gobble_11716 | jas_stream_gobble | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.in.reg2mem = alloca i64
%sext413.in.reg2mem = alloca i64
%storemerge59.lcssa.reg2mem = alloca i64
%sext = mul i64 %arg2, 4294967296
%0 = ashr exact i64 %sext, 32
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp slt i32 %1, 0
%4 = icmp eq i1 %3, false
%5 = icmp eq i1 %2, false
%6 = icmp eq i1 %4, %5
store i64 %0, i64* %storemerge.in.reg2mem
br i1 %6, label LBL_1, label LBL_5
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = call i64 @FUNC(i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, -1
%11 = icmp eq i1 %10, false
store i64 %0, i64* %storemerge59.lcssa.reg2mem
store i64 %sext, i64* %sext413.in.reg2mem
br i1 %11, label LBL_4, label LBL_3
LBL_2:
%12 = call i64 @FUNC(i64 %7)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, -1
%15 = icmp eq i1 %14, false
store i64 %storemerge5, i64* %storemerge59.lcssa.reg2mem
store i64 %sext413, i64* %sext413.in.reg2mem
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%storemerge59.lcssa.reload = load i64, i64* %storemerge59.lcssa.reg2mem
%16 = sub nsw i64 %0, %storemerge59.lcssa.reload
store i64 %16, i64* %storemerge.in.reg2mem
br label LBL_5
LBL_4:
%sext413.in.reload = load i64, i64* %sext413.in.reg2mem
%sext413 = add i64 %sext413.in.reload, -4294967296
%storemerge5 = ashr exact i64 %sext413, 32
%17 = trunc i64 %storemerge5 to i32
%18 = icmp eq i32 %17, 0
%19 = icmp slt i32 %17, 0
%20 = icmp eq i1 %19, false
%21 = icmp eq i1 %18, false
%22 = icmp eq i1 %20, %21
store i64 %0, i64* %storemerge.in.reg2mem
br i1 %22, label LBL_2, label LBL_5
LBL_5:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = and i64 %storemerge.in.reload, 4294967295
ret i64 %storemerge
uselistorder i32 %17, { 1, 0 }
uselistorder i64 %storemerge5, { 1, 0 }
uselistorder i64 %sext413, { 1, 0 }
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %0, { 0, 4, 2, 1, 3 }
uselistorder i64* %sext413.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 1, 3, 2 }
uselistorder i32 -1, { 1, 0 }
uselistorder i64 (i64)* @jas_stream_getc, { 1, 0 }
uselistorder i32 0, { 2, 3, 0, 1 }
uselistorder label LBL_5, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | color_distance_1051 | color_distance | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.06.reg2mem = alloca i32
%sv_1.07.reg2mem = alloca i32
%sv_2.08.reg2mem = alloca i32
%storemerge59.reg2mem = alloca i32
%sext = mul i64 %arg1, 4294967296
%0 = ashr exact i64 %sext, 32
%sext3 = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext3, 32
%2 = trunc i64 %0 to i32
%3 = trunc i64 %1 to i32
%4 = udiv i64 %0, 268435456
%5 = trunc i64 %4 to i32
%6 = urem i32 %5, 16
%7 = udiv i64 %1, 268435456
%8 = trunc i64 %7 to i32
%9 = urem i32 %8, 16
store i32 24, i32* %storemerge59.reg2mem
store i32 8, i32* %sv_2.08.reg2mem
store i32 8, i32* %sv_1.07.reg2mem
store i32 0, i32* %sv_0.06.reg2mem
br label LBL_1
LBL_1:
%sv_0.06.reload = load i32, i32* %sv_0.06.reg2mem
%sv_1.07.reload = load i32, i32* %sv_1.07.reg2mem
%sv_2.08.reload = load i32, i32* %sv_2.08.reg2mem
%storemerge59.reload = load i32, i32* %storemerge59.reg2mem
%10 = and i32 %storemerge59.reload, 24
%11 = icmp eq i32 %10, 0
%12 = lshr i32 %2, %10
%13 = zext i32 %12 to i64
%storemerge = select i1 %11, i64 %0, i64 %13
%14 = trunc i64 %storemerge to i32
%15 = urem i32 %14, 256
%16 = mul nuw nsw i32 %15, %sv_1.07.reload
%17 = lshr i32 %3, %10
%18 = zext i32 %17 to i64
%storemerge4 = select i1 %11, i64 %1, i64 %18
%19 = trunc i64 %storemerge4 to i32
%20 = urem i32 %19, 256
%21 = mul nuw nsw i32 %20, %sv_2.08.reload
%22 = sub nsw i32 %16, %21
%23 = mul nsw i32 %22, %22
%24 = add i32 %23, %sv_0.06.reload
%25 = add nsw i32 %storemerge59.reload, -8
%26 = icmp slt i32 %25, 0
%27 = icmp eq i1 %26, false
store i32 %25, i32* %storemerge59.reg2mem
store i32 %9, i32* %sv_2.08.reg2mem
store i32 %6, i32* %sv_1.07.reg2mem
store i32 %24, i32* %sv_0.06.reg2mem
br i1 %27, label LBL_1, label LBL_2
LBL_2:
%28 = zext i32 %24 to i64
ret i64 %28
uselistorder i32 %24, { 1, 0 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i32* %storemerge59.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.08.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.07.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.06.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 2, 1, 0 }
uselistorder i32 24, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | uas_evaluate_response_iu_10296 | uas_evaluate_response_iu | define i64 @FUNC(i8* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = trunc i64 %1 to i8
%4 = icmp eq i8 %3, 3
br i1 %4, label LBL_5, label LBL_1
LBL_1:
%5 = icmp ugt i8 %3, 3
br i1 %5, label LBL_6, label LBL_2
LBL_2:
switch i8 %3, label LBL_6 [
i8 1, label LBL_3
i8 2, label LBL_4
]
LBL_3:
%6 = bitcast i64* %arg2 to i32*
store i32 262144, i32* %6, align 4
br label LBL_7
LBL_4:
%7 = bitcast i64* %arg2 to i32*
store i32 327680, i32* %7, align 4
br label LBL_7
LBL_5:
%8 = bitcast i64* %arg2 to i32*
store i32 393216, i32* %8, align 4
br label LBL_7
LBL_6:
%9 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i8 %3)
%10 = bitcast i64* %arg2 to i32*
store i32 458752, i32* %10, align 4
br label LBL_7
LBL_7:
%11 = icmp eq i8 %3, 2
%12 = zext i1 %11 to i64
%13 = and i64 %2, -256
%14 = or i64 %13, %12
ret i64 %14
uselistorder i8 %3, { 1, 2, 4, 3, 0 }
uselistorder i64* %arg2, { 3, 0, 2, 1, 4 }
} | 0 |
BinRealVul | vc1_inv_trans_4x8_c_2804 | vc1_inv_trans_4x8_c | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%sv_0.022.reg2mem = alloca i64
%sv_1.123.reg2mem = alloca i64
%storemerge24.reg2mem = alloca i32
%sv_2.026.reg2mem = alloca i64
%storemerge1127.reg2mem = alloca i32
%0 = ptrtoint i64* %arg3 to i64
store i32 0, i32* %storemerge1127.reg2mem
store i64 %0, i64* %sv_2.026.reg2mem
br label LBL_1
LBL_1:
%sv_2.026.reload = load i64, i64* %sv_2.026.reg2mem
%storemerge1127.reload = load i32, i32* %storemerge1127.reg2mem
%1 = inttoptr i64 %sv_2.026.reload to i16*
%2 = load i16, i16* %1, align 2
%3 = add i64 %sv_2.026.reload, 4
%4 = inttoptr i64 %3 to i16*
%5 = load i16, i16* %4, align 2
%6 = sext i16 %5 to i64
%7 = sext i16 %2 to i64
%8 = add nsw i64 %6, %7
%9 = mul nsw i64 %8, 17
%10 = add nsw i64 %9, 4
%11 = sub nsw i64 %7, %6
%12 = mul nsw i64 %11, 17
%13 = add nsw i64 %12, 4
%14 = add i64 %sv_2.026.reload, 2
%15 = inttoptr i64 %14 to i16*
%16 = load i16, i16* %15, align 2
%17 = sext i16 %16 to i64
%18 = mul nsw i64 %17, 22
%19 = add i64 %sv_2.026.reload, 6
%20 = inttoptr i64 %19 to i16*
%21 = load i16, i16* %20, align 2
%22 = sext i16 %21 to i64
%23 = mul nsw i64 %22, 10
%24 = add nsw i64 %23, %18
%25 = mul nsw i64 %22, 22
%26 = mul nsw i64 %17, 4294967286
%27 = add nsw i64 %25, %26
%28 = add nsw i64 %24, %10
%29 = trunc i64 %28 to i32
%30 = udiv i32 %29, 8
%31 = trunc i32 %30 to i16
store i16 %31, i16* %1, align 2
%32 = trunc i64 %13 to i32
%33 = trunc i64 %27 to i32
%34 = sub i32 %32, %33
%35 = udiv i32 %34, 8
%36 = trunc i32 %35 to i16
store i16 %36, i16* %15, align 2
%37 = add nsw i64 %27, %13
%38 = trunc i64 %37 to i32
%39 = udiv i32 %38, 8
%40 = trunc i32 %39 to i16
store i16 %40, i16* %4, align 2
%41 = trunc i64 %10 to i32
%42 = trunc i64 %24 to i32
%43 = sub i32 %41, %42
%44 = udiv i32 %43, 8
%45 = trunc i32 %44 to i16
store i16 %45, i16* %20, align 2
%46 = add i64 %sv_2.026.reload, 16
%47 = add nuw nsw i32 %storemerge1127.reload, 1
%exitcond28 = icmp eq i32 %47, 8
store i32 %47, i32* %storemerge1127.reg2mem
store i64 %46, i64* %sv_2.026.reg2mem
br i1 %exitcond28, label LBL_2, label LBL_1
LBL_2:
%sext = mul i64 %arg2, 4294967296
%48 = ptrtoint i64* %arg1 to i64
%49 = ashr exact i64 %sext, 32
%50 = mul i64 %arg2, 8589934592
%51 = ashr exact i64 %50, 32
%sext7 = mul i64 %49, 12884901888
%52 = ashr exact i64 %sext7, 32
%sext12 = mul i64 %arg2, 17179869184
%53 = ashr exact i64 %sext12, 32
%54 = mul i64 %arg2, 4
%55 = add i64 %49, %54
%sext13 = mul i64 %55, 4294967296
%56 = ashr exact i64 %sext13, 32
%sext9 = mul i64 %49, 25769803776
%57 = ashr exact i64 %sext9, 32
%58 = mul i64 %arg2, 8
%59 = sub i64 %58, %49
%sext14 = mul i64 %59, 4294967296
%60 = ashr exact i64 %sext14, 32
store i32 0, i32* %storemerge24.reg2mem
store i64 %0, i64* %sv_1.123.reg2mem
store i64 %48, i64* %sv_0.022.reg2mem
br label LBL_3
LBL_3:
%sv_0.022.reload = load i64, i64* %sv_0.022.reg2mem
%sv_1.123.reload = load i64, i64* %sv_1.123.reg2mem
%storemerge24.reload = load i32, i32* %storemerge24.reg2mem
%61 = inttoptr i64 %sv_1.123.reload to i16*
%62 = load i16, i16* %61, align 2
%63 = add i64 %sv_1.123.reload, 64
%64 = inttoptr i64 %63 to i16*
%65 = load i16, i16* %64, align 2
%66 = sext i16 %65 to i64
%67 = sext i16 %62 to i64
%68 = add nsw i64 %66, %67
%69 = mul nsw i64 %68, 12
%70 = add nsw i64 %69, 64
%71 = sub nsw i64 %67, %66
%72 = mul nsw i64 %71, 12
%73 = add nsw i64 %72, 64
%74 = add i64 %sv_1.123.reload, 32
%75 = inttoptr i64 %74 to i16*
%76 = load i16, i16* %75, align 2
%77 = sext i16 %76 to i64
%78 = mul i64 %77, 16
%79 = add i64 %sv_1.123.reload, 96
%80 = inttoptr i64 %79 to i16*
%81 = load i16, i16* %80, align 2
%82 = sext i16 %81 to i64
%83 = mul nsw i64 %82, 6
%84 = add nsw i64 %83, %78
%85 = mul nsw i64 %77, 6
%86 = mul i64 %82, 16
%87 = sub nsw i64 %85, %86
%88 = add nsw i64 %84, %70
%89 = add nsw i64 %87, %73
%90 = trunc i64 %89 to i32
%91 = trunc i64 %73 to i32
%92 = trunc i64 %87 to i32
%93 = sub i32 %91, %92
%94 = trunc i64 %70 to i32
%95 = trunc i64 %84 to i32
%96 = sub i32 %94, %95
%97 = add i64 %sv_1.123.reload, 16
%98 = inttoptr i64 %97 to i16*
%99 = load i16, i16* %98, align 2
%100 = sext i16 %99 to i64
%101 = mul i64 %100, 16
%102 = add i64 %sv_1.123.reload, 48
%103 = inttoptr i64 %102 to i16*
%104 = load i16, i16* %103, align 2
%105 = sext i16 %104 to i64
%106 = mul i64 %105, 16
%107 = mul nsw i64 %105, 15
%108 = add nsw i64 %107, %101
%109 = add i64 %sv_1.123.reload, 80
%110 = inttoptr i64 %109 to i16*
%111 = load i16, i16* %110, align 2
%112 = sext i16 %111 to i64
%113 = mul nsw i64 %112, 9
%114 = add nsw i64 %108, %113
%115 = add i64 %sv_1.123.reload, 112
%116 = inttoptr i64 %115 to i16*
%117 = load i16, i16* %116, align 2
%118 = sext i16 %117 to i64
%119 = mul i64 %118, 4
%120 = add nsw i64 %114, %119
%121 = mul nsw i64 %100, 15
%122 = mul i64 %105, 4
%123 = sub nsw i64 %121, %122
%124 = mul i64 %112, 16
%125 = sub nsw i64 %123, %124
%126 = mul nsw i64 %118, -9
%127 = add nsw i64 %125, %126
%128 = mul nsw i64 %100, 9
%129 = sub nsw i64 %128, %106
%130 = mul i64 %112, 4
%131 = add nsw i64 %129, %130
%132 = mul i64 %118, 16
%133 = mul nsw i64 %118, 15
%134 = add nsw i64 %131, %133
%135 = mul i64 %100, 4
%136 = mul nsw i64 %105, -9
%137 = add nsw i64 %136, %135
%138 = mul nsw i64 %112, 15
%139 = add nsw i64 %137, %138
%140 = sub nsw i64 %139, %132
%141 = inttoptr i64 %sv_0.022.reload to i8*
%142 = load i8, i8* %141, align 1
%143 = add nsw i64 %120, %88
%144 = trunc i64 %143 to i32
%145 = ashr i32 %144, 7
%146 = zext i8 %142 to i32
%147 = add nsw i32 %145, %146
%148 = zext i32 %147 to i64
%149 = call i64 @FUNC(i64 %148)
%150 = trunc i64 %149 to i8
store i8 %150, i8* %141, align 1
%151 = add i64 %sv_0.022.reload, %49
%152 = inttoptr i64 %151 to i8*
%153 = load i8, i8* %152, align 1
%154 = add nsw i64 %127, %89
%155 = trunc i64 %154 to i32
%156 = ashr i32 %155, 7
%157 = zext i8 %153 to i32
%158 = add nsw i32 %156, %157
%159 = zext i32 %158 to i64
%160 = call i64 @FUNC(i64 %159)
%161 = trunc i64 %160 to i8
store i8 %161, i8* %152, align 1
%162 = add i64 %sv_0.022.reload, %51
%163 = inttoptr i64 %162 to i8*
%164 = load i8, i8* %163, align 1
%165 = trunc i64 %134 to i32
%166 = add i32 %93, %165
%167 = ashr i32 %166, 7
%168 = zext i8 %164 to i32
%169 = add nsw i32 %167, %168
%170 = zext i32 %169 to i64
%171 = call i64 @FUNC(i64 %170)
%172 = trunc i64 %171 to i8
store i8 %172, i8* %163, align 1
%173 = add i64 %sv_0.022.reload, %52
%174 = inttoptr i64 %173 to i8*
%175 = load i8, i8* %174, align 1
%176 = trunc i64 %140 to i32
%177 = add i32 %96, %176
%178 = ashr i32 %177, 7
%179 = zext i8 %175 to i32
%180 = add nsw i32 %178, %179
%181 = zext i32 %180 to i64
%182 = call i64 @FUNC(i64 %181)
%183 = trunc i64 %182 to i8
store i8 %183, i8* %174, align 1
%184 = add i64 %sv_0.022.reload, %53
%185 = inttoptr i64 %184 to i8*
%186 = load i8, i8* %185, align 1
%187 = or i32 %96, 1
%188 = sub i32 %187, %176
%189 = ashr i32 %188, 7
%190 = zext i8 %186 to i32
%191 = add nsw i32 %189, %190
%192 = zext i32 %191 to i64
%193 = call i64 @FUNC(i64 %192)
%194 = trunc i64 %193 to i8
store i8 %194, i8* %185, align 1
%195 = add i64 %sv_0.022.reload, %56
%196 = inttoptr i64 %195 to i8*
%197 = load i8, i8* %196, align 1
%198 = or i32 %93, 1
%199 = sub i32 %198, %165
%200 = ashr i32 %199, 7
%201 = zext i8 %197 to i32
%202 = add nsw i32 %200, %201
%203 = zext i32 %202 to i64
%204 = call i64 @FUNC(i64 %203)
%205 = trunc i64 %204 to i8
store i8 %205, i8* %196, align 1
%206 = add i64 %sv_0.022.reload, %57
%207 = inttoptr i64 %206 to i8*
%208 = load i8, i8* %207, align 1
%209 = trunc i64 %127 to i32
%210 = or i32 %90, 1
%211 = sub i32 %210, %209
%212 = ashr i32 %211, 7
%213 = zext i8 %208 to i32
%214 = add nsw i32 %212, %213
%215 = zext i32 %214 to i64
%216 = call i64 @FUNC(i64 %215)
%217 = trunc i64 %216 to i8
store i8 %217, i8* %207, align 1
%218 = add i64 %sv_0.022.reload, %60
%219 = inttoptr i64 %218 to i8*
%220 = load i8, i8* %219, align 1
%221 = trunc i64 %88 to i32
%222 = trunc i64 %120 to i32
%223 = or i32 %221, 1
%224 = sub i32 %223, %222
%225 = ashr i32 %224, 7
%226 = zext i8 %220 to i32
%227 = add nsw i32 %225, %226
%228 = zext i32 %227 to i64
%229 = call i64 @FUNC(i64 %228)
%230 = trunc i64 %229 to i8
store i8 %230, i8* %219, align 1
%231 = add i64 %sv_1.123.reload, 2
%232 = add i64 %sv_0.022.reload, 1
%233 = add nuw nsw i32 %storemerge24.reload, 1
%exitcond = icmp eq i32 %233, 4
store i32 %233, i32* %storemerge24.reg2mem
store i64 %231, i64* %sv_1.123.reg2mem
store i64 %232, i64* %sv_0.022.reg2mem
br i1 %exitcond, label LBL_4, label LBL_3
LBL_4:
ret i64 %229
uselistorder i32 %176, { 1, 0 }
uselistorder i32 %165, { 1, 0 }
uselistorder i64 %127, { 1, 0 }
uselistorder i64 %120, { 1, 0 }
uselistorder i64 %118, { 2, 0, 3, 1 }
uselistorder i64 %112, { 2, 0, 1, 3 }
uselistorder i64 %105, { 2, 0, 3, 1 }
uselistorder i64 %100, { 0, 2, 3, 1 }
uselistorder i32 %96, { 1, 0 }
uselistorder i32 %93, { 1, 0 }
uselistorder i64 %88, { 1, 0 }
uselistorder i64 %87, { 1, 0 }
uselistorder i64 %84, { 1, 0 }
uselistorder i64 %77, { 1, 0 }
uselistorder i64 %73, { 1, 0 }
uselistorder i64 %70, { 1, 0 }
uselistorder i64 %67, { 1, 0 }
uselistorder i64 %66, { 1, 0 }
uselistorder i64 %sv_1.123.reload, { 0, 8, 7, 5, 6, 3, 4, 2, 1 }
uselistorder i64 %sv_0.022.reload, { 0, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64 %49, { 0, 2, 3, 1, 4 }
uselistorder i64 %24, { 1, 0 }
uselistorder i64 %22, { 1, 0 }
uselistorder i64 %10, { 1, 0 }
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64 %sv_2.026.reload, { 0, 2, 1, 3, 4 }
uselistorder i32* %storemerge1127.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.026.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge24.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.123.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.022.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @av_clip_uint8, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 32, { 8, 0, 3, 1, 2, 4, 5, 6, 7 }
uselistorder i32 8, { 4, 0, 1, 2, 3 }
} | 0 |
BinRealVul | entries_12489 | entries | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = load i32, i32* %1
%sv_0 = alloca i32, align 4
%4 = call i64 @FUNC()
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_6
LBL_1:
%7 = call i64* @calloc(i32 1, i32 8)
%8 = icmp eq i64* %7, null
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %4)
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_3:
%11 = bitcast i32* %sv_0 to i64*
%12 = call i64 @FUNC(i64 1, i64 0, i64* nonnull %11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i64 1)
%13 = trunc i64 %12 to i32
%14 = icmp ult i32 %13, 8
br i1 %14, label LBL_4, label LBL_5
LBL_4:
%15 = ptrtoint i32* %sv_0 to i64
%16 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 0, i64 %15, i64 ptrtoint ([6 x i8]* @gv_0 to i64), i64 1, i64 %2)
%17 = call i64 @FUNC(i64 %4)
call void @free(i64* %7)
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%18 = ptrtoint i64* %7 to i64
%19 = load i32, i32* %sv_0, align 4
%20 = sub i32 4096, %3
%21 = add i32 %20, %19
%22 = bitcast i64* %7 to i32*
store i32 %21, i32* %22, align 4
%23 = load i32, i32* %sv_0, align 4
%24 = add i64 %18, 4
%25 = inttoptr i64 %24 to i32*
store i32 %23, i32* %25, align 4
%26 = call i64 @FUNC(i64 %4, i64 %18)
store i64 %4, 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* %7, { 1, 3, 0, 2 }
uselistorder i64 %4, { 0, 2, 3, 1, 4 }
uselistorder i32* %sv_0, { 2, 1, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1 }
uselistorder void (i64*)* @free, { 2, 1, 0 }
uselistorder [6 x i8]* @gv_0, { 1, 0 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i32 8, { 1, 2, 4, 3, 0 }
uselistorder label LBL_6, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | ParaNdis_ReviewIPPacket_12721 | ParaNdis_ReviewIPPacket | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1, i64 %arg2)
%1 = call i64 @FUNC(i64 1, i64 %arg3)
ret i64 %1
} | 1 |
BinRealVul | av_get_q_14151 | av_get_q | define i64 @FUNC(i64 %arg1, i8* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%xmm1.0.reg2mem = alloca i128
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i8* %arg2 to i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%sv_3 = alloca i64, align 8
%2 = ptrtoint i64* %sv_3 to i64
%3 = add i64 %2, -56
%4 = trunc i64 %3 to i8
%5 = call i8 @llvm.ctpop.i8(i8 %4), !range !14
%6 = urem i8 %5, 2
%7 = icmp eq i8 %6, 0
store i32 1, i32* %sv_2, align 4
%8 = call i128 @FUNC(i64 4607182418800017408)
%9 = call i64 @__asm_movsd.1(i128 %8)
store i64 %9, i64* %sv_1, align 8
store i32 1, i32* %sv_0, align 4
%10 = bitcast i32* %sv_2 to i64*
%11 = call i64 @FUNC(i64 %arg1, i64 %1, i64 %0, i64* nonnull %sv_1, i32* nonnull %sv_0, i64* nonnull %10)
%12 = load i64, i64* %sv_1, align 8
%13 = call i128 @FUNC(i64 %12)
%14 = call i128 @FUNC(i64 4607182418800017408)
call void @FUNC(i128 %13, i128 %14)
store i128 %14, i128* %xmm1.0.reg2mem
br i1 %7, label LBL_3, label LBL_1
LBL_1:
%15 = icmp eq i64 %3, 0
%16 = call i128 @FUNC(i64 4607182418800017408)
call void @FUNC(i128 %13, i128 %16)
%17 = icmp eq i1 %15, false
store i128 %16, i128* %xmm1.0.reg2mem
br i1 %17, label LBL_3, label LBL_2
LBL_2:
%18 = load i32, i32* %sv_2, align 4
%19 = load i32, i32* %sv_0, align 4
%20 = zext i32 %19 to i64
%21 = mul i64 %20, 4294967296
%22 = zext i32 %18 to i64
%23 = or i64 %21, %22
store i64 %23, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
%xmm1.0.reload = load i128, i128* %xmm1.0.reg2mem
%24 = load i32, i32* %sv_2, align 4
%25 = sext i32 %24 to i64
%26 = call i128 @FUNC(i128 %xmm1.0.reload, i128 %xmm1.0.reload)
%27 = call i128 @FUNC(i64 %25)
%28 = load i64, i64* %sv_1, align 8
%29 = call i128 @FUNC(i64 %28)
%30 = call i128 @FUNC(i128 %29, i128 %27)
%31 = load i32, i32* %sv_0, align 4
%32 = call i128 @FUNC(i128 %27, i128 %27)
%33 = call i128 @__asm_cvtsi2sd.2(i32 %31)
%34 = call i128 @FUNC(i128 %30, i128 %33)
%35 = call i64 @FUNC(i128 %34)
%36 = call i128 @__asm_movq.3(i64 %35)
%37 = call i64 @FUNC(i64 16777216)
store i64 %37, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i128 %27, { 2, 1, 0 }
uselistorder i32* %sv_2, { 2, 1, 3, 0 }
uselistorder i64* %sv_1, { 1, 2, 0, 3 }
uselistorder i32* %sv_0, { 1, 2, 0, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | test_ide_none_14944 | test_ide_none | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%0 = call i64 @FUNC(i64* nonnull %sv_0, i64 256)
%1 = call i64 @FUNC(i64 4202588, i64* nonnull %sv_0)
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC()
%4 = call i64 @FUNC()
ret i64 %4
uselistorder i32 1, { 12, 11, 3, 8, 7, 6, 5, 4, 2, 1, 0, 10, 9 }
} | 1 |
BinRealVul | e1000e_set_icr_3536 | e1000e_set_icr | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = urem i32 %2, 2
%4 = icmp eq i32 %3, 0
%.pre = ptrtoint i32* %arg1 to i64
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = add i64 %.pre, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = and i32 %7, 2
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC()
%11 = add i64 %.pre, 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %.pre, i64 %14)
br label LBL_3
LBL_3:
%sext = mul i64 %arg3, 4294967296
%16 = ashr exact i64 %sext, 32
%17 = trunc i64 %16 to i32
%18 = sub i32 0, %17
%19 = sub i32 %18, 1
%20 = and i32 %2, %19
%21 = and i64 %arg3, 4
%22 = icmp eq i64 %21, 0
%23 = and i32 %20, -9
%storemerge.in = select i1 %22, i32 %20, i32 %23
%24 = and i64 %1, 4294967295
%25 = and i64 %16, 4294967295
%26 = call i64 @FUNC(i64 %25, i64 %24, i32 %storemerge.in)
store i32 %storemerge.in, i32* %arg1, align 4
%27 = call i64 @FUNC(i64 %.pre)
ret i64 %27
uselistorder i32 %storemerge.in, { 1, 0 }
uselistorder i32 %20, { 1, 0 }
uselistorder i64 %.pre, { 0, 2, 3, 1 }
uselistorder i32 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder i32* %arg1, { 1, 0 }
uselistorder label LBL_3, { 1, 2, 0 }
} | 0 |
BinRealVul | alloc_scratch_buffers_14324 | alloc_scratch_buffers | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %arg2 to i32
%4 = sub i32 0, %3
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
%7 = select i1 %6, i32 %4, i32 %3
%8 = add i32 %7, 63
%9 = and i32 %8, -32
%10 = mul i32 %9, 96
%11 = sext i32 %10 to i64
%12 = add i64 %2, 16
%13 = add i64 %2, 8
%14 = call i64 @FUNC(i64 %13, i64 %12, i64 %11)
%15 = mul i32 %9, 42
%16 = sext i32 %15 to i64
%17 = add i64 %2, 32
%18 = add i64 %2, 24
%19 = call i64 @FUNC(i64 %18, i64 %17, i64 %16)
%sext = mul i64 %1, 206158430208
%20 = ashr exact i64 %sext, 31
%21 = add i64 %2, 56
%22 = add i64 %2, 40
%23 = call i64 @FUNC(i64 %22, i64 %21, i64 %20)
%24 = add i64 %2, 64
%25 = add i64 %2, 48
%26 = call i64 @FUNC(i64 %25, i64 %24, i64 %20)
%27 = inttoptr i64 %13 to i64*
%28 = load i64, i64* %27, align 8
%29 = icmp eq i64 %28, 0
br i1 %29, label LBL_4, label LBL_1
LBL_1:
%30 = inttoptr i64 %18 to i64*
%31 = load i64, i64* %30, align 8
%32 = icmp eq i64 %31, 0
br i1 %32, label LBL_4, label LBL_2
LBL_2:
%33 = inttoptr i64 %22 to i64*
%34 = load i64, i64* %33, align 8
%35 = icmp eq i64 %34, 0
br i1 %35, label LBL_4, label LBL_3
LBL_3:
%36 = inttoptr i64 %25 to i64*
%37 = load i64, i64* %36, align 8
%38 = icmp eq i64 %37, 0
%39 = icmp eq i1 %38, false
store i64 0, i64* %storemerge.reg2mem
br i1 %39, label LBL_5, label LBL_4
LBL_4:
%40 = call i64 @FUNC(i64 %13)
%41 = call i64 @FUNC(i64 %18)
%42 = call i64 @FUNC(i64 %22)
%43 = call i64 @FUNC(i64 %25)
%44 = inttoptr i64 %12 to i64*
store i64 0, i64* %44, align 8
%45 = inttoptr i64 %17 to i64*
store i64 0, i64* %45, align 8
%46 = inttoptr i64 %21 to i64*
store i64 0, i64* %46, align 8
%47 = inttoptr i64 %24 to i64*
store i64 0, i64* %47, align 8
store i64 4294967284, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %25, { 1, 0, 2 }
uselistorder i64 %22, { 1, 0, 2 }
uselistorder i64 %20, { 1, 0 }
uselistorder i64 %18, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @av_freep, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @av_fast_malloc, { 3, 2, 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | pdin_Read_10831 | pdin_Read | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %1 to i32
%5 = udiv i32 %4, 8
%6 = add i64 %3, 4
%7 = inttoptr i64 %6 to i32*
store i32 %5, i32* %7, align 4
%8 = mul i32 %5, 4
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %3, 8
%12 = inttoptr i64 %11 to i64*
store i64 %10, i64* %12, align 8
%13 = load i32, i32* %7, align 4
%14 = zext i32 %13 to i64
%15 = mul i64 %14, 4
%16 = call i64 @FUNC(i64 %15)
%17 = add i64 %3, 16
%18 = inttoptr i64 %17 to i64*
store i64 %16, i64* %18, align 8
%19 = load i32, i32* %7, align 4
%20 = icmp eq i32 %19, 0
store i64 0, i64* %indvars.iv.reg2mem
br i1 %20, label LBL_2, label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%21 = load i64, i64* %12, align 8
%22 = mul i64 %indvars.iv.reload, 4
%23 = add i64 %21, %22
%24 = call i64 @FUNC(i64 %2)
%25 = trunc i64 %24 to i32
%26 = inttoptr i64 %23 to i32*
store i32 %25, i32* %26, align 4
%27 = load i64, i64* %18, align 8
%28 = add i64 %27, %22
%29 = call i64 @FUNC(i64 %2)
%30 = trunc i64 %29 to i32
%31 = inttoptr i64 %28 to i32*
store i32 %30, i32* %31, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%32 = load i32, i32* %7, align 4
%33 = zext i32 %32 to i64
%34 = icmp ult i64 %indvars.iv.next, %33
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %34, label LBL_1, label LBL_2
LBL_2:
ret i64 0
uselistorder i64 %22, { 1, 0 }
uselistorder i32* %7, { 1, 0, 2, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @gf_bs_read_u32, { 1, 0 }
uselistorder i64 (i64)* @gf_malloc, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | mount_proc_if_needed_13049 | mount_proc_if_needed | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%0 = bitcast i64* %sv_1 to i8*
%1 = inttoptr i64 %arg1 to i8*
%2 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %0, i32 4096, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i8* %1)
%3 = icmp ult i32 %2, 4096
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_2:
%4 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 20)
%5 = bitcast i64* %sv_0 to i8*
%6 = call i32 @readlink(i8* nonnull %0, i8* nonnull %5, i32 20)
%7 = call i32 @getpid()
%8 = zext i32 %7 to i64
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_2, i64 0, i64 0), i64 %8, i64* nonnull %sv_0)
%10 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %0, i32 4096, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_3, i64 0, i64 0), i8* %1)
%11 = icmp ult i32 %10, 4096
br i1 %11, label LBL_4, label LBL_3
LBL_3:
call void @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_4:
%12 = icmp slt i32 %6, 0
br i1 %12, label LBL_7, label LBL_5
LBL_5:
%13 = call i32 @atoi(i8* nonnull %5)
%14 = icmp eq i32 %7, %13
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_9, label LBL_6
LBL_6:
%15 = call i32 @umount2(i8* nonnull %0, i32 2)
br label LBL_7
LBL_7:
%16 = call i32 @mount(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0), i8* nonnull %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0), i32 0, i64* null)
%17 = icmp eq i32 %16, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %17, label LBL_8, label LBL_9
LBL_8:
%18 = call i32 @puts(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_5, i64 0, i64 0))
store i64 1, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %0, { 1, 0, 2, 3, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 4, 3 }
uselistorder i32 0, { 2, 0, 3, 1 }
uselistorder i64 4294967295, { 0, 2, 1 }
uselistorder void (i8*)* @perror, { 1, 0 }
uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 1, 0 }
uselistorder i32 4096, { 0, 2, 1, 3 }
uselistorder label LBL_9, { 2, 0, 1, 3, 4 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | ssl_association_remove_4016 | ssl_association_remove | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = add i64 %arg2, 16
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = add i64 %arg2, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %arg2, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = zext i32 %10 to i64
%12 = trunc i64 %4 to i32
%13 = icmp eq i32 %12, 0
%. = select i1 %13, i64 ptrtoint ([4 x i8]* @gv_0 to i64), i64 ptrtoint ([4 x i8]* @gv_1 to i64)
%14 = call i64 @FUNC(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_2, i64 0, i64 0), i64 %., i64 %11, i64 %7, i64 %4, i64 %1)
%15 = load i64, i64* %3, align 8
%16 = icmp eq i64 %15, 0
br i1 %16, label LBL_2, label LBL_1
LBL_1:
%17 = load i32, i32* %9, align 4
%18 = zext i32 %17 to i64
%.2 = select i1 %13, i64 ptrtoint ([9 x i8]* @gv_3 to i64), i64 ptrtoint ([9 x i8]* @gv_4 to i64)
%19 = call i64 @FUNC(i64 %.2, i64 %18, i64 %15)
br label LBL_2
LBL_2:
%20 = load i64, i64* %6, align 8
%21 = call i64 @FUNC(i64 %20)
%22 = call i64 @FUNC(i64 %arg1, i64 %arg2)
%23 = call i64 @FUNC(i64 %arg2)
ret i64 %23
uselistorder i64 %4, { 1, 0 }
uselistorder i64 (i64)* @g_free, { 1, 0 }
} | 0 |
BinRealVul | tg3_request_firmware_9559 | tg3_request_firmware | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 16
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = add i64 %3, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %3, i64 %9, i64 %6)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = load i64, i64* %8, align 8
%14 = add i64 %3, 24
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i64 %13, i64 %9, i64 %2, i64 %1)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%18 = inttoptr i64 %7 to i32*
%19 = load i32, i32* %18, align 4
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %20)
%sext = mul i64 %21, 4294967296
%22 = ashr exact i64 %sext, 32
%23 = add i64 %3, 32
%24 = inttoptr i64 %23 to i64*
store i64 %22, i64* %24, align 8
%25 = add nuw nsw i64 %20, 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = add i64 %27, -12
%29 = icmp ult i64 %22, %28
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_4, label LBL_3
LBL_3:
%31 = load i64, i64* %8, align 8
%32 = add i64 %3, 24
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %22, i64 %31, i64 %2, i64 %1)
%36 = call i64 @FUNC(i64 %34)
store i64 0, i64* %arg1, align 8
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
store i64 0, i64* %8, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %22, { 1, 0, 2 }
uselistorder i64* %8, { 1, 2, 0, 3 }
uselistorder i64 %3, { 1, 2, 0, 3, 4, 5 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @netdev_err, { 1, 0 }
uselistorder i64 24, { 1, 2, 0 }
uselistorder i64 16, { 1, 2, 0 }
} | 0 |
BinRealVul | rdpgfx_read_rect16_5737 | rdpgfx_read_rect16 | 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 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp ult i32 %4, 8
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%6 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0))
store i64 1, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%7 = ptrtoint i64* %arg2 to i64
%8 = trunc i64 %1 to i16
%9 = urem i64 %1, 65536
%10 = call i64 @FUNC(i64 %2, i64 %9)
%11 = add i64 %7, 2
%12 = inttoptr i64 %11 to i16*
%13 = load i16, i16* %12, align 2
%14 = zext i16 %13 to i64
%15 = call i64 @FUNC(i64 %2, i64 %14)
%16 = add i64 %7, 4
%17 = inttoptr i64 %16 to i16*
%18 = load i16, i16* %17, align 2
%19 = zext i16 %18 to i64
%20 = call i64 @FUNC(i64 %2, i64 %19)
%21 = add i64 %7, 6
%22 = inttoptr i64 %21 to i16*
%23 = load i16, i16* %22, align 2
%24 = zext i16 %23 to i64
%25 = call i64 @FUNC(i64 %2, i64 %24)
%26 = load i16, i16* %17, align 2
%27 = icmp ugt i16 %26, %8
store i64 1, i64* %rax.0.reg2mem
br i1 %27, label LBL_3, label LBL_4
LBL_3:
%28 = load i16, i16* %12, align 2
%29 = load i16, i16* %22, align 2
%30 = icmp uge i16 %28, %29
%. = zext i1 %30 to i64
store i64 %., i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 1, 0 }
uselistorder i64 (i64, i64)* @Stream_Read_UINT16, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | bmdma_irq_1893 | bmdma_irq | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%sext = mul i64 %arg3, 4294967296
%2 = ashr exact i64 %sext, 32
%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 = and i64 %2, 4294967295
%7 = and i64 %1, 4294967295
%8 = call i64 @FUNC(i64 %7, i64 %6)
store i64 %8, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%9 = ptrtoint i32* %arg1 to i64
%10 = add i64 %9, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = or i32 %12, 1
store i32 %13, i32* %11, align 4
%14 = bitcast i64* %rdi to i32*
%15 = load i32, i32* %14, align 8
%16 = and i64 %2, 4294967295
%17 = zext i32 %15 to i64
%18 = call i64 @FUNC(i64 %17, i64 %16)
store i64 %18, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @qemu_set_irq, { 1, 0 }
uselistorder i64 4294967295, { 1, 0, 2, 3, 4 }
} | 0 |
BinRealVul | GetCode__19031 | GetCode_ | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4, i32* %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i32
%sv_1.04.reg2mem = alloca i32
%storemerge5.reg2mem = alloca i32
%.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = icmp eq i32 %arg4, 0
%2 = add i64 %0, 256
%3 = inttoptr i64 %2 to i32*
br i1 %1, label LBL_2, label LBL_1
LBL_1:
store i32 0, i32* %3, align 4
%4 = add i64 %0, 260
%5 = inttoptr i64 %4 to i32*
store i32 0, i32* %5, align 4
%6 = add i64 %0, 264
%7 = inttoptr i64 %6 to i32*
store i32 2, i32* %7, align 4
%8 = add i64 %0, 268
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_2:
%10 = load i32, i32* %3, align 4
%11 = add i32 %10, %arg3
%12 = add i64 %0, 260
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp ult i32 %11, %14
store i32 %11, i32* %.pre-phi.reg2mem
store i32 %10, i32* %.reg2mem
br i1 %15, label LBL_7, label LBL_3
LBL_3:
%16 = add i64 %0, 268
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %18, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %19, label LBL_4, label LBL_13
LBL_4:
%20 = ptrtoint i64* %arg1 to i64
%21 = add i64 %0, 264
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = add i32 %23, -2
%25 = sext i32 %24 to i64
%26 = add i64 %25, %0
%27 = inttoptr i64 %26 to i8*
%28 = load i8, i8* %27, align 1
%29 = bitcast i64* %arg2 to i8*
store i8 %28, i8* %29, align 1
%30 = load i32, i32* %22, align 4
%31 = add i32 %30, -1
%32 = sext i32 %31 to i64
%33 = add i64 %32, %0
%34 = inttoptr i64 %33 to i8*
%35 = load i8, i8* %34, align 1
%36 = add i64 %0, 1
%37 = inttoptr i64 %36 to i8*
store i8 %35, i8* %37, align 1
%38 = add i64 %0, 2
%39 = ptrtoint i32* %arg5 to i64
%40 = call i64 @FUNC(i64 %20, i64 %38, i64 %39)
%41 = trunc i64 %40 to i8
%42 = icmp eq i8 %41, 0
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_6, label LBL_5
LBL_5:
store i32 1, i32* %17, align 4
br label LBL_6
LBL_6:
%44 = sext i8 %41 to i32
%45 = urem i32 %44, 256
%narrow = add nuw nsw i32 %45, 2
store i32 %narrow, i32* %22, align 4
%46 = load i32, i32* %3, align 4
%47 = load i32, i32* %13, align 4
%48 = add i32 %46, 16
%49 = sub i32 %48, %47
store i32 %49, i32* %3, align 4
%50 = mul i32 %44, 8
%51 = and i32 %50, 2040
%52 = add nuw nsw i32 %51, 16
store i32 %52, i32* %13, align 4
%.pre = load i32, i32* %3, align 4
%.pre6 = add i32 %.pre, %arg3
store i32 %.pre6, i32* %.pre-phi.reg2mem
store i32 %.pre, i32* %.reg2mem
br label LBL_7
LBL_7:
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%53 = icmp slt i32 %.pre-phi.reload, 2049
store i64 4294967295, i64* %sv_0.1.reg2mem
br i1 %53, label LBL_8, label LBL_12
LBL_8:
%.reload = load i32, i32* %.reg2mem
%54 = icmp sgt i32 %arg3, 0
store i32 0, i32* %storemerge5.reg2mem
store i32 %.reload, i32* %sv_1.04.reg2mem
store i32 0, i32* %sv_0.03.reg2mem
store i64 0, i64* %sv_0.1.reg2mem
br i1 %54, label LBL_9, label LBL_12
LBL_9:
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%sv_1.04.reload = load i32, i32* %sv_1.04.reg2mem
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%55 = sdiv i32 %sv_1.04.reload, 128
%56 = sext i32 %55 to i64
%57 = add i64 %56, %0
%58 = inttoptr i64 %57 to i8*
%59 = load i8, i8* %58, align 1
%60 = zext i8 %59 to i64
%61 = urem i32 %sv_1.04.reload, 8
%62 = icmp eq i32 %61, 0
store i64 %60, i64* %rdx.0.reg2mem
br i1 %62, label LBL_10, label %63
LBL_10:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%67 = urem i64 %rdx.0.reload, 2
%68 = icmp eq i64 %67, 0
%69 = icmp eq i1 %68, false
%70 = zext i1 %69 to i32
%71 = urem i32 %storemerge5.reload, 32
%72 = shl i32 %70, %71
%73 = or i32 %72, %sv_0.03.reload
%74 = add i32 %sv_1.04.reload, 1
%75 = add nuw nsw i32 %storemerge5.reload, 1
%exitcond = icmp eq i32 %75, %arg3
store i32 %75, i32* %storemerge5.reg2mem
store i32 %74, i32* %sv_1.04.reg2mem
store i32 %73, i32* %sv_0.03.reg2mem
br i1 %exitcond, label LBL_11, label LBL_9
LBL_11:
%phitmp = zext i32 %73 to i64
store i64 %phitmp, i64* %sv_0.1.reg2mem
br label LBL_12
LBL_12:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
store i32 %.pre-phi.reload, i32* %3, align 4
store i64 %sv_0.1.reload, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %73, { 1, 0 }
uselistorder i32 %61, { 1, 0 }
uselistorder i32 %sv_1.04.reload, { 0, 2, 1 }
uselistorder i32* %3, { 3, 0, 2, 1, 5, 4 }
uselistorder i64 %0, { 0, 6, 7, 1, 2, 11, 10, 9, 3, 4, 5, 8 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge5.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.04.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 16, { 1, 0 }
uselistorder i32 %arg3, { 2, 3, 0, 1 }
uselistorder label LBL_13, { 1, 0, 2 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | sk_add_backlog_12671 | sk_add_backlog | define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i32* %arg1 to i64
%4 = trunc i64 %1 to i32
%5 = add i64 %3, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = mul i32 %7, 2
%9 = add i64 %3, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = sub i32 %8, %11
%13 = xor i32 %8, %11
%14 = xor i32 %12, %8
%15 = and i32 %14, %13
%16 = icmp slt i32 %15, 0
%17 = icmp slt i32 %12, 0
%18 = icmp eq i1 %17, %16
%19 = select i1 %18, i32 %8, i32 %11
%20 = icmp ugt i32 %19, %4
store i64 4294967191, i64* %storemerge.reg2mem
br i1 %20, label LBL_1, label LBL_2
LBL_1:
%21 = trunc i64 %2 to i32
%22 = ptrtoint i32* %arg2 to i64
%23 = call i64 @FUNC(i64 %3, i64 %22)
%24 = add i32 %21, %4
store i32 %24, i32* %arg1, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %12, { 1, 0 }
uselistorder i32 %8, { 2, 3, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | igmp_mod_timer_10403 | igmp_mod_timer | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 40
%3 = inttoptr i64 %2 to i32*
store i32 0, i32* %3, align 4
%4 = add i64 %0, 48
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_4, label LBL_1
LBL_1:
%sext = mul i64 %arg2, 4294967296
%8 = inttoptr i64 %4 to i64*
%9 = load i64, i64* %8, align 8
%10 = load i64, i64* @gv_0, align 8
%11 = sub i64 %9, %10
%12 = ashr exact i64 %sext, 32
%13 = icmp slt i64 %11, %12
br i1 %13, label LBL_2, label LBL_3
LBL_2:
%14 = call i64 @FUNC(i64 %4)
%15 = add i64 %0, 56
%16 = inttoptr i64 %15 to i32*
store i32 1, i32* %16, align 4
%17 = call i64 @FUNC(i64 %0)
store i64 %17, i64* %storemerge.reg2mem
br label LBL_5
LBL_3:
%18 = add i64 %0, 60
%19 = call i64 @FUNC(i64 %18)
br label LBL_4
LBL_4:
%20 = and i64 %arg2, 4294967295
%21 = call i64 @FUNC(i64 %0, i64 %20)
%22 = call i64 @FUNC(i64 %0)
store i64 %22, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %4, { 1, 0, 2 }
uselistorder i64 %0, { 4, 3, 1, 0, 2, 5, 6, 7 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @spin_unlock_bh, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
} | 0 |
BinRealVul | get_seg_15507 | get_seg | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %1 to i16
%5 = bitcast i64* %arg1 to i16*
store i16 %4, i16* %5, align 2
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = add i64 %3, 8
%10 = inttoptr i64 %9 to i64*
store i64 %8, i64* %10, align 8
%11 = add i64 %2, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %3, 16
%15 = inttoptr i64 %14 to i64*
store i64 %13, i64* %15, align 8
%16 = add i64 %2, 24
%17 = inttoptr i64 %16 to i8*
%18 = load i8, i8* %17, align 1
%19 = add i64 %2, 25
%20 = inttoptr i64 %19 to i8*
%21 = load i8, i8* %20, align 1
%22 = or i8 %21, %18
%23 = add i64 %2, 26
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = mul i8 %25, 32
%27 = or i8 %22, %26
%28 = add i64 %2, 27
%29 = inttoptr i64 %28 to i8*
%30 = load i8, i8* %29, align 1
%31 = mul i8 %30, 64
%32 = or i8 %27, %31
%33 = add i64 %2, 28
%34 = inttoptr i64 %33 to i8*
%35 = load i8, i8* %34, align 1
%36 = or i8 %32, %35
%37 = add i64 %2, 29
%38 = inttoptr i64 %37 to i8*
%39 = load i8, i8* %38, align 1
%40 = shl i8 %39, 7
%41 = or i8 %36, %40
%42 = add i64 %2, 30
%43 = inttoptr i64 %42 to i8*
%44 = load i8, i8* %43, align 1
%45 = or i8 %41, %44
%46 = add i64 %2, 31
%47 = inttoptr i64 %46 to i8*
%48 = load i8, i8* %47, align 1
%49 = or i8 %45, %48
%50 = add i64 %3, 24
%51 = inttoptr i64 %50 to i8*
store i8 %49, i8* %51, align 1
ret i64 %3
uselistorder i64 %3, { 1, 0, 2, 3 }
} | 1 |
BinRealVul | gru_handle_user_call_os_6859 | gru_handle_user_call_os | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %arg1)
%3 = trunc i64 %2 to i32
%4 = urem i64 %arg1, 16
%5 = icmp eq i64 %4, 0
%6 = icmp slt i32 %3, 256
%or.cond = icmp eq i1 %5, %6
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_14
LBL_1:
%7 = call i64 @FUNC(i64 %arg1)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_14
LBL_2:
%sext = mul i64 %2, 4294967296
%10 = ashr exact i64 %sext, 32
store i64 %7, i64* %.reg2mem
br label LBL_3
LBL_3:
%.reload = load i64, i64* %.reg2mem
%11 = inttoptr i64 %.reload to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = inttoptr i64 %12 to i32*
%15 = load i32, i32* %14, align 4
%16 = zext i32 %15 to i64
store i64 %16, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%17 = load i64, i64* @gv_1, align 8
%18 = call i64 @FUNC(i64 %17, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_2, i64 0, i64 0), i64 %arg1, i64 %storemerge.reload, i64 %.reload)
%19 = add i64 %.reload, 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = mul i32 %21, 4
%23 = zext i32 %22 to i64
%24 = icmp slt i64 %10, %23
store i64 4294967274, i64* %sv_0.0.reg2mem
br i1 %24, label LBL_6, label LBL_13
LBL_6:
%25 = call i64 @FUNC(i64 %.reload)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_8, label LBL_7
LBL_7:
%28 = call i64 @FUNC(i64 %.reload)
%29 = call i64 @FUNC(i64 %.reload, i64 1)
%30 = call i64 @FUNC(i64 %arg1)
%31 = icmp eq i64 %30, 0
%32 = icmp eq i1 %31, false
store i64 %30, i64* %.reg2mem
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %32, label LBL_3, label LBL_14
LBL_8:
%33 = load i64, i64* %11, align 8
%34 = icmp eq i64 %33, 0
br i1 %34, label LBL_11, label LBL_9
LBL_9:
%35 = add i64 %.reload, 16
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = icmp eq i32 %37, 0
br i1 %38, label LBL_11, label LBL_10
LBL_10:
store i32 0, i32* %36, align 4
%39 = call i64 @FUNC(i64 %.reload)
br label LBL_11
LBL_11:
%40 = and i64 %2, 4294967295
%41 = call i64 @FUNC(i64 %.reload, i64 %40)
%42 = load i64, i64* %11, align 8
%43 = icmp eq i64 %42, 0
store i64 4294967285, i64* %sv_0.0.reg2mem
br i1 %43, label LBL_13, label LBL_12
LBL_12:
%44 = and i64 %41, 4294967295
%45 = call i64 @FUNC(i64 %42, i64 %44)
%46 = add i64 %.reload, 12
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = load i64, i64* %11, align 8
%50 = add i64 %49, 8
%51 = inttoptr i64 %50 to i64*
%52 = load i64, i64* %51, align 8
%53 = zext i32 %48 to i64
%54 = call i64 @FUNC(i64 %52, i64 %53, i32 %3)
%55 = call i64 @FUNC(i64 %.reload, i64 %45, i64 %54)
%phitmp = and i64 %55, 4294967295
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_13:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%56 = call i64 @FUNC(i64 %.reload)
store i64 %sv_0.0.reload, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %.reload, { 11, 10, 9, 7, 8, 6, 0, 1, 2, 4, 3, 5 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 (i64)* @gru_unlock_gts, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 (i64)* @gru_find_lock_gts, { 1, 0 }
uselistorder i64 4294967274, { 0, 3, 1, 2 }
uselistorder i64 16, { 1, 0 }
uselistorder i32 1, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 3, 2, 1, 0, 4 }
uselistorder label LBL_14, { 3, 0, 1, 2 }
uselistorder label LBL_13, { 2, 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | gen_addq_lo_16888 | gen_addq_lo | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC()
%2 = and i64 %arg3, 4294967295
%3 = call i64 @FUNC(i64 %0, i64 %2)
%4 = and i64 %3, 4294967295
%5 = call i64 @FUNC(i64 %1, i64 %4)
%6 = call i64 @FUNC(i64 %4)
%7 = call i64 @FUNC(i64 %arg2, i64 %arg2, i64 %1)
%8 = call i64 @FUNC(i64 %1)
ret i64 %8
uselistorder i64 %arg2, { 1, 0 }
} | 1 |
BinRealVul | LoadWPG2Flags_9409 | LoadWPG2Flags | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%xmm1.3.reg2mem = alloca i128
%xmm0.4.reg2mem = alloca i128
%storemerge6.reg2mem = alloca i128
%xmm2.0.reg2mem = alloca i128
%xmm0.3.reg2mem = alloca i128
%xmm1.2.reg2mem = alloca i128
%xmm0.2.reg2mem = alloca i128
%xmm1.1.reg2mem = alloca i128
%xmm0.1.reg2mem = alloca i128
%xmm1.0.reg2mem = alloca i128
%xmm0.0.reg2mem = alloca i128
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64* @memset(i64* %arg4, i32 0, i32 36)
%3 = call i128 @FUNC(i32 1065353216)
%4 = call i64 @__asm_movss.1(i128 %3)
%5 = trunc i64 %4 to i32
%6 = bitcast i64* %arg4 to i32*
store i32 %5, i32* %6, align 4
%7 = call i128 @FUNC(i32 1065353216)
%8 = call i64 @__asm_movss.1(i128 %7)
%9 = add i64 %0, 16
%10 = trunc i64 %8 to i32
%11 = inttoptr i64 %9 to i32*
store i32 %10, i32* %11, align 4
%12 = call i128 @FUNC(i32 1065353216)
%13 = call i64 @__asm_movss.1(i128 %12)
%14 = add i64 %0, 32
%15 = trunc i64 %13 to i32
%16 = inttoptr i64 %14 to i32*
store i32 %15, i32* %16, align 4
%17 = call i64 @FUNC(i64 %1)
%18 = trunc i64 %17 to i8
%19 = icmp sgt i8 %18, -1
br i1 %19, label LBL_2, label LBL_1
LBL_1:
%20 = call i64 @FUNC(i64 %1)
br label LBL_2
LBL_2:
%21 = trunc i64 %17 to i32
%22 = and i32 %21, 32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_6, label LBL_3
LBL_3:
%24 = trunc i64 %arg2 to i8
%25 = icmp eq i8 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_5, label LBL_4
LBL_4:
%27 = call i64 @FUNC(i64 %1)
br label LBL_6
LBL_5:
%28 = call i64 @FUNC(i64 %1)
br label LBL_6
LBL_6:
%29 = and i32 %21, 16
%30 = icmp eq i32 %29, 0
store i128 %12, i128* %xmm0.0.reg2mem
br i1 %30, label LBL_9, label LBL_7
LBL_7:
%31 = call i64 @FUNC(i64 %1)
%32 = icmp eq i64* %arg3, null
store i128 %12, i128* %xmm0.0.reg2mem
br i1 %32, label LBL_9, label LBL_8
LBL_8:
%33 = call i128 @FUNC(i128 %12, i128 %12)
%34 = call i128 @FUNC(i64 %31)
%35 = call i128 @FUNC(i64 4679240012837945344)
%36 = call i128 @FUNC(i128 %34, i128 %35)
%37 = call i128 @FUNC(i128 %36)
%38 = call i64 @__asm_movss.1(i128 %37)
%39 = trunc i64 %38 to i32
%40 = bitcast i64* %arg3 to i32*
store i32 %39, i32* %40, align 4
store i128 %37, i128* %xmm0.0.reg2mem
store i128 %35, i128* %xmm1.0.reg2mem
br label LBL_9
LBL_9:
%xmm1.0.reload = load i128, i128* %xmm1.0.reg2mem
%xmm0.0.reload = load i128, i128* %xmm0.0.reg2mem
%41 = and i32 %21, 24
%42 = icmp eq i32 %41, 0
store i128 %xmm0.0.reload, i128* %xmm0.1.reg2mem
store i128 %xmm1.0.reload, i128* %xmm1.1.reg2mem
br i1 %42, label LBL_11, label LBL_10
LBL_10:
%43 = call i64 @FUNC(i64 %1)
%44 = call i128 @FUNC(i128 %xmm0.0.reload, i128 %xmm0.0.reload)
%45 = call i128 @FUNC(i64 %43)
%46 = call i128 @FUNC(i32 1199570944)
%47 = call i128 @FUNC(i128 %45, i128 %46)
%48 = call i64 @__asm_movss.1(i128 %47)
%49 = trunc i64 %48 to i32
store i32 %49, i32* %6, align 4
%50 = call i64 @FUNC(i64 %1)
%51 = call i128 @FUNC(i128 %47, i128 %47)
%52 = call i128 @FUNC(i64 %50)
%53 = call i128 @FUNC(i32 1199570944)
%54 = call i128 @FUNC(i128 %52, i128 %53)
%55 = call i64 @__asm_movss.1(i128 %54)
%56 = trunc i64 %55 to i32
store i32 %56, i32* %11, align 4
store i128 %54, i128* %xmm0.1.reg2mem
store i128 %53, i128* %xmm1.1.reg2mem
br label LBL_11
LBL_11:
%xmm1.1.reload = load i128, i128* %xmm1.1.reg2mem
%xmm0.1.reload = load i128, i128* %xmm0.1.reg2mem
%57 = and i32 %21, 20
%58 = icmp eq i32 %57, 0
store i128 %xmm0.1.reload, i128* %xmm0.2.reg2mem
store i128 %xmm1.1.reload, i128* %xmm1.2.reg2mem
br i1 %58, label LBL_13, label LBL_12
LBL_12:
%59 = call i64 @FUNC(i64 %1)
%60 = call i128 @FUNC(i128 %xmm0.1.reload, i128 %xmm0.1.reload)
%61 = call i128 @FUNC(i64 %59)
%62 = call i128 @FUNC(i32 1199570944)
%63 = call i128 @FUNC(i128 %61, i128 %62)
%64 = call i64 @__asm_movss.1(i128 %63)
%65 = add i64 %0, 12
%66 = trunc i64 %64 to i32
%67 = inttoptr i64 %65 to i32*
store i32 %66, i32* %67, align 4
%68 = call i64 @FUNC(i64 %1)
%69 = call i128 @FUNC(i128 %63, i128 %63)
%70 = call i128 @FUNC(i64 %68)
%71 = call i128 @FUNC(i32 1199570944)
%72 = call i128 @FUNC(i128 %70, i128 %71)
%73 = call i64 @__asm_movss.1(i128 %72)
%74 = add i64 %0, 4
%75 = trunc i64 %73 to i32
%76 = inttoptr i64 %74 to i32*
store i32 %75, i32* %76, align 4
store i128 %72, i128* %xmm0.2.reg2mem
store i128 %71, i128* %xmm1.2.reg2mem
br label LBL_13
LBL_13:
%xmm1.2.reload = load i128, i128* %xmm1.2.reg2mem
%xmm0.2.reload = load i128, i128* %xmm0.2.reg2mem
%77 = and i32 %21, 2
%78 = icmp eq i32 %77, 0
store i128 %xmm0.2.reload, i128* %xmm0.4.reg2mem
store i128 %xmm1.2.reload, i128* %xmm1.3.reg2mem
br i1 %78, label LBL_23, label LBL_14
LBL_14:
%79 = call i64 @FUNC(i64 %1)
%80 = call i64 @FUNC(i64 %1)
%81 = icmp slt i64 %79, 0
%82 = call i128 @FUNC(i128 %xmm1.2.reload, i128 %xmm1.2.reload)
%83 = call i128 @FUNC(i64 %79)
%84 = and i64 %80, 4294967295
%85 = call i128 @FUNC(i128 %xmm0.2.reload, i128 %xmm0.2.reload)
%86 = call i128 @FUNC(i64 %84)
%87 = call i128 @FUNC(i32 1199570944)
br i1 %81, label LBL_16, label LBL_15
LBL_15:
%88 = call i128 @FUNC(i128 %86, i128 %87)
%89 = call i128 @FUNC(i128 %88, i128 %83)
%90 = call i64 @__asm_movss.1(i128 %89)
%91 = add i64 %0, 8
%92 = trunc i64 %90 to i32
%93 = inttoptr i64 %91 to i32*
store i32 %92, i32* %93, align 4
store i128 %89, i128* %xmm0.3.reg2mem
store i128 %87, i128* %xmm2.0.reg2mem
br label LBL_17
LBL_16:
%94 = call i128 @FUNC(i128 %86)
%95 = call i128 @FUNC(i128 %94, i128 %87)
%96 = call i128 @FUNC(i128 %83, i128 %95)
%97 = call i128 @FUNC(i128 %96)
%98 = call i64 @__asm_movss.1(i128 %97)
%99 = add i64 %0, 8
%100 = trunc i64 %98 to i32
%101 = inttoptr i64 %99 to i32*
store i32 %100, i32* %101, align 4
store i128 %97, i128* %xmm0.3.reg2mem
store i128 %95, i128* %xmm2.0.reg2mem
br label LBL_17
LBL_17:
%xmm2.0.reload = load i128, i128* %xmm2.0.reg2mem
%xmm0.3.reload = load i128, i128* %xmm0.3.reg2mem
%102 = call i64 @FUNC(i64 %1)
%103 = call i64 @FUNC(i64 %1)
%104 = call i128 @FUNC(i128 %xmm2.0.reload, i128 %xmm2.0.reload)
%105 = call i128 @FUNC(i64 %102)
%106 = icmp slt i64 %102, 0
br i1 %106, label LBL_19, label LBL_18
LBL_18:
%107 = call i128 @FUNC(i32 1065353216)
store i128 %107, i128* %storemerge6.reg2mem
br label LBL_20
LBL_19:
%108 = load i32, i32* inttoptr (i64 4202540 to i32*), align 4
%109 = call i128 @FUNC(i32 %108)
store i128 %109, i128* %storemerge6.reg2mem
br label LBL_20
LBL_20:
%storemerge6.reload = load i128, i128* %storemerge6.reg2mem
%110 = and i64 %103, 4294967295
%111 = call i128 @FUNC(i128 %xmm0.3.reload, i128 %xmm0.3.reload)
%112 = call i128 @FUNC(i64 %110)
%113 = call i128 @FUNC(i128 %112, i128 %storemerge6.reload)
%114 = call i128 @FUNC(i32 1199570944)
%115 = call i128 @FUNC(i128 %113, i128 %114)
%116 = call i128 @FUNC(i128 %115, i128 %105)
%117 = call i64 @__asm_movss.1(i128 %116)
%118 = add i64 %0, 20
%119 = trunc i64 %117 to i32
%120 = inttoptr i64 %118 to i32*
store i32 %119, i32* %120, align 4
%121 = call i128 @FUNC(i128 %114, i128 %114)
%122 = call i128 @FUNC(i64 %102)
%123 = call i128 @FUNC(i128 %116, i128 %116)
%124 = call i128 @FUNC(i64 %110)
%125 = call i128 @FUNC(i32 1199570944)
br i1 %106, label LBL_22, label LBL_21
LBL_21:
%126 = call i128 @FUNC(i128 %124, i128 %125)
%127 = call i128 @FUNC(i128 %126, i128 %122)
%128 = call i64 @__asm_movss.1(i128 %127)
%129 = trunc i64 %128 to i32
store i32 %129, i32* %120, align 4
store i128 %127, i128* %xmm0.4.reg2mem
store i128 %122, i128* %xmm1.3.reg2mem
br label LBL_23
LBL_22:
%130 = call i128 @FUNC(i128 %124)
%131 = call i128 @FUNC(i128 %130, i128 %125)
%132 = call i128 @FUNC(i128 %122, i128 %131)
%133 = call i128 @FUNC(i128 %132)
%134 = call i64 @__asm_movss.1(i128 %133)
%135 = trunc i64 %134 to i32
store i32 %135, i32* %120, align 4
store i128 %133, i128* %xmm0.4.reg2mem
store i128 %132, i128* %xmm1.3.reg2mem
br label LBL_23
LBL_23:
%136 = urem i32 %21, 2
%137 = icmp eq i32 %136, 0
br i1 %137, label LBL_25, label LBL_24
LBL_24:
%xmm1.3.reload = load i128, i128* %xmm1.3.reg2mem
%xmm0.4.reload = load i128, i128* %xmm0.4.reg2mem
%138 = call i64 @FUNC(i64 %1)
%139 = call i64 @FUNC(i64 %1)
%140 = call i128 @FUNC(i128 %xmm1.3.reload, i128 %xmm1.3.reload)
%141 = call i128 @FUNC(i64 %138)
%142 = and i64 %139, 4294967295
%143 = call i128 @FUNC(i128 %xmm0.4.reload, i128 %xmm0.4.reload)
%144 = call i128 @FUNC(i64 %142)
%145 = call i128 @FUNC(i32 1199570944)
%146 = call i128 @FUNC(i128 %144, i128 %145)
%147 = call i128 @FUNC(i128 %146, i128 %141)
%148 = call i64 @__asm_movss.1(i128 %147)
%149 = add i64 %0, 24
%150 = trunc i64 %148 to i32
%151 = inttoptr i64 %149 to i32*
store i32 %150, i32* %151, align 4
%152 = call i64 @FUNC(i64 %1)
%153 = call i64 @FUNC(i64 %1)
%154 = call i128 @FUNC(i128 %141, i128 %141)
%155 = call i128 @FUNC(i64 %152)
%156 = and i64 %153, 4294967295
%157 = call i128 @FUNC(i128 %147, i128 %147)
%158 = call i128 @FUNC(i64 %156)
%159 = call i128 @FUNC(i32 1199570944)
%160 = call i128 @FUNC(i128 %158, i128 %159)
%161 = call i128 @FUNC(i128 %160, i128 %155)
%162 = call i64 @__asm_movss.1(i128 %161)
%163 = add i64 %0, 28
%164 = trunc i64 %162 to i32
%165 = inttoptr i64 %163 to i32*
store i32 %164, i32* %165, align 4
br label LBL_25
LBL_25:
%166 = and i64 %17, 4294967295
ret i64 %166
uselistorder i128 %147, { 1, 0, 2 }
uselistorder i128 %141, { 1, 0, 2 }
uselistorder i128 %125, { 1, 0 }
uselistorder i128 %122, { 2, 0, 1 }
uselistorder i32* %120, { 1, 0, 2 }
uselistorder i128 %116, { 1, 0, 2 }
uselistorder i128 %114, { 1, 0, 2 }
uselistorder i64 %102, { 0, 2, 1 }
uselistorder i128 %87, { 2, 0, 1 }
uselistorder i128 %86, { 1, 0 }
uselistorder i128 %83, { 1, 0 }
uselistorder i128 %xmm0.2.reload, { 1, 2, 0 }
uselistorder i128 %xmm1.2.reload, { 1, 2, 0 }
uselistorder i128 %63, { 2, 1, 0 }
uselistorder i128 %xmm0.1.reload, { 1, 2, 0 }
uselistorder i128 %47, { 2, 1, 0 }
uselistorder i128 %xmm0.0.reload, { 1, 2, 0 }
uselistorder i64 %17, { 0, 2, 1 }
uselistorder i128 %12, { 3, 2, 0, 1, 4 }
uselistorder i64 %1, { 13, 12, 15, 14, 9, 8, 11, 10, 6, 7, 4, 5, 3, 1, 2, 0, 16 }
uselistorder i64 %0, { 5, 6, 3, 4, 2, 0, 1, 7, 8 }
uselistorder i128* %xmm0.3.reg2mem, { 0, 2, 1 }
uselistorder i128* %xmm2.0.reg2mem, { 0, 2, 1 }
uselistorder i128* %storemerge6.reg2mem, { 0, 2, 1 }
uselistorder i128* %xmm0.4.reg2mem, { 0, 2, 1, 3 }
uselistorder i128* %xmm1.3.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 4294967295, { 0, 3, 4, 1, 2 }
uselistorder i32 1199570944, { 2, 3, 1, 4, 0, 5, 6, 7, 8, 9 }
uselistorder i64 (i64)* @ReadBlobLSBLong, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @ReadBlobLSBShort, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 0 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.