dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | usb_enumerate_device_otg_11718 | usb_enumerate_device_otg | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i8*, align 8
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %6, label LBL_10, label LBL_1
LBL_1:
%7 = add i64 %3, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %10, label LBL_10, label LBL_2
LBL_2:
store i8* null, i8** %sv_1, align 8
%11 = add i64 %3, 24
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = load i64, i64* %8, align 8
%15 = inttoptr i64 %14 to i16*
%16 = load i16, i16* %15, align 2
%17 = zext i16 %16 to i64
%18 = call i64 @FUNC(i64 %17)
%19 = and i64 %18, 4294967295
%20 = add i64 %3, 32
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = bitcast i8** %sv_1 to i64*
%24 = call i64 @FUNC(i64 %22, i64 %19, i64 9, i64* nonnull %23)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
store i64 0, i64* %storemerge.reg2mem
br i1 %27, label LBL_11, label LBL_3
LBL_3:
%28 = load i8*, i8** %sv_1, align 8
%29 = ptrtoint i8* %28 to i64
%30 = add i64 %29, 1
%31 = inttoptr i64 %30 to i8*
%32 = load i8, i8* %31, align 1
%33 = urem i8 %32, 2
%34 = icmp eq i8 %33, 0
%35 = icmp eq i1 %34, false
store i64 0, i64* %storemerge.reg2mem
br i1 %35, label LBL_4, label LBL_11
LBL_4:
%36 = ptrtoint i8** %sv_1 to i64
%37 = add i64 %3, 4
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = icmp eq i32 %13, %39
%41 = icmp eq i1 %40, false
%42 = add i64 %3, 40
%43 = select i1 %41, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i8* bitcast (i8** @gv_1 to i8*)
%44 = call i64 @FUNC(i64 %42, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_2, i64 0, i64 0), i8* %43, i64 %36, i64 %2, i64 %1)
%45 = load i32, i32* %38, align 4
%46 = icmp eq i32 %13, %45
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_7, label LBL_5
LBL_5:
%48 = inttoptr i64 %7 to i32*
store i32 1, i32* %48, align 4
%49 = call i64 @FUNC(i64 %3, i64 0)
%50 = and i64 %49, 4294967295
%51 = call i64 @FUNC(i64 %3, i64 %50, i64 3, i64 0, i64 1, i64 0)
%52 = trunc i64 %51 to i32
%53 = icmp slt i32 %52, 0
%54 = icmp eq i1 %53, false
store i64 %51, i64* %sv_0.0.reg2mem
br i1 %54, label LBL_10, label LBL_6
LBL_6:
%55 = and i64 %51, 4294967295
%56 = call i64 @FUNC(i64 %42, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_3, i64 0, i64 0), i64 %55, i64 %42, i64 1, i64 0)
store i32 0, i32* %48, align 4
store i64 %51, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_7:
%57 = load i8*, i8** %sv_1, align 8
%58 = load i8, i8* %57, align 1
%59 = icmp eq i8 %58, 2
%60 = icmp eq i1 %59, false
store i64 %24, i64* %sv_0.0.reg2mem
br i1 %60, label LBL_10, label LBL_8
LBL_8:
%61 = call i64 @FUNC(i64 %3, i64 0)
%62 = and i64 %61, 4294967295
%63 = call i64 @FUNC(i64 %3, i64 %62, i64 3, i64 0, i64 2, i64 0)
%64 = trunc i64 %63 to i32
%65 = icmp slt i32 %64, 0
%66 = icmp eq i1 %65, false
store i64 %63, i64* %sv_0.0.reg2mem
br i1 %66, label LBL_10, label LBL_9
LBL_9:
%67 = and i64 %63, 4294967295
%68 = call i64 @FUNC(i64 %42, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_4, i64 0, i64 0), i64 %67, i64 %42, i64 2, i64 0)
store i64 %63, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%69 = and i64 %sv_0.0.reload, 4294967295
store i64 %69, i64* %storemerge.reg2mem
br label LBL_11
LBL_11:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %63, { 0, 2, 1, 3 }
uselistorder i64 %51, { 0, 2, 1, 3 }
uselistorder i64 %42, { 2, 3, 0, 1, 4 }
uselistorder i8** %sv_1, { 3, 1, 2, 4, 0 }
uselistorder i64 %3, { 5, 4, 3, 2, 6, 0, 7, 8, 9, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 4, 5, 1, 2, 6, 7 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @dev_err, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64, i64)* @usb_control_msg, { 1, 0 }
uselistorder i64 (i64, i64)* @usb_sndctrlpipe, { 1, 0 }
uselistorder i8 0, { 0, 2, 3, 1 }
uselistorder i8 2, { 1, 0 }
uselistorder i64 4294967295, { 1, 0, 3, 2, 4, 5 }
uselistorder label LBL_11, { 2, 1, 0 }
} | 1 |
reposvul_c_test | X509_cmp_time_244 | X509_cmp_time | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i8*
%storemerge.in.reg2mem = alloca i64
%storemerge10.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%2 = load i64, i64* %0
%3 = ptrtoint i32* %arg1 to i64
%4 = load i32, i32* %1
%5 = load i32, i32* %1
%sv_3 = alloca i8, align 1
%sv_4 = alloca i32, align 4
%sv_5 = alloca i8, align 1
%6 = ptrtoint i8* %sv_5 to i64
%7 = add i64 %3, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %3, 16
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = trunc i64 %2 to i32
%14 = icmp eq i32 %13, 23
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_3, label LBL_1
LBL_1:
%.off = add i32 %9, -11
%16 = icmp ult i32 %.off, 7
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_2, label LBL_18
LBL_2:
%17 = bitcast i8* %sv_5 to i64*
%18 = inttoptr i64 %12 to i64*
%19 = call i64* @memcpy(i64* nonnull %17, i64* %18, i32 10)
%20 = add i64 %6, 10
%21 = add i64 %12, 10
store i64 %20, i64* %sv_1.0.reg2mem
store i64 %21, i64* %storemerge10.reg2mem
br label LBL_5
LBL_3:
%22 = icmp sgt i32 %9, 12
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_4, label LBL_18
LBL_4:
%23 = bitcast i8* %sv_5 to i64*
%24 = inttoptr i64 %12 to i64*
%25 = call i64* @memcpy(i64* nonnull %23, i64* %24, i32 12)
%26 = add i64 %6, 12
%27 = add i64 %12, 12
store i64 %26, i64* %sv_1.0.reg2mem
store i64 %27, i64* %storemerge10.reg2mem
br label LBL_5
LBL_5:
%storemerge10.reload = load i64, i64* %storemerge10.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%28 = inttoptr i64 %storemerge10.reload to i8*
%29 = load i8, i8* %28, align 1
switch i8 %29, label LBL_6 [
i8 90, label LBL_7
i8 45, label LBL_7
]
LBL_6:
%30 = icmp eq i8 %29, 43
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_8, label LBL_7
LBL_7:
%32 = add i64 %sv_1.0.reload, 1
%33 = inttoptr i64 %sv_1.0.reload to i8*
store i8 48, i8* %33, align 1
%34 = add i64 %sv_1.0.reload, 2
%35 = inttoptr i64 %32 to i8*
store i8 48, i8* %35, align 1
store i8* %28, i8** %.pre-phi.reg2mem
store i64 %storemerge10.reload, i64* %sv_2.0.reg2mem
store i64 %34, i64* %sv_1.1.reg2mem
br label LBL_10
LBL_8:
%36 = add i64 %storemerge10.reload, 1
%37 = add i64 %sv_1.0.reload, 1
%38 = inttoptr i64 %sv_1.0.reload to i8*
store i8 %29, i8* %38, align 1
%39 = add i64 %storemerge10.reload, 2
%40 = add i64 %sv_1.0.reload, 2
%41 = inttoptr i64 %36 to i8*
%42 = load i8, i8* %41, align 1
%43 = inttoptr i64 %37 to i8*
store i8 %42, i8* %43, align 1
%44 = inttoptr i64 %39 to i8*
%45 = load i8, i8* %44, align 1
%46 = icmp eq i8 %45, 46
%47 = icmp eq i1 %46, false
store i64 %39, i64* %storemerge.in.reg2mem
store i8* %44, i8** %.pre-phi.reg2mem
store i64 %39, i64* %sv_2.0.reg2mem
store i64 %40, i64* %sv_1.1.reg2mem
br i1 %47, label LBL_10, label LBL_9
LBL_9:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = add i64 %storemerge.in.reload, 1
%48 = inttoptr i64 %storemerge to i8*
%49 = load i8, i8* %48, align 1
%.off14 = add i8 %49, -48
%50 = icmp ult i8 %.off14, 10
store i64 %storemerge, i64* %storemerge.in.reg2mem
store i8* %48, i8** %.pre-phi.reg2mem
store i64 %storemerge, i64* %sv_2.0.reg2mem
store i64 %40, i64* %sv_1.1.reg2mem
br i1 %50, label LBL_9, label LBL_10
LBL_10:
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%.pre-phi.reload = load i8*, i8** %.pre-phi.reg2mem
%51 = add i64 %sv_1.1.reload, 1
%52 = inttoptr i64 %sv_1.1.reload to i8*
store i8 90, i8* %52, align 1
%53 = inttoptr i64 %51 to i8*
store i8 0, i8* %53, align 1
%54 = load i8, i8* %.pre-phi.reload, align 1
%55 = icmp eq i8 %54, 90
%56 = icmp eq i1 %55, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %56, label LBL_11, label LBL_13
LBL_11:
store i64 0, i64* %rax.0.reg2mem
switch i8 %54, label LBL_18 [
i8 43, label LBL_12
i8 45, label LBL_12
]
LBL_12:
%57 = add i64 %sv_2.0.reload, 1
%58 = inttoptr i64 %57 to i8*
%59 = load i8, i8* %58, align 1
%60 = sext i8 %59 to i64
%61 = mul nsw i64 %60, 10
%62 = add i64 %sv_2.0.reload, 2
%63 = inttoptr i64 %62 to i8*
%64 = load i8, i8* %63, align 1
%65 = sext i8 %64 to i64
%66 = add nsw i64 %61, %65
%67 = mul nsw i64 %66, 257698037760
%sext8 = add nsw i64 %67, -136064563937280
%68 = ashr exact i64 %sext8, 32
%69 = add i64 %sv_2.0.reload, 3
%70 = inttoptr i64 %69 to i8*
%71 = load i8, i8* %70, align 1
%72 = sext i8 %71 to i64
%73 = mul nsw i64 %72, 10
%74 = add i64 %sv_2.0.reload, 4
%75 = inttoptr i64 %74 to i8*
%76 = load i8, i8* %75, align 1
%77 = sext i8 %76 to i64
%78 = add nsw i64 %73, %77
%79 = mul i64 %78, 4294967296
%sext9 = add nsw i64 %79, -2267742732288
%80 = ashr exact i64 %sext9, 32
%81 = add nsw i64 %80, %68
%82 = icmp eq i8 %54, 45
%83 = icmp eq i1 %82, false
%84 = sub nsw i64 0, %81
%spec.select = select i1 %83, i64 %81, i64 %84
%phitmp = mul nsw i64 %spec.select, 60
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_13:
%85 = ptrtoint i64* %arg2 to i64
%86 = bitcast i64* %rdi to i32*
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%87 = load i32, i32* %86, align 8
store i32 %87, i32* %sv_4, align 4
%88 = call i64 @FUNC(i32* nonnull %sv_4, i64 %sv_0.0.reload, i64 %85)
%89 = icmp eq i64 %88, 0
%90 = icmp eq i1 %89, false
store i64 0, i64* %rax.0.reg2mem
br i1 %90, label LBL_14, label LBL_18
LBL_14:
%91 = icmp eq i32 %87, 23
%92 = icmp eq i1 %91, false
br i1 %92, label LBL_17, label LBL_15
LBL_15:
%93 = load i8, i8* %sv_5, align 1
%94 = sext i8 %93 to i32
%95 = mul nsw i32 %94, 10
%sext = mul i32 %5, 16777216
%96 = ashr exact i32 %sext, 24
%97 = add nsw i32 %95, %96
%98 = add nsw i32 %97, -528
%99 = icmp sgt i32 %98, 49
%100 = add nsw i32 %97, -428
%spec.select12 = select i1 %99, i32 %98, i32 %100
%101 = load i8, i8* %sv_3, align 1
%102 = sext i8 %101 to i32
%103 = mul nsw i32 %102, 10
%sext6 = mul i32 %4, 16777216
%104 = ashr exact i32 %sext6, 24
%105 = add nsw i32 %103, %104
%106 = add nsw i32 %105, -528
%107 = icmp sgt i32 %106, 49
%108 = add nsw i32 %105, -428
%sv_6.0 = select i1 %107, i32 %106, i32 %108
%109 = icmp slt i32 %spec.select12, %sv_6.0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %109, label LBL_18, label LBL_16
LBL_16:
%110 = icmp sgt i32 %spec.select12, %sv_6.0
store i64 1, i64* %rax.0.reg2mem
br i1 %110, label LBL_18, label LBL_17
LBL_17:
%111 = call i32 @strcmp(i8* nonnull %sv_5, i8* nonnull %sv_3)
%112 = icmp eq i32 %111, 0
%113 = icmp eq i1 %112, false
%114 = zext i32 %111 to i64
%spec.select13 = select i1 %113, i64 %114, i64 4294967295
ret i64 %spec.select13
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_2.0.reload, { 1, 0, 2, 3 }
uselistorder i64 %sv_1.1.reload, { 1, 0 }
uselistorder i8 %29, { 1, 2, 0 }
uselistorder i64 %sv_1.0.reload, { 3, 5, 4, 0, 2, 1 }
uselistorder i64 %storemerge10.reload, { 2, 3, 0, 1 }
uselistorder i64 %12, { 1, 3, 0, 2 }
uselistorder i32 %9, { 1, 0 }
uselistorder i64 %6, { 1, 0 }
uselistorder i8* %sv_5, { 4, 3, 0, 1, 2 }
uselistorder i8* %sv_3, { 1, 0 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge10.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.in.reg2mem, { 2, 0, 1 }
uselistorder i8** %.pre-phi.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 1, 3, 2 }
uselistorder i32* %1, { 1, 0 }
uselistorder i64 2, { 3, 0, 1, 2 }
uselistorder i64 1, { 0, 3, 4, 2, 5, 6, 7, 1 }
uselistorder i8 45, { 2, 0, 1 }
uselistorder i8 90, { 1, 2, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 2, 0, 1 }
} | 1 |
BinRealVul | virtio_scsi_device_realize_15243 | virtio_scsi_device_realize | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 0, i64* %sv_0, align 8
%2 = call i64 @FUNC(i64 %1, i64* nonnull %sv_0)
%3 = load i64, i64* %sv_0, align 8
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0, i64 %3)
store i64 %5, i64* %rax.0.reg2mem
br label LBL_6
LBL_2:
%6 = trunc i64 %1 to i32
%7 = call i64 @FUNC(i64 %1, i64 4, i64 %1, i64* nonnull @gv_0, i64 %1)
%8 = icmp eq i32 %6, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_5, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %1, i64* nonnull %sv_0)
%11 = load i64, i64* %sv_0, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_5, label LBL_4
LBL_4:
%13 = call i64 @FUNC(i64 %0, i64 %11)
store i64 %13, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%14 = load i64, i64* @gv_1, align 8
%15 = load i64, i64* @gv_2, align 8
%16 = load i32, i32* @gv_3, align 4
store i32 ptrtoint (i64* @gv_4 to i32), i32* @gv_3, align 4
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_5, i64 0, i64 0), i64 %17, i64 1, i64 %15, i64 %14)
store i64 %18, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_0, { 2, 0, 3, 1, 4 }
uselistorder i64 %1, { 3, 2, 1, 4, 5, 0, 6 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* @gv_3, { 1, 0 }
uselistorder i64 (i64, i64)* @error_propagate, { 1, 0 }
} | 1 |
BinRealVul | qbus_free_2240 | qbus_free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.0.lcssa.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = add i64 %arg1, 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 %2, i64* %.reg2mem
store i64 %arg1, i64* %rdi.0.lcssa.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%.reload = load i64, i64* %.reg2mem
%5 = call i64 @FUNC(i64 %.reload)
%6 = load i64, i64* %1, align 8
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 %6, i64* %.reg2mem
store i64 %.reload, i64* %rdi.0.lcssa.reg2mem
br i1 %8, label LBL_1, label LBL_2
LBL_2:
%rdi.0.lcssa.reload = load i64, i64* %rdi.0.lcssa.reg2mem
%9 = icmp eq i64 %rdi.0.lcssa.reload, 0
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = add i64 %rdi.0.lcssa.reload, 28
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i32 %12, -1
store i32 %13, i32* %11, align 4
br label LBL_4
LBL_4:
%14 = add i64 %arg1, 16
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16)
%18 = add i64 %arg1, 24
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = call i64 @FUNC(i64 %arg1)
store i64 %22, 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 %rdi.0.lcssa.reload, { 1, 0 }
uselistorder i64* %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @qemu_free, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 %arg1, { 1, 3, 2, 0, 4 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | get_current_time_10371 | get_current_time | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = bitcast i64* %arg1 to %timeval*
%1 = call i32 @gettimeofday(%timeval* %0, %timezone* null)
%2 = sext i32 %1 to i64
ret i64 %2
} | 0 |
BinRealVul | php_auto_globals_create_get_10714 | php_auto_globals_create_get | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = load i8*, i8** @gv_0, align 8
%1 = icmp eq i8* %0, null
br i1 %1, label LBL_3, label LBL_1
LBL_1:
%2 = call i8* @strchr(i8* nonnull %0, i32 71)
%3 = icmp eq i8* %2, null
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_4, label LBL_2
LBL_2:
%5 = load i8*, i8** @gv_0, align 8
%6 = call i8* @strchr(i8* %5, i32 103)
%7 = icmp eq i8* %6, null
br i1 %7, label LBL_3, label LBL_4
LBL_3:
%8 = call i64 @FUNC(i64* nonnull @gv_1)
%9 = call i64 @FUNC(i64* nonnull @gv_1)
br label LBL_4
LBL_4:
%10 = ptrtoint i64* %arg1 to i64
%11 = call i64 @FUNC(i64* nonnull @gv_2, i64 %10, i64* nonnull @gv_1)
ret i64 0
uselistorder i64* @gv_1, { 2, 0, 1 }
uselistorder label LBL_4, { 2, 1, 0 }
} | 0 |
BinRealVul | redisIvykisAttach_13171 | redisIvykisAttach | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = call i64* @malloc(i32 48)
%6 = ptrtoint i64* %5 to i64
%7 = add i64 %6, 40
%8 = inttoptr i64 %7 to i64*
store i64 %0, i64* %8, align 8
%9 = add i64 %0, 16
%10 = inttoptr i64 %9 to i64*
store i64 4198710, i64* %10, align 8
%11 = add i64 %0, 24
%12 = inttoptr i64 %11 to i64*
store i64 4198721, i64* %12, align 8
%13 = add i64 %0, 32
%14 = inttoptr i64 %13 to i64*
store i64 4198732, i64* %14, align 8
%15 = add i64 %0, 40
%16 = inttoptr i64 %15 to i64*
store i64 4198743, i64* %16, align 8
%17 = add i64 %0, 48
%18 = inttoptr i64 %17 to i64*
store i64 4198754, i64* %18, align 8
store i64 %6, i64* %2, align 8
%19 = call i64 @FUNC(i64 %6)
%20 = bitcast i64* %rdi to i32*
%21 = load i32, i32* %20, align 8
%22 = bitcast i64* %5 to i32*
store i32 %21, i32* %22, align 4
%23 = add i64 %6, 8
%24 = inttoptr i64 %23 to i64*
store i64 4198765, i64* %24, align 8
%25 = add i64 %6, 16
%26 = inttoptr i64 %25 to i64*
store i64 4198776, i64* %26, align 8
%27 = add i64 %6, 24
%28 = inttoptr i64 %27 to i64*
store i64 0, i64* %28, align 8
%29 = load i64, i64* %8, align 8
%30 = add i64 %6, 32
%31 = inttoptr i64 %30 to i64*
store i64 %29, i64* %31, align 8
%32 = call i64 @FUNC(i64 %6)
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | vp9_decode_free_16396 | vp9_decode_free | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%indvars.iv4.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
store i64 0, i64* %indvars.iv4.reg2mem
br label LBL_1
LBL_1:
%indvars.iv4.reload = load i64, i64* %indvars.iv4.reg2mem
%1 = mul i64 %indvars.iv4.reload, 8
%2 = add i64 %1, %0
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %0, i64 %2)
br label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %2)
%indvars.iv.next5 = add nuw nsw i64 %indvars.iv4.reload, 1
%exitcond6 = icmp eq i64 %indvars.iv.next5, 2
store i64 %indvars.iv.next5, i64* %indvars.iv4.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br i1 %exitcond6, label LBL_4, label LBL_1
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%10 = mul i64 %indvars.iv.reload, 8
%11 = add i64 %10, %0
%12 = add i64 %11, 16
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, 0
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%18 = call i64 @FUNC(i64 %0, i64 %12)
br label LBL_6
LBL_6:
%19 = call i64 @FUNC(i64 %12)
%20 = add i64 %11, 80
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = icmp eq i64 %24, 0
br i1 %25, label LBL_8, label LBL_7
LBL_7:
%26 = call i64 @FUNC(i64 %0, i64 %20)
br label LBL_8
LBL_8:
%27 = call i64 @FUNC(i64 %20)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 8
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_9, label LBL_4
LBL_9:
%28 = add i64 %0, 144
%29 = call i64 @FUNC(i64 %28)
%30 = add i64 %0, 152
%31 = call i64 @FUNC(i64 %30)
%32 = add i64 %0, 160
%33 = inttoptr i64 %32 to i64*
store i64 0, i64* %33, align 8
%34 = add i64 %0, 168
%35 = call i64 @FUNC(i64 %34)
%36 = add i64 %0, 176
%37 = call i64 @FUNC(i64 %36)
ret i64 0
uselistorder i64 %0, { 3, 2, 6, 7, 8, 5, 4, 0, 9, 1 }
uselistorder i64* %indvars.iv4.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @av_freep, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @ff_thread_release_buffer, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64)* @av_frame_free, { 2, 1, 0 }
uselistorder i64 8, { 2, 0, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | gen_mtspr_14486 | gen_mtspr | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.pre-phi4.reg2mem = alloca i64
%sv_0.0.in.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = and i64 %3, 4294967295
%6 = call i64 @FUNC(i64 %5)
%7 = add i64 %4, 6152
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = and i64 %6, 4294967295
%12 = mul nuw nsw i64 %11, 24
%13 = add i64 %4, 8
%14 = add i64 %13, %12
store i64 %14, i64* %sv_0.0.in.in.reg2mem
br label LBL_5
LBL_2:
%15 = add i64 %4, 6156
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = icmp eq i32 %17, 0
%19 = and i64 %6, 4294967295
%20 = mul nuw nsw i64 %19, 24
%21 = add i64 %20, %4
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%22 = add i64 %21, 16
store i64 %22, i64* %sv_0.0.in.in.reg2mem
br label LBL_5
LBL_4:
%23 = add i64 %21, 24
store i64 %23, i64* %sv_0.0.in.in.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.in.in.reload = load i64, i64* %sv_0.0.in.in.reg2mem
%sv_0.0.in = inttoptr i64 %sv_0.0.in.in.reload to i64*
%sv_0.0 = load i64, i64* %sv_0.0.in, align 8
%24 = icmp eq i64 %sv_0.0, 0
%25 = icmp eq i1 %24, false
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_7, label LBL_6
LBL_6:
%27 = call i64 @FUNC(i64 %5)
store i64 %4, i64* %rax.0.reg2mem
br label LBL_11
LBL_7:
%28 = trunc i64 %6 to i32
%29 = call i64 @FUNC()
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
%.pre = add i64 %4, 4
%.pre1 = inttoptr i64 %.pre to i32*
br i1 %31, label LBL_7.LBL_10_crit_edge, label LBL_9
LBL_8:
%.pre3 = and i64 %6, 4294967295
store i64 %.pre3, i64* %.pre-phi4.reg2mem
br label LBL_10
LBL_9:
%32 = load i32, i32* %.pre1, align 4
%33 = add i32 %32, -4
%34 = zext i32 %33 to i64
%35 = and i64 %6, 4294967295
%36 = call i64 @FUNC(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_0, i64 0, i64 0), i64 %35, i32 %28, i64 %34, i64 %2, i64 %1)
store i64 %35, i64* %.pre-phi4.reg2mem
br label LBL_10
LBL_10:
%.pre-phi4.reload = load i64, i64* %.pre-phi4.reg2mem
%37 = load i32, i32* %.pre1, align 4
%38 = add i32 %37, -4
%39 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%40 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %39, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_0, i64 0, i64 0), i64 %.pre-phi4.reload, i32 %28, i32 %38)
%41 = call i64 @FUNC(i64 %4, i64 2)
store i64 %41, 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 %28, { 1, 0 }
uselistorder i64 %21, { 1, 0 }
uselistorder i64 %6, { 2, 0, 4, 1, 3 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 4, 2, 0, 1, 5, 3, 6 }
uselistorder i64* %sv_0.0.in.in.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 24, { 2, 0, 1 }
uselistorder i64 4294967295, { 3, 1, 2, 4, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | defendel_17797 | defendel | define i64 @FUNC(i8* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rbx.2.reg2mem = alloca i64
%rbx.1.reg2mem = alloca i64
%.reg2mem42 = alloca i64*
%.reg2mem40 = alloca i64*
%.reg2mem38 = alloca i64
%rbx.0.lcssa.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.09.reg2mem = alloca i32
%rbx.010.reg2mem = alloca i64
%.reg2mem = alloca i8
%0 = ptrtoint i8* %arg1 to i64
%1 = load i8, i8* %arg1, align 1
%2 = icmp eq i8 %1, 0
%3 = icmp eq i1 %2, false
store i8 %1, i8* %.reg2mem
store i64 %0, i64* %rbx.010.reg2mem
store i32 0, i32* %sv_0.09.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
store i64 %0, i64* %rbx.0.lcssa.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%sv_0.09.reload = load i32, i32* %sv_0.09.reg2mem
%rbx.010.reload = load i64, i64* %rbx.010.reg2mem
%.reload = load i8, i8* %.reg2mem
%4 = add i64 %rbx.010.reload, 1
%5 = sext i8 %.reload to i32
%6 = add i32 %sv_0.09.reload, %5
%7 = inttoptr i64 %4 to i8*
%8 = load i8, i8* %7, align 1
%9 = icmp eq i8 %8, 0
%10 = icmp eq i1 %9, false
store i8 %8, i8* %.reg2mem
store i64 %4, i64* %rbx.010.reg2mem
store i32 %6, i32* %sv_0.09.reg2mem
store i32 %6, i32* %sv_0.0.lcssa.reg2mem
store i64 %4, i64* %rbx.0.lcssa.reg2mem
br i1 %10, label LBL_1, label LBL_2
LBL_2:
%rbx.0.lcssa.reload = load i64, i64* %rbx.0.lcssa.reg2mem
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%11 = sub i64 %rbx.0.lcssa.reload, %0
%12 = trunc i64 %11 to i32
%13 = add i32 %sv_0.0.lcssa.reload, %12
%14 = mul i32 %13, 8
%15 = and i32 %14, 2040
%16 = zext i32 %15 to i64
%17 = add i64 %16, ptrtoint (i64* @gv_0 to i64)
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = icmp eq i64 %19, 0
%21 = icmp eq i1 %20, false
store i64 %19, i64* %.reg2mem38
store i64* %18, i64** %.reg2mem40
store i64* %18, i64** %.reg2mem42
store i64 %19, i64* %rbx.1.reg2mem
br i1 %21, label LBL_3, label LBL_10
LBL_3:
%.reload39 = load i64, i64* %.reg2mem38
%22 = add i64 %.reload39, 8
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp eq i32 %13, %24
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_9, label LBL_4
LBL_4:
%27 = add i64 %.reload39, 28
%28 = inttoptr i64 %27 to i8*
%29 = call i32 @strcmp(i8* %28, i8* %arg1)
%30 = icmp slt i32 %29, 0
br i1 %30, label LBL_9, label LBL_5
LBL_5:
%.reload41 = load i64*, i64** %.reg2mem40
%31 = icmp eq i32 %29, 0
store i64* %.reload41, i64** %.reg2mem42
store i64 0, i64* %rbx.1.reg2mem
br i1 %31, label LBL_6, label LBL_10
LBL_6:
%32 = inttoptr i64 %.reload39 to i64*
%33 = load i64, i64* %32, align 8
store i64 %33, i64* %.reload41, align 8
%34 = add i64 %.reload39, 16
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = icmp eq i64 %36, 0
br i1 %37, label LBL_8, label LBL_7
LBL_7:
%38 = inttoptr i64 %36 to i64*
call void @free(i64* %38)
br label LBL_8
LBL_8:
call void @free(i64* %32)
store i64* %.reload41, i64** %.reg2mem42
store i64 %.reload39, i64* %rbx.1.reg2mem
br label LBL_10
LBL_9:
%39 = inttoptr i64 %.reload39 to i64*
%40 = load i64, i64* %39, align 8
%41 = icmp eq i64 %40, 0
%42 = icmp eq i1 %41, false
store i64 %40, i64* %.reg2mem38
store i64* %39, i64** %.reg2mem40
store i64* %39, i64** %.reg2mem42
store i64 %40, i64* %rbx.1.reg2mem
br i1 %42, label LBL_3, label LBL_10
LBL_10:
%rbx.1.reload = load i64, i64* %rbx.1.reg2mem
%43 = trunc i64 %arg2 to i32
%44 = icmp eq i32 %43, 0
%45 = icmp eq i1 %44, false
store i64 %rbx.1.reload, i64* %rbx.2.reg2mem
br i1 %45, label LBL_12, label LBL_11
LBL_11:
%.reload43 = load i64*, i64** %.reg2mem42
%sext3 = mul i64 %11, 4294967296
%46 = ashr exact i64 %sext3, 32
%47 = add nsw i64 %46, 32
%48 = call i64 @FUNC(i64 %47)
%49 = load i64, i64* %.reload43, align 8
%50 = inttoptr i64 %48 to i64*
store i64 %49, i64* %50, align 8
store i64 %48, i64* %.reload43, align 8
%51 = add i64 %48, 8
%52 = inttoptr i64 %51 to i32*
store i32 %13, i32* %52, align 4
%53 = add i64 %48, 16
%54 = inttoptr i64 %53 to i64*
store i64 0, i64* %54, align 8
%55 = add i64 %48, 24
%56 = inttoptr i64 %55 to i32*
store i32 0, i32* %56, align 4
%57 = add i64 %48, 28
%58 = inttoptr i64 %57 to i8*
%59 = call i8* @strcpy(i8* %58, i8* %arg1)
store i64 %48, i64* %rbx.2.reg2mem
br label LBL_12
LBL_12:
%rbx.2.reload = load i64, i64* %rbx.2.reg2mem
ret i64 %rbx.2.reload
uselistorder i64 %48, { 0, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %.reload41, { 1, 2, 0 }
uselistorder i64 %.reload39, { 3, 0, 5, 4, 1, 2 }
uselistorder i32 %13, { 1, 2, 0 }
uselistorder i64 %0, { 2, 0, 1 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %rbx.010.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.09.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem38, { 2, 0, 1 }
uselistorder i64** %.reg2mem40, { 2, 0, 1 }
uselistorder i64** %.reg2mem42, { 0, 1, 4, 3, 2 }
uselistorder i64* %rbx.1.reg2mem, { 0, 1, 4, 3, 2 }
uselistorder i64 32, { 1, 0 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i32 0, { 4, 5, 2, 3, 0, 1 }
uselistorder i1 false, { 3, 4, 2, 1, 5, 0 }
uselistorder i8 0, { 2, 0, 1 }
uselistorder i32 1, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i8* %arg1, { 1, 2, 0, 3 }
uselistorder label LBL_10, { 0, 3, 2, 1 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | pci_create_simple_16090 | pci_create_simple | define i64 @FUNC(i32* %arg1, i64 %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i8* %arg3 to i64
%1 = ptrtoint i32* %arg1 to i64
%2 = and i64 %arg2, 4294967295
%3 = call i64 @FUNC(i64 %1, i64 %2, i64 %0)
%4 = add i64 %3, 16
%5 = call i64 @FUNC(i64 %4)
ret i64 %3
} | 1 |
BinRealVul | ext4_max_bitmap_size_8614 | ext4_max_bitmap_size | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%sext = mul i64 %arg1, 4294967296
%0 = ashr exact i64 %sext, 32
%1 = trunc i64 %arg2 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
store i64 281474976710655, i64* %sv_0.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = add nsw i64 %0, 55
%5 = urem i64 %4, 64
%6 = lshr i64 4294967295, %5
store i64 %6, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%7 = add nsw i64 %0, 62
%8 = urem i64 %7, 64
%9 = icmp eq i64 %8, 0
%10 = shl i64 1, %8
%phitmp.op.op = add i64 %10, 2
%11 = select i1 %9, i64 3, i64 %phitmp.op.op
%12 = mul i64 %arg1, 2
%13 = add i64 %12, 60
%14 = and i64 %13, 62
%15 = shl i64 1, %14
%16 = add i64 %10, %15
%17 = add i64 %11, %16
%18 = mul i64 %17, 4294967296
%sext10 = add i64 %18, 4294967296
%19 = ashr exact i64 %sext10, 32
%20 = sub i64 %sv_0.0.reload, %19
%21 = urem i64 %0, 64
%22 = shl i64 %20, %21
%23 = mul nsw i64 %0, 3
%24 = add nsw i64 %23, 58
%25 = urem i64 %24, 64
%26 = shl i64 1, %25
%27 = add i64 %16, 12
%28 = add i64 %27, %26
%29 = shl i64 %28, %21
%30 = icmp sgt i64 %29, %22
%spec.select12 = select i1 %30, i64 %22, i64 %29
ret i64 %spec.select12
uselistorder i64 %29, { 1, 0 }
uselistorder i64 %22, { 1, 0 }
uselistorder i64 %21, { 1, 0 }
uselistorder i64 %16, { 1, 0 }
uselistorder i64 %8, { 1, 0 }
uselistorder i64 %0, { 2, 0, 3, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64 3, { 1, 0 }
uselistorder i64 62, { 1, 0 }
uselistorder i64 4294967296, { 2, 0, 1 }
} | 0 |
BinRealVul | dm_get_from_kobject_5525 | dm_get_from_kobject | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64* nonnull @gv_0)
%2 = call i64 @FUNC(i64 0, i64 %0)
%3 = trunc i64 %2 to i8
%4 = icmp eq i8 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %5, label LBL_3, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %0)
%7 = trunc i64 %6 to i8
%8 = icmp eq i8 %7, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_2, label LBL_3
LBL_2:
%9 = call i64 @FUNC(i64 %0)
store i64 %0, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%10 = call i64 @FUNC(i64* nonnull @gv_0)
ret i64 %sv_0.0.reload
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 0 |
BinRealVul | ksmbd_conn_handler_loop_7843 | ksmbd_conn_handler_loop | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
store i32 0, i32* %sv_0, align 4
%3 = add i64 %2, 24
%4 = call i64 @FUNC(i64 %3)
%5 = load i64, i64* @gv_0, align 8
%6 = call i64 @FUNC(i64 %5)
%7 = icmp eq i64 %5, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = trunc i64 %2 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_23, label LBL_2
LBL_2:
%11 = load i32, i32* @gv_1, align 4
%12 = add i64 %2, 16
%13 = inttoptr i64 %12 to i32*
store i32 %11, i32* %13, align 4
%14 = call i64 @FUNC(i64 %2)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_3, label LBL_23
LBL_3:
%18 = add i64 %2, 8
%19 = inttoptr i64 %18 to i64*
%20 = trunc i64 %2 to i32
%21 = icmp eq i32 %20, 4
%22 = icmp eq i1 %21, false
%23 = add i64 %2, 32
%24 = inttoptr i64 %23 to i64*
%25 = and i64 %2, 4294967295
%26 = icmp slt i32 %20, 0
%27 = icmp eq i1 %26, false
%28 = icmp eq i32 %20, 0
%29 = icmp ult i32 %20, 64
br label LBL_4
LBL_4:
%30 = call i64 @FUNC()
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
br i1 %32, label LBL_5, label LBL_17
LBL_5:
%33 = load i64, i64* %19, align 8
%34 = call i64 @FUNC(i64 %33)
store i64 0, i64* %19, align 8
br i1 %22, label LBL_23, label LBL_6
LBL_6:
%35 = add i64 %33, 8
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = call i64 @FUNC(i32* nonnull %sv_0)
%39 = and i64 %38, 4294967295
%40 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_2, i64 0, i64 0), i64 %39)
%41 = call i64 @FUNC(i64 %2)
%42 = trunc i64 %41 to i32
%43 = icmp eq i32 %42, 0
store i32 65536, i32* %storemerge.reg2mem
br i1 %43, label LBL_8, label LBL_7
LBL_7:
%44 = load i64, i64* %24, align 8
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = add i32 %46, 65536
store i32 %47, i32* %storemerge.reg2mem
br label LBL_8
LBL_8:
%48 = trunc i64 %38 to i32
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%49 = icmp ult i32 %storemerge.reload, %48
br i1 %49, label LBL_9, label LBL_10
LBL_9:
%50 = add i64 %2, 20
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = call i64 @FUNC(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @gv_3, i64 0, i64 0), i64 %39, i32 %storemerge.reload, i32 %52, i64 %37, i64 %1)
br label LBL_23
LBL_10:
%.off = add i32 %48, -4
%54 = icmp ugt i32 %.off, 65532
br i1 %54, label LBL_23, label LBL_11
LBL_11:
%55 = mul i64 %38, 4294967296
%sext = add i64 %55, 21474836480
%56 = ashr exact i64 %sext, 32
%57 = call i64 @FUNC(i64 %56, i64 0)
store i64 %57, i64* %19, align 8
%58 = icmp eq i64 %57, 0
br i1 %58, label LBL_23, label LBL_12
LBL_12:
%59 = load i32, i32* %sv_0, align 4
%60 = inttoptr i64 %57 to i32*
store i32 %59, i32* %60, align 4
%61 = call i64 @FUNC(i64 %2)
%62 = trunc i64 %61 to i32
%63 = icmp eq i32 %62, 0
br i1 %63, label LBL_23, label LBL_13
LBL_13:
%64 = load i64, i64* %19, align 8
br i1 %27, label LBL_15, label LBL_14
LBL_14:
%65 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_4, i64 0, i64 0), i64 %25, i32 %48, i64 2, i64 %64, i64 %1)
br label LBL_23
LBL_15:
%66 = icmp eq i32 %48, %20
br i1 %66, label LBL_18, label LBL_16
LBL_16:
%67 = call i64 @FUNC(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_5, i64 0, i64 0), i64 %25, i32 %48, i64 2, i64 %64, i64 %1)
br label LBL_17
LBL_17:
%68 = call i64 @FUNC(i64 %2)
%69 = trunc i64 %68 to i32
%70 = icmp eq i32 %69, 0
%71 = icmp eq i1 %70, false
br i1 %71, label LBL_4, label LBL_23
LBL_18:
%72 = call i64 @FUNC(i64 %64)
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = icmp eq i32 %74, 1112364031
%or.cond = icmp eq i1 %29, %75
br i1 %or.cond, label LBL_23, label LBL_19
LBL_19:
%76 = load i32, i32* @gv_6, align 4
%77 = icmp eq i32 %76, 0
%78 = icmp eq i1 %77, false
br i1 %78, label LBL_21, label LBL_20
LBL_20:
%79 = add i64 %64, 4
%80 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_7, i64 0, i64 0), i64 %79, i32 %20, i64 2, i64 %64, i64 %1)
br label LBL_23
LBL_21:
br i1 %28, label LBL_17, label LBL_22
LBL_22:
%81 = add i64 %64, 4
%82 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_8, i64 0, i64 0), i64 %81, i32 %76, i64 2, i64 %64, i64 %1)
br label LBL_23
LBL_23:
%83 = call i64 @FUNC(i64 %2)
%84 = add i64 %2, 40
%85 = call i64 @FUNC(i64 %84)
%86 = trunc i64 %85 to i32
%87 = icmp eq i32 %86, 0
%88 = add i64 %2, 64
%89 = inttoptr i64 %88 to i32*
%90 = load i32, i32* %89, align 4
%91 = zext i1 %87 to i64
%92 = zext i32 %90 to i64
%93 = call i64 @FUNC(i64 %92, i64 %91)
%94 = add i64 %2, 48
%95 = inttoptr i64 %94 to i64*
%96 = load i64, i64* %95, align 8
%97 = call i64 @FUNC(i64 %96)
%98 = add i64 %2, 56
%99 = inttoptr i64 %98 to i64*
%100 = load i64, i64* %99, align 8
%101 = call i64 @FUNC(i64 %100)
%102 = load i64, i64* @gv_0, align 8
%103 = call i64 @FUNC(i64 %102)
ret i64 0
uselistorder i64 %64, { 0, 1, 2, 3, 5, 6, 4 }
uselistorder i64 %57, { 1, 0, 2 }
uselistorder i32 %storemerge.reload, { 1, 0 }
uselistorder i32 %48, { 4, 3, 0, 1, 2 }
uselistorder i64 %38, { 0, 2, 1 }
uselistorder i64 %25, { 1, 0 }
uselistorder i32 %20, { 0, 3, 1, 2, 4, 5 }
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64 %2, { 7, 8, 9, 10, 11, 14, 4, 5, 6, 3, 2, 12, 13, 0, 15, 1, 16 }
uselistorder i64 %1, { 4, 3, 2, 1, 0 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 4, { 1, 0 }
uselistorder i64 (i8*, i64, i32, i64, i64, i64)* @pr_err, { 3, 2, 1, 0 }
uselistorder i64 2, { 3, 2, 1, 0 }
uselistorder i32 65536, { 1, 0 }
uselistorder i64 4294967295, { 3, 2, 0, 1 }
uselistorder i64 (i64)* @ksmbd_conn_alive, { 1, 0 }
uselistorder i1 false, { 1, 4, 2, 3, 0, 5 }
uselistorder label LBL_23, { 8, 9, 4, 0, 10, 3, 2, 5, 11, 1, 6, 7 }
uselistorder label LBL_17, { 1, 0, 2 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | scsi_write_request_14139 | scsi_write_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, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i32 50, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = udiv i64 %7, 512
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_5, label LBL_3
LBL_3:
%11 = add i64 %0, -8
%12 = add i64 %0, 24
%13 = call i64 @FUNC(i64 %12, i64 %5, i64 1)
%14 = add i64 %0, 32
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = inttoptr i64 %11 to i64*
%18 = load i64, i64* %17, align 8
%19 = and i64 %8, 4294967295
%20 = call i64 @FUNC(i64 %18, i32 %16, i64 %12, i64 %19, i64 4198743, i64 %0)
store i64 %20, i64* %2, align 8
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
store i64 %20, i64* %rax.0.reg2mem
br i1 %22, label LBL_6, label LBL_4
LBL_4:
%23 = call i64 @FUNC(i64 %0, i64 4294967291)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%24 = call i64 @FUNC(i64 %0, i64 0)
store i64 %24, 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 %8, { 1, 0 }
uselistorder i64 %0, { 2, 0, 1, 3, 4, 6, 5, 7 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64, i64)* @scsi_write_complete, { 1, 0 }
uselistorder i64 1, { 1, 0 }
} | 1 |
BinRealVul | spapr_events_init_15402 | spapr_events_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 0, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %3, i64 0, i64 0, i64 0)
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i64*
store i64 %4, i64* %6, align 8
%7 = add i64 %0, 24
%8 = inttoptr i64 %7 to i64*
store i64 4198662, i64* %8, align 8
%9 = call i64 @FUNC(i64 %7)
%10 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i64 4198722)
%11 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0), i64 4198729)
ret i64 %11
uselistorder i64 (i64, i8*, i64)* @spapr_rtas_register, { 1, 0 }
} | 1 |
BinRealVul | fuse_conn_init_6194 | fuse_conn_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64* @memset(i64* %arg1, i32 0, i32 64)
%2 = call i64 @FUNC(i64 %0)
%3 = add i64 %0, 4
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %3, i64 1)
%6 = add i64 %0, 8
%7 = call i64 @FUNC(i64 %6)
%8 = call i64 @FUNC(i64 %6)
%9 = call i64 @FUNC(i64 %6)
%10 = call i64 @FUNC(i64 %6)
%11 = call i64 @FUNC(i64 %6)
%12 = call i64 @FUNC(i64 %6)
%13 = call i64 @FUNC(i64 %6)
%14 = call i64 @FUNC(i64 %6, i64 0)
%15 = add i64 %0, 12
%16 = inttoptr i64 %15 to i32*
store i32 100, i32* %16, align 4
%17 = add i64 %0, 16
%18 = inttoptr i64 %17 to i32*
store i32 50, i32* %18, align 4
%19 = add i64 %0, 20
%20 = inttoptr i64 %19 to i32*
store i32 0, i32* %20, align 4
%21 = add i64 %0, 24
%22 = inttoptr i64 %21 to i64*
store i64 0, i64* %22, align 8
%23 = add i64 %0, 32
%24 = inttoptr i64 %23 to i32*
store i32 0, i32* %24, align 4
%25 = add i64 %0, 36
%26 = inttoptr i64 %25 to i32*
store i32 0, i32* %26, align 4
%27 = add i64 %0, 40
%28 = inttoptr i64 %27 to i32*
store i32 1, i32* %28, align 4
%29 = add i64 %0, 44
%30 = inttoptr i64 %29 to i32*
store i32 1, i32* %30, align 4
%31 = add i64 %0, 48
%32 = call i64 @FUNC(i64 %31, i64 16)
ret i64 %32
uselistorder i64 (i64)* @INIT_LIST_HEAD, { 2, 1, 0 }
uselistorder i64 (i64)* @init_waitqueue_head, { 1, 0 }
uselistorder i64 (i64, i64)* @atomic_set, { 1, 0 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i32 0, { 3, 4, 5, 0, 1, 2 }
} | 0 |
BinRealVul | tpm_passthrough_unix_write_3458 | tpm_passthrough_unix_write | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.ph13.reg2mem = alloca i64
%sv_1.0.ph15.reg2mem = alloca i64
%sv_0.0.ph16.reg2mem = alloca i64
%.reg2mem = alloca i32
%.lcssa.reg2mem = alloca i32
%sext4 = mul i64 %arg3, 4294967296
%0 = ashr exact i64 %sext4, 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* %sv_0.0.ph13.reg2mem
br i1 %6, label LBL_1, label LBL_8
LBL_1:
%7 = trunc i64 %arg1 to i32
store i32 %1, i32* %.reg2mem
store i64 %0, i64* %sv_0.0.ph16.reg2mem
store i64 %arg2, i64* %sv_1.0.ph15.reg2mem
br label LBL_7
LBL_2:
%8 = call i32* @__errno_location()
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 4
br i1 %10, label LBL_3, label LBL_4
LBL_3:
%11 = call i32 @write(i32 %7, i64* %27, i32 %.reload)
%12 = icmp slt i32 %11, 0
%13 = icmp eq i1 %12, false
store i32 %11, i32* %.lcssa.reg2mem
br i1 %13, label LBL_5, label LBL_2
LBL_4:
%14 = call i32* @__errno_location()
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 11
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %16, label LBL_3, label LBL_9
LBL_5:
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
%17 = icmp eq i32 %.lcssa.reload, 0
store i64 %sv_0.0.ph16.reload, i64* %sv_0.0.ph13.reg2mem
br i1 %17, label LBL_8, label LBL_6
LBL_6:
%18 = sext i32 %.lcssa.reload to i64
%19 = add i64 %sv_1.0.ph15.reload, %18
%20 = sub i32 %.reload, %.lcssa.reload
%21 = sext i32 %20 to i64
%22 = icmp eq i32 %20, 0
%23 = icmp slt i32 %20, 0
%24 = icmp eq i1 %23, false
%25 = icmp eq i1 %22, false
%26 = icmp eq i1 %24, %25
store i32 %20, i32* %.reg2mem
store i64 %21, i64* %sv_0.0.ph16.reg2mem
store i64 %19, i64* %sv_1.0.ph15.reg2mem
store i64 %21, i64* %sv_0.0.ph13.reg2mem
br i1 %26, label LBL_7, label LBL_8
LBL_7:
%sv_1.0.ph15.reload = load i64, i64* %sv_1.0.ph15.reg2mem
%sv_0.0.ph16.reload = load i64, i64* %sv_0.0.ph16.reg2mem
%.reload = load i32, i32* %.reg2mem
%27 = inttoptr i64 %sv_1.0.ph15.reload to i64*
%28 = call i32 @write(i32 %7, i64* %27, i32 %.reload)
%29 = icmp slt i32 %28, 0
%30 = icmp eq i1 %29, false
store i32 %28, i32* %.lcssa.reg2mem
br i1 %30, label LBL_5, label LBL_2
LBL_8:
%sv_0.0.ph13.reload = load i64, i64* %sv_0.0.ph13.reg2mem
%31 = sub nsw i64 %0, %sv_0.0.ph13.reload
%32 = and i64 %31, 4294967295
store i64 %32, i64* %storemerge.reg2mem
br label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %.reload, { 2, 0, 1 }
uselistorder i32 %20, { 0, 2, 1, 3 }
uselistorder i32 %.lcssa.reload, { 1, 0, 2 }
uselistorder i64 %0, { 3, 1, 0, 2 }
uselistorder i32* %.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder i1 false, { 0, 5, 3, 4, 1, 2 }
uselistorder i32 0, { 0, 5, 6, 3, 4, 1, 2 }
uselistorder i32 1, { 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 1, 0, 2 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | mygroup_delete_5272 | mygroup_delete | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
store i64 %3, i64* %storemerge1.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%5 = add i64 %storemerge1.reload, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %storemerge1.reload to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %9, i64 %0)
%11 = add i64 %9, 32
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13)
%15 = add i64 %9, 16
%16 = call i64 @FUNC(i64 %15, i64 %14)
%17 = call i64 @FUNC(i64 %9)
%18 = icmp eq i64 %7, 0
store i64 %7, i64* %storemerge1.reg2mem
br i1 %18, label LBL_2, label LBL_1
LBL_2:
%19 = call i64 @FUNC(i64 %0)
%20 = load i64, i64* @gv_0, align 8
%21 = call i64 @FUNC(i64 %20, i64 %0)
ret i64 %21
uselistorder i64 %0, { 2, 1, 0, 3 }
uselistorder i64* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64, i64)* @node_del, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | iwl_pcie_txq_init_17648 | iwl_pcie_txq_init | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = and i64 %arg4, 4294967295
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i8*
store i8 0, i8* %3, align 1
%4 = and i64 %arg3, 4294967295
%5 = call i64 @FUNC(i64 %0, i64 %4, i64 %1)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = and i64 %5, 4294967295
store i64 %8, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%9 = ptrtoint i64* %arg1 to i64
%10 = add i64 %0, 12
%11 = call i64 @FUNC(i64 %10)
%12 = udiv i64 %4, 256
%13 = mul i64 %arg4, 4
%14 = add i64 %13, 4096
%15 = and i64 %14, 4294967292
%16 = call i64 @FUNC(i64 %9, i64 %15, i64 %12)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | check_vim9_unlet_5636 | check_vim9_unlet | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = load i64, i64* bitcast ([2 x i8*]* @gv_0 to i64*), align 8
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%8 = ptrtoint i64* %arg1 to i64
%9 = add i64 %8, 1
%10 = inttoptr i64 %9 to i8*
%11 = load i8, i8* %10, align 1
%12 = icmp eq i8 %11, 58
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = urem i64 %1, 256
%15 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64 %14)
%16 = icmp eq i64 %15, 0
%17 = icmp eq i1 %16, false
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_7, label LBL_4
LBL_4:
%18 = icmp eq i8 %2, 115
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = call i64 @FUNC()
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
store i64 0, i64* %rax.0.reg2mem
br i1 %23, label LBL_6, label LBL_7
LBL_6:
%24 = load [18 x i8]*, [18 x i8]** @gv_3, align 8
%25 = ptrtoint [18 x i8]* %24 to i64
%26 = call i64 @FUNC(i64 %25)
%27 = bitcast i64* %arg1 to i8*
%28 = call i64 @FUNC(i64 %26, i8* %27)
store i64 4294967295, 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 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3 }
uselistorder i64 (i64, i8*)* @semsg, { 1, 0 }
uselistorder i64 (i64)* @_, { 1, 0 }
uselistorder i32 0, { 4, 0, 1, 2, 3 }
uselistorder label LBL_7, { 2, 1, 0, 3 }
} | 0 |
BinRealVul | reset_6975 | reset | define i64 @FUNC() local_unnamed_addr {
LBL_0:
store i8 0, i8* bitcast (i64* @gv_0 to i8*), align 8
ret i64 0
} | 0 |
BinRealVul | llc_cmsg_rcv_11330 | llc_cmsg_rcv | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = and i32 %3, 2
%5 = icmp eq i32 %4, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64 %0)
%8 = add i64 %7, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
store i32 %12, i32* %sv_2, align 4
%13 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1)
%14 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0)
%15 = call i64 @FUNC(i64 %6, i64 0, i64 1, i64 44, i32* nonnull %sv_2)
store i64 %15, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i64 (i64)* @llc_sk, { 1, 0 }
} | 1 |
BinRealVul | ofputil_port_from_ofp11_9242 | ofputil_port_from_ofp11 | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%1 = call i32 @ntohl(i32 %0)
%2 = call i64 @FUNC(i64 255)
%3 = trunc i64 %2 to i32
%4 = icmp ult i32 %1, %3
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = zext i32 %1 to i64
%7 = call i64 @FUNC(i64 %6)
%8 = trunc i64 %7 to i16
%9 = bitcast i64* %arg2 to i16*
store i16 %8, i16* %9, align 2
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%10 = call i64 @FUNC(i64 16777215)
%11 = trunc i64 %10 to i32
%12 = icmp ult i32 %1, %11
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = add i32 %1, -65536
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %14)
%16 = trunc i64 %15 to i16
%17 = bitcast i64* %arg2 to i16*
store i16 %16, i16* %17, align 2
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%18 = bitcast i64* %arg2 to i16*
store i16 -1, i16* %18, align 2
%19 = call i64 @FUNC(i64 16777215)
%20 = call i64 @FUNC(i64 255)
%21 = add i64 %20, 4294967295
%22 = and i64 %19, 4294967295
%23 = and i64 %21, 4294967295
%24 = zext i32 %1 to i64
%25 = call i64 @FUNC(i64* nonnull @gv_0, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @gv_1, i64 0, i64 0), i64 %24, i64 %23, i64 %22, i64 4294967295)
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 i32 %1, { 1, 3, 2, 0, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64)* @ofp11_to_u32, { 1, 0 }
uselistorder i64 (i64)* @u16_to_ofp, { 1, 0 }
uselistorder i64 (i64)* @ofp_to_u16, { 1, 0 }
} | 0 |
BinRealVul | ff_audio_mix_init_108 | ff_audio_mix_init | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%.reg2mem21 = alloca i64
%.pre-phi8.reg2mem = alloca i32*
%.pre-phi12.reg2mem = alloca i32*
%.pre-phi16.reg2mem = alloca i32*
%.pre-phi20.reg2mem = alloca i32*
%storemerge4.reg2mem = alloca i32
%storemerge23.reg2mem = alloca i32
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%4 = trunc i64 %3 to i32
%.off = add i32 %4, -1
%switch = icmp ult i32 %.off, 2
br i1 %switch, label LBL_2, label LBL_1
LBL_1:
%5 = and i64 %3, 4294967295
%6 = call i64 @FUNC(i64 %5)
%7 = ptrtoint i32* %arg1 to i64
%8 = call i64 @FUNC(i64 %7, i64 0, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_0, i64 0, i64 0), i64 %6, i64 %2, i64 %1)
store i64 4294967274, i64* %rax.0.shrunk.reg2mem
br label LBL_14
LBL_2:
%9 = ptrtoint i32* %arg1 to i64
%10 = add i64 %9, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = add i64 %12, 24
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_2.LBL_13_crit_edge, label LBL_4
LBL_3:
%.pre6 = add i64 %9, 16
%.pre7 = inttoptr i64 %.pre6 to i32*
%.pre9 = add i64 %9, 20
%.pre11 = inttoptr i64 %.pre9 to i32*
%.pre13 = add i64 %9, 48
%.pre15 = inttoptr i64 %.pre13 to i32*
%.pre17 = add i64 %9, 52
%.pre19 = inttoptr i64 %.pre17 to i32*
store i32* %.pre19, i32** %.pre-phi20.reg2mem
store i32* %.pre15, i32** %.pre-phi16.reg2mem
store i32* %.pre11, i32** %.pre-phi12.reg2mem
store i32* %.pre7, i32** %.pre-phi8.reg2mem
store i64 %12, i64* %.reg2mem21
br label LBL_13
LBL_4:
%18 = add i64 %9, 52
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i64 %9, 48
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = mul i32 %23, %20
%25 = sext i32 %24 to i64
%26 = mul i64 %25, 8
%27 = call i64 @FUNC(i64 %26)
%28 = icmp eq i64 %27, 0
%29 = icmp eq i1 %28, false
store i64 4294967284, i64* %rax.0.shrunk.reg2mem
br i1 %29, label LBL_5, label LBL_14
LBL_5:
%30 = add i64 %9, 56
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = load i32, i32* %22, align 4
%34 = add i64 %9, 40
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = call i128 @__asm_movsd.1(i64 %36)
%38 = add i64 %9, 32
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = call i128 @__asm_movsd.1(i64 %40)
%42 = add i64 %9, 24
%43 = inttoptr i64 %42 to i64*
%44 = load i64, i64* %43, align 8
%45 = add i64 %9, 20
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = zext i32 %47 to i64
%49 = add i64 %9, 16
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = zext i32 %32 to i64
%53 = zext i32 %33 to i64
%54 = call i128 @FUNC(i128 %37)
%55 = call i128 @FUNC(i128 %41)
%56 = call i128 @FUNC(i64 %44)
%57 = zext i32 %51 to i64
%58 = call i64 @FUNC(i64 %57, i64 %48, i64 1, i64 %27, i64 %53, i64 %52)
%59 = trunc i64 %58 to i32
%60 = icmp slt i32 %59, 0
%61 = icmp eq i1 %60, false
br i1 %61, label LBL_7, label LBL_6
LBL_6:
%62 = call i64 @FUNC(i64 %27)
store i64 %58, i64* %rax.0.shrunk.reg2mem
br label LBL_14
LBL_7:
%63 = load i32, i32* %50, align 4
%64 = load i32, i32* %22, align 4
%65 = call i64 @FUNC(i64* nonnull %sv_1, i64 128, i32 %64, i32 %63)
%66 = load i32, i32* %46, align 4
%67 = load i32, i32* %19, align 4
%68 = call i64 @FUNC(i64* nonnull %sv_0, i64 128, i32 %67, i32 %66)
%69 = ptrtoint i64* %sv_0 to i64
%70 = ptrtoint i64* %sv_1 to i64
%71 = call i64 @FUNC(i64 %9, i64 1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0), i64 %70, i64 %69, i64 %52)
%72 = load i32, i32* %19, align 4
%73 = icmp eq i32 %72, 0
store i32 0, i32* %storemerge4.reg2mem
br i1 %73, label LBL_11, label LBL_10
LBL_8:
%storemerge23.reload = load i32, i32* %storemerge23.reg2mem
%.reload = load i32, i32* %.reg2mem
%74 = mul i32 %.reload, %storemerge4.reload
%75 = add i32 %74, %storemerge23.reload
%76 = sext i32 %75 to i64
%77 = mul i64 %76, 8
%78 = add i64 %77, %27
%79 = inttoptr i64 %78 to i64*
%80 = load i64, i64* %79, align 8
%81 = call i128 @FUNC(i64 %80)
%82 = call i64 @FUNC(i64 %9, i64 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0), i64 %70, i64 %69, i64 %52)
%83 = add i32 %storemerge23.reload, 1
%84 = load i32, i32* %22, align 4
%85 = zext i32 %84 to i64
%86 = sext i32 %83 to i64
%87 = icmp slt i64 %86, %85
store i32 %84, i32* %.reg2mem
store i32 %83, i32* %storemerge23.reg2mem
br i1 %87, label LBL_8, label LBL_9
LBL_9:
%88 = call i64 @FUNC(i64 %9, i64 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_3, i64 0, i64 0), i64 %70, i64 %69, i64 %52)
%89 = add i32 %storemerge4.reload, 1
%90 = load i32, i32* %19, align 4
%91 = zext i32 %90 to i64
%92 = sext i32 %89 to i64
%93 = icmp slt i64 %92, %91
store i32 %89, i32* %storemerge4.reg2mem
br i1 %93, label LBL_10, label LBL_11
LBL_10:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%94 = load i32, i32* %22, align 4
%95 = icmp eq i32 %94, 0
store i32 %94, i32* %.reg2mem
store i32 0, i32* %storemerge23.reg2mem
br i1 %95, label LBL_9, label LBL_8
LBL_11:
%96 = load i32, i32* %22, align 4
%97 = call i64 @FUNC(i64 %9, i64 %27, i32 %96)
%98 = trunc i64 %97 to i32
%99 = icmp slt i32 %98, 0
%100 = icmp eq i1 %99, false
%101 = call i64 @FUNC(i64 %27)
store i64 %97, i64* %rax.0.shrunk.reg2mem
br i1 %100, label LBL_11.LBL_13_crit_edge, label LBL_14
LBL_12:
%.pre = load i64, i64* %11, align 8
store i32* %19, i32** %.pre-phi20.reg2mem
store i32* %22, i32** %.pre-phi16.reg2mem
store i32* %46, i32** %.pre-phi12.reg2mem
store i32* %50, i32** %.pre-phi8.reg2mem
store i64 %.pre, i64* %.reg2mem21
br label LBL_13
LBL_13:
%.reload22 = load i64, i64* %.reg2mem21
%.pre-phi8.reload = load i32*, i32** %.pre-phi8.reg2mem
%.pre-phi12.reload = load i32*, i32** %.pre-phi12.reg2mem
%.pre-phi16.reload = load i32*, i32** %.pre-phi16.reg2mem
%.pre-phi20.reload = load i32*, i32** %.pre-phi20.reg2mem
%102 = inttoptr i64 %.reload22 to i32*
store i32 %4, i32* %102, align 4
%103 = load i64, i64* %11, align 8
%104 = add i64 %9, 60
%105 = inttoptr i64 %104 to i32*
%106 = load i32, i32* %105, align 4
%107 = add i64 %103, 4
%108 = inttoptr i64 %107 to i32*
store i32 %106, i32* %108, align 4
%109 = load i64, i64* %11, align 8
%110 = load i32, i32* %.pre-phi8.reload, align 4
%111 = add i64 %109, 8
%112 = inttoptr i64 %111 to i32*
store i32 %110, i32* %112, align 4
%113 = load i64, i64* %11, align 8
%114 = load i32, i32* %.pre-phi12.reload, align 4
%115 = add i64 %113, 12
%116 = inttoptr i64 %115 to i32*
store i32 %114, i32* %116, align 4
%117 = load i64, i64* %11, align 8
%118 = load i32, i32* %.pre-phi16.reload, align 4
%119 = add i64 %117, 16
%120 = inttoptr i64 %119 to i32*
store i32 %118, i32* %120, align 4
%121 = load i64, i64* %11, align 8
%122 = load i32, i32* %.pre-phi20.reload, align 4
%123 = add i64 %121, 20
%124 = inttoptr i64 %123 to i32*
store i32 %122, i32* %124, align 4
%125 = load i64, i64* %11, align 8
%126 = call i64 @FUNC(i64 %125)
%127 = trunc i64 %126 to i32
%128 = icmp slt i32 %127, 0
%129 = icmp eq i1 %128, false
%. = select i1 %129, i64 0, i64 %126
store i64 %., i64* %rax.0.shrunk.reg2mem
br label LBL_14
LBL_14:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i32 %storemerge4.reload, { 1, 0 }
uselistorder i32 %storemerge23.reload, { 1, 0 }
uselistorder i64 %27, { 2, 3, 0, 1, 4, 5 }
uselistorder i32* %22, { 0, 2, 1, 3, 4, 5, 6 }
uselistorder i32* %19, { 0, 2, 1, 3, 4 }
uselistorder i64* %11, { 1, 2, 3, 4, 5, 6, 0, 7 }
uselistorder i64 %9, { 14, 6, 4, 5, 7, 10, 9, 8, 11, 13, 12, 15, 16, 0, 1, 2, 3, 17 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 2, 0 }
uselistorder i32* %storemerge23.reg2mem, { 1, 2, 0 }
uselistorder i32* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 1, 2, 5, 3, 4 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64*, i64, i32, i32)* @av_get_channel_layout_string, { 1, 0 }
uselistorder i64 (i64)* @av_free, { 1, 0 }
uselistorder i64 52, { 1, 0 }
uselistorder i64 48, { 1, 0 }
uselistorder i64 20, { 1, 2, 0 }
uselistorder i64 16, { 1, 2, 0 }
uselistorder i32 0, { 4, 5, 1, 2, 0, 3, 6, 7 }
uselistorder i64 8, { 2, 0, 1, 3 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 3, 1, 0 }
uselistorder i32* %arg1, { 1, 0 }
uselistorder label LBL_14, { 0, 1, 3, 2, 4 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | gdImageHLine_10755 | gdImageHLine | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.lcssa.in.reg2mem = alloca i64
%sv_0.011.reg2mem = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%sext = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext, 32
%sext4 = mul i64 %arg3, 4294967296
%3 = ashr exact i64 %sext4, 32
%sext5 = mul i64 %arg4, 4294967296
%4 = ashr exact i64 %sext5, 32
%sext6 = mul i64 %arg5, 4294967296
%5 = ashr exact i64 %sext6, 32
%6 = trunc i64 %1 to i32
%7 = icmp slt i32 %6, 2
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = udiv i32 %6, 2
%9 = trunc i64 %2 to i32
%10 = add i32 %6, %9
%11 = sub i32 0, %8
%12 = sub i32 %11, 1
%13 = add i32 %10, %12
%14 = zext i32 %13 to i64
%15 = sub i32 %9, %8
%16 = zext i32 %15 to i64
%17 = trunc i64 %4 to i32
%18 = trunc i64 %3 to i32
%19 = and i64 %5, 4294967295
%20 = call i64 @FUNC(i64 %arg1, i32 %18, i64 %16, i32 %17, i64 %14, i64 %19)
store i64 %20, i64* %rax.0.reg2mem
br label LBL_6
LBL_2:
%21 = trunc i64 %4 to i32
%22 = trunc i64 %3 to i32
%23 = icmp slt i32 %21, %22
%spec.select = select i1 %23, i64 %4, i64 %3
%spec.select10 = select i1 %23, i64 %3, i64 %4
%24 = trunc i64 %spec.select10 to i32
%25 = trunc i64 %spec.select to i32
%26 = icmp sgt i32 %25, %24
store i64 %spec.select, i64* %.lcssa.in.reg2mem
br i1 %26, label LBL_5, label LBL_3
LBL_3:
%27 = and i64 %5, 4294967295
%28 = trunc i64 %2 to i32
store i32 %25, i32* %.reg2mem
store i64 %spec.select, i64* %sv_0.011.reg2mem
br label LBL_4
LBL_4:
%sv_0.011.reload = load i64, i64* %sv_0.011.reg2mem
%.reload = load i32, i32* %.reg2mem
%29 = call i64 @FUNC(i64 %arg1, i32 %.reload, i32 %28, i64 %27)
%30 = mul i64 %sv_0.011.reload, 4294967296
%sext9 = add i64 %30, 4294967296
%31 = ashr exact i64 %sext9, 32
%32 = trunc i64 %31 to i32
%33 = icmp sgt i32 %32, %24
store i32 %32, i32* %.reg2mem
store i64 %31, i64* %sv_0.011.reg2mem
store i64 %31, i64* %.lcssa.in.reg2mem
br i1 %33, label LBL_5, label LBL_4
LBL_5:
%.lcssa.in.reload = load i64, i64* %.lcssa.in.reg2mem
%.lcssa = and i64 %.lcssa.in.reload, 4294967295
store i64 %.lcssa, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %24, { 1, 0 }
uselistorder i64 %spec.select, { 1, 0, 2 }
uselistorder i32 %9, { 1, 0 }
uselistorder i32 %8, { 1, 0 }
uselistorder i32 %6, { 1, 0, 2 }
uselistorder i64 %4, { 0, 1, 3, 2 }
uselistorder i64 %3, { 0, 1, 3, 2 }
uselistorder i64 %2, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.011.reg2mem, { 1, 0, 2 }
uselistorder i64 4294967296, { 5, 0, 1, 2, 3, 4 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | queue_lock_6249 | queue_lock | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
store i64 %1, i64* %arg1, align 8
%2 = call i64 @FUNC(i64 %1)
ret i64 %1
} | 0 |
BinRealVul | cpu_reset_2258 | cpu_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64 1)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = and i64 %3, 4294967295
%11 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %10, i64 %4, i64 %5, i64 %2, i64 %1)
%12 = call i64 @FUNC(i64 %6, i64 0)
br label LBL_2
LBL_2:
%13 = add i64 %6, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = call i64* @memset(i64* %arg1, i32 0, i32 204)
%17 = icmp eq i32 %15, 0
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = zext i32 %15 to i64
%19 = call i64 @FUNC(i64 %6, i64 %18)
br label LBL_4
LBL_4:
%20 = add i64 %6, 244
%21 = inttoptr i64 %20 to i32*
store i32 115, i32* %21, align 4
%22 = add i64 %6, 12
%23 = inttoptr i64 %22 to i32*
store i32 0, i32* %23, align 4
%24 = add i64 %6, 8
%25 = inttoptr i64 %24 to i32*
store i32 -16384, i32* %25, align 4
%26 = add i64 %6, 200
%27 = inttoptr i64 %26 to i32*
store i32 0, i32* %27, align 4
%28 = call i64 @FUNC(i64 %6, i64 1)
ret i64 %28
uselistorder i64 %6, { 2, 3, 4, 5, 6, 1, 7, 0 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i32 0, { 1, 2, 3, 0, 4 }
} | 0 |
BinRealVul | os_set_proc_name_17670 | os_set_proc_name | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%3 = icmp eq i64 %arg1, 0
br i1 %3, label LBL_4, label LBL_1
LBL_1:
%4 = bitcast i64* %sv_0 to i8*
%5 = inttoptr i64 %arg1 to i8*
%6 = call i8* @strncpy(i8* nonnull %4, i8* %5, i32 16)
%7 = ptrtoint i64* %sv_0 to i64
%8 = trunc i64 %7 to i32
%9 = trunc i64 %arg1 to i32
%10 = trunc i64 %1 to i32
%11 = call i32 @prctl(i32 15, i32 %8, i32 16, i32 %9, i32 %10)
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_3, label LBL_2
LBL_2:
call void @perror(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_3:
%13 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%14 = call i32 @fwrite(i64* bitcast ([49 x i8]* @gv_2 to i64*), i32 1, i32 48, %_IO_FILE* %13)
call void @exit(i32 1)
unreachable
LBL_4:
ret i64 %2
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder void (i32)* @exit, { 1, 0 }
uselistorder i32 1, { 1, 2, 3, 4, 0 }
} | 1 |
BinRealVul | vidioc_s_register_18374 | vidioc_s_register | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg3 to i64
%3 = ptrtoint i64* %arg2 to i64
%4 = add i64 %2, 4
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = and i64 %1, 4294967295
%8 = call i64 @FUNC(i64 %3, i64 %7, i32 %6)
ret i64 0
} | 1 |
BinRealVul | ext4_fiemap_11603 | ext4_fiemap | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge5.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 1)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
%7 = ptrtoint i32* %arg2 to i64
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %2, i64 %7, i64 %arg3, i64 %arg4, i64 4198825)
store i64 %8, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%9 = call i64 @FUNC(i64 %7, i64 1)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_7
LBL_3:
%12 = urem i64 %1, 2
%13 = icmp eq i64 %12, 0
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = call i64 @FUNC(i64 %2, i64 %7)
store i64 %14, i64* %storemerge5.in.reg2mem
br label LBL_6
LBL_5:
%15 = urem i64 %7, 64
%storemerge = lshr i64 %arg3, %15
%16 = add i64 %arg3, -1
%17 = add i64 %16, %arg4
%rdx.0 = lshr i64 %17, %15
%18 = trunc i64 %rdx.0 to i32
%19 = icmp ult i64 %rdx.0, 1024
%spec.select = select i1 %19, i32 %18, i32 1023
%20 = trunc i64 %storemerge to i32
%21 = sub i32 1, %20
%22 = add i32 %21, %spec.select
%23 = call i64 @FUNC(i64 %2, i32 %20, i32 %22, i64 4198814, i64 %7)
store i64 %23, i64* %storemerge5.in.reg2mem
br label LBL_6
LBL_6:
%storemerge5.in.reload = load i64, i64* %storemerge5.in.reg2mem
%24 = and i64 %storemerge5.in.reload, 4294967295
store i64 %24, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %20, { 1, 0 }
uselistorder i64 %rdx.0, { 1, 0 }
uselistorder i64 %7, { 2, 0, 1, 4, 3 }
uselistorder i64 %2, { 2, 1, 0, 3 }
uselistorder i64* %storemerge5.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_7, { 1, 0, 2 }
} | 1 |
BinRealVul | get_alen_11894 | get_alen | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
store i32 0, i32* %storemerge2.reg2mem
br label LBL_1
LBL_1:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%2 = sext i32 %storemerge2.reload to i64
%3 = add i64 %2, %0
%4 = inttoptr i64 %3 to i8*
%5 = load i8, i8* %4, align 1
%6 = icmp eq i8 %5, 46
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = add i64 %3, 1
%9 = inttoptr i64 %8 to i8*
%10 = load i8, i8* %9, align 1
%11 = sext i8 %10 to i64
%12 = add nsw i64 %11, -48
store i64 %12, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_3:
%13 = icmp ne i8 %5, 0
%14 = add nuw i32 %storemerge2.reload, 1
%15 = icmp ult i32 %14, 8
%or.cond = icmp eq i1 %13, %15
store i32 %14, i32* %storemerge2.reg2mem
store i64 %1, i64* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%16 = and i64 %sv_0.0.reload, 4294967295
ret i64 %16
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
} | 1 |
BinRealVul | nfc_disable_se_12005 | nfc_disable_se | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i32* %arg1 to i64
%5 = and i64 %arg2, 4294967295
%6 = add i64 %4, 16
%7 = call i64 @FUNC(i64 %6)
%8 = call i64 @FUNC(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i64 %7, i64 %5, i64 %7, i64 %2, i64 %1)
%9 = call i64 @FUNC(i64 %6)
%10 = call i64 @FUNC(i64 %6)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 4294967277, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_1, label LBL_8
LBL_1:
%14 = trunc i64 %3 to i32
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
store i64 4294967277, i64* %sv_0.0.reg2mem
br i1 %16, label LBL_2, label LBL_8
LBL_2:
%17 = add i64 %4, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = icmp eq i64 %21, 0
store i64 4294967201, i64* %sv_0.0.reg2mem
br i1 %22, label LBL_8, label LBL_3
LBL_3:
%23 = add i64 %19, 8
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = icmp eq i64 %25, 0
%27 = icmp eq i1 %26, false
store i64 4294967201, i64* %sv_0.0.reg2mem
br i1 %27, label LBL_4, label LBL_8
LBL_4:
%28 = call i64 @FUNC(i64 %4, i64 %5)
%29 = icmp eq i64 %28, 0
%30 = icmp eq i1 %29, false
store i64 4294967274, i64* %sv_0.0.reg2mem
br i1 %30, label LBL_5, label LBL_8
LBL_5:
%31 = inttoptr i64 %28 to i32*
%32 = load i32, i32* %31, align 4
%33 = icmp eq i32 %32, 0
%34 = icmp eq i1 %33, false
store i64 4294967182, i64* %sv_0.0.reg2mem
br i1 %34, label LBL_6, label LBL_8
LBL_6:
%35 = trunc i64 %4 to i32
%36 = icmp slt i32 %35, 0
store i64 %4, i64* %sv_0.0.reg2mem
br i1 %36, label LBL_8, label LBL_7
LBL_7:
store i32 0, i32* %31, align 4
store i64 %4, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%37 = call i64 @FUNC(i64 %6)
%38 = and i64 %sv_0.0.reload, 4294967295
ret i64 %38
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 0, 1, 2, 4, 3, 5 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 7, 8, 1, 2, 4, 3, 5, 6 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 4294967201, { 1, 0 }
uselistorder label LBL_8, { 7, 6, 0, 1, 3, 2, 4, 5 }
} | 1 |
BinRealVul | buffered_rate_limit_327 | buffered_rate_limit | 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 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = and i64 %1, 4294967295
store i64 %4, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i64 %0, 12
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp uge i32 %7, %10
%. = zext i1 %11 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 %0, { 1, 0, 2 }
} | 0 |
BinRealVul | pci_up_read_16524 | pci_up_read | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i32 %2)
%4 = and i64 %1, 4294967295
ret i64 %4
uselistorder i64 %1, { 1, 0 }
} | 1 |
BinRealVul | tty_add_file_10003 | tty_add_file | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
store i64 %1, i64* %arg2, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
store i64 %0, i64* %3, align 8
%4 = call i64 @FUNC(i64* nonnull @gv_0)
%5 = add i64 %0, 16
%6 = call i64 @FUNC(i64 %5, i64 %1)
%7 = call i64 @FUNC(i64* nonnull @gv_0)
ret i64 %7
uselistorder i64 %0, { 1, 0, 2 }
} | 0 |
BinRealVul | vq_endchains_19095 | vq_endchains | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%sv_0.0.shrunk.reg2mem = alloca i1
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = call i64 @FUNC()
%3 = add i64 %0, 24
%4 = inttoptr i64 %3 to i16*
%5 = load i16, i16* %4, align 2
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i16*
%10 = load i16, i16* %9, align 2
store i16 %10, i16* %4, align 2
%11 = icmp eq i32 %1, 0
%.phi.trans.insert = bitcast i64* %rdi to i32*
%.pre = load i32, i32* %.phi.trans.insert, align 8
%12 = urem i32 %.pre, 2
%13 = icmp eq i32 %12, 0
%or.cond = or i1 %11, %13
br i1 %or.cond, label LBL_1, label LBL_5
LBL_1:
%14 = and i32 %.pre, 2
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = call i64 @FUNC(i64 %0)
%17 = trunc i64 %16 to i16
%18 = sub i16 0, %17
%19 = sub i16 %18, 1
%20 = add i16 %10, %19
%21 = sub i16 %10, %5
%22 = icmp ult i16 %20, %21
store i1 %22, i1* %sv_0.0.shrunk.reg2mem
br label LBL_4
LBL_3:
%23 = icmp eq i16 %10, %5
%24 = icmp eq i1 %23, false
store i1 %24, i1* %sv_0.0.shrunk.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.shrunk.reload = load i1, i1* %sv_0.0.shrunk.reg2mem
%25 = icmp eq i1 %sv_0.0.shrunk.reload, false
store i64 0, i64* %rax.1.reg2mem
br i1 %25, label LBL_6, label LBL_5
LBL_5:
%26 = call i64 @FUNC(i64 %0, i64 %0)
store i64 %26, i64* %rax.1.reg2mem
br label LBL_6
LBL_6:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32 %.pre, { 1, 0 }
uselistorder i16 %10, { 2, 1, 0, 3 }
uselistorder i16 %5, { 1, 0 }
uselistorder i64 %0, { 2, 1, 0, 3, 4 }
uselistorder i1* %sv_0.0.shrunk.reg2mem, { 0, 2, 1 }
uselistorder i32 2, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | ath_beacon_config_adhoc_17768 | ath_beacon_config_adhoc | define i64 @FUNC(i64* %arg1, i32* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = urem i32 %3, 65536
%5 = udiv i64 %2, 4294967296
%6 = and i64 %2, 4294967295
%7 = call i64 @FUNC(i64 %5, i64 %6)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i32 %4, i32* %sv_0.0.reg2mem
br i1 %10, label LBL_1, label LBL_3
LBL_1:
%11 = icmp eq i32 %4, 0
store i32 %8, i32* %sv_0.0.reg2mem
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = zext i32 %4 to i64
%13 = and i64 %7, 4294967295
%14 = call i64 @FUNC(i64 %13, i64 %12)
%15 = trunc i64 %14 to i32
store i32 %15, i32* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%16 = add i64 %2, 24
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18)
%20 = udiv i64 %19, 4294967296
%21 = and i64 %19, 4294967295
%22 = call i64 @FUNC(i64 %20, i64 %21)
%23 = trunc i64 %22 to i32
%24 = add i32 %23, 1
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_4
LBL_4:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%25 = add i32 %sv_0.1.reload, %4
%26 = icmp ult i32 %25, %24
store i32 %25, i32* %sv_0.1.reg2mem
br i1 %26, label LBL_4, label LBL_5
LBL_5:
%27 = and i64 %1, 4294967295
%28 = zext i32 %4 to i64
%29 = zext i32 %25 to i64
%30 = call i64 @FUNC(i64 %2, i64 1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_0, i64 0, i64 0), i64 %29, i64 %28, i64 %27)
%31 = load i64, i64* %17, align 8
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = urem i32 %33, 2
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
%.pre = add i64 %2, 16
%.pre3 = inttoptr i64 %.pre to i32*
br i1 %36, label LBL_7, label LBL_6
LBL_6:
%37 = load i32, i32* %.pre3, align 4
%38 = or i32 %37, 2
store i32 %38, i32* %.pre3, align 4
br label LBL_7
LBL_7:
%39 = or i32 %4, 1
%40 = call i64 @FUNC(i64 %2)
%41 = load i64, i64* %17, align 8
%42 = call i64 @FUNC(i64 %41, i64 0)
%43 = load i64, i64* %17, align 8
%44 = call i64 @FUNC(i64 %43, i64 %29, i32 %39)
%45 = add i64 %2, 8
%46 = inttoptr i64 %45 to i32*
store i32 0, i32* %46, align 4
%47 = load i32, i32* %.pre3, align 4
%48 = load i64, i64* %17, align 8
%49 = zext i32 %47 to i64
%50 = call i64 @FUNC(i64 %48, i64 %49)
%51 = icmp eq i32* %arg3, null
store i64 %50, i64* %rax.0.reg2mem
br i1 %51, label LBL_10, label LBL_8
LBL_8:
%52 = load i64, i64* %17, align 8
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = urem i32 %54, 2
%56 = icmp eq i32 %55, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %56, label LBL_10, label LBL_9
LBL_9:
%57 = ptrtoint i32* %arg3 to i64
%58 = call i64 @FUNC(i64 %2, i64 %57)
store i64 %58, 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* %.pre3, { 0, 2, 1 }
uselistorder i32 %25, { 1, 0, 2 }
uselistorder i64 %19, { 1, 0 }
uselistorder i64* %17, { 0, 1, 3, 2, 4, 5 }
uselistorder i32 %4, { 4, 3, 5, 1, 2, 0 }
uselistorder i64 %2, { 2, 3, 4, 1, 5, 6, 7, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i64)* @ath9k_hw_set_interrupts, { 1, 0 }
uselistorder i32 2, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @TSF_TO_TU, { 1, 0 }
uselistorder i64 4294967295, { 0, 2, 1, 3, 4 }
uselistorder i64 4294967296, { 1, 2, 0 }
uselistorder i32 65536, { 1, 2, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_3, { 1, 2, 0 }
} | 1 |
BinRealVul | vmw_user_surface_base_release_18491 | vmw_user_surface_base_release | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 %0, i64* %sv_0, align 8
store i64 0, i64* %arg1, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64* nonnull %sv_0)
ret i64 %2
} | 1 |
BinRealVul | gen_muls_i64_i32_15030 | gen_muls_i64_i32 | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = call i64 @FUNC()
%2 = call i64 @FUNC()
%3 = call i64 @FUNC()
%4 = call i64 @FUNC()
%5 = call i64 @FUNC()
%6 = call i64 @FUNC()
%7 = call i64 @FUNC()
ret i64 %7
uselistorder i64 ()* @dead_tmp, { 1, 0 }
uselistorder i64 ()* @tcg_gen_ext_i32_i64, { 1, 0 }
uselistorder i64 ()* @tcg_temp_new_i64, { 1, 0 }
} | 1 |
BinRealVul | mov_seek_fragment_3164 | mov_seek_fragment | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge2.in.reg2mem = alloca i32
%storemerge3.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_10
LBL_1:
%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
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_10, label LBL_2
LBL_2:
%11 = trunc i64 %2 to i32
%12 = add i64 %6, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = zext i32 %9 to i64
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge3.reg2mem
br label LBL_3
LBL_3:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload = load i64, i64* %.reg2mem
%16 = mul i64 %.reload, 8
%17 = add i64 %16, %14
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, %11
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_9, label LBL_4
LBL_4:
%24 = add i64 %19, 4
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = add i64 %19, 8
%28 = inttoptr i64 %27 to i64*
store i32 %26, i32* %storemerge2.in.reg2mem
br label LBL_8
LBL_5:
%29 = load i64, i64* %28, align 8
%30 = sext i32 %storemerge2 to i64
%31 = mul nsw i64 %30, 24
%32 = add i64 %29, %31
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = icmp sgt i64 %34, %arg3
store i32 %storemerge2, i32* %storemerge2.in.reg2mem
br i1 %35, label LBL_8, label LBL_6
LBL_6:
%36 = add i64 %32, 8
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = icmp eq i32 %38, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %39, label LBL_7, label LBL_10
LBL_7:
%40 = add i64 %32, 16
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = call i64 @FUNC(i64 %6, i64 %42)
store i64 %43, i64* %rax.0.reg2mem
br label LBL_10
LBL_8:
%storemerge2.in.reload = load i32, i32* %storemerge2.in.reg2mem
%storemerge2 = add i32 %storemerge2.in.reload, -1
%44 = icmp slt i32 %storemerge2, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_5, label LBL_9
LBL_9:
%46 = add i32 %storemerge3.reload, 1
%47 = sext i32 %46 to i64
%48 = icmp slt i64 %47, %15
store i64 %47, i64* %.reg2mem
store i32 %46, i32* %storemerge3.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %48, label LBL_3, label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %storemerge2, { 2, 1, 0 }
uselistorder i64 %6, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 5, 3, 2, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 8, { 1, 2, 0, 3 }
uselistorder i32 0, { 3, 2, 0, 1, 4 }
uselistorder label LBL_10, { 0, 4, 2, 1, 3 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | assert_codec_experimental_2276 | assert_codec_experimental | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.in.reg2mem = alloca i32
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = urem i64 %2, 2
%4 = icmp eq i64 %3, 0
store i32 0, i32* %rax.0.in.reg2mem
br i1 %4, label LBL_8, label LBL_1
LBL_1:
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp slt i32 %7, 2
store i32 %7, i32* %rax.0.in.reg2mem
br i1 %8, label LBL_8, label LBL_2
LBL_2:
%9 = trunc i64 %arg2 to i32
%10 = icmp eq i32 %9, 0
%11 = inttoptr i64 %5 to i64*
%12 = load i64, i64* %11, align 8
%13 = select i1 %10, i64 ptrtoint ([8 x i8]* @gv_0 to i64), i64 ptrtoint ([8 x i8]* @gv_1 to i64)
%14 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([106 x i8], [106 x i8]* @gv_2, i64 0, i64 0), i64 %13, i64 %12, i64 %1)
%15 = load i32, i32* inttoptr (i64 16 to i32*), align 16
%16 = zext i32 %15 to i64
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %16)
store i64 %17, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%18 = call i64 @FUNC(i64 %16)
store i64 %18, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%19 = inttoptr i64 %storemerge.reload to i32*
%20 = load i32, i32* %19, align 4
%21 = urem i32 %20, 2
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_7, label LBL_6
LBL_6:
%24 = add i64 %storemerge.reload, 8
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_3, i64 0, i64 0), i64 %13, i64 %26, i64 %1)
br label LBL_7
LBL_7:
%28 = call i64 @FUNC(i64 1)
unreachable
LBL_8:
%rax.0.in.reload = load i32, i32* %rax.0.in.reg2mem
%rax.0 = zext i32 %rax.0.in.reload to i64
ret i64 %rax.0
uselistorder i64 %storemerge.reload, { 1, 0 }
uselistorder i64 %16, { 1, 0 }
uselistorder i64 %13, { 1, 0 }
uselistorder i1 %10, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
} | 0 |
BinRealVul | _send_back_fd_9334 | _send_back_fd | 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 i64, align 8
store i64 0, i64* %sv_1, align 8
%2 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 24)
%3 = ptrtoint i64* %sv_0 to i64
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i32*
store i32 1, i32* %5, align 8
%6 = add i64 %3, 12
%7 = inttoptr i64 %6 to i32*
store i32 1, i32* %7, align 4
store i64 20, i64* %sv_0, align 8
%8 = add i64 %3, 16
%9 = trunc i64 %arg2 to i32
%10 = inttoptr i64 %8 to i32*
store i32 %9, i32* %10, align 8
%11 = trunc i64 %arg1 to i32
%12 = bitcast i64* %sv_1 to %msghdr*
%13 = call i32 @sendmsg(i32 %11, %msghdr* nonnull %12, i32 0)
%14 = sext i32 %13 to i64
%15 = icmp slt i32 %13, 0
%16 = icmp eq i1 %15, false
store i64 %14, i64* %rax.0.reg2mem
br i1 %16, label LBL_2, label LBL_1
LBL_1:
call void (i32, i32, i8*, ...) @error(i32 ptrtoint (i32* @gv_0 to i32), i32 ptrtoint (i32* @gv_1 to i32), i8* null, i64* nonnull %sv_1, i64 %1)
store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 2, 1, 0 }
uselistorder i64* %sv_0, { 0, 2, 1 }
} | 0 |
BinRealVul | g_try_malloc_17021 | g_try_malloc | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = icmp eq i64 %arg1, 0
%phitmp = trunc i64 %arg1 to i32
%storemerge = select i1 %1, i32 1, i32 %phitmp
%2 = call i64* @malloc(i32 %storemerge)
%3 = ptrtoint i64* %2 to i64
ret i64 %3
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg1, { 0, 2, 1 }
} | 1 |
BinRealVul | flask_security_context_12159 | flask_security_context | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.in.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = load i64, i64* @gv_0, align 8
%1 = inttoptr i64 %0 to i32*
%2 = load i32, i32* %1, align 4
%3 = zext i32 %2 to i64
%4 = call i64 @FUNC(i64 %3, i64 1)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
store i64 %4, i64* %rax.0.in.reg2mem
br i1 %6, label LBL_1, label LBL_3
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = add i64 %7, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %3, i64* nonnull %sv_0, i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
store i64 %11, i64* %rax.0.in.reg2mem
br i1 %13, label LBL_2, label LBL_3
LBL_2:
%14 = add i64 %7, 16
%15 = load i64, i64* %9, align 8
%16 = load i64, i64* %sv_0, align 8
%17 = call i64 @FUNC(i64 %16, i64 %15, i64 %14)
%18 = load i64, i64* %sv_0, align 8
%19 = call i64 @FUNC(i64 %18)
store i64 %17, i64* %rax.0.in.reg2mem
br label LBL_3
LBL_3:
%rax.0.in.reload = load i64, i64* %rax.0.in.reg2mem
%rax.0 = and i64 %rax.0.in.reload, 4294967295
ret i64 %rax.0
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64* %rax.0.in.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 1 |
BinRealVul | fuse_device_clone_12236 | fuse_device_clone | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64* %arg2, null
br i1 %0, label LBL_1, label LBL_2
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
call void @llvm.trap()
unreachable
LBL_2:
ret i64 4294967274
} | 1 |
BinRealVul | mcf_uart_do_tx_16382 | mcf_uart_do_tx | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.reg2mem8 = alloca i32
%.in.reg2mem = alloca i32
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
%.pre2 = add i64 %2, 4
%.pre3 = inttoptr i64 %.pre2 to i32*
%5 = load i32, i32* %.pre3, align 4
store i32 %5, i32* %.in.reg2mem
br i1 %4, label LBL_5.thread, label LBL_1
LBL_1:
%6 = urem i32 %5, 2
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_3
LBL_2:
%9 = or i32 %5, 2
store i32 %9, i32* %.reg2mem8
br label %21
LBL_3:
%10 = add i64 %2, 16
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
store i32 %5, i32* %.reg2mem
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = add i64 %2, 8
%15 = call i64 @FUNC(i64 %12, i64 %14, i64 1)
%.pre = load i32, i32* %.pre3, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_5
LBL_5:
%16 = bitcast i64* %rdi to i32*
%.reload = load i32, i32* %.reg2mem
%17 = or i32 %.reload, 1
store i32 %17, i32* %.pre3, align 4
%.pre1 = load i32, i32* %16, align 8
%18 = icmp eq i32 %.pre1, 0
%19 = or i32 %.reload, 3
store i32 %17, i32* %.in.reg2mem
store i32 %19, i32* %.reg2mem8
br i1 %18, label LBL_5.thread, label %21
LBL_6:
%.in.reload = load i32, i32* %.in.reg2mem
%20 = and i32 %.in.reload, -3
store i32 %20, i32* %.reg2mem8
br label %21
uselistorder i32 %.reload, { 1, 0 }
uselistorder i32 %5, { 1, 3, 2, 0 }
uselistorder i64 %2, { 1, 2, 3, 0 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem8, { 0, 3, 2, 1 }
uselistorder i32 2, { 1, 0 }
uselistorder label %21, { 2, 1, 0 }
uselistorder label LBL_5.thread, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | ntfs_trim_fs_12481 | ntfs_trim_fs | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.4.reg2mem = alloca i32
%sv_1.5.reg2mem = alloca i64*
%sv_1.4.reg2mem = alloca i64*
%sv_0.315.reg2mem = alloca i32
%sv_2.418.reg2mem = alloca i32
%sv_3.221.reg2mem = alloca i32
%sv_0.2.reg2mem = alloca i32
%sv_2.3.reg2mem = alloca i32
%sv_3.1.reg2mem = alloca i32
%sv_4.2.reg2mem = alloca i32
%sv_1.2.reg2mem = alloca i64*
%.reg2mem87 = alloca i32
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_2.2.lcssa.reg2mem = alloca i32
%sv_3.0.lcssa.reg2mem = alloca i32
%sv_1.1.lcssa.reg2mem = alloca i64*
%storemerge4.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64*
%sv_1.126.reg2mem = alloca i64*
%sv_3.027.reg2mem = alloca i32
%sv_2.228.reg2mem = alloca i32
%sv_0.129.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_4.0.reg2mem = alloca i32
%sv_1.335.reg2mem = alloca i64*
%sv_4.336.reg2mem = alloca i32
%sv_3.237.reg2mem = alloca i32
%sv_2.438.reg2mem = alloca i32
%sv_0.339.reg2mem = alloca i32
%sv_5.040.reg2mem = alloca i32
%sv_6.141.reg2mem = alloca i32
%.reg2mem85 = alloca i64
%.reg2mem = alloca i32
%storemerge5.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i32*
%6 = add i64 %2, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %3, i64 %8)
%10 = call i64 @FUNC(i64 %3, i64 %8)
%11 = add i64 %3, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i64 %2, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, -1
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_2, label LBL_1
LBL_1:
%19 = load i32, i32* %5, align 4
store i32 %19, i32* %storemerge5.reg2mem
br label LBL_3
LBL_2:
%20 = add i64 %16, %8
%21 = call i64 @FUNC(i64 %3, i64 %20)
%22 = trunc i64 %21 to i32
store i32 %22, i32* %storemerge5.reg2mem
br label LBL_3
LBL_3:
%23 = trunc i64 %9 to i32
%24 = trunc i64 %10 to i32
%25 = add i32 %13, 3
%26 = urem i32 %25, 32
%27 = icmp eq i32 %26, 0
%28 = lshr i32 %24, %26
%29 = zext i32 %28 to i64
%storemerge = select i1 %27, i64 %10, i64 %29
%30 = icmp eq i32 %23, 0
%31 = icmp eq i1 %30, false
%spec.select = select i1 %31, i32 %23, i32 1
%32 = add i64 %3, 24
%33 = call i64 @FUNC(i64 %32, i64 0)
%34 = load i32, i32* %5, align 4
%35 = zext i32 %34 to i64
%sext = mul i64 %storemerge, 4294967296
%36 = ashr exact i64 %sext, 32
%37 = icmp ult i64 %36, %35
store i32 0, i32* %sv_3.221.reg2mem
store i32 0, i32* %sv_2.418.reg2mem
store i32 0, i32* %sv_0.315.reg2mem
store i64* null, i64** %sv_1.4.reg2mem
br i1 %37, label LBL_4, label LBL_21
LBL_4:
%38 = trunc i64 %1 to i32
%39 = mul i32 %38, 8
%40 = trunc i64 %storemerge to i32
%41 = add i32 %39, -1
%42 = and i32 %41, %24
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%43 = add i64 %3, 16
%44 = inttoptr i64 %43 to i64*
%45 = add i64 %3, 80
%46 = inttoptr i64 %45 to i32*
%47 = add i64 %3, 12
%48 = inttoptr i64 %47 to i32*
store i32 %34, i32* %.reg2mem
store i64 %36, i64* %.reg2mem85
store i32 %42, i32* %sv_6.141.reg2mem
store i32 %40, i32* %sv_5.040.reg2mem
store i32 0, i32* %sv_0.339.reg2mem
store i32 0, i32* %sv_2.438.reg2mem
store i32 0, i32* %sv_3.237.reg2mem
store i32 %39, i32* %sv_4.336.reg2mem
store i64* null, i64** %sv_1.335.reg2mem
br label LBL_5
LBL_5:
%sv_1.335.reload = load i64*, i64** %sv_1.335.reg2mem
%sv_4.336.reload = load i32, i32* %sv_4.336.reg2mem
%sv_3.237.reload = load i32, i32* %sv_3.237.reg2mem
%sv_2.438.reload = load i32, i32* %sv_2.438.reg2mem
%sv_0.339.reload = load i32, i32* %sv_0.339.reg2mem
%sv_5.040.reload = load i32, i32* %sv_5.040.reg2mem
%49 = mul i32 %sv_4.336.reload, %sv_5.040.reload
%50 = icmp ult i32 %storemerge5.reload, %49
store i32 %sv_3.237.reload, i32* %sv_3.221.reg2mem
store i32 %sv_2.438.reload, i32* %sv_2.418.reg2mem
store i32 %sv_0.339.reload, i32* %sv_0.315.reg2mem
store i64* %sv_1.335.reload, i64** %sv_1.4.reg2mem
br i1 %50, label LBL_21, label LBL_6
LBL_6:
%.reload86 = load i64, i64* %.reg2mem85
%.reload = load i32, i32* %.reg2mem
%51 = load i64, i64* %44, align 8
%52 = mul i64 %.reload86, 4
%53 = add i64 %51, %52
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = icmp eq i32 %55, 0
store i32 %.reload, i32* %.reg2mem87
store i64* %sv_1.335.reload, i64** %sv_1.2.reg2mem
store i32 %sv_4.336.reload, i32* %sv_4.2.reg2mem
store i32 %sv_3.237.reload, i32* %sv_3.1.reg2mem
store i32 %sv_2.438.reload, i32* %sv_2.3.reg2mem
store i32 %sv_0.339.reload, i32* %sv_0.2.reg2mem
br i1 %56, label LBL_20, label LBL_7
LBL_7:
%sv_6.141.reload = load i32, i32* %sv_6.141.reg2mem
%57 = add nsw i64 %.reload86, 1
%58 = load i32, i32* %46, align 4
%59 = zext i32 %58 to i64
%60 = icmp eq i64 %57, %59
%61 = icmp eq i1 %60, false
store i32 %sv_4.336.reload, i32* %sv_4.0.reg2mem
br i1 %61, label LBL_9, label LBL_8
LBL_8:
%62 = load i32, i32* %48, align 4
store i32 %62, i32* %sv_4.0.reg2mem
br label LBL_9
LBL_9:
%63 = call i64 @FUNC(i64 %4, i64 %.reload86)
%64 = icmp ult i64 %63, -1000
br i1 %64, label LBL_11, label LBL_10
LBL_10:
%65 = and i64 %63, 4294967295
%66 = inttoptr i64 %65 to i64*
store i32 %sv_3.237.reload, i32* %sv_3.221.reg2mem
store i32 %sv_2.438.reload, i32* %sv_2.418.reg2mem
store i32 %sv_0.339.reload, i32* %sv_0.315.reg2mem
store i64* %66, i64** %sv_1.4.reg2mem
br label LBL_21
LBL_11:
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%67 = add i32 %sv_4.0.reload, %49
%68 = icmp ult i32 %storemerge5.reload, %67
%69 = icmp eq i1 %68, false
%70 = sub i32 %storemerge5.reload, %49
%spec.select6 = select i1 %69, i32 %sv_4.0.reload, i32 %70
%71 = inttoptr i64 %63 to i64*
%72 = load i64, i64* %71, align 8
%73 = icmp ult i32 %sv_6.141.reload, %spec.select6
store i64* %sv_1.335.reload, i64** %sv_1.1.lcssa.reg2mem
store i32 %sv_3.237.reload, i32* %sv_3.0.lcssa.reg2mem
store i32 %sv_2.438.reload, i32* %sv_2.2.lcssa.reg2mem
store i32 %sv_0.339.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %73, label LBL_12, label LBL_19
LBL_12:
%74 = zext i32 %sv_6.141.reload to i64
%75 = zext i32 %spec.select6 to i64
store i64 %74, i64* %indvars.iv.reg2mem
store i32 %sv_0.339.reload, i32* %sv_0.129.reg2mem
store i32 %sv_2.438.reload, i32* %sv_2.228.reg2mem
store i32 %sv_3.237.reload, i32* %sv_3.027.reg2mem
store i64* %sv_1.335.reload, i64** %sv_1.126.reg2mem
br label LBL_13
LBL_13:
%sv_1.126.reload = load i64*, i64** %sv_1.126.reg2mem
%sv_3.027.reload = load i32, i32* %sv_3.027.reg2mem
%sv_2.228.reload = load i32, i32* %sv_2.228.reg2mem
%sv_0.129.reload = load i32, i32* %sv_0.129.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%76 = call i64 @FUNC(i64 %indvars.iv.reload, i64 %72)
%77 = trunc i64 %76 to i32
%78 = icmp eq i32 %77, 0
%79 = icmp eq i1 %78, false
br i1 %79, label LBL_15, label LBL_14
LBL_14:
%80 = icmp eq i32 %sv_3.027.reload, 0
%81 = icmp eq i1 %80, false
%82 = trunc i64 %indvars.iv.reload to i32
%83 = add i32 %49, %82
%spec.select7 = select i1 %81, i32 %sv_2.228.reload, i32 %83
%84 = add i32 %sv_3.027.reload, 1
store i64* %sv_1.126.reload, i64** %sv_1.0.reg2mem
store i32 %spec.select7, i32* %sv_2.1.reg2mem
store i32 %sv_0.129.reload, i32* %sv_0.0.reg2mem
store i32 %84, i32* %storemerge4.reg2mem
br label LBL_18
LBL_15:
%85 = icmp ult i32 %sv_3.027.reload, %spec.select
store i64* %sv_1.126.reload, i64** %sv_1.0.reg2mem
store i32 %sv_2.228.reload, i32* %sv_2.1.reg2mem
store i32 %sv_0.129.reload, i32* %sv_0.0.reg2mem
store i32 0, i32* %storemerge4.reg2mem
br i1 %85, label LBL_18, label LBL_16
LBL_16:
%86 = zext i32 %sv_2.228.reload to i64
%87 = call i64 @FUNC(i64 %3, i64 %86, i32 %sv_3.027.reload)
%88 = trunc i64 %87 to i32
%89 = and i64 %87, 4294967295
%90 = icmp eq i32 %88, 0
%91 = icmp eq i1 %90, false
%92 = inttoptr i64 %89 to i64*
store i64* %92, i64** %sv_1.5.reg2mem
store i32 %sv_0.129.reload, i32* %sv_0.4.reg2mem
br i1 %91, label LBL_23, label LBL_17
LBL_17:
%93 = add i32 %sv_3.027.reload, %sv_0.129.reload
store i64* %92, i64** %sv_1.0.reg2mem
store i32 %sv_2.228.reload, i32* %sv_2.1.reg2mem
store i32 %93, i32* %sv_0.0.reg2mem
store i32 0, i32* %storemerge4.reg2mem
br label LBL_18
LBL_18:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%sv_1.0.reload = load i64*, i64** %sv_1.0.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%94 = icmp ult i64 %indvars.iv.next, %75
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.129.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.228.reg2mem
store i32 %storemerge4.reload, i32* %sv_3.027.reg2mem
store i64* %sv_1.0.reload, i64** %sv_1.126.reg2mem
store i64* %sv_1.0.reload, i64** %sv_1.1.lcssa.reg2mem
store i32 %storemerge4.reload, i32* %sv_3.0.lcssa.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.2.lcssa.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %94, label LBL_13, label LBL_19
LBL_19:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%sv_2.2.lcssa.reload = load i32, i32* %sv_2.2.lcssa.reg2mem
%sv_3.0.lcssa.reload = load i32, i32* %sv_3.0.lcssa.reg2mem
%sv_1.1.lcssa.reload = load i64*, i64** %sv_1.1.lcssa.reg2mem
%95 = call i64 @FUNC(i64 %63)
%.pre = load i32, i32* %5, align 4
store i32 %.pre, i32* %.reg2mem87
store i64* %sv_1.1.lcssa.reload, i64** %sv_1.2.reg2mem
store i32 %spec.select6, i32* %sv_4.2.reg2mem
store i32 %sv_3.0.lcssa.reload, i32* %sv_3.1.reg2mem
store i32 %sv_2.2.lcssa.reload, i32* %sv_2.3.reg2mem
store i32 %sv_0.1.lcssa.reload, i32* %sv_0.2.reg2mem
br label LBL_20
LBL_20:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%sv_2.3.reload = load i32, i32* %sv_2.3.reg2mem
%sv_3.1.reload = load i32, i32* %sv_3.1.reg2mem
%sv_4.2.reload = load i32, i32* %sv_4.2.reg2mem
%sv_1.2.reload = load i64*, i64** %sv_1.2.reg2mem
%.reload88 = load i32, i32* %.reg2mem87
%96 = add i32 %sv_5.040.reload, 1
%97 = zext i32 %.reload88 to i64
%98 = sext i32 %96 to i64
%99 = icmp ult i64 %98, %97
store i32 %.reload88, i32* %.reg2mem
store i64 %98, i64* %.reg2mem85
store i32 0, i32* %sv_6.141.reg2mem
store i32 %96, i32* %sv_5.040.reg2mem
store i32 %sv_0.2.reload, i32* %sv_0.339.reg2mem
store i32 %sv_2.3.reload, i32* %sv_2.438.reg2mem
store i32 %sv_3.1.reload, i32* %sv_3.237.reg2mem
store i32 %sv_4.2.reload, i32* %sv_4.336.reg2mem
store i64* %sv_1.2.reload, i64** %sv_1.335.reg2mem
store i32 %sv_3.1.reload, i32* %sv_3.221.reg2mem
store i32 %sv_2.3.reload, i32* %sv_2.418.reg2mem
store i32 %sv_0.2.reload, i32* %sv_0.315.reg2mem
store i64* %sv_1.2.reload, i64** %sv_1.4.reg2mem
br i1 %99, label LBL_5, label LBL_21
LBL_21:
%sv_1.4.reload = load i64*, i64** %sv_1.4.reg2mem
%sv_0.315.reload = load i32, i32* %sv_0.315.reg2mem
%sv_3.221.reload = load i32, i32* %sv_3.221.reg2mem
%100 = icmp ult i32 %sv_3.221.reload, %spec.select
store i64* %sv_1.4.reload, i64** %sv_1.5.reg2mem
store i32 %sv_0.315.reload, i32* %sv_0.4.reg2mem
br i1 %100, label LBL_23, label LBL_22
LBL_22:
%sv_2.418.reload = load i32, i32* %sv_2.418.reg2mem
%101 = zext i32 %sv_2.418.reload to i64
%102 = call i64 @FUNC(i64 %3, i64 %101, i32 %sv_3.221.reload)
%103 = trunc i64 %102 to i32
%104 = and i64 %102, 4294967295
%105 = inttoptr i64 %104 to i64*
%106 = icmp eq i32 %103, 0
%107 = icmp eq i1 %106, false
%108 = select i1 %107, i32 0, i32 %sv_3.221.reload
%spec.select8 = add i32 %108, %sv_0.315.reload
store i64* %105, i64** %sv_1.5.reg2mem
store i32 %spec.select8, i32* %sv_0.4.reg2mem
br label LBL_23
LBL_23:
%sv_0.4.reload = load i32, i32* %sv_0.4.reg2mem
%sv_1.5.reload = load i64*, i64** %sv_1.5.reg2mem
%109 = zext i32 %sv_0.4.reload to i64
%110 = add i64 %3, 88
%111 = inttoptr i64 %110 to i32*
%112 = load i32, i32* %111, align 4
%113 = urem i32 %112, 64
%114 = zext i32 %113 to i64
%rdx.0 = shl i64 %109, %114
store i64 %rdx.0, i64* %15, align 8
%115 = call i64 @FUNC(i64 %32)
%116 = ptrtoint i64* %sv_1.5.reload to i64
%117 = and i64 %116, 4294967295
ret i64 %117
uselistorder i32 %sv_3.221.reload, { 0, 2, 1 }
uselistorder i32 %sv_0.315.reload, { 1, 0 }
uselistorder i32 %.reload88, { 1, 0 }
uselistorder i64* %92, { 1, 0 }
uselistorder i32 %sv_0.129.reload, { 3, 0, 2, 1 }
uselistorder i32 %sv_2.228.reload, { 0, 3, 1, 2 }
uselistorder i32 %sv_3.027.reload, { 4, 3, 1, 0, 2 }
uselistorder i64* %sv_1.126.reload, { 1, 0 }
uselistorder i64 %63, { 1, 2, 0, 3 }
uselistorder i32 %sv_6.141.reload, { 1, 0 }
uselistorder i32 %49, { 0, 3, 1, 2 }
uselistorder i32 %sv_0.339.reload, { 4, 3, 1, 2, 0 }
uselistorder i32 %sv_2.438.reload, { 4, 3, 1, 2, 0 }
uselistorder i32 %sv_3.237.reload, { 4, 3, 1, 2, 0 }
uselistorder i32 %sv_4.336.reload, { 1, 0, 2 }
uselistorder i64* %sv_1.335.reload, { 3, 2, 1, 0 }
uselistorder i64 %storemerge, { 1, 0 }
uselistorder i32 %26, { 1, 0 }
uselistorder i64 %3, { 6, 5, 4, 0, 1, 2, 3, 7, 8, 9, 10, 11 }
uselistorder i32* %storemerge5.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem85, { 1, 0, 2 }
uselistorder i32* %sv_6.141.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_5.040.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.339.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.438.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.237.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_4.336.reg2mem, { 1, 0, 2 }
uselistorder i64** %sv_1.335.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.129.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.228.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.027.reg2mem, { 1, 0, 2 }
uselistorder i64** %sv_1.126.reg2mem, { 1, 0, 2 }
uselistorder i64** %sv_1.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* %sv_2.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* %storemerge4.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* %sv_3.221.reg2mem, { 0, 1, 4, 2, 3 }
uselistorder i32* %sv_2.418.reg2mem, { 0, 1, 4, 2, 3 }
uselistorder i32* %sv_0.315.reg2mem, { 0, 1, 4, 2, 3 }
uselistorder i64** %sv_1.4.reg2mem, { 0, 1, 4, 2, 3 }
uselistorder i64** %sv_1.5.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* %sv_0.4.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 (i64, i64, i32)* @ntfs_discard, { 1, 0 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i64* null, { 1, 0 }
uselistorder i32 0, { 9, 10, 8, 3, 11, 4, 12, 13, 14, 5, 6, 7, 0, 1, 2, 15, 16 }
uselistorder i1 false, { 0, 1, 2, 3, 4, 5, 7, 6, 8 }
uselistorder i64 (i64, i64)* @bytes_to_cluster, { 2, 1, 0 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder label LBL_23, { 1, 2, 0 }
uselistorder label LBL_21, { 0, 3, 1, 2 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_18, { 1, 0, 2 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | mongo_run_command_13418 | mongo_run_command | define i64 @FUNC(i32* %arg1, i8* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i32* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
store i64 0, i64* %sv_3, align 8
%2 = call i32 @strlen(i8* %arg2)
%3 = sext i32 %2 to i64
%4 = add nsw i64 %3, 6
%5 = call i64 @FUNC(i64 %4)
%6 = inttoptr i64 %5 to i8*
%7 = call i8* @strcpy(i8* %6, i8* %arg2)
%8 = add i64 %5, %3
%9 = inttoptr i64 %8 to i32*
store i32 1835213870, i32* %9, align 4
%10 = add i64 %8, 4
%11 = inttoptr i64 %10 to i16*
store i16 100, i16* %11, align 2
%12 = call i64 @FUNC(i64* nonnull %sv_2)
%13 = call i64 @FUNC(i64 %1, i64 %5, i64 %0, i64 %12, i64 %5, i64* nonnull %sv_3)
%14 = trunc i64 %13 to i32
%15 = call i64 @FUNC(i64 %5)
%16 = icmp eq i32 %14, 0
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %16, label LBL_1, label LBL_7
LBL_1:
%17 = call i64 @FUNC(i64* nonnull %sv_1, i64* nonnull %sv_3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0))
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_3, label LBL_2
LBL_2:
%20 = call i64 @FUNC(i64* nonnull %sv_1)
%21 = trunc i64 %20 to i32
%phitmp = icmp eq i32 %21, 0
%phitmp2 = icmp eq i1 %phitmp, false
br i1 %phitmp2, label LBL_4, label LBL_3
LBL_3:
store i32 1, i32* %arg1, align 4
%22 = call i64 @FUNC(i64* nonnull %sv_3)
store i64 4294967295, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_4:
%23 = icmp eq i64* %arg4, null
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%24 = ptrtoint i64* %arg4 to i64
%25 = load i64, i64* %sv_3, align 8
store i64 %25, i64* %arg4, align 8
%26 = add i64 %24, 8
%27 = inttoptr i64 %26 to i64*
store i64 0, i64* %27, align 8
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_6:
%28 = call i64 @FUNC(i64* nonnull %sv_3)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %8, { 1, 0 }
uselistorder i64 %5, { 1, 3, 2, 0, 4 }
uselistorder i64* %sv_3, { 0, 4, 1, 2, 3, 5 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64*)* @bson_destroy, { 1, 0 }
uselistorder i64* %arg4, { 0, 2, 1 }
uselistorder label LBL_7, { 1, 2, 3, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | align_position_560 | align_position | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = sub i64 9223372036854775807, %arg2
%1 = icmp ugt i64 %0, %arg3
%2 = icmp eq i1 %1, false
store i64 %0, i64* %rax.0.reg2mem
br i1 %2, label LBL_3, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %arg3, %arg2
%6 = icmp eq i64 %4, %5
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %3, i64 %5, i64 0)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 0 |
BinRealVul | bfi_read_header_112 | bfi_read_header | 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
%rdi = alloca i64, align 8
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %3, i64 0)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %9, label LBL_1, label LBL_6
LBL_1:
%10 = call i64 @FUNC(i64 %3, i64 0)
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %12, label LBL_2, label LBL_6
LBL_2:
%13 = call i64 @FUNC(i64 %6, i64 8)
%14 = call i64 @FUNC(i64 %6)
%15 = call i64 @FUNC(i64 %6)
%16 = trunc i64 %15 to i32
%17 = bitcast i64* %arg1 to i32*
store i32 %16, i32* %17, align 4
%18 = call i64 @FUNC(i64 %6)
%19 = call i64 @FUNC(i64 %6)
%20 = call i64 @FUNC(i64 %6)
%21 = call i64 @FUNC(i64 %6)
%22 = call i64 @FUNC(i64 %6, i64 12)
%23 = inttoptr i64 %7 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %6)
%26 = trunc i64 %25 to i32
%27 = inttoptr i64 %24 to i32*
store i32 %26, i32* %27, align 4
%28 = load i64, i64* %23, align 8
%29 = call i64 @FUNC(i64 %6)
%30 = trunc i64 %29 to i32
%31 = add i64 %28, 4
%32 = inttoptr i64 %31 to i32*
store i32 %30, i32* %32, align 4
%33 = call i64 @FUNC(i64 %6, i64 8)
%34 = load i64, i64* %23, align 8
%35 = call i64 @FUNC(i64 768)
%36 = add i64 %34, 8
%37 = inttoptr i64 %36 to i64*
store i64 %35, i64* %37, align 8
%38 = load i64, i64* %23, align 8
%39 = add i64 %38, 8
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = icmp eq i64 %41, 0
%43 = icmp eq i1 %42, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %43, label LBL_3, label LBL_6
LBL_3:
%44 = add i64 %38, 16
%45 = inttoptr i64 %44 to i32*
store i32 768, i32* %45, align 4
%46 = load i64, i64* %23, align 8
%47 = add i64 %46, 16
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = add i64 %46, 8
%51 = inttoptr i64 %50 to i64*
%52 = load i64, i64* %51, align 8
%53 = call i64 @FUNC(i64 %6, i64 %52, i32 %49)
%54 = inttoptr i64 %10 to i64*
%55 = load i64, i64* %54, align 8
%56 = call i64 @FUNC(i64 %6)
%57 = trunc i64 %56 to i32
%58 = add i64 %55, 20
%59 = inttoptr i64 %58 to i32*
store i32 %57, i32* %59, align 4
%60 = load i64, i64* %54, align 8
%61 = add i64 %60, 20
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = icmp eq i32 %63, 0
%65 = icmp slt i32 %63, 0
%66 = icmp eq i1 %65, false
%67 = icmp eq i1 %64, false
%68 = icmp eq i1 %66, %67
br i1 %68, label LBL_5, label LBL_4
LBL_4:
%69 = zext i32 %63 to i64
%70 = call i64 @FUNC(i64 %3, i64 16, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %69, i64 %2, i64 %1)
store i64 1, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%71 = and i64 %21, 4294967295
%72 = call i64 @FUNC(i64 %7, i64 32, i64 1, i64 %71)
%73 = load i64, i64* %23, align 8
%74 = add i64 %73, 24
%75 = inttoptr i64 %74 to i32*
store i32 0, i32* %75, align 4
%76 = load i64, i64* %23, align 8
%77 = add i64 %76, 28
%78 = inttoptr i64 %77 to i32*
store i32 2, i32* %78, align 4
%79 = load i64, i64* %23, align 8
%80 = add i64 %79, 48
%81 = inttoptr i64 %80 to i32*
store i32 4, i32* %81, align 4
%82 = bitcast i64* %rdi to i32*
%83 = load i32, i32* %82, align 8
%84 = add i64 %7, 12
%85 = inttoptr i64 %84 to i32*
store i32 %83, i32* %85, align 4
%86 = add i64 %7, 8
%87 = inttoptr i64 %86 to i32*
store i32 %83, i32* %87, align 4
%88 = load i64, i64* %54, align 8
%89 = add i64 %88, 24
%90 = inttoptr i64 %89 to i32*
store i32 1, i32* %90, align 4
%91 = load i64, i64* %54, align 8
%92 = add i64 %91, 28
%93 = inttoptr i64 %92 to i32*
store i32 3, i32* %93, align 4
%94 = load i64, i64* %54, align 8
%95 = add i64 %94, 32
%96 = inttoptr i64 %95 to i32*
store i32 1, i32* %96, align 4
%97 = load i64, i64* %54, align 8
%98 = add i64 %97, 36
%99 = inttoptr i64 %98 to i32*
store i32 5, i32* %99, align 4
%100 = load i64, i64* %54, align 8
%101 = add i64 %100, 40
%102 = inttoptr i64 %101 to i32*
store i32 8, i32* %102, align 4
%103 = load i64, i64* %54, align 8
%104 = add i64 %103, 20
%105 = inttoptr i64 %104 to i32*
%106 = load i32, i32* %105, align 4
%107 = add i64 %103, 40
%108 = inttoptr i64 %107 to i32*
%109 = load i32, i32* %108, align 4
%110 = mul i32 %109, %106
%111 = add i64 %103, 44
%112 = inttoptr i64 %111 to i32*
store i32 %110, i32* %112, align 4
%113 = add i64 %14, 4294967293
%114 = and i64 %113, 4294967295
%115 = call i64 @FUNC(i64 %6, i64 %114, i64 0)
%116 = load i64, i64* %54, align 8
%117 = add i64 %116, 20
%118 = inttoptr i64 %117 to i32*
%119 = load i32, i32* %118, align 4
%120 = zext i32 %119 to i64
%121 = call i64 @FUNC(i64 %10, i64 64, i64 1, i64 %120)
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %63, { 0, 2, 1 }
uselistorder i64 %6, { 0, 2, 1, 3, 4, 6, 5, 10, 9, 8, 7, 13, 12, 11 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 1, 2, 3 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @avpriv_set_pts_info, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i64 12, { 1, 0 }
uselistorder i64 (i64)* @avio_rl32, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @avio_skip, { 2, 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3, 4 }
uselistorder i64 (i64, i64)* @avformat_new_stream, { 1, 0 }
uselistorder i64 0, { 0, 5, 3, 4, 9, 10, 6, 11, 7, 1, 2, 8 }
uselistorder i64 8, { 2, 3, 4, 5, 0, 1, 6 }
uselistorder label LBL_6, { 3, 4, 0, 1, 2 }
} | 1 |
BinRealVul | perf_remove_from_owner_11333 | perf_remove_from_owner | 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()
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC()
%4 = icmp eq i64 %2, 0
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = call i64 @FUNC()
store i64 %5, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%6 = call i64 @FUNC(i64 %2)
%7 = call i64 @FUNC()
%8 = call i64 @FUNC(i64 %2)
%9 = add i64 %0, 8
%10 = call i64 @FUNC(i64 %9)
%11 = call i64 @FUNC(i64 %2)
%12 = call i64 @FUNC(i64 %2)
store i64 %12, 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 %2, { 2, 1, 3, 0, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 ()* @rcu_read_unlock, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | aivdm_analyze_10033 | aivdm_analyze | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 1
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 40
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %5, 32
%12 = add i64 %5, 24
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = add i64 %5, 16
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = add i64 %5, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = zext i32 %10 to i64
%22 = call i64 @FUNC(i64 %20, i64 %17, i64 %14, i64 %11, i64 %21)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
%. = select i1 %24, i64 1, i64 3
store i64 %., i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %5, { 0, 2, 3, 4, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | xvag_read_header_2069 | xvag_read_header | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.in.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 4)
%2 = call i64 @FUNC(i64 %0, i64 0)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_11
LBL_1:
%5 = inttoptr i64 %2 to i64*
%6 = load i64, i64* %5, align 8
%7 = inttoptr i64 %6 to i32*
store i32 1, i32* %7, align 4
%8 = call i64 @FUNC(i64 %0)
%9 = trunc i64 %8 to i32
%10 = and i64 %8, 4294967295
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp ule i32 %9, %12
%14 = icmp ne i1 %13, true
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = call i64 @FUNC(i64 %10)
%17 = call i64 @FUNC(i64 %10, i64 28)
%18 = call i64 @FUNC(i64 %10)
%19 = call i64 @FUNC(i64 %10)
%20 = trunc i64 %19 to i32
%21 = load i64, i64* %5, align 8
%22 = add i64 %21, 4
%23 = inttoptr i64 %22 to i32*
store i32 %20, i32* %23, align 4
%24 = call i64 @FUNC(i64 %10, i64 4)
%25 = call i64 @FUNC(i64 %10)
%26 = trunc i64 %25 to i32
%27 = add i64 %2, 8
%28 = inttoptr i64 %27 to i32*
store i32 %26, i32* %28, align 4
%29 = call i64 @FUNC(i64 %10, i64 8)
%30 = call i64 @FUNC(i64 %10)
%31 = trunc i64 %30 to i32
%32 = load i64, i64* %5, align 8
%33 = add i64 %32, 8
%34 = inttoptr i64 %33 to i32*
store i32 %31, i32* %34, align 4
store i64 %16, i64* %sv_1.0.reg2mem
store i64 %18, i64* %sv_0.0.in.reg2mem
br label LBL_4
LBL_3:
%35 = call i64 @FUNC(i64 %10, i64 28)
%36 = call i64 @FUNC(i64 %10)
%37 = call i64 @FUNC(i64 %10)
%38 = trunc i64 %37 to i32
%39 = load i64, i64* %5, align 8
%40 = add i64 %39, 4
%41 = inttoptr i64 %40 to i32*
store i32 %38, i32* %41, align 4
%42 = call i64 @FUNC(i64 %10, i64 4)
%43 = call i64 @FUNC(i64 %10)
%44 = trunc i64 %43 to i32
%45 = add i64 %2, 8
%46 = inttoptr i64 %45 to i32*
store i32 %44, i32* %46, align 4
%47 = call i64 @FUNC(i64 %10, i64 8)
%48 = call i64 @FUNC(i64 %10)
%49 = trunc i64 %48 to i32
%50 = load i64, i64* %5, align 8
%51 = add i64 %50, 8
%52 = inttoptr i64 %51 to i32*
store i32 %49, i32* %52, align 4
store i64 %8, i64* %sv_1.0.reg2mem
store i64 %36, i64* %sv_0.0.in.reg2mem
br label LBL_4
LBL_4:
%53 = load i64, i64* %5, align 8
%54 = add i64 %53, 8
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = icmp eq i32 %56, 0
%58 = icmp slt i32 %56, 0
%59 = icmp eq i1 %58, false
%60 = icmp eq i1 %57, false
%61 = icmp eq i1 %59, %60
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %61, label LBL_5, label LBL_11
LBL_5:
%62 = add i64 %53, 4
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%.off = add i32 %64, -1
%65 = icmp ult i32 %.off, 8
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %65, label LBL_6, label LBL_11
LBL_6:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%sv_0.0 = trunc i64 %sv_0.0.in.reload to i32
%66 = icmp eq i32 %sv_0.0, 28
%67 = icmp eq i1 %66, false
br i1 %67, label LBL_8, label LBL_7
LBL_7:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%68 = add i64 %53, 16
%69 = inttoptr i64 %68 to i32*
store i32 28, i32* %69, align 4
%70 = load i64, i64* %5, align 8
%71 = add i64 %70, 4
%72 = inttoptr i64 %71 to i32*
%73 = load i32, i32* %72, align 4
%74 = mul i32 %73, 16
%75 = add i64 %70, 12
%76 = inttoptr i64 %75 to i32*
store i32 %74, i32* %76, align 4
%77 = call i64 @FUNC(i64 %10)
%78 = sub i64 %sv_1.0.reload, %77
%79 = and i64 %78, 4294967295
%80 = call i64 @FUNC(i64 %10, i64 %79)
%81 = call i64 @FUNC(i64 %10)
%82 = trunc i64 %81 to i32
%83 = icmp eq i32 %82, 65531
%84 = icmp eq i1 %83, false
br i1 %84, label LBL_10, label LBL_9
LBL_8:
%85 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i32 %sv_0.0)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_11
LBL_9:
%86 = load i64, i64* %5, align 8
%87 = add i64 %86, 16
%88 = inttoptr i64 %87 to i32*
store i32 85, i32* %88, align 4
%89 = load i64, i64* %5, align 8
%90 = add i64 %89, 12
%91 = inttoptr i64 %90 to i32*
store i32 4096, i32* %91, align 4
%92 = add i64 %2, 12
%93 = inttoptr i64 %92 to i32*
store i32 1, i32* %93, align 4
br label LBL_10
LBL_10:
%94 = call i64 @FUNC(i64 %10, i64 4294967294)
%95 = load i64, i64* %5, align 8
%96 = add i64 %95, 8
%97 = inttoptr i64 %96 to i32*
%98 = load i32, i32* %97, align 4
%99 = zext i32 %98 to i64
%100 = call i64 @FUNC(i64 %2, i64 64, i64 1, i64 %99)
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %56, { 1, 0 }
uselistorder i64 %10, { 3, 0, 1, 2, 18, 17, 16, 15, 14, 13, 12, 4, 5, 6, 7, 8, 9, 10, 11, 19 }
uselistorder i64* %5, { 4, 2, 3, 5, 6, 7, 8, 0, 1, 9 }
uselistorder i64 %2, { 2, 1, 3, 0, 4, 5 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 5, 1, 2, 3 }
uselistorder i64 4294967294, { 1, 0 }
uselistorder i32 28, { 1, 0 }
uselistorder i64 8, { 2, 3, 4, 0, 5, 6, 1, 7 }
uselistorder i64 (i64)* @avio_rb32, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @av_bswap32, { 1, 0 }
uselistorder i64 (i64)* @avio_rl32, { 4, 3, 2, 1, 0 }
uselistorder i1 false, { 2, 3, 4, 1, 0, 5 }
uselistorder i64 (i64, i64)* @avio_skip, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 4, { 3, 4, 0, 5, 1, 6, 2 }
uselistorder label LBL_11, { 3, 4, 0, 1, 2 }
} | 0 |
BinRealVul | __setparam_dl_8919 | __setparam_dl | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %1 to i32
%6 = bitcast i64* %arg1 to i32*
store i32 %5, i32* %6, align 4
%7 = add i64 %2, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %3, 4
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 4
%12 = add i64 %2, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
%storemerge.in.in.in = select i1 %15, i64 %10, i64 %12
%storemerge.in.in = inttoptr i64 %storemerge.in.in.in to i32*
%storemerge.in = load i32, i32* %storemerge.in.in, align 4
%16 = add i64 %3, 8
%17 = inttoptr i64 %16 to i32*
store i32 %storemerge.in, i32* %17, align 4
%18 = add i64 %2, 12
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i64 %3, 12
%22 = inttoptr i64 %21 to i32*
store i32 %20, i32* %22, align 4
%23 = bitcast i64* %rdi to i32*
%24 = load i32, i32* %23, align 8
%25 = load i32, i32* %17, align 4
%26 = zext i32 %24 to i64
%27 = zext i32 %25 to i64
%28 = call i64 @FUNC(i64 %27, i64 %26)
%29 = trunc i64 %28 to i32
%30 = add i64 %3, 16
%31 = inttoptr i64 %30 to i32*
store i32 %29, i32* %31, align 4
%32 = add i64 %3, 20
%33 = inttoptr i64 %32 to i32*
store i32 0, i32* %33, align 4
%34 = add i64 %3, 24
%35 = inttoptr i64 %34 to i32*
store i32 1, i32* %35, align 4
ret i64 %3
uselistorder i64 %3, { 4, 5, 3, 2, 1, 0, 6, 7 }
uselistorder i64 %2, { 2, 1, 0 }
} | 0 |
BinRealVul | vnc_client_read_1384 | vnc_client_read | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.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)
%sext.mask = and i64 %3, 4294967295
%4 = icmp eq i64 %sext.mask, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_1, label LBL_3
LBL_1:
%6 = add i64 %2, 32
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_12, label LBL_2
LBL_2:
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i64*
%12 = add i64 %2, 24
%13 = inttoptr i64 %12 to i64*
%14 = bitcast i64* %rdi to i32*
%15 = trunc i64 %2 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
%sext = mul i64 %2, 4294967296
%18 = ashr exact i64 %sext, 32
br label LBL_11
LBL_3:
%19 = trunc i64 %1 to i32
%20 = icmp eq i32 %19, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %20, label LBL_12, label LBL_4
LBL_4:
%21 = call i64 @FUNC(i64 %2)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_12
LBL_5:
%22 = load i32, i32* %14, align 8
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_7, label LBL_6
LBL_6:
%24 = call i64 @FUNC(i64 %2)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_12
LBL_7:
br i1 %17, label LBL_10, label LBL_8
LBL_8:
%25 = call i64 @FUNC(i64 %10, i64 %29)
br label LBL_9
LBL_9:
%26 = load i64, i64* %7, align 8
%27 = icmp eq i64 %26, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %27, label LBL_12, label LBL_11
LBL_10:
store i64 %18, i64* %13, align 8
br label LBL_9
LBL_11:
%28 = load i64, i64* %11, align 8
%29 = load i64, i64* %13, align 8
%30 = icmp ult i64 %28, %29
%31 = icmp eq i1 %30, false
store i64 0, i64* %rax.0.reg2mem
br i1 %31, label LBL_5, label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %29, { 1, 0 }
uselistorder i64* %13, { 1, 0 }
uselistorder i64* %7, { 1, 0 }
uselistorder i64 %2, { 3, 2, 0, 1, 5, 6, 4, 7 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 6, 5, 4, 3 }
uselistorder i64 (i64)* @vnc_disconnect_finish, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder label LBL_12, { 0, 1, 4, 5, 3, 2 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 0 |
BinRealVul | sanity_check_inode_12752 | sanity_check_inode | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = trunc i64 %4 to i8
%6 = icmp eq i8 %5, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %0)
%8 = trunc i64 %7 to i8
%9 = icmp eq i8 %8, 1
store i64 1, i64* %storemerge.reg2mem
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %1, i64 1)
%11 = load i64, i64* %2, align 8
%12 = call i64 @FUNC(i64 %11, i64 1, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %1)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 0, { 0, 2, 3, 4, 5, 1, 6, 7, 8 }
uselistorder label LBL_3, { 2, 1, 0 }
} | 1 |
BinRealVul | br_nf_dev_queue_xmit_10071 | br_nf_dev_queue_xmit | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge1.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
br i1 %1, label LBL_6, label LBL_1
LBL_1:
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i16*
%4 = load i16, i16* %3, align 2
%5 = call i16 @htons(i16 2048)
%6 = icmp eq i16 %4, %5
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_6, label LBL_2
LBL_2:
%8 = add i64 %0, 12
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = call i64 @FUNC(i64 %0)
%12 = trunc i64 %11 to i32
%13 = add i32 %10, %12
%14 = add i64 %0, 16
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp ugt i32 %13, %18
br i1 %19, label LBL_3, label LBL_6
LBL_3:
%20 = call i64 @FUNC(i64 %0)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_6, label LBL_4
LBL_4:
%24 = call i64 @FUNC(i64 %0)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %26, label LBL_5, label LBL_8
LBL_5:
%27 = call i64 @FUNC(i64 %0, i64 4198787)
store i64 %27, i64* %storemerge1.in.reg2mem
br label LBL_7
LBL_6:
%28 = call i64 @FUNC(i64 %0)
store i64 %28, i64* %storemerge1.in.reg2mem
br label LBL_7
LBL_7:
%storemerge1.in.reload = load i64, i64* %storemerge1.in.reg2mem
%29 = and i64 %storemerge1.in.reload, 4294967295
store i64 %29, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 6, 0, 1, 3, 2, 5, 4, 7 }
uselistorder i64* %storemerge1.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | new_msg_register_event_5202 | new_msg_register_event | define i64 @FUNC(i64 %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%2 = ptrtoint i64* %sv_0 to i64
%3 = ptrtoint i32* %arg2 to i64
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = mul i32 %6, 4
%8 = add i32 %7, 12
%9 = trunc i64 %1 to i16
%10 = call i16 @htons(i16 %9)
%11 = zext i16 %10 to i32
%12 = bitcast i64* %sv_0 to i32*
store i32 %11, i32* %12, align 8
%13 = add i64 %3, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = or i64 %2, 4
%17 = inttoptr i64 %16 to i32*
store i32 %15, i32* %17, align 4
%18 = load i32, i32* %5, align 4
%19 = add i64 %2, 8
%20 = inttoptr i64 %19 to i32*
store i32 %18, i32* %20, align 8
%21 = icmp ult i32 %8, 1024
%spec.select = select i1 %21, i32 %8, i32 1024
%22 = trunc i64 %arg1 to i32
%23 = call i64 @FUNC(i64 1, i64 %2, i32 %22, i32 %spec.select)
ret i64 %23
uselistorder i64 %2, { 0, 2, 1 }
} | 0 |
BinRealVul | qemu_bh_delete_1232 | qemu_bh_delete | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
store i32 0, i32* %arg1, align 4
%1 = add i64 %0, 4
%2 = inttoptr i64 %1 to i32*
store i32 1, i32* %2, align 4
ret i64 %0
uselistorder i64 %0, { 1, 0 }
} | 0 |
BinRealVul | ssiProcessExecCommand_11235 | ssiProcessExecCommand | 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
%1 = icmp eq i1 %0, false
%arg3.off = add i64 %arg3, -4
%2 = icmp ult i64 %arg3.off, 1020
%or.cond8 = icmp eq i1 %1, %2
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond8, label LBL_1, label LBL_10
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %arg2, 4
%5 = add i64 %3, 8
%6 = call i64 @FUNC(i64 %5, i64 %4, i64 %arg3.off)
%7 = add i64 %3, 4
%8 = add i64 %7, %arg3
%9 = inttoptr i64 %8 to i8*
store i8 0, i8* %9, align 1
%10 = inttoptr i64 %5 to i8*
%11 = call i8* @strchr(i8* %10, i32 61)
%12 = icmp eq i8* %11, null
%13 = icmp eq i1 %12, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %13, label LBL_2, label LBL_10
LBL_2:
store i8 0, i8* %11, align 1
%14 = call i64 @FUNC(i64 %5)
%15 = ptrtoint i8* %11 to i64
%16 = add i64 %15, 1
%17 = call i64 @FUNC(i64 %16)
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18, align 1
%20 = icmp ne i8 %19, 39
%21 = icmp eq i8 %19, 34
%22 = icmp eq i1 %21, false
%or.cond = icmp eq i1 %20, %22
%23 = add i64 %17, 1
%24 = inttoptr i64 %23 to i8*
%sv_0.0 = select i1 %or.cond, i8* %18, i8* %24
%25 = ptrtoint i8* %sv_0.0 to i64
%26 = call i64 @FUNC(i64 %25)
%27 = icmp eq i64 %26, 0
br i1 %27, label LBL_5, label LBL_3
LBL_3:
%28 = add i64 %26, -1
%29 = add i64 %28, %25
%30 = inttoptr i64 %29 to i8*
%31 = load i8, i8* %30, align 1
%32 = icmp ne i8 %31, 39
%33 = icmp eq i8 %31, 34
%34 = icmp eq i1 %33, false
%or.cond6 = icmp eq i1 %32, %34
br i1 %or.cond6, label LBL_5, label LBL_4
LBL_4:
store i8 0, i8* %30, align 1
br label LBL_5
LBL_5:
%35 = call i64 @FUNC(i64 %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0))
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
br i1 %37, label LBL_8, label LBL_6
LBL_6:
%38 = call i64 @FUNC(i64 %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0))
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label LBL_8, label LBL_7
LBL_7:
%41 = call i64 @FUNC(i64 %14, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
%42 = trunc i64 %41 to i32
%43 = icmp eq i32 %42, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %43, label LBL_8, label LBL_10
LBL_8:
%44 = call i64 @FUNC(i64 %25)
%45 = icmp ult i64 %44, 257
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %45, label LBL_9, label LBL_10
LBL_9:
%46 = add i64 %3, 1032
%47 = call i64 @FUNC(i64 %46, i64 %25)
store i64 %3, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %25, { 1, 2, 0, 3 }
uselistorder i8* %11, { 1, 0, 2 }
uselistorder i64 %3, { 0, 1, 3, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i64 (i64, i8*)* @osStrcasecmp, { 2, 1, 0 }
uselistorder i64 -1, { 1, 0, 2 }
uselistorder i64 (i64)* @osStrlen, { 1, 0 }
uselistorder i64 (i64)* @strTrimWhitespace, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_10, { 4, 0, 1, 2, 3 }
uselistorder label LBL_5, { 1, 0, 2 }
} | 1 |
BinRealVul | ivf_write_trailer_1029 | ivf_write_trailer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp slt i32 %9, 2
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %4)
%12 = call i64 @FUNC(i64 %4, i64 24, i64 0)
%13 = load i32, i32* %8, align 4
%14 = add i64 %7, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = mul i32 %16, %13
%18 = add i32 %13, -1
%19 = ashr i32 %17, 31
%20 = zext i32 %17 to i64
%21 = zext i32 %19 to i64
%22 = mul i64 %21, 4294967296
%23 = or i64 %22, %20
%24 = zext i32 %18 to i64
%25 = sdiv i64 %23, %24
%sext = mul i64 %25, 4294967296
%26 = ashr exact i64 %sext, 32
%27 = call i64 @FUNC(i64 %4, i64 %26)
%28 = call i64 @FUNC(i64 %4, i64 %11, i64 0)
br label LBL_3
LBL_3:
ret i64 0
uselistorder i32 %13, { 1, 0 }
uselistorder i64 %4, { 1, 0, 3, 2, 4 }
uselistorder i64 (i64, i64, i64)* @avio_seek, { 1, 0 }
} | 0 |
BinRealVul | bdrv_requests_pending_all_14864 | bdrv_requests_pending_all | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i64
%storemerge12 = load i64, i64* @gv_0, align 8
%0 = icmp eq i64 %storemerge12, 0
%1 = icmp eq i1 %0, false
store i64 %storemerge12, i64* %storemerge13.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %1, label LBL_1, label LBL_3
LBL_1:
%storemerge13.reload = load i64, i64* %storemerge13.reg2mem
%2 = call i64 @FUNC(i64 %storemerge13.reload)
%3 = trunc i64 %2 to i8
%4 = icmp eq i8 %3, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %4, label LBL_2, label LBL_3
LBL_2:
%5 = add i64 %storemerge13.reload, 8
%6 = inttoptr i64 %5 to i64*
%storemerge1 = load i64, i64* %6, align 8
%7 = icmp eq i64 %storemerge1, 0
%8 = icmp eq i1 %7, false
store i64 %storemerge1, i64* %storemerge13.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %8, label LBL_1, label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge13.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_3, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | gb_svc_input_create_18002 | gb_svc_input_create | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 -12, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = inttoptr i64 %0 to i64*
store i64 %4, i64* %5, align 8
%6 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 %4)
%7 = add i64 %3, 8
%8 = inttoptr i64 %7 to i64*
store i64 %6, i64* %8, align 8
%9 = icmp eq i64 %6, 0
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i64*
store i64 %6, i64* %11, align 8
%12 = add i64 %0, 16
%13 = inttoptr i64 %12 to i64*
store i64 %3, i64* %13, align 8
%14 = call i64 @FUNC(i64 %0, i64 %3)
%15 = call i64 @FUNC(i64 %0, i64 0, i64 1)
store i64 %0, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%16 = add i64 %3, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18)
store i64 -12, 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 %6, { 1, 0, 2 }
uselistorder i64 %3, { 2, 0, 1, 3, 4 }
uselistorder i64 %0, { 0, 2, 1, 3, 4, 5, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | init_tiles_86 | init_tiles | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.118.reg2mem = alloca i32
%storemerge19.reg2mem = alloca i32
%.reg2mem53 = alloca i32
%.reg2mem51 = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32
%.reg2mem49 = alloca i32
%.reg2mem47 = alloca i32
%.reg2mem45 = alloca i32
%storemerge4.reg2mem = alloca i64
%storemerge58.reg2mem = alloca i64
%indvars.iv23.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%storemerge314.reg2mem = alloca i32
%.reg2mem43 = alloca i64
%.reg2mem41 = alloca i64
%sv_0.015.reg2mem = alloca i32
%sv_1.016.reg2mem = alloca i32
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%sv_2 = alloca i64, align 8
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = zext i32 %5 to i64
%7 = and i64 %1, 4294967295
%8 = call i64 @FUNC(i64 %7, i64 %6)
%9 = trunc i64 %8 to i32
%10 = add i64 %2, 20
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 4
%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 = zext i32 %14 to i64
%19 = zext i32 %17 to i64
%20 = call i64 @FUNC(i64 %19, i64 %18)
%21 = trunc i64 %20 to i32
%22 = add i64 %2, 24
%23 = inttoptr i64 %22 to i32*
store i32 %21, i32* %23, align 4
%sext = mul i64 %20, 4294967296
%24 = ashr exact i64 %sext, 29
%25 = load i32, i32* %11, align 4
%26 = sext i32 %25 to i64
%27 = call i64 @FUNC(i64 %26, i64 %24)
%28 = add i64 %2, 32
%29 = inttoptr i64 %28 to i64*
store i64 %27, i64* %29, align 8
%30 = icmp eq i64 %27, 0
%31 = icmp eq i1 %30, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %31, label LBL_1, label LBL_20
LBL_1:
%32 = load i32, i32* %23, align 4
%33 = icmp eq i32 %32, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %33, label LBL_20, label LBL_2
LBL_2:
%34 = ptrtoint i64* %sv_2 to i64
%35 = add i64 %2, 40
%36 = add i64 %2, 48
%37 = bitcast i64* %rdi to i32*
%38 = add i64 %2, 16
%39 = inttoptr i64 %38 to i32*
%40 = add i64 %2, 72
%41 = inttoptr i64 %40 to i64*
%42 = add i64 %2, 56
%43 = inttoptr i64 %42 to i64*
%44 = add i64 %2, 64
%45 = inttoptr i64 %44 to i64*
%46 = add i64 %34, -16
%47 = inttoptr i64 %46 to i64*
%.pre = load i32, i32* %11, align 4
store i32 %32, i32* %.reg2mem51
store i32 %.pre, i32* %.reg2mem53
store i32 0, i32* %storemerge19.reg2mem
store i32 0, i32* %sv_0.118.reg2mem
br label LBL_18
LBL_3:
%sv_0.015.reload = load i32, i32* %sv_0.015.reg2mem
%.reload = load i32, i32* %.reg2mem
%48 = load i64, i64* %29, align 8
%49 = sext i32 %sv_0.015.reload to i64
%50 = mul i64 %49, 8
%51 = add i64 %50, %48
%52 = sext i32 %.reload to i64
%53 = call i64 @FUNC(i64 %52, i64 32)
%54 = inttoptr i64 %51 to i64*
store i64 %53, i64* %54, align 8
%55 = icmp eq i64 %53, 0
%56 = icmp eq i1 %55, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %56, label LBL_4, label LBL_20
LBL_4:
%sv_1.016.reload = load i32, i32* %sv_1.016.reg2mem
%57 = load i32, i32* %39, align 4
%58 = icmp eq i32 %57, 0
%.pre30 = add i32 %sv_1.016.reload, 1
store i64 %53, i64* %.reg2mem41
store i64 0, i64* %.reg2mem43
store i32 0, i32* %storemerge314.reg2mem
store i32 0, i32* %.reg2mem45
br i1 %58, label LBL_15, label LBL_5
LBL_5:
%storemerge314.reload = load i32, i32* %storemerge314.reg2mem
%.reload44 = load i64, i64* %.reg2mem43
%.reload42 = load i64, i64* %.reg2mem41
%59 = mul i64 %.reload44, 32
%60 = add i64 %59, %.reload42
%61 = load i32, i32* %4, align 4
%62 = mul i32 %61, %sv_1.016.reload
%63 = add i64 %60, 16
%64 = inttoptr i64 %63 to i32*
store i32 %62, i32* %64, align 4
%65 = inttoptr i64 %60 to i32*
store i32 %62, i32* %65, align 4
%66 = load i32, i32* %37, align 8
%67 = load i32, i32* %4, align 4
%68 = mul i32 %67, %.pre30
%69 = sub i32 %66, %68
%70 = xor i32 %68, %66
%71 = xor i32 %69, %66
%72 = and i32 %71, %70
%73 = icmp slt i32 %72, 0
%74 = icmp eq i32 %69, 0
%75 = icmp slt i32 %69, 0
%76 = icmp eq i1 %75, %73
%77 = icmp eq i1 %74, false
%78 = icmp eq i1 %76, %77
%79 = select i1 %78, i32 %68, i32 %66
%80 = add i64 %60, 20
%81 = inttoptr i64 %80 to i32*
store i32 %79, i32* %81, align 4
%82 = add i64 %60, 4
%83 = inttoptr i64 %82 to i32*
store i32 %79, i32* %83, align 4
%84 = load i32, i32* %13, align 4
%85 = mul i32 %84, %storemerge19.reload
%86 = add i64 %60, 24
%87 = inttoptr i64 %86 to i32*
store i32 %85, i32* %87, align 4
%88 = add i64 %60, 8
%89 = inttoptr i64 %88 to i32*
store i32 %85, i32* %89, align 4
%90 = load i32, i32* %16, align 4
%91 = load i32, i32* %13, align 4
%92 = mul i32 %91, %.pre29
%93 = sub i32 %90, %92
%94 = xor i32 %92, %90
%95 = xor i32 %93, %90
%96 = and i32 %95, %94
%97 = icmp slt i32 %96, 0
%98 = icmp eq i32 %93, 0
%99 = icmp slt i32 %93, 0
%100 = icmp eq i1 %99, %97
%101 = icmp eq i1 %98, false
%102 = icmp eq i1 %100, %101
%103 = select i1 %102, i32 %92, i32 %90
%104 = add i64 %60, 28
%105 = inttoptr i64 %104 to i32*
store i32 %103, i32* %105, align 4
%106 = add i64 %60, 12
%107 = inttoptr i64 %106 to i32*
store i32 %103, i32* %107, align 4
%108 = icmp slt i32 %storemerge314.reload, 1
store i64 0, i64* %indvars.iv23.reg2mem
br i1 %108, label LBL_9, label LBL_8
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%109 = load i64, i64* %41, align 8
%110 = add i64 %109, %124
%111 = inttoptr i64 %110 to i32*
%112 = load i32, i32* %111, align 4
%113 = add nuw nsw i64 %indvars.iv.reload, %125
%114 = mul i64 %113, 4
%115 = add i64 %114, %60
%116 = inttoptr i64 %115 to i32*
%117 = load i32, i32* %116, align 4
%118 = zext i32 %112 to i64
%119 = zext i32 %117 to i64
%120 = call i64 @FUNC(i64 %119, i64 %118)
%121 = trunc i64 %120 to i32
%122 = add i64 %114, %63
%123 = inttoptr i64 %122 to i32*
store i32 %121, i32* %123, align 4
store i32 %121, i32* %116, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 2
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_7, label LBL_6
LBL_7:
%indvars.iv.next24 = add nuw nsw i64 %indvars.iv23.reload, 1
%exitcond25 = icmp eq i64 %indvars.iv.next24, 2
store i64 %indvars.iv.next24, i64* %indvars.iv23.reg2mem
br i1 %exitcond25, label LBL_9, label LBL_8
LBL_8:
%indvars.iv23.reload = load i64, i64* %indvars.iv23.reg2mem
%124 = mul i64 %indvars.iv23.reload, 4
%125 = mul i64 %indvars.iv23.reload, 2
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_6
LBL_9:
%126 = load i64, i64* %43, align 8
store i64 %126, i64* %rdi, align 8
%127 = icmp eq i32 %storemerge314.reload, 0
store i64 1, i64* %storemerge58.reg2mem
store i64 1, i64* %storemerge4.reg2mem
br i1 %127, label LBL_11, label LBL_10
LBL_10:
%128 = load i64, i64* %41, align 8
%129 = add i64 %128, 4
%130 = inttoptr i64 %129 to i32*
%131 = load i32, i32* %130, align 4
%132 = urem i32 %131, 32
%133 = shl i32 1, %132
%storemerge2 = zext i32 %133 to i64
%134 = inttoptr i64 %128 to i32*
%135 = load i32, i32* %134, align 4
%136 = urem i32 %135, 32
%137 = shl i32 1, %136
%rdx.0 = zext i32 %137 to i64
store i64 %storemerge2, i64* %storemerge58.reg2mem
store i64 %rdx.0, i64* %storemerge4.reg2mem
br label LBL_11
LBL_11:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%storemerge58.reload = load i64, i64* %storemerge58.reg2mem
%138 = load i64, i64* %45, align 8
%139 = mul i64 %.reload44, 4
%140 = add i64 %138, %139
%141 = inttoptr i64 %140 to i32*
%142 = load i32, i32* %141, align 4
store i64 %126, i64* %47, align 8
%143 = call i64 @FUNC(i64 %60, i64 %35, i64 %36, i32 %142, i64 %storemerge4.reload, i64 %storemerge58.reload)
%144 = trunc i64 %143 to i32
%145 = icmp eq i32 %144, 0
br i1 %145, label LBL_13, label LBL_12
LBL_12:
%146 = and i64 %143, 4294967295
store i64 %146, i64* %rax.0.reg2mem
br label LBL_20
LBL_13:
%147 = add i32 %storemerge314.reload, 1
%148 = load i32, i32* %39, align 4
%149 = zext i32 %148 to i64
%150 = sext i32 %147 to i64
%151 = icmp slt i64 %150, %149
store i32 %148, i32* %.reg2mem45
br i1 %151, label LBL_13.LBL_5_crit_edge, label LBL_15
LBL_14:
%.pre27 = load i64, i64* %54, align 8
store i64 %.pre27, i64* %.reg2mem41
store i64 %150, i64* %.reg2mem43
store i32 %147, i32* %storemerge314.reg2mem
br label LBL_5
LBL_15:
%.reload46 = load i32, i32* %.reg2mem45
%152 = add i32 %sv_0.015.reload, 1
%153 = load i32, i32* %11, align 4
%154 = zext i32 %153 to i64
%155 = sext i32 %.pre30 to i64
%156 = icmp slt i64 %155, %154
store i32 %.reload46, i32* %.reg2mem
store i32 %.pre30, i32* %sv_1.016.reg2mem
store i32 %152, i32* %sv_0.015.reg2mem
br i1 %156, label LBL_3, label LBL_16
LBL_16:
%.pre28 = load i32, i32* %23, align 4
store i32 %.pre28, i32* %.reg2mem47
store i32 %153, i32* %.reg2mem49
store i32 %152, i32* %sv_0.0.lcssa.reg2mem
br label LBL_17
LBL_17:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%.reload50 = load i32, i32* %.reg2mem49
%.reload48 = load i32, i32* %.reg2mem47
%157 = zext i32 %.reload48 to i64
%158 = sext i32 %.pre29 to i64
%159 = icmp slt i64 %158, %157
store i32 %.reload48, i32* %.reg2mem51
store i32 %.reload50, i32* %.reg2mem53
store i32 %.pre29, i32* %storemerge19.reg2mem
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.118.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %159, label LBL_18, label LBL_20
LBL_18:
%sv_0.118.reload = load i32, i32* %sv_0.118.reg2mem
%storemerge19.reload = load i32, i32* %storemerge19.reg2mem
%.reload54 = load i32, i32* %.reg2mem53
%.reload52 = load i32, i32* %.reg2mem51
%160 = icmp eq i32 %.reload54, 0
%.pre29 = add i32 %storemerge19.reload, 1
store i32 %.reload52, i32* %.reg2mem47
store i32 0, i32* %.reg2mem49
store i32 %sv_0.118.reload, i32* %sv_0.0.lcssa.reg2mem
br i1 %160, label LBL_17, label LBL_3.lr.ph
LBL_19:
%.pre26 = load i32, i32* %39, align 4
store i32 %.pre26, i32* %.reg2mem
store i32 0, i32* %sv_1.016.reg2mem
store i32 %sv_0.118.reload, i32* %sv_0.015.reg2mem
br label LBL_3
LBL_20:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.pre29, { 1, 2, 0 }
uselistorder i64 %indvars.iv23.reload, { 2, 1, 0 }
uselistorder i64 %114, { 1, 0 }
uselistorder i32 %93, { 1, 2, 0 }
uselistorder i32 %92, { 1, 0, 2 }
uselistorder i32 %90, { 2, 0, 1, 3 }
uselistorder i32 %69, { 1, 2, 0 }
uselistorder i32 %68, { 1, 0, 2 }
uselistorder i32 %66, { 2, 0, 1, 3 }
uselistorder i64 %60, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9 }
uselistorder i64 %.reload44, { 1, 0 }
uselistorder i32 %.pre30, { 0, 2, 1 }
uselistorder i32 %sv_1.016.reload, { 1, 0 }
uselistorder i32* %39, { 0, 2, 1 }
uselistorder i32* %11, { 1, 0, 2, 3 }
uselistorder i64 %2, { 1, 2, 0, 3, 10, 11, 4, 5, 6, 7, 8, 9 }
uselistorder i32* %.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_1.016.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.015.reg2mem, { 2, 1, 0 }
uselistorder i64* %.reg2mem41, { 2, 0, 1 }
uselistorder i64* %.reg2mem43, { 2, 0, 1 }
uselistorder i32* %storemerge314.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i64* %indvars.iv23.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge58.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem47, { 1, 0, 2 }
uselistorder i32* %.reg2mem49, { 1, 0, 2 }
uselistorder i32* %sv_0.0.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 5, 2, 3, 4 }
uselistorder i64 32, { 0, 2, 3, 1 }
uselistorder i64 (i64, i64)* @av_malloc_array, { 1, 0 }
uselistorder i64 4, { 0, 3, 1, 2, 4, 5 }
uselistorder i64 (i64, i64)* @ff_jpeg2000_ceildiv, { 1, 0 }
uselistorder label LBL_20, { 0, 4, 1, 2, 3 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | patch_call_2747 | patch_call | define i64 @FUNC(i32* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i32, align 4
%1 = trunc i64 %arg2 to i32
%2 = sub i32 -5, %1
%3 = add i32 %2, %arg3
%4 = zext i32 %3 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
store i32 %6, i32* %sv_0, align 4
%7 = call i64 @FUNC(i64 %0, i64 %arg2, i64 232)
%8 = add i64 %arg2, 1
%9 = call i64 @FUNC(i64 %0, i64 %8, i32* nonnull %sv_0, i64 4, i64 1)
ret i64 %9
} | 0 |
BinRealVul | GENERAL_NAME_cmp_6428 | GENERAL_NAME_cmp | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = icmp ne i64* %arg1, null
%4 = icmp ne i64* %arg2, null
%5 = trunc i64 %1 to i32
%or.cond.not = icmp eq i1 %3, %4
%6 = trunc i64 %2 to i32
%7 = icmp eq i32 %5, %6
%or.cond3 = icmp eq i1 %or.cond.not, %7
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %or.cond3, label LBL_1, label LBL_10
LBL_1:
%8 = ptrtoint i64* %arg2 to i64
%9 = ptrtoint i64* %arg1 to i64
%10 = and i64 %1, 4294967295
store i64 %10, i64* @0, align 8
store i64 4294967295, i64* %sv_0.0.reg2mem
switch i32 %5, label LBL_9 [
i32 1, label LBL_2
i32 2, label LBL_3
i32 3, label LBL_4
i32 4, label LBL_5
i32 5, label LBL_5
i32 6, label LBL_5
i32 7, label LBL_6
i32 8, label LBL_7
i32 9, label LBL_8
]
LBL_2:
%11 = add i64 %8, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %9, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16, i64 %13)
store i64 %17, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_3:
%18 = add i64 %8, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = add i64 %9, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %23, i64 %20)
store i64 %24, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_4:
%25 = add i64 %8, 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = add i64 %9, 8
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %30, i64 %27)
store i64 %31, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_5:
%32 = add i64 %8, 8
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = add i64 %9, 8
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = call i64 @FUNC(i64 %37, i64 %34)
store i64 %38, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_6:
%39 = add i64 %8, 8
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = add i64 %9, 8
%43 = inttoptr i64 %42 to i64*
%44 = load i64, i64* %43, align 8
%45 = call i64 @FUNC(i64 %44, i64 %41)
store i64 %45, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_7:
%46 = add i64 %8, 8
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
%49 = add i64 %9, 8
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = call i64 @FUNC(i64 %51, i64 %48)
store i64 %52, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_8:
%53 = add i64 %8, 8
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = add i64 %9, 8
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = call i64 @FUNC(i64 %58, i64 %55)
store i64 %59, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%60 = and i64 %sv_0.0.reload, 4294967295
store i64 %60, i64* %storemerge.reg2mem
br label LBL_10
LBL_10:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %9, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %8, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 7, 6, 5, 4, 3, 2, 1, 8 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64)* @ASN1_STRING_cmp, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 0 |
BinRealVul | SFS_Identifier_6968 | SFS_Identifier | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
%5 = icmp eq i1 %4, false
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_4, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %9, i64 1)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = add i64 %6, 16
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %15)
%17 = add i64 %16, 4294967295
%18 = and i64 %17, 4294967295
%19 = call i64 @FUNC(i64 %18)
%20 = load i64, i64* %8, align 8
%21 = and i64 %19, 4294967295
%22 = call i64 @FUNC(i64 %20, i64 %21)
%23 = load i64, i64* %14, align 8
%24 = and i64 %22, 4294967295
%25 = call i64 @FUNC(i64 %23, i64 %24)
%26 = call i64 @FUNC(i64 %6, i64 %25)
store i64 %26, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%27 = load i64, i64* %8, align 8
%28 = call i64 @FUNC(i64 %27, i64* nonnull %sv_0, i64 500)
%29 = call i64 @FUNC(i64* nonnull %sv_0)
%30 = add i64 %6, 16
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = call i64 @FUNC(i64 %32, i64 %29)
%34 = ptrtoint i64* %sv_0 to i64
%35 = call i64 @FUNC(i64 %6, i64 %34)
store i64 %35, 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* %8, { 1, 0, 2 }
uselistorder i64 %6, { 1, 2, 0, 3, 4 }
uselistorder i64* %sv_0, { 2, 0, 1 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64, i64)* @SFS_AddString, { 1, 0 }
uselistorder i64 (i64, i64)* @gf_bs_read_int, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 3, 4, 0 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 0 |
BinRealVul | prepare_4677 | prepare | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_1.1.lcssa.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%sv_2.15.reg2mem = alloca i32
%sv_1.16.reg2mem = alloca i64
%sv_0.07.reg2mem = alloca i32
%.reg2mem = alloca i32
%0 = inttoptr i64 %arg2 to %_IO_FILE*
call void @rewind(%_IO_FILE* %0)
%1 = call i64* @malloc(i32 12)
%2 = ptrtoint i64* %1 to i64
%3 = call i64 @FUNC(i64 %arg2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i32 %4, i32* %.reg2mem
store i32 0, i32* %sv_0.07.reg2mem
store i64 %2, i64* %sv_1.16.reg2mem
store i32 0, i32* %sv_2.15.reg2mem
store i64 %2, i64* %sv_1.1.lcssa.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %6, label LBL_1, label LBL_4
LBL_1:
%sv_2.15.reload = load i32, i32* %sv_2.15.reg2mem
%sv_1.16.reload = load i64, i64* %sv_1.16.reg2mem
%sv_0.07.reload = load i32, i32* %sv_0.07.reg2mem
%.reload = load i32, i32* %.reg2mem
%7 = icmp eq i32 %sv_0.07.reload, %sv_2.15.reload
%8 = icmp eq i1 %7, false
store i32 %sv_2.15.reload, i32* %sv_2.0.reg2mem
store i64 %sv_1.16.reload, i64* %sv_1.0.reg2mem
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = sext i32 %sv_2.15.reload to i64
%10 = mul nsw i64 %9, 3
%11 = udiv i64 %10, 2
%12 = trunc i64 %11 to i32
%13 = inttoptr i64 %sv_1.16.reload to i64*
%.tr = trunc i64 %11 to i32
%14 = mul i32 %.tr, 4
%15 = add i32 %14, 12
%16 = call i64* @realloc(i64* %13, i32 %15)
%17 = ptrtoint i64* %16 to i64
store i32 %12, i32* %sv_2.0.reg2mem
store i64 %17, i64* %sv_1.0.reg2mem
br label LBL_3
LBL_3:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%18 = add i32 %sv_0.07.reload, 1
%19 = sext i32 %18 to i64
%20 = mul i64 %19, 4
%21 = add i64 %sv_1.0.reload, %20
%22 = inttoptr i64 %21 to i32*
store i32 %.reload, i32* %22, align 4
%23 = call i64 @FUNC(i64 %arg2)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
store i32 %24, i32* %.reg2mem
store i32 %18, i32* %sv_0.07.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.16.reg2mem
store i32 %sv_2.0.reload, i32* %sv_2.15.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.lcssa.reg2mem
store i32 %18, i32* %sv_0.0.lcssa.reg2mem
br i1 %26, label LBL_1, label LBL_4
LBL_4:
%sext = mul i64 %arg1, 4294967296
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%sv_1.1.lcssa.reload = load i64, i64* %sv_1.1.lcssa.reg2mem
%27 = load i64, i64* @gv_0, align 8
%28 = ashr exact i64 %sext, 30
%29 = add i64 %27, %28
%30 = inttoptr i64 %29 to i32*
store i32 %sv_0.0.lcssa.reload, i32* %30, align 4
%31 = load i64, i64* @gv_1, align 8
%32 = ashr exact i64 %sext, 29
%33 = add i64 %31, %32
%34 = inttoptr i64 %33 to i64*
store i64 %sv_1.1.lcssa.reload, i64* %34, align 8
ret i64 %sv_1.1.lcssa.reload
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %sv_1.0.reload, { 0, 2, 1 }
uselistorder i64 %sv_1.16.reload, { 1, 0 }
uselistorder i32 %sv_2.15.reload, { 2, 0, 1 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.07.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.16.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.15.reg2mem, { 2, 0, 1 }
uselistorder i32 0, { 4, 0, 1, 2, 3 }
uselistorder i64 (i64)* @readhash, { 1, 0 }
uselistorder i32 12, { 1, 0 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | aix_partition_7573 | aix_partition | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%.reg2mem23 = alloca i32
%storemerge511.reg2mem = alloca i32
%.reg2mem21 = alloca i64
%.reg2mem = alloca i32
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%sv_2.212.reg2mem = alloca i32
%sv_1.213.reg2mem = alloca i32
%sv_0.114.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i64
%sv_4.118.reg2mem = alloca i32
%storemerge719.reg2mem = alloca i32
%sv_5.0.reg2mem = alloca i32
%sv_6.18.reg2mem = alloca i32
%sv_7.19.reg2mem = alloca i32
%sv_8.110.reg2mem = alloca i32
%sv_8.0.reg2mem = alloca i32
%sv_7.0.reg2mem = alloca i32
%sv_6.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_9 = alloca i64, align 8
%sv_10 = alloca i32, align 4
%4 = bitcast i32* %sv_10 to i64*
%5 = call i64 @FUNC(i64 %3, i64 7, i64* nonnull %4)
%6 = icmp eq i64 %5, 0
store i32 0, i32* %sv_8.110.reg2mem
store i32 0, i32* %sv_7.19.reg2mem
store i32 0, i32* %sv_6.18.reg2mem
store i32 0, i32* %sv_5.0.reg2mem
br i1 %6, label LBL_7, label LBL_1
LBL_1:
%7 = inttoptr i64 %5 to i16*
%8 = load i16, i16* %7, align 2
%9 = zext i16 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i16
%12 = sext i16 %11 to i32
%13 = icmp eq i16 %11, 1
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = add i64 %5, 2
%16 = inttoptr i64 %15 to i16*
%17 = load i16, i16* %16, align 2
%18 = zext i16 %17 to i64
%19 = call i64 @FUNC(i64 %18)
%20 = trunc i64 %19 to i32
%21 = urem i32 %20, 32
%22 = icmp eq i32 %21, 0
%23 = shl i32 1, %21
%phitmp = udiv i32 %23, 512
%rdx.0 = select i1 %22, i32 0, i32 %phitmp
%24 = urem i32 %12, 65536
%25 = bitcast i64* %sv_9 to i8*
%26 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %25, i32 64, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0), i32 %24)
%27 = add i64 %5, 4
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = zext i32 %29 to i64
%31 = call i64 @FUNC(i64 %30)
%32 = trunc i64 %31 to i32
%33 = add i64 %5, 8
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = zext i32 %35 to i64
%37 = call i64 @FUNC(i64 %36)
%38 = trunc i64 %37 to i32
store i32 %rdx.0, i32* %sv_6.0.reg2mem
store i32 %38, i32* %sv_7.0.reg2mem
store i32 %32, i32* %sv_8.0.reg2mem
br label LBL_4
LBL_3:
%39 = urem i32 %12, 65536
%40 = zext i32 %39 to i64
%41 = bitcast i64* %sv_9 to i8*
%42 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %41, i32 64, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_1, i64 0, i64 0), i64 %40)
store i32 0, i32* %sv_6.0.reg2mem
store i32 0, i32* %sv_7.0.reg2mem
store i32 0, i32* %sv_8.0.reg2mem
br label LBL_4
LBL_4:
%sv_8.0.reload = load i32, i32* %sv_8.0.reg2mem
%sv_7.0.reload = load i32, i32* %sv_7.0.reg2mem
%sv_6.0.reload = load i32, i32* %sv_6.0.reg2mem
%43 = call i64 @FUNC(i64 %3, i64* nonnull %sv_9, i64 4096)
%44 = load i32, i32* %sv_10, align 4
%45 = urem i32 %44, 256
%46 = zext i32 %45 to i64
%47 = call i64 @FUNC(i64 %46)
%48 = icmp eq i32 %sv_7.0.reload, 0
store i32 %sv_8.0.reload, i32* %sv_8.110.reg2mem
store i32 0, i32* %sv_7.19.reg2mem
store i32 %sv_6.0.reload, i32* %sv_6.18.reg2mem
store i32 0, i32* %sv_5.0.reg2mem
br i1 %48, label LBL_7, label LBL_5
LBL_5:
%49 = zext i32 %sv_7.0.reload to i64
%50 = call i64 @FUNC(i64 %3, i64 %49, i64* nonnull %4)
%51 = icmp eq i64 %50, 0
store i32 %sv_8.0.reload, i32* %sv_8.110.reg2mem
store i32 %sv_7.0.reload, i32* %sv_7.19.reg2mem
store i32 %sv_6.0.reload, i32* %sv_6.18.reg2mem
store i32 0, i32* %sv_5.0.reg2mem
br i1 %51, label LBL_7, label LBL_6
LBL_6:
%52 = inttoptr i64 %50 to i16*
%53 = load i16, i16* %52, align 2
%54 = zext i16 %53 to i64
%55 = call i64 @FUNC(i64 %54)
%56 = trunc i64 %55 to i32
%57 = load i32, i32* %sv_10, align 4
%58 = urem i32 %57, 256
%59 = zext i32 %58 to i64
%60 = call i64 @FUNC(i64 %59)
store i32 %sv_8.0.reload, i32* %sv_8.110.reg2mem
store i32 %sv_7.0.reload, i32* %sv_7.19.reg2mem
store i32 %sv_6.0.reload, i32* %sv_6.18.reg2mem
store i32 %56, i32* %sv_5.0.reg2mem
br label LBL_7
LBL_7:
%61 = add i64 %3, 4096
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = sext i32 %63 to i64
%65 = mul nsw i64 %64, 6
%66 = call i64 @FUNC(i64 %65, i64 0)
%67 = icmp eq i64 %66, 0
%68 = icmp eq i1 %67, false
store i64 0, i64* %storemerge.reg2mem
br i1 %68, label LBL_8, label LBL_32
LBL_8:
%sv_5.0.reload = load i32, i32* %sv_5.0.reg2mem
%sv_6.18.reload = load i32, i32* %sv_6.18.reg2mem
%sv_7.19.reload = load i32, i32* %sv_7.19.reg2mem
%69 = icmp eq i32 %sv_5.0.reload, 0
store i64 0, i64* %sv_3.0.reg2mem
br i1 %69, label LBL_14, label LBL_9
LBL_9:
%70 = add i32 %sv_7.19.reload, 1
%71 = zext i32 %70 to i64
%72 = call i64 @FUNC(i64 %3, i64 %71, i64* nonnull %4)
%73 = icmp eq i64 %72, 0
store i64 0, i64* %sv_3.0.reg2mem
br i1 %73, label LBL_14, label LBL_10
LBL_10:
%sv_8.110.reload = load i32, i32* %sv_8.110.reg2mem
%74 = add i32 %sv_8.110.reload, -33
%75 = add i32 %74, %sv_7.19.reload
%76 = zext i32 %75 to i64
%77 = call i64 @FUNC(i64 %3, i64 %76)
%78 = icmp ne i64 %77, 0
%79 = icmp sgt i32 %sv_5.0.reload, 0
%or.cond20 = icmp eq i1 %79, %78
store i32 0, i32* %storemerge719.reg2mem
store i32 0, i32* %sv_4.118.reg2mem
br i1 %or.cond20, label LBL_12, label LBL_13
LBL_11:
%sv_4.118.reload = load i32, i32* %sv_4.118.reg2mem
%80 = mul i64 %96, 2
%81 = add i64 %80, %72
%82 = inttoptr i64 %81 to i16*
%83 = load i16, i16* %82, align 2
%84 = zext i16 %83 to i64
%85 = call i64 @FUNC(i64 %84)
%86 = mul nsw i64 %96, 6
%87 = add i64 %86, %66
%88 = trunc i64 %85 to i16
%89 = inttoptr i64 %87 to i16*
store i16 %88, i16* %89, align 2
%90 = icmp ne i16 %88, 0
%91 = zext i1 %90 to i32
%spec.select = add i32 %sv_4.118.reload, %91
%92 = add i32 %storemerge719.reload, 1
%93 = icmp slt i32 %spec.select, %sv_5.0.reload
store i32 %92, i32* %storemerge719.reg2mem
store i32 %spec.select, i32* %sv_4.118.reg2mem
br i1 %93, label LBL_12, label LBL_13
LBL_12:
%storemerge719.reload = load i32, i32* %storemerge719.reg2mem
%94 = load i32, i32* %62, align 4
%95 = zext i32 %94 to i64
%96 = sext i32 %storemerge719.reload to i64
%97 = icmp slt i64 %96, %95
br i1 %97, label LBL_11, label LBL_13
LBL_13:
%98 = load i32, i32* %sv_10, align 4
%99 = urem i32 %98, 256
%100 = zext i32 %99 to i64
%101 = call i64 @FUNC(i64 %100)
store i64 %77, i64* %sv_3.0.reg2mem
br label LBL_14
LBL_14:
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%102 = add i32 %sv_7.19.reload, 17
%103 = zext i32 %102 to i64
%104 = call i64 @FUNC(i64 %3, i64 %103)
%105 = icmp eq i64 %104, 0
store i32 0, i32* %sv_0.2.reg2mem
br i1 %105, label LBL_31, label LBL_15
LBL_15:
%106 = inttoptr i64 %104 to i32*
%107 = load i32, i32* %106, align 4
%108 = urem i32 %107, 65536
%109 = zext i32 %108 to i64
%110 = call i64 @FUNC(i64 %109)
%111 = trunc i64 %110 to i32
%112 = add i64 %104, 16
%113 = inttoptr i64 %112 to i32*
%114 = load i32, i32* %113, align 4
%115 = zext i32 %114 to i64
%116 = call i64 @FUNC(i64 %115)
%117 = icmp sgt i32 %111, 0
store i32 0, i32* %sv_0.1.lcssa.reg2mem
br i1 %117, label LBL_16, label LBL_25
LBL_16:
%118 = trunc i64 %116 to i32
%119 = add i64 %104, 8
%120 = inttoptr i64 %119 to i64*
%121 = bitcast i64* %sv_9 to i8*
%wide.trip.count = and i64 %110, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
store i32 0, i32* %sv_0.114.reg2mem
store i32 1, i32* %sv_1.213.reg2mem
store i32 -1, i32* %sv_2.212.reg2mem
br label LBL_17
LBL_17:
%sv_2.212.reload = load i32, i32* %sv_2.212.reg2mem
%sv_0.114.reload = load i32, i32* %sv_0.114.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%122 = load i64, i64* %120, align 8
%123 = mul i64 %indvars.iv.reload, 4
%124 = add i64 %122, %123
%125 = inttoptr i64 %124 to i16*
%126 = load i16, i16* %125, align 2
%127 = zext i16 %126 to i64
%128 = call i64 @FUNC(i64 %127)
%129 = trunc i64 %128 to i32
%130 = icmp eq i32 %129, 0
%131 = icmp eq i1 %130, false
store i32 %sv_2.212.reload, i32* %sv_2.1.reg2mem
store i32 1, i32* %sv_1.1.reg2mem
store i32 %sv_0.114.reload, i32* %sv_0.0.reg2mem
br i1 %131, label LBL_18, label LBL_24
LBL_18:
%sv_1.213.reload = load i32, i32* %sv_1.213.reg2mem
%132 = add i64 %124, 2
%133 = inttoptr i64 %132 to i16*
%134 = load i16, i16* %133, align 2
%135 = zext i16 %134 to i64
%136 = call i64 @FUNC(i64 %135)
%137 = trunc i64 %136 to i32
%138 = add i32 %137, -1
%139 = load i32, i32* %62, align 4
%140 = icmp ugt i32 %138, %139
store i32 -1, i32* %sv_2.1.reg2mem
store i32 %sv_1.213.reload, i32* %sv_1.1.reg2mem
store i32 %sv_0.114.reload, i32* %sv_0.0.reg2mem
br i1 %140, label LBL_24, label LBL_19
LBL_19:
%141 = zext i32 %138 to i64
%142 = mul nuw nsw i64 %141, 6
%143 = add i64 %142, %66
%144 = add i64 %143, 2
%145 = inttoptr i64 %144 to i16*
%146 = load i16, i16* %145, align 2
%147 = add i16 %146, 1
store i16 %147, i16* %145, align 2
%148 = icmp eq i32 %129, 1
%149 = icmp eq i1 %148, false
store i32 %138, i32* %sv_2.0.reg2mem
store i32 1, i32* %sv_1.0.reg2mem
br i1 %149, label LBL_20, label LBL_21
LBL_20:
%150 = icmp eq i32 %138, %sv_2.212.reload
%151 = icmp eq i32 %sv_1.213.reload, %129
%or.cond = icmp eq i1 %151, %150
store i32 %sv_2.212.reload, i32* %sv_2.0.reg2mem
store i32 %sv_1.213.reload, i32* %sv_1.0.reg2mem
store i32 %sv_2.212.reload, i32* %sv_2.1.reg2mem
store i32 1, i32* %sv_1.1.reg2mem
store i32 %sv_0.114.reload, i32* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_21, label LBL_24
LBL_21:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%152 = inttoptr i64 %143 to i16*
%153 = load i16, i16* %152, align 2
%154 = zext i16 %153 to i32
%155 = icmp eq i32 %129, %154
%156 = icmp eq i1 %155, false
br i1 %156, label LBL_23, label LBL_22
LBL_22:
%157 = mul i32 %sv_6.18.reload, %154
%158 = trunc i64 %indvars.iv.reload to i32
%159 = add i32 %158, 1
%160 = sub i32 %159, %129
%161 = mul i32 %160, %sv_6.18.reload
%162 = add i32 %161, %118
%163 = zext i32 %157 to i64
%164 = zext i32 %162 to i64
%165 = and i64 %136, 4294967295
%166 = call i64 @FUNC(i64 %3, i64 %165, i64 %164, i64 %163)
%167 = mul i64 %141, 64
%168 = add i64 %167, %sv_3.0.reload
%169 = inttoptr i64 %168 to i8*
%170 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %121, i32 70, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i8* %169)
%171 = call i64 @FUNC(i64 %3, i64* nonnull %sv_9, i64 4096)
%172 = add i64 %143, 4
%173 = inttoptr i64 %172 to i8*
store i8 1, i8* %173, align 1
store i32 %sv_2.0.reload, i32* %sv_2.1.reg2mem
store i32 1, i32* %sv_1.1.reg2mem
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_24
LBL_23:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%174 = add i32 %sv_1.0.reload, 1
store i32 %sv_2.0.reload, i32* %sv_2.1.reg2mem
store i32 %174, i32* %sv_1.1.reg2mem
store i32 %sv_0.114.reload, i32* %sv_0.0.reg2mem
br label LBL_24
LBL_24:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.114.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.213.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.212.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %exitcond, label LBL_25, label LBL_17
LBL_25:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%175 = load i32, i32* %62, align 4
%176 = icmp eq i32 %175, 0
store i32 %175, i32* %.reg2mem
store i64 0, i64* %.reg2mem21
store i32 0, i32* %storemerge511.reg2mem
br i1 %176, label LBL_30, label LBL_26
LBL_26:
%storemerge511.reload = load i32, i32* %storemerge511.reg2mem
%.reload22 = load i64, i64* %.reg2mem21
%.reload = load i32, i32* %.reg2mem
%177 = mul nsw i64 %.reload22, 6
%178 = add i64 %177, %66
%179 = add i64 %178, 2
%180 = inttoptr i64 %179 to i16*
%181 = load i16, i16* %180, align 2
%182 = icmp eq i16 %181, 0
store i32 %.reload, i32* %.reg2mem23
br i1 %182, label LBL_29, label LBL_27
LBL_27:
%183 = add i64 %178, 4
%184 = inttoptr i64 %183 to i8*
%185 = load i8, i8* %184, align 1
%186 = icmp eq i8 %185, 0
%187 = icmp eq i1 %186, false
store i32 %.reload, i32* %.reg2mem23
br i1 %187, label LBL_29, label LBL_28
LBL_28:
%188 = mul i64 %.reload22, 64
%189 = add i64 %188, %sv_3.0.reload
%190 = zext i16 %181 to i64
%191 = call i64 @FUNC(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_3, i64 0, i64 0), i64 %189, i64 %190, i64 %189, i64 %2, i64 %1)
%.pre = load i32, i32* %62, align 4
store i32 %.pre, i32* %.reg2mem23
br label LBL_29
LBL_29:
%.reload24 = load i32, i32* %.reg2mem23
%192 = add i32 %storemerge511.reload, 1
%193 = zext i32 %.reload24 to i64
%194 = sext i32 %192 to i64
%195 = icmp slt i64 %194, %193
store i32 %.reload24, i32* %.reg2mem
store i64 %194, i64* %.reg2mem21
store i32 %192, i32* %storemerge511.reg2mem
br i1 %195, label LBL_26, label LBL_30
LBL_30:
%196 = call i64 @FUNC(i64 %104)
store i32 %sv_0.1.lcssa.reload, i32* %sv_0.2.reg2mem
br label LBL_31
LBL_31:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%197 = call i64 @FUNC(i64 %sv_3.0.reload)
%198 = call i64 @FUNC(i64 %66)
%199 = zext i32 %sv_0.2.reload to i64
store i64 %199, i64* %storemerge.reg2mem
br label LBL_32
LBL_32:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %.reload24, { 1, 0 }
uselistorder i64 %189, { 1, 0 }
uselistorder i32 %.reload, { 1, 0 }
uselistorder i64 %.reload22, { 1, 0 }
uselistorder i32 %sv_2.0.reload, { 1, 0 }
uselistorder i32 %138, { 1, 0, 2, 3 }
uselistorder i32 %sv_1.213.reload, { 1, 2, 0 }
uselistorder i32 %129, { 0, 2, 1, 3, 4 }
uselistorder i32 %sv_0.114.reload, { 3, 0, 1, 2 }
uselistorder i32 %sv_2.212.reload, { 0, 2, 3, 1 }
uselistorder i64 %104, { 1, 0, 2, 3, 4 }
uselistorder i64 %sv_3.0.reload, { 0, 2, 1 }
uselistorder i64 %96, { 2, 0, 1 }
uselistorder i32 %storemerge719.reload, { 1, 0 }
uselistorder i32 %sv_7.19.reload, { 0, 2, 1 }
uselistorder i32 %sv_5.0.reload, { 1, 2, 0 }
uselistorder i64 %66, { 3, 0, 1, 2, 4 }
uselistorder i32* %62, { 0, 1, 3, 2, 4 }
uselistorder i32 %21, { 1, 0 }
uselistorder i64* %4, { 1, 0, 2 }
uselistorder i32* %sv_10, { 2, 1, 0, 3 }
uselistorder i64 %3, { 4, 5, 6, 2, 3, 7, 1, 0, 8 }
uselistorder i32* %sv_6.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_7.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_8.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_8.110.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i32* %sv_7.19.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i32* %sv_6.18.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i32* %sv_5.0.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i32* %storemerge719.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_4.118.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.114.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.213.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.212.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.1.reg2mem, { 0, 5, 4, 1, 2, 3 }
uselistorder i32* %sv_1.1.reg2mem, { 0, 5, 4, 1, 2, 3 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 5, 4, 1, 2, 3 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem21, { 2, 0, 1 }
uselistorder i32* %storemerge511.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem23, { 0, 3, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64)* @kfree, { 2, 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 -1, { 0, 2, 1 }
uselistorder i64 6, { 2, 1, 0, 3 }
uselistorder i64 (i64)* @put_dev_sector, { 2, 1, 0 }
uselistorder i64 (i64, i64*, i64)* @strlcat, { 1, 0 }
uselistorder i64 4096, { 0, 2, 1 }
uselistorder i64 (i64)* @be32_to_cpu, { 2, 1, 0 }
uselistorder i64 4, { 1, 2, 0, 3 }
uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 2, 1, 0 }
uselistorder i32 64, { 1, 2, 0 }
uselistorder i64 2, { 1, 2, 3, 0, 4 }
uselistorder i16 1, { 1, 0 }
uselistorder i64 (i64)* @be16_to_cpu, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64*)* @read_part_sector, { 2, 1, 0 }
uselistorder label LBL_32, { 1, 0 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_24, { 3, 4, 0, 1, 2 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_7, { 1, 2, 3, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | h264_free_context_15051 | h264_free_context | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, 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 = mul i64 %indvars.iv.reload, 4
%3 = add i64 %2, %arg1
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = zext i32 %5 to i64
%8 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0), i64 %7, i64 %indvars.iv.reload, i64 %1)
br label LBL_3
LBL_3:
%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_4, label LBL_1
LBL_4:
%9 = icmp eq i64 %arg1, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_6, label LBL_5
LBL_5:
call void @__assert_fail(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_2, i64 0, i64 0), i32 35, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_3, i64 0, i64 0))
br label LBL_6
LBL_6:
%11 = add i64 %arg1, 128
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 305419896
br i1 %14, label LBL_8, label LBL_7
LBL_7:
call void @__assert_fail(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_2, i64 0, i64 0), i32 36, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_3, i64 0, i64 0))
br label LBL_8
LBL_8:
store i32 -2023406815, i32* %12, align 4
%15 = call i64 @FUNC(i64 %arg1)
ret i64 %15
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder i64 %arg1, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | GPMF_SizeofType_10562 | GPMF_SizeofType | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = and i64 %arg1, 4294967295
store i64 %0, i64* @0, align 8
%trunc = trunc i64 %arg1 to i32
store i64 0, i64* %sv_0.0.reg2mem
switch i32 %trunc, label LBL_17 [
i32 0, label LBL_1
i32 1, label LBL_2
i32 2, label LBL_3
i32 3, label LBL_4
i32 4, label LBL_5
i32 5, label LBL_6
i32 6, label LBL_7
i32 7, label LBL_8
i32 8, label LBL_9
i32 9, label LBL_10
i32 10, label LBL_11
i32 11, label LBL_12
i32 12, label LBL_13
i32 13, label LBL_14
i32 14, label LBL_15
i32 15, label LBL_16
]
LBL_1:
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_2:
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_3:
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_4:
store i64 2, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_5:
store i64 2, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_6:
store i64 4, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_7:
store i64 4, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_8:
store i64 4, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_9:
store i64 4, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_10:
store i64 4, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_11:
store i64 8, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_12:
store i64 8, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_13:
store i64 8, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_14:
store i64 8, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_15:
store i64 16, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_16:
store i64 16, i64* %sv_0.0.reg2mem
br label LBL_17
LBL_17:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64* %sv_0.0.reg2mem, { 0, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 17 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 8, { 3, 2, 1, 0 }
uselistorder i64 4, { 4, 3, 2, 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i32 1, { 1, 0 }
} | 0 |
BinRealVul | create_filter_18353 | create_filter | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i8* %arg4, i8* %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i8*
%0 = ptrtoint i8* %arg4 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%1 = and i64 %arg3, 4294967295
%2 = bitcast i64* %sv_2 to i8*
%3 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %2, i32 30, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %1, i8* %arg4)
%4 = call i64 @FUNC(i64 %0)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %arg6, i64 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i64 %0, i64 %0, i64 %arg6)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_11
LBL_2:
%8 = call i64 @FUNC(i64 %arg2, i64 %4, i64* nonnull %sv_2)
store i64 %8, i64* %arg1, align 8
%9 = icmp eq i64 %arg2, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 %arg6, i64 0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_2, i64 0, i64 0), i64 %0, i64 %0, i64 %arg6)
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_11
LBL_4:
%12 = call i32 @strcmp(i8* %arg4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_3, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
%15 = icmp eq i8* %arg5, null
%or.cond = or i1 %15, %14
store i8* %arg5, i8** %sv_0.0.reg2mem
store i64 %0, i64* %rdi.0.reg2mem
store i64 %0, i64* %r8.0.reg2mem
br i1 %or.cond, label LBL_7, label LBL_5
LBL_5:
%16 = ptrtoint i8* %arg5 to i64
%17 = call i8* @strstr(i8* nonnull %arg5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0))
%18 = icmp eq i8* %17, null
%19 = icmp eq i1 %18, false
store i8* %arg5, i8** %sv_0.0.reg2mem
store i64 %16, i64* %rdi.0.reg2mem
store i64 %0, i64* %r8.0.reg2mem
br i1 %19, label LBL_7, label LBL_6
LBL_6:
%20 = ptrtoint i64* %sv_1 to i64
%21 = bitcast i64* %sv_1 to i8*
%22 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %21, i32 256, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_5, i64 0, i64 0), i8* nonnull %arg5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0))
store i8* %21, i8** %sv_0.0.reg2mem
store i64 %20, i64* %rdi.0.reg2mem
store i64 ptrtoint ([6 x i8]* @gv_4 to i64), i64* %r8.0.reg2mem
br label LBL_7
LBL_7:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%23 = ptrtoint i8* %sv_0.0.reload to i64
%24 = call i64 @FUNC(i64 %rdi.0.reload, i64 %23)
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, 0
%27 = icmp eq i1 %26, false
store i64 0, i64* %rax.0.reg2mem
br i1 %27, label LBL_11, label LBL_8
LBL_8:
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%28 = call i64 @FUNC(i64 %arg6, i64 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_6, i64 0, i64 0), i64 %0, i64 %r8.0.reload, i64 %arg6)
%29 = icmp eq i8* %sv_0.0.reload, null
store i64 %0, i64* %rcx.0.reg2mem
br i1 %29, label LBL_10, label LBL_9
LBL_9:
%30 = call i64 @FUNC(i64 %arg6, i64 0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_7, i64 0, i64 0), i64 %23, i64 %r8.0.reload, i64 %arg6)
store i64 %23, i64* %rcx.0.reg2mem
br label LBL_10
LBL_10:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%31 = call i64 @FUNC(i64 %arg6, i64 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_8, i64 0, i64 0), i64 %rcx.0.reload, i64 %r8.0.reload, i64 %arg6)
%32 = and i64 %24, 4294967295
store i64 %32, 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 %r8.0.reload, { 1, 2, 0 }
uselistorder i8* %sv_0.0.reload, { 1, 0 }
uselistorder i64 %0, { 0, 5, 1, 2, 3, 8, 6, 7, 4, 9 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder [6 x i8]* @gv_4, { 1, 0 }
uselistorder i8* null, { 1, 2, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 4, 3, 2, 1, 0 }
uselistorder i64 %arg6, { 6, 7, 4, 5, 8, 9, 2, 3, 0, 1 }
uselistorder i8* %arg5, { 2, 0, 4, 5, 1, 3 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_11, { 1, 0, 2, 3 }
} | 1 |
BinRealVul | llc_cmsg_rcv_13744 | llc_cmsg_rcv | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%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
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64* @memset(i64* nonnull %sv_2, i32 0, i32 44)
%8 = call i64 @FUNC(i64 0)
%9 = add i64 %8, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = sext i32 %13 to i64
store i64 %14, i64* %sv_2, align 8
%15 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1)
%16 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0)
%17 = call i64 @FUNC(i64 %6, i64 0, i64 1, i64 44, i64* nonnull %sv_2)
store i64 %17, 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* %sv_2, { 0, 2, 1 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64 (i64)* @llc_sk, { 1, 0 }
} | 0 |
BinRealVul | load_tile_7483 | load_tile | define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3, i8* %arg4, i64 %arg5, i64* %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.1.reg2mem = alloca i8*
%.reg2mem28 = alloca i8*
%.reg2mem26 = alloca i8*
%storemerge7.reg2mem = alloca i64
%sv_0.011.reg2mem = alloca i8*
%rbx.112.reg2mem = alloca i64
%storemerge613.reg2mem = alloca i64
%rbx.09.reg2mem = alloca i64
%storemerge510.reg2mem = alloca i64
%.reg2mem24 = alloca i8*
%.reg2mem22 = alloca i8*
%sv_0.214.reg2mem = alloca i8*
%storemerge15.reg2mem = alloca i64
%.reg2mem20 = alloca i8*
%.reg2mem = alloca i8*
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %arg5, i64 4)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = add i64 %3, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %9)
unreachable
LBL_2:
%11 = call i64 @FUNC(i64 %3, i64 %arg5, i64 %4)
%12 = icmp eq i64 %11, %arg5
br i1 %12, label LBL_3, label LBL_5
LBL_3:
%13 = icmp sgt i64 %arg5, 0
br i1 %13, label LBL_4, label LBL_16
LBL_4:
%14 = ptrtoint i64* %arg6 to i64
%15 = ptrtoint i64* %arg2 to i64
%16 = trunc i64 %1 to i32
%17 = inttoptr i64 %4 to i8*
%18 = add i64 %15, 8
%19 = inttoptr i64 %18 to i64*
%20 = icmp eq i32 %16, 1
%21 = icmp eq i1 %20, false
%22 = urem i64 %2, 256
%23 = icmp eq i32 %16, 2
%24 = icmp eq i1 %23, false
store i8* %17, i8** %.reg2mem
store i8* %17, i8** %.reg2mem20
store i64 0, i64* %storemerge15.reg2mem
store i8* %17, i8** %sv_0.214.reg2mem
br label LBL_6
LBL_5:
%25 = add i64 %3, 16
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %27)
unreachable
LBL_6:
%storemerge15.reload = load i64, i64* %storemerge15.reg2mem
%29 = load i64, i64* %19, align 8
%30 = call i64 @FUNC(i64 %15, i64 0, i64 %storemerge15.reload, i64 %29, i64 1, i64 %14, i64 %storemerge15.reload)
%31 = icmp eq i64 %30, 0
br i1 %31, label LBL_16, label LBL_7
LBL_7:
%sv_0.214.reload = load i8*, i8** %sv_0.214.reg2mem
%.reload21 = load i8*, i8** %.reg2mem20
%.reload = load i8*, i8** %.reg2mem
br i1 %21, label LBL_10, label LBL_8
LBL_8:
%32 = load i64, i64* %19, align 8
%33 = icmp sgt i64 %32, 0
store i8* %.reload, i8** %.reg2mem22
store i8* %.reload21, i8** %.reg2mem24
store i64 0, i64* %storemerge510.reg2mem
store i64 %30, i64* %rbx.09.reg2mem
store i8* %.reload, i8** %.reg2mem26
store i8* %.reload21, i8** %.reg2mem28
store i8* %sv_0.214.reload, i8** %sv_0.1.reg2mem
br i1 %33, label LBL_9, label LBL_15
LBL_9:
%rbx.09.reload = load i64, i64* %rbx.09.reg2mem
%storemerge510.reload = load i64, i64* %storemerge510.reg2mem
%.reload25 = load i8*, i8** %.reg2mem24
%.reload23 = load i8*, i8** %.reg2mem22
%34 = load i8, i8* %.reload25, align 1
%35 = zext i8 %34 to i64
%36 = call i64 @FUNC(i64 %35)
%37 = urem i64 %36, 256
%38 = call i64 @FUNC(i64 %15, i64 %37, i64 %rbx.09.reload)
%39 = call i64 @FUNC(i64 %22)
%40 = urem i64 %39, 256
%41 = call i64 @FUNC(i64 %15, i64 %40, i64 %rbx.09.reload)
%42 = ptrtoint i8* %.reload23 to i64
%43 = add i64 %42, 1
%44 = inttoptr i64 %43 to i8*
%45 = call i64 @FUNC(i64 %15)
%46 = add i64 %45, %rbx.09.reload
%47 = add nuw nsw i64 %storemerge510.reload, 1
%48 = load i64, i64* %19, align 8
%49 = icmp slt i64 %47, %48
store i8* %44, i8** %.reg2mem22
store i8* %44, i8** %.reg2mem24
store i64 %47, i64* %storemerge510.reg2mem
store i64 %46, i64* %rbx.09.reg2mem
store i8* %44, i8** %.reg2mem26
store i8* %44, i8** %.reg2mem28
store i8* %sv_0.214.reload, i8** %sv_0.1.reg2mem
br i1 %49, label LBL_9, label LBL_15
LBL_10:
store i8* %.reload, i8** %.reg2mem26
store i8* %.reload21, i8** %.reg2mem28
store i8* %sv_0.214.reload, i8** %sv_0.1.reg2mem
br i1 %24, label LBL_15, label LBL_11
LBL_11:
%50 = load i64, i64* %19, align 8
%51 = icmp sgt i64 %50, 0
store i64 0, i64* %storemerge613.reg2mem
store i64 %30, i64* %rbx.112.reg2mem
store i8* %sv_0.214.reload, i8** %sv_0.011.reg2mem
store i8* %.reload, i8** %.reg2mem26
store i8* %.reload21, i8** %.reg2mem28
store i8* %sv_0.214.reload, i8** %sv_0.1.reg2mem
br i1 %51, label LBL_12, label LBL_15
LBL_12:
%sv_0.011.reload = load i8*, i8** %sv_0.011.reg2mem
%rbx.112.reload = load i64, i64* %rbx.112.reg2mem
%storemerge613.reload = load i64, i64* %storemerge613.reg2mem
%52 = load i8, i8* %sv_0.011.reload, align 1
%53 = zext i8 %52 to i64
%54 = call i64 @FUNC(i64 %53)
%55 = urem i64 %54, 256
%56 = call i64 @FUNC(i64 %15, i64 %55, i64 %rbx.112.reload)
%57 = ptrtoint i8* %sv_0.011.reload to i64
%58 = add i64 %57, 1
%59 = inttoptr i64 %58 to i8*
%60 = load i8, i8* %59, align 1
%61 = zext i8 %60 to i64
%62 = call i64 @FUNC(i64 %61)
%63 = urem i64 %62, 256
%64 = call i64 @FUNC(i64 %15, i64 %63, i64 %rbx.112.reload)
%65 = add i64 %57, 2
%66 = inttoptr i64 %65 to i8*
%67 = load i8, i8* %66, align 1
%68 = zext i8 %67 to i64
%69 = call i64 @FUNC(i64 %68)
%70 = urem i64 %69, 256
%71 = call i64 @FUNC(i64 %15, i64 %70, i64 %rbx.112.reload)
%72 = add i64 %57, 3
%73 = inttoptr i64 %72 to i8*
%74 = load i8, i8* %73, align 1
%75 = icmp eq i8 %74, -1
store i64 0, i64* %storemerge7.reg2mem
br i1 %75, label LBL_14, label LBL_13
LBL_13:
%76 = call i64 @FUNC(i64 %22)
%77 = urem i64 %76, 256
store i64 %77, i64* %storemerge7.reg2mem
br label LBL_14
LBL_14:
%storemerge7.reload = load i64, i64* %storemerge7.reg2mem
%78 = call i64 @FUNC(i64 %15, i64 %storemerge7.reload, i64 %rbx.112.reload)
%79 = add i64 %57, 4
%80 = inttoptr i64 %79 to i8*
%81 = call i64 @FUNC(i64 %15)
%82 = add i64 %81, %rbx.112.reload
%83 = add nuw nsw i64 %storemerge613.reload, 1
%84 = load i64, i64* %19, align 8
%85 = icmp slt i64 %83, %84
store i64 %83, i64* %storemerge613.reg2mem
store i64 %82, i64* %rbx.112.reg2mem
store i8* %80, i8** %sv_0.011.reg2mem
store i8* %.reload, i8** %.reg2mem26
store i8* %.reload21, i8** %.reg2mem28
store i8* %80, i8** %sv_0.1.reg2mem
br i1 %85, label LBL_12, label LBL_15
LBL_15:
%sv_0.1.reload = load i8*, i8** %sv_0.1.reg2mem
%.reload29 = load i8*, i8** %.reg2mem28
%.reload27 = load i8*, i8** %.reg2mem26
%86 = call i64 @FUNC(i64 %15, i64 %14)
%87 = trunc i64 %86 to i32
%88 = icmp ne i32 %87, 0
%89 = add nuw nsw i64 %storemerge15.reload, 1
%90 = icmp slt i64 %89, %14
%or.cond = icmp eq i1 %90, %88
store i8* %.reload27, i8** %.reg2mem
store i8* %.reload29, i8** %.reg2mem20
store i64 %89, i64* %storemerge15.reg2mem
store i8* %sv_0.1.reload, i8** %sv_0.214.reg2mem
br i1 %or.cond, label LBL_6, label LBL_16
LBL_16:
%91 = call i64 @FUNC(i64 %4)
ret i64 1
uselistorder i64 %rbx.112.reload, { 4, 0, 1, 2, 3 }
uselistorder i64 %rbx.09.reload, { 2, 0, 1 }
uselistorder i8* %.reload, { 0, 2, 3, 1, 4 }
uselistorder i8* %.reload21, { 0, 2, 3, 1, 4 }
uselistorder i8* %sv_0.214.reload, { 2, 4, 3, 0, 1 }
uselistorder i64 %storemerge15.reload, { 0, 2, 1 }
uselistorder i64 %22, { 1, 0 }
uselistorder i64* %19, { 3, 0, 2, 1, 4 }
uselistorder i32 %16, { 1, 0 }
uselistorder i64 %15, { 8, 3, 4, 5, 6, 7, 0, 1, 2, 10, 9 }
uselistorder i64 %4, { 0, 2, 1, 3 }
uselistorder i64 %3, { 1, 2, 0 }
uselistorder i8** %.reg2mem, { 2, 0, 1 }
uselistorder i8** %.reg2mem20, { 2, 0, 1 }
uselistorder i64* %storemerge15.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_0.214.reg2mem, { 2, 0, 1 }
uselistorder i8** %.reg2mem22, { 2, 0, 1 }
uselistorder i8** %.reg2mem24, { 2, 0, 1 }
uselistorder i64* %storemerge510.reg2mem, { 2, 0, 1 }
uselistorder i64* %rbx.09.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge613.reg2mem, { 2, 0, 1 }
uselistorder i64* %rbx.112.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_0.011.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge7.reg2mem, { 0, 2, 1 }
uselistorder i8** %.reg2mem26, { 0, 2, 4, 5, 1, 3 }
uselistorder i8** %.reg2mem28, { 0, 2, 4, 5, 1, 3 }
uselistorder i8** %sv_0.1.reg2mem, { 0, 2, 4, 5, 1, 3 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64)* @GetPixelChannels, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @SetPixelAlpha, { 1, 0 }
uselistorder i64 (i64)* @ScaleCharToQuantum, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 (i64, i8*, i64)* @ThrowBinaryException, { 1, 0 }
uselistorder i64 1, { 0, 6, 4, 5, 7, 8, 2, 3, 1 }
uselistorder i64 4, { 2, 1, 0 }
uselistorder i64 %arg5, { 0, 2, 1, 3 }
uselistorder label LBL_15, { 1, 3, 4, 0, 2 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | vmx_save_host_state_12659 | vmx_save_host_state | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = zext i32 %3 to i64
%5 = icmp eq i32 %3, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_9, label LBL_1
LBL_1:
store i32 1, i32* %2, align 4
%7 = call i64 @FUNC()
%8 = trunc i64 %7 to i32
%9 = add i64 %1, 4
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = add i64 %1, 8
%12 = inttoptr i64 %11 to i32*
store i32 %8, i32* %12, align 4
%13 = call i64 @FUNC()
%14 = trunc i64 %13 to i32
%15 = add i64 %1, 12
%16 = inttoptr i64 %15 to i32*
store i32 %14, i32* %16, align 4
%17 = urem i32 %14, 8
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_3, label LBL_2
LBL_2:
%20 = and i64 %13, 4294967295
%21 = call i64 @FUNC(i64 0, i64 %20)
%22 = add i64 %1, 16
%23 = inttoptr i64 %22 to i32*
store i32 0, i32* %23, align 4
br label LBL_4
LBL_3:
%24 = call i64 @FUNC(i64 0, i64 0)
%25 = add i64 %1, 16
%26 = inttoptr i64 %25 to i32*
store i32 1, i32* %26, align 4
br label LBL_4
LBL_4:
%27 = call i64 @FUNC()
%28 = trunc i64 %27 to i32
%29 = add i64 %1, 20
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
%31 = urem i32 %28, 8
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_6, label LBL_5
LBL_5:
%34 = and i64 %27, 4294967295
%35 = call i64 @FUNC(i64 1, i64 %34)
br label LBL_7
LBL_6:
%36 = call i64 @FUNC(i64 1, i64 0)
store i32 1, i32* %12, align 4
br label LBL_7
LBL_7:
%37 = load i32, i32* %16, align 4
%38 = zext i32 %37 to i64
%39 = call i64 @FUNC(i64 %38)
%40 = and i64 %39, 4294967295
%41 = call i64 @FUNC(i64 2, i64 %40)
%42 = load i32, i32* %30, align 4
%43 = zext i32 %42 to i64
%44 = call i64 @FUNC(i64 %43)
%45 = and i64 %44, 4294967295
%46 = call i64 @FUNC(i64 3, i64 %45)
%47 = add i64 %1, 24
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = icmp eq i32 %49, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge2.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %50, label LBL_9, label LBL_8
LBL_8:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%.reload = load i64, i64* %.reg2mem
%51 = mul nsw i64 %.reload, 12
%52 = add i64 %51, %1
%53 = add i64 %52, 36
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = add i64 %52, 32
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = add i64 %52, 28
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = zext i32 %58 to i64
%63 = zext i32 %61 to i64
%64 = call i64 @FUNC(i64 %63, i64 %62, i32 %55)
%65 = add i32 %storemerge2.reload, 1
%66 = load i32, i32* %48, align 4
%67 = zext i32 %66 to i64
%68 = sext i32 %65 to i64
%69 = icmp slt i64 %68, %67
store i64 %68, i64* %.reg2mem
store i32 %65, i32* %storemerge2.reg2mem
store i64 %67, i64* %rax.0.reg2mem
br i1 %69, label LBL_8, label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %48, { 1, 0 }
uselistorder i64 %1, { 0, 2, 3, 1, 4, 5, 6, 7, 8 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64, i64)* @vmcs_writel, { 1, 0 }
uselistorder i64 (i64)* @segment_base, { 1, 0 }
uselistorder i64 (i64, i64)* @vmcs_write16, { 3, 2, 1, 0 }
uselistorder i64 4294967295, { 2, 3, 0, 1 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | xml_sax_parse_entity_6895 | xml_sax_parse_entity | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.ph.lcssa.reg2mem = alloca i32
%sv_1.1.ph.ph.lcssa.reg2mem = alloca i64
%sv_0.0.ph28.reg2mem = alloca i32
%rdi.1.ph30.reg2mem = alloca i64
%.reg2mem110 = alloca i32
%rdi.1.ph.be.reg2mem = alloca i64
%sv_1.1.ph.ph35.reg2mem = alloca i64
%sv_2.1.ph.ph36.reg2mem = alloca i8*
%rdi.1.ph.ph37.reg2mem = alloca i64
%.reg2mem108 = alloca i32
%.reg2mem106 = alloca i64
%rdi.0.reg2mem = alloca i64
%rdi.124.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i8, align 1
%sv_4 = alloca i64, align 8
store i64 0, i64* %sv_4, align 8
%1 = add i64 %0, 24
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = icmp eq i64 %4, 0
store i64 0, i64* %sv_1.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = add i64 %4, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
%spec.select = select i1 %9, i64 %4, i64 0
store i64 %spec.select, i64* %sv_1.0.reg2mem
br label LBL_2
LBL_2:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i64 %0, 12
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp ult i32 %12, %15
store i64 %sv_1.0.reload, i64* %sv_1.1.ph.ph.lcssa.reg2mem
store i32 0, i32* %sv_0.0.ph.lcssa.reg2mem
br i1 %16, label LBL_3, label LBL_34
LBL_3:
%17 = icmp eq i64 %sv_1.0.reload, 0
%spec.select3 = select i1 %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i8* null
%18 = add i64 %0, 16
%19 = inttoptr i64 %18 to i32*
%20 = ptrtoint i64* %sv_4 to i64
%21 = bitcast i8* %sv_3 to i64*
store i32 %12, i32* %.reg2mem108
store i64 %3, i64* %rdi.1.ph.ph37.reg2mem
store i8* %spec.select3, i8** %sv_2.1.ph.ph36.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.ph.ph35.reg2mem
br label LBL_4.lr.ph.lr.ph
LBL_4:
%rdi.124.reload = load i64, i64* %rdi.124.reg2mem
%.reload = load i32, i32* %.reg2mem
%22 = zext i32 %.reload to i64
%23 = add i64 %rdi.124.reload, %22
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = sext i8 %25 to i32
store i64 %rdi.1.ph30.reload, i64* %rdi.0.reg2mem
br i1 %83, label LBL_9, label LBL_5
LBL_5:
%27 = urem i32 %26, 256
%28 = call i8* @strchr(i8* nonnull %sv_2.1.ph.ph36.reload, i32 %27)
%29 = icmp eq i8* %28, null
store i64 %84, i64* %rdi.0.reg2mem
br i1 %29, label LBL_9, label LBL_6
LBL_6:
%30 = icmp eq i8 %25, 10
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_8, label LBL_7
LBL_7:
%32 = load i32, i32* %19, align 4
%33 = add i32 %32, 1
store i32 %33, i32* %19, align 4
br label LBL_8
LBL_8:
%34 = load i32, i32* %11, align 4
%35 = add i32 %34, 1
store i32 %35, i32* %11, align 4
%36 = add i32 %35, %sv_0.0.ph28.reload
%37 = load i32, i32* %14, align 4
%38 = icmp ult i32 %36, %37
store i32 %36, i32* %.reg2mem
store i64 %84, i64* %rdi.124.reg2mem
store i64 %sv_1.1.ph.ph35.reload, i64* %sv_1.1.ph.ph.lcssa.reg2mem
store i32 %sv_0.0.ph28.reload, i32* %sv_0.0.ph.lcssa.reg2mem
br i1 %38, label LBL_4, label LBL_34
LBL_9:
%39 = icmp eq i8 %25, 37
%40 = icmp eq i1 %85, %39
br i1 %40, label LBL_10, label LBL_12
LBL_10:
%41 = load i32, i32* %11, align 4
%42 = add i32 %sv_0.0.ph28.reload, 1
%43 = add i32 %42, %41
store i32 %43, i32* %11, align 4
%44 = add i64 %0, 20
%45 = inttoptr i64 %44 to i32*
store i32 1, i32* %45, align 4
%46 = load i64, i64* %sv_4, align 8
%47 = icmp eq i64 %46, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %47, label LBL_40, label LBL_11
LBL_11:
%48 = call i64 @FUNC(i64 %46)
store i64 %48, i64* %rax.0.reg2mem
br label LBL_40
LBL_12:
br i1 %86, label LBL_23, label LBL_13
LBL_13:
%49 = icmp ne i8 %25, 34
%50 = icmp eq i8 %25, 39
%51 = icmp eq i1 %50, false
%or.cond6 = icmp eq i1 %49, %51
br i1 %or.cond6, label LBL_31, label LBL_14
LBL_14:
%52 = call i64* @malloc(i32 24)
%53 = icmp eq i64* %52, null
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_17, label LBL_15
LBL_15:
%55 = add i64 %0, 20
%56 = inttoptr i64 %55 to i32*
store i32 2, i32* %56, align 4
%57 = load i64, i64* %sv_4, align 8
%58 = icmp eq i64 %57, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %58, label LBL_40, label LBL_16
LBL_16:
%59 = call i64 @FUNC(i64 %57)
store i64 %59, i64* %rax.0.reg2mem
br label LBL_40
LBL_17:
%60 = load i64, i64* %sv_4, align 8
%61 = icmp eq i64 %60, 0
%62 = icmp eq i1 %61, false
store i64 %60, i64* %.reg2mem106
br i1 %62, label LBL_19, label LBL_18
LBL_18:
%63 = call i64 @FUNC(i64* nonnull %sv_4, i64* nonnull @gv_1, i64 0)
%.pre = load i64, i64* %sv_4, align 8
store i64 %.pre, i64* %.reg2mem106
br label LBL_19
LBL_19:
%64 = ptrtoint i64* %52 to i64
%.reload107 = load i64, i64* %.reg2mem106
store i64 %.reload107, i64* %52, align 8
store i64 0, i64* %sv_4, align 8
%65 = load i64, i64* %52, align 8
%66 = inttoptr i64 %65 to i8*
%67 = call i32 @strlen(i8* %66)
%68 = add i64 %64, 8
%69 = inttoptr i64 %68 to i32*
store i32 %67, i32* %69, align 4
%70 = add i64 %64, 12
%71 = inttoptr i64 %70 to i8*
store i8 %25, i8* %71, align 1
%72 = load i32, i32* %11, align 4
%73 = add i32 %sv_0.0.ph28.reload, 1
%74 = add i32 %73, %72
store i32 %74, i32* %11, align 4
%75 = load i32, i32* %14, align 4
%76 = icmp ult i32 %74, %75
br i1 %76, label LBL_21, label LBL_20
LBL_20:
call void @__assert_fail(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_3, i64 0, i64 0), i32 113, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0))
br label LBL_21
LBL_21:
%77 = call i64 @FUNC(i64 %0)
%78 = load i64, i64* %2, align 8
%79 = call i64 @FUNC(i64 %78, i64 %64)
%80 = load i32, i32* %11, align 4
%81 = load i32, i32* %14, align 4
%82 = icmp ult i32 %80, %81
store i32 %80, i32* %.reg2mem108
store i64 %78, i64* %rdi.1.ph.ph37.reg2mem
store i8* null, i8** %sv_2.1.ph.ph36.reg2mem
store i64 %64, i64* %sv_1.1.ph.ph35.reg2mem
store i64 %64, i64* %sv_1.1.ph.ph.lcssa.reg2mem
store i32 0, i32* %sv_0.0.ph.lcssa.reg2mem
br i1 %82, label LBL_4.lr.ph.lr.ph, label LBL_34
LBL_22:
%sv_1.1.ph.ph35.reload = load i64, i64* %sv_1.1.ph.ph35.reg2mem
%sv_2.1.ph.ph36.reload = load i8*, i8** %sv_2.1.ph.ph36.reg2mem
%rdi.1.ph.ph37.reload = load i64, i64* %rdi.1.ph.ph37.reg2mem
%.reload109 = load i32, i32* %.reg2mem108
%83 = icmp eq i8* %sv_2.1.ph.ph36.reload, null
%84 = ptrtoint i8* %sv_2.1.ph.ph36.reload to i64
%85 = icmp eq i64 %sv_1.1.ph.ph35.reload, 0
%86 = icmp eq i1 %85, false
%87 = add i64 %sv_1.1.ph.ph35.reload, 12
%88 = inttoptr i64 %87 to i8*
store i32 %.reload109, i32* %.reg2mem110
store i64 %rdi.1.ph.ph37.reload, i64* %rdi.1.ph30.reg2mem
store i32 0, i32* %sv_0.0.ph28.reg2mem
br label LBL_4.lr.ph
LBL_23:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%89 = load i8, i8* %88, align 1
%90 = urem i32 %26, 256
%91 = sext i8 %89 to i32
%92 = icmp eq i32 %90, %91
%93 = icmp eq i1 %92, false
store i64 %rdi.0.reload, i64* %rdi.1.ph.be.reg2mem
br i1 %93, label LBL_32, label LBL_24
LBL_24:
%94 = load i64, i64* %sv_4, align 8
%95 = icmp eq i64 %94, 0
br i1 %95, label LBL_26, label LBL_25
LBL_25:
%96 = call i64 @FUNC(i64 %94)
br label LBL_26
LBL_26:
%97 = zext i32 %sv_0.0.ph28.reload to i64
%98 = call i64 @FUNC(i64 %0, i64 %97)
%99 = call i64 @FUNC(i64 %0)
%100 = add i64 %sv_1.1.ph.ph35.reload, 16
%101 = inttoptr i64 %100 to i64*
store i64 %99, i64* %101, align 8
%102 = icmp eq i64 %99, 0
%103 = icmp eq i1 %102, false
br i1 %103, label LBL_28, label LBL_27
LBL_27:
%104 = call i64 @FUNC(i64* nonnull @gv_1)
store i64 %104, i64* %101, align 8
br label LBL_28
LBL_28:
%105 = load i32, i32* %11, align 4
%106 = add i32 %105, 1
store i32 %106, i32* %11, align 4
%107 = load i32, i32* %14, align 4
%108 = icmp ult i32 %106, %107
br i1 %108, label LBL_30, label LBL_29
LBL_29:
call void @__assert_fail(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_3, i64 0, i64 0), i32 124, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_4, i64 0, i64 0))
br label LBL_30
LBL_30:
%109 = call i64 @FUNC(i64 %0)
%110 = add i64 %0, 20
%111 = inttoptr i64 %110 to i32*
store i32 1, i32* %111, align 4
store i64 %0, i64* %rax.0.reg2mem
br label LBL_40
LBL_31:
store i8 %25, i8* %sv_3, align 1
%112 = call i64 @FUNC(i64* nonnull %sv_4, i64* nonnull %21, i64 0)
store i64 %20, i64* %rdi.1.ph.be.reg2mem
br label LBL_32
LBL_32:
%rdi.1.ph.be.reload = load i64, i64* %rdi.1.ph.be.reg2mem
%sv_0.0.ph.be = add i32 %sv_0.0.ph28.reload, 1
%113 = load i32, i32* %11, align 4
%114 = add i32 %113, %sv_0.0.ph.be
%115 = load i32, i32* %14, align 4
%116 = icmp ult i32 %114, %115
store i32 %114, i32* %.reg2mem110
store i64 %rdi.1.ph.be.reload, i64* %rdi.1.ph30.reg2mem
store i32 %sv_0.0.ph.be, i32* %sv_0.0.ph28.reg2mem
store i64 %sv_1.1.ph.ph35.reload, i64* %sv_1.1.ph.ph.lcssa.reg2mem
store i32 %sv_0.0.ph.be, i32* %sv_0.0.ph.lcssa.reg2mem
br i1 %116, label LBL_4.lr.ph, label LBL_34
LBL_33:
%sv_0.0.ph28.reload = load i32, i32* %sv_0.0.ph28.reg2mem
%rdi.1.ph30.reload = load i64, i64* %rdi.1.ph30.reg2mem
%.reload111 = load i32, i32* %.reg2mem110
store i32 %.reload111, i32* %.reg2mem
store i64 %rdi.1.ph30.reload, i64* %rdi.124.reg2mem
br label LBL_4
LBL_34:
%sv_0.0.ph.lcssa.reload = load i32, i32* %sv_0.0.ph.lcssa.reg2mem
%sv_1.1.ph.ph.lcssa.reload = load i64, i64* %sv_1.1.ph.ph.lcssa.reg2mem
%117 = load i64, i64* %sv_4, align 8
%118 = icmp eq i64 %117, 0
br i1 %118, label LBL_36, label LBL_35
LBL_35:
%119 = call i64 @FUNC(i64 %117)
br label LBL_36
LBL_36:
%120 = icmp eq i64 %sv_1.1.ph.ph.lcssa.reload, 0
br i1 %120, label LBL_39, label LBL_37
LBL_37:
%121 = add i64 %sv_1.1.ph.ph.lcssa.reload, 16
%122 = inttoptr i64 %121 to i64*
%123 = load i64, i64* %122, align 8
%124 = icmp eq i64 %123, 0
%125 = icmp eq i1 %124, false
br i1 %125, label LBL_39, label LBL_38
LBL_38:
%126 = add i64 %0, 20
%127 = inttoptr i64 %126 to i32*
store i32 3, i32* %127, align 4
br label LBL_39
LBL_39:
%128 = zext i32 %sv_0.0.ph.lcssa.reload to i64
%129 = call i64 @FUNC(i64 %0, i64 %128)
store i64 %129, i64* %rax.0.reg2mem
br label LBL_40
LBL_40:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_1.1.ph.ph.lcssa.reload, { 1, 0 }
uselistorder i32 %sv_0.0.ph28.reload, { 2, 0, 5, 3, 4, 1 }
uselistorder i1 %85, { 1, 0 }
uselistorder i8* %sv_2.1.ph.ph36.reload, { 2, 0, 1 }
uselistorder i64 %sv_1.1.ph.ph35.reload, { 0, 4, 2, 3, 1 }
uselistorder i64* %52, { 0, 1, 3, 2 }
uselistorder i8 %25, { 3, 0, 1, 4, 2, 5, 6 }
uselistorder i32* %14, { 4, 0, 3, 1, 5, 2 }
uselistorder i32* %11, { 8, 2, 3, 7, 4, 5, 0, 1, 10, 9, 6 }
uselistorder i64 %sv_1.0.reload, { 1, 2, 0 }
uselistorder i64* %sv_4, { 3, 1, 5, 6, 0, 2, 7, 8, 9, 4, 10 }
uselistorder i8* %sv_3, { 1, 0 }
uselistorder i64 %0, { 2, 1, 0, 7, 8, 9, 10, 6, 5, 4, 3, 12, 11, 13 }
uselistorder i32* %.reg2mem, { 2, 1, 0 }
uselistorder i64* %rdi.124.reg2mem, { 2, 1, 0 }
uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem106, { 0, 2, 1 }
uselistorder i64* %rdi.1.ph.be.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_1.1.ph.ph.lcssa.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i32* %sv_0.0.ph.lcssa.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 6, 4, 5, 2, 3 }
uselistorder i64 (i64, i64)* @xml_sax_store_text, { 1, 0 }
uselistorder i64 (i64)* @xml_sax_swap, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 0, 3, 2, 1 }
uselistorder i64 (i64*, i64*, i64)* @gf_dynstrcat, { 1, 0 }
uselistorder i64* null, { 1, 2, 0, 3 }
uselistorder i64* (i32)* @malloc, { 1, 0 }
uselistorder i64 (i64)* @gf_free, { 0, 3, 2, 1 }
uselistorder i1 false, { 1, 2, 3, 6, 4, 5, 0, 7 }
uselistorder i8* null, { 3, 0, 2, 1 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder label LBL_40, { 4, 5, 1, 0, 3, 2 }
uselistorder label LBL_34, { 1, 0, 2, 3 }
uselistorder label LBL_4.lr.ph, { 1, 0 }
uselistorder label LBL_32, { 1, 0 }
uselistorder label LBL_4.lr.ph.lr.ph, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 0 |
BinRealVul | virtio_rng_pci_init_14617 | virtio_rng_pci_init | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = and i64 %2, 4294967295
%4 = call i64 @FUNC(i64 %2, i64 %3)
%5 = call i64 @FUNC(i64 %2)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %8, label LBL_1, label LBL_2
LBL_1:
%9 = trunc i64 %1 to i32
%10 = call i64 @FUNC(i64 %2, i32 %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64 0)
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %2, { 0, 3, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | read_password_13912 | read_password | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.ph.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0))
%2 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%3 = call i32 @fflush(%_IO_FILE* %2)
%4 = add i64 %arg2, 4294967295
%5 = and i64 %4, 4294967295
store i32 0, i32* %sv_0.0.ph.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.ph.reload = load i32, i32* %sv_0.0.ph.reg2mem
%6 = sext i32 %sv_0.0.ph.reload to i64
%7 = icmp sgt i64 %5, %6
br label LBL_2
LBL_2:
%8 = call i32 @getchar()
%9 = icmp eq i32 %8, 10
br i1 %9, label LBL_5, label LBL_3
LBL_3:
br i1 %7, label LBL_4, label LBL_2
LBL_4:
%10 = add i32 %sv_0.0.ph.reload, 1
%11 = add i64 %6, %0
%12 = trunc i32 %8 to i8
%13 = inttoptr i64 %11 to i8*
store i8 %12, i8* %13, align 1
store i32 %10, i32* %sv_0.0.ph.reg2mem
br label LBL_1
LBL_5:
%14 = add i64 %6, %0
%15 = inttoptr i64 %14 to i8*
store i8 0, i8* %15, align 1
ret i64 0
uselistorder i32 %sv_0.0.ph.reload, { 1, 0 }
uselistorder i32* %sv_0.0.ph.reg2mem, { 2, 0, 1 }
uselistorder i8 0, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | compute_mb_distortion_2037 | compute_mb_distortion | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.5.reg2mem = alloca i32
%sv_0.410.reg2mem = alloca i32
%indvars.iv20.reg2mem = alloca i64
%sv_0.38.reg2mem = alloca i32
%storemerge29.reg2mem = alloca i32
%sv_0.26.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_0.115.reg2mem = alloca i32
%rsi.116.reg2mem = alloca i64
%indvars.iv26.reg2mem = alloca i64
%sv_0.012.reg2mem = alloca i32
%rsi.013.reg2mem = alloca i64
%indvars.iv23.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg3 to i64
%3 = ptrtoint i64* %arg2 to i64
%4 = add i64 %3, 24
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = add i64 %2, 24
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
store i64 0, i64* %indvars.iv26.reg2mem
store i64 %3, i64* %rsi.116.reg2mem
store i32 0, i32* %sv_0.115.reg2mem
br label LBL_3
LBL_1:
%sv_0.012.reload = load i32, i32* %sv_0.012.reg2mem
%rsi.013.reload = load i64, i64* %rsi.013.reg2mem
%indvars.iv23.reload = load i64, i64* %indvars.iv23.reg2mem
%10 = trunc i64 %indvars.iv23.reload to i32
%11 = add i32 %28, %10
%12 = sext i32 %11 to i64
%13 = add i64 %rsi.013.reload, %12
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = zext i8 %15 to i64
%17 = add i32 %29, %10
%18 = sext i32 %17 to i64
%19 = add nsw i64 %16, %18
%20 = inttoptr i64 %19 to i8*
%21 = load i8, i8* %20, align 1
%22 = zext i8 %21 to i64
%23 = sub nsw i64 %16, %22
%24 = mul nsw i64 %23, %23
%25 = trunc i64 %24 to i32
%26 = add i32 %sv_0.012.reload, %25
%indvars.iv.next24 = add nuw nsw i64 %indvars.iv23.reload, 1
%exitcond25 = icmp eq i64 %indvars.iv.next24, 16
store i64 %indvars.iv.next24, i64* %indvars.iv23.reg2mem
store i64 %30, i64* %rsi.013.reg2mem
store i32 %26, i32* %sv_0.012.reg2mem
br i1 %exitcond25, label LBL_2, label LBL_1
LBL_2:
%indvars.iv.next27 = add nuw nsw i64 %indvars.iv26.reload, 1
%exitcond28 = icmp eq i64 %indvars.iv.next27, 16
store i64 %indvars.iv.next27, i64* %indvars.iv26.reg2mem
store i64 %30, i64* %rsi.116.reg2mem
store i32 %26, i32* %sv_0.115.reg2mem
br i1 %exitcond28, label LBL_4, label LBL_3
LBL_3:
%sv_0.115.reload = load i32, i32* %sv_0.115.reg2mem
%rsi.116.reload = load i64, i64* %rsi.116.reg2mem
%indvars.iv26.reload = load i64, i64* %indvars.iv26.reg2mem
%27 = trunc i64 %indvars.iv26.reload to i32
%28 = mul i32 %6, %27
%29 = mul i32 %9, %27
%30 = zext i32 %29 to i64
store i64 0, i64* %indvars.iv23.reg2mem
store i64 %rsi.116.reload, i64* %rsi.013.reg2mem
store i32 %sv_0.115.reload, i32* %sv_0.012.reg2mem
br label LBL_1
LBL_4:
%31 = trunc i64 %1 to i32
%32 = icmp eq i32 %31, 1
%33 = icmp eq i1 %32, false
store i64 1, i64* %indvars.iv20.reg2mem
store i32 %26, i32* %sv_0.410.reg2mem
store i32 %26, i32* %sv_0.5.reg2mem
br i1 %33, label LBL_10, label LBL_9
LBL_5:
%sv_0.26.reload = load i32, i32* %sv_0.26.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%34 = trunc i64 %indvars.iv.reload to i32
%35 = add i32 %52, %34
%36 = sext i32 %35 to i64
%37 = add i64 %57, %36
%38 = inttoptr i64 %37 to i8*
%39 = load i8, i8* %38, align 1
%40 = add i32 %53, %34
%41 = sext i32 %40 to i64
%42 = add i64 %64, %41
%43 = inttoptr i64 %42 to i8*
%44 = load i8, i8* %43, align 1
%45 = zext i8 %39 to i64
%46 = zext i8 %44 to i64
%47 = sub nsw i64 %45, %46
%48 = mul nsw i64 %47, %47
%49 = trunc i64 %48 to i32
%50 = add i32 %sv_0.26.reload, %49
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 8
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %50, i32* %sv_0.26.reg2mem
br i1 %exitcond, label LBL_6, label LBL_5
LBL_6:
%51 = add nuw nsw i32 %storemerge29.reload, 1
%exitcond19 = icmp eq i32 %51, 8
store i32 %51, i32* %storemerge29.reg2mem
store i32 %50, i32* %sv_0.38.reg2mem
br i1 %exitcond19, label LBL_8, label LBL_7
LBL_7:
%sv_0.38.reload = load i32, i32* %sv_0.38.reg2mem
%storemerge29.reload = load i32, i32* %storemerge29.reg2mem
%52 = mul i32 %storemerge29.reload, %61
%53 = mul i32 %storemerge29.reload, %67
store i64 0, i64* %indvars.iv.reg2mem
store i32 %sv_0.38.reload, i32* %sv_0.26.reg2mem
br label LBL_5
LBL_8:
%indvars.iv.next21 = add nuw nsw i64 %indvars.iv20.reload, 1
%exitcond22 = icmp eq i64 %indvars.iv.next21, 3
store i64 %indvars.iv.next21, i64* %indvars.iv20.reg2mem
store i32 %50, i32* %sv_0.410.reg2mem
store i32 %50, i32* %sv_0.5.reg2mem
br i1 %exitcond22, label LBL_10, label LBL_9
LBL_9:
%sv_0.410.reload = load i32, i32* %sv_0.410.reg2mem
%indvars.iv20.reload = load i64, i64* %indvars.iv20.reg2mem
%54 = mul i64 %indvars.iv20.reload, 8
%55 = add i64 %54, %3
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = mul i64 %indvars.iv20.reload, 4
%59 = add i64 %58, %4
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = add i64 %54, %2
%63 = inttoptr i64 %62 to i64*
%64 = load i64, i64* %63, align 8
%65 = add i64 %58, %7
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
store i32 0, i32* %storemerge29.reg2mem
store i32 %sv_0.410.reload, i32* %sv_0.38.reg2mem
br label LBL_7
LBL_10:
%sv_0.5.reload = load i32, i32* %sv_0.5.reg2mem
%68 = zext i32 %sv_0.5.reload to i64
ret i64 %68
uselistorder i64 %58, { 1, 0 }
uselistorder i64 %54, { 1, 0 }
uselistorder i64 %indvars.iv20.reload, { 2, 1, 0 }
uselistorder i32 %storemerge29.reload, { 2, 1, 0 }
uselistorder i64 %30, { 1, 0 }
uselistorder i32 %29, { 1, 0 }
uselistorder i64 %indvars.iv26.reload, { 1, 0 }
uselistorder i64 %16, { 1, 0 }
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64* %indvars.iv23.reg2mem, { 2, 1, 0 }
uselistorder i64* %rsi.013.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.012.reg2mem, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.26.reg2mem, { 2, 1, 0 }
uselistorder i32* %storemerge29.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.38.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv20.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.410.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 3, 4, 0, 1, 2 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | timer_int_route_14109 | timer_int_route | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = urem i64 %1, 256
ret i64 %2
} | 1 |
BinRealVul | load_script_11770 | load_script | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.in17.reg2mem = alloca i64
%.reg2mem19 = alloca i8
%.in.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i64
%.reg2mem = alloca i8*
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i8*, align 8
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 35
%4 = icmp eq i1 %3, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %4, label LBL_30, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 1
%7 = inttoptr i64 %6 to i8*
%8 = load i8, i8* %7, align 1
%9 = icmp eq i8 %8, 33
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_30
LBL_2:
%10 = add i64 %5, 256
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12)
%14 = load i64, i64* %11, align 8
%15 = call i64 @FUNC(i64 %14)
store i64 0, i64* %11, align 8
%16 = add i64 %5, 255
%17 = inttoptr i64 %16 to i8*
store i8 0, i8* %17, align 1
%18 = bitcast i64* %arg1 to i8*
%19 = call i8* @strchr(i8* %18, i32 10)
%20 = icmp eq i8* %19, null
%21 = icmp eq i1 %20, false
%storemerge3 = select i1 %21, i8* %19, i8* %17
store i8 0, i8* %storemerge3, align 1
%22 = bitcast i8* %storemerge3 to i64*
%23 = icmp ugt i64* %22, %arg1
store i8* %storemerge3, i8** %.reg2mem
br i1 %23, label LBL_3, label LBL_5
LBL_3:
%.reload = load i8*, i8** %.reg2mem
%24 = ptrtoint i8* %.reload to i64
%25 = add i64 %24, -1
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = icmp ne i8 %27, 32
%29 = icmp eq i8 %27, 9
%30 = icmp eq i1 %29, false
%or.cond = icmp eq i1 %28, %30
br i1 %or.cond, label LBL_5, label LBL_4
LBL_4:
store i8 0, i8* %26, align 1
%31 = inttoptr i64 %25 to i64*
%32 = icmp ugt i64* %31, %arg1
store i8* %26, i8** %.reg2mem
br i1 %32, label LBL_3, label LBL_5
LBL_5:
%33 = add i64 %5, 2
store i64 %33, i64* %storemerge.in.reg2mem
br label LBL_7
LBL_6:
%34 = add i64 %storemerge.in.reload, 1
store i64 %34, i64* %storemerge.in.reg2mem
br label LBL_7
LBL_7:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = inttoptr i64 %storemerge.in.reload to i8*
%35 = load i8, i8* %storemerge, align 1
switch i8 %35, label LBL_8 [
i8 32, label LBL_6
i8 9, label LBL_6
]
LBL_8:
%36 = icmp eq i8 %35, 0
%37 = icmp eq i1 %36, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %37, label LBL_9, label LBL_30
LBL_9:
%38 = bitcast i8** %sv_2 to i64*
store i64 %storemerge.in.reload, i64* %38, align 8
store i64 0, i64* %sv_1, align 8
store i64 %storemerge.in.reload, i64* %.in.reg2mem
br label LBL_10
LBL_10:
%.in.reload = load i64, i64* %.in.reg2mem
%39 = inttoptr i64 %.in.reload to i8*
%40 = load i8, i8* %39, align 1
switch i8 %40, label LBL_11 [
i8 0, label LBL_12
i8 32, label LBL_12
]
LBL_11:
%41 = icmp eq i8 %40, 9
%42 = icmp eq i1 %41, false
%43 = add i64 %.in.reload, 1
store i64 %43, i64* %.in.reg2mem
br i1 %42, label LBL_10, label LBL_12
LBL_12:
store i8 %40, i8* %.reg2mem19
store i64 %.in.reload, i64* %.in17.reg2mem
br label LBL_14
LBL_13:
%44 = inttoptr i64 %.in17.reload to i8*
%45 = add i64 %.in17.reload, 1
store i8 0, i8* %44, align 1
%.phi.trans.insert = inttoptr i64 %45 to i8*
%.pre = load i8, i8* %.phi.trans.insert, align 1
store i8 %.pre, i8* %.reg2mem19
store i64 %45, i64* %.in17.reg2mem
br label LBL_14
LBL_14:
%.in17.reload = load i64, i64* %.in17.reg2mem
%.reload20 = load i8, i8* %.reg2mem19
switch i8 %.reload20, label LBL_15 [
i8 32, label LBL_13
i8 9, label LBL_13
i8 0, label LBL_16
]
LBL_15:
store i64 %.in17.reload, i64* %sv_1, align 8
br label LBL_16
LBL_16:
%46 = load i8*, i8** %sv_2, align 8
%47 = bitcast i64* %sv_0 to i8*
%48 = call i8* @strcpy(i8* nonnull %47, i8* %46)
%49 = call i64 @FUNC(i64 %5)
%50 = trunc i64 %49 to i32
%51 = icmp eq i32 %50, 0
br i1 %51, label LBL_18, label LBL_17
LBL_17:
%52 = and i64 %49, 4294967295
store i64 %52, i64* %rax.0.reg2mem
br label LBL_30
LBL_18:
%53 = add i64 %5, 264
%54 = call i64 @FUNC(i64 1, i64 %53, i64 %5)
%55 = trunc i64 %54 to i32
%56 = icmp slt i32 %55, 0
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_20, label LBL_19
LBL_19:
%58 = and i64 %54, 4294967295
store i64 %58, i64* %rax.0.reg2mem
br label LBL_30
LBL_20:
%59 = add i64 %5, 272
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = add i32 %61, 1
store i32 %62, i32* %60, align 4
%63 = load i64, i64* %sv_1, align 8
%64 = icmp eq i64 %63, 0
br i1 %64, label LBL_24, label LBL_21
LBL_21:
%65 = ptrtoint i64* %sv_1 to i64
%66 = call i64 @FUNC(i64 1, i64 %65, i64 %5)
%67 = trunc i64 %66 to i32
%68 = icmp slt i32 %67, 0
%69 = icmp eq i1 %68, false
br i1 %69, label LBL_23, label LBL_22
LBL_22:
%70 = and i64 %66, 4294967295
store i64 %70, i64* %rax.0.reg2mem
br label LBL_30
LBL_23:
%71 = load i32, i32* %60, align 4
%72 = add i32 %71, 1
store i32 %72, i32* %60, align 4
br label LBL_24
LBL_24:
%73 = ptrtoint i8** %sv_2 to i64
%74 = call i64 @FUNC(i64 1, i64 %73, i64 %5)
%75 = trunc i64 %74 to i32
%76 = icmp eq i32 %75, 0
br i1 %76, label LBL_26, label LBL_25
LBL_25:
%77 = and i64 %74, 4294967295
store i64 %77, i64* %rax.0.reg2mem
br label LBL_30
LBL_26:
%78 = load i32, i32* %60, align 4
%79 = add i32 %78, 1
store i32 %79, i32* %60, align 4
%80 = inttoptr i64 %53 to i64*
%81 = ptrtoint i64* %sv_0 to i64
store i64 %81, i64* %80, align 8
%82 = call i64 @FUNC(i64* nonnull %sv_0)
%83 = icmp ult i64 %82, -1000
store i64 %82, i64* %rax.0.reg2mem
br i1 %83, label LBL_27, label LBL_30
LBL_27:
store i64 %82, i64* %11, align 8
%84 = call i64 @FUNC(i64 %5)
%85 = trunc i64 %84 to i32
%86 = icmp slt i32 %85, 0
%87 = icmp eq i1 %86, false
br i1 %87, label LBL_29, label LBL_28
LBL_28:
%88 = and i64 %84, 4294967295
store i64 %88, i64* %rax.0.reg2mem
br label LBL_30
LBL_29:
%89 = call i64 @FUNC(i64 %5)
store i64 %89, i64* %rax.0.reg2mem
br label LBL_30
LBL_30:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %82, { 1, 0, 2 }
uselistorder i32* %60, { 3, 2, 1, 0, 4, 5 }
uselistorder i64 %.in17.reload, { 2, 0, 1 }
uselistorder i8 %40, { 0, 2, 1 }
uselistorder i64 %.in.reload, { 0, 2, 1 }
uselistorder i64 %storemerge.in.reload, { 0, 3, 1, 2 }
uselistorder i64 %5, { 1, 2, 3, 0, 4, 6, 5, 7, 8, 9, 10, 11 }
uselistorder i8** %sv_2, { 2, 1, 0 }
uselistorder i64* %sv_0, { 0, 2, 1 }
uselistorder i8** %.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 10, 9, 1, 8, 7, 6, 5, 2, 4, 3 }
uselistorder i64 (i64, i64, i64)* @copy_strings_kernel, { 2, 1, 0 }
uselistorder i8 9, { 0, 3, 1, 2 }
uselistorder i8 0, { 0, 2, 1, 3, 4, 5, 6 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 0, 6, 7 }
uselistorder i64* %arg1, { 1, 0, 2, 3 }
uselistorder label LBL_30, { 4, 5, 0, 6, 7, 8, 9, 1, 3, 2 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | palette8torgb24_14266 | palette8torgb24 | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%sv_0.01.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = icmp eq i32 %arg3, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg4 to i64
%2 = ptrtoint i64* %arg1 to i64
%wide.trip.count = zext i32 %arg3 to i64
store i64 0, i64* %indvars.iv.reg2mem
store i64 %arg2, i64* %sv_0.01.reg2mem
br label LBL_2
LBL_2:
%sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%3 = add i64 %indvars.iv.reload, %2
%4 = inttoptr i64 %3 to i8*
%5 = load i8, i8* %4, align 1
%6 = zext i8 %5 to i64
%7 = mul i64 %6, 4
%8 = or i64 %7, 2
%9 = add i64 %8, %1
%10 = inttoptr i64 %9 to i8*
%11 = load i8, i8* %10, align 1
%12 = inttoptr i64 %sv_0.01.reload to i8*
store i8 %11, i8* %12, align 1
%13 = load i8, i8* %4, align 1
%14 = zext i8 %13 to i64
%15 = mul i64 %14, 4
%16 = or i64 %15, 1
%17 = add i64 %16, %1
%18 = add i64 %sv_0.01.reload, 1
%19 = inttoptr i64 %17 to i8*
%20 = load i8, i8* %19, align 1
%21 = inttoptr i64 %18 to i8*
store i8 %20, i8* %21, align 1
%22 = load i8, i8* %4, align 1
%23 = zext i8 %22 to i64
%24 = mul i64 %23, 4
%25 = add i64 %24, %1
%26 = add i64 %sv_0.01.reload, 2
%27 = inttoptr i64 %25 to i8*
%28 = load i8, i8* %27, align 1
%29 = inttoptr i64 %26 to i8*
store i8 %28, i8* %29, align 1
%30 = add i64 %sv_0.01.reload, 3
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %30, i64* %sv_0.01.reg2mem
store i64 %wide.trip.count, i64* %.lcssa.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.01.reg2mem, { 2, 0, 1 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i64 2, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | arp_send_dst_3799 | arp_send_dst | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i32* %arg4, i64 %arg5, i32* %arg6, i32* %arg7, i32* %arg8, i32* %arg9) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = urem i32 %2, 2
%4 = zext i32 %3 to i64
%5 = icmp eq i32 %3, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = ptrtoint i32* %arg7 to i64
%8 = ptrtoint i32* %arg8 to i64
%9 = and i64 %arg5, 4294967295
%10 = and i64 %arg1, 4294967295
%11 = ptrtoint i32* %arg6 to i64
%12 = ptrtoint i32* %arg4 to i64
%13 = trunc i64 %arg3 to i32
%14 = trunc i64 %arg2 to i32
%15 = call i64 @FUNC(i64 %10, i32 %14, i32 %13, i64 %12, i64 %9, i64 %11, i64 %7, i64 %8, i64 %11)
%16 = icmp eq i64 %15, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_3, label LBL_2
LBL_2:
%17 = ptrtoint i32* %arg9 to i64
%18 = call i64 @FUNC(i64 %17)
%19 = call i64 @FUNC(i64 %15, i64 %18)
%20 = call i64 @FUNC(i64 %15)
store i64 %20, 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 %15, { 1, 0, 2 }
uselistorder i32 %3, { 1, 0 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | ga_channel_write_all_2998 | ga_channel_write_all | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i64
%sv_1.0.ph3.reg2mem = alloca i64
%sv_2.0.ph4.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
store i64 0, i64* %sv_3, align 8
%1 = icmp eq i64 %arg3, 0
%2 = icmp eq i1 %1, false
store i64 %arg2, i64* %sv_2.0.ph4.reg2mem
store i64 %arg3, i64* %sv_1.0.ph3.reg2mem
store i64 0, i64* %sv_0.1.reg2mem
br i1 %2, label LBL_1, label LBL_5
LBL_1:
%sv_1.0.ph3.reload = load i64, i64* %sv_1.0.ph3.reg2mem
%sv_2.0.ph4.reload = load i64, i64* %sv_2.0.ph4.reg2mem
br label LBL_2
LBL_2:
%3 = call i64 @FUNC(i64 %0, i64 %sv_2.0.ph4.reload, i64 %sv_1.0.ph3.reload, i64* nonnull %sv_3)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = load i64, i64* %sv_3, align 8
%8 = sub i64 %sv_1.0.ph3.reload, %7
%9 = add i64 %7, %sv_2.0.ph4.reload
%10 = icmp eq i64 %8, 0
%11 = icmp eq i1 %10, false
store i64 %9, i64* %sv_2.0.ph4.reg2mem
store i64 %8, i64* %sv_1.0.ph3.reg2mem
store i64 %3, i64* %sv_0.1.reg2mem
br i1 %11, label LBL_1, label LBL_5
LBL_4:
%12 = icmp eq i32 %4, 1
%13 = icmp eq i1 %12, false
store i64 %3, i64* %sv_0.1.reg2mem
br i1 %13, label LBL_5, label LBL_2
LBL_5:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%14 = and i64 %sv_0.1.reload, 4294967295
ret i64 %14
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64 %sv_2.0.ph4.reload, { 1, 0 }
uselistorder i64 %sv_1.0.ph3.reload, { 1, 0 }
uselistorder i64* %sv_3, { 1, 0, 2 }
uselistorder i64* %sv_2.0.ph4.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.ph3.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1, 3 }
uselistorder label LBL_5, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | decode_init_18243 | decode_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 32
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = bitcast i64* %arg1 to i32*
store i32 0, i32* %4, align 4
%5 = add i64 %3, 24
%6 = inttoptr i64 %5 to i64*
store i64 0, i64* %6, align 8
%7 = add i64 %3, 16
%8 = inttoptr i64 %7 to i64*
store i64 0, i64* %8, align 8
%9 = add i64 %3, 8
%10 = inttoptr i64 %9 to i32*
store i32 -1, i32* %10, align 4
%11 = inttoptr i64 %3 to i32*
store i32 0, i32* %11, align 4
%12 = add i64 %3, 4
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
%14 = add i64 %0, 24
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 1196444242
%18 = zext i1 %17 to i32
%19 = add i64 %3, 48
%20 = inttoptr i64 %19 to i32*
store i32 %18, i32* %20, align 4
%21 = add i64 %0, 4
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = icmp eq i32 %23, 0
br i1 %24, label LBL_2, label LBL_1
LBL_1:
%25 = add i64 %0, 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = call i64 @FUNC(i64 %0, i64 %3, i64 %27, i32 %23)
br label LBL_2
LBL_2:
%29 = add i64 %0, 20
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = add i64 %0, 16
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = call i64 @FUNC(i64 %0, i32 %34, i32 %31, i64 4294967295)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
store i64 1, i64* %storemerge.reg2mem
br i1 %38, label LBL_3, label LBL_4
LBL_3:
%39 = add i64 %3, 56
%40 = call i64 @FUNC(i64 %39, i64 %0)
store i64 0, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %3, { 1, 0, 2, 3, 4, 5, 6, 7 }
uselistorder i64 %0, { 0, 3, 2, 1, 6, 5, 4, 7, 8 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | tilegx_cpu_class_init_17074 | tilegx_cpu_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*
store i64 4198669, i64* %arg1, align 8
store i64 4198676, i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 4198683, i64* %4, align 8
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i64*
store i64 4198690, i64* %6, align 8
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i64*
store i64 4198697, i64* %8, align 8
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i64*
store i64 4198704, i64* %10, align 8
%11 = add i64 %0, 48
%12 = inttoptr i64 %11 to i64*
store i64 4198711, i64* %12, align 8
%13 = add i64 %0, 56
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6, 7 }
} | 1 |
reposvul_c_test | init_die_291 | init_die | 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
%1 = icmp eq i1 %0, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_2
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %arg3 to i32
%4 = call i64* @calloc(i32 4, i32 %3)
%5 = ptrtoint i64* %4 to i64
store i64 %5, i64* %arg1, align 8
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
store i64 %arg2, i64* %7, align 8
%8 = add i64 %2, 16
%9 = inttoptr i64 %8 to i64*
store i64 %arg3, i64* %9, align 8
%10 = add i64 %2, 24
%11 = inttoptr i64 %10 to i64*
store i64 0, i64* %11, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | nf_ct_delete_from_lists_18230 | nf_ct_delete_from_lists | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC(i64 %arg1)
%2 = call i64 @FUNC(i64* nonnull @gv_0)
%3 = inttoptr i64 %0 to i32*
%4 = load i32, i32* %3, align 4
%5 = add i32 %4, 1
store i32 %5, i32* %3, align 4
%6 = call i64 @FUNC(i64 %arg1)
%7 = add i64 %0, 8
%8 = call i64 @FUNC(i64 %arg1, i64 %7)
%9 = call i64 @FUNC(i64* nonnull @gv_0)
ret i64 %9
} | 1 |
BinRealVul | dvbsub_probe_15674 | dvbsub_probe | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.reg2mem34 = alloca i64
%sv_0.0.reg2mem = alloca i32
%.reg2mem32 = alloca i32
%sv_1.011.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%storemerge4.lcssa.reg2mem = alloca i32
%.reg2mem30 = alloca i64
%storemerge4720.reg2mem = alloca i32
%sv_0.113.reg2mem = alloca i32
%storemerge214.reg2mem = alloca i32
%.reg2mem28 = alloca i64
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i64, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_13.thread, label LBL_1
LBL_1:
%5 = ptrtoint i64* %sv_2 to i64
%6 = sext i32 %3 to i64
%7 = add i64 %6, %0
%8 = add i64 %5, -70
%9 = add i64 %5, -54
store i32 %3, i32* %.reg2mem
store i64 0, i64* %.reg2mem28
store i32 0, i32* %storemerge214.reg2mem
store i32 0, i32* %sv_0.113.reg2mem
br label LBL_2
LBL_2:
%sv_0.113.reload = load i32, i32* %sv_0.113.reg2mem
%storemerge214.reload = load i32, i32* %storemerge214.reg2mem
%.reload29 = load i64, i64* %.reg2mem28
%.reload = load i32, i32* %.reg2mem
%10 = add i64 %.reload29, %0
%11 = inttoptr i64 %10 to i8*
%12 = load i8, i8* %11, align 1
%13 = icmp eq i8 %12, 15
%14 = icmp eq i1 %13, false
store i32 %.reload, i32* %.reg2mem32
store i32 %sv_0.113.reload, i32* %sv_0.0.reg2mem
br i1 %14, label LBL_12, label LBL_3
LBL_3:
%15 = add i64 %10, 6
%16 = icmp ugt i64 %7, %15
store i32 0, i32* %storemerge4720.reg2mem
store i64 %10, i64* %.reg2mem30
store i32 0, i32* %storemerge4.lcssa.reg2mem
br i1 %16, label LBL_4, label LBL_9
LBL_4:
%.reload31 = load i64, i64* %.reg2mem30
%storemerge4720.reload = load i32, i32* %storemerge4720.reg2mem
%17 = add i64 %.reload31, 1
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18, align 1
%20 = add i64 %.reload31, 4
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21, align 1
%23 = add i64 %.reload31, 5
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = icmp eq i8 %19, -128
br i1 %26, label LBL_7, label LBL_5
LBL_5:
%.off = add i8 %19, -16
%27 = icmp ugt i8 %.off, 4
store i32 %storemerge4720.reload, i32* %storemerge4.lcssa.reg2mem
br i1 %27, label LBL_9, label LBL_6
LBL_6:
%28 = zext i8 %19 to i64
%29 = add i64 %8, %28
%30 = inttoptr i64 %29 to i8*
%31 = load i8, i8* %30, align 1
%32 = add i8 %31, 1
store i8 %32, i8* %30, align 1
br label LBL_7
LBL_7:
%33 = zext i8 %22 to i64
%34 = mul i64 %33, 256
%35 = zext i8 %25 to i64
%36 = or i64 %34, %35
%37 = add i64 %.reload31, 6
%38 = add i64 %37, %36
%39 = add i32 %storemerge4720.reload, 1
%40 = add i64 %38, 6
%41 = icmp ugt i64 %7, %40
store i32 %39, i32* %storemerge4.lcssa.reg2mem
br i1 %41, label LBL_7.dec_label_pc_4011a5_crit_edge, label LBL_9
LBL_8:
%42 = inttoptr i64 %38 to i8*
%.pre = load i8, i8* %42, align 1
%43 = icmp eq i8 %.pre, 15
%44 = icmp eq i1 %43, false
store i32 %39, i32* %storemerge4720.reg2mem
store i64 %38, i64* %.reg2mem30
store i32 %39, i32* %storemerge4.lcssa.reg2mem
br i1 %44, label LBL_9, label LBL_4
LBL_9:
%storemerge4.lcssa.reload = load i32, i32* %storemerge4.lcssa.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
store i32 255, i32* %sv_1.011.reg2mem
br label LBL_10
LBL_10:
%sv_1.011.reload = load i32, i32* %sv_1.011.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%45 = add nuw nsw i64 %9, %indvars.iv.reload
%46 = inttoptr i64 %45 to i8*
%47 = load i8, i8* %46, align 1
%48 = zext i8 %47 to i32
%49 = sub i32 %sv_1.011.reload, %48
%50 = xor i32 %49, -2147483648
%51 = and i32 %50, %sv_1.011.reload
%52 = icmp slt i32 %51, 0
%53 = icmp eq i32 %49, 0
%54 = icmp slt i32 %49, 0
%55 = icmp ne i1 %54, %52
%56 = or i1 %53, %55
%57 = select i1 %56, i32 %sv_1.011.reload, i32 %48
%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
store i32 %57, i32* %sv_1.011.reg2mem
br i1 %exitcond, label LBL_11, label LBL_10
LBL_11:
%58 = icmp ne i32 %57, 0
%59 = icmp sgt i32 %storemerge4.lcssa.reload, %sv_0.113.reload
%or.cond = icmp eq i1 %59, %58
%spec.select = select i1 %or.cond, i32 %storemerge4.lcssa.reload, i32 %sv_0.113.reload
%.pre19 = load i32, i32* %2, align 4
store i32 %.pre19, i32* %.reg2mem32
store i32 %spec.select, i32* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.reload33 = load i32, i32* %.reg2mem32
%60 = add i32 %storemerge214.reload, 1
%61 = zext i32 %.reload33 to i64
%62 = sext i32 %60 to i64
%63 = icmp slt i64 %62, %61
store i32 %.reload33, i32* %.reg2mem
store i64 %62, i64* %.reg2mem28
store i32 %60, i32* %storemerge214.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.113.reg2mem
br i1 %63, label LBL_2, label LBL_13
LBL_13:
%64 = icmp slt i32 %sv_0.0.reload, 6
store i64 100, i64* %.reg2mem34
br i1 %64, label LBL_13.thread, label %65
LBL_14:
store i64 0, i64* %.reg2mem34
br label %65
uselistorder i32 %.reload33, { 1, 0 }
uselistorder i32 %57, { 1, 0 }
uselistorder i32 %49, { 1, 2, 0 }
uselistorder i32 %sv_1.011.reload, { 1, 2, 0 }
uselistorder i32 %39, { 1, 2, 0 }
uselistorder i64 %38, { 0, 2, 1 }
uselistorder i32 %storemerge4720.reload, { 1, 0 }
uselistorder i64 %.reload31, { 3, 1, 2, 0 }
uselistorder i32 %sv_0.113.reload, { 1, 2, 0 }
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i32 %3, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem28, { 1, 0, 2 }
uselistorder i32* %storemerge214.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.113.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge4720.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem30, { 2, 0, 1 }
uselistorder i32* %storemerge4.lcssa.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.011.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem34, { 0, 2, 1 }
uselistorder i64 6, { 2, 1, 0 }
uselistorder i32 0, { 8, 5, 6, 7, 0, 1, 2, 3, 4 }
uselistorder label %65, { 1, 0 }
uselistorder label LBL_13.thread, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | WildMidi_Open_11820 | WildMidi_Open | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
store i32 0, i32* %sv_3, align 4
store i32 441668941, i32* %sv_2, align 4
store i32 1297239878, i32* %sv_1, align 4
%0 = load i32, i32* inttoptr (i64 4210740 to i32*), align 4
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i64 66, i64 1, i64 0, i64 0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_2:
%4 = icmp eq i64 %arg1, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_4, label LBL_3
LBL_3:
%6 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i64 69, i64 2, i64 ptrtoint ([16 x i8]* @gv_1 to i64), i64 0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_4:
%7 = call i64 @FUNC(i64 %arg1, i32* nonnull %sv_3)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_5, label LBL_17
LBL_5:
%10 = inttoptr i64 %7 to i64*
%11 = call i32 @memcmp(i64* %10, i64* bitcast ([9 x i8]* @gv_2 to i64*), i32 8)
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_7, label LBL_6
LBL_6:
%14 = load i32, i32* %sv_3, align 4
%15 = zext i32 %14 to i64
%16 = call i64 @FUNC(i64 %7, i64 %15)
store i64 %16, i64* %sv_0.0.reg2mem
br label LBL_14
LBL_7:
%17 = call i32 @memcmp(i64* %10, i64* bitcast ([19 x i8]* @gv_3 to i64*), i32 18)
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_9, label LBL_8
LBL_8:
%20 = load i32, i32* %sv_3, align 4
%21 = zext i32 %20 to i64
%22 = call i64 @FUNC(i64 %7, i64 %21)
store i64 %22, i64* %sv_0.0.reg2mem
br label LBL_14
LBL_9:
%23 = bitcast i32* %sv_2 to i64*
%24 = call i32 @memcmp(i64* %10, i64* nonnull %23, i32 4)
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_11, label LBL_10
LBL_10:
%27 = load i32, i32* %sv_3, align 4
%28 = zext i32 %27 to i64
%29 = call i64 @FUNC(i64 %7, i64 %28)
store i64 %29, i64* %sv_0.0.reg2mem
br label LBL_14
LBL_11:
%30 = bitcast i32* %sv_1 to i64*
%31 = call i32 @memcmp(i64* %10, i64* nonnull %30, i32 4)
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
%34 = load i32, i32* %sv_3, align 4
%35 = zext i32 %34 to i64
br i1 %33, label LBL_13, label LBL_12
LBL_12:
%36 = call i64 @FUNC(i64 %7, i64 %35)
store i64 %36, i64* %sv_0.0.reg2mem
br label LBL_14
LBL_13:
%37 = call i64 @FUNC(i64 %7, i64 %35)
store i64 %37, i64* %sv_0.0.reg2mem
br label LBL_14
LBL_14:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
call void @free(i64* %10)
%38 = icmp eq i64 %sv_0.0.reload, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %38, label LBL_17, label LBL_15
LBL_15:
%39 = call i64 @FUNC(i64 %sv_0.0.reload)
%40 = trunc i64 %39 to i32
%41 = icmp eq i32 %40, 0
store i64 %sv_0.0.reload, i64* %rax.0.reg2mem
br i1 %41, label LBL_17, label LBL_16
LBL_16:
%42 = call i64 @FUNC(i64 %sv_0.0.reload)
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.0.reload, { 3, 0, 1, 2 }
uselistorder i64 %35, { 1, 0 }
uselistorder i64 %7, { 3, 4, 2, 1, 0, 5, 6 }
uselistorder i32* %sv_3, { 1, 2, 3, 4, 0, 5 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 5, 4, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 3, 4, 6, 5 }
uselistorder i32 (i64*, i64*, i32)* @memcmp, { 2, 3, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64)* @_WM_GLOBAL_ERROR, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 0 }
uselistorder i32 1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_17, { 2, 1, 0, 3, 4, 5 }
} | 1 |
BinRealVul | sdio_read_cis_7655 | sdio_read_cis | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_1.4.reg2mem = alloca i64*
%rdi.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.3.reg2mem = alloca i64*
%sv_1.2.reg2mem = alloca i64*
%storemerge22.reg2mem = alloca i32
%r9.1.reg2mem = alloca i64
%sv_1.1.in.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_2.1.reg2mem = alloca i32
%sv_2.023.reg2mem = alloca i32
%indvars.iv77.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i32, align 4
%sv_4 = alloca i32, align 4
%sv_5 = alloca i32, align 4
%4 = icmp eq i64* %arg2, null
%5 = mul i64 %1, 32
%6 = and i64 %5, 8160
%.op.op.op = add nuw nsw i64 %6, 256
%7 = bitcast i32* %sv_5 to i64*
%8 = select i1 %4, i64 256, i64 %.op.op.op
store i64 0, i64* %indvars.iv77.reg2mem
store i32 0, i32* %sv_2.023.reg2mem
br label LBL_1
LBL_1:
%indvars.iv77.reload = load i64, i64* %indvars.iv77.reg2mem
%9 = add nuw nsw i64 %indvars.iv77.reload, %8
%10 = call i64 @FUNC(i64 %3, i64 0, i64 0, i64 %9, i64 0, i64* nonnull %7)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = and i64 %10, 4294967295
store i64 %13, i64* %rax.0.reg2mem
br label LBL_35
LBL_3:
%sv_2.023.reload = load i32, i32* %sv_2.023.reg2mem
%14 = load i32, i32* %sv_5, align 4
%15 = urem i32 %14, 256
%indvars.iv77.tr = trunc i64 %indvars.iv77.reload to i32
%16 = mul i32 %indvars.iv77.tr, 8
%17 = shl i32 %15, %16
%18 = or i32 %17, %sv_2.023.reload
%indvars.iv.next78 = add nuw nsw i64 %indvars.iv77.reload, 1
%19 = icmp ult i64 %indvars.iv.next78, 3
store i64 %indvars.iv.next78, i64* %indvars.iv77.reg2mem
store i32 %18, i32* %sv_2.023.reg2mem
br i1 %19, label LBL_1, label LBL_4
LBL_4:
%20 = add i64 %2, 8
%storemerge8 = select i1 %4, i64 %3, i64 %20
%21 = inttoptr i64 %storemerge8 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp eq i64 %22, 0
br i1 %23, label LBL_5, label LBL_6
LBL_5:
%24 = bitcast i32* %sv_4 to i64*
%25 = ptrtoint i32* %sv_3 to i64
%26 = bitcast i32* %sv_3 to i64*
%27 = add i64 %3, 8
%28 = inttoptr i64 %27 to i64*
%29 = and i64 %3, 4294967295
%30 = inttoptr i64 %29 to i64*
store i32 %18, i32* %sv_2.1.reg2mem
store i64 %storemerge8, i64* %sv_0.0.reg2mem
br label LBL_7
LBL_6:
%31 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%32 = call i32 @fwrite(i64* bitcast ([23 x i8]* @gv_1 to i64*), i32 1, i32 22, %_IO_FILE* %31)
call void @exit(i32 1)
unreachable
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%33 = zext i32 %sv_2.1.reload to i64
%34 = call i64 @FUNC(i64 %3, i64 0, i64 0, i64 %33, i64 0, i64* nonnull %24)
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_28, label LBL_8
LBL_8:
%38 = load i32, i32* %sv_4, align 4
%39 = trunc i32 %38 to i8
%40 = icmp eq i8 %39, -1
br i1 %40, label LBL_29, label LBL_9
LBL_9:
%41 = add i32 %sv_2.1.reload, 1
%42 = zext i32 %41 to i64
%43 = call i64 @FUNC(i64 %3, i64 0, i64 0, i64 %42, i64 0, i64* nonnull %26)
%44 = trunc i64 %43 to i32
%45 = and i64 %43, 4294967295
%46 = icmp eq i32 %44, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_30, label LBL_10
LBL_10:
%48 = load i32, i32* %sv_3, align 4
%49 = trunc i32 %48 to i8
%50 = icmp eq i8 %49, -1
br i1 %50, label LBL_31, label LBL_11
LBL_11:
%51 = urem i32 %48, 256
%narrow = add nuw nsw i32 %51, 16
%52 = zext i32 %narrow to i64
%53 = call i64 @FUNC(i64 %52, i64 0)
%54 = icmp eq i64 %53, 0
%55 = icmp eq i1 %54, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %55, label LBL_12, label LBL_35
LBL_12:
%56 = add i32 %sv_2.1.reload, 2
%57 = load i32, i32* %sv_3, align 4
%58 = urem i32 %57, 256
%59 = icmp eq i32 %58, 0
store i64 %45, i64* %sv_1.1.in.reg2mem
store i64 %25, i64* %r9.1.reg2mem
br i1 %59, label LBL_17, label LBL_13
LBL_13:
%60 = add i64 %53, 10
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_14
LBL_14:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%61 = add i64 %60, %indvars.iv.reload
%62 = trunc i64 %indvars.iv.reload to i32
%63 = add i32 %56, %62
%64 = zext i32 %63 to i64
%65 = inttoptr i64 %61 to i64*
%66 = call i64 @FUNC(i64 %3, i64 0, i64 0, i64 %64, i64 0, i64* %65)
%67 = trunc i64 %66 to i32
%68 = icmp eq i32 %67, 0
%69 = icmp eq i1 %68, false
br i1 %69, label LBL_16, label LBL_15
LBL_15:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%70 = load i32, i32* %sv_3, align 4
%71 = urem i32 %70, 256
%72 = zext i32 %71 to i64
%73 = icmp ult i64 %indvars.iv.next, %72
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %73, label LBL_14, label LBL_16
LBL_16:
%74 = and i64 %66, 4294967295
store i64 %74, i64* %sv_1.1.in.reg2mem
store i64 %61, i64* %r9.1.reg2mem
br label LBL_17
LBL_17:
%sv_1.1.in.reload = load i64, i64* %sv_1.1.in.reg2mem
%sv_1.1 = inttoptr i64 %sv_1.1.in.reload to i64*
%75 = icmp eq i64 %sv_1.1.in.reload, 0
br i1 %75, label LBL_18, label LBL_19
LBL_18:
%r9.1.reload = load i64, i64* %r9.1.reg2mem
%76 = load i32, i32* %sv_4, align 4
%77 = trunc i32 %76 to i8
store i32 0, i32* %storemerge22.reg2mem
br label LBL_20
LBL_19:
%78 = call i64 @FUNC(i64 %53)
store i64* %sv_1.1, i64** %sv_1.4.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.2.reg2mem
store i64 %53, i64* %rdi.1.reg2mem
br label LBL_32
LBL_20:
%storemerge22.reload = load i32, i32* %storemerge22.reg2mem
%79 = mul i32 %storemerge22.reload, 16
%80 = zext i32 %79 to i64
%81 = add i64 %80, ptrtoint (i8** @gv_2 to i64)
%82 = inttoptr i64 %81 to i8*
%83 = load i8, i8* %82, align 8
%84 = icmp eq i8 %83, %77
br i1 %84, label LBL_23, label LBL_21
LBL_21:
%85 = icmp eq i32 %storemerge22.reload, 1
store i32 1, i32* %storemerge22.reg2mem
br i1 %85, label LBL_22, label LBL_20
LBL_22:
%86 = inttoptr i64 %53 to i64*
store i64 0, i64* %86, align 8
%87 = add i64 %53, 8
%88 = inttoptr i64 %87 to i8*
store i8 %77, i8* %88, align 1
%89 = load i32, i32* %sv_3, align 4
%90 = trunc i32 %89 to i8
%91 = add i64 %53, 9
%92 = inttoptr i64 %91 to i8*
store i8 %90, i8* %92, align 1
%93 = inttoptr i64 %sv_0.0.reload to i64*
store i64 %53, i64* %93, align 8
%94 = load i32, i32* %sv_3, align 4
%95 = load i32, i32* %sv_4, align 4
%96 = load i64, i64* %28, align 8
%97 = call i64 @FUNC(i64 %96)
%98 = urem i32 %94, 256
%99 = zext i32 %98 to i64
%100 = urem i32 %95, 256
%101 = zext i32 %100 to i64
%102 = call i64 @FUNC(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_3, i64 0, i64 0), i64 %97, i64 %101, i64 %99, i64 0, i64 %r9.1.reload)
store i64* %sv_1.1, i64** %sv_1.3.reg2mem
store i64 %53, i64* %sv_0.1.reg2mem
store i64 ptrtoint ([45 x i8]* @gv_3 to i64), i64* %rdi.0.reg2mem
br label LBL_27
LBL_23:
%103 = add i64 %80, add (i64 ptrtoint (i8** @gv_2 to i64), i64 1)
%104 = inttoptr i64 %103 to i8*
%105 = load i8, i8* %104, align 1
%106 = load i32, i32* %sv_3, align 4
%107 = trunc i32 %106 to i8
%108 = icmp ugt i8 %105, %107
br i1 %108, label LBL_24, label LBL_25
LBL_24:
%109 = load i64, i64* %28, align 8
%110 = call i64 @FUNC(i64 %109)
%111 = zext i8 %105 to i64
%112 = urem i32 %106, 256
%113 = zext i32 %112 to i64
%114 = urem i32 %76, 256
%115 = zext i32 %114 to i64
%116 = call i64 @FUNC(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_4, i64 0, i64 0), i64 %110, i64 %115, i64 %113, i64 %111, i64 %r9.1.reload)
store i64* inttoptr (i32 -22 to i64*), i64** %sv_1.2.reg2mem
br label LBL_26
LBL_25:
%117 = add i64 %80, add (i64 ptrtoint (i8** @gv_2 to i64), i64 8)
%118 = inttoptr i64 %117 to i64*
%119 = load i64, i64* %118, align 8
%120 = icmp eq i64 %119, 0
%spec.select = select i1 %120, i64* %sv_1.1, i64* %30
store i64* %spec.select, i64** %sv_1.2.reg2mem
br label LBL_26
LBL_26:
%sv_1.2.reload = load i64*, i64** %sv_1.2.reg2mem
%121 = call i64 @FUNC(i64 %53)
store i64* %sv_1.2.reload, i64** %sv_1.3.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
store i64 %53, i64* %rdi.0.reg2mem
br label LBL_27
LBL_27:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%sv_1.3.reload = load i64*, i64** %sv_1.3.reg2mem
%122 = load i32, i32* %sv_3, align 4
%123 = urem i32 %122, 256
%124 = add i32 %123, %56
%125 = ptrtoint i64* %sv_1.3.reload to i64
%126 = trunc i64 %125 to i32
%127 = icmp eq i32 %126, 0
store i32 %124, i32* %sv_2.1.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.0.reg2mem
store i64* %sv_1.3.reload, i64** %sv_1.4.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.2.reg2mem
store i64 %rdi.0.reload, i64* %rdi.1.reg2mem
br i1 %127, label LBL_7, label LBL_32
LBL_28:
%128 = and i64 %34, 4294967295
%129 = inttoptr i64 %128 to i64*
store i64* %129, i64** %sv_1.4.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.2.reg2mem
store i64 %3, i64* %rdi.1.reg2mem
br label LBL_32
LBL_29:
%130 = and i64 %34, 4294967295
%131 = inttoptr i64 %130 to i64*
store i64* %131, i64** %sv_1.4.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.2.reg2mem
store i64 %3, i64* %rdi.1.reg2mem
br label LBL_32
LBL_30:
%132 = inttoptr i64 %45 to i64*
store i64* %132, i64** %sv_1.4.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.2.reg2mem
store i64 %3, i64* %rdi.1.reg2mem
br label LBL_32
LBL_31:
%133 = inttoptr i64 %45 to i64*
store i64* %133, i64** %sv_1.4.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.2.reg2mem
store i64 %3, i64* %rdi.1.reg2mem
br label LBL_32
LBL_32:
%sv_1.4.reload = load i64*, i64** %sv_1.4.reg2mem
br i1 %4, label LBL_34, label LBL_33
LBL_33:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%134 = inttoptr i64 %sv_0.2.reload to i64*
store i64 %rdi.1.reload, i64* %134, align 8
br label LBL_34
LBL_34:
%135 = ptrtoint i64* %sv_1.4.reload to i64
%136 = and i64 %135, 4294967295
store i64 %136, i64* %rax.0.reg2mem
br label LBL_35
LBL_35:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_1.1, { 2, 1, 0 }
uselistorder i64 %sv_1.1.in.reload, { 1, 0 }
uselistorder i32 %56, { 1, 0 }
uselistorder i64 %53, { 1, 8, 2, 4, 5, 6, 7, 0, 3, 9, 10 }
uselistorder i64 %45, { 2, 1, 0 }
uselistorder i64 %34, { 1, 0, 2 }
uselistorder i32 %sv_2.1.reload, { 2, 1, 0 }
uselistorder i64 %sv_0.0.reload, { 0, 1, 2, 3, 5, 6, 4 }
uselistorder i1 %4, { 1, 2, 0 }
uselistorder i32* %sv_4, { 2, 1, 0, 3 }
uselistorder i32* %sv_3, { 7, 6, 5, 4, 3, 0, 2, 8, 1 }
uselistorder i64 %3, { 0, 1, 2, 3, 6, 7, 8, 5, 4, 9, 10 }
uselistorder i64* %indvars.iv77.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.023.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.1.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge22.reg2mem, { 1, 0, 2 }
uselistorder i64** %sv_1.3.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1 }
uselistorder i64** %sv_1.4.reg2mem, { 0, 2, 3, 4, 5, 1, 6 }
uselistorder i64* %sv_0.2.reg2mem, { 0, 2, 3, 4, 5, 1, 6 }
uselistorder i64* %rdi.1.reg2mem, { 0, 2, 3, 4, 5, 1, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @printk, { 1, 0 }
uselistorder [45 x i8]* @gv_3, { 1, 0 }
uselistorder i64 (i64)* @mmc_hostname, { 1, 0 }
uselistorder i64 (i64)* @kfree, { 1, 0 }
uselistorder %_IO_FILE** @gv_0, { 1, 0 }
uselistorder i64 8, { 0, 2, 1, 3 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64, i64*)* @mmc_io_rw_direct, { 3, 2, 1, 0 }
uselistorder i32 0, { 3, 0, 4, 2, 5, 6, 7, 1 }
uselistorder i64 256, { 1, 0 }
uselistorder label LBL_35, { 1, 0, 2 }
uselistorder label LBL_32, { 4, 3, 2, 1, 0, 5 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | silk_stabilize_lsf_1041 | silk_stabilize_lsf | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.3.reg2mem = alloca i64
%rax.1.reg2mem = alloca i64
%storemerge.in55.reg2mem = alloca i64
%storemerge2156.reg2mem = alloca i64
%storemerge25.lcssa.reg2mem = alloca i32
%storemerge2558.reg2mem = alloca i32
%storemerge2461.reg2mem = alloca i64
%.reg2mem97 = alloca i32
%sv_0.381.reg2mem = alloca i64
%storemerge2682.reg2mem = alloca i32
%sv_1.0.lcssa.reg2mem = alloca i32
%sv_1.078.reg2mem = alloca i32
%storemerge41.in79.reg2mem = alloca i64
%sv_2.0.lcssa.reg2mem = alloca i32
%sv_2.075.reg2mem = alloca i32
%storemerge4476.reg2mem = alloca i64
%storemerge51.reg2mem = alloca i32
%storemerge52.reg2mem = alloca i32
%sv_3.163.reg2mem = alloca i32
%sv_0.164.reg2mem = alloca i64
%storemerge5065.reg2mem = alloca i64
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%rdx = alloca i64, align 8
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = trunc i64 %2 to i32
%4 = icmp slt i32 %3, 0
%5 = add i64 %1, -2
%6 = bitcast i64* %rdx to i16*
%7 = bitcast i64* %arg1 to i16*
%8 = ashr exact i64 %sext, 31
%9 = add i64 %8, %0
%10 = inttoptr i64 %9 to i16*
%11 = add i64 %8, %5
%12 = inttoptr i64 %11 to i16*
%13 = trunc i64 %arg2 to i32
store i32 0, i32* %storemerge2682.reg2mem
br label LBL_17
LBL_1:
%sv_3.163.reload = load i32, i32* %sv_3.163.reg2mem
%sv_0.164.reload = load i64, i64* %sv_0.164.reg2mem
%storemerge5065.reload = load i64, i64* %storemerge5065.reg2mem
%.reload = load i32, i32* %.reg2mem
%14 = icmp eq i32 %.reload, 0
%.pre96 = mul i64 %storemerge5065.reload, 2
store i32 0, i32* %storemerge52.reg2mem
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = add i64 %.pre96, %5
%16 = inttoptr i64 %15 to i16*
%17 = load i16, i16* %16, align 2
%18 = sext i16 %17 to i32
store i32 %18, i32* %storemerge52.reg2mem
br label LBL_3
LBL_3:
%storemerge52.reload = load i32, i32* %storemerge52.reg2mem
%19 = icmp eq i32 %.reload, %3
store i32 32768, i32* %storemerge51.reg2mem
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = add i64 %.pre96, %1
%21 = inttoptr i64 %20 to i16*
%22 = load i16, i16* %21, align 2
%23 = sext i16 %22 to i32
store i32 %23, i32* %storemerge51.reg2mem
br label LBL_5
LBL_5:
%storemerge51.reload = load i32, i32* %storemerge51.reg2mem
%24 = sub nsw i32 %storemerge51.reload, %storemerge52.reload
%25 = add i64 %.pre96, %0
%26 = inttoptr i64 %25 to i16*
%27 = load i16, i16* %26, align 2
%28 = zext i16 %27 to i32
%29 = sub nsw i32 %24, %28
%30 = icmp slt i32 %29, %sv_3.163.reload
%spec.select = select i1 %30, i32 %29, i32 %sv_3.163.reload
%spec.select92 = select i1 %30, i64 %storemerge5065.reload, i64 %sv_0.164.reload
%31 = mul i64 %storemerge5065.reload, 4294967296
%sext49 = add i64 %31, 4294967296
%32 = ashr exact i64 %sext49, 32
%33 = trunc i64 %32 to i32
%34 = icmp slt i32 %3, %33
store i32 %33, i32* %.reg2mem
store i64 %32, i64* %storemerge5065.reg2mem
store i64 %spec.select92, i64* %sv_0.164.reg2mem
store i32 %spec.select, i32* %sv_3.163.reg2mem
br i1 %34, label LBL_6, label LBL_1
LBL_6:
%35 = icmp eq i32 %spec.select, 0
br i1 %35, label LBL_36, label LBL_7
LBL_7:
%36 = trunc i64 %spec.select92 to i32
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_9, label LBL_8
LBL_8:
%39 = load i16, i16* %6, align 8
store i16 %39, i16* %7, align 2
br label LBL_16
LBL_9:
%40 = icmp eq i32 %36, %3
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_10, label LBL_11
LBL_10:
%42 = icmp sgt i32 %36, 0
store i64 0, i64* %storemerge4476.reg2mem
store i32 0, i32* %sv_2.075.reg2mem
store i32 0, i32* %sv_2.0.lcssa.reg2mem
br i1 %42, label LBL_12, label LBL_13
LBL_11:
%43 = load i16, i16* %10, align 2
%44 = sub i16 -32768, %43
store i16 %44, i16* %12, align 2
br label LBL_16
LBL_12:
%sv_2.075.reload = load i32, i32* %sv_2.075.reg2mem
%storemerge4476.reload = load i64, i64* %storemerge4476.reg2mem
%45 = mul i64 %storemerge4476.reload, 2
%46 = add i64 %45, %0
%47 = inttoptr i64 %46 to i16*
%48 = load i16, i16* %47, align 2
%49 = zext i16 %48 to i32
%50 = add i32 %sv_2.075.reload, %49
%51 = mul i64 %storemerge4476.reload, 4294967296
%sext43 = add i64 %51, 4294967296
%52 = ashr exact i64 %sext43, 32
%53 = trunc i64 %52 to i32
%54 = icmp slt i32 %53, %36
store i64 %52, i64* %storemerge4476.reg2mem
store i32 %50, i32* %sv_2.075.reg2mem
store i32 %50, i32* %sv_2.0.lcssa.reg2mem
br i1 %54, label LBL_12, label LBL_13
LBL_13:
%sv_2.0.lcssa.reload = load i32, i32* %sv_2.0.lcssa.reg2mem
%sext29 = mul i64 %spec.select92, 4294967296
%55 = ashr exact i64 %sext29, 31
%56 = add i64 %55, %0
%57 = inttoptr i64 %56 to i16*
%58 = load i16, i16* %57, align 2
%59 = icmp sgt i32 %13, %36
store i64 %sext, i64* %storemerge41.in79.reg2mem
store i32 32768, i32* %sv_1.078.reg2mem
store i32 32768, i32* %sv_1.0.lcssa.reg2mem
br i1 %59, label LBL_14, label LBL_15
LBL_14:
%sv_1.078.reload = load i32, i32* %sv_1.078.reg2mem
%storemerge41.in79.reload = load i64, i64* %storemerge41.in79.reg2mem
%60 = ashr exact i64 %storemerge41.in79.reload, 31
%61 = add i64 %60, %0
%62 = inttoptr i64 %61 to i16*
%63 = load i16, i16* %62, align 2
%64 = zext i16 %63 to i32
%65 = sub i32 %sv_1.078.reload, %64
%sext40 = add i64 %storemerge41.in79.reload, -4294967296
%66 = udiv i64 %sext40, 4294967296
%67 = trunc i64 %66 to i32
%68 = icmp sgt i32 %67, %36
store i64 %sext40, i64* %storemerge41.in79.reg2mem
store i32 %65, i32* %sv_1.078.reg2mem
store i32 %65, i32* %sv_1.0.lcssa.reg2mem
br i1 %68, label LBL_14, label LBL_15
LBL_15:
%69 = udiv i16 %58, 2
%70 = zext i16 %69 to i32
%71 = add i32 %sv_2.0.lcssa.reload, %70
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
%72 = sub i32 %sv_1.0.lcssa.reload, %70
%73 = add i64 %55, %5
%74 = inttoptr i64 %73 to i16*
%75 = load i16, i16* %74, align 2
%76 = add i64 %55, %1
%77 = inttoptr i64 %76 to i16*
%78 = load i16, i16* %77, align 2
%79 = sext i16 %78 to i32
%80 = sext i16 %75 to i32
%81 = add nsw i32 %79, %80
%82 = ashr i32 %81, 1
%83 = urem i32 %81, 2
%84 = add nsw i32 %83, %82
%85 = sub i32 %84, %71
%86 = xor i32 %84, %71
%87 = xor i32 %85, %84
%88 = and i32 %87, %86
%89 = icmp slt i32 %88, 0
%90 = icmp slt i32 %85, 0
%91 = icmp eq i1 %90, %89
%92 = select i1 %91, i32 %84, i32 %71
%93 = sub i32 %72, %92
%94 = xor i32 %92, %72
%95 = xor i32 %93, %72
%96 = and i32 %95, %94
%97 = icmp slt i32 %96, 0
%98 = icmp eq i32 %93, 0
%99 = icmp slt i32 %93, 0
%100 = icmp ne i1 %99, %97
%101 = or i1 %98, %100
%102 = select i1 %101, i32 %72, i32 %92
%103 = trunc i32 %102 to i16
%104 = sub i16 %103, %69
store i16 %104, i16* %74, align 2
%105 = load i16, i16* %57, align 2
%106 = add i16 %104, %105
store i16 %106, i16* %77, align 2
br label LBL_16
LBL_16:
%107 = add nuw nsw i32 %storemerge2682.reload, 1
%108 = icmp ult i32 %107, 20
store i32 %107, i32* %storemerge2682.reg2mem
store i64 %spec.select92, i64* %sv_0.381.reg2mem
br i1 %108, label LBL_17, label LBL_18
LBL_17:
%sv_0.381.reload = load i64, i64* %sv_0.381.reg2mem
%storemerge2682.reload = load i32, i32* %storemerge2682.reg2mem
store i32 0, i32* %.reg2mem
store i64 0, i64* %storemerge5065.reg2mem
store i64 %sv_0.381.reload, i64* %sv_0.164.reg2mem
store i32 0, i32* %sv_3.163.reg2mem
br i1 %4, label LBL_36, label LBL_1
LBL_18:
%109 = icmp sgt i32 %3, 1
br i1 %109, label LBL_19, label LBL_25
LBL_19:
%110 = add i64 %1, 2
store i32 1, i32* %.reg2mem97
store i64 1, i64* %storemerge2461.reg2mem
br label LBL_20
LBL_20:
%storemerge2461.reload = load i64, i64* %storemerge2461.reg2mem
%.reload98 = load i32, i32* %.reg2mem97
%111 = mul i64 %storemerge2461.reload, 2
%112 = add i64 %111, %1
%113 = inttoptr i64 %112 to i16*
%114 = load i16, i16* %113, align 2
%storemerge2557 = add i32 %.reload98, -1
%115 = icmp slt i32 %storemerge2557, 0
store i32 %storemerge2557, i32* %storemerge25.lcssa.reg2mem
br i1 %115, label LBL_24, label LBL_21
LBL_21:
%116 = sext i16 %114 to i64
store i32 %storemerge2557, i32* %storemerge2558.reg2mem
br label LBL_23
LBL_22:
%117 = add i64 %121, %110
%118 = inttoptr i64 %117 to i16*
store i16 %124, i16* %118, align 2
%storemerge25 = add i32 %storemerge2558.reload, -1
%119 = icmp slt i32 %storemerge25, 0
store i32 %storemerge25, i32* %storemerge2558.reg2mem
store i32 -1, i32* %storemerge25.lcssa.reg2mem
br i1 %119, label LBL_24, label LBL_23
LBL_23:
%storemerge2558.reload = load i32, i32* %storemerge2558.reg2mem
%120 = sext i32 %storemerge2558.reload to i64
%121 = mul i64 %120, 2
%122 = add i64 %121, %1
%123 = inttoptr i64 %122 to i16*
%124 = load i16, i16* %123, align 2
%125 = sext i16 %124 to i64
%126 = and i64 %125, 4294967295
%127 = icmp sgt i64 %126, %116
store i32 %storemerge2558.reload, i32* %storemerge25.lcssa.reg2mem
br i1 %127, label LBL_22, label LBL_24
LBL_24:
%storemerge25.lcssa.reload = load i32, i32* %storemerge25.lcssa.reg2mem
%128 = sext i32 %storemerge25.lcssa.reload to i64
%129 = mul i64 %128, 2
%130 = add i64 %129, %110
%131 = inttoptr i64 %130 to i16*
store i16 %114, i16* %131, align 2
%132 = mul i64 %storemerge2461.reload, 4294967296
%sext23 = add i64 %132, 4294967296
%133 = ashr exact i64 %sext23, 32
%134 = trunc i64 %133 to i32
%135 = icmp slt i32 %134, %3
store i32 %134, i32* %.reg2mem97
store i64 %133, i64* %storemerge2461.reg2mem
br i1 %135, label LBL_20, label LBL_25
LBL_25:
%136 = bitcast i64* %rdi to i16*
%137 = load i16, i16* %136, align 8
%138 = sext i16 %137 to i64
%139 = load i16, i16* %6, align 8
%140 = zext i16 %139 to i64
%141 = icmp slt i64 %138, %140
br i1 %141, label LBL_26, label LBL_27
LBL_26:
store i16 %139, i16* %7, align 2
br label LBL_27
LBL_27:
store i64 1, i64* %storemerge2156.reg2mem
br i1 %109, label LBL_28, label LBL_29
LBL_28:
%storemerge2156.reload = load i64, i64* %storemerge2156.reg2mem
%142 = mul i64 %storemerge2156.reload, 2
%143 = add i64 %142, %5
%144 = inttoptr i64 %143 to i16*
%145 = load i16, i16* %144, align 2
%146 = add i64 %142, %0
%147 = inttoptr i64 %146 to i16*
%148 = load i16, i16* %147, align 2
%149 = zext i16 %148 to i64
%150 = sext i16 %145 to i64
%151 = add nsw i64 %149, %150
%152 = trunc i64 %151 to i32
%153 = add i32 %152, -32767
%154 = sub i32 32766, %152
%155 = and i32 %154, %152
%156 = icmp slt i32 %155, 0
%157 = icmp eq i32 %153, 0
%158 = icmp slt i32 %153, 0
%159 = icmp ne i1 %158, %156
%160 = or i1 %157, %159
%161 = and i64 %151, 4294967295
%162 = select i1 %160, i64 %161, i64 32767
%163 = add i64 %142, %1
%164 = inttoptr i64 %163 to i16*
%165 = load i16, i16* %164, align 2
%166 = trunc i64 %162 to i32
%167 = sext i16 %165 to i32
%168 = sub i32 %166, %167
%169 = xor i32 %166, %167
%170 = xor i32 %168, %166
%171 = and i32 %170, %169
%172 = icmp slt i32 %171, 0
%173 = icmp slt i32 %168, 0
%174 = icmp eq i1 %173, %172
%175 = trunc i64 %162 to i16
%176 = select i1 %174, i16 %175, i16 %165
store i16 %176, i16* %164, align 2
%177 = mul i64 %storemerge2156.reload, 4294967296
%sext20 = add i64 %177, 4294967296
%178 = ashr exact i64 %sext20, 32
%179 = trunc i64 %178 to i32
%180 = icmp slt i32 %179, %3
store i64 %178, i64* %storemerge2156.reg2mem
br i1 %180, label LBL_28, label LBL_29
LBL_29:
%181 = load i16, i16* %12, align 2
%182 = sext i16 %181 to i64
%183 = and i64 %182, 4294967295
%184 = load i16, i16* %10, align 2
%185 = zext i16 %184 to i64
%186 = sub nsw i64 32768, %185
%187 = and i64 %186, 4294967295
%188 = icmp ugt i64 %183, %187
br i1 %188, label LBL_30, label LBL_31
LBL_30:
%189 = sub i16 -32768, %184
store i16 %189, i16* %12, align 2
br label LBL_31
LBL_31:
%190 = add nsw i64 %2, 4294967294
%191 = and i64 %190, 4294967295
%192 = trunc i64 %190 to i32
%193 = icmp slt i32 %192, 0
%194 = icmp eq i1 %193, false
store i64 %191, i64* %rax.3.reg2mem
br i1 %194, label LBL_32, label LBL_37
LBL_32:
%sext8 = mul i64 %190, 4294967296
store i64 %sext8, i64* %storemerge.in55.reg2mem
br label LBL_33
LBL_33:
%storemerge.in55.reload = load i64, i64* %storemerge.in55.reg2mem
%195 = ashr exact i64 %storemerge.in55.reload, 31
%196 = add i64 %195, %1
%197 = inttoptr i64 %196 to i16*
%198 = load i16, i16* %197, align 2
%199 = sext i16 %198 to i64
%200 = and i64 %199, 4294967295
%201 = add nsw i64 %195, 2
%202 = add i64 %201, %1
%203 = inttoptr i64 %202 to i16*
%204 = load i16, i16* %203, align 2
%205 = add i64 %201, %0
%206 = inttoptr i64 %205 to i16*
%207 = load i16, i16* %206, align 2
%208 = sext i16 %204 to i64
%209 = zext i16 %207 to i64
%210 = sub nsw i64 %208, %209
%211 = and i64 %210, 4294967295
%212 = icmp ugt i64 %200, %211
store i64 %200, i64* %rax.1.reg2mem
br i1 %212, label LBL_34, label LBL_35
LBL_34:
%213 = sub i16 %204, %207
store i16 %213, i16* %197, align 2
store i64 %196, i64* %rax.1.reg2mem
br label LBL_35
LBL_35:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
%sext15 = add i64 %storemerge.in55.reload, -4294967296
%214 = udiv i64 %sext15, 4294967296
%215 = trunc i64 %214 to i32
%216 = icmp slt i32 %215, 0
%217 = icmp eq i1 %216, false
store i64 %sext15, i64* %storemerge.in55.reg2mem
store i64 %rax.1.reload, i64* %rax.3.reg2mem
br i1 %217, label LBL_33, label LBL_37
LBL_36:
%rax.0.le = and i64 %2, 4294967295
store i64 %rax.0.le, i64* %rax.3.reg2mem
br label LBL_37
LBL_37:
%rax.3.reload = load i64, i64* %rax.3.reg2mem
ret i64 %rax.3.reload
uselistorder i64 %195, { 1, 0 }
uselistorder i32 %168, { 1, 0 }
uselistorder i32 %153, { 1, 0 }
uselistorder i64 %142, { 2, 1, 0 }
uselistorder i64 %storemerge2156.reload, { 1, 0 }
uselistorder i16 %124, { 1, 0 }
uselistorder i32 %storemerge2557, { 1, 0, 2 }
uselistorder i64 %storemerge2461.reload, { 1, 0 }
uselistorder i32 %93, { 1, 2, 0 }
uselistorder i32 %92, { 1, 0, 2 }
uselistorder i32 %85, { 1, 0 }
uselistorder i32 %84, { 2, 0, 1, 3 }
uselistorder i32 %72, { 2, 0, 1, 3 }
uselistorder i32 %71, { 2, 0, 1 }
uselistorder i32 %70, { 1, 0 }
uselistorder i16 %69, { 1, 0 }
uselistorder i64 %storemerge4476.reload, { 1, 0 }
uselistorder i32 %36, { 2, 1, 3, 0, 4, 5 }
uselistorder i64 %spec.select92, { 0, 2, 3, 1 }
uselistorder i32 %spec.select, { 1, 0 }
uselistorder i64 %.pre96, { 2, 1, 0 }
uselistorder i64 %storemerge5065.reload, { 2, 0, 1 }
uselistorder i32 %sv_3.163.reload, { 1, 0 }
uselistorder i16* %12, { 1, 0, 2 }
uselistorder i32 %3, { 2, 0, 1, 3, 6, 5, 4 }
uselistorder i64 %sext, { 0, 2, 1 }
uselistorder i64 %1, { 0, 1, 2, 3, 4, 8, 5, 6, 7 }
uselistorder i32* %.reg2mem, { 1, 2, 0 }
uselistorder i64* %storemerge5065.reg2mem, { 1, 2, 0 }
uselistorder i64* %sv_0.164.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_3.163.reg2mem, { 1, 2, 0 }
uselistorder i32* %storemerge52.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge51.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge4476.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.075.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge41.in79.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.078.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem97, { 1, 0, 2 }
uselistorder i64* %storemerge2461.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge2156.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.in55.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.3.reg2mem, { 0, 3, 1, 2 }
uselistorder i32 -1, { 0, 2, 1 }
uselistorder i64 -4294967296, { 1, 0 }
uselistorder i16 -32768, { 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3 }
uselistorder i64 31, { 3, 0, 1, 2 }
uselistorder i64 32, { 3, 2, 1, 0, 4 }
uselistorder i64 4294967296, { 7, 0, 12, 1, 11, 2, 8, 3, 10, 4, 9, 5, 6 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_37, { 2, 0, 1 }
uselistorder label LBL_35, { 1, 0 }
uselistorder label LBL_33, { 1, 0 }
uselistorder label LBL_31, { 1, 0 }
uselistorder label LBL_28, { 1, 0 }
uselistorder label LBL_27, { 1, 0 }
uselistorder label LBL_24, { 1, 0, 2 }
uselistorder label LBL_23, { 1, 0 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | fanout_release_5915 | fanout_release | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64* nonnull @gv_0)
%3 = inttoptr i64 %1 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_5, label LBL_1
LBL_1:
store i64 0, i64* %3, align 8
%6 = call i64 @FUNC(i64 %4)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = add i64 %4, 8
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %4, 24
%12 = call i64 @FUNC(i64 %11)
%13 = call i64 @FUNC(i64 %4)
%14 = call i64 @FUNC(i64 %4)
br label LBL_3
LBL_3:
%15 = add i64 %1, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = icmp eq i64 %17, 0
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%19 = call i64 @FUNC(i64 %17, i64 4198924)
br label LBL_5
LBL_5:
%20 = call i64 @FUNC(i64* nonnull @gv_0)
ret i64 %20
uselistorder i64 %4, { 3, 2, 1, 0, 4, 5 }
uselistorder i64 (i64)* @kfree, { 1, 0 }
} | 0 |
BinRealVul | index_entry_size_9606 | index_entry_size | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64 %arg2, 0
%1 = add i64 %arg1, 8
%2 = and i64 %1, -8
%3 = add i64 %arg1, 1
%4 = add i64 %3, %arg2
%rax.0 = select i1 %0, i64 %2, i64 %4
ret i64 %rax.0
} | 0 |
BinRealVul | x25_new_lci_10247 | x25_new_lci | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64* nonnull @gv_0)
store i32 1, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_1:
%2 = call i64 @FUNC(i64 %7)
%3 = add i32 %sv_0.0.reload, 1
%4 = icmp eq i32 %sv_0.0.reload, 4095
%5 = icmp eq i1 %4, false
store i32 %3, i32* %sv_0.0.reg2mem
store i32 0, i32* %sv_0.1.reg2mem
br i1 %5, label LBL_2, label LBL_3
LBL_2:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%6 = zext i32 %sv_0.0.reload to i64
%7 = call i64 @FUNC(i64 %6, i64 %0)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %9, label LBL_1, label LBL_3
LBL_3:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%10 = call i64 @FUNC(i64* nonnull @gv_0)
%11 = zext i32 %sv_0.1.reload to i64
ret i64 %11
uselistorder i64 %7, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 0, 1, 3, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | ff_eval_refl_391 | ff_eval_refl | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge69.reg2mem = alloca i32
%storemerge10.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%5 = ptrtoint i64* %sv_2 to i64
%6 = add i64 %5, -144
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%7 = mul i64 %indvars.iv.reload, 2
%8 = add i64 %7, %4
%9 = inttoptr i64 %8 to i16*
%10 = load i16, i16* %9, align 2
%11 = sext i16 %10 to i32
%12 = mul i64 %indvars.iv.reload, 4
%13 = add i64 %6, %12
%14 = inttoptr i64 %13 to i32*
store i32 %11, i32* %14, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%15 = ptrtoint i64* %arg1 to i64
%16 = add i64 %15, 36
%17 = ptrtoint i64* %sv_0 to i64
%18 = add i64 %17, 36
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = inttoptr i64 %16 to i32*
store i32 %20, i32* %21, align 4
%22 = load i32, i32* %19, align 4
%23 = add i32 %22, 4096
%24 = icmp ult i32 %23, 8192
br i1 %24, label LBL_3, label LBL_4
LBL_3:
%25 = bitcast i64* %sv_1 to i32*
%26 = bitcast i64* %sv_0 to i32*
%27 = ptrtoint i64* %sv_1 to i64
store i32 8, i32* %storemerge10.reg2mem
br label LBL_5
LBL_4:
%28 = ptrtoint i64* %arg3 to i64
%29 = call i64 @FUNC(i64 %28, i64 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 1, i64* %rax.0.reg2mem
br label LBL_10
LBL_5:
%storemerge10.reload = load i32, i32* %storemerge10.reg2mem
%30 = sext i32 %storemerge10.reload to i64
%31 = mul i64 %30, 4
%32 = add nsw i64 %31, 4
%33 = add i64 %32, %17
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = mul i32 %35, %35
%37 = ashr i32 %36, 12
%38 = sub nsw i32 4096, %37
%39 = icmp eq i32 %38, 0
%40 = icmp eq i1 %39, false
%spec.select = select i1 %40, i32 %38, i32 -2
%41 = udiv i32 16777216, %spec.select
%42 = zext i32 %41 to i64
%43 = add i64 %32, %15
%44 = inttoptr i64 %43 to i32*
store i32 0, i32* %storemerge69.reg2mem
br label LBL_6
LBL_6:
%storemerge69.reload = load i32, i32* %storemerge69.reg2mem
%45 = sext i32 %storemerge69.reload to i64
%46 = mul i64 %45, 4
%47 = add i64 %46, %17
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = load i32, i32* %44, align 4
%51 = sub i32 %storemerge10.reload, %storemerge69.reload
%52 = sext i32 %51 to i64
%53 = mul i64 %52, 4
%54 = add i64 %53, %17
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = mul i32 %56, %50
%58 = ashr i32 %57, 12
%59 = sub i32 %49, %58
%60 = mul i32 %59, %41
%61 = sext i32 %60 to i64
%62 = sext i32 %59 to i64
%63 = mul nsw i64 %62, %42
%64 = icmp eq i64 %63, %61
store i64 1, i64* %rax.0.reg2mem
br i1 %64, label LBL_7, label LBL_10
LBL_7:
%65 = add i64 %46, %27
%66 = ashr i32 %60, 12
%67 = inttoptr i64 %65 to i32*
store i32 %66, i32* %67, align 4
%68 = add nuw i32 %storemerge69.reload, 1
%69 = icmp ugt i32 %storemerge10.reload, %storemerge69.reload
store i32 %68, i32* %storemerge69.reg2mem
br i1 %69, label LBL_6, label LBL_8
LBL_8:
%70 = add i64 %31, %27
%71 = inttoptr i64 %70 to i32*
%72 = load i32, i32* %71, align 4
%73 = add i32 %72, 4096
%74 = icmp ult i32 %73, 8192
store i64 1, i64* %rax.0.reg2mem
br i1 %74, label LBL_9, label LBL_10
LBL_9:
%75 = add i64 %31, %15
%76 = inttoptr i64 %75 to i32*
store i32 %72, i32* %76, align 4
%77 = load i32, i32* %25, align 8
%78 = load i32, i32* %26, align 8
store i32 %78, i32* %25, align 8
store i32 %77, i32* %26, align 8
%79 = add i32 %storemerge10.reload, -1
%80 = icmp slt i32 %79, 0
%81 = icmp eq i1 %80, false
store i32 %79, i32* %storemerge10.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %81, label LBL_5, label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %59, { 1, 0 }
uselistorder i64 %46, { 1, 0 }
uselistorder i32 %storemerge69.reload, { 3, 0, 1, 2 }
uselistorder i32 %35, { 1, 0 }
uselistorder i64 %31, { 2, 1, 0 }
uselistorder i32 %storemerge10.reload, { 2, 3, 0, 1 }
uselistorder i32* %26, { 1, 0 }
uselistorder i32* %25, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge10.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge69.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder i32 4096, { 1, 0, 2 }
uselistorder i64 4, { 0, 1, 4, 2, 3 }
} | 0 |
BinRealVul | read_len_table_15145 | read_len_table | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_1.11.reg2mem = alloca i32
%sv_0.02.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_0.13.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
store i32 0, i32* %sv_0.13.reg2mem
br label LBL_1
LBL_1:
%sv_0.13.reload = load i32, i32* %sv_0.13.reg2mem
%6 = call i64 @FUNC(i64 %4, i64 3)
%7 = trunc i64 %6 to i32
%8 = call i64 @FUNC(i64 %4, i64 5)
%9 = icmp eq i32 %7, 0
%10 = icmp eq i1 %9, false
store i32 %7, i32* %sv_1.0.reg2mem
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %4, i64 8)
%12 = trunc i64 %11 to i32
store i32 %12, i32* %sv_1.0.reg2mem
br label LBL_3
LBL_3:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%13 = add i32 %sv_1.0.reload, %sv_0.13.reload
%14 = icmp slt i32 %13, 257
br i1 %14, label LBL_4, label LBL_6
LBL_4:
%15 = icmp eq i32 %sv_1.0.reload, 0
%16 = icmp eq i1 %15, false
store i32 %sv_0.13.reload, i32* %sv_0.0.lcssa.reg2mem
br i1 %16, label LBL_5, label LBL_8
LBL_5:
%17 = trunc i64 %8 to i8
store i32 %sv_0.13.reload, i32* %sv_0.02.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.11.reg2mem
br label LBL_7
LBL_6:
%18 = call i64 @FUNC(i64 0, i64 0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_9
LBL_7:
%sv_1.11.reload = load i32, i32* %sv_1.11.reg2mem
%sv_0.02.reload = load i32, i32* %sv_0.02.reg2mem
%19 = add i32 %sv_1.11.reload, -1
%20 = add i32 %sv_0.02.reload, 1
%21 = sext i32 %sv_0.02.reload to i64
%22 = add i64 %21, %5
%23 = inttoptr i64 %22 to i8*
store i8 %17, i8* %23, align 1
%24 = icmp eq i32 %19, 0
%25 = icmp eq i1 %24, false
store i32 %20, i32* %sv_0.02.reg2mem
store i32 %19, i32* %sv_1.11.reg2mem
store i32 %20, i32* %sv_0.0.lcssa.reg2mem
br i1 %25, label LBL_7, label LBL_8
LBL_8:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%26 = icmp slt i32 %sv_0.0.lcssa.reload, 256
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.13.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %26, label LBL_1, label LBL_9
LBL_9:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %sv_0.0.lcssa.reload, { 1, 0 }
uselistorder i32 %sv_0.02.reload, { 1, 0 }
uselistorder i32 %sv_0.13.reload, { 1, 0, 2 }
uselistorder i64 %4, { 0, 2, 1 }
uselistorder i32* %sv_0.13.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.02.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.11.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @get_bits, { 2, 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | tg3_get_5752_nvram_info_8710 | tg3_get_5752_nvram_info | 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 1)
%2 = and i64 %1, 134217728
%3 = icmp eq i64 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0, i64 1)
br label LBL_2
LBL_2:
%5 = trunc i64 %1 to i32
%6 = urem i32 %5, 256
%7 = icmp eq i32 %6, 96
br i1 %7, label LBL_13, label LBL_3
LBL_3:
%8 = icmp ult i32 %6, 97
br i1 %8, label LBL_4, label LBL_14
LBL_4:
%9 = icmp eq i32 %6, 80
br i1 %9, label LBL_13, label LBL_5
LBL_5:
%10 = icmp ult i32 %6, 81
br i1 %10, label LBL_6, label LBL_14
LBL_6:
%11 = icmp eq i32 %6, 64
br i1 %11, label LBL_13, label LBL_7
LBL_7:
%12 = icmp ult i32 %6, 65
br i1 %12, label LBL_8, label LBL_14
LBL_8:
%13 = icmp eq i32 %6, 48
br i1 %13, label LBL_12, label LBL_9
LBL_9:
%14 = icmp ult i32 %6, 49
br i1 %14, label LBL_10, label LBL_14
LBL_10:
%15 = icmp ne i32 %6, 16
%16 = icmp eq i32 %6, 32
%17 = icmp eq i1 %16, false
%or.cond = icmp eq i1 %15, %17
br i1 %or.cond, label LBL_14, label LBL_11
LBL_11:
%18 = bitcast i64* %arg1 to i32*
store i32 1, i32* %18, align 4
%19 = call i64 @FUNC(i64 %0, i64 2)
br label LBL_14
LBL_12:
%20 = bitcast i64* %arg1 to i32*
store i32 1, i32* %20, align 4
%21 = call i64 @FUNC(i64 %0, i64 2)
%22 = call i64 @FUNC(i64 %0, i64 4)
br label LBL_14
LBL_13:
%23 = bitcast i64* %arg1 to i32*
store i32 2, i32* %23, align 4
%24 = call i64 @FUNC(i64 %0, i64 2)
%25 = call i64 @FUNC(i64 %0, i64 4)
br label LBL_14
LBL_14:
%26 = call i64 @FUNC(i64 %0, i64 4)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_16, label LBL_15
LBL_15:
%29 = and i64 %1, 4294967295
%30 = call i64 @FUNC(i64 %0, i64 %29)
store i64 %30, i64* %storemerge.reg2mem
br label LBL_17
LBL_16:
%31 = add i64 %0, 4
%32 = inttoptr i64 %31 to i32*
store i32 512, i32* %32, align 4
%33 = urem i64 %1, 2147483648
%34 = call i64 @FUNC(i64 1, i64 %33)
store i64 %34, i64* %storemerge.reg2mem
br label LBL_17
LBL_17:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %6, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 0, 1, 3, 2 }
uselistorder i64 %0, { 5, 4, 6, 8, 7, 3, 2, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 4, { 3, 0, 1, 2 }
uselistorder i64 (i64, i64)* @tg3_flag_set, { 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_14, { 5, 6, 7, 0, 1, 2, 3, 4 }
} | 0 |
BinRealVul | s390_virtio_register_5137 | s390_virtio_register | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64* nonnull @gv_0)
%1 = call i64 @FUNC(i64* nonnull @gv_1)
%2 = call i64 @FUNC(i64* nonnull @gv_2)
ret i64 %2
uselistorder i64 (i64*)* @s390_virtio_bus_register_withprop, { 2, 1, 0 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.