dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | mark_used_background_color_6348 | mark_used_background_color | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = add i64 %2, 16
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = icmp eq i32 %8, 255
%11 = icmp eq i1 %10, false
%12 = zext i1 %11 to i64
%13 = and i32 %8, -256
%14 = zext i32 %13 to i64
%15 = or i64 %12, %14
store i64 %15, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%16 = add i64 %5, 16
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp slt i32 %18, 0
%20 = zext i1 %19 to i64
store i64 %20, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%21 = trunc i64 %storemerge.reload to i8
%22 = icmp eq i8 %21, 0
store i64 %storemerge.reload, i64* %rax.0.reg2mem
br i1 %22, label LBL_14, label LBL_4
LBL_4:
%23 = inttoptr i64 %5 to i32*
%24 = add i64 %2, 20
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = icmp slt i32 %26, 0
br i1 %27, label LBL_6, label LBL_5
LBL_5:
%28 = icmp eq i32 %26, 0
br i1 %28, label LBL_11, label LBL_7
LBL_6:
%29 = add i64 %5, 20
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = icmp eq i32 %31, 0
br i1 %32, label LBL_11, label LBL_7
LBL_7:
%33 = load i32, i32* %23, align 4
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_11, label LBL_8
LBL_8:
%36 = add i64 %5, 4
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = icmp eq i32 %38, 0
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_11, label LBL_9
LBL_9:
%41 = trunc i64 %1 to i32
%42 = add i64 %5, 8
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = icmp eq i32 %44, %41
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_11, label LBL_10
LBL_10:
%47 = add i64 %5, 12
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = add i64 %2, 4
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = zext i32 %52 to i64
%54 = icmp eq i32 %49, %52
store i64 %53, i64* %rax.0.reg2mem
br i1 %54, label LBL_14, label LBL_11
LBL_11:
%55 = icmp eq i64 %5, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %55, label LBL_14, label LBL_12
LBL_12:
%56 = load i32, i32* %23, align 4
%57 = zext i32 %56 to i64
%58 = icmp ult i32 %8, %56
store i64 %57, i64* %rax.0.reg2mem
br i1 %58, label LBL_13, label LBL_14
LBL_13:
%59 = add i64 %5, 8
%60 = inttoptr i64 %59 to i64*
%61 = load i64, i64* %60, align 8
%62 = sext i32 %8 to i64
%63 = mul i64 %62, 4
%64 = add i64 %61, %63
%65 = inttoptr i64 %64 to i32*
%66 = load i32, i32* %65, align 4
%67 = or i32 %66, 1
store i32 %67, i32* %65, align 4
store i64 %64, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %8, { 1, 0, 3, 2, 4 }
uselistorder i64 %5, { 1, 0, 3, 4, 5, 2, 7, 6 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 4, 1, 5 }
uselistorder label LBL_14, { 1, 0, 2, 3, 4 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | get_len_655 | get_len | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.1.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_0.04.reg2mem = alloca i32
%sv_0.05.reg2mem = alloca i32
%1 = load i64, i64* %0
%sext = mul i64 %arg3, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = and i64 %2, %arg2
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i32 %4, i32* %sv_0.1.reg2mem
br i1 %6, label LBL_6, label LBL_1
LBL_1:
%7 = trunc i64 %1 to i32
%8 = ptrtoint i32* %arg1 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
store i32 %4, i32* %sv_0.05.reg2mem
store i32 %4, i32* %sv_0.04.reg2mem
store i32 %10, i32* %.reg2mem
br i1 %11, label LBL_2, label LBL_5
LBL_2:
%sv_0.05.reload = load i32, i32* %sv_0.05.reg2mem
%12 = icmp slt i32 %sv_0.05.reload, 2147482647
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = or i32 %7, 1
store i32 %13, i32* %arg1, align 4
store i32 %sv_0.05.reload, i32* %sv_0.04.reg2mem
store i32 0, i32* %.reg2mem
br label LBL_5
LBL_4:
%14 = add i32 %sv_0.05.reload, 255
%15 = call i64 @FUNC(i64 %8)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
store i32 %14, i32* %sv_0.05.reg2mem
store i32 %14, i32* %sv_0.04.reg2mem
store i32 %16, i32* %.reg2mem
br i1 %17, label LBL_2, label LBL_5
LBL_5:
%.reload = load i32, i32* %.reg2mem
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%18 = trunc i64 %2 to i32
%19 = add i32 %sv_0.04.reload, %18
%20 = add i32 %19, %.reload
store i32 %20, i32* %sv_0.1.reg2mem
br label LBL_6
LBL_6:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%21 = zext i32 %sv_0.1.reload to i64
ret i64 %21
uselistorder i32 %sv_0.05.reload, { 2, 0, 1 }
uselistorder i64 %8, { 1, 0 }
uselistorder i32 %4, { 1, 2, 0, 3 }
uselistorder i64 %2, { 1, 0 }
uselistorder i32* %sv_0.05.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.04.reg2mem, { 0, 1, 3, 2 }
uselistorder i32* %.reg2mem, { 0, 1, 3, 2 }
uselistorder i64 (i64)* @get_byte, { 1, 0 }
uselistorder label LBL_5, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ReadDOTImage_7823 | ReadDOTImage | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rsi.3.reg2mem = alloca i64
%rsi.2.reg2mem = alloca i64
%rsi.1.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%3 = icmp eq i64* %arg1, null
%4 = icmp eq i1 %3, false
store i64 %2, i64* %rsi.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 154, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([46 x i8]* @gv_1 to i64), i64* %rsi.0.reg2mem
br label LBL_2
LBL_2:
%5 = ptrtoint i64* %arg1 to i64
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%6 = add i64 %5, 1040
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 305419896
store i64 %rsi.0.reload, i64* %rsi.1.reg2mem
br i1 %9, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 155, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([46 x i8]* @gv_1 to i64), i64* %rsi.1.reg2mem
br label LBL_4
LBL_4:
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%10 = add i64 %5, 1032
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
store i64 %rsi.1.reload, i64* %rsi.2.reg2mem
br i1 %13, label LBL_6, label LBL_5
LBL_5:
%14 = add i64 %5, 1024
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC()
%18 = call i64 @FUNC(i64 0, i64 %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, i64 0, i64 0), i64 %16)
store i64 %17, i64* %rsi.2.reg2mem
br label LBL_6
LBL_6:
%rsi.2.reload = load i64, i64* %rsi.2.reg2mem
%19 = icmp eq i64* %arg2, null
%20 = icmp eq i1 %19, false
store i64 %rsi.2.reload, i64* %rsi.3.reg2mem
br i1 %20, label LBL_8, label LBL_7
LBL_7:
call void @__assert_fail(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 159, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([46 x i8]* @gv_1 to i64), i64* %rsi.3.reg2mem
br label LBL_8
LBL_8:
%rsi.3.reload = load i64, i64* %rsi.3.reg2mem
%21 = icmp eq i64 %rsi.3.reload, 305419896
br i1 %21, label LBL_10, label LBL_9
LBL_9:
call void @__assert_fail(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_6, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 160, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_10
LBL_10:
%22 = load i64, i64* @gv_7, align 8
%23 = icmp eq i64 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_12, label LBL_11
LBL_11:
call void @__assert_fail(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_8, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 161, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_12
LBL_12:
%25 = call i64 @FUNC(i64 %5, i64 %2)
%26 = call i64 @FUNC(i64 %5, i64 %25, i64 1, i64 %2)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
store i64 0, i64* %rax.0.reg2mem
br i1 %29, label LBL_13, label LBL_20
LBL_13:
%30 = call i64 @FUNC(i64 %5)
%31 = call i64 @FUNC(i64 %30, i64 0, i64 0)
%32 = call i64 @FUNC(i64 %30, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_9, i64 0, i64 0), i64 1024)
%33 = add i64 %30, 1024
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = call i64 @FUNC(i64 %35)
%37 = add i64 %5, 1024
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = load i64, i64* %34, align 8
%41 = call i64 @FUNC(i64* nonnull %sv_0, i64 1024, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_10, i64 0, i64 0), i64 %40, i64 %39, i64 %1)
%42 = call i64 @FUNC(i64 %25)
%43 = call i64 @FUNC(i64 %42)
%44 = icmp eq i64 %43, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_15, label LBL_14
LBL_14:
%46 = load i64, i64* %34, align 8
%47 = call i64 @FUNC(i64 %46)
store i64 0, i64* %rax.0.reg2mem
br label LBL_20
LBL_15:
%48 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_11, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
%50 = icmp eq i1 %49, false
%51 = load i64, i64* @gv_7, align 8
br i1 %50, label LBL_17, label LBL_16
LBL_16:
%52 = call i64 @FUNC(i64 %51, i64 %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_12, i64 0, i64 0))
br label LBL_18
LBL_17:
%53 = inttoptr i64 %48 to i8*
%54 = call i64 @FUNC(i64 %51, i64 %43, i8* %53)
br label LBL_18
LBL_18:
%55 = load i64, i64* %34, align 8
%56 = load i64, i64* @gv_7, align 8
%57 = call i64 @FUNC(i64 %56, i64 %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_13, i64 0, i64 0), i64 %55)
%58 = load i64, i64* @gv_7, align 8
%59 = call i64 @FUNC(i64 %58, i64 %43)
%60 = call i64 @FUNC(i64 %43)
%61 = call i64 @FUNC(i64 %30, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_9, i64 0, i64 0), i64 256)
%62 = call i64 @FUNC(i64 %30, i64 %2)
%63 = load i64, i64* %34, align 8
%64 = call i64 @FUNC(i64 %63)
%65 = call i64 @FUNC(i64 %30)
%66 = icmp eq i64 %62, 0
%67 = icmp eq i1 %66, false
store i64 0, i64* %rax.0.reg2mem
br i1 %67, label LBL_19, label LBL_20
LBL_19:
%68 = call i64 @FUNC(i64 %62)
store i64 %68, i64* %rax.0.reg2mem
br label LBL_20
LBL_20:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %51, { 1, 0 }
uselistorder i64 %43, { 3, 2, 1, 4, 0, 5 }
uselistorder i64* %34, { 1, 2, 0, 3, 4 }
uselistorder i64 %30, { 0, 2, 1, 3, 4, 5 }
uselistorder i64 %5, { 0, 1, 2, 4, 3, 6, 5, 7 }
uselistorder i64 %2, { 1, 3, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64 (i64, i64, i8*)* @gvLayout, { 1, 0 }
uselistorder i64 (i64)* @RelinquishUniqueFileResource, { 1, 0 }
uselistorder i64 (i64, i8*, i64)* @CopyMagickString, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 1024, { 0, 2, 3, 1, 4 }
uselistorder i32 0, { 3, 4, 0, 1, 2 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 4, 3, 2, 1, 0 }
uselistorder [46 x i8]* @gv_1, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_20, { 2, 0, 3, 1 }
} | 1 |
BinRealVul | libopenjpeg_copy_packed16_2170 | libopenjpeg_copy_packed16 | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge5.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%.pre.reg2mem = alloca i64
%.pre21.reg2mem = alloca i64
%.pre43.reg2mem = alloca i64
%.pre2148.reg2mem = alloca i64
%.reg2mem77 = alloca i64
%.pre-phi24.reg2mem = alloca i64
%.pre44.reg2mem = alloca i64
%.pre2149.reg2mem = alloca i64
%storemerge212.reg2mem = alloca i32
%.reg2mem75 = alloca i32
%.reg2mem73 = alloca i64
%sv_0.013.reg2mem = alloca i32
%.reg2mem71 = alloca i64
%.reg2mem69 = alloca i64
%.pre45.reg2mem = alloca i64
%.pre2150.reg2mem = alloca i64
%storemerge3.lcssa.reg2mem = alloca i32
%.reg2mem67 = alloca i64
%.pre46.reg2mem = alloca i64
%.pre2151.reg2mem = alloca i64
%.reg2mem65 = alloca i64
%.pre39.reg2mem = alloca i64
%.pre2154.reg2mem = alloca i64
%sv_1.09.reg2mem = alloca i32
%.reg2mem63 = alloca i64
%storemerge4.lcssa.reg2mem = alloca i32
%.reg2mem61 = alloca i64
%.pre40.reg2mem = alloca i64
%.pre2152.reg2mem = alloca i64
%.pre-phi58.reg2mem = alloca i32*
%sv_2.07.reg2mem = alloca i32
%storemerge48.reg2mem = alloca i32
%.reg2mem59 = alloca i64
%storemerge310.reg2mem = alloca i32
%.reg2mem = alloca i64
%.pre41.reg2mem = alloca i64
%.pre2153.reg2mem = alloca i64
%storemerge616.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = trunc i64 %3 to i32
%6 = add i64 %4, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp sgt i32 %5, 0
store i64 1, i64* %storemerge5.reg2mem
br i1 %9, label LBL_1, label LBL_20
LBL_1:
%10 = ptrtoint i64* %arg3 to i64
%11 = add i64 %10, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %4, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = ashr i32 %16, 31
%18 = zext i32 %16 to i64
%19 = zext i32 %17 to i64
%20 = mul i64 %19, 4294967296
%21 = or i64 %20, %18
%22 = and i64 %3, 4294967295
%23 = sdiv i64 %21, %22
%24 = and i64 %23, 4294967295
store i32 0, i32* %storemerge616.reg2mem
br label LBL_2
LBL_2:
%storemerge616.reload = load i32, i32* %storemerge616.reg2mem
%25 = sext i32 %storemerge616.reload to i64
%26 = mul i64 %25, 16
%27 = add i64 %26, %13
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = zext i32 %29 to i64
%31 = icmp ult i64 %24, %30
br i1 %31, label LBL_3, label LBL_4
LBL_3:
%32 = ptrtoint i32* %arg1 to i64
%33 = call i64 @FUNC(i64 %32, i64 0, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_0, i64 0, i64 0), i64 %30, i64 %2, i64 %1)
store i64 0, i64* %storemerge5.reg2mem
br label LBL_20
LBL_4:
%34 = add nuw i32 %storemerge616.reload, 1
%35 = icmp slt i32 %34, %5
store i32 %34, i32* %storemerge616.reg2mem
br i1 %35, label LBL_2, label LBL_5
LBL_5:
%36 = ptrtoint i32* %arg1 to i64
%37 = add i64 %36, 4
%38 = inttoptr i64 %37 to i32*
%39 = bitcast i64* %rdi to i32*
store i64 %13, i64* %.pre21.reg2mem
store i64 %13, i64* %.pre.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_18
LBL_6:
%storemerge310.reload = load i32, i32* %storemerge310.reg2mem
%.reload = load i64, i64* %.reg2mem
%.pre41.reload = load i64, i64* %.pre41.reg2mem
%.pre2153.reload = load i64, i64* %.pre2153.reg2mem
%40 = add i64 %.reload, %.pre22
%41 = add i64 %40, 8
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = inttoptr i64 %40 to i32*
%45 = load i32, i32* %44, align 4
%46 = mul i32 %45, %storemerge310.reload
%47 = sext i32 %46 to i64
%48 = mul i64 %47, 4
%49 = add i64 %48, %43
%50 = load i32, i32* %15, align 4
%51 = load i32, i32* %39, align 8
%52 = icmp eq i32 %51, 0
store i32* %44, i32** %.pre-phi58.reg2mem
store i64 %.pre2153.reload, i64* %.pre2152.reg2mem
store i64 %.pre41.reload, i64* %.pre40.reg2mem
store i64 %.reload, i64* %.reg2mem61
store i32 0, i32* %storemerge4.lcssa.reg2mem
br i1 %52, label LBL_10, label LBL_7
LBL_7:
%53 = icmp slt i32 %50, 0
%54 = zext i1 %53 to i32
%55 = add i32 %50, %54
%56 = ashr i32 %55, 1
%57 = mul i32 %56, %storemerge310.reload
%58 = add i32 %57, %143
store i64 0, i64* %.reg2mem59
store i32 0, i32* %storemerge48.reg2mem
store i32 %58, i32* %sv_2.07.reg2mem
br label LBL_8
LBL_8:
%sv_2.07.reload = load i32, i32* %sv_2.07.reg2mem
%storemerge48.reload = load i32, i32* %storemerge48.reg2mem
%.reload60 = load i64, i64* %.reg2mem59
%59 = sext i32 %sv_2.07.reload to i64
%60 = mul i64 %59, 2
%61 = add i64 %60, %8
%62 = inttoptr i64 %61 to i16*
%63 = load i16, i16* %62, align 2
%64 = mul i64 %.reload60, 4
%65 = add i64 %64, %49
%66 = zext i16 %63 to i32
%67 = inttoptr i64 %65 to i32*
store i32 %66, i32* %67, align 4
%68 = add i32 %sv_2.07.reload, %5
%69 = add i32 %storemerge48.reload, 1
%70 = load i32, i32* %39, align 8
%71 = zext i32 %70 to i64
%72 = sext i32 %69 to i64
%73 = icmp slt i64 %72, %71
store i64 %72, i64* %.reg2mem59
store i32 %69, i32* %storemerge48.reg2mem
store i32 %68, i32* %sv_2.07.reg2mem
br i1 %73, label LBL_8, label LBL_9
LBL_9:
%.pre20 = load i64, i64* %12, align 8
%.pre55 = add i64 %.pre20, %.pre22
%.pre57 = inttoptr i64 %.pre55 to i32*
store i32* %.pre57, i32** %.pre-phi58.reg2mem
store i64 %.pre20, i64* %.pre2152.reg2mem
store i64 %.pre20, i64* %.pre40.reg2mem
store i64 %.pre20, i64* %.reg2mem61
store i32 %69, i32* %storemerge4.lcssa.reg2mem
br label LBL_10
LBL_10:
%storemerge4.lcssa.reload = load i32, i32* %storemerge4.lcssa.reg2mem
%.reload62 = load i64, i64* %.reg2mem61
%.pre40.reload = load i64, i64* %.pre40.reg2mem
%.pre2152.reload = load i64, i64* %.pre2152.reg2mem
%.pre-phi58.reload = load i32*, i32** %.pre-phi58.reg2mem
%74 = load i32, i32* %.pre-phi58.reload, align 4
%75 = zext i32 %74 to i64
%76 = sext i32 %storemerge4.lcssa.reload to i64
%77 = icmp slt i64 %76, %75
store i64 %76, i64* %.reg2mem63
store i32 %storemerge4.lcssa.reload, i32* %sv_1.09.reg2mem
store i64 %.pre2152.reload, i64* %.pre2154.reg2mem
store i64 %.pre40.reload, i64* %.pre39.reg2mem
store i64 %.reload62, i64* %.reg2mem65
br i1 %77, label LBL_11, label LBL_12
LBL_11:
%sv_1.09.reload = load i32, i32* %sv_1.09.reg2mem
%.reload64 = load i64, i64* %.reg2mem63
%78 = mul i64 %.reload64, 4
%79 = add i64 %78, %49
%80 = add i64 %79, -4
%81 = inttoptr i64 %80 to i32*
%82 = load i32, i32* %81, align 4
%83 = inttoptr i64 %79 to i32*
store i32 %82, i32* %83, align 4
%84 = add i32 %sv_1.09.reload, 1
%85 = load i64, i64* %12, align 8
%86 = add i64 %85, %.pre22
%87 = inttoptr i64 %86 to i32*
%88 = load i32, i32* %87, align 4
%89 = zext i32 %88 to i64
%90 = sext i32 %84 to i64
%91 = icmp slt i64 %90, %89
store i64 %90, i64* %.reg2mem63
store i32 %84, i32* %sv_1.09.reg2mem
store i64 %85, i64* %.pre2154.reg2mem
store i64 %85, i64* %.pre39.reg2mem
store i64 %85, i64* %.reg2mem65
br i1 %91, label LBL_11, label LBL_12
LBL_12:
%.reload66 = load i64, i64* %.reg2mem65
%.pre39.reload = load i64, i64* %.pre39.reg2mem
%.pre2154.reload = load i64, i64* %.pre2154.reg2mem
%92 = add i32 %storemerge310.reload, 1
%93 = load i32, i32* %38, align 4
%94 = zext i32 %93 to i64
%95 = sext i32 %92 to i64
%96 = icmp slt i64 %95, %94
store i64 %.pre2154.reload, i64* %.pre2153.reg2mem
store i64 %.pre39.reload, i64* %.pre41.reg2mem
store i64 %.reload66, i64* %.reg2mem
store i32 %92, i32* %storemerge310.reg2mem
store i64 %.pre2154.reload, i64* %.pre2151.reg2mem
store i64 %.pre39.reload, i64* %.pre46.reg2mem
store i64 %.reload66, i64* %.reg2mem67
store i32 %92, i32* %storemerge3.lcssa.reg2mem
br i1 %96, label LBL_6, label LBL_13
LBL_13:
%storemerge3.lcssa.reload = load i32, i32* %storemerge3.lcssa.reg2mem
%.reload68 = load i64, i64* %.reg2mem67
%.pre46.reload = load i64, i64* %.pre46.reg2mem
%.pre2151.reload = load i64, i64* %.pre2151.reg2mem
%97 = add i64 %.reload68, %.pre22
%98 = add i64 %97, 4
%99 = inttoptr i64 %98 to i32*
%100 = load i32, i32* %99, align 4
%101 = zext i32 %100 to i64
%102 = sext i32 %storemerge3.lcssa.reload to i64
%103 = icmp slt i64 %102, %101
store i64 %.pre2151.reload, i64* %.pre2150.reg2mem
store i64 %.pre46.reload, i64* %.pre45.reg2mem
store i64 %.reload68, i64* %.reg2mem69
store i64 %97, i64* %.reg2mem71
store i32 %storemerge3.lcssa.reload, i32* %sv_0.013.reg2mem
store i64 %.pre2151.reload, i64* %.pre2148.reg2mem
store i64 %.pre46.reload, i64* %.pre43.reg2mem
br i1 %103, label LBL_14, label LBL_17
LBL_14:
%sv_0.013.reload = load i32, i32* %sv_0.013.reg2mem
%.reload72 = load i64, i64* %.reg2mem71
%.reload70 = load i64, i64* %.reg2mem69
%.pre45.reload = load i64, i64* %.pre45.reg2mem
%.pre2150.reload = load i64, i64* %.pre2150.reg2mem
%104 = add i64 %.reload72, 8
%105 = inttoptr i64 %104 to i64*
%106 = load i64, i64* %105, align 8
%107 = inttoptr i64 %.reload72 to i32*
%108 = load i32, i32* %107, align 4
%109 = mul i32 %108, %sv_0.013.reload
%110 = sext i32 %109 to i64
%111 = mul i64 %110, 4
%112 = add i64 %111, %106
%113 = add i64 %.reload70, %.pre22
%114 = inttoptr i64 %113 to i32*
%115 = load i32, i32* %114, align 4
%116 = icmp eq i32 %115, 0
store i64 0, i64* %.reg2mem73
store i32 %115, i32* %.reg2mem75
store i32 0, i32* %storemerge212.reg2mem
store i64 %.pre2150.reload, i64* %.pre2149.reg2mem
store i64 %.pre45.reload, i64* %.pre44.reg2mem
store i64 %113, i64* %.pre-phi24.reg2mem
store i64 %.reload70, i64* %.reg2mem77
br i1 %116, label LBL_16, label LBL_15
LBL_15:
%storemerge212.reload = load i32, i32* %storemerge212.reg2mem
%.reload76 = load i32, i32* %.reg2mem75
%.reload74 = load i64, i64* %.reg2mem73
%117 = sub i32 %storemerge212.reload, %.reload76
%118 = sext i32 %117 to i64
%119 = mul i64 %118, 4
%120 = add i64 %119, %112
%121 = mul i64 %.reload74, 4
%122 = add i64 %121, %112
%123 = inttoptr i64 %120 to i32*
%124 = load i32, i32* %123, align 4
%125 = inttoptr i64 %122 to i32*
store i32 %124, i32* %125, align 4
%126 = add i32 %storemerge212.reload, 1
%127 = load i64, i64* %12, align 8
%128 = add i64 %127, %.pre22
%129 = inttoptr i64 %128 to i32*
%130 = load i32, i32* %129, align 4
%131 = zext i32 %130 to i64
%132 = sext i32 %126 to i64
%133 = icmp slt i64 %132, %131
store i64 %132, i64* %.reg2mem73
store i32 %130, i32* %.reg2mem75
store i32 %126, i32* %storemerge212.reg2mem
store i64 %127, i64* %.pre2149.reg2mem
store i64 %127, i64* %.pre44.reg2mem
store i64 %128, i64* %.pre-phi24.reg2mem
store i64 %127, i64* %.reg2mem77
br i1 %133, label LBL_15, label LBL_16
LBL_16:
%.reload78 = load i64, i64* %.reg2mem77
%.pre-phi24.reload = load i64, i64* %.pre-phi24.reg2mem
%.pre44.reload = load i64, i64* %.pre44.reg2mem
%.pre2149.reload = load i64, i64* %.pre2149.reg2mem
%134 = add i32 %sv_0.013.reload, 1
%135 = add i64 %.pre-phi24.reload, 4
%136 = inttoptr i64 %135 to i32*
%137 = load i32, i32* %136, align 4
%138 = zext i32 %137 to i64
%139 = sext i32 %134 to i64
%140 = icmp slt i64 %139, %138
store i64 %.pre2149.reload, i64* %.pre2150.reg2mem
store i64 %.pre44.reload, i64* %.pre45.reg2mem
store i64 %.reload78, i64* %.reg2mem69
store i64 %.pre-phi24.reload, i64* %.reg2mem71
store i32 %134, i32* %sv_0.013.reg2mem
store i64 %.pre2149.reload, i64* %.pre2148.reg2mem
store i64 %.pre44.reload, i64* %.pre43.reg2mem
br i1 %140, label LBL_14, label LBL_17
LBL_17:
%.pre43.reload = load i64, i64* %.pre43.reg2mem
%.pre2148.reload = load i64, i64* %.pre2148.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %22
store i64 %.pre2148.reload, i64* %.pre21.reg2mem
store i64 %.pre43.reload, i64* %.pre.reg2mem
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 1, i64* %storemerge5.reg2mem
br i1 %exitcond, label LBL_20, label LBL_18
LBL_18:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%.pre21.reload = load i64, i64* %.pre21.reg2mem
%141 = load i32, i32* %38, align 4
%142 = icmp eq i32 %141, 0
%.pre22 = mul i64 %indvars.iv.reload, 16
store i64 %.pre21.reload, i64* %.pre2151.reg2mem
store i64 %.pre21.reload, i64* %.pre46.reg2mem
store i64 %.pre21.reload, i64* %.reg2mem67
store i32 0, i32* %storemerge3.lcssa.reg2mem
br i1 %142, label LBL_13, label LBL_6.lr.ph
LBL_19:
%.pre.reload = load i64, i64* %.pre.reg2mem
%143 = trunc i64 %indvars.iv.reload to i32
store i64 %.pre21.reload, i64* %.pre2153.reg2mem
store i64 %.pre.reload, i64* %.pre41.reg2mem
store i64 %.pre.reload, i64* %.reg2mem
store i32 0, i32* %storemerge310.reg2mem
br label LBL_6
LBL_20:
%storemerge5.reload = load i64, i64* %storemerge5.reg2mem
ret i64 %storemerge5.reload
uselistorder i64 %.pre.reload, { 1, 0 }
uselistorder i64 %.pre22, { 2, 0, 1, 5, 4, 3 }
uselistorder i64 %.pre21.reload, { 0, 3, 2, 1 }
uselistorder i64 %indvars.iv.reload, { 1, 2, 0 }
uselistorder i64 %.pre-phi24.reload, { 1, 0 }
uselistorder i32 %sv_2.07.reload, { 1, 0 }
uselistorder i32 %storemerge310.reload, { 0, 2, 1 }
uselistorder i32* %39, { 1, 0 }
uselistorder i64* %12, { 1, 0, 2, 3 }
uselistorder i64 %3, { 1, 0 }
uselistorder i32* %storemerge616.reg2mem, { 1, 0, 2 }
uselistorder i64* %.pre2153.reg2mem, { 2, 1, 0 }
uselistorder i64* %.pre41.reg2mem, { 2, 1, 0 }
uselistorder i64* %.reg2mem, { 2, 1, 0 }
uselistorder i32* %storemerge310.reg2mem, { 2, 1, 0 }
uselistorder i64* %.reg2mem59, { 1, 0, 2 }
uselistorder i32* %storemerge48.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.07.reg2mem, { 1, 0, 2 }
uselistorder i32** %.pre-phi58.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre2152.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre40.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem61, { 0, 2, 1 }
uselistorder i32* %storemerge4.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %.reg2mem63, { 2, 0, 1 }
uselistorder i32* %sv_1.09.reg2mem, { 2, 0, 1 }
uselistorder i64* %.pre2151.reg2mem, { 1, 0, 2 }
uselistorder i64* %.pre46.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem67, { 1, 0, 2 }
uselistorder i32* %storemerge3.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i64* %.pre2150.reg2mem, { 2, 0, 1 }
uselistorder i64* %.pre45.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem69, { 2, 0, 1 }
uselistorder i64* %.reg2mem71, { 2, 0, 1 }
uselistorder i32* %sv_0.013.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem73, { 2, 0, 1 }
uselistorder i32* %.reg2mem75, { 2, 0, 1 }
uselistorder i32* %storemerge212.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge5.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder label LBL_20, { 0, 2, 1 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | patch_cs4213_18302 | patch_cs4213 | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 4, i64 0)
%sext = mul i64 %0, 4294967296
%1 = icmp eq i64 %sext, 0
%2 = icmp eq i1 %1, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = ashr exact i64 %sext, 32
%5 = inttoptr i64 %4 to i32*
store i64 %4, i64* %arg1, align 8
store i32 4660, i32* %5, align 4
%6 = call i64 @FUNC(i64 %3)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = load i64, i64* @gv_0, align 8
%10 = add i64 %3, 8
%11 = inttoptr i64 %10 to i64*
store i64 %9, i64* %11, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%12 = call i64 @FUNC(i64 %3)
store i64 0, i64* %arg1, align 8
%13 = and i64 %6, 4294967295
store i64 %13, 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 %3, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | check_timecode_1810 | check_timecode | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = trunc i64 %3 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp slt i32 %5, 0
%8 = icmp eq i1 %7, false
%9 = icmp eq i1 %6, false
%10 = icmp eq i1 %8, %9
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 %arg1, i64 0, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %2, i64 %1)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_6
LBL_2:
%12 = ptrtoint i64* %arg2 to i64
%13 = add i64 %12, 4
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = urem i32 %15, 2
%17 = icmp eq i32 %16, 0
br i1 %17, label LBL_4, label %switch.early.test
LBL_3:
%18 = call i64 @FUNC(i64 %arg1, i64 0, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @gv_1, i64 0, i64 0), i64 %4, i64 %2, i64 %1)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_6
LBL_4:
%19 = and i64 %3, 4294967295
%20 = call i64 @FUNC(i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp slt i32 %21, 0
%23 = icmp eq i1 %22, false
store i64 0, i64* %rax.0.reg2mem
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%24 = add i64 %12, 12
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = add i64 %12, 8
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = zext i32 %26 to i64
%31 = zext i32 %29 to i64
%32 = call i64 @FUNC(i64 %arg1, i64 1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_2, i64 0, i64 0), i64 %31, i64 %30, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %12, { 1, 0, 2 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 4294967274, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 1, 0 }
uselistorder i64 %arg1, { 2, 1, 0 }
uselistorder label LBL_6, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | get_tp_trap_11162 | get_tp_trap | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = udiv i32 %0, 4096
%2 = urem i32 %1, 16
%3 = icmp eq i32 %2, 15
%4 = icmp eq i1 %3, false
store i64 1, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC()
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = mul i32 %2, 4
%10 = zext i32 %9 to i64
%11 = add i64 %10, %5
%12 = inttoptr i64 %11 to i32*
store i32 %8, i32* %12, align 4
%13 = add i64 %5, 64
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = add i32 %15, 4
store i32 %16, i32* %14, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %5, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | cap_bprm_set_creds_5260 | cap_bprm_set_creds | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i8
%.pre-phi3.reg2mem = alloca i32*
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8, align 1
%sv_1 = alloca i8, align 1
%3 = call i64 @FUNC()
store i8 0, i8* %sv_1, align 1
store i8 0, i8* %sv_0, align 1
%4 = call i64 @FUNC(i64 %2, i8* nonnull %sv_0, i8* nonnull %sv_1)
%5 = trunc i64 %4 to i32
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = and i64 %4, 4294967295
store i64 %8, i64* %rax.0.reg2mem
br label LBL_29
LBL_2:
%9 = call i64 @FUNC(i64 1)
%10 = trunc i64 %9 to i8
%11 = icmp eq i8 %10, 1
br i1 %11, label LBL_9, label LBL_3
LBL_3:
%12 = trunc i64 %1 to i32
%13 = load i8, i8* %sv_1, align 1
%14 = icmp eq i8 %13, 0
%15 = icmp eq i32 %12, 0
%or.cond = or i1 %15, %14
%.pre6 = add i64 %2, 4
%.pre7 = inttoptr i64 %.pre6 to i32*
br i1 %or.cond, label LBL_6, label LBL_4
LBL_4:
%16 = load i32, i32* %.pre7, align 4
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = add i64 %2, 16
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i64 @FUNC(i64 %21)
br label LBL_9
LBL_6:
%23 = load i32, i32* %.pre7, align 4
%24 = icmp ne i32 %23, 0
%25 = icmp eq i1 %15, false
%or.cond5 = icmp eq i1 %25, %24
br i1 %or.cond5, label LBL_9, label LBL_7
LBL_7:
%26 = add i64 %3, 36
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = add i64 %3, 32
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = zext i32 %28 to i64
%33 = zext i32 %31 to i64
%34 = call i64 @FUNC(i64 %33, i64 %32)
%35 = trunc i64 %34 to i32
%36 = add i64 %2, 24
%37 = inttoptr i64 %36 to i32*
store i32 %35, i32* %37, align 4
%.pre = load i32, i32* %.pre7, align 4
%38 = icmp eq i32 %.pre, 0
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_9, label LBL_8
LBL_8:
store i8 1, i8* %sv_0, align 1
br label LBL_9
LBL_9:
%40 = add i64 %3, 24
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = add i64 %2, 24
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = zext i32 %42 to i64
%47 = zext i32 %45 to i64
%48 = call i64 @FUNC(i64 %47, i64 %46)
%49 = trunc i64 %48 to i8
%50 = icmp eq i8 %49, 1
br i1 %50, label LBL_11, label LBL_10
LBL_10:
%51 = add i64 %2, 8
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = or i32 %53, 8
store i32 %54, i32* %52, align 4
br label LBL_11
LBL_11:
%55 = inttoptr i64 %3 to i32*
%56 = add i64 %2, 4
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = load i32, i32* %55, align 4
%60 = icmp eq i32 %58, %59
%61 = icmp eq i1 %60, false
br i1 %61, label LBL_14, label LBL_12
LBL_12:
%62 = add i64 %2, 12
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = add i64 %3, 8
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = icmp eq i32 %64, %67
%69 = icmp eq i1 %68, false
br i1 %69, label LBL_14, label LBL_13
LBL_13:
%70 = load i32, i32* %41, align 4
%71 = load i32, i32* %44, align 4
%72 = zext i32 %70 to i64
%73 = zext i32 %71 to i64
%74 = call i64 @FUNC(i64 %73, i64 %72)
%75 = trunc i64 %74 to i8
%76 = icmp eq i8 %75, 1
br i1 %76, label LBL_18, label LBL_14
LBL_14:
%77 = load i32, i32* %44, align 4
%78 = and i32 %77, -5
%79 = icmp eq i32 %78, 0
br i1 %79, label LBL_18, label LBL_15
LBL_15:
%80 = call i64 @FUNC(i64 2)
%81 = trunc i64 %80 to i8
%82 = icmp eq i8 %81, 1
br i1 %82, label LBL_17, label LBL_16
LBL_16:
%83 = bitcast i64* %rdi to i32*
%84 = load i32, i32* %83, align 8
store i32 %84, i32* %57, align 4
%85 = add i64 %2, 8
%86 = inttoptr i64 %85 to i32*
%87 = load i32, i32* %86, align 4
%88 = add i64 %2, 12
%89 = inttoptr i64 %88 to i32*
store i32 %87, i32* %89, align 4
br label LBL_17
LBL_17:
%90 = load i32, i32* %41, align 4
%91 = load i32, i32* %44, align 4
%92 = zext i32 %90 to i64
%93 = zext i32 %91 to i64
%94 = call i64 @FUNC(i64 %93, i64 %92)
%95 = trunc i64 %94 to i32
store i32 %95, i32* %44, align 4
br label LBL_18
LBL_18:
%96 = load i32, i32* %57, align 4
%97 = add i64 %2, 16
%98 = inttoptr i64 %97 to i32*
store i32 %96, i32* %98, align 4
%99 = add i64 %2, 40
%100 = inttoptr i64 %99 to i32*
store i32 %96, i32* %100, align 4
%101 = add i64 %2, 12
%102 = inttoptr i64 %101 to i32*
%103 = load i32, i32* %102, align 4
%104 = add i64 %2, 20
%105 = inttoptr i64 %104 to i32*
store i32 %103, i32* %105, align 4
%106 = add i64 %2, 44
%107 = inttoptr i64 %106 to i32*
store i32 %103, i32* %107, align 4
%108 = load i8, i8* %sv_0, align 1
%109 = icmp eq i8 %108, 0
br i1 %109, label LBL_20, label LBL_19
LBL_19:
%110 = load i32, i32* %44, align 4
%111 = add i64 %2, 28
%112 = inttoptr i64 %111 to i32*
store i32 %110, i32* %112, align 4
store i32* %112, i32** %.pre-phi3.reg2mem
store i8 %108, i8* %.reg2mem
br label LBL_21
LBL_20:
%113 = add i64 %2, 28
%114 = inttoptr i64 %113 to i32*
%115 = load i32, i32* %114, align 4
%116 = zext i32 %115 to i64
%117 = call i64 @FUNC(i64 %116)
%.pre2 = load i8, i8* %sv_0, align 1
store i32* %114, i32** %.pre-phi3.reg2mem
store i8 %.pre2, i8* %.reg2mem
br label LBL_21
LBL_21:
%.reload = load i8, i8* %.reg2mem
%.pre-phi3.reload = load i32*, i32** %.pre-phi3.reg2mem
%118 = inttoptr i64 %101 to i8*
store i8 %.reload, i8* %118, align 1
%119 = load i32, i32* %.pre-phi3.reload, align 4
%120 = zext i32 %119 to i64
%121 = call i64 @FUNC(i64 %120)
%122 = trunc i64 %121 to i8
%123 = icmp eq i8 %122, 1
br i1 %123, label LBL_28, label LBL_22
LBL_22:
%124 = load i32, i32* %.pre-phi3.reload, align 4
%125 = zext i32 %124 to i64
%126 = call i64 @FUNC(i64 3, i64 %125)
%127 = trunc i64 %126 to i8
%128 = icmp eq i8 %127, 1
%129 = icmp eq i1 %128, false
br i1 %129, label LBL_26, label LBL_23
LBL_23:
%130 = load i32, i32* %57, align 4
%131 = icmp eq i32 %130, 0
%132 = icmp eq i1 %131, false
br i1 %132, label LBL_26, label LBL_24
LBL_24:
%133 = bitcast i64* %rdi to i32*
%134 = load i32, i32* %133, align 8
%135 = icmp eq i32 %134, 0
%136 = icmp eq i1 %135, false
br i1 %136, label LBL_26, label LBL_25
LBL_25:
%137 = call i64 @FUNC(i64 1)
%138 = trunc i64 %137 to i8
%139 = icmp eq i8 %138, 0
br i1 %139, label LBL_28, label LBL_26
LBL_26:
%140 = call i64 @FUNC(i64 %2, i64 %2, i64 %3)
%141 = trunc i64 %140 to i32
%142 = icmp slt i32 %141, 0
%143 = icmp eq i1 %142, false
br i1 %143, label LBL_28, label LBL_27
LBL_27:
%144 = and i64 %140, 4294967295
store i64 %144, i64* %rax.0.reg2mem
br label LBL_29
LBL_28:
%145 = call i64 @FUNC(i64 2)
%146 = trunc i64 %145 to i32
%147 = sub i32 0, %146
%148 = sub i32 %147, 1
%149 = add i64 %2, 48
%150 = inttoptr i64 %149 to i32*
%151 = load i32, i32* %150, align 4
%152 = and i32 %151, %148
store i32 %152, i32* %150, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_29
LBL_29:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %44, { 1, 2, 3, 4, 0, 5 }
uselistorder i32* %41, { 1, 0, 2 }
uselistorder i1 %15, { 1, 0 }
uselistorder i64 %3, { 2, 3, 5, 4, 0, 1 }
uselistorder i8* %sv_1, { 1, 0, 2 }
uselistorder i8* %sv_0, { 0, 2, 3, 1, 4 }
uselistorder i64 %2, { 8, 7, 6, 9, 10, 11, 13, 12, 14, 15, 5, 4, 17, 16, 3, 18, 2, 1, 0, 19 }
uselistorder i64* %rdi, { 1, 0 }
uselistorder i32** %.pre-phi3.reg2mem, { 0, 2, 1 }
uselistorder i8* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i64)* @cap_issubset, { 2, 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i8 1, { 0, 1, 2, 3, 4, 6, 5, 7 }
uselistorder i64 (i64)* @issecure, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 6, 7, 0, 8, 9 }
uselistorder i32 0, { 0, 2, 3, 4, 5, 6, 7, 8, 1, 9, 10, 11 }
uselistorder i8 0, { 3, 4, 5, 1, 2, 6, 0 }
uselistorder label LBL_9, { 3, 2, 0, 4, 1 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | alloc_largest_available_4715 | alloc_largest_available | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 32, i64 0)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %indvars.iv.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_7
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%5 = mul i64 %indvars.iv.reload, 4
%6 = add i64 %5, ptrtoint (i32** @gv_0 to i64)
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = icmp ugt i64 %10, %arg3
br i1 %11, label LBL_5, label LBL_2
LBL_2:
%12 = load i32, i32* %7, align 4
%13 = icmp ugt i32 %12, %arg4
br i1 %13, label LBL_5, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %1, i64 %0, i32 %12)
%15 = icmp eq i64 %14, 0
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = inttoptr i64 %2 to i64*
store i64 %14, i64* %16, align 8
%17 = load i32, i32* %7, align 4
%18 = add i64 %2, 8
%19 = inttoptr i64 %18 to i32*
store i32 %17, i32* %19, align 4
%20 = add i64 %2, 16
%21 = inttoptr i64 %20 to i64*
store i64 %20, i64* %21, align 8
%22 = add i64 %2, 24
%23 = inttoptr i64 %22 to i64*
store i64 %20, i64* %23, align 8
store i64 %2, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%24 = icmp ult i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %24, label LBL_1, label LBL_6
LBL_6:
%25 = call i64 @FUNC(i64 %2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %20, { 0, 2, 1 }
uselistorder i32 %12, { 1, 0 }
uselistorder i64 %2, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder label LBL_7, { 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | xhci_kick_ep_5090 | xhci_kick_ep | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = icmp eq i32 %4, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = trunc i64 %3 to i32
%8 = trunc i64 %5 to i32
%9 = icmp ult i32 %7, %8
store i64 %arg4, i64* %rcx.0.reg2mem
br i1 %9, label LBL_2, label LBL_3
LBL_2:
call void @__assert_fail(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 33, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([13 x i8]* @gv_2 to i64), i64* %rcx.0.reg2mem
br label LBL_3
LBL_3:
%sext6 = mul i64 %arg3, 4294967296
%10 = ashr exact i64 %sext6, 32
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%11 = trunc i64 %10 to i32
%.off = add i32 %11, -1
%12 = icmp ult i32 %.off, 31
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
br i1 %12, label LBL_5, label LBL_4
LBL_4:
call void @__assert_fail(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 34, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([13 x i8]* @gv_2 to i64), i64* %rcx.1.reg2mem
br label LBL_5
LBL_5:
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%13 = ptrtoint i32* %arg1 to i64
%14 = add i64 %13, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = mul i64 %arg2, 16
%18 = add i64 %17, 68719476720
%19 = and i64 %18, 68719476720
%20 = add i64 %16, %19
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_7, label LBL_6
LBL_6:
%25 = and i64 %5, 4294967295
%26 = call i64 @FUNC(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_4, i64 0, i64 0), i64 %25, i64 %16, i64 %rcx.1.reload, i64 %2, i64 %1)
store i64 %26, i64* %rax.0.reg2mem
br label LBL_11
LBL_7:
%27 = add i64 %20, 8
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = mul i64 %arg3, 8
%31 = add i64 %30, 34359738360
%32 = and i64 %31, 34359738360
%33 = add i64 %29, %32
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = icmp eq i64 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_9, label LBL_8
LBL_8:
%38 = and i64 %5, 4294967295
%39 = and i64 %10, 4294967295
%40 = call i64 @FUNC(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_5, i64 0, i64 0), i64 %39, i64 %38, i64 %rcx.1.reload, i64 %2, i64 %1)
store i64 %40, i64* %rax.0.reg2mem
br label LBL_11
LBL_9:
%41 = inttoptr i64 %35 to i32*
%42 = load i32, i32* %41, align 4
%43 = zext i32 %42 to i64
%44 = icmp eq i32 %42, 0
%45 = icmp eq i1 %44, false
store i64 %43, i64* %rax.0.reg2mem
br i1 %45, label LBL_11, label LBL_10
LBL_10:
%46 = and i64 %arg4, 4294967295
%47 = call i64 @FUNC(i64 %35, i64 %46)
store i64 %47, 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 %16, { 1, 0 }
uselistorder i64 %5, { 1, 2, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 34359738360, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @DPRINTF, { 1, 0 }
uselistorder i64 68719476720, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder [13 x i8]* @gv_2, { 1, 0 }
uselistorder i64 %arg4, { 1, 0 }
uselistorder label LBL_11, { 1, 0, 2, 3 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | cdio_is_device_generic_9931 | cdio_is_device_generic | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%1 = load i32, i32* %0
%sv_0 = alloca i64, align 8
%2 = inttoptr i64 %arg1 to i8*
%3 = bitcast i64* %sv_0 to %stat*
%4 = call i32 @stat(i8* %2, %stat* nonnull %3)
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i32* @__errno_location()
%7 = load i32, i32* %6, align 4
%8 = call i8* @strerror(i32 %7)
%9 = ptrtoint i8* %8 to i64
%10 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_0, i64 0, i64 0), i64 %arg1, i64 %9)
ret i64 0
LBL_2:
%11 = and i32 %1, 45056
%12 = or i32 %11, 16384
%13 = icmp eq i32 %12, 24576
%spec.select = zext i1 %13 to i64
ret i64 %spec.select
} | 0 |
BinRealVul | read_tfra_11790 | read_tfra | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge513.reg2mem = alloca i32
%storemerge612.reg2mem = alloca i32
%storemerge711.reg2mem = alloca i32
%storemerge10.in.in.reg2mem = alloca i64
%sv_0.0.in.in.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sv_1 = alloca i32*, align 8
store i32* null, i32** %sv_1, align 8
%4 = ptrtoint i32* %arg2 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %4)
%7 = call i64 @FUNC(i64 %4)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 1952871009
store i64 1, i64* %rax.0.reg2mem
br i1 %9, label LBL_1, label LBL_17
LBL_1:
%10 = call i64 @FUNC(i64 %4, i64 0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
%11 = call i64 @FUNC(i64 16)
%12 = inttoptr i64 %11 to i32*
store i32* %12, i32** %sv_1, align 8
%13 = icmp eq i64 %11, 0
%14 = icmp eq i1 %13, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %14, label LBL_2, label LBL_17
LBL_2:
%15 = ptrtoint i64* %arg1 to i64
%16 = add i64 %15, 16
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = add i32 %18, 1
%20 = sext i32 %19 to i64
%21 = add i64 %15, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %23, i64 %20, i64 8)
%25 = icmp eq i64 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_4, label LBL_3
LBL_3:
%27 = bitcast i32** %sv_1 to i64*
%28 = call i64 @FUNC(i64* nonnull %27)
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_17
LBL_4:
store i64 %24, i64* %22, align 8
%29 = load i32, i32* %17, align 4
%30 = add i32 %29, 1
store i32 %30, i32* %17, align 4
%31 = sext i32 %29 to i64
%32 = mul i64 %31, 8
%33 = add i64 %32, %24
%34 = load i32*, i32** %sv_1, align 8
%35 = ptrtoint i32* %34 to i64
%36 = inttoptr i64 %33 to i64*
store i64 %35, i64* %36, align 8
%37 = call i64 @FUNC(i64 %4)
%38 = call i64 @FUNC(i64 %4)
%39 = call i64 @FUNC(i64 %4)
%40 = trunc i64 %39 to i32
%41 = load i32*, i32** %sv_1, align 8
store i32 %40, i32* %41, align 4
%42 = call i64 @FUNC(i64 %4)
%43 = call i64 @FUNC(i64 %4)
%44 = trunc i64 %43 to i32
%45 = load i32*, i32** %sv_1, align 8
%46 = ptrtoint i32* %45 to i64
%47 = add i64 %46, 4
%48 = inttoptr i64 %47 to i32*
store i32 %44, i32* %48, align 4
%49 = load i32*, i32** %sv_1, align 8
%50 = ptrtoint i32* %49 to i64
%51 = add i64 %50, 4
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = zext i32 %53 to i64
%55 = call i64 @FUNC(i64 %54, i64 16)
%56 = add i64 %50, 8
%57 = inttoptr i64 %56 to i64*
store i64 %55, i64* %57, align 8
%58 = load i32*, i32** %sv_1, align 8
%59 = ptrtoint i32* %58 to i64
%60 = add i64 %59, 8
%61 = inttoptr i64 %60 to i64*
%62 = load i64, i64* %61, align 8
%63 = icmp eq i64 %62, 0
%64 = icmp eq i1 %63, false
%65 = add i64 %59, 4
%66 = inttoptr i64 %65 to i32*
br i1 %64, label LBL_5, label LBL_7
LBL_5:
%67 = load i32, i32* %66, align 4
%68 = icmp eq i32 %67, 0
br i1 %68, label LBL_16, label LBL_6
LBL_6:
%69 = trunc i64 %37 to i32
%70 = icmp eq i32 %69, 1
%71 = icmp eq i1 %70, false
%72 = udiv i64 %42, 16
%73 = urem i64 %72, 4
%74 = udiv i64 %42, 4
%75 = urem i64 %74, 4
%76 = urem i64 %42, 4
store i32 0, i32* %storemerge14.reg2mem
br label LBL_8
LBL_7:
store i32 0, i32* %66, align 4
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_17
LBL_8:
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
br i1 %71, label LBL_10, label LBL_9
LBL_9:
%77 = call i64 @FUNC(i64 %4)
%78 = call i64 @FUNC(i64 %4)
store i64 %77, i64* %sv_0.0.in.in.reg2mem
store i64 %78, i64* %storemerge10.in.in.reg2mem
br label LBL_11
LBL_10:
%79 = call i64 @FUNC(i64 %4)
%80 = call i64 @FUNC(i64 %4)
store i64 %79, i64* %sv_0.0.in.in.reg2mem
store i64 %80, i64* %storemerge10.in.in.reg2mem
br label LBL_11
LBL_11:
%storemerge10.in.in.reload = load i64, i64* %storemerge10.in.in.reg2mem
%sv_0.0.in.in.reload = load i64, i64* %sv_0.0.in.in.reg2mem
%sv_0.0.in = mul i64 %sv_0.0.in.in.reload, 4294967296
%sv_0.0 = ashr exact i64 %sv_0.0.in, 32
%storemerge10.in = mul i64 %storemerge10.in.in.reload, 4294967296
%storemerge10 = ashr exact i64 %storemerge10.in, 32
%81 = load i32*, i32** %sv_1, align 8
%82 = ptrtoint i32* %81 to i64
%83 = add i64 %82, 8
%84 = inttoptr i64 %83 to i64*
%85 = load i64, i64* %84, align 8
%86 = sext i32 %storemerge14.reload to i64
%87 = mul i64 %86, 16
%88 = add i64 %85, %87
%89 = inttoptr i64 %88 to i64*
store i64 %sv_0.0, i64* %89, align 8
%90 = load i32*, i32** %sv_1, align 8
%91 = ptrtoint i32* %90 to i64
%92 = add i64 %91, 8
%93 = inttoptr i64 %92 to i64*
%94 = load i64, i64* %93, align 8
%95 = or i64 %87, 8
%96 = add i64 %94, %95
%97 = inttoptr i64 %96 to i64*
store i64 %storemerge10, i64* %97, align 8
store i32 0, i32* %storemerge711.reg2mem
br label LBL_12
LBL_12:
%storemerge711.reload = load i32, i32* %storemerge711.reg2mem
%98 = call i64 @FUNC(i64 %4)
%99 = add i32 %storemerge711.reload, 1
%100 = sext i32 %99 to i64
%101 = icmp slt i64 %73, %100
store i32 %99, i32* %storemerge711.reg2mem
store i32 0, i32* %storemerge612.reg2mem
br i1 %101, label LBL_13, label LBL_12
LBL_13:
%storemerge612.reload = load i32, i32* %storemerge612.reg2mem
%102 = call i64 @FUNC(i64 %4)
%103 = add i32 %storemerge612.reload, 1
%104 = sext i32 %103 to i64
%105 = icmp slt i64 %75, %104
store i32 %103, i32* %storemerge612.reg2mem
store i32 0, i32* %storemerge513.reg2mem
br i1 %105, label LBL_14, label LBL_13
LBL_14:
%storemerge513.reload = load i32, i32* %storemerge513.reg2mem
%106 = call i64 @FUNC(i64 %4)
%107 = add i32 %storemerge513.reload, 1
%108 = sext i32 %107 to i64
%109 = icmp slt i64 %76, %108
store i32 %107, i32* %storemerge513.reg2mem
br i1 %109, label LBL_15, label LBL_14
LBL_15:
%110 = add i32 %storemerge14.reload, 1
%111 = load i32*, i32** %sv_1, align 8
%112 = ptrtoint i32* %111 to i64
%113 = add i64 %112, 4
%114 = inttoptr i64 %113 to i32*
%115 = load i32, i32* %114, align 4
%116 = icmp ugt i32 %115, %110
store i32 %110, i32* %storemerge14.reg2mem
br i1 %116, label LBL_8, label LBL_16
LBL_16:
%sext = mul i64 %5, 4294967296
%117 = ashr exact i64 %sext, 32
%118 = and i64 %6, 4294967295
%119 = add nsw i64 %117, %118
%120 = call i64 @FUNC(i64 %4, i64 %119, i64 0)
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 %42, { 2, 0, 1 }
uselistorder i32* %17, { 1, 0, 2 }
uselistorder i64 %15, { 1, 0 }
uselistorder i64 %4, { 0, 3, 2, 1, 6, 4, 7, 5, 8, 10, 9, 12, 11, 15, 14, 13, 16 }
uselistorder i32** %sv_1, { 9, 8, 7, 6, 5, 4, 3, 2, 10, 1, 0 }
uselistorder i32* %storemerge14.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.in.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge10.in.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge711.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge612.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge513.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 1, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 32, { 2, 1, 0 }
uselistorder i64 4294967296, { 2, 0, 1 }
uselistorder i64 (i64)* @avio_rb64, { 1, 0 }
uselistorder i64 4, { 5, 1, 2, 0, 3, 4, 6, 7 }
uselistorder i64 (i64)* @avio_r8, { 3, 2, 1, 0 }
uselistorder i64 8, { 1, 3, 4, 5, 6, 0, 2, 7 }
uselistorder i64 4294967284, { 2, 1, 0 }
uselistorder i64 (i64)* @av_mallocz, { 1, 0 }
uselistorder i64 16, { 0, 1, 2, 4, 3 }
uselistorder i64 (i64)* @avio_rb32, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_17, { 2, 3, 4, 0, 1 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | rose_parse_national_11764 | rose_parse_national | define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.2.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i64
%sv_3.1.reg2mem = alloca i32*
%sv_0.1.reg2mem = alloca i32
%sv_4.012.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i8
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i32*
%.reg2mem = alloca i8
%0 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg3, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = add i64 %0, 164
%3 = inttoptr i64 %2 to i32*
%4 = add i64 %0, 156
%5 = inttoptr i64 %4 to i32*
%6 = add i64 %0, 70
%7 = inttoptr i64 %6 to i64*
%8 = add i64 %0, 160
%9 = inttoptr i64 %8 to i32*
%10 = add i64 %0, 140
%11 = inttoptr i64 %10 to i64*
%12 = add i64 %0, 147
%13 = inttoptr i64 %12 to i64*
%.phi.trans.insert = bitcast i32* %arg1 to i8*
%.pre = load i8, i8* %.phi.trans.insert, align 1
store i8 %.pre, i8* %.reg2mem
store i32* %arg1, i32** %sv_3.0.reg2mem
store i64 %1, i64* %sv_2.0.reg2mem
store i32 0, i32* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%sv_3.0.reload = load i32*, i32** %sv_3.0.reg2mem
%.reload = load i8, i8* %.reg2mem
%14 = icmp ugt i8 %.reload, -65
br i1 %14, label LBL_10, label LBL_2
LBL_2:
%15 = and i8 %.reload, -64
%16 = icmp eq i8 %15, -128
br i1 %16, label LBL_9, label LBL_3
LBL_3:
%17 = icmp ugt i8 %15, -128
store i32* %sv_3.0.reload, i32** %sv_3.1.reg2mem
store i64 %sv_2.0.reload, i64* %sv_2.1.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
br i1 %17, label LBL_28, label LBL_4
LBL_4:
store i32* %sv_3.0.reload, i32** %sv_3.1.reg2mem
store i64 %sv_2.0.reload, i64* %sv_2.1.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
switch i8 %15, label LBL_28 [
i8 0, label LBL_5
i8 64, label LBL_6
]
LBL_5:
%18 = ptrtoint i32* %sv_3.0.reload to i64
%19 = add i64 %18, 2
%20 = inttoptr i64 %19 to i32*
%21 = mul i32 %sv_1.0.reload, 16777216
%sext7 = add i32 %21, 33554432
%22 = ashr exact i32 %sext7, 24
%23 = mul i64 %sv_2.0.reload, 4294967296
%sext8 = add i64 %23, -8589934592
%24 = ashr exact i64 %sext8, 32
store i32* %20, i32** %sv_3.1.reg2mem
store i64 %24, i64* %sv_2.1.reg2mem
store i32 %22, i32* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
br label LBL_28
LBL_6:
%25 = icmp eq i8 %.reload, 64
%26 = icmp eq i1 %25, false
%.pre15 = ptrtoint i32* %sv_3.0.reload to i64
br i1 %26, label LBL_8, label LBL_7
LBL_7:
%27 = add i64 %.pre15, 1
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 1
%30 = zext i8 %29 to i32
%31 = mul i32 %30, 256
%32 = add i64 %.pre15, 2
%33 = inttoptr i64 %32 to i8*
%34 = load i8, i8* %33, align 1
%35 = zext i8 %34 to i32
%36 = or i32 %31, %35
store i32 %36, i32* %3, align 4
br label LBL_8
LBL_8:
%37 = add i64 %.pre15, 3
%38 = inttoptr i64 %37 to i32*
%39 = mul i32 %sv_1.0.reload, 16777216
%sext5 = add i32 %39, 50331648
%40 = ashr exact i32 %sext5, 24
%41 = mul i64 %sv_2.0.reload, 4294967296
%sext6 = add i64 %41, -12884901888
%42 = ashr exact i64 %sext6, 32
store i32* %38, i32** %sv_3.1.reg2mem
store i64 %42, i64* %sv_2.1.reg2mem
store i32 %40, i32* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
br label LBL_28
LBL_9:
%43 = ptrtoint i32* %sv_3.0.reload to i64
%44 = add i64 %43, 4
%45 = inttoptr i64 %44 to i32*
%46 = mul i32 %sv_1.0.reload, 16777216
%sext9 = add i32 %46, 67108864
%47 = ashr exact i32 %sext9, 24
%48 = mul i64 %sv_2.0.reload, 4294967296
%sext10 = add i64 %48, -17179869184
%49 = ashr exact i64 %sext10, 32
store i32* %45, i32** %sv_3.1.reg2mem
store i64 %49, i64* %sv_2.1.reg2mem
store i32 %47, i32* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
br label LBL_28
LBL_10:
%50 = ptrtoint i32* %sv_3.0.reload to i64
%51 = add i64 %50, 1
%52 = inttoptr i64 %51 to i8*
%53 = load i8, i8* %52, align 1
%54 = icmp eq i8 %.reload, -64
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_13, label LBL_11
LBL_11:
%56 = icmp eq i32 %sv_0.0.reload, 0
%57 = icmp eq i1 %56, false
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %57, label LBL_27, label LBL_12
LBL_12:
%58 = add i64 %50, 2
%59 = inttoptr i64 %58 to i64*
%60 = call i64* @memcpy(i64* %arg2, i64* %59, i32 7)
store i32 1, i32* %5, align 4
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_27
LBL_13:
%61 = icmp eq i8 %.reload, -63
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_16, label LBL_14
LBL_14:
%63 = icmp eq i32 %sv_0.0.reload, 0
%64 = icmp eq i1 %63, false
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %64, label LBL_27, label LBL_15
LBL_15:
%65 = add i64 %50, 2
%66 = inttoptr i64 %65 to i64*
%67 = call i64* @memcpy(i64* %7, i64* %66, i32 7)
store i32 1, i32* %9, align 4
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_27
LBL_16:
%68 = icmp eq i8 %.reload, -62
%69 = icmp eq i1 %68, false
br i1 %69, label LBL_18, label LBL_17
LBL_17:
%70 = add i64 %50, 2
%71 = inttoptr i64 %70 to i64*
%72 = call i64* @memcpy(i64* %11, i64* %71, i32 7)
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_27
LBL_18:
%73 = icmp eq i8 %.reload, -61
%74 = icmp eq i1 %73, false
br i1 %74, label LBL_20, label LBL_19
LBL_19:
%75 = add i64 %50, 3
%76 = inttoptr i64 %75 to i64*
%77 = call i64* @memcpy(i64* %13, i64* %76, i32 7)
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_27
LBL_20:
%78 = icmp eq i8 %.reload, -60
%79 = icmp eq i1 %78, false
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %79, label LBL_27, label LBL_21
LBL_21:
store i32 0, i32* %5, align 4
store i32 0, i32* %9, align 4
%80 = icmp eq i8 %53, 0
store i32 1, i32* %sv_0.1.reg2mem
br i1 %80, label LBL_27, label LBL_22
LBL_22:
%81 = add i64 %50, 2
store i8 0, i8* %storemerge14.reg2mem
store i64 %81, i64* %sv_4.012.reg2mem
br label LBL_23
LBL_23:
%sv_4.012.reload = load i64, i64* %sv_4.012.reg2mem
%storemerge14.reload = load i8, i8* %storemerge14.reg2mem
%82 = add i64 %sv_4.012.reload, 6
%83 = inttoptr i64 %82 to i8*
%84 = load i8, i8* %83, align 1
%85 = urem i8 %84, 2
%86 = icmp eq i8 %85, 0
br i1 %86, label LBL_25, label LBL_24
LBL_24:
%87 = load i32, i32* %9, align 4
%88 = add i32 %87, 1
store i32 %88, i32* %9, align 4
%89 = sext i32 %87 to i64
%90 = mul nsw i64 %89, 7
%91 = add i64 %90, %6
%92 = inttoptr i64 %91 to i64*
%93 = inttoptr i64 %sv_4.012.reload to i64*
%94 = call i64* @memcpy(i64* %92, i64* %93, i32 7)
br label LBL_26
LBL_25:
%95 = load i32, i32* %5, align 4
%96 = add i32 %95, 1
store i32 %96, i32* %5, align 4
%97 = sext i32 %95 to i64
%98 = mul nsw i64 %97, 7
%99 = add i64 %98, %0
%100 = inttoptr i64 %99 to i64*
%101 = inttoptr i64 %sv_4.012.reload to i64*
%102 = call i64* @memcpy(i64* %100, i64* %101, i32 7)
br label LBL_26
LBL_26:
%103 = add i64 %sv_4.012.reload, 7
%104 = add i8 %storemerge14.reload, 7
%105 = icmp ult i8 %104, %53
store i8 %104, i8* %storemerge14.reg2mem
store i64 %103, i64* %sv_4.012.reg2mem
store i32 1, i32* %sv_0.1.reg2mem
br i1 %105, label LBL_23, label LBL_27
LBL_27:
%106 = sext i8 %53 to i32
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%107 = urem i32 %106, 256
%narrow = add nuw nsw i32 %107, 2
%108 = zext i32 %narrow to i64
%109 = add i64 %108, %50
%110 = inttoptr i64 %109 to i32*
%111 = add i32 %sv_1.0.reload, %106
%112 = mul i32 %111, 16777216
%sext11 = add i32 %112, 33554432
%113 = ashr exact i32 %sext11, 24
%114 = trunc i64 %sv_2.0.reload to i32
%115 = sub i32 %114, %narrow
%116 = sext i32 %115 to i64
store i32* %110, i32** %sv_3.1.reg2mem
store i64 %116, i64* %sv_2.1.reg2mem
store i32 %113, i32* %sv_1.1.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br label LBL_28
LBL_28:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%sv_3.1.reload = load i32*, i32** %sv_3.1.reg2mem
%117 = bitcast i32* %sv_3.1.reload to i8*
%118 = load i8, i8* %117, align 1
%119 = icmp eq i8 %118, 0
br i1 %119, label LBL_30, label LBL_29
LBL_29:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%sv_2.1.reload = load i64, i64* %sv_2.1.reg2mem
%120 = trunc i64 %sv_2.1.reload to i32
%121 = icmp eq i32 %120, 0
%122 = icmp slt i32 %120, 0
%123 = icmp eq i1 %122, false
%124 = icmp eq i1 %121, false
%125 = icmp eq i1 %123, %124
store i8 %118, i8* %.reg2mem
store i32* %sv_3.1.reload, i32** %sv_3.0.reg2mem
store i64 %sv_2.1.reload, i64* %sv_2.0.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.2.reload, i32* %sv_0.0.reg2mem
br i1 %125, label LBL_1, label LBL_30
LBL_30:
%126 = urem i32 %sv_1.1.reload, 256
%127 = zext i32 %126 to i64
ret i64 %127
uselistorder i32 %120, { 1, 0 }
uselistorder i64 %sv_2.1.reload, { 1, 0 }
uselistorder i32* %sv_3.1.reload, { 1, 0 }
uselistorder i32 %106, { 1, 0 }
uselistorder i64 %sv_4.012.reload, { 3, 1, 0, 2 }
uselistorder i8 %53, { 2, 1, 0 }
uselistorder i64 %50, { 0, 5, 4, 3, 2, 1, 6 }
uselistorder i64 %.pre15, { 0, 2, 1 }
uselistorder i8 %.reload, { 5, 4, 3, 2, 1, 0, 7, 6 }
uselistorder i32* %sv_3.0.reload, { 2, 3, 5, 4, 0, 1 }
uselistorder i64 %sv_2.0.reload, { 2, 5, 4, 3, 0, 1 }
uselistorder i32 %sv_1.0.reload, { 2, 5, 4, 3, 0, 1 }
uselistorder i32 %sv_0.0.reload, { 11, 10, 9, 7, 8, 12, 5, 6, 13, 4, 1, 2, 0, 3 }
uselistorder i32* %9, { 1, 2, 0, 3 }
uselistorder i32* %5, { 1, 2, 0, 3 }
uselistorder i64 %0, { 0, 6, 5, 4, 3, 2, 1 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i32** %sv_3.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i8* %storemerge14.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_4.012.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 1, 2, 9, 8, 7, 5, 6, 3, 4 }
uselistorder i32** %sv_3.1.reg2mem, { 0, 6, 5, 2, 3, 1, 4 }
uselistorder i64* %sv_2.1.reg2mem, { 0, 6, 5, 2, 3, 1, 4 }
uselistorder i32* %sv_1.1.reg2mem, { 0, 6, 5, 2, 3, 1, 4 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 6, 5, 2, 3, 1, 4 }
uselistorder i64 7, { 2, 0, 1 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 0, 5, 4, 2, 3, 1 }
uselistorder i32 256, { 1, 2, 0 }
uselistorder i1 false, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9 }
uselistorder i32 24, { 0, 1, 3, 2 }
uselistorder i8 64, { 1, 0 }
uselistorder i8 0, { 4, 3, 0, 1, 2 }
uselistorder i32 0, { 2, 3, 4, 5, 6, 7, 0, 1 }
uselistorder i64 32, { 0, 2, 1, 3 }
uselistorder label LBL_28, { 1, 2, 3, 4, 0, 5 }
uselistorder label LBL_23, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | _import_text_7219 | _import_text | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.2.reg2mem = alloca i32
%sv_3.2.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i32
%sv_3.1.reg2mem = alloca i32
%sv_4.04.reg2mem = alloca i64
%sv_3.35.reg2mem = alloca i32
%sv_2.36.reg2mem = alloca i32
%sv_1.17.reg2mem = alloca i32
%sv_0.18.reg2mem = alloca i32
%storemerge9.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0, i64 0)
%2 = icmp eq i64 %arg3, 0
store i32 0, i32* %storemerge9.reg2mem
store i32 0, i32* %sv_0.18.reg2mem
store i32 0, i32* %sv_1.17.reg2mem
store i32 0, i32* %sv_2.36.reg2mem
store i32 0, i32* %sv_3.35.reg2mem
store i64 %arg2, i64* %sv_4.04.reg2mem
br i1 %2, label LBL_10, label LBL_1
LBL_1:
%sv_4.04.reload = load i64, i64* %sv_4.04.reg2mem
%sv_3.35.reload = load i32, i32* %sv_3.35.reg2mem
%sv_2.36.reload = load i32, i32* %sv_2.36.reg2mem
%sv_1.17.reload = load i32, i32* %sv_1.17.reg2mem
%sv_0.18.reload = load i32, i32* %sv_0.18.reg2mem
%storemerge9.reload = load i32, i32* %storemerge9.reg2mem
%3 = inttoptr i64 %sv_4.04.reload to i8*
%4 = load i8, i8* %3, align 1
%5 = icmp eq i8 %4, 13
store i32 %sv_3.35.reload, i32* %sv_3.2.reg2mem
store i32 %sv_2.36.reload, i32* %sv_2.2.reg2mem
store i32 %sv_1.17.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.18.reload, i32* %sv_0.0.reg2mem
br i1 %5, label LBL_7, label LBL_2
LBL_2:
%6 = icmp eq i8 %4, 10
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_4, label LBL_3
LBL_3:
%8 = add i32 %sv_0.18.reload, 1
store i32 %sv_3.35.reload, i32* %sv_3.2.reg2mem
store i32 %sv_2.36.reload, i32* %sv_2.2.reg2mem
store i32 0, i32* %sv_1.0.reg2mem
store i32 %8, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_4:
%9 = icmp ult i32 %sv_1.17.reload, %sv_3.35.reload
%10 = icmp ult i32 %sv_0.18.reload, %sv_2.36.reload
%or.cond = icmp eq i1 %10, %9
%.pre = add i32 %sv_1.17.reload, 1
store i32 %sv_3.35.reload, i32* %sv_3.1.reg2mem
store i32 %sv_2.36.reload, i32* %sv_2.1.reg2mem
br i1 %or.cond, label LBL_6, label LBL_5
LBL_5:
%spec.select = select i1 %9, i32 %sv_3.35.reload, i32 %.pre
%11 = add i32 %sv_0.18.reload, 1
%sv_2.0 = select i1 %10, i32 %sv_2.36.reload, i32 %11
%12 = zext i32 %sv_2.0 to i64
%13 = zext i32 %spec.select to i64
%14 = call i64 @FUNC(i64 %0, i64 %13, i64 %12)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %15, 0
%17 = icmp eq i1 %16, false
store i32 %spec.select, i32* %sv_3.1.reg2mem
store i32 %sv_2.0, i32* %sv_2.1.reg2mem
store i64 -1, i64* %rax.0.reg2mem
br i1 %17, label LBL_6, label LBL_11
LBL_6:
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%sv_3.1.reload = load i32, i32* %sv_3.1.reg2mem
%18 = call i64 @FUNC(i64 %0, i32 %sv_1.17.reload, i32 %sv_0.18.reload, i8 %4)
store i32 %sv_3.1.reload, i32* %sv_3.2.reg2mem
store i32 %sv_2.1.reload, i32* %sv_2.2.reg2mem
store i32 %.pre, i32* %sv_1.0.reg2mem
store i32 %sv_0.18.reload, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%19 = add i64 %sv_4.04.reload, 1
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_2.2.reload = load i32, i32* %sv_2.2.reg2mem
%sv_3.2.reload = load i32, i32* %sv_3.2.reg2mem
%20 = add i32 %storemerge9.reload, 1
%21 = zext i32 %20 to i64
%22 = icmp ult i64 %21, %arg3
store i32 %20, i32* %storemerge9.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.18.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.17.reg2mem
store i32 %sv_2.2.reload, i32* %sv_2.36.reg2mem
store i32 %sv_3.2.reload, i32* %sv_3.35.reg2mem
store i64 %19, i64* %sv_4.04.reg2mem
br i1 %22, label LBL_1, label LBL_8
LBL_8:
%23 = icmp ugt i32 %sv_0.0.reload, %sv_2.2.reload
br i1 %23, label LBL_9, label LBL_10
LBL_9:
%24 = zext i32 %sv_0.0.reload to i64
%25 = zext i32 %sv_3.2.reload to i64
%26 = call i64 @FUNC(i64 %0, i64 %25, i64 %24)
%27 = trunc i64 %26 to i32
%28 = icmp slt i32 %27, 0
%29 = icmp eq i1 %28, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %29, label LBL_10, label LBL_11
LBL_10:
store i64 %arg3, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i1 %10, { 1, 0 }
uselistorder i1 %9, { 1, 0 }
uselistorder i32 %sv_0.18.reload, { 0, 4, 5, 2, 3, 1 }
uselistorder i32 %sv_1.17.reload, { 1, 3, 2, 0 }
uselistorder i32 %sv_2.36.reload, { 3, 2, 4, 0, 1 }
uselistorder i32 %sv_3.35.reload, { 3, 2, 4, 0, 1 }
uselistorder i64 %sv_4.04.reload, { 1, 0 }
uselistorder i32* %storemerge9.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.18.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.17.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_2.36.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_3.35.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_4.04.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_3.1.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.1.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_3.2.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %sv_2.2.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 -1, { 1, 0 }
uselistorder i1 false, { 2, 0, 1 }
uselistorder i32 0, { 7, 6, 0, 1, 2, 3, 4, 5 }
uselistorder i64 (i64, i64, i64)* @caca_set_canvas_size, { 1, 2, 0 }
uselistorder i64 %arg3, { 0, 2, 1 }
uselistorder label LBL_11, { 2, 1, 0 }
uselistorder label LBL_10, { 2, 1, 0 }
uselistorder label LBL_7, { 1, 2, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | jspGetNamedFieldInParents_12494 | jspGetNamedFieldInParents | define i64 @FUNC(i64 %arg1, i64 %arg2, i8 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.3.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1, i64 %arg2)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 %0, i64* %sv_0.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %arg1, i64 %arg2)
store i64 %3, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%4 = icmp eq i64 %sv_0.0.reload, 0
%5 = icmp eq i8 %arg3, 0
%or.cond = or i1 %5, %4
store i64 %sv_0.0.reload, i64* %sv_0.2.reg2mem
br i1 %or.cond, label LBL_6, label LBL_3
LBL_3:
%6 = call i64 @FUNC(i64 %sv_0.0.reload)
%7 = trunc i64 %6 to i8
%8 = icmp eq i8 %7, 0
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br i1 %8, label LBL_5, label LBL_4
LBL_4:
%9 = call i64 @FUNC(i64 %sv_0.0.reload)
%10 = call i64 @FUNC(i64 %sv_0.0.reload)
store i64 %9, i64* %sv_0.1.reg2mem
br label LBL_5
LBL_5:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%11 = call i64 @FUNC(i64 %arg2)
%12 = call i64 @FUNC(i64 %arg1, i64 %11, i64 %sv_0.1.reload)
%13 = call i64 @FUNC(i64 %11, i64 %sv_0.1.reload)
store i64 %12, i64* %sv_0.2.reg2mem
br label LBL_6
LBL_6:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%14 = icmp eq i64 %sv_0.2.reload, 0
%15 = icmp eq i1 %14, false
store i64 %sv_0.2.reload, i64* %sv_0.3.reg2mem
br i1 %15, label LBL_13, label LBL_7
LBL_7:
%16 = call i64 @FUNC(i64 %arg1)
%17 = trunc i64 %16 to i8
%18 = icmp eq i8 %17, 0
%.pre = inttoptr i64 %arg2 to i8*
br i1 %18, label LBL_10, label LBL_8
LBL_8:
%19 = call i32 @strcmp(i8* %.pre, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_10, label LBL_9
LBL_9:
%22 = call i64 @FUNC()
%23 = call i64 @FUNC(i64 %22, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0), i64 %arg1)
%24 = call i64 @FUNC(i64 %arg1, i64 %22, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0))
%25 = call i64 @FUNC(i64 %arg1, i64 %24)
%26 = call i64 @FUNC(i64 %22)
store i64 %24, i64* %sv_0.3.reg2mem
br label LBL_13
LBL_10:
%27 = call i32 @strcmp(i8* %.pre, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0))
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
store i64 %sv_0.2.reload, i64* %sv_0.3.reg2mem
br i1 %29, label LBL_13, label LBL_11
LBL_11:
%30 = call i64 @FUNC(i64 %arg1)
%31 = icmp eq i64 %30, 0
store i64 %sv_0.2.reload, i64* %sv_0.3.reg2mem
br i1 %31, label LBL_13, label LBL_12
LBL_12:
%32 = call i64 @FUNC(i64 %30)
store i64 %32, i64* %sv_0.3.reg2mem
br label LBL_13
LBL_13:
%sv_0.3.reload = load i64, i64* %sv_0.3.reg2mem
ret i64 %sv_0.3.reload
uselistorder i64 %sv_0.0.reload, { 4, 5, 1, 2, 0, 3 }
uselistorder i64* %sv_0.3.reg2mem, { 0, 2, 3, 4, 1, 5 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
uselistorder i64 (i64)* @jsvUnLock, { 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i32 1, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg2, { 0, 2, 1, 3 }
uselistorder i64 %arg1, { 5, 4, 3, 2, 6, 1, 0, 7 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | test_tco_second_timeout_reset_15484 | test_tco_second_timeout_reset | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i8*, align 8
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i8** %sv_0, align 8
%0 = bitcast i8** %sv_0 to i64*
%1 = call i64 @FUNC(i64* nonnull %0)
%2 = call i64 @FUNC(i64* nonnull %0)
%3 = call i64 @FUNC(i64* nonnull %0)
%4 = call i64 @FUNC(i64 1)
%5 = call i64 @FUNC(i64* nonnull %0, i64 16000)
%6 = call i64 @FUNC(i64* nonnull %0)
%7 = call i64 @FUNC(i64* nonnull %0)
%8 = call i64 @FUNC(i64 32000000)
%9 = call i64 @FUNC()
%10 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0))
%11 = inttoptr i64 %10 to i8*
%12 = call i32 @strcmp(i8* %11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
%14 = zext i1 %13 to i64
%15 = call i64 @FUNC(i64 %14)
%16 = call i64 @FUNC(i64 %9)
%17 = call i64 @FUNC(i64* nonnull %0)
%18 = call i64 @FUNC()
ret i64 %18
uselistorder i8** %sv_0, { 1, 0 }
uselistorder i64 (i64*)* @stop_tco, { 1, 0 }
uselistorder i32 1, { 11, 9, 10, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | bcm_rx_changed_6845 | bcm_rx_changed | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.reg2mem = alloca i32
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%3 = add i64 %2, 1
store i64 %3, i64* %arg1, align 8
%4 = icmp ugt i64* %arg1, inttoptr (i64 184467440737095516 to i64*)
br i1 %4, label LBL_2, label LBL_0.LBL_3_crit_edge
LBL_1:
%5 = trunc i64 %1 to i32
store i32 %5, i32* %.reg2mem
br label LBL_3
LBL_2:
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
store i64 0, i64* %7, align 8
store i64 0, i64* %arg1, align 8
%.phi.trans.insert = bitcast i64* %rsi to i32*
%.pre = load i32, i32* %.phi.trans.insert, align 8
store i32 %.pre, i32* %.reg2mem
br label LBL_3
LBL_3:
%.reload = load i32, i32* %.reg2mem
%8 = urem i32 %.reload, 256
store i32 %8, i32* %arg2, align 4
%9 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 28)
store i64 2, i64* %sv_0, align 8
%10 = ptrtoint i32* %arg2 to i64
%11 = call i64 @FUNC(i64 %2, i64* nonnull %sv_0, i64 %10, i64 1)
ret i64 %11
uselistorder i64* %sv_0, { 0, 2, 1 }
uselistorder i32* %arg2, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | do_interrupt_v7m_15522 | do_interrupt_v7m | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %2, 4
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
store i64 %2, i64* @0, align 8
switch i64 %2, label LBL_10 [
i64 1, label LBL_1
i64 2, label LBL_2
i64 3, label LBL_3
i64 4, label LBL_3
i64 5, label LBL_4
i64 6, label LBL_8
i64 7, label LBL_9
]
LBL_1:
%7 = load i64, i64* inttoptr (i64 81 to i64*), align 8
%8 = call i64 @FUNC(i64 %7, i64 1)
store i64 %8, i64* %rax.0.reg2mem
br label LBL_13
LBL_2:
%9 = load i32, i32* inttoptr (i64 78 to i32*), align 4
%10 = add i32 %9, 2
store i32 %10, i32* inttoptr (i64 78 to i32*), align 4
%11 = load i64, i64* inttoptr (i64 82 to i64*), align 8
%12 = call i64 @FUNC(i64 %11, i64 2)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_13
LBL_3:
%13 = add i64 %2, 80
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %15, i64 3)
store i64 %16, i64* %rax.0.reg2mem
br label LBL_13
LBL_4:
%17 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_7, label LBL_5
LBL_5:
%19 = load i32, i32* inttoptr (i64 81 to i32*), align 4
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %20)
%22 = urem i64 %21, 256
%23 = icmp eq i64 %22, 171
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_7, label LBL_6
LBL_6:
%25 = load i32, i32* inttoptr (i64 81 to i32*), align 4
%26 = add i32 %25, 2
store i32 %26, i32* inttoptr (i64 81 to i32*), align 4
%27 = call i64 @FUNC(i64 5)
%28 = trunc i64 %27 to i32
store i32 %28, i32* inttoptr (i64 21 to i32*), align 4
store i64 %27, i64* %rax.0.reg2mem
br label LBL_13
LBL_7:
%29 = load i64, i64* inttoptr (i64 85 to i64*), align 8
%30 = call i64 @FUNC(i64 %29, i64 4)
store i64 %30, i64* %rax.0.reg2mem
br label LBL_13
LBL_8:
%31 = load i64, i64* inttoptr (i64 86 to i64*), align 8
%32 = call i64 @FUNC(i64 %31)
%33 = trunc i64 %32 to i32
store i32 %33, i32* %5, align 4
%34 = load i32, i32* inttoptr (i64 74 to i32*), align 4
%35 = and i32 %34, 4
%36 = icmp eq i32 %35, 0
store i64 %3, i64* %sv_0.0.reg2mem
br i1 %36, label LBL_12, label LBL_11
LBL_9:
%37 = call i64 @FUNC(i64 7)
store i64 %37, i64* %rax.0.reg2mem
br label LBL_13
LBL_10:
%38 = add i64 %2, 12
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i32 %40)
store i64 %41, i64* %rax.0.reg2mem
br label LBL_13
LBL_11:
%42 = add i32 %34, -4
store i32 %42, i32* inttoptr (i64 74 to i32*), align 4
%43 = or i64 %3, 512
store i64 %43, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%44 = trunc i64 %1 to i32
%45 = icmp eq i32 %44, 0
%spec.select = select i1 %45, i32 -15, i32 -11
%46 = icmp eq i32 %6, 0
%47 = icmp eq i1 %46, false
%48 = or i32 %spec.select, 8
%sv_1.1 = select i1 %47, i32 %spec.select, i32 %48
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%49 = and i64 %sv_0.0.reload, 4294967295
%50 = call i64 @FUNC(i64 6, i64 %49)
%51 = load i32, i32* inttoptr (i64 82 to i32*), align 4
%52 = zext i32 %51 to i64
%53 = call i64 @FUNC(i64 6, i64 %52)
%54 = load i32, i32* inttoptr (i64 78 to i32*), align 4
%55 = zext i32 %54 to i64
%56 = call i64 @FUNC(i64 6, i64 %55)
%57 = load i32, i32* inttoptr (i64 70 to i32*), align 4
%58 = zext i32 %57 to i64
%59 = call i64 @FUNC(i64 6, i64 %58)
%60 = load i32, i32* inttoptr (i64 34 to i32*), align 4
%61 = zext i32 %60 to i64
%62 = call i64 @FUNC(i64 6, i64 %61)
%63 = load i32, i32* inttoptr (i64 30 to i32*), align 4
%64 = zext i32 %63 to i64
%65 = call i64 @FUNC(i64 6, i64 %64)
%66 = load i32, i32* inttoptr (i64 26 to i32*), align 4
%67 = zext i32 %66 to i64
%68 = call i64 @FUNC(i64 6, i64 %67)
%69 = load i32, i32* inttoptr (i64 22 to i32*), align 4
%70 = zext i32 %69 to i64
%71 = call i64 @FUNC(i64 6, i64 %70)
%72 = call i64 @FUNC(i64 6, i64 0)
store i32 0, i32* inttoptr (i64 94 to i32*), align 4
store i32 %sv_1.1, i32* inttoptr (i64 78 to i32*), align 4
%73 = load i32, i32* inttoptr (i64 14 to i32*), align 4
%74 = load i32, i32* %5, align 4
%75 = mul i32 %74, 4
%76 = add i32 %75, %73
%77 = zext i32 %76 to i64
%78 = call i64 @FUNC(i64 %77)
%79 = trunc i64 %78 to i32
%80 = and i32 %79, -2
store i32 %80, i32* inttoptr (i64 82 to i32*), align 4
%81 = urem i32 %79, 2
store i32 %81, i32* inttoptr (i64 98 to i32*), align 4
store i64 6, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 3, 2, 1, 0, 4, 5, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 8, 7, 5, 4, 3, 2, 1 }
uselistorder i32* inttoptr (i64 82 to i32*), { 1, 0 }
uselistorder i64 (i64, i64)* @v7m_push, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32* inttoptr (i64 74 to i32*), { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i32* inttoptr (i64 81 to i32*), { 1, 2, 0 }
uselistorder i32 0, { 0, 3, 4, 1, 2 }
uselistorder i64 82, { 1, 0 }
uselistorder i32 2, { 0, 2, 1 }
uselistorder i32* inttoptr (i64 78 to i32*), { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @armv7m_nvic_set_pending, { 3, 2, 1, 0 }
uselistorder i64 6, { 0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 10 }
uselistorder label LBL_13, { 1, 7, 0, 2, 3, 4, 5, 6 }
} | 1 |
BinRealVul | av1_parse_tile_group_6696 | av1_parse_tile_group | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%.pn.reg2mem = alloca i32
%storemerge27.reg2mem = alloca i32
%storemerge4.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %1 to i32
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = mul i32 %7, %4
%9 = icmp slt i32 %8, 2
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %3, i64 1)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = add i32 %8, -1
store i32 0, i32* %sv_1.0.reg2mem
store i32 %14, i32* %storemerge4.reg2mem
br label LBL_4
LBL_3:
%15 = add i64 %2, 8
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i64 %2, 12
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i32 %20, %17
%22 = zext i32 %21 to i64
%23 = call i64 @FUNC(i64 %3, i64 %22)
%24 = trunc i64 %23 to i32
%25 = call i64 @FUNC(i64 %3, i64 %22)
%26 = trunc i64 %25 to i32
store i32 %24, i32* %sv_1.0.reg2mem
store i32 %26, i32* %storemerge4.reg2mem
br label LBL_4
LBL_4:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%27 = call i64 @FUNC(i64 %3)
%28 = icmp ult i32 %storemerge4.reload, 16
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %28, label LBL_5, label LBL_15
LBL_5:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%29 = add i64 %2, 144
%30 = inttoptr i64 %29 to i32*
store i32 0, i32* %30, align 4
%31 = icmp ugt i32 %sv_1.0.reload, %storemerge4.reload
store i64 0, i64* %sv_0.0.reg2mem
br i1 %31, label LBL_13, label LBL_6
LBL_6:
%32 = trunc i64 %arg3 to i32
%33 = trunc i64 %arg4 to i32
%34 = add i32 %33, %32
%35 = add i64 %2, 148
%36 = inttoptr i64 %35 to i32*
%37 = add i64 %2, 16
%38 = add i64 %2, 20
store i32 %sv_1.0.reload, i32* %storemerge27.reg2mem
br label LBL_7
LBL_7:
%storemerge27.reload = load i32, i32* %storemerge27.reg2mem
%39 = icmp eq i32 %storemerge27.reload, %storemerge4.reload
%40 = call i64 @FUNC(i64 %3)
%41 = icmp eq i1 %39, false
br i1 %41, label LBL_9, label LBL_8
LBL_8:
%42 = trunc i64 %40 to i32
%43 = sub i32 %34, %42
store i32 %42, i32* %.pn.reg2mem
store i32 %43, i32* %storemerge3.reg2mem
br label LBL_10
LBL_9:
%44 = load i32, i32* %36, align 4
%45 = zext i32 %44 to i64
%46 = call i64 @FUNC(i64 %3, i64 %45)
%47 = call i64 @FUNC(i64 %3)
%48 = trunc i64 %47 to i32
%49 = trunc i64 %46 to i32
%50 = add i32 %49, 1
store i32 %48, i32* %.pn.reg2mem
store i32 %50, i32* %storemerge3.reg2mem
br label LBL_10
LBL_10:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.pn.reload = load i32, i32* %.pn.reg2mem
%sv_2.0 = sub i32 %.pn.reload, %32
%51 = add i32 %storemerge3.reload, %sv_2.0
%52 = zext i32 %51 to i64
%53 = icmp ugt i64 %52, %arg4
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_12, label LBL_11
LBL_11:
%55 = call i64 @FUNC(i64 1, i64 2, i64 %arg4)
store i64 4294967295, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_12:
%56 = load i32, i32* %30, align 4
%57 = zext i32 %56 to i64
%58 = mul i64 %57, 8
%59 = add i64 %37, %58
%60 = inttoptr i64 %59 to i32*
store i32 %sv_2.0, i32* %60, align 4
%61 = load i32, i32* %30, align 4
%62 = zext i32 %61 to i64
%63 = mul i64 %62, 8
%64 = add i64 %38, %63
%65 = inttoptr i64 %64 to i32*
store i32 %storemerge3.reload, i32* %65, align 4
%66 = zext i32 %storemerge3.reload to i64
%67 = call i64 @FUNC(i64 %3, i64 %66)
%68 = load i32, i32* %30, align 4
%69 = add i32 %68, 1
store i32 %69, i32* %30, align 4
%70 = add i32 %storemerge27.reload, 1
%71 = icmp ugt i32 %70, %storemerge4.reload
store i32 %70, i32* %storemerge27.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %71, label LBL_13, label LBL_7
LBL_13:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%72 = add i32 %8, -1
%73 = icmp eq i32 %storemerge4.reload, %72
%74 = icmp eq i1 %73, false
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br i1 %74, label LBL_15, label LBL_14
LBL_14:
%75 = call i64 @FUNC(i64 %2)
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br label LBL_15
LBL_15:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %storemerge3.reload, { 1, 0, 2 }
uselistorder i32 %32, { 1, 0 }
uselistorder i32* %30, { 1, 0, 2, 3, 4 }
uselistorder i32 %storemerge4.reload, { 3, 2, 1, 4, 0 }
uselistorder i64 %3, { 3, 5, 4, 6, 7, 2, 1, 0 }
uselistorder i64 %2, { 5, 0, 1, 4, 6, 3, 2, 7 }
uselistorder i32* %storemerge27.reg2mem, { 1, 0, 2 }
uselistorder i32* %.pn.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64)* @gf_bs_get_position, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 (i64, i64)* @gf_bs_read_int, { 2, 1, 0 }
uselistorder i64 %arg4, { 2, 0, 1 }
uselistorder label LBL_15, { 1, 0, 2 }
uselistorder label LBL_13, { 0, 2, 1 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | vfio_disable_interrupts_309 | vfio_disable_interrupts | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 1
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = ptrtoint i32* %arg1 to i64
%6 = call i64 @FUNC(i64 %5)
br label LBL_4
LBL_2:
%7 = icmp eq i32 %2, 2
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = ptrtoint i32* %arg1 to i64
%10 = call i64 @FUNC(i64 %9)
br label LBL_4
LBL_4:
%11 = and i64 %1, 4294967295
%12 = icmp eq i32 %2, 3
%13 = icmp eq i1 %12, false
store i64 %11, i64* %rax.0.reg2mem
br i1 %13, label LBL_6, label LBL_5
LBL_5:
%14 = ptrtoint i32* %arg1 to i64
%15 = call i64 @FUNC(i64 %14)
store i64 %15, 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 %2, { 0, 2, 1 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %arg1, { 0, 2, 1 }
} | 0 |
BinRealVul | restore_altivec_5890 | restore_altivec | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = call i64 @FUNC(i64 1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = trunc i64 %1 to i32
%6 = icmp eq i32 %5, 0
%or.cond = or i1 %6, %4
store i64 0, i64* %storemerge.reg2mem
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = bitcast i64* %rdi to i32*
%9 = add i64 %7, 8
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %7, 4
%12 = inttoptr i64 %11 to i32*
store i32 1, i32* %12, align 4
%13 = load i32, i32* %8, align 8
%14 = add i32 %13, 1
%15 = bitcast i64* %arg1 to i32*
store i32 %14, i32* %15, align 4
store i64 1, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %7, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | serial_load_2652 | serial_load | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i8, align 1
store i8 0, i8* %sv_0, align 1
%0 = icmp slt i32 %arg3, 4
store i64 4294967274, i64* %storemerge.reg2mem
br i1 %0, label LBL_1, label LBL_7
LBL_1:
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = icmp slt i32 %arg3, 2
br i1 %3, label LBL_3, label LBL_2
LBL_2:
%4 = call i64 @FUNC(i64 %2, i64 %1)
br label LBL_4
LBL_3:
%5 = call i64 @FUNC(i64 %2)
%6 = trunc i64 %5 to i16
%7 = urem i16 %6, 256
%8 = bitcast i64* %arg2 to i16*
store i16 %7, i16* %8, align 2
br label LBL_4
LBL_4:
%9 = add i64 %1, 2
%10 = call i64 @FUNC(i64 %2, i64 %9)
%11 = add i64 %1, 3
%12 = call i64 @FUNC(i64 %2, i64 %11)
%13 = add i64 %1, 4
%14 = call i64 @FUNC(i64 %2, i64 %13)
%15 = add i64 %1, 5
%16 = call i64 @FUNC(i64 %2, i64 %15)
%17 = add i64 %1, 6
%18 = call i64 @FUNC(i64 %2, i64 %17)
%19 = add i64 %1, 7
%20 = call i64 @FUNC(i64 %2, i64 %19)
%21 = add i64 %1, 8
%22 = call i64 @FUNC(i64 %2, i64 %21)
%23 = add i64 %1, 9
%24 = call i64 @FUNC(i64 %2, i64 %23)
%25 = icmp slt i32 %arg3, 3
br i1 %25, label LBL_6, label LBL_5
LBL_5:
%26 = ptrtoint i8* %sv_0 to i64
%27 = call i64 @FUNC(i64 %2, i64 %26)
br label LBL_6
LBL_6:
%28 = load i8, i8* %sv_0, align 1
%29 = zext i8 %28 to i64
%30 = call i64 @FUNC(i64 %1, i64 2, i64 %29)
store i64 0, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %2, { 1, 3, 2, 6, 5, 4, 9, 8, 7, 10, 0 }
uselistorder i64 %1, { 1, 3, 2, 6, 5, 4, 9, 8, 7, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @qemu_get_8s, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | readcffthing_12975 | readcffthing | define i64 @FUNC(i64 %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i8* %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%0 = inttoptr i64 %arg1 to %_IO_FILE*
%1 = call i32 @getc(%_IO_FILE* %0)
%2 = icmp eq i32 %1, 12
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i32 @getc(%_IO_FILE* %0)
%5 = or i32 %4, 3072
%6 = bitcast i64* %arg4 to i32*
store i32 %5, i32* %6, align 4
store i64 3, i64* %rax.0.reg2mem
br label LBL_22
LBL_2:
%7 = icmp sgt i32 %1, 21
br i1 %7, label LBL_4, label LBL_3
LBL_3:
%8 = bitcast i64* %arg4 to i32*
store i32 %1, i32* %8, align 4
store i64 3, i64* %rax.0.reg2mem
br label LBL_22
LBL_4:
%9 = icmp eq i32 %1, 30
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_11, label LBL_5
LBL_5:
%11 = ptrtoint i64* %sv_2 to i64
%12 = ptrtoint i64* %sv_1 to i64
store i64 %11, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%13 = call i32 @getc(%_IO_FILE* %0)
%14 = icmp ult i64 %sv_0.0.reload, %12
%15 = urem i32 %13, 16
%16 = icmp eq i32 %15, 15
%or.cond = or i1 %14, %16
br i1 %or.cond, label LBL_8, label LBL_7
LBL_7:
%17 = and i32 %13, 240
%18 = icmp eq i32 %17, 240
%19 = icmp eq i1 %18, false
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br i1 %19, label LBL_9, label LBL_8
LBL_8:
%20 = ashr i32 %13, 4
%21 = zext i32 %20 to i64
%22 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %21)
%23 = zext i32 %15 to i64
%24 = call i64 @FUNC(i64 %22, i64 %23)
store i64 %24, i64* %sv_0.1.reg2mem
br label LBL_9
LBL_9:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%25 = add i64 %sv_0.1.reload, -1
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = icmp eq i8 %27, 0
%29 = icmp eq i1 %28, false
store i64 %sv_0.1.reload, i64* %sv_0.0.reg2mem
br i1 %29, label LBL_6, label LBL_10
LBL_10:
%30 = bitcast i64* %sv_2 to i8*
%31 = call double @strtod(i8* nonnull %30, i8** null)
%32 = fptrunc double %31 to float
%33 = bitcast float %32 to i32
%34 = sext i32 %33 to i128
%35 = call i64 @FUNC(i128 %34)
store i64 %35, i64* %arg3, align 8
store i64 2, i64* %rax.0.reg2mem
br label LBL_22
LBL_11:
%.off = add i32 %1, -32
%36 = icmp ugt i32 %.off, 214
br i1 %36, label LBL_13, label LBL_12
LBL_12:
%37 = add i32 %1, -139
%38 = bitcast i64* %arg2 to i32*
store i32 %37, i32* %38, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_22
LBL_13:
%.off7 = add i32 %1, -247
%39 = icmp ugt i32 %.off7, 3
br i1 %39, label LBL_15, label LBL_14
LBL_14:
%40 = mul i32 %1, 256
%41 = call i32 @getc(%_IO_FILE* %0)
%42 = add i32 %40, -63124
%43 = add i32 %42, %41
%44 = bitcast i64* %arg2 to i32*
store i32 %43, i32* %44, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_22
LBL_15:
%.off8 = add i32 %1, -251
%45 = icmp ugt i32 %.off8, 3
br i1 %45, label LBL_17, label LBL_16
LBL_16:
%46 = mul i32 %1, 256
%47 = call i32 @getc(%_IO_FILE* %0)
%48 = sub i32 64148, %46
%49 = sub i32 %48, %47
%50 = bitcast i64* %arg2 to i32*
store i32 %49, i32* %50, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_22
LBL_17:
%51 = icmp eq i32 %1, 28
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_19, label LBL_18
LBL_18:
%53 = call i32 @getc(%_IO_FILE* %0)
%54 = mul i32 %53, 256
%55 = call i32 @getc(%_IO_FILE* %0)
%56 = or i32 %55, %54
%sext = mul i32 %56, 65536
%57 = ashr exact i32 %sext, 16
%58 = bitcast i64* %arg2 to i32*
store i32 %57, i32* %58, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_22
LBL_19:
%59 = icmp eq i32 %1, 29
%60 = icmp eq i1 %59, false
br i1 %60, label LBL_21, label LBL_20
LBL_20:
%61 = call i32 @getc(%_IO_FILE* %0)
%62 = mul i32 %61, 16777216
%63 = call i32 @getc(%_IO_FILE* %0)
%64 = mul i32 %63, 65536
%65 = or i32 %64, %62
%66 = call i32 @getc(%_IO_FILE* %0)
%67 = mul i32 %66, 256
%68 = or i32 %65, %67
%69 = call i32 @getc(%_IO_FILE* %0)
%70 = or i32 %68, %69
%71 = bitcast i64* %arg2 to i32*
store i32 %70, i32* %71, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_22
LBL_21:
%72 = call i64 @FUNC(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @globalFUNCvarFUNC402010, i64 0, i64 0))
%73 = zext i32 %1 to i64
%74 = call i64 @FUNC(i64 %72, i64 %73)
store i8 1, i8* %arg5, align 1
%75 = bitcast i64* %arg2 to i32*
store i32 0, i32* %75, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_22
LBL_22:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.1.reload, { 1, 0 }
uselistorder i32 %15, { 1, 0 }
uselistorder i32 %13, { 1, 2, 0 }
uselistorder i64 %sv_0.0.reload, { 2, 0, 1 }
uselistorder i32 %1, { 5, 7, 8, 0, 2, 1, 3, 9, 4, 10, 6, 11, 12 }
uselistorder %_IO_FILE* %0, { 7, 6, 9, 8, 5, 4, 3, 2, 1, 0, 10 }
uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64 (i64, i64)* @addnibble, { 1, 0 }
uselistorder i32 16, { 1, 0 }
uselistorder i64 3, { 1, 0 }
uselistorder i32 (%_IO_FILE*)* @getc, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | ion_unmap_kernel_10568 | ion_unmap_kernel | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %0)
%4 = call i64 @FUNC(i64 %0)
%5 = call i64 @FUNC(i64 %0)
%6 = call i64 @FUNC(i64 %1)
ret i64 %6
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64 (i64)* @mutex_unlock, { 1, 0 }
uselistorder i64 (i64)* @mutex_lock, { 1, 0 }
} | 0 |
BinRealVul | svga3dsurface_get_mip_size_3771 | svga3dsurface_get_mip_size | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = and i64 %arg1, 4294967295
%1 = urem i32 %arg3, 32
%2 = icmp eq i32 %1, 0
%3 = trunc i64 %arg1 to i32
%4 = lshr i32 %3, %1
%5 = zext i32 %4 to i64
%storemerge = select i1 %2, i64 %0, i64 %5
%6 = icmp eq i64 %storemerge, 0
%sext = mul i64 %storemerge, 4294967296
%7 = ashr exact i64 %sext, 32
%8 = select i1 %6, i64 1, i64 %7
ret i64 %8
uselistorder i32 %1, { 1, 0 }
} | 0 |
BinRealVul | make_filename_safe_19003 | make_filename_safe | 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
br i1 %3, label LBL_8, label LBL_1
LBL_1:
%4 = inttoptr i64 %arg1 to i8*
%5 = call i32 @strncmp(i8* %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i32 8)
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_8, label LBL_2
LBL_2:
%7 = call i64 @FUNC(i64 %arg1, i64 0)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_9
LBL_3:
%10 = load i32, i32* bitcast (i64* @gv_1 to i32*), align 8
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_6, label LBL_4
LBL_4:
%12 = call i64 @FUNC(i64 %7, i64 0, i64 0)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_6, label LBL_5
LBL_5:
%16 = call i64 @FUNC(i64 %7)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%17 = call i64 @FUNC(i64 %7)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
store i64 %7, i64* %rax.0.reg2mem
br i1 %19, label LBL_9, label LBL_7
LBL_7:
%20 = call i64 @FUNC(i64 %7)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%21 = call i64 @FUNC(i64 %arg1)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %7, { 2, 0, 3, 1, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 1, 3, 2 }
uselistorder i8 0, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_9, { 2, 3, 0, 4, 1 }
} | 1 |
BinRealVul | show_object_with_name_13639 | show_object_with_name | define i64 @FUNC(i64 %arg1, i32* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%storemerge4.reg2mem = alloca i8*
%.reg2mem = alloca i8
%0 = ptrtoint i32* %arg2 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %arg1 to %_IO_FILE*
%3 = inttoptr i64 %1 to i8*
%4 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* %3)
%5 = load i8, i8* %arg3, align 1
%6 = icmp ne i8 %5, 0
%7 = icmp eq i8 %5, 10
%8 = icmp eq i1 %7, false
%or.cond3 = icmp eq i1 %6, %8
store i8 %5, i8* %.reg2mem
store i8* %arg3, i8** %storemerge4.reg2mem
br i1 %or.cond3, label LBL_1, label LBL_2
LBL_1:
%storemerge4.reload = load i8*, i8** %storemerge4.reg2mem
%.reload = load i8, i8* %.reg2mem
%9 = sext i8 %.reload to i32
%10 = call i32 @fputc(i32 %9, %_IO_FILE* %2)
%11 = ptrtoint i8* %storemerge4.reload to i64
%12 = add i64 %11, 1
%13 = inttoptr i64 %12 to i8*
%14 = load i8, i8* %13, align 1
%15 = icmp ne i8 %14, 0
%16 = icmp eq i8 %14, 10
%17 = icmp eq i1 %16, false
%or.cond = icmp eq i1 %15, %17
store i8 %14, i8* %.reg2mem
store i8* %13, i8** %storemerge4.reg2mem
br i1 %or.cond, label LBL_1, label LBL_2
LBL_2:
%18 = call i32 @fputc(i32 10, %_IO_FILE* %2)
%19 = sext i32 %18 to i64
ret i64 %19
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i8** %storemerge4.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i8 10, { 1, 0 }
uselistorder i8 0, { 2, 0, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | get_uint64_equal_3404 | get_uint64_equal | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = ptrtoint i64* %sv_0 to i64
%2 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0)
%3 = load i64, i64* %sv_0, align 8
%4 = icmp eq i64 %3, %1
%5 = icmp eq i1 %4, false
%. = select i1 %5, i64 4294967274, i64 0
ret i64 %.
uselistorder i64* %sv_0, { 1, 0, 2 }
} | 0 |
BinRealVul | cpia2_usb_disconnect_5611 | cpia2_usb_disconnect | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0, i64 0)
%3 = call i64 @FUNC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0))
%4 = call i64 @FUNC(i64 %1)
%5 = add i64 %1, 12
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0))
%8 = call i64 @FUNC(i64 %1)
%9 = call i64 @FUNC(i64 %1)
%10 = call i64 @FUNC(i64 %5)
%11 = add i64 %1, 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_2, label LBL_1
LBL_1:
%15 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_2, i64 0, i64 0))
%16 = inttoptr i64 %1 to i64*
%17 = load i64, i64* %16, align 8
%18 = inttoptr i64 %17 to i32*
store i32 1, i32* %18, align 4
%19 = load i64, i64* %16, align 8
%20 = add i64 %19, 4
%21 = inttoptr i64 %20 to i32*
store i32 0, i32* %21, align 4
%22 = add i64 %1, 16
%23 = call i64 @FUNC(i64 %22)
br label LBL_2
LBL_2:
%24 = call i64 @FUNC(i64 %1)
%25 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_3, i64 0, i64 0))
ret i64 %25
uselistorder i64 %1, { 2, 0, 1, 3, 4, 5, 6, 7 }
uselistorder i64 (i8*)* @DBG, { 2, 1, 0 }
} | 0 |
BinRealVul | colo_compare_finalize_16062 | colo_compare_finalize | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %0, 16
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %0, 24
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %0, 56
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = call i64 @FUNC(i64 %6, i64 4198788, i64 %0)
%13 = call i64 @FUNC(i64 %8)
br label LBL_2
LBL_2:
%14 = add i64 %0, 32
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16)
%18 = add i64 %0, 40
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = call i64 @FUNC(i64 %20)
%22 = add i64 %0, 48
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %24)
ret i64 %25
uselistorder i64 %0, { 1, 3, 2, 0, 4, 5, 6, 7, 8 }
uselistorder i64 (i64)* @g_free, { 2, 1, 0 }
uselistorder i64 (i64)* @qemu_chr_fe_deinit, { 2, 1, 0 }
} | 1 |
BinRealVul | qcow2_alloc_clusters_490 | qcow2_alloc_clusters | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
br label LBL_1
LBL_1:
%1 = call i64 @FUNC(i64 %0, i64 %arg2)
%2 = icmp slt i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 %1, i64* %rax.0.reg2mem
br i1 %3, label LBL_2, label LBL_5
LBL_2:
%4 = call i64 @FUNC(i64 %0, i64 %1, i64 %arg2, i64 1, i64 0)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, -11
br i1 %6, label LBL_1, label LBL_3
LBL_3:
%7 = icmp slt i32 %5, 0
%8 = icmp eq i1 %7, false
store i64 %1, i64* %rax.0.reg2mem
br i1 %8, label LBL_5, label LBL_4
LBL_4:
%sext = mul i64 %4, 4294967296
%9 = ashr exact i64 %sext, 32
store i64 %9, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 1, 2, 0, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_5, { 2, 1, 0 }
} | 0 |
BinRealVul | vcpu_scan_ioapic_5608 | vcpu_scan_ioapic | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = urem i64 %1, 256
%3 = call i64 @FUNC(i64 %2)
%4 = and i64 %3, 4294967295
%5 = xor i64 %4, 1
%6 = trunc i64 %5 to i8
%7 = icmp eq i8 %6, 0
%8 = icmp eq i1 %7, false
store i64 %5, i64* %rax.0.reg2mem
br i1 %8, label LBL_8, label LBL_1
LBL_1:
%9 = ptrtoint i64* %arg1 to i64
%10 = add i64 %9, 4
%11 = call i64 @FUNC(i64 %10, i64 256)
%12 = add i64 %9, 1032
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %14)
%16 = trunc i64 %15 to i8
%17 = icmp eq i8 %16, 0
br i1 %17, label LBL_3, label LBL_2
LBL_2:
%18 = call i64 @FUNC(i64 %9, i64 %10)
br label LBL_5
LBL_3:
%19 = load i64, i64* %13, align 8
%20 = call i64 @FUNC(i64 %19)
%21 = trunc i64 %20 to i8
%22 = icmp eq i8 %21, 0
br i1 %22, label LBL_5, label LBL_4
LBL_4:
%23 = call i64 @FUNC(i64 %9, i64 %10)
br label LBL_5
LBL_5:
%24 = call i64 @FUNC(i64 %9)
%25 = trunc i64 %24 to i8
%26 = icmp eq i8 %25, 0
br i1 %26, label LBL_7, label LBL_6
LBL_6:
%27 = add i64 %9, 2
%28 = inttoptr i64 %27 to i8*
store i8 1, i8* %28, align 1
store i64 %9, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%29 = call i64 @FUNC(i64 1, i64 %9)
store i64 %29, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %10, { 1, 0, 2 }
uselistorder i64 %9, { 2, 0, 3, 4, 1, 5, 7, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 4, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 256, { 2, 0, 1 }
uselistorder label LBL_8, { 1, 2, 0 }
} | 0 |
BinRealVul | cxusb_lgdt3303_frontend_attach_8465 | cxusb_lgdt3303_frontend_attach | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0, i64 7)
%2 = trunc i64 %1 to i32
%3 = icmp slt i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 %0, i64* %rdi.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
call void (i32, i8*, ...) @err(i32 ptrtoint (i32* @gv_0 to i32), i8* null)
store i64 ptrtoint (i32* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%5 = call i64 @FUNC(i64 %rdi.0.reload, i64 0, i64 0, i64 0, i64 0, i64 0)
%6 = add i64 %rdi.0.reload, 8
%7 = call i64 @FUNC(i64 4198799, i64* nonnull @gv_1, i64 %6)
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i64*
store i64 %7, i64* %9, align 8
%10 = icmp eq i64 %7, 0
%. = select i1 %10, i64 4294967291, i64 0
ret i64 %.
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i32* @gv_0, { 1, 0 }
} | 0 |
BinRealVul | getdatetime_10433 | getdatetime | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i64
%.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%0 = load i64, i64* @gv_0, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 34
%4 = icmp eq i1 %3, false
store i64 %1, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_7, label LBL_1
LBL_1:
%5 = ptrtoint i64* %sv_3 to i64
%6 = load i64, i64* @gv_0, align 8
%7 = call i64 @FUNC(i64 %6)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 34
%10 = icmp eq i1 %9, false
%11 = add i64 %5, -48
store i64 0, i64* %indvars.iv.reg2mem
store i64 %7, i64* %.reg2mem
store i64 0, i64* %sv_1.0.lcssa.reg2mem
store i64 %7, i64* %.lcssa.reg2mem
br i1 %10, label LBL_2, label LBL_5
LBL_2:
%.reload = load i64, i64* %.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%12 = icmp ugt i64 %indvars.iv.reload, 29
store i64 %.reload, i64* %sv_0.0.reg2mem
br i1 %12, label LBL_7, label LBL_3
LBL_3:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%13 = trunc i64 %.reload to i8
%14 = add i64 %indvars.iv.reload, %11
%15 = inttoptr i64 %14 to i8*
store i8 %13, i8* %15, align 1
%16 = load i64, i64* @gv_0, align 8
%17 = call i64 @FUNC(i64 %16)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 34
%20 = icmp eq i1 %19, false
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %17, i64* %.reg2mem
br i1 %20, label LBL_2, label LBL_4
LBL_4:
%sext = mul i64 %indvars.iv.next, 4294967296
%phitmp = ashr exact i64 %sext, 32
store i64 %phitmp, i64* %sv_1.0.lcssa.reg2mem
store i64 %17, i64* %.lcssa.reg2mem
br label LBL_5
LBL_5:
%21 = ptrtoint i64* %arg1 to i64
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%sv_1.0.lcssa.reload = load i64, i64* %sv_1.0.lcssa.reg2mem
%22 = add i64 %sv_1.0.lcssa.reload, %11
%23 = inttoptr i64 %22 to i8*
store i8 0, i8* %23, align 1
%24 = call i64 @FUNC(i64* nonnull %sv_2, i64 %21)
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, 0
store i64 %.lcssa.reload, i64* %sv_0.0.reg2mem
br i1 %26, label LBL_7, label LBL_6
LBL_6:
%27 = load i64, i64* @gv_0, align 8
%28 = call i64 @FUNC(i64 %27)
%29 = and i64 %28, 4294967295
store i64 %29, i64* %storemerge.reg2mem
br label LBL_8
LBL_7:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%30 = load i64, i64* @gv_0, align 8
%31 = and i64 %sv_0.0.reload, 4294967295
%32 = call i64 @FUNC(i64 %31, i64 %30)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %indvars.iv.next, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 2, 0, 1 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 4294967295, { 0, 2, 3, 1 }
uselistorder i8 0, { 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3 }
uselistorder i32 34, { 1, 0, 2 }
uselistorder i64 (i64)* @prot_getc, { 3, 2, 0, 1 }
uselistorder label LBL_7, { 1, 0, 2 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | i2c_create_slave_17236 | i2c_create_slave | define i64 @FUNC(i64* %arg1, i8* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i8* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg3 to i8
%3 = call i64 @FUNC(i64 %1, i64 %0)
%4 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i8 %2)
%5 = call i64 @FUNC(i64 %3)
ret i64 %3
} | 1 |
BinRealVul | find_subprog_9962 | find_subprog | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
store i64 %1, i64* %sv_0, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = call i64* @bsearch(i64* nonnull %sv_0, i64* %arg1, i32 %4, i32 4, i32 (i64*, i64*)* inttoptr (i64 4198710 to i32 (i64*, i64*)*))
%6 = icmp eq i64* %5, null
%7 = icmp eq i1 %6, false
%8 = ptrtoint i64* %5 to i64
%9 = ptrtoint i64* %sv_0 to i64
%10 = sub i64 %8, %9
%11 = ashr i64 %10, 2
%storemerge = select i1 %7, i64 %11, i64 4294967294
ret i64 %storemerge
uselistorder i64* %5, { 1, 0 }
uselistorder i64* %sv_0, { 1, 2, 0 }
} | 0 |
BinRealVul | big_key_revoke_12106 | big_key_revoke | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 %2, i64* %rax.0.reg2mem
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = add i64 %0, 1
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = zext i8 %7 to i64
%9 = icmp slt i8 %7, 0
%10 = icmp eq i1 %9, false
store i64 %8, i64* %rax.0.reg2mem
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = call i64 @FUNC(i64 %0, i64 0)
store i64 %11, 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 1, { 1, 0 }
} | 1 |
BinRealVul | append_alloted_8241 | append_alloted | define i64 @FUNC(i64* %arg1, i8* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i64
%0 = icmp ne i64* %arg1, null
%1 = icmp eq i8* %arg2, null
%2 = icmp eq i1 %1, false
%or.cond = icmp eq i1 %0, %2
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%3 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%4 = call i32 @fwrite(i64* bitcast ([47 x i8]* @gv_1 to i64*), i32 1, i32 46, %_IO_FILE* %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_2:
%5 = call i64* @malloc(i32 24)
%6 = icmp eq i64* %5, null
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_4, label LBL_3
LBL_3:
%8 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%9 = call i32 @fwrite(i64* bitcast ([33 x i8]* @gv_2 to i64*), i32 1, i32 32, %_IO_FILE* %8)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_4:
%10 = call i8* @strdup(i8* %arg2)
%11 = ptrtoint i8* %10 to i64
store i64 %11, i64* %5, align 8
%12 = icmp eq i8* %10, null
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_6, label LBL_5
LBL_5:
call void @free(i64* nonnull %5)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%14 = ptrtoint i64* %5 to i64
%15 = ptrtoint i8* %arg2 to i64
%16 = trunc i64 %arg3 to i32
%17 = add i64 %14, 8
%18 = inttoptr i64 %17 to i32*
store i32 %16, i32* %18, align 4
%19 = add i64 %14, 16
%20 = inttoptr i64 %19 to i64*
store i64 0, i64* %20, align 8
store i64 %15, i64* %storemerge.in.reg2mem
br label LBL_7
LBL_7:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%21 = add i64 %storemerge.in.reload, 16
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
store i64 %23, i64* %storemerge.in.reg2mem
br i1 %25, label LBL_7, label LBL_8
LBL_8:
store i64 %14, i64* %22, align 8
store i64 %14, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %5, { 3, 0, 1, 2 }
uselistorder i64* %storemerge.in.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 }
uselistorder %_IO_FILE** @gv_0, { 1, 0 }
uselistorder i8* null, { 1, 0 }
uselistorder i8* %arg2, { 1, 2, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | dashtty_timer_3705 | dashtty_timer | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 4210716)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
store i64 %0, i64* %rax.0.reg2mem
br i1 %2, label LBL_4, label LBL_1
LBL_1:
%3 = call i64 @FUNC()
%4 = trunc i64 %3 to i32
%5 = icmp slt i32 %4, 0
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = and i64 %3, 4294967295
%7 = call i64 @FUNC(i64 %6)
br label LBL_3
LBL_3:
%8 = load i64, i64* @gv_0, align 8
%9 = add i64 %8, 1000
%10 = call i64 @FUNC(i64* nonnull @gv_1, i64 %9)
store i64 %10, 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 4294967295, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | do_poll_13232 | do_poll | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%sv_1 = alloca i32, align 4
%2 = load i64, i64* @gv_0, align 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
store i32 0, i32* %sv_1, align 4
%5 = trunc i64 %1 to i32
%6 = icmp ult i32 %5, 129
store i64 -22, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_15
LBL_1:
%7 = ptrtoint i32* %arg1 to i64
%8 = add i64 %7, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = and i64 %1, 4294967295
%12 = call i64 @FUNC(i64 %10, i64 %11)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 -14, i64* %rax.0.reg2mem
br i1 %15, label LBL_2, label LBL_15
LBL_2:
%16 = add i64 %2, 24
%17 = call i64 @FUNC(i64 0, i64 %16)
%18 = add i64 %2, 16
%19 = inttoptr i64 %18 to i64*
store i64 -1, i64* %19, align 8
%20 = add i64 %4, 8
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = add i64 %2, 8
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = zext i32 %25 to i64
%27 = call i64 @FUNC(i64 %26, i64 %22)
%28 = call i64 @FUNC(i64 %2)
%29 = call i64 @FUNC()
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %32, label LBL_14, label LBL_3
LBL_3:
%33 = bitcast i64* %rdi to i32*
%34 = load i32, i32* %33, align 8
%35 = icmp eq i32 %34, 0
br i1 %35, label LBL_11, label LBL_4
LBL_4:
%36 = add i64 %4, 4
%37 = inttoptr i64 %36 to i32*
store i32 0, i32* %storemerge4.reg2mem
br label LBL_5
LBL_5:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%38 = load i64, i64* %9, align 8
%39 = call i64 @FUNC(i32* nonnull %sv_1, i64 %38, i32 %storemerge4.reload, i64 1)
%40 = trunc i64 %39 to i32
%41 = icmp eq i32 %40, 0
%42 = icmp eq i1 %41, false
store i64 -14, i64* %sv_0.0.reg2mem
br i1 %42, label LBL_14, label LBL_6
LBL_6:
%43 = load i32, i32* %37, align 4
%44 = load i32, i32* %sv_1, align 4
%45 = icmp ugt i32 %43, %44
store i64 -22, i64* %sv_0.0.reg2mem
br i1 %45, label LBL_7, label LBL_14
LBL_7:
%46 = zext i32 %44 to i64
%47 = call i64 @FUNC(i64 %4, i64 %46)
%48 = trunc i64 %47 to i32
%49 = icmp eq i32 %48, 0
%50 = icmp eq i1 %49, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %50, label LBL_14, label LBL_8
LBL_8:
%51 = add nuw i32 %storemerge4.reload, 1
%52 = icmp ult i32 %51, %34
store i32 %51, i32* %storemerge4.reg2mem
br i1 %52, label LBL_5, label LBL_9
LBL_9:
%phitmp = icmp eq i32 %34, 1
%phitmp6 = icmp eq i1 %phitmp, false
br i1 %phitmp6, label LBL_11, label LBL_10
LBL_10:
%53 = load i32, i32* %sv_1, align 4
%54 = zext i32 %53 to i64
store i64 %54, i64* %19, align 8
br label LBL_11
LBL_11:
%55 = add i64 %7, 16
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = icmp eq i64 %57, 0
br i1 %58, label LBL_13, label LBL_12
LBL_12:
%59 = add i64 %2, 32
%60 = call i64 @FUNC(i64 %59, i64 %57)
br label LBL_13
LBL_13:
%61 = inttoptr i64 %4 to i32*
%62 = load i32, i32* %24, align 4
%63 = load i32, i32* %61, align 4
%64 = zext i32 %63 to i64
%65 = call i64 @FUNC(i64 0, i64 %64, i32 %62)
%66 = call i64 @FUNC(i64 0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_14:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
store i64 0, i64* %19, align 8
%67 = load i64, i64* %21, align 8
%68 = load i32, i32* %24, align 4
%69 = zext i32 %68 to i64
%70 = call i64 @FUNC(i64 %69, i64 %67)
%71 = call i64 @FUNC(i64 0, i64 %16)
store i64 %sv_0.0.reload, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %24, { 1, 0, 2 }
uselistorder i64* %19, { 1, 0, 2 }
uselistorder i64 %4, { 3, 0, 1, 2 }
uselistorder i64 %2, { 0, 2, 1, 4, 3, 5 }
uselistorder i32* %sv_1, { 1, 2, 0, 3 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i64 (i64, i64)* @clear_bit, { 1, 0 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i64 -1, { 2, 0, 1 }
uselistorder i64 (i64, i64)* @set_bit, { 1, 0 }
uselistorder i64 -14, { 1, 0 }
uselistorder i64 -22, { 1, 0 }
uselistorder i32 0, { 3, 4, 0, 1, 5, 6, 2 }
uselistorder label LBL_15, { 2, 3, 0, 1 }
uselistorder label LBL_11, { 1, 2, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | mrb_obj_clone_13771 | mrb_obj_clone | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sext = mul i64 %arg2, 4294967296
%0 = ashr exact i64 %sext, 32
%1 = and i64 %arg2, 4294967295
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%.pre = and i64 %0, 4294967295
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %arg1, i64 2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 %.pre)
br label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %.pre)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 1
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %arg1, i64 2, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_1, i64 0, i64 0))
br label LBL_4
LBL_4:
%11 = call i64 @FUNC(i64 %arg1, i64 %.pre)
%12 = call i64 @FUNC(i64 %.pre)
%13 = and i64 %12, 4294967295
%14 = call i64 @FUNC(i64 %arg1, i64 %13, i64 %11)
%15 = call i64 @FUNC(i64 %arg1, i64 %.pre)
%16 = inttoptr i64 %14 to i64*
store i64 %15, i64* %16, align 8
%17 = call i64 @FUNC(i64 %arg1, i64 %14, i64 %15)
%18 = call i64 @FUNC(i64 %14)
%19 = trunc i64 %0 to i32
%20 = and i64 %18, 4294967295
%21 = call i64 @FUNC(i64 %arg1, i64 %20, i32 %19)
%22 = call i64 @FUNC(i64 %.pre)
%23 = add i64 %22, 8
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = and i32 %25, 4
%27 = add i64 %14, 8
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = or i32 %26, %29
store i32 %30, i32* %28, align 4
ret i64 %20
uselistorder i64 %.pre, { 0, 1, 3, 2, 4, 5 }
uselistorder i64 %0, { 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @mrb_type, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 0, 3 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i64 %arg1, { 3, 2, 5, 6, 4, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | do_poll_12723 | do_poll | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%sv_1 = alloca i32, align 4
%2 = load i64, i64* @gv_0, align 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = trunc i64 %1 to i32
%6 = icmp ult i32 %5, 129
store i64 -22, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_15
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 = and i64 %1, 4294967295
%12 = call i64 @FUNC(i64 %10, i64 %11)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 -14, i64* %rax.0.reg2mem
br i1 %15, label LBL_2, label LBL_15
LBL_2:
%16 = add i64 %2, 24
%17 = call i64 @FUNC(i64 0, i64 %16)
%18 = add i64 %2, 16
%19 = inttoptr i64 %18 to i64*
store i64 -1, i64* %19, align 8
%20 = add i64 %4, 8
%21 = add i64 %2, 8
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = zext i32 %23 to i64
%25 = call i64 @FUNC(i64 %24, i64 %20)
%26 = call i64 @FUNC(i64 %2)
%27 = call i64 @FUNC()
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
%30 = icmp eq i1 %29, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %30, label LBL_14, label LBL_3
LBL_3:
%31 = bitcast i64* %rdi to i32*
%32 = load i32, i32* %31, align 8
%33 = icmp eq i32 %32, 0
br i1 %33, label LBL_11, label LBL_4
LBL_4:
%34 = bitcast i32* %sv_1 to i64*
%35 = add i64 %4, 4
%36 = inttoptr i64 %35 to i32*
store i32 0, i32* %storemerge4.reg2mem
br label LBL_5
LBL_5:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%37 = load i64, i64* %9, align 8
%38 = call i64 @FUNC(i64* nonnull %34, i64 %37, i32 %storemerge4.reload, i64 1)
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
%41 = icmp eq i1 %40, false
store i64 -14, i64* %sv_0.0.reg2mem
br i1 %41, label LBL_14, label LBL_6
LBL_6:
%42 = load i32, i32* %36, align 4
%43 = load i32, i32* %sv_1, align 4
%44 = icmp ugt i32 %42, %43
store i64 -22, i64* %sv_0.0.reg2mem
br i1 %44, label LBL_7, label LBL_14
LBL_7:
%45 = zext i32 %43 to i64
%46 = call i64 @FUNC(i64 %4, i64 %45)
%47 = and i64 %46, 4294967295
%48 = call i64 @FUNC(i64 %4, i64 %47)
%49 = trunc i64 %48 to i32
%50 = icmp eq i32 %49, 0
%51 = icmp eq i1 %50, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %51, label LBL_14, label LBL_8
LBL_8:
%52 = add nuw i32 %storemerge4.reload, 1
%53 = icmp ult i32 %52, %32
store i32 %52, i32* %storemerge4.reg2mem
br i1 %53, label LBL_5, label LBL_9
LBL_9:
%phitmp = icmp eq i32 %32, 1
%phitmp6 = icmp eq i1 %phitmp, false
br i1 %phitmp6, label LBL_11, label LBL_10
LBL_10:
%54 = load i32, i32* %sv_1, align 4
%55 = zext i32 %54 to i64
store i64 %55, i64* %19, align 8
br label LBL_11
LBL_11:
%56 = add i64 %7, 16
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = icmp eq i64 %58, 0
br i1 %59, label LBL_13, label LBL_12
LBL_12:
%60 = add i64 %2, 32
%61 = call i64 @FUNC(i64 %60, i64 %58)
br label LBL_13
LBL_13:
%62 = inttoptr i64 %4 to i32*
%63 = load i32, i32* %22, align 4
%64 = load i32, i32* %62, align 4
%65 = zext i32 %64 to i64
%66 = call i64 @FUNC(i64 0, i64 %65, i32 %63)
%67 = call i64 @FUNC(i64 0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_14:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
store i64 0, i64* %19, align 8
%68 = load i32, i32* %22, align 4
%69 = zext i32 %68 to i64
%70 = call i64 @FUNC(i64 %69, i64 %20)
%71 = call i64 @FUNC(i64 0, i64 %16)
store i64 %sv_0.0.reload, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %22, { 1, 0, 2 }
uselistorder i64* %19, { 1, 0, 2 }
uselistorder i64 %4, { 4, 0, 1, 2, 3 }
uselistorder i64 %2, { 0, 2, 1, 4, 3, 5 }
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i64 (i64, i64)* @clear_bit, { 1, 0 }
uselistorder i64 -1, { 2, 0, 1 }
uselistorder i64 (i64, i64)* @set_bit, { 1, 0 }
uselistorder i64 -14, { 1, 0 }
uselistorder i64 4294967295, { 1, 0, 2 }
uselistorder i64 -22, { 1, 0 }
uselistorder label LBL_15, { 2, 3, 0, 1 }
uselistorder label LBL_11, { 1, 2, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | net_host_device_remove_919 | net_host_device_remove | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge26.reg2mem = alloca i64
%0 = and i64 %arg2, 4294967295
%1 = call i64 @FUNC(i64 %0)
%storemerge2.in4 = inttoptr i64 %1 to i64*
%storemerge25 = load i64, i64* %storemerge2.in4, align 8
%2 = icmp eq i64 %storemerge25, 0
%3 = icmp eq i1 %2, false
store i64 %storemerge25, i64* %storemerge26.reg2mem
br i1 %3, label LBL_1, label LBL_3
LBL_1:
%storemerge26.reload = load i64, i64* %storemerge26.reg2mem
%4 = inttoptr i64 %storemerge26.reload to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i8*
%7 = call i32 @strcmp(i8* %6, i8* %arg3)
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_4, label LBL_2
LBL_2:
%9 = add i64 %storemerge26.reload, 8
%storemerge2.in = inttoptr i64 %9 to i64*
%storemerge2 = load i64, i64* %storemerge2.in, align 8
%10 = icmp eq i64 %storemerge2, 0
%11 = icmp eq i1 %10, false
store i64 %storemerge2, i64* %storemerge26.reg2mem
br i1 %11, label LBL_1, label LBL_3
LBL_3:
%12 = ptrtoint i64* %arg1 to i64
%13 = ptrtoint i8* %arg3 to i64
%14 = call i64 @FUNC(i64 %12, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %13)
store i64 %14, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%15 = call i64 @FUNC(i64 %storemerge26.reload)
store i64 %15, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %storemerge26.reload, { 2, 0, 1 }
uselistorder i64* %storemerge26.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | uc_get_names_4844 | uc_get_names | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge8.reg2mem = alloca i64
%sv_0.0.ph.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%sv_1 = alloca i8*, align 8
%sv_2 = alloca i32*, align 8
%0 = icmp ne i64* %arg1, null
%1 = icmp eq i64* %arg3, null
%2 = icmp eq i1 %1, false
%or.cond = icmp eq i1 %0, %2
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_23
LBL_1:
%3 = call i32 @pthread_mutex_lock(i64* nonnull @gv_0)
%4 = load i64, i64* @gv_1, align 8
%5 = call i64 @FUNC(i64 %4)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = call i32 @pthread_mutex_unlock(i64* nonnull @gv_0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_23
LBL_3:
%9 = trunc i64 %5 to i32
%10 = call i64* @calloc(i32 %9, i32 8)
%11 = ptrtoint i64* %10 to i64
%12 = call i64* @calloc(i32 %9, i32 8)
%13 = ptrtoint i64* %12 to i64
%14 = icmp ne i64* %10, null
%15 = icmp eq i64* %12, null
%16 = icmp eq i1 %15, false
%or.cond6 = icmp eq i1 %14, %16
br i1 %or.cond6, label LBL_5, label LBL_4
LBL_4:
%17 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_2, i64 0, i64 0))
%18 = call i64 @FUNC(i64 %11)
%19 = call i64 @FUNC(i64 %13)
%20 = call i32 @pthread_mutex_unlock(i64* nonnull @gv_0)
store i64 12, i64* %rax.0.reg2mem
br label LBL_23
LBL_5:
%21 = load i64, i64* @gv_1, align 8
%22 = call i64 @FUNC(i64 %21)
%23 = bitcast i8** %sv_1 to i64*
%24 = bitcast i32** %sv_2 to i64*
%sext = mul i64 %5, 4294967296
%25 = ashr exact i64 %sext, 32
%26 = icmp eq i64* %arg2, null
store i64 0, i64* %sv_0.0.ph.reg2mem
br label LBL_14
LBL_6:
%27 = load i32*, i32** %sv_2, align 8
%28 = load i32, i32* %27, align 4
%29 = icmp eq i32 %28, 0
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_7, label LBL_15
LBL_7:
%31 = icmp ult i64 %sv_0.0.ph.reload, %25
br i1 %31, label LBL_9, label LBL_8
LBL_8:
call void @__assert_fail(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_4, i64 0, i64 0), i32 76, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_5, i64 0, i64 0))
br label LBL_9
LBL_9:
br i1 %26, label LBL_9.LBL_12_crit_edge, label LBL_11
LBL_10:
%.pre = mul i64 %sv_0.0.ph.reload, 8
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_12
LBL_11:
%32 = load i32*, i32** %sv_2, align 8
%33 = ptrtoint i32* %32 to i64
%34 = mul i64 %sv_0.0.ph.reload, 8
%35 = add i64 %34, %13
%36 = add i64 %33, 8
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = inttoptr i64 %35 to i64*
store i64 %38, i64* %39, align 8
store i64 %34, i64* %.pre-phi.reg2mem
br label LBL_12
LBL_12:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%40 = load i8*, i8** %sv_1, align 8
%41 = add i64 %.pre-phi.reload, %11
%42 = call i8* @strdup(i8* %40)
%43 = ptrtoint i8* %42 to i64
%44 = inttoptr i64 %41 to i64*
store i64 %43, i64* %44, align 8
%45 = icmp eq i8* %42, null
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_13, label LBL_16
LBL_13:
%47 = add i64 %sv_0.0.ph.reload, 1
store i64 %47, i64* %sv_0.0.ph.reg2mem
br label LBL_14
LBL_14:
%sv_0.0.ph.reload = load i64, i64* %sv_0.0.ph.reg2mem
br label LBL_15
LBL_15:
%48 = call i64 @FUNC(i64 %22, i64* nonnull %23, i64* nonnull %24)
%49 = trunc i64 %48 to i32
%50 = icmp eq i32 %49, 0
br i1 %50, label LBL_6, label LBL_19
LBL_16:
%51 = call i64 @FUNC(i64 %22)
%52 = call i32 @pthread_mutex_unlock(i64* nonnull @gv_0)
%53 = icmp eq i64 %sv_0.0.ph.reload, 0
store i64 0, i64* %storemerge8.reg2mem
br i1 %53, label LBL_18, label LBL_17
LBL_17:
%storemerge8.reload = load i64, i64* %storemerge8.reg2mem
%54 = mul i64 %storemerge8.reload, 8
%55 = add i64 %54, %11
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = call i64 @FUNC(i64 %57)
%59 = add nuw i64 %storemerge8.reload, 1
%exitcond = icmp eq i64 %59, %sv_0.0.ph.reload
store i64 %59, i64* %storemerge8.reg2mem
br i1 %exitcond, label LBL_18, label LBL_17
LBL_18:
%60 = call i64 @FUNC(i64 %11)
%61 = call i64 @FUNC(i64 %13)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_23
LBL_19:
%62 = call i64 @FUNC(i64 %22)
%63 = call i32 @pthread_mutex_unlock(i64* nonnull @gv_0)
store i64 %11, i64* %arg1, align 8
br i1 %26, label LBL_21, label LBL_20
LBL_20:
store i64 %13, i64* %arg2, align 8
br label LBL_22
LBL_21:
%64 = call i64 @FUNC(i64 %13)
br label LBL_22
LBL_22:
store i64 %sv_0.0.ph.reload, i64* %arg3, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_23
LBL_23:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.0.ph.reload, { 2, 3, 4, 1, 5, 6, 0 }
uselistorder i64 %13, { 3, 2, 1, 0, 4 }
uselistorder i64 %11, { 3, 2, 0, 1, 4 }
uselistorder i32 %9, { 1, 0 }
uselistorder i32** %sv_2, { 1, 0, 2 }
uselistorder i64* %sv_0.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge8.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 5, 2, 1 }
uselistorder i64 (i64)* @sfree, { 5, 3, 2, 4, 1, 0 }
uselistorder i64* (i32, i32)* @calloc, { 1, 0 }
uselistorder i32 (i64*)* @pthread_mutex_unlock, { 0, 3, 2, 1 }
uselistorder i64* null, { 2, 0, 3, 1, 4 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_23, { 1, 2, 3, 4, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
} | 0 |
BinRealVul | qvirtio_pci_config_readb_15801 | qvirtio_pci_config_readb | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1, i64 %arg2)
ret i64 %0
} | 1 |
BinRealVul | av_packet_split_side_data_3114 | av_packet_split_side_data | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.in8.reg2mem = alloca i64
%rdi.09.reg2mem = alloca i64
%storemerge210.reg2mem = alloca i32
%.reg2mem28 = alloca i32
%sv_0.0.in12.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i32
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 12
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_16, label LBL_1
LBL_1:
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp slt i32 %8, 13
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_16, label LBL_2
LBL_2:
%10 = sext i32 %8 to i64
%11 = add i64 %10, %0
%12 = add i64 %11, -8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %14, 1311768467294899695
%16 = icmp eq i1 %15, false
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_16, label LBL_3
LBL_3:
%17 = add i64 %11, -13
%sv_0.011 = inttoptr i64 %17 to i32*
%18 = load i32, i32* %sv_0.011, align 4
%19 = icmp ult i32 %18, 2147483643
store i32 %18, i32* %.reg2mem
store i32 1, i32* %storemerge13.reg2mem
store i64 %17, i64* %sv_0.0.in12.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_4, label LBL_16
LBL_4:
%sv_0.0.in12.reload = load i64, i64* %sv_0.0.in12.reg2mem
%.reload = load i32, i32* %.reg2mem
%20 = sub i64 %sv_0.0.in12.reload, %0
%21 = zext i32 %.reload to i64
%22 = icmp slt i64 %20, %21
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_16, label LBL_5
LBL_5:
%storemerge13.reload = load i32, i32* %storemerge13.reg2mem
%23 = add i64 %sv_0.0.in12.reload, 4
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = icmp slt i8 %25, 0
br i1 %26, label LBL_8, label LBL_6
LBL_6:
%27 = add i32 %.reload, 5
%28 = zext i32 %27 to i64
%29 = icmp slt i64 %20, %28
store i64 0, i64* %rax.0.reg2mem
br i1 %29, label LBL_16, label LBL_7
LBL_7:
%30 = sub i64 %sv_0.0.in12.reload, %28
%31 = add i32 %storemerge13.reload, 1
%sv_0.0 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %sv_0.0, align 4
%33 = icmp ult i32 %32, 2147483643
store i32 %32, i32* %.reg2mem
store i32 %31, i32* %storemerge13.reg2mem
store i64 %30, i64* %sv_0.0.in12.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %33, label LBL_4, label LBL_16
LBL_8:
%34 = sext i32 %storemerge13.reload to i64
%35 = mul i64 %34, 16
%36 = trunc i64 %35 to i32
%37 = call i64* @malloc(i32 %36)
%38 = ptrtoint i64* %37 to i64
%39 = add i64 %0, 16
%40 = inttoptr i64 %39 to i64*
store i64 %38, i64* %40, align 8
%41 = icmp eq i64* %37, null
%42 = icmp eq i1 %41, false
store i64 12, i64* %rax.0.reg2mem
br i1 %42, label LBL_9, label LBL_16
LBL_9:
%43 = load i32, i32* %7, align 4
%44 = sext i32 %43 to i64
%45 = add nsw i64 %35, -13
%46 = add nsw i64 %45, %44
%sv_0.17 = inttoptr i64 %46 to i32*
%47 = load i32, i32* %sv_0.17, align 4
%48 = icmp ult i32 %47, 2147483643
store i32 %47, i32* %.reg2mem28
store i32 0, i32* %storemerge210.reg2mem
store i64 %35, i64* %rdi.09.reg2mem
store i64 %46, i64* %sv_0.1.in8.reg2mem
br i1 %48, label LBL_10, label LBL_11
LBL_10:
%sv_0.1.in8.reload = load i64, i64* %sv_0.1.in8.reg2mem
%rdi.09.reload = load i64, i64* %rdi.09.reg2mem
%.reload29 = load i32, i32* %.reg2mem28
%49 = sub i64 %sv_0.1.in8.reload, %rdi.09.reload
%50 = zext i32 %.reload29 to i64
%51 = icmp slt i64 %49, %50
br i1 %51, label LBL_11, label LBL_12
LBL_11:
call void @abort()
unreachable
LBL_12:
%storemerge210.reload = load i32, i32* %storemerge210.reg2mem
%52 = add i32 %.reload29, 32
%53 = load i64, i64* %40, align 8
%54 = sext i32 %storemerge210.reload to i64
%55 = mul i64 %54, 16
%56 = add i64 %53, %55
%57 = call i64* @calloc(i32 1, i32 %52)
%58 = ptrtoint i64* %57 to i64
%59 = inttoptr i64 %56 to i64*
store i64 %58, i64* %59, align 8
%60 = load i64, i64* %40, align 8
%61 = or i64 %55, 8
%62 = add i64 %60, %61
%63 = inttoptr i64 %62 to i32*
store i32 %.reload29, i32* %63, align 4
%64 = add i64 %sv_0.1.in8.reload, 4
%65 = inttoptr i64 %64 to i8*
%66 = load i8, i8* %65, align 1
%67 = load i64, i64* %40, align 8
%68 = urem i8 %66, -128
%69 = zext i8 %68 to i32
%70 = or i64 %55, 12
%71 = add i64 %67, %70
%72 = inttoptr i64 %71 to i32*
store i32 %69, i32* %72, align 4
%73 = load i64, i64* %40, align 8
%74 = add i64 %73, %55
%75 = inttoptr i64 %74 to i64*
%76 = load i64, i64* %75, align 8
%77 = icmp eq i64 %76, 0
%78 = icmp eq i1 %77, false
store i64 12, i64* %rax.0.reg2mem
br i1 %78, label LBL_13, label LBL_16
LBL_13:
%79 = sub i64 %sv_0.1.in8.reload, %50
%80 = inttoptr i64 %76 to i64*
%81 = inttoptr i64 %79 to i64*
%82 = call i64* @memcpy(i64* %80, i64* %81, i32 %.reload29)
%83 = load i32, i32* %7, align 4
%84 = sub i32 %83, %.reload29
%85 = add i32 %84, -5
store i32 %85, i32* %7, align 4
%86 = load i8, i8* %65, align 1
%87 = icmp slt i8 %86, 0
br i1 %87, label LBL_15, label LBL_14
LBL_14:
%88 = add i32 %.reload29, 5
%89 = zext i32 %88 to i64
%90 = sub i64 %sv_0.1.in8.reload, %89
%91 = add i32 %storemerge210.reload, 1
%sv_0.1 = inttoptr i64 %90 to i32*
%92 = load i32, i32* %sv_0.1, align 4
%93 = icmp ult i32 %92, 2147483643
store i32 %92, i32* %.reg2mem28
store i32 %91, i32* %storemerge210.reg2mem
store i64 %76, i64* %rdi.09.reg2mem
store i64 %90, i64* %sv_0.1.in8.reg2mem
br i1 %93, label LBL_10, label LBL_11
LBL_15:
%94 = add i32 %84, -13
store i32 %94, i32* %7, align 4
%95 = add i32 %storemerge210.reload, 1
store i32 %95, i32* %2, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %55, { 3, 1, 0, 2 }
uselistorder i32 %storemerge210.reload, { 2, 0, 1 }
uselistorder i64 %35, { 0, 2, 1 }
uselistorder i32 %storemerge13.reload, { 1, 0 }
uselistorder i32* %7, { 0, 2, 1, 3, 4 }
uselistorder i64 %0, { 1, 2, 0, 3, 4 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge13.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.in12.reg2mem, { 2, 0, 1 }
uselistorder i32* %.reg2mem28, { 2, 0, 1 }
uselistorder i32* %storemerge210.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.09.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.1.in8.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 10, 4, 9, 2, 3, 1, 5, 8, 7, 6 }
uselistorder i64 16, { 0, 2, 1 }
uselistorder i32 2147483643, { 2, 1, 3, 0 }
uselistorder i64 -13, { 1, 0 }
uselistorder label LBL_16, { 9, 3, 8, 1, 2, 0, 4, 7, 6, 5 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | sycc420_size_is_valid_12233 | sycc420_size_is_valid | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%1 = icmp eq i32 %0, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %1, label LBL_6, label LBL_1
LBL_1:
%2 = trunc i64 %arg2 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_2, label LBL_6
LBL_2:
%5 = udiv i64 %arg1, 2
%6 = trunc i64 %5 to i32
%7 = urem i32 %6, -2147483648
%8 = icmp eq i32 %7, %2
store i64 1, i64* %storemerge.reg2mem
br i1 %8, label LBL_6, label LBL_3
LBL_3:
%9 = urem i64 %arg1, 2
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%11 = sub i32 0, %7
%12 = sub i32 %11, 1
%13 = sub i32 0, %2
%14 = icmp eq i32 %12, %13
%15 = icmp eq i1 %14, false
store i64 1, i64* %storemerge.reg2mem
br i1 %15, label LBL_5, label LBL_6
LBL_5:
store i64 0, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1, 5, 4 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 0, { 1, 0, 2, 3 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_6, { 0, 1, 2, 4, 3 }
} | 1 |
BinRealVul | Detect_10461 | Detect | define i64 @FUNC(i64* %arg1, i32* %arg2, i64* %arg3, i64* %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = icmp eq i64* %arg3, null
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i32 @puts(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0))
store i64 1, i64* %rax.0.reg2mem
br label LBL_16
LBL_2:
%6 = ptrtoint i64* %arg5 to i64
%7 = ptrtoint i64* %arg3 to i64
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = ptrtoint i64* %arg4 to i64
%12 = bitcast i64* %arg3 to i32*
store i32 1, i32* %12, align 4
%13 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_1, i64 0, i64 0), i64 %7, i64 %7, i64 %11, i64 %6, i64 %1)
br label LBL_4
LBL_4:
%14 = add i64 %7, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp slt i32 %16, 1
br i1 %17, label LBL_12, label LBL_5
LBL_5:
%18 = add i64 %7, 16
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
br i1 %21, label LBL_12, label LBL_6
LBL_6:
%22 = trunc i64 %2 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
%spec.select.v = select i1 %24, i64 %2, i64 %7
%25 = trunc i64 %spec.select.v to i32
%26 = icmp eq i32 %25, 0
%27 = icmp ugt i32 %16, %25
%28 = icmp eq i1 %27, false
%or.cond = or i1 %26, %28
br i1 %or.cond, label LBL_11, label LBL_7
LBL_7:
%spec.select = and i64 %spec.select.v, 4294967295
store i32 %25, i32* %arg2, align 4
%29 = add i64 %7, 8
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i64 @FUNC(i64 %31, i64 %spec.select)
%33 = icmp eq i64 %32, 0
%34 = icmp eq i1 %33, false
store i64 0, i64* %rax.0.reg2mem
br i1 %34, label LBL_8, label LBL_16
LBL_8:
%35 = add i64 %32, 24
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = icmp eq i64 %37, 0
%39 = icmp eq i1 %38, false
store i64 0, i64* %rax.0.reg2mem
br i1 %39, label LBL_9, label LBL_16
LBL_9:
%40 = inttoptr i64 %32 to i32*
%41 = load i32, i32* %40, align 4
%42 = icmp eq i32 %41, 0
%43 = icmp eq i1 %42, false
store i64 %37, i64* %sv_1.0.reg2mem
store i64 %32, i64* %sv_0.0.reg2mem
br i1 %43, label LBL_13, label LBL_10
LBL_10:
store i32 1, i32* %40, align 4
%44 = call i64 @FUNC(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_2, i64 0, i64 0), i64 %37, i64 %32, i64 %spec.select, i64 %6, i64 %1)
store i64 %37, i64* %sv_1.0.reg2mem
store i64 %32, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_11:
%45 = add i64 %7, 24
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
store i64 %47, i64* %sv_1.0.reg2mem
store i64 %7, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_12:
%48 = add i64 %7, 24
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
store i64 %50, i64* %sv_1.0.reg2mem
store i64 %7, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_13:
%51 = ptrtoint i64* %arg1 to i64
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%52 = ptrtoint i32* %arg2 to i64
%53 = add i64 %52, 4
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = icmp eq i32 %55, 0
br i1 %56, label LBL_15, label LBL_14
LBL_14:
%57 = call i64 @FUNC(i64 %51, i64 %sv_1.0.reload, i64 %sv_0.0.reload, i64 %52)
store i64 0, i64* %rax.0.reg2mem
br label LBL_16
LBL_15:
%58 = call i64 @FUNC(i64 %51, i64 %sv_1.0.reload, i64 %sv_0.0.reload, i64 %52)
store i64 0, i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_1.0.reload, { 1, 0 }
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %37, { 0, 2, 1, 3 }
uselistorder i64 %32, { 0, 2, 1, 3, 4, 5 }
uselistorder i32 %25, { 1, 0, 2 }
uselistorder i64 %spec.select.v, { 1, 0 }
uselistorder i64 %7, { 1, 8, 0, 7, 6, 2, 10, 9, 3, 5, 4 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4, 5 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @SCLogDebug, { 1, 0 }
uselistorder i1 false, { 1, 3, 4, 0, 5, 2, 6 }
uselistorder i64* %arg3, { 0, 2, 1 }
uselistorder i32* %arg2, { 1, 0 }
uselistorder label LBL_16, { 1, 0, 2, 3, 4 }
uselistorder label LBL_13, { 2, 3, 1, 0 }
} | 0 |
BinRealVul | archive_read_format_rar_read_data_skip_9817 | archive_read_format_rar_read_data_skip | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%0 = icmp slt i64 %arg1, 1
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = call i64 @FUNC(i64 %arg1, i64 %arg1)
%2 = inttoptr i64 %arg1 to i64*
store i64 0, i64* %2, align 8
br label LBL_2
LBL_2:
%3 = add i64 %arg1, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp slt i64 %5, 1
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = call i64 @FUNC(i64 %arg1, i64 %5)
%8 = icmp slt i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %9, label LBL_4, label LBL_11
LBL_4:
%10 = add i64 %arg1, 16
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = urem i32 %12, 2
%14 = icmp eq i32 %13, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_11, label LBL_5
LBL_5:
%15 = add i64 %arg1, 20
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = and i32 %17, 2
%19 = icmp eq i32 %18, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_11, label LBL_6
LBL_6:
%20 = load i64, i64* %4, align 8
%21 = call i64 @FUNC(i64 %arg1, i64 %20)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 1
%24 = icmp eq i1 %23, false
store i32 %22, i32* %sv_0.0.reg2mem
br i1 %24, label LBL_8, label LBL_7
LBL_7:
%25 = load i64, i64* %4, align 8
%26 = call i64 @FUNC(i64 %arg1, i64 %25)
%27 = trunc i64 %26 to i32
store i32 %27, i32* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%28 = icmp eq i32 %sv_0.0.reload, 0
br i1 %28, label LBL_10, label LBL_9
LBL_9:
%29 = zext i32 %sv_0.0.reload to i64
store i64 %29, i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
%30 = call i64 @FUNC(i64 %arg1)
store i64 %30, 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* %rax.0.reg2mem, { 0, 5, 4, 2, 1, 3 }
uselistorder i64 (i64, i64)* @archive_read_format_rar_read_header, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 (i64, i64)* @__archive_read_consume, { 1, 0 }
uselistorder i64 %arg1, { 5, 4, 6, 8, 7, 3, 9, 0, 2, 1, 10 }
uselistorder label LBL_11, { 3, 4, 1, 0, 2 }
} | 0 |
BinRealVul | __local_bh_enable_7300 | __local_bh_enable | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i32
%1 = call i64 @FUNC()
%2 = call i64 @FUNC()
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %0, %3
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC()
%7 = call i64 @FUNC(i64 0, i64 %6)
br label LBL_2
LBL_2:
%sext = mul i64 %arg1, 4294967296
%8 = ashr exact i64 %sext, 32
%9 = call i64 @FUNC()
%10 = trunc i64 %8 to i32
%11 = trunc i64 %9 to i32
%12 = urem i32 %10, 65536
%13 = icmp eq i32 %12, %11
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = call i64 @FUNC(i64 0)
br label LBL_4
LBL_4:
%16 = and i64 %8, 4294967295
%17 = call i64 @FUNC(i64 %16)
ret i64 %17
} | 0 |
BinRealVul | ftp_features_3294 | ftp_features | 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
%1 = load i64, i64* bitcast ([2 x i8*]* @gv_0 to i64*), align 8
%2 = call i64 @FUNC(i64 %0, i64 %1, i64* nonnull @gv_1, i64* nonnull %sv_0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 211
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_3, label LBL_1
LBL_1:
%6 = load i64, i64* %sv_0, align 8
%7 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = load [15 x i8]*, [15 x i8]** @gv_3, align 8
%10 = ptrtoint [15 x i8]* %9 to i64
%11 = call i64 @FUNC(i64 %0, i64 %10, i64* nonnull @gv_4, i64* null)
br label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64* nonnull %sv_0)
ret i64 0
uselistorder i64* %sv_0, { 0, 2, 1, 3 }
uselistorder i1 false, { 1, 3, 2, 0, 4 }
uselistorder i64 (i64, i64, i64*, i64*)* @ftp_send_command, { 1, 0 }
uselistorder i32 0, { 4, 0, 1, 2, 3 }
} | 0 |
BinRealVul | spapr_vio_bus_init_16234 | spapr_vio_bus_init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0))
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 1, i64 %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_1, i64 0, i64 0))
%3 = inttoptr i64 %2 to i32*
store i32 4096, i32* %3, align 4
%4 = load i64, i64* @gv_2, align 8
%5 = call i64 @FUNC(i64 1, i64 %4)
%6 = load i64, i64* @gv_3, align 8
%7 = call i64 @FUNC(i64 2, i64 %6)
%8 = load i64, i64* @gv_4, align 8
%9 = call i64 @FUNC(i64 3, i64 %8)
%10 = load i64, i64* @gv_5, align 8
%11 = call i64 @FUNC(i64 4, i64 %10)
%12 = load i64, i64* @gv_6, align 8
%13 = call i64 @FUNC(i64 5, i64 %12)
%14 = load i64, i64* @gv_7, align 8
%15 = call i64 @FUNC(i64 6, i64 %14)
%16 = load i64, i64* @gv_8, align 8
%17 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_9, i64 0, i64 0), i64 %16)
%18 = load i64, i64* @gv_10, align 8
%19 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_11, i64 0, i64 0), i64 %18)
ret i64 %2
uselistorder i64 (i8*, i64)* @spapr_rtas_register, { 1, 0 }
uselistorder i64 (i64, i64)* @spapr_register_hypercall, { 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | squidclamav_post_init_service_10906 | squidclamav_post_init_service | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* @gv_0, align 8
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%7 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_1, i64 0, i64 0), i64 %4, i64 %3, i64 %2, i64 %1)
%8 = load i64, i64* @gv_0, align 8
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 1
%12 = icmp eq i1 %11, false
%. = zext i1 %12 to i64
store i64 %., i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %0, { 2, 1, 0 }
} | 0 |
BinRealVul | buffer_needs_copy_1203 | buffer_needs_copy | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge37.reg2mem = alloca i32
%storemerge836.reg2mem = alloca i32
%storemerge14.reg2mem = alloca i32
%sv_0.138.reg2mem = alloca i32*
%indvars.iv.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32*
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%3 = ptrtoint i64* %sv_2 to i64
store i32 -1, i32* %sv_1, align 4
%4 = add i64 %1, 8
store i64 0, i64* %indvars.iv.reg2mem
store i32* %sv_1, i32** %sv_0.138.reg2mem
br label LBL_4
LBL_1:
%sv_0.138.reload = load i32*, i32** %sv_0.138.reg2mem
%5 = call i64 @FUNC(i64 %1, i64 %indvars.iv.reload)
%sext16 = mul i64 %5, 4294967296
%6 = ashr exact i64 %sext16, 32
%7 = icmp eq i64 %6, %0
%8 = icmp eq i1 %7, false
store i32* %sv_0.138.reload, i32** %sv_0.0.reg2mem
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = ptrtoint i32* %sv_0.138.reload to i64
%10 = add i64 %9, 4
%11 = inttoptr i64 %10 to i32*
%12 = trunc i64 %indvars.iv.reload to i32
store i32 %12, i32* %sv_0.138.reload, align 4
store i32* %11, i32** %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i32*, i32** %sv_0.0.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%13 = icmp ult i64 %indvars.iv.next, 4
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32* %sv_0.0.reload, i32** %sv_0.138.reg2mem
br i1 %13, label LBL_4, label LBL_5
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%14 = mul i64 %indvars.iv.reload, 8
%15 = add i64 %14, %4
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_1, label LBL_5
LBL_5:
%20 = add i64 %3, -96
%21 = bitcast i64* %rdi to i32*
%22 = add i64 %2, 4
%23 = inttoptr i64 %22 to i32*
%24 = add i64 %1, 4
%25 = inttoptr i64 %24 to i32*
%26 = add i64 %1, 40
%27 = add i64 %2, 8
%28 = inttoptr i64 %27 to i32*
%29 = add i64 %2, 24
%30 = inttoptr i64 %29 to i64*
%31 = add i64 %2, 12
%32 = inttoptr i64 %31 to i32*
%33 = add i64 %2, 16
%34 = inttoptr i64 %33 to i32*
%35 = add i64 %0, 8
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %21, align 8
%.op = urem i32 %37, 32
store i32 0, i32* %storemerge37.reg2mem
br label LBL_16
LBL_6:
%38 = icmp ne i32 %131, 1
%39 = icmp eq i32 %131, 2
%40 = icmp eq i1 %39, false
%or.cond = icmp eq i1 %38, %40
store i32 0, i32* %storemerge14.reg2mem
br i1 %or.cond, label LBL_8, label LBL_7
LBL_7:
%41 = load i32, i32* %23, align 4
store i32 %41, i32* %storemerge14.reg2mem
br label LBL_8
LBL_8:
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
%42 = sext i32 %131 to i64
%43 = mul i64 %42, 8
%44 = add i64 %43, %4
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = load i32, i32* %25, align 4
%48 = select i1 %or.cond, i32 0, i32 %.op
%49 = mul i64 %42, 4
%50 = add i64 %49, %26
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = load i32, i32* %28, align 4
%54 = ashr i32 %53, %48
%55 = load i64, i64* %30, align 8
%56 = add i64 %55, %49
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = mul i32 %58, %54
%60 = load i32, i32* %32, align 4
%61 = urem i32 %storemerge14.reload, 32
%62 = ashr i32 %60, %61
%63 = mul i32 %52, %62
%64 = add i32 %63, %59
%65 = sext i32 %64 to i64
%66 = load i32, i32* %34, align 4
%67 = zext i32 %52 to i64
%68 = ashr i32 %66, %48
%69 = mul i32 %58, %68
%70 = icmp ult i32 %52, %69
%71 = sub i64 %46, %67
%72 = icmp slt i64 %71, %65
%or.cond28 = or i1 %72, %70
store i64 1, i64* %rax.0.reg2mem
br i1 %or.cond28, label LBL_17, label LBL_9
LBL_9:
%73 = ashr i32 %47, %48
%74 = mul i32 %52, %73
%75 = sext i32 %74 to i64
%76 = add i64 %46, %75
%77 = add i32 %59, %53
%78 = sub i32 %66, %77
%79 = ashr i32 %78, %48
%80 = mul i32 %79, %58
%81 = add i32 %80, %63
%82 = sext i32 %81 to i64
%83 = load i32, i32* %36, align 4
%84 = sext i32 %83 to i64
%85 = sub i64 %67, %76
%86 = add i64 %85, %84
%87 = icmp slt i64 %86, %82
store i32 0, i32* %storemerge836.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %87, label LBL_17, label LBL_14
LBL_10:
%88 = icmp eq i32 %storemerge37.reload, %storemerge836.reload
br i1 %88, label LBL_13, label LBL_11
LBL_11:
%89 = sext i32 %122 to i64
%90 = mul i64 %89, 8
%91 = add i64 %90, %4
%92 = inttoptr i64 %91 to i64*
%93 = load i64, i64* %92, align 8
%94 = mul i64 %89, 4
%95 = add i64 %94, %26
%96 = inttoptr i64 %95 to i32*
%97 = load i32, i32* %96, align 4
%98 = icmp ne i32 %122, 1
%99 = icmp eq i32 %122, 2
%100 = icmp eq i1 %99, false
%or.cond26 = icmp eq i1 %98, %100
%101 = select i1 %or.cond26, i32 0, i32 %.op
%102 = ashr i32 %47, %101
%103 = mul i32 %102, %97
%104 = sext i32 %103 to i64
%.neg34 = sub i64 %46, %93
%105 = sub i64 %.neg34, %104
%106 = icmp slt i64 %105, 1
%. = select i1 %106, i32 -1, i32 1
%107 = sub i64 %105, %65
%108 = icmp slt i64 %107, 1
%storemerge11 = select i1 %108, i32 -1, i32 1
%109 = icmp eq i32 %., %storemerge11
%110 = icmp eq i1 %109, false
store i64 1, i64* %rax.0.reg2mem
br i1 %110, label LBL_17, label LBL_12
LBL_12:
%111 = sub i64 %76, %93
%112 = icmp slt i64 %111, 1
%.18 = select i1 %112, i32 -1, i32 1
%113 = add i64 %111, %82
%114 = icmp slt i64 %113, 1
%storemerge9 = select i1 %114, i32 -1, i32 1
%115 = icmp eq i32 %.18, %storemerge9
store i64 1, i64* %rax.0.reg2mem
br i1 %115, label LBL_13, label LBL_17
LBL_13:
%116 = add nuw i32 %storemerge836.reload, 1
%117 = icmp ult i32 %116, 4
store i32 %116, i32* %storemerge836.reg2mem
br i1 %117, label LBL_14, label LBL_15
LBL_14:
%storemerge836.reload = load i32, i32* %storemerge836.reg2mem
%118 = sext i32 %storemerge836.reload to i64
%119 = mul i64 %118, 4
%120 = add i64 %119, %20
%121 = inttoptr i64 %120 to i32*
%122 = load i32, i32* %121, align 4
%123 = icmp slt i32 %122, 0
%124 = icmp eq i1 %123, false
br i1 %124, label LBL_10, label LBL_15
LBL_15:
%125 = add nuw i32 %storemerge37.reload, 1
%126 = icmp ult i32 %125, 4
store i32 %125, i32* %storemerge37.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %126, label LBL_16, label LBL_17
LBL_16:
%storemerge37.reload = load i32, i32* %storemerge37.reg2mem
%127 = sext i32 %storemerge37.reload to i64
%128 = mul i64 %127, 4
%129 = add i64 %128, %20
%130 = inttoptr i64 %129 to i32*
%131 = load i32, i32* %130, align 4
%132 = icmp slt i32 %131, 0
%133 = icmp eq i1 %132, false
store i64 0, i64* %rax.0.reg2mem
br i1 %133, label LBL_6, label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %131, { 3, 2, 1, 0 }
uselistorder i32 %storemerge37.reload, { 2, 1, 0 }
uselistorder i32 %122, { 3, 0, 2, 1 }
uselistorder i32 %storemerge836.reload, { 2, 1, 0 }
uselistorder i64 %93, { 1, 0 }
uselistorder i64 %76, { 1, 0 }
uselistorder i64 %65, { 1, 0 }
uselistorder i32 %58, { 1, 0, 2 }
uselistorder i32 %52, { 3, 1, 0, 2 }
uselistorder i64 %49, { 1, 0 }
uselistorder i32 %48, { 2, 0, 3, 1 }
uselistorder i64 %46, { 1, 0, 2 }
uselistorder i1 %or.cond, { 1, 0 }
uselistorder i32 %.op, { 1, 0 }
uselistorder i64 %20, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 3, 2, 1, 0 }
uselistorder i32* %sv_0.138.reload, { 1, 0, 2 }
uselistorder i64 %1, { 0, 1, 3, 2 }
uselistorder i64 %0, { 1, 0 }
uselistorder i32** %sv_0.138.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge14.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge836.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 6, 5, 3, 4 }
uselistorder i32 4, { 1, 0 }
uselistorder i32 0, { 6, 5, 3, 1, 4, 2, 0 }
uselistorder i64 1, { 3, 5, 6, 2, 7, 8, 0, 1, 4 }
uselistorder i64 4, { 0, 1, 2, 3, 5, 6, 4, 7 }
uselistorder i1 false, { 4, 3, 2, 0, 1, 6, 5 }
uselistorder i64 8, { 0, 1, 3, 4, 2, 5 }
uselistorder label LBL_17, { 0, 1, 5, 4, 2, 3 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | av_opt_next_16898 | av_opt_next | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg2, 0
%1 = icmp eq i1 %0, false
%2 = icmp eq i64* %arg1, null
%or.cond = or i1 %2, %1
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
store i64 %3, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
br i1 %0, label LBL_4, label LBL_3
LBL_3:
%4 = add i64 %arg2, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
store i64 %4, i64* %rax.0.reg2mem
br i1 %7, label LBL_4, label LBL_5
LBL_4:
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_5, { 1, 0, 2 }
} | 1 |
BinRealVul | CancelXmlOp_17637 | CancelXmlOp | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i8* %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg2, 0
%1 = icmp eq i64* %arg3, null
%or.cond = or i1 %0, %1
br i1 %or.cond, label LBL_5, label LBL_1
LBL_1:
%2 = call i32 @atoi(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%3 = call i64 @FUNC(i64 ptrtoint ([2 x i8]* @gv_0 to i64), i64 0, i32 %2)
%4 = inttoptr i64 %3 to i8*
%5 = icmp eq i8* %arg4, null
%6 = select i1 %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i8* %arg4
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_2, i64 0, i64 0), i8* %4, i64* nonnull %arg3, i8* %6)
%8 = call i64* @malloc(i32 24)
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = inttoptr i64 %9 to i64*
call void @free(i64* %11)
store i64 0, i64* %8, align 8
br label LBL_3
LBL_3:
%12 = ptrtoint i64* %8 to i64
%13 = call i64* @malloc(i32 7)
%14 = ptrtoint i64* %13 to i64
%15 = bitcast i64* %13 to i32*
store i32 1668178275, i32* %15, align 4
%16 = add i64 %14, 4
%17 = inttoptr i64 %16 to i16*
store i16 27749, i16* %17, align 2
%18 = add i64 %14, 6
%19 = inttoptr i64 %18 to i8*
store i8 0, i8* %19, align 1
store i64 %14, i64* %8, align 8
%20 = add i64 %12, 8
%21 = inttoptr i64 %20 to i64*
store i64 0, i64* %21, align 8
%22 = icmp eq i64 %3, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_5, label LBL_4
LBL_4:
%23 = inttoptr i64 %3 to i64*
call void @free(i64* %23)
store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %14, { 0, 2, 1 }
uselistorder i64* %8, { 0, 3, 1, 2 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i64* (i32)* @malloc, { 0, 2, 1 }
uselistorder [2 x i8]* @gv_0, { 1, 0 }
uselistorder label LBL_5, { 1, 0, 2 }
} | 1 |
BinRealVul | co_write_request_18589 | co_write_request | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
ret i64 %1
} | 1 |
BinRealVul | helper_rdhwr_cc_5094 | helper_rdhwr_cc | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 2, i64 0)
%4 = and i64 %1, 4294967295
ret i64 %4
} | 0 |
BinRealVul | virtio_device_realize_1155 | virtio_device_realize | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 0, i64* %sv_0, align 8
%2 = add i64 %1, 16
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_4, label LBL_1
LBL_1:
%6 = add i64 %1, 24
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
br i1 %9, label LBL_4, label LBL_2
LBL_2:
call void @__assert_fail(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_1, i64 0, i64 0), i32 50, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0))
%.pre = load i64, i64* %sv_0, align 8
%10 = icmp eq i64 %.pre, 0
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 %0, i64 %.pre)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%12 = call i64 @FUNC(i64 %1, i64* nonnull %sv_0)
%13 = load i64, i64* %sv_0, align 8
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = call i64 @FUNC(i64 %0, i64 %13)
store i64 %1, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
store i64 4198724, i64* %arg1, align 8
%16 = add i64 %1, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %1, i64 %18)
store i64 %19, 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 %.pre, { 1, 0 }
uselistorder i64* %sv_0, { 2, 1, 0, 3 }
uselistorder i64 %1, { 3, 2, 0, 4, 1, 5 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i64)* @error_propagate, { 1, 0 }
uselistorder label LBL_4, { 2, 0, 1 }
} | 0 |
BinRealVul | float128_scalbn_2320 | float128_scalbn | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = call i64 @FUNC(i64 %arg1, i64 %arg2)
%4 = call i64 @FUNC(i64 %arg1, i64 %arg2)
%5 = call i64 @FUNC(i64 %arg1, i64 %arg2)
%6 = trunc i64 %5 to i32
%7 = call i64 @FUNC(i64 %arg1, i64 %arg2)
%8 = icmp eq i32 %6, 32767
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_1
LBL_1:
%10 = or i64 %4, %3
%11 = icmp eq i64 %10, 0
store i64 %arg1, i64* %rax.0.reg2mem
br i1 %11, label LBL_7, label LBL_2
LBL_2:
%12 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg1, i64 %arg2, i64 %2, i64 %1)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_7
LBL_3:
%13 = icmp eq i32 %6, 0
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = or i64 %4, 281474976710656
store i64 %14, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_5:
%15 = or i64 %4, %3
%16 = icmp eq i64 %15, 0
store i64 %4, i64* %sv_0.0.reg2mem
store i64 %arg1, i64* %rax.0.reg2mem
br i1 %16, label LBL_7, label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%17 = icmp slt i32 %arg3, 65537
%18 = icmp sgt i32 %arg3, -65536
%spec.select = select i1 %18, i32 %arg3, i32 -65536
%spec.select.op = add i32 %spec.select, -1
%19 = select i1 %17, i32 %spec.select.op, i32 65535
%20 = add i32 %19, %6
%21 = and i64 %7, 4294967295
%22 = call i64 @FUNC(i64 %21, i32 %20, i64 %sv_0.0.reload, i64 %3)
store i64 %22, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %4, { 0, 1, 3, 2 }
uselistorder i64 %3, { 2, 0, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 281474976710656, { 1, 0 }
uselistorder i64 %arg1, { 0, 3, 2, 1, 4, 5, 6, 7 }
uselistorder label LBL_7, { 2, 0, 3, 1 }
} | 0 |
BinRealVul | sas_init_port_11699 | sas_init_port | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg3 to i32
%3 = call i64* @memset(i64* %arg1, i32 0, i32 80)
%4 = bitcast i64* %arg1 to i32*
store i32 %2, i32* %4, align 4
%5 = add i64 %1, 8
%6 = call i64 @FUNC(i64 %5)
%7 = add i64 %1, 24
%8 = call i64 @FUNC(i64 %7)
%9 = add i64 %1, 40
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %1, 80
%12 = call i64 @FUNC(i64 %11)
%13 = add i64 %1, 56
%14 = call i64 @FUNC(i64 %13)
%15 = add i64 %1, 72
%16 = inttoptr i64 %15 to i64*
store i64 %0, i64* %16, align 8
%17 = call i64 @FUNC(i64 %11)
ret i64 %17
uselistorder i64 (i64)* @spin_lock_init, { 1, 0 }
uselistorder i64 (i64)* @INIT_LIST_HEAD, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | host_memory_backend_init_328 | host_memory_backend_init | 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()
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %3)
%5 = inttoptr i64 %1 to i64*
store i64 %4, i64* %5, align 8
%6 = call i64 @FUNC(i64 %3)
%7 = add i64 %1, 8
%8 = inttoptr i64 %7 to i64*
store i64 %6, i64* %8, align 8
%9 = add i64 %1, 16
%10 = inttoptr i64 %9 to i64*
store i64 4198772, i64* %10, align 8
%11 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i64 4198868, i64 4198879, i64 0)
%12 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i64 4198890, i64 4198901, i64 0)
%13 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0), i64 4198912, i64 4198923, i64 0)
%14 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0), i64 4198934, i64 4198945, i64 0)
%15 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_4, i64 0, i64 0), i64 4198956, i64 4198967, i64 0)
%16 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_6, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_7, i64 0, i64 0), i64 4199000, i64 4198978, i64 4198989)
ret i64 %16
uselistorder i64 (i64, i8*, i8*, i64, i64, i64)* @object_property_add, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64)* @object_property_add_bool, { 2, 1, 0 }
} | 0 |
BinRealVul | ghash_final_12074 | ghash_final | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = call i64 @FUNC(i64 %1)
%4 = call i64 @FUNC(i64 %3, i64 %2)
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %2 to i64*
%9 = load i64, i64* %8, align 8
store i64 %9, i64* %arg2, align 8
%10 = add i64 %0, 8
%11 = inttoptr i64 %10 to i64*
store i64 %7, i64* %11, align 8
ret i64 0
uselistorder i64 %2, { 1, 0, 2 }
} | 1 |
BinRealVul | nuv_packet_7680 | nuv_packet | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%.reg2mem32 = alloca i32
%.reg2mem30 = alloca i32
%.pre.reg2mem = alloca i32
%.reg2mem28 = alloca i32
%.reg2mem = alloca i32
%.pre20.reg2mem = alloca i32
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = load i32, i32* %1
%sv_0 = alloca i32, align 4
%7 = zext i32 %6 to i64
%8 = add i64 %5, 4
%9 = inttoptr i64 %8 to i32*
%10 = add i64 %5, 8
%11 = inttoptr i64 %10 to i32*
%12 = trunc i64 %2 to i32
%13 = trunc i64 %3 to i32
%14 = icmp eq i32 %12, 0
store i32 %12, i32* %.reg2mem
br label LBL_1
LBL_1:
%.reload = load i32, i32* %.reg2mem
%.pre20.reload = load i32, i32* %.pre20.reg2mem
%15 = call i64 @FUNC(i64 %7)
%16 = urem i32 %.pre20.reload, 256
%17 = icmp ugt i32 %16, 2
store i32 %.pre20.reload, i32* %.pre.reg2mem
store i32 %.reload, i32* %.reg2mem30
br i1 %17, label LBL_1.backedge, label LBL_2
LBL_2:
%18 = icmp eq i32 %16, 2
br i1 %18, label LBL_8, label LBL_3
LBL_3:
%trunc = trunc i32 %.pre20.reload to i8
store i32 %.reload, i32* %.reg2mem28
store i32 %.pre20.reload, i32* %.pre.reg2mem
store i32 %.reload, i32* %.reg2mem30
switch i8 %trunc, label LBL_1.backedge [
i8 0, label LBL_4
i8 1, label LBL_5
]
LBL_4:
store i32 %12, i32* %.reg2mem28
store i32 0, i32* %.reg2mem32
br i1 %14, label LBL_12, label LBL_5
LBL_5:
%19 = load i32, i32* %9, align 4
%20 = icmp slt i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%.reload29 = load i32, i32* %.reg2mem28
%22 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_0, i64 0, i64 0))
store i32 %.reload29, i32* %.reg2mem32
br label LBL_12
LBL_7:
%23 = icmp eq i32 %.reload, 0
%24 = select i1 %23, i32 0, i32 16
%25 = trunc i64 %15 to i32
%26 = or i32 %13, 1
%27 = bitcast i64* %arg2 to i32*
store i32 %26, i32* %27, align 4
%28 = add i64 %4, 8
%29 = inttoptr i64 %28 to i64*
store i64 0, i64* %29, align 8
%30 = add i64 %4, 16
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %9, align 4
%33 = add i64 %4, 20
%34 = inttoptr i64 %33 to i32*
store i32 %32, i32* %34, align 4
%35 = add i64 %4, 24
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = inttoptr i64 %37 to i64*
%39 = bitcast i32* %sv_0 to i64*
%40 = call i64* @memcpy(i64* %38, i64* nonnull %39, i32 %24)
%41 = icmp slt i32 %25, 0
%42 = icmp eq i1 %41, false
%43 = and i64 %15, 4294967295
%spec.select = select i1 %42, i64 0, i64 %43
ret i64 %spec.select
LBL_8:
%44 = load i32, i32* %11, align 4
%45 = icmp slt i32 %44, 0
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_10, label LBL_9
LBL_9:
%47 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0))
store i32 %.reload, i32* %.reg2mem32
br label LBL_12
LBL_10:
%48 = trunc i64 %15 to i32
%49 = or i32 %13, 1
%50 = bitcast i64* %arg2 to i32*
store i32 %49, i32* %50, align 4
%51 = add i64 %4, 8
%52 = inttoptr i64 %51 to i64*
store i64 0, i64* %52, align 8
%53 = add i64 %4, 16
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %11, align 4
%56 = add i64 %4, 20
%57 = inttoptr i64 %56 to i32*
store i32 %55, i32* %57, align 4
%58 = icmp slt i32 %48, 0
%59 = icmp eq i1 %58, false
%60 = and i64 %15, 4294967295
%spec.select4 = select i1 %59, i64 0, i64 %60
ret i64 %spec.select4
LBL_11:
%.reload31 = load i32, i32* %.reg2mem30
%.pre.reload = load i32, i32* %.pre.reg2mem
store i32 %.pre.reload, i32* %.pre20.reg2mem
store i32 %.reload31, i32* %.reg2mem
br label LBL_1
LBL_12:
%.reload33 = load i32, i32* %.reg2mem32
%.pre.pre = load i32, i32* %sv_0, align 4
store i32 %.pre.pre, i32* %.pre.reg2mem
store i32 %.reload33, i32* %.reg2mem30
br label LBL_1.backedge
uselistorder i32 %.pre20.reload, { 0, 2, 1, 3 }
uselistorder i32 %.reload, { 0, 4, 1, 3, 2 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 4, 5, 6, 0, 1, 2, 3 }
uselistorder i32* %.pre20.reg2mem, { 1, 0 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %.pre.reg2mem, { 3, 0, 1, 2 }
uselistorder i32* %.reg2mem30, { 3, 0, 1, 2 }
uselistorder i32* %.reg2mem32, { 0, 2, 1, 3 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i32 0, { 3, 4, 5, 2, 1, 6, 0, 7 }
uselistorder i64 8, { 0, 2, 1 }
uselistorder label LBL_12, { 1, 2, 0 }
uselistorder label LBL_1.backedge, { 1, 0, 2 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | parse_gfp_flags_3728 | parse_gfp_flags | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i8*
%1 = load i64, i64* %0
%sv_0 = alloca i8*, align 8
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%sv_3 = alloca i32, align 4
%2 = trunc i64 %1 to i32
store i32 %2, i32* %sv_3, align 4
store i64 0, i64* %sv_2, align 8
%3 = load i32, i32* @gv_0, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
store i32 %arg3, i32* %sv_1, align 4
%5 = load i64, i64* @gv_1, align 8
%6 = inttoptr i64 %5 to i64*
%7 = bitcast i32* %sv_1 to i64*
%8 = call i64* @bsearch(i64* nonnull %7, i64* %6, i32 %3, i32 24, i32 (i64*, i64*)* inttoptr (i64 4198838 to i32 (i64*, i64*)*))
%9 = icmp eq i64* %8, null
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_9
LBL_2:
%10 = ptrtoint i8** %sv_0 to i64
%11 = bitcast i8** %sv_0 to i64*
%12 = call i64 @FUNC(i64* nonnull %11)
%13 = call i64 @FUNC(i64* nonnull %11, i64 %10, i32* nonnull %sv_3)
%14 = load i8*, i8** %sv_0, align 8
%15 = bitcast i64* %sv_2 to i8**
%16 = call i8* @strtok_r(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_2, i64 0, i64 0), i8** nonnull %15)
%17 = icmp eq i8* %16, null
%18 = icmp eq i1 %17, false
store i8* %16, i8** %storemerge5.reg2mem
br i1 %18, label LBL_3, label LBL_8
LBL_3:
%storemerge5.reload = load i8*, i8** %storemerge5.reg2mem
%19 = call i32 @strncmp(i8* %storemerge5.reload, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0), i32 10)
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_7, label LBL_4
LBL_4:
%22 = load i64, i64* @gv_1, align 8
%23 = inttoptr i64 %22 to i64*
%24 = call i64* @realloc(i64* %23, i32 trunc (i64 shl (i64 add (i64 add (i64 zext (i32 ptrtoint (i32* @gv_4 to i32) to i64), i64 zext (i32 ptrtoint (i32* @gv_4 to i32) to i64)), i64 zext (i32 ptrtoint (i32* @gv_4 to i32) to i64)), i64 3) to i32))
%25 = icmp eq i64* %24, null
%26 = icmp eq i1 %25, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %26, label LBL_5, label LBL_9
LBL_5:
%27 = ptrtoint i64* %24 to i64
store i64 %27, i64* @gv_1, align 8
%28 = load i32, i32* @gv_0, align 4
store i32 ptrtoint (i32* @gv_4 to i32), i32* @gv_0, align 4
%29 = zext i32 %28 to i64
%30 = mul nuw nsw i64 %29, 24
%31 = add i64 %30, %27
%32 = inttoptr i64 %31 to i32*
store i32 %arg3, i32* %32, align 4
%33 = ptrtoint i8* %storemerge5.reload to i64
%34 = add i64 %33, 10
%35 = inttoptr i64 %34 to i8*
%36 = call i8* @strdup(i8* %35)
%37 = ptrtoint i8* %36 to i64
%38 = add i64 %31, 8
%39 = inttoptr i64 %38 to i64*
store i64 %37, i64* %39, align 8
%40 = call i64 @FUNC(i64 %34)
%41 = add i64 %31, 16
%42 = inttoptr i64 %41 to i64*
store i64 %40, i64* %42, align 8
%43 = load i64, i64* %39, align 8
%44 = icmp ne i64 %43, 0
%45 = icmp eq i64 %40, 0
%46 = icmp eq i1 %45, false
%or.cond = icmp eq i1 %46, %44
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_6, label LBL_9
LBL_6:
%47 = load i32, i32* @gv_0, align 4
%48 = load i64, i64* @gv_1, align 8
%49 = inttoptr i64 %48 to i64*
call void @qsort(i64* %49, i32 %47, i32 24, i32 (i64*, i64*)* inttoptr (i64 4198838 to i32 (i64*, i64*)*))
br label LBL_7
LBL_7:
%50 = call i8* @strtok_r(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_2, i64 0, i64 0), i8** nonnull %15)
%51 = icmp eq i8* %50, null
%52 = icmp eq i1 %51, false
store i8* %50, i8** %storemerge5.reg2mem
br i1 %52, label LBL_3, label LBL_8
LBL_8:
%53 = call i64 @FUNC(i64* nonnull %11)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %24, { 1, 0 }
uselistorder i32* %sv_1, { 1, 0 }
uselistorder i8** %sv_0, { 1, 2, 0 }
uselistorder i8** %storemerge5.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i8* (i8*)* @strdup, { 1, 0 }
uselistorder i1 false, { 4, 1, 2, 3, 0 }
uselistorder i8* null, { 1, 2, 0 }
uselistorder i8* (i8*, i8*, i8**)* @strtok_r, { 1, 0 }
uselistorder i32 %arg3, { 1, 0 }
uselistorder label LBL_9, { 3, 0, 1, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | sshcrypto_kex_put_13112 | sshcrypto_kex_put | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.reg2mem18 = alloca i64
%sv_0.2.reg2mem = alloca i64
%.reg2mem16 = alloca i64
%sv_0.32.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i64
%.reg2mem14 = alloca i64
%.reg2mem12 = alloca i64*
%.reg2mem10 = alloca i64
%sv_1.2.lcssa.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%sv_1.24.reg2mem = alloca i32
%sv_0.15.reg2mem = alloca i64
%storemerge16.reg2mem = alloca i64
%.reg2mem8 = alloca i64
%.reg2mem = alloca i64
%0 = load [5 x i8]*, [5 x i8]** @gv_0, align 8
%1 = ptrtoint [5 x i8]* %0 to i64
%2 = icmp eq [5 x i8]* %0, null
%3 = icmp eq i1 %2, false
store i64 %1, i64* %.reg2mem
store i64 0, i64* %.reg2mem8
store i64 0, i64* %storemerge16.reg2mem
store i64 0, i64* %sv_0.15.reg2mem
store i32 0, i32* %sv_1.24.reg2mem
store i32 0, i32* %sv_1.2.lcssa.reg2mem
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%sv_1.24.reload = load i32, i32* %sv_1.24.reg2mem
%sv_0.15.reload = load i64, i64* %sv_0.15.reg2mem
%storemerge16.reload = load i64, i64* %storemerge16.reg2mem
%.reload9 = load i64, i64* %.reg2mem8
%4 = add i64 %.reload9, ptrtoint (i32** @gv_1 to i64)
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 8
%7 = icmp eq i32 %6, 0
store i32 %sv_1.24.reload, i32* %sv_1.1.reg2mem
store i64 %sv_0.15.reload, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
%8 = add i64 %sv_0.15.reload, 1
%9 = icmp ne i64 %sv_0.15.reload, 0
%10 = zext i1 %9 to i32
%spec.select = add i32 %sv_1.24.reload, %10
%11 = call i64 @FUNC(i64 %.reload)
%12 = trunc i64 %11 to i32
%13 = add i32 %spec.select, %12
store i32 %13, i32* %sv_1.1.reg2mem
store i64 %8, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%14 = add i64 %storemerge16.reload, 1
%15 = mul i64 %14, 16
%16 = add i64 %15, ptrtoint ([5 x i8]** @gv_0 to i64)
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
store i64 %18, i64* %.reg2mem
store i64 %15, i64* %.reg2mem8
store i64 %14, i64* %storemerge16.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.15.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.24.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.2.lcssa.reg2mem
br i1 %20, label LBL_1, label LBL_4
LBL_4:
%21 = ptrtoint i64* %arg1 to i64
%sv_1.2.lcssa.reload = load i32, i32* %sv_1.2.lcssa.reg2mem
%22 = zext i32 %sv_1.2.lcssa.reload to i64
%23 = call i64 @FUNC(i64 %21, i64 %22)
%24 = add i64 %21, 8
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = load [5 x i8]*, [5 x i8]** @gv_0, align 8
%28 = ptrtoint [5 x i8]* %27 to i64
%29 = icmp eq [5 x i8]* %27, null
%30 = icmp eq i1 %29, false
store i64 %28, i64* %.reg2mem10
store i64* bitcast ([5 x i8]** @gv_0 to i64*), i64** %.reg2mem12
store i64 0, i64* %.reg2mem14
store i64 0, i64* %storemerge3.reg2mem
store i64 0, i64* %sv_0.32.reg2mem
store i64 %26, i64* %.reg2mem18
br i1 %30, label LBL_5, label LBL_11
LBL_5:
%sv_0.32.reload = load i64, i64* %sv_0.32.reg2mem
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%.reload15 = load i64, i64* %.reg2mem14
%31 = add i64 %.reload15, ptrtoint (i32** @gv_1 to i64)
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 8
%34 = icmp eq i32 %33, 0
store i64 %sv_0.32.reload, i64* %sv_0.2.reg2mem
br i1 %34, label LBL_9, label LBL_6
LBL_6:
%.reload11 = load i64, i64* %.reg2mem10
%35 = icmp eq i64 %sv_0.32.reload, 0
store i64 %.reload11, i64* %.reg2mem16
br i1 %35, label LBL_8, label LBL_7
LBL_7:
%.reload13 = load i64*, i64** %.reg2mem12
%36 = call i64 @FUNC(i64 %21, i64* nonnull @gv_2)
%.pre = load i64, i64* %.reload13, align 8
store i64 %.pre, i64* %.reg2mem16
br label LBL_8
LBL_8:
%37 = add i64 %sv_0.32.reload, 1
%.reload17 = load i64, i64* %.reg2mem16
%38 = inttoptr i64 %.reload17 to i64*
%39 = call i64 @FUNC(i64 %21, i64* %38)
store i64 %37, i64* %sv_0.2.reg2mem
br label LBL_9
LBL_9:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%40 = add i64 %storemerge3.reload, 1
%41 = mul i64 %40, 16
%42 = add i64 %41, ptrtoint ([5 x i8]** @gv_0 to i64)
%43 = inttoptr i64 %42 to i64*
%44 = load i64, i64* %43, align 8
%45 = icmp eq i64 %44, 0
%46 = icmp eq i1 %45, false
store i64 %44, i64* %.reg2mem10
store i64* %43, i64** %.reg2mem12
store i64 %41, i64* %.reg2mem14
store i64 %40, i64* %storemerge3.reg2mem
store i64 %sv_0.2.reload, i64* %sv_0.32.reg2mem
br i1 %46, label LBL_5, label LBL_10
LBL_10:
%.pre7 = load i64, i64* %25, align 8
store i64 %.pre7, i64* %.reg2mem18
br label LBL_11
LBL_11:
%.reload19 = load i64, i64* %.reg2mem18
%47 = add i64 %.reload19, %21
%48 = inttoptr i64 %47 to i8*
store i8 0, i8* %48, align 1
%49 = add i64 %26, %21
%50 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_3, i64 0, i64 0), i64 %49)
ret i64 %50
uselistorder i64 %sv_0.32.reload, { 2, 1, 0 }
uselistorder i64 %26, { 1, 0 }
uselistorder i64 %21, { 0, 1, 3, 2, 5, 4 }
uselistorder i64 %sv_0.15.reload, { 1, 2, 0 }
uselistorder i32 %sv_1.24.reload, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem8, { 2, 0, 1 }
uselistorder i64* %storemerge16.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.15.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.24.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem10, { 2, 0, 1 }
uselistorder i64** %.reg2mem12, { 2, 0, 1 }
uselistorder i64* %.reg2mem14, { 2, 0, 1 }
uselistorder i64* %storemerge3.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.32.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem16, { 0, 2, 1 }
uselistorder i64* %.reg2mem18, { 0, 2, 1 }
uselistorder i64 (i64, i64*)* @buf_puts, { 1, 0 }
uselistorder i64 1, { 1, 2, 3, 4, 0 }
uselistorder i64 ptrtoint (i32** @gv_1 to i64), { 1, 0 }
uselistorder i32 0, { 2, 3, 0, 1 }
uselistorder i1 false, { 2, 1, 3, 0 }
uselistorder [5 x i8]** @gv_0, { 2, 0, 3, 1 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | do_busid_cmd_17216 | do_busid_cmd | define i64 @FUNC(i64* %arg1, i64* %arg2, i8 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = sext i8 %arg3 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = zext i8 %arg3 to i64
%7 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %6, i64 %4, i64 %3, i64 %2, i64 %1)
%8 = add i64 %5, 8
%9 = inttoptr i64 %8 to i32*
store i32 ptrtoint ([26 x i8]* @gv_0 to i32), i32* %9, align 4
br i1 icmp eq (i32 ptrtoint ([26 x i8]* @gv_0 to i32), i32 0), label LBL_4, label LBL_1
LBL_1:
%10 = add i64 %5, 12
%11 = inttoptr i64 %10 to i8*
store i8 1, i8* %11, align 1
%12 = add i64 %5, 16
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
%14 = add i64 %5, 20
%15 = inttoptr i64 %14 to i32*
store i32 0, i32* %15, align 4
%16 = load i8, i8* %11, align 1
br i1 icmp slt (i32 ptrtoint ([26 x i8]* @gv_0 to i32), i32 1), label LBL_3, label LBL_2
LBL_2:
%17 = or i8 %16, 2
store i8 %17, i8* %11, align 1
br label LBL_4
LBL_3:
%18 = or i8 %16, 4
store i8 %18, i8* %11, align 1
br label LBL_4
LBL_4:
%19 = add i64 %5, 13
%20 = inttoptr i64 %19 to i8*
store i8 24, i8* %20, align 1
%21 = add i64 %5, 14
%22 = inttoptr i64 %21 to i8*
store i8 32, i8* %22, align 1
%23 = call i64 @FUNC(i64 %5)
ret i64 %23
uselistorder i8 %16, { 1, 0 }
uselistorder i8* %11, { 1, 2, 0, 3 }
uselistorder i64 %5, { 3, 4, 5, 0, 1, 2, 6 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
} | 1 |
BinRealVul | vhost_dev_cleanup_14268 | vhost_dev_cleanup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
%7 = and i64 %1, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%8 = load i64, i64* %6, align 8
%9 = add i64 %8, %.reload
%10 = call i64 @FUNC(i64 %9)
%11 = add i32 %storemerge1.reload, 1
%12 = sext i32 %11 to i64
%13 = icmp sgt i64 %7, %12
store i64 %12, i64* %.reg2mem
store i32 %11, i32* %storemerge1.reg2mem
br i1 %13, label LBL_2, label LBL_3
LBL_3:
%14 = add i64 %2, 16
%15 = call i64 @FUNC(i64 %14)
%16 = add i64 %2, 24
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 0
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = call i64 @FUNC(i64 %18)
%21 = load i64, i64* %17, align 8
%22 = call i64 @FUNC(i64 %21)
br label LBL_5
LBL_5:
%23 = add i64 %2, 32
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %25)
%27 = add i64 %2, 40
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 %29)
ret i64 %2
uselistorder i64 %2, { 0, 2, 1, 4, 5, 3 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @g_free, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | rt6_free_pcpu_4394 | rt6_free_pcpu | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rdi.0.reg2mem = alloca i64
%rdi.11.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
store i64 0, i64* %indvars.iv.reg2mem
store i64 %arg1, i64* %rdi.11.reg2mem
br i1 %0, label LBL_5, label LBL_1
LBL_1:
%rdi.11.reload = load i64, i64* %rdi.11.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%1 = call i64 @FUNC(i64 %rdi.11.reload, i64 %indvars.iv.reload)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
store i64 %rdi.11.reload, i64* %rdi.0.reg2mem
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%5 = call i64 @FUNC(i64 %3)
store i64 0, i64* %2, align 8
store i64 %3, i64* %rdi.0.reg2mem
br label LBL_3
LBL_3:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%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 i64 %rdi.0.reload, i64* %rdi.11.reg2mem
br i1 %exitcond, label LBL_4, label LBL_1
LBL_4:
%6 = call i64 @FUNC(i64 %rdi.0.reload)
%7 = inttoptr i64 %arg1 to i64*
store i64 0, i64* %7, align 8
br label LBL_5
LBL_5:
ret i64 %arg1
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.11.reg2mem, { 2, 0, 1 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder i64 %arg1, { 1, 2, 0, 3 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | ff_thread_flush_1525 | ff_thread_flush | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
br i1 %1, label LBL_4, label LBL_1
LBL_1:
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %0, i64 %5)
%7 = inttoptr i64 %2 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
%10 = icmp eq i64 %8, %0
%or.cond = or i1 %9, %10
br i1 %or.cond, label LBL_3, label LBL_2
LBL_2:
%11 = inttoptr i64 %8 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %0, i64 %12, i64 0)
br label LBL_3
LBL_3:
%14 = add i64 %0, 20
%15 = inttoptr i64 %14 to i32*
store i32 0, i32* %15, align 4
%16 = add i64 %0, 16
%17 = inttoptr i64 %16 to i32*
store i32 0, i32* %17, align 4
%18 = add i64 %0, 24
%19 = inttoptr i64 %18 to i32*
store i32 1, i32* %19, align 4
store i64 0, i64* %7, align 8
br label LBL_4
LBL_4:
ret i64 %0
uselistorder i64 %8, { 1, 0, 2 }
uselistorder i64 %0, { 1, 3, 4, 5, 2, 0, 6, 7 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | sym_quant_3324 | sym_quant | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg2 to i32
%1 = trunc i64 %arg1 to i32
%2 = mul i32 %1, %arg3
%3 = sub i32 24, %0
%4 = urem i32 %3, 32
%5 = ashr i32 %2, %4
%6 = add i32 %5, %arg3
%7 = ashr i32 %6, 1
%8 = icmp sgt i32 %6, -1
%9 = icmp slt i32 %7, %arg3
%or.cond = icmp eq i1 %8, %9
%storemerge = zext i1 %or.cond to i64
%10 = call i64 @FUNC(i64 %storemerge)
%11 = zext i32 %7 to i64
ret i64 %11
uselistorder i32 %7, { 1, 0 }
uselistorder i32 %arg3, { 2, 1, 0 }
} | 0 |
BinRealVul | qcow2_free_any_clusters_4390 | qcow2_free_any_clusters | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC(i64 %arg2)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 3
store i64 %2, i64* %rax.0.reg2mem
br i1 %4, label LBL_8, label LBL_1
LBL_1:
%5 = icmp sgt i32 %3, 3
br i1 %5, label LBL_7, label LBL_2
LBL_2:
%6 = ptrtoint i64* %arg1 to i64
%sext3 = mul i64 %arg4, 4294967296
%7 = ashr exact i64 %sext3, 32
%8 = icmp eq i32 %3, 0
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = icmp sgt i32 %3, -1
%10 = add i32 %3, -1
%11 = icmp ult i32 %10, 2
%or.cond = icmp eq i1 %9, %11
br i1 %or.cond, label LBL_5, label LBL_7
LBL_4:
%12 = urem i64 %1, 64
%storemerge4 = lshr i64 %arg2, %12
%13 = trunc i64 %storemerge4 to i32
%14 = add i64 %6, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = and i32 %16, %13
%18 = mul i32 %17, 512
%19 = add i32 %18, 512
%20 = add i64 %6, 12
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = sext i32 %22 to i64
%24 = and i64 %arg2, -512
%25 = and i64 %24, %23
%26 = and i64 %7, 4294967295
%27 = zext i32 %19 to i64
%28 = call i64 @FUNC(i64 %6, i64 %25, i64 %27, i64 %26)
store i64 %28, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%29 = and i64 %arg2, -4096
%30 = icmp eq i64 %29, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %30, label LBL_8, label LBL_6
LBL_6:
%sext = mul i64 %arg3, 4294967296
%31 = ashr exact i64 %sext, 32
%32 = add i64 %6, 8
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = and i64 %31, 4294967295
%36 = urem i32 %34, 32
%37 = icmp eq i32 %36, 0
%38 = trunc i64 %31 to i32
%39 = shl i32 %38, %36
%40 = zext i32 %39 to i64
%storemerge = select i1 %37, i64 %35, i64 %40
%41 = and i64 %7, 4294967295
%42 = call i64 @FUNC(i64 %6, i64 %29, i64 %storemerge, i64 %41)
store i64 %42, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
call void @abort()
unreachable
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %36, { 1, 0 }
uselistorder i64 %31, { 1, 0 }
uselistorder i64 %6, { 0, 1, 2, 4, 3 }
uselistorder i32 %3, { 1, 0, 2, 3, 4 }
uselistorder i64 (i64, i64, i64, i64)* @qcow2_free_clusters, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder i32 512, { 1, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 4294967296, { 1, 0 }
uselistorder i32 3, { 1, 0 }
uselistorder i64 %arg2, { 2, 0, 1, 3 }
uselistorder label LBL_8, { 1, 0, 3, 2 }
} | 0 |
BinRealVul | squashfs_put_super_17632 | squashfs_put_super | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = icmp eq i64* %arg1, null
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %2, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %2, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = add i64 %2, 24
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %2, i64 %14)
%16 = add i64 %2, 32
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18)
%20 = add i64 %2, 40
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %22)
%24 = add i64 %2, 48
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = call i64 @FUNC(i64 %26)
%28 = call i64 @FUNC(i64 %26)
store i64 0, i64* %arg1, align 8
br label LBL_2
LBL_2:
%29 = call i64 @FUNC()
ret i64 %29
uselistorder i64 %2, { 6, 5, 4, 3, 2, 1, 0, 7 }
uselistorder i64 (i64)* @kfree, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @squashfs_cache_delete, { 2, 1, 0 }
uselistorder i64* %arg1, { 0, 2, 1 }
} | 1 |
BinRealVul | swf_write_trailer_16852 | swf_write_trailer | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i64
%sv_0.13.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = add i64 %arg1, 16
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = trunc i64 %1 to i32
%6 = icmp eq i32 %5, 0
store i64 0, i64* %sv_0.1.lcssa.reg2mem
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = add i64 %arg1, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = and i64 %1, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge4.reg2mem
store i64 0, i64* %sv_0.13.reg2mem
br label LBL_2
LBL_2:
%sv_0.13.reload = load i64, i64* %sv_0.13.reg2mem
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%.reload = load i64, i64* %.reg2mem
%11 = mul i64 %.reload, 8
%12 = add i64 %11, %9
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, 1
%18 = icmp eq i1 %17, false
%spec.select = select i1 %18, i64 %sv_0.13.reload, i64 %14
%19 = add i32 %storemerge4.reload, 1
%20 = sext i32 %19 to i64
%21 = icmp sgt i64 %10, %20
store i64 %20, i64* %.reg2mem
store i32 %19, i32* %storemerge4.reg2mem
store i64 %spec.select, i64* %sv_0.13.reg2mem
store i64 %spec.select, i64* %sv_0.1.lcssa.reg2mem
br i1 %21, label LBL_2, label LBL_3
LBL_3:
%22 = add i64 %arg1, 24
%sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem
%23 = call i64 @FUNC(i64 %arg1, i64 0)
%24 = call i64 @FUNC(i64 %arg1)
%25 = call i64 @FUNC(i64 %22)
%26 = call i64 @FUNC(i64 %22)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
%30 = icmp eq i64 %sv_0.1.lcssa.reload, 0
%or.cond = or i1 %30, %29
br i1 %or.cond, label LBL_5, label LBL_4
LBL_4:
%31 = inttoptr i64 %4 to i32*
%32 = call i64 @FUNC(i64 %22)
%33 = call i64 @FUNC(i64 %22, i64 4, i64 0)
%34 = and i64 %32, 4294967295
%35 = call i64 @FUNC(i64 %22, i64 %34)
%36 = load i32, i32* %31, align 4
%37 = zext i32 %36 to i64
%38 = call i64 @FUNC(i64 %22, i64 %37, i64 0)
%39 = add i64 %sv_0.1.lcssa.reload, 4
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = zext i32 %41 to i64
%43 = call i64 @FUNC(i64 %22, i64 %42)
br label LBL_5
LBL_5:
%44 = call i64 @FUNC(i64 %4)
ret i64 0
uselistorder i64 %22, { 2, 3, 6, 5, 4, 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.13.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i64, i64)* @url_fseek, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder i64 %arg1, { 1, 2, 3, 0, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | xtensa_cpu_realizefn_15068 | xtensa_cpu_realizefn | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = bitcast i64* %arg1 to i32*
store i32 %3, i32* %4, align 4
ret i64 %2
} | 1 |
BinRealVul | close_rnic_dev_4193 | close_rnic_dev | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.in.in.reg2mem = alloca i64*
%0 = inttoptr i64 %arg1 to i64*
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i64* %0)
%2 = call i64 @FUNC(i64* nonnull @gv_2)
store i64* @gv_3, i64** %sv_0.0.in.in.reg2mem
br label LBL_3
LBL_1:
%sv_0.0 = add i64 %sv_0.0.in, -56
%storemerge.in.in = inttoptr i64 %sv_0.0.in to i64*
%3 = inttoptr i64 %sv_0.0 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, %arg1
%6 = icmp eq i1 %5, false
store i64* %storemerge.in.in, i64** %sv_0.0.in.in.reg2mem
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = add i64 %sv_0.0.in, -48
%8 = inttoptr i64 %7 to i32*
store i32 1, i32* %8, align 4
%9 = add i64 %sv_0.0.in, -40
%10 = call i64 @FUNC(i64 %9)
%11 = call i64 @FUNC(i64 %sv_0.0.in)
%12 = call i64 @FUNC(i64 %sv_0.0)
%13 = call i64 @FUNC(i64 %sv_0.0)
%14 = add i64 %sv_0.0.in, 16
%15 = call i64 @FUNC(i64 %14)
%16 = add i64 %sv_0.0.in, 24
%17 = call i64 @FUNC(i64 %16)
%18 = add i64 %sv_0.0.in, 32
%19 = call i64 @FUNC(i64 %18)
%20 = add i64 %sv_0.0.in, 40
%21 = call i64 @FUNC(i64 %20)
br label LBL_4
LBL_3:
%sv_0.0.in.in.reload = load i64*, i64** %sv_0.0.in.in.reg2mem
%sv_0.0.in = load i64, i64* %sv_0.0.in.in.reload, align 8
%22 = icmp eq i64 %sv_0.0.in, ptrtoint (i64* @gv_3 to i64)
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_1, label LBL_4
LBL_4:
%24 = call i64 @FUNC(i64* nonnull @gv_2)
ret i64 %24
uselistorder i64 %sv_0.0.in, { 8, 7, 9, 0, 1, 2, 3, 4, 5, 6 }
uselistorder i64 (i64)* @idr_destroy, { 2, 1, 0 }
uselistorder i64* @gv_3, { 1, 0 }
} | 0 |
BinRealVul | scsi_bus_legacy_handle_cmdline_16752 | scsi_bus_legacy_handle_cmdline | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%sv_1 = alloca i64, align 8
%0 = ptrtoint i64* %sv_1 to i64
%1 = call i64 @FUNC(i64* nonnull %sv_1)
%2 = trunc i64 %0 to i32
%3 = icmp eq i32 %2, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %3, label LBL_5, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i32*
store i32 0, i32* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%7 = load i32, i32* %6, align 4
%8 = zext i32 %7 to i64
%9 = call i64 @FUNC(i64 1, i64 %8, i32 %storemerge1.reload)
store i64 %9, i64* %sv_1, align 8
%10 = icmp eq i64 %9, 0
store i64 1, i64* %.reg2mem
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = add i64 %9, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %13)
%15 = load i64, i64* %sv_1, align 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %4, i64 %17, i32 %storemerge1.reload, i64 0, i64 4294967295)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
store i64 %4, i64* %.reg2mem
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %21, label LBL_4, label LBL_5
LBL_4:
%.reload = load i64, i64* %.reg2mem
%22 = add i32 %storemerge1.reload, 1
%23 = and i64 %.reload, 4294967295
%24 = sext i32 %22 to i64
%25 = icmp sgt i64 %23, %24
store i32 %22, i32* %storemerge1.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %25, label LBL_2, label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%26 = call i64 @FUNC(i64* nonnull %sv_1)
ret i64 %sv_0.0.reload
uselistorder i32 %storemerge1.reload, { 2, 0, 1 }
uselistorder i64* %sv_1, { 0, 2, 3, 1, 4 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | kvm_has_msr_star_1841 | kvm_has_msr_star | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem4 = alloca i32
%storemerge3.reg2mem = alloca i32
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%sv_0 = alloca i32, align 4
%2 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i32 %2, i32* %.reg2mem4
br i1 %4, label LBL_9, label LBL_1
LBL_1:
store i32 -1, i32* bitcast (i64* @gv_0 to i32*), align 8
store i32 0, i32* %sv_0, align 4
%5 = and i64 %1, 4294967295
%6 = call i64 @FUNC(i64 %5, i64 44544, i32* nonnull %sv_0)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
%10 = icmp eq i32 %7, -7
%or.cond = or i1 %10, %9
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_2, label LBL_10
LBL_2:
%11 = bitcast i64* %rdi to i32*
%12 = load i32, i32* %sv_0, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 4
%15 = add nsw i64 %14, 4100
%16 = icmp ugt i64 %15, 1024
%17 = select i1 %16, i64 %15, i64 1024
%18 = call i64 @FUNC(i64 %17)
%19 = load i32, i32* %sv_0, align 4
%20 = inttoptr i64 %18 to i32*
store i32 %19, i32* %20, align 4
%21 = load i32, i32* %11, align 8
%22 = zext i32 %21 to i64
%23 = call i64 @FUNC(i64 %22, i64 44544, i32* %20)
%24 = trunc i64 %23 to i32
%25 = icmp slt i32 %24, 0
br i1 %25, label LBL_8, label LBL_3
LBL_3:
%26 = load i32, i32* %20, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_8, label LBL_4
LBL_4:
%28 = add i64 %18, 4
%29 = zext i32 %26 to i64
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge3.reg2mem
br label LBL_5
LBL_5:
%.reload = load i64, i64* %.reg2mem
%30 = mul i64 %.reload, 4
%31 = add i64 %28, %30
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, -1073741695
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_7, label LBL_6
LBL_6:
store i32 1, i32* bitcast (i64* @gv_0 to i32*), align 8
br label LBL_8
LBL_7:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%36 = add i32 %storemerge3.reload, 1
%37 = sext i32 %36 to i64
%38 = icmp slt i64 %37, %29
store i64 %37, i64* %.reg2mem
store i32 %36, i32* %storemerge3.reg2mem
br i1 %38, label LBL_5, label LBL_8
LBL_8:
%39 = inttoptr i64 %18 to i64*
call void @free(i64* %39)
%.pre = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
store i32 %.pre, i32* %.reg2mem4
br label LBL_9
LBL_9:
%.reload5 = load i32, i32* %.reg2mem4
%40 = icmp eq i32 %.reload5, 1
%. = zext i1 %40 to i64
store i64 %., 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 %18, { 1, 0, 2 }
uselistorder i32* %sv_0, { 1, 2, 0, 3 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem4, { 0, 2, 1 }
uselistorder i64 4, { 0, 2, 1 }
uselistorder i64 (i64, i64, i32*)* @kvm_ioctl, { 1, 0 }
uselistorder label LBL_8, { 0, 2, 1, 3 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | xen_irq_lateeoi_locked_19289 | xen_irq_lateeoi_locked | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp ult i32 %2, 256
store i64 %3, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = call i64 @FUNC(i64 %3)
store i64 %5, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | read_erst_record_13217 | read_erst_record | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_9
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = add i64 %7, 16
%9 = call i64 @FUNC(i64 %8)
%10 = add i64 %7, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, -1
%14 = icmp eq i1 %13, false
store i32 %12, i32* %.reg2mem
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = call i64 @FUNC(i64 %7, i64 %10, i64 1)
%.pre = load i32, i32* %11, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_3
LBL_3:
%.reload = load i32, i32* %.reg2mem
%16 = icmp eq i32 %.reload, -4
%17 = icmp eq i1 %16, false
store i64 4294967293, i64* %rax.0.reg2mem
br i1 %17, label LBL_4, label LBL_9
LBL_4:
%18 = trunc i64 %9 to i32
%19 = add i64 %7, 12
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i32 %18, -16
%23 = icmp ugt i32 %21, %22
store i64 4294967293, i64* %rax.0.reg2mem
br i1 %23, label LBL_9, label LBL_5
LBL_5:
%24 = zext i32 %.reload to i64
%25 = call i64 @FUNC(i64 %7, i64 %24)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_8, label LBL_6
LBL_6:
%28 = call i64 @FUNC(i64 %8)
%29 = load i32, i32* %20, align 4
%30 = and i64 %25, 4294967295
%31 = call i64 @FUNC(i64 %7, i64 %30)
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = zext i32 %33 to i64
%35 = call i64 @FUNC(i64 %34)
%36 = trunc i64 %35 to i32
%37 = icmp ult i32 %36, 16
%38 = load i32, i32* %20, align 4
%39 = add i32 %38, %36
%40 = icmp ugt i32 %39, %18
%41 = or i1 %37, %40
store i64 4294967293, i64* %rax.0.reg2mem
br i1 %41, label LBL_9, label LBL_7
LBL_7:
%42 = zext i32 %29 to i64
%43 = add i64 %28, %42
%44 = inttoptr i64 %43 to i64*
%45 = inttoptr i64 %31 to i64*
%46 = call i64* @memcpy(i64* %44, i64* %45, i32 %36)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%47 = call i64 @FUNC(i64 %7, i64 %10, i64 1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %36, { 1, 0, 2 }
uselistorder i64 %7, { 2, 1, 4, 3, 0, 6, 5 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2, 4, 5, 6 }
uselistorder i64 (i64, i64, i64)* @get_next_record_identifier, { 1, 0 }
uselistorder i64 (i64)* @le32_to_cpu, { 1, 0 }
uselistorder i64 4294967295, { 0, 2, 1, 3 }
uselistorder label LBL_9, { 2, 1, 0, 3, 4, 5 }
} | 1 |
BinRealVul | vga_reset_828 | vga_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i32*
store i32 0, i32* %1, align 4
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
store i32 0, i32* %3, align 4
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i32*
store i32 0, i32* %5, align 4
%6 = add i64 %0, 12
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %7, align 4
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = add i64 %0, 20
%11 = inttoptr i64 %10 to i32*
store i32 0, i32* %11, align 4
%12 = add i64 %0, 24
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
%14 = add i64 %0, 28
%15 = inttoptr i64 %14 to i32*
store i32 0, i32* %15, align 4
%16 = add i64 %0, 32
%17 = inttoptr i64 %16 to i64*
%18 = call i64* @memset(i64* %17, i32 0, i32 256)
%19 = add i64 %0, 288
%20 = inttoptr i64 %19 to i32*
store i32 0, i32* %20, align 4
%21 = add i64 %0, 292
%22 = inttoptr i64 %21 to i64*
%23 = call i64* @memset(i64* %22, i32 0, i32 256)
%24 = add i64 %0, 548
%25 = inttoptr i64 %24 to i32*
store i32 0, i32* %25, align 4
%26 = add i64 %0, 552
%27 = inttoptr i64 %26 to i64*
%28 = call i64* @memset(i64* %27, i32 0, i32 256)
%29 = add i64 %0, 808
%30 = inttoptr i64 %29 to i32*
store i32 0, i32* %30, align 4
%31 = add i64 %0, 812
%32 = inttoptr i64 %31 to i32*
store i32 0, i32* %32, align 4
%33 = add i64 %0, 816
%34 = inttoptr i64 %33 to i64*
%35 = call i64* @memset(i64* %34, i32 0, i32 256)
%36 = add i64 %0, 1072
%37 = inttoptr i64 %36 to i32*
store i32 0, i32* %37, align 4
%38 = add i64 %0, 1076
%39 = inttoptr i64 %38 to i32*
store i32 0, i32* %39, align 4
%40 = add i64 %0, 1080
%41 = inttoptr i64 %40 to i32*
store i32 0, i32* %41, align 4
%42 = add i64 %0, 1084
%43 = inttoptr i64 %42 to i32*
store i32 0, i32* %43, align 4
%44 = add i64 %0, 1088
%45 = inttoptr i64 %44 to i32*
store i32 0, i32* %45, align 4
%46 = add i64 %0, 1092
%47 = inttoptr i64 %46 to i32*
store i32 0, i32* %47, align 4
%48 = add i64 %0, 1096
%49 = inttoptr i64 %48 to i32*
store i32 0, i32* %49, align 4
%50 = add i64 %0, 1100
%51 = inttoptr i64 %50 to i32*
store i32 0, i32* %51, align 4
%52 = add i64 %0, 1104
%53 = inttoptr i64 %52 to i64*
%54 = call i64* @memset(i64* %53, i32 0, i32 256)
%55 = add i64 %0, 1360
%56 = inttoptr i64 %55 to i32*
store i32 0, i32* %56, align 4
%57 = add i64 %0, 1364
%58 = inttoptr i64 %57 to i64*
%59 = call i64* @memset(i64* %58, i32 0, i32 256)
%60 = add i64 %0, 1620
%61 = inttoptr i64 %60 to i32*
store i32 0, i32* %61, align 4
%62 = add i64 %0, 1624
%63 = inttoptr i64 %62 to i32*
store i32 0, i32* %63, align 4
%64 = add i64 %0, 1628
%65 = inttoptr i64 %64 to i64*
%66 = call i64* @memset(i64* %65, i32 0, i32 256)
%67 = inttoptr i64 %64 to i8*
store i8 0, i8* %67, align 1
%68 = add i64 %0, 1884
%69 = inttoptr i64 %68 to i32*
store i32 0, i32* %69, align 4
%70 = add i64 %0, 1888
%71 = inttoptr i64 %70 to i32*
store i32 0, i32* %71, align 4
%72 = add i64 %0, 1896
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = ashr i32 %74, 16
%76 = add nsw i32 %75, -1
%77 = add i64 %0, 1892
%78 = inttoptr i64 %77 to i32*
store i32 %76, i32* %78, align 4
%79 = add i64 %0, 1900
%80 = inttoptr i64 %79 to i64*
%81 = call i64* @memset(i64* %80, i32 0, i32 256)
%82 = add i64 %0, 2156
%83 = inttoptr i64 %82 to i32*
store i32 -1, i32* %83, align 4
%84 = add i64 %0, 2160
%85 = inttoptr i64 %84 to i32*
store i32 0, i32* %85, align 4
%86 = add i64 %0, 2164
%87 = inttoptr i64 %86 to i32*
store i32 0, i32* %87, align 4
%88 = add i64 %0, 2168
%89 = inttoptr i64 %88 to i32*
store i32 0, i32* %89, align 4
%90 = add i64 %0, 2172
%91 = inttoptr i64 %90 to i32*
store i32 0, i32* %91, align 4
%92 = add i64 %0, 2176
%93 = inttoptr i64 %92 to i32*
store i32 0, i32* %93, align 4
%94 = add i64 %0, 2180
%95 = inttoptr i64 %94 to i32*
store i32 0, i32* %95, align 4
%96 = add i64 %0, 2184
%97 = inttoptr i64 %96 to i32*
store i32 0, i32* %97, align 4
%98 = add i64 %0, 2188
%99 = inttoptr i64 %98 to i32*
store i32 0, i32* %99, align 4
%100 = add i64 %0, 2192
%101 = inttoptr i64 %100 to i32*
store i32 0, i32* %101, align 4
%102 = add i64 %0, 2196
%103 = inttoptr i64 %102 to i32*
store i32 0, i32* %103, align 4
%104 = add i64 %0, 2200
%105 = inttoptr i64 %104 to i32*
store i32 0, i32* %105, align 4
%106 = add i64 %0, 2204
%107 = inttoptr i64 %106 to i32*
store i32 0, i32* %107, align 4
%108 = add i64 %0, 2208
%109 = inttoptr i64 %108 to i32*
store i32 0, i32* %109, align 4
%110 = add i64 %0, 2212
%111 = inttoptr i64 %110 to i32*
store i32 0, i32* %111, align 4
%112 = add i64 %0, 2216
%113 = inttoptr i64 %112 to i32*
store i32 0, i32* %113, align 4
%114 = add i64 %0, 2220
%115 = inttoptr i64 %114 to i64*
%116 = call i64* @memset(i64* %115, i32 0, i32 256)
%117 = add i64 %0, 2476
%118 = inttoptr i64 %117 to i64*
%119 = call i64* @memset(i64* %118, i32 0, i32 256)
%120 = add i64 %0, 2732
%121 = inttoptr i64 %120 to i64*
%122 = call i64* @memset(i64* %121, i32 0, i32 256)
%123 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%124 = zext i32 %123 to i64
%cond = icmp eq i32 %123, 1
store i64 %124, i64* %rax.0.reg2mem
br i1 %cond, label LBL_1, label LBL_2
LBL_1:
%125 = add i64 %0, 2988
%126 = inttoptr i64 %125 to i64*
%127 = call i64* @memset(i64* %126, i32 0, i32 4)
%128 = ptrtoint i64* %127 to i64
store i64 %128, 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 i32 -1, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2 }
uselistorder i32 0, { 0, 1, 2, 3, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 4, 27, 28, 5, 29, 30, 6, 31, 7, 32, 33, 34, 35, 36, 37, 38, 39, 8, 40, 41, 9, 42, 10, 43, 11, 44, 45, 46, 47, 48, 49, 50, 51 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | dump_stream_out_8320 | dump_stream_out | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%2 = icmp eq i64* %arg1, null
br i1 %2, label LBL_6, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = ptrtoint i64* %sv_0 to i64
%5 = trunc i64 %1 to i32
%6 = and i64 %1, 4294967295
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 %6)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_1, i64 0, i64 0))
%9 = add i64 %3, 4
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%10 = mul i64 %indvars.iv.reload, 4
%11 = add i64 %9, %10
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = zext i32 %13 to i64
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i64 %14)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 4
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%16 = call i32 @putchar(i32 10)
%17 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0))
%18 = icmp eq i32 %5, 0
store i64 %6, i64* %rax.0.reg2mem
br i1 %18, label LBL_6, label LBL_4
LBL_4:
%19 = bitcast i64* %rdi to i32*
%20 = add i64 %4, -16
%21 = inttoptr i64 %20 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge2.reg2mem
br label LBL_5
LBL_5:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%.reload = load i64, i64* %.reg2mem
%22 = mul nsw i64 %.reload, 20
%23 = add i64 %22, %3
%24 = add i64 %23, 36
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = zext i32 %26 to i64
%28 = add i64 %23, 32
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = add i64 %23, 28
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = add i64 %23, 24
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = zext i32 %36 to i64
%38 = add i64 %23, 20
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = zext i32 %40 to i64
store i64 %27, i64* %21, align 8
%42 = zext i32 %30 to i64
%43 = zext i32 %33 to i64
%44 = zext i32 %storemerge2.reload to i64
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_4, i64 0, i64 0), i64 %44, i64 %41, i64 %37, i64 %43, i64 %42, i64 %.reload)
%46 = add i32 %storemerge2.reload, 1
%47 = load i32, i32* %19, align 8
%48 = zext i32 %47 to i64
%49 = sext i32 %46 to i64
%50 = icmp slt i64 %49, %48
store i64 %49, i64* %.reg2mem
store i32 %46, i32* %storemerge2.reg2mem
store i64 %48, i64* %rax.0.reg2mem
br i1 %50, label LBL_5, label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i64 20, { 1, 0 }
uselistorder i64 4, { 1, 0, 2 }
uselistorder i32 (i8*, ...)* @printf, { 1, 2, 0, 3 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | nouveau_fbcon_accel_fini_4028 | nouveau_fbcon_accel_fini | 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 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_5, label LBL_1
LBL_1:
%5 = add i64 %1, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_5, label LBL_2
LBL_2:
%9 = call i64 @FUNC()
%10 = inttoptr i64 %3 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = inttoptr i64 %11 to i32*
%14 = load i32, i32* %13, align 4
%15 = or i32 %14, 1
store i32 %15, i32* %13, align 4
br label LBL_4
LBL_4:
%16 = call i64 @FUNC()
%17 = load i64, i64* %6, align 8
%18 = call i64 @FUNC(i64 %17)
%19 = add i64 %3, 8
%20 = call i64 @FUNC(i64 %19)
%21 = add i64 %3, 16
%22 = call i64 @FUNC(i64 %21)
%23 = add i64 %3, 24
%24 = call i64 @FUNC(i64 %23)
%25 = add i64 %3, 32
%26 = call i64 @FUNC(i64 %25)
%27 = add i64 %3, 40
%28 = call i64 @FUNC(i64 %27)
%29 = add i64 %3, 48
%30 = call i64 @FUNC(i64 %29)
%31 = add i64 %3, 56
%32 = call i64 @FUNC(i64 %31)
store i64 %32, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 0, 3, 2, 1, 6, 5, 4, 7, 8 }
uselistorder i64 (i64)* @nvif_object_fini, { 6, 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | matroska_execute_seekhead_2612 | matroska_execute_seekhead | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %0 to i32
%3 = icmp eq i32 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_9, label LBL_1
LBL_1:
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = urem i32 %6, 2
%8 = zext i32 %7 to i64
%9 = icmp eq i32 %7, 0
%10 = icmp eq i1 %9, false
store i64 %8, i64* %rax.0.reg2mem
br i1 %10, label LBL_9, label LBL_2
LBL_2:
%11 = add i64 %0, 16
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_9, label LBL_3
LBL_3:
%sext = mul i64 %1, 4294967296
%15 = ashr exact i64 %sext, 32
%16 = inttoptr i64 %4 to i64*
%17 = add i64 %0, 24
%18 = inttoptr i64 %17 to i32*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_4
LBL_4:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%19 = load i64, i64* %16, align 8
%20 = mul i64 %.reload, 16
%21 = add i64 %19, %20
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp slt i64 %15, %23
br i1 %24, label LBL_5, label LBL_8
LBL_5:
%25 = add i64 %21, 8
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp eq i32 %27, 1
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_7, label LBL_6
LBL_6:
store i32 1, i32* %18, align 4
br label LBL_8
LBL_7:
%30 = zext i32 %storemerge1.reload to i64
%31 = call i64 @FUNC(i64 %0, i64 %30)
%32 = trunc i64 %31 to i32
%33 = icmp slt i32 %32, 0
store i64 %31, i64* %rax.0.reg2mem
br i1 %33, label LBL_9, label LBL_8
LBL_8:
%34 = add i32 %storemerge1.reload, 1
%35 = load i32, i32* %12, align 4
%36 = zext i32 %35 to i64
%37 = sext i32 %34 to i64
%38 = icmp slt i64 %37, %36
store i64 %37, i64* %.reg2mem
store i32 %34, i32* %storemerge1.reg2mem
store i64 %36, i64* %rax.0.reg2mem
br i1 %38, label LBL_4, label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %12, { 1, 0 }
uselistorder i32 %7, { 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %0, { 3, 2, 1, 4, 0, 5 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 2, 0, 1, 3, 4 }
uselistorder label LBL_9, { 0, 1, 2, 4, 3 }
uselistorder label LBL_8, { 1, 2, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | qed_commit_l2_update_1509 | qed_commit_l2_update | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = call i64 @FUNC(i64 %1, i64 %0)
store i64 %3, i64* %arg1, align 8
%4 = icmp eq i64 %1, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_1, i64 0, i64 0), i32 46, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%6 = and i64 %arg2, 4294967295
%7 = call i64 @FUNC(i64 %0, i64 %6)
ret i64 %7
} | 0 |
BinRealVul | process_blob_18134 | process_blob | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = trunc i64 %2 to i32
%6 = urem i32 %5, 4
%7 = zext i32 %6 to i64
%8 = icmp eq i32 %6, 0
%9 = icmp eq i1 %8, false
store i64 %7, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = ptrtoint i64* %arg4 to i64
%11 = ptrtoint i64* %arg3 to i64
%12 = ptrtoint i64* %arg2 to i64
%13 = or i32 %5, 2
%14 = bitcast i64* %arg2 to i32*
store i32 %13, i32* %14, align 4
%15 = call i64 @FUNC(i64 %arg5)
%16 = call i64 @FUNC(i64 %12, i64 %11, i64 %10, i64 %15)
store i64 %16, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %6, { 1, 0 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 1 |
BinRealVul | spr_write_decr_2012 | spr_write_decr | define i64 @FUNC(i32* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = urem i64 %3, 2
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC()
br label LBL_2
LBL_2:
%7 = sext i32 %arg3 to i64
%8 = mul i64 %7, 4
%9 = add i64 %8, ptrtoint (i32** @gv_0 to i64)
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = load i32, i32* @gv_1, align 4
%13 = zext i32 %11 to i64
%14 = zext i32 %12 to i64
%15 = call i64 @FUNC(i64 %14, i64 %13)
%16 = call i64 @FUNC(i64 %2)
%17 = urem i64 %16, 2
%18 = icmp eq i64 %17, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%19 = call i64 @FUNC()
%20 = ptrtoint i32* %arg1 to i64
%21 = call i64 @FUNC(i64 %20)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 1, 0 }
uselistorder i64 (i64)* @tb_cflags, { 1, 0 }
} | 0 |
BinRealVul | exynos_eint_wkup_init_7636 | exynos_eint_wkup_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.reg2mem47 = alloca i32
%sv_1.1.in16.reg2mem = alloca i64
%sv_2.117.reg2mem = alloca i32
%sv_0.118.reg2mem = alloca i32
%.reg2mem45 = alloca i32
%rdx.3.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%sv_3.0.reg2mem = alloca i32
%rdx.1.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%rcx.119.reg2mem = alloca i64
%storemerge20.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_3.123.reg2mem = alloca i32
%sv_1.0.in24.reg2mem = alloca i64
%sv_2.027.reg2mem = alloca i32
%rcx.328.reg2mem = alloca i64
%rdx.429.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
store i64 %3, i64* %storemerge2.reg2mem
br label LBL_2
LBL_1:
%4 = call i64 @FUNC(i64* nonnull @gv_0, i64 %storemerge2.reload)
%5 = icmp eq i64 %4, 0
store i64 0, i64* %storemerge2.reg2mem
br i1 %5, label LBL_2, label LBL_3
LBL_2:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
%6 = icmp eq i64 %storemerge2.reload, 0
%7 = icmp eq i1 %6, false
store i64 1, i64* %rax.0.reg2mem
br i1 %7, label LBL_1, label LBL_28
LBL_3:
%8 = inttoptr i64 %4 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %9, i64 0, i64 0)
%11 = add i64 %3, 16
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_28, label LBL_4
LBL_4:
%15 = add i64 %3, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
store i64 0, i64* %rdx.429.reg2mem
store i32 0, i32* %sv_2.027.reg2mem
store i64 %17, i64* %sv_1.0.in24.reg2mem
store i32 0, i32* %sv_3.123.reg2mem
br label LBL_5
LBL_5:
%sv_3.123.reload = load i32, i32* %sv_3.123.reg2mem
%sv_1.0.in24.reload = load i64, i64* %sv_1.0.in24.reg2mem
%sv_2.027.reload = load i32, i32* %sv_2.027.reg2mem
%rcx.328.reload = load i64, i64* %rcx.328.reg2mem
%rdx.429.reload = load i64, i64* %rdx.429.reg2mem
%sv_1.030 = inttoptr i64 %sv_1.0.in24.reload to i32*
%18 = load i32, i32* %sv_1.030, align 4
%19 = icmp eq i32 %18, 1
%20 = icmp eq i1 %19, false
store i32 %sv_3.123.reload, i32* %sv_3.0.reg2mem
store i64 %rcx.328.reload, i64* %rcx.2.reg2mem
store i64 %rdx.429.reload, i64* %rdx.3.reg2mem
br i1 %20, label LBL_17, label LBL_6
LBL_6:
%21 = add i64 %sv_1.0.in24.reload, 16
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = add i64 %sv_1.0.in24.reload, 8
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = call i64 @FUNC(i64 %26, i32 %23, i64* nonnull @gv_1, i64 %sv_1.0.in24.reload)
%28 = add i64 %sv_1.0.in24.reload, 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
br i1 %31, label LBL_8, label LBL_7
LBL_7:
%32 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_2, i64 0, i64 0), i64 %sv_1.0.in24.reload, i64 %sv_1.0.in24.reload, i64 %2, i64 %1)
store i64 2, i64* %rax.0.reg2mem
br label LBL_28
LBL_8:
%33 = add i64 %sv_1.0.in24.reload, 24
%34 = inttoptr i64 %33 to i64*
store i64 %10, i64* %34, align 8
%35 = load i64, i64* %25, align 8
%36 = call i64 @FUNC(i64 %35, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0), i64 0)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 0
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_10, label LBL_9
LBL_9:
store i32 2, i32* %sv_1.030, align 4
%40 = add i32 %sv_3.123.reload, 1
store i32 %40, i32* %sv_3.0.reg2mem
store i64 %sv_1.0.in24.reload, i64* %rcx.2.reg2mem
store i64 0, i64* %rdx.3.reg2mem
br label LBL_17
LBL_10:
%41 = load i32, i32* %22, align 4
%42 = sext i32 %41 to i64
%43 = mul i64 %42, 16
%44 = call i64 @FUNC(i64 %3, i64 %43, i64 0)
%45 = icmp eq i64 %44, 0
%46 = icmp eq i1 %45, false
store i64 3, i64* %rax.0.reg2mem
br i1 %46, label LBL_11, label LBL_28
LBL_11:
%47 = load i32, i32* %22, align 4
%48 = icmp eq i32 %47, 0
store i32 %sv_3.123.reload, i32* %sv_3.0.reg2mem
store i64 %43, i64* %rcx.2.reg2mem
store i64 0, i64* %rdx.3.reg2mem
br i1 %48, label LBL_17, label LBL_12
LBL_12:
%49 = add i64 %sv_1.0.in24.reload, 40
%50 = inttoptr i64 %49 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge20.reg2mem
store i64 %43, i64* %rcx.119.reg2mem
br label LBL_13
LBL_13:
%storemerge20.reload = load i32, i32* %storemerge20.reg2mem
%51 = load i64, i64* %25, align 8
%52 = zext i32 %storemerge20.reload to i64
%53 = call i64 @FUNC(i64 %51, i64 %52)
%54 = trunc i64 %53 to i32
%55 = icmp eq i32 %54, 0
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_15, label LBL_14
LBL_14:
%57 = load i64, i64* %50, align 8
%58 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_4, i64 0, i64 0), i64 %57, i64 %52, i64 %2, i64 %1)
store i64 %52, i64* %rcx.0.reg2mem
store i64 %57, i64* %rdx.1.reg2mem
br label LBL_16
LBL_15:
%rcx.119.reload = load i64, i64* %rcx.119.reg2mem
%.reload = load i64, i64* %.reg2mem
%59 = mul i64 %.reload, 16
%60 = add i64 %59, %44
%61 = inttoptr i64 %60 to i32*
store i32 %storemerge20.reload, i32* %61, align 4
%62 = add i64 %60, 8
%63 = inttoptr i64 %62 to i64*
store i64 %sv_1.0.in24.reload, i64* %63, align 8
%64 = and i64 %53, 4294967295
%65 = call i64 @FUNC(i64 %64, i64 4198869, i64 %60)
store i64 %rcx.119.reload, i64* %rcx.0.reg2mem
store i64 %60, i64* %rdx.1.reg2mem
br label LBL_16
LBL_16:
%rdx.1.reload = load i64, i64* %rdx.1.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%66 = add i32 %storemerge20.reload, 1
%67 = load i32, i32* %22, align 4
%68 = zext i32 %67 to i64
%69 = sext i32 %66 to i64
%70 = icmp slt i64 %69, %68
store i64 %69, i64* %.reg2mem
store i32 %66, i32* %storemerge20.reg2mem
store i64 %rcx.0.reload, i64* %rcx.119.reg2mem
store i32 %sv_3.123.reload, i32* %sv_3.0.reg2mem
store i64 %rcx.0.reload, i64* %rcx.2.reg2mem
store i64 %rdx.1.reload, i64* %rdx.3.reg2mem
br i1 %70, label LBL_13, label LBL_17
LBL_17:
%rdx.3.reload = load i64, i64* %rdx.3.reg2mem
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%71 = add nuw i32 %sv_2.027.reload, 1
%72 = add i64 %sv_1.0.in24.reload, 48
%73 = load i32, i32* %12, align 4
%74 = icmp ult i32 %71, %73
store i64 %rdx.3.reload, i64* %rdx.429.reg2mem
store i64 %rcx.2.reload, i64* %rcx.328.reg2mem
store i32 %71, i32* %sv_2.027.reg2mem
store i64 %72, i64* %sv_1.0.in24.reg2mem
store i32 %sv_3.0.reload, i32* %sv_3.123.reg2mem
br i1 %74, label LBL_5, label LBL_18
LBL_18:
%75 = icmp eq i32 %sv_3.0.reload, 0
%76 = icmp eq i1 %75, false
store i64 0, i64* %rax.0.reg2mem
br i1 %76, label LBL_19, label LBL_28
LBL_19:
%77 = call i64 @FUNC(i64 %storemerge2.reload, i64 0)
%78 = trunc i64 %77 to i32
%79 = icmp eq i32 %78, 0
%80 = icmp eq i1 %79, false
br i1 %80, label LBL_21, label LBL_20
LBL_20:
%81 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_5, i64 0, i64 0), i64 %rdx.3.reload, i64 %rcx.2.reload, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_28
LBL_21:
%82 = zext i32 %sv_3.0.reload to i64
%83 = mul i64 %82, 8
%84 = add nuw nsw i64 %83, 16
%85 = call i64 @FUNC(i64 %3, i64 %84, i64 0)
%86 = icmp eq i64 %85, 0
%87 = icmp eq i1 %86, false
store i64 3, i64* %rax.0.reg2mem
br i1 %87, label LBL_22, label LBL_28
LBL_22:
%88 = and i64 %77, 4294967295
%89 = call i64 @FUNC(i64 %88, i64 4198876, i64 %85)
%90 = load i32, i32* %12, align 4
%91 = icmp eq i32 %90, 0
br i1 %91, label LBL_27, label LBL_23
LBL_23:
%92 = load i64, i64* %16, align 8
%93 = inttoptr i64 %85 to i64*
store i32 %90, i32* %.reg2mem45
store i32 0, i32* %sv_0.118.reg2mem
store i32 0, i32* %sv_2.117.reg2mem
store i64 %92, i64* %sv_1.1.in16.reg2mem
br label LBL_24
LBL_24:
%sv_1.1.in16.reload = load i64, i64* %sv_1.1.in16.reg2mem
%sv_2.117.reload = load i32, i32* %sv_2.117.reg2mem
%sv_0.118.reload = load i32, i32* %sv_0.118.reg2mem
%.reload46 = load i32, i32* %.reg2mem45
%sv_1.1 = inttoptr i64 %sv_1.1.in16.reload to i32*
%94 = load i32, i32* %sv_1.1, align 4
%95 = icmp eq i32 %94, 2
%96 = icmp eq i1 %95, false
store i32 %.reload46, i32* %.reg2mem47
store i32 %sv_0.118.reload, i32* %sv_0.0.reg2mem
br i1 %96, label LBL_26, label LBL_25
LBL_25:
%97 = load i64, i64* %93, align 8
%98 = add i32 %sv_0.118.reload, 1
%99 = sext i32 %sv_0.118.reload to i64
%100 = mul i64 %99, 8
%101 = add i64 %97, %100
%102 = inttoptr i64 %101 to i64*
store i64 %sv_1.1.in16.reload, i64* %102, align 8
%.pre = load i32, i32* %12, align 4
store i32 %.pre, i32* %.reg2mem47
store i32 %98, i32* %sv_0.0.reg2mem
br label LBL_26
LBL_26:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.reload48 = load i32, i32* %.reg2mem47
%103 = add nuw i32 %sv_2.117.reload, 1
%104 = add i64 %sv_1.1.in16.reload, 48
%105 = icmp ult i32 %103, %.reload48
store i32 %.reload48, i32* %.reg2mem45
store i32 %sv_0.0.reload, i32* %sv_0.118.reg2mem
store i32 %103, i32* %sv_2.117.reg2mem
store i64 %104, i64* %sv_1.1.in16.reg2mem
br i1 %105, label LBL_24, label LBL_27
LBL_27:
%106 = add i64 %85, 8
%107 = inttoptr i64 %106 to i32*
store i32 %sv_3.0.reload, i32* %107, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_28
LBL_28:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload48, { 1, 0 }
uselistorder i32 %sv_0.118.reload, { 2, 1, 0 }
uselistorder i32 %sv_3.0.reload, { 1, 0, 2, 3 }
uselistorder i64 %43, { 1, 0, 2 }
uselistorder i32* %22, { 1, 0, 2, 3 }
uselistorder i32* %sv_1.030, { 1, 0 }
uselistorder i64 %sv_1.0.in24.reload, { 8, 1, 2, 0, 3, 10, 11, 4, 5, 6, 7, 9 }
uselistorder i32 %sv_3.123.reload, { 0, 1, 3, 2 }
uselistorder i32* %12, { 0, 1, 3, 2 }
uselistorder i64 %storemerge2.reload, { 2, 0, 1 }
uselistorder i64 %3, { 2, 1, 4, 5, 3, 7, 6, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %rdx.429.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.328.reg2mem, { 1, 0 }
uselistorder i32* %sv_2.027.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.in24.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.123.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge20.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.119.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdx.1.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem45, { 1, 0, 2 }
uselistorder i32* %sv_0.118.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.117.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.1.in16.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 4, 6, 5, 2, 8, 3, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @irq_set_chained_handler_and_data, { 1, 0 }
uselistorder i64 (i64, i64)* @irq_of_parse_and_map, { 1, 0 }
uselistorder i64 3, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @devm_kzalloc, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @dev_err, { 2, 1, 0 }
uselistorder i64 8, { 2, 0, 1, 3, 4, 5 }
uselistorder i32 0, { 0, 1, 6, 8, 11, 9, 2, 5, 10, 3, 4, 7 }
uselistorder i64 16, { 2, 0, 1, 3, 4 }
uselistorder i1 false, { 0, 1, 2, 8, 3, 4, 5, 6, 7, 9 }
uselistorder label LBL_28, { 5, 3, 6, 4, 1, 7, 2, 0 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_17, { 0, 1, 3, 2 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | print_bacp_config_options_11111 | print_bacp_config_options | define i64 @FUNC(i32* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = trunc i64 %arg3 to i32
%4 = icmp sgt i32 %3, 1
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %4, label LBL_1, label LBL_13
LBL_1:
%5 = ptrtoint i32* %arg2 to i64
%6 = add i64 %5, 1
%7 = inttoptr i64 %6 to i8*
%8 = load i8, i8* %7, align 1
%9 = zext i8 %8 to i32
%10 = icmp slt i32 %3, %9
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %10, label LBL_13, label LBL_2
LBL_2:
%11 = trunc i64 %2 to i32
%12 = urem i32 %11, 256
%13 = icmp ugt i8 %8, 1
%14 = bitcast i32* %arg1 to i8*
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%15 = call i32 (i8*, ...) @printf(i8* %14, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @gv_0, i64 0, i64 0), i32 ptrtoint (i32* @gv_1 to i32), i32 %12)
store i32 0, i32* %rax.0.shrunk.reg2mem
br label LBL_13
LBL_4:
%16 = trunc i64 %2 to i8
%17 = trunc i64 %1 to i32
%18 = call i32 (i8*, ...) @printf(i8* %14, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_2, i64 0, i64 0), i32 ptrtoint (i32* @gv_1 to i32), i32 %12)
%19 = icmp eq i8 %16, 1
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_8, label LBL_5
LBL_5:
%21 = icmp eq i8 %8, 6
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%22 = call i32 (i8*, ...) @printf(i8* %14)
store i32 %9, i32* %rax.0.shrunk.reg2mem
br label LBL_13
LBL_7:
%23 = icmp slt i32 %3, 4
br i1 %23, label LBL_12, label LBL_10
LBL_8:
%24 = icmp sgt i32 %17, 1
br i1 %24, label LBL_11, label LBL_9
LBL_9:
%25 = add nsw i32 %9, -2
%26 = add i64 %5, 2
%27 = ptrtoint i32* %arg1 to i64
%28 = zext i32 %25 to i64
%29 = call i64 @FUNC(i64 %27, i64 %26, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i64 %28)
store i32 %9, i32* %rax.0.shrunk.reg2mem
br label LBL_13
LBL_10:
%30 = call i32 (i8*, ...) @printf(i8* %14, i32 ptrtoint (i32* @gv_4 to i32))
%31 = icmp slt i32 %17, 2
store i32 6, i32* %rax.0.shrunk.reg2mem
br i1 %31, label LBL_13, label LBL_11
LBL_11:
%32 = add nsw i32 %9, -2
%33 = add i64 %5, 2
%34 = ptrtoint i32* %arg1 to i64
%35 = zext i32 %32 to i64
%36 = call i64 @FUNC(i64 %34, i64 %33, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i64 %35)
store i32 %9, i32* %rax.0.shrunk.reg2mem
br label LBL_13
LBL_12:
%37 = call i32 (i8*, ...) @printf(i8* %14)
store i32 0, i32* %rax.0.shrunk.reg2mem
br label LBL_13
LBL_13:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i8* %14, { 0, 2, 1, 4, 3 }
uselistorder i32 %9, { 1, 4, 0, 3, 2, 5 }
uselistorder i32 %3, { 1, 0, 2 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 8, 3, 2, 1, 7, 6, 4, 5 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64)* @print_unknown_data, { 1, 0 }
uselistorder i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), { 1, 0 }
uselistorder i32 -2, { 1, 0 }
uselistorder i32 (i8*, ...)* @printf, { 5, 1, 4, 3, 2, 0 }
uselistorder i32 0, { 3, 2, 0, 1 }
uselistorder i32* %arg1, { 1, 0, 2 }
uselistorder label LBL_13, { 5, 2, 1, 0, 6, 7, 3, 4 }
uselistorder label LBL_11, { 1, 0 }
} | 1 |
BinRealVul | _on_unsuback_5897 | _on_unsuback | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 16
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %1, i64 %arg3, i64 0, i64 %0, 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 %2)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_10
LBL_2:
%8 = inttoptr i64 %4 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_10, label LBL_3
LBL_3:
%11 = add i64 %1, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %9, %13
%15 = icmp eq i1 %14, false
store i64 %13, i64* %storemerge.reg2mem
br i1 %15, label LBL_7, label LBL_4
LBL_4:
%16 = inttoptr i64 %9 to i64*
%17 = load i64, i64* %16, align 8
store i64 %17, i64* %12, align 8
br label LBL_9
LBL_5:
%18 = icmp eq i64 %9, %24
%19 = icmp eq i1 %18, false
store i64 %24, i64* %storemerge.reg2mem
br i1 %19, label LBL_7, label LBL_6
LBL_6:
%20 = inttoptr i64 %24 to i64*
%21 = load i64, i64* %20, align 8
store i64 %21, i64* %23, align 8
br label LBL_9
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%22 = icmp eq i64 %storemerge.reload, 0
br i1 %22, label LBL_9, label LBL_8
LBL_8:
%23 = inttoptr i64 %storemerge.reload to i64*
%24 = load i64, i64* %23, align 8
%25 = icmp eq i64 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_5, label LBL_9
LBL_9:
%27 = add i64 %9, 8
%28 = inttoptr i64 %27 to i64*
store i64 0, i64* %28, align 8
%29 = add i64 %4, 8
%30 = call i64 @FUNC(i64 %29)
%31 = call i64 @FUNC(i64 %2)
store i64 %4, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %24, { 3, 2, 0, 1 }
uselistorder i64* %23, { 1, 0 }
uselistorder i64 %9, { 1, 0, 2, 3, 4 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64 (i64)* @mutex_unlock, { 2, 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3 }
uselistorder label LBL_10, { 1, 0, 2 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | cherokee_config_node_add_18460 | cherokee_config_node_add | define i64 @FUNC(i64 %arg1, i8* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i8*
%sv_3.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i8* %arg2 to i64
%sv_4 = alloca i64, align 8
store i64 0, i64* %sv_4, align 8
%2 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0))
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %arg1, i64 %0)
store i64 %5, i64* %rax.0.reg2mem
br label LBL_14
LBL_2:
%6 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0))
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %arg1, i64 %0)
br label LBL_4
LBL_4:
store i64 %arg1, i64* %sv_3.0.reg2mem
store i8* %arg2, i8** %sv_2.0.reg2mem
store i32 0, i32* %sv_1.0.reg2mem
br label LBL_5
LBL_5:
%sv_2.0.reload = load i8*, i8** %sv_2.0.reg2mem
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%10 = call i8* @strchr(i8* %sv_2.0.reload, i32 33)
%11 = ptrtoint i8* %10 to i64
%12 = icmp eq i8* %10, null
br i1 %12, label LBL_7, label LBL_6
LBL_6:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%13 = ptrtoint i8* %sv_2.0.reload to i64
%14 = sub i64 %11, %13
%15 = call i64 @FUNC(i64* nonnull %sv_4, i64 %13, i64 %14)
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
br label LBL_8
LBL_7:
%16 = call i32 @strlen(i8* %sv_2.0.reload)
%17 = sext i32 %16 to i64
%18 = ptrtoint i8* %sv_2.0.reload to i64
%19 = call i64 @FUNC(i64* nonnull %sv_4, i64 %18, i64 %17)
store i32 1, i32* %sv_1.1.reg2mem
br label LBL_8
LBL_8:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%20 = call i64 @FUNC(i64 %sv_3.0.reload, i64* nonnull %sv_4)
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
store i64 %20, i64* %sv_0.0.reg2mem
br i1 %22, label LBL_10, label LBL_9
LBL_9:
%23 = call i64 @FUNC(i64 %sv_3.0.reload, i64* nonnull %sv_4)
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
store i64 %23, i64* %sv_0.0.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %25, label LBL_10, label LBL_14
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%26 = trunc i32 %sv_1.1.reload to i8
%27 = icmp eq i8 %26, 0
br i1 %27, label LBL_12, label LBL_11
LBL_11:
%28 = call i64 @FUNC(i64 %sv_0.0.reload, i64 %0)
br label LBL_12
LBL_12:
%29 = add i64 %11, 1
%30 = inttoptr i64 %29 to i8*
%31 = call i64 @FUNC(i64* nonnull %sv_4)
%32 = icmp eq i8 %26, 1
%33 = icmp eq i1 %32, false
store i64 %sv_0.0.reload, i64* %sv_3.0.reg2mem
store i8* %30, i8** %sv_2.0.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.0.reg2mem
br i1 %33, label LBL_5, label LBL_13
LBL_13:
%34 = call i64 @FUNC(i64* nonnull %sv_4)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %sv_1.1.reload, { 1, 0 }
uselistorder i64 %sv_3.0.reload, { 1, 0 }
uselistorder i8* %sv_2.0.reload, { 1, 2, 3, 0 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i64* %sv_3.0.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_2.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64*, i64, i64)* @cherokee_buffer_add, { 1, 0 }
uselistorder i64 (i64, i64)* @do_include, { 1, 0 }
uselistorder i64 (i64, i8*)* @equal_str, { 1, 0 }
uselistorder i64 %arg1, { 0, 2, 1 }
uselistorder label LBL_14, { 1, 0, 2 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | smk_rule_show_4179 | smk_rule_show | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem11 = alloca i32
%.reg2mem9 = alloca i32
%.reg2mem7 = alloca i32
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sext = mul i64 %arg3, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = bitcast i64* %arg2 to i8*
%5 = call i32 @strlen(i8* %4)
%6 = sext i32 %5 to i64
%7 = icmp ugt i64 %3, %6
%8 = icmp eq i1 %7, false
store i64 %6, i64* %rax.0.reg2mem
br i1 %8, label LBL_14, label LBL_1
LBL_1:
%9 = ptrtoint i64* %arg2 to i64
%10 = add i64 %9, 256
%11 = inttoptr i64 %10 to i8*
%12 = call i32 @strlen(i8* %11)
%13 = sext i32 %12 to i64
%14 = icmp ugt i64 %3, %13
%15 = icmp eq i1 %14, false
store i64 %13, i64* %rax.0.reg2mem
br i1 %15, label LBL_14, label LBL_2
LBL_2:
%16 = add i64 %9, 512
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %18, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_14, label LBL_3
LBL_3:
%20 = ptrtoint i64* %arg1 to i64
%21 = call i64 @FUNC(i64 %20, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i64 %9, i64 %10, i64 %2, i64 %1)
%22 = call i64 @FUNC(i64 %20, i64 32)
%23 = load i32, i32* %17, align 4
%24 = urem i32 %23, 2
%25 = icmp eq i32 %24, 0
store i32 %23, i32* %.reg2mem
br i1 %25, label LBL_5, label LBL_4
LBL_4:
%26 = call i64 @FUNC(i64 %20, i64 114)
%.pre = load i32, i32* %17, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_5
LBL_5:
%.reload = load i32, i32* %.reg2mem
%27 = and i32 %.reload, 2
%28 = icmp eq i32 %27, 0
store i32 %.reload, i32* %.reg2mem7
br i1 %28, label LBL_7, label LBL_6
LBL_6:
%29 = call i64 @FUNC(i64 %20, i64 119)
%.pre4 = load i32, i32* %17, align 4
store i32 %.pre4, i32* %.reg2mem7
br label LBL_7
LBL_7:
%.reload8 = load i32, i32* %.reg2mem7
%30 = and i32 %.reload8, 4
%31 = icmp eq i32 %30, 0
store i32 %.reload8, i32* %.reg2mem9
br i1 %31, label LBL_9, label LBL_8
LBL_8:
%32 = call i64 @FUNC(i64 %20, i64 120)
%.pre5 = load i32, i32* %17, align 4
store i32 %.pre5, i32* %.reg2mem9
br label LBL_9
LBL_9:
%.reload10 = load i32, i32* %.reg2mem9
%33 = and i32 %.reload10, 8
%34 = icmp eq i32 %33, 0
store i32 %.reload10, i32* %.reg2mem11
br i1 %34, label LBL_11, label LBL_10
LBL_10:
%35 = call i64 @FUNC(i64 %20, i64 97)
%.pre6 = load i32, i32* %17, align 4
store i32 %.pre6, i32* %.reg2mem11
br label LBL_11
LBL_11:
%.reload12 = load i32, i32* %.reg2mem11
%36 = and i32 %.reload12, 16
%37 = icmp eq i32 %36, 0
br i1 %37, label LBL_13, label LBL_12
LBL_12:
%38 = call i64 @FUNC(i64 %20, i64 116)
br label LBL_13
LBL_13:
%39 = call i64 @FUNC(i64 %20, i64 10)
store i64 %39, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %20, { 5, 4, 3, 2, 1, 0, 7, 6 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem7, { 0, 2, 1 }
uselistorder i32* %.reg2mem9, { 0, 2, 1 }
uselistorder i32* %.reg2mem11, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 16, { 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 (i64, i64)* @seq_putc, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_14, { 3, 0, 2, 1 }
} | 0 |
BinRealVul | destroy_preds_17785 | destroy_preds | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rdi.0.reg2mem = alloca i64
%rdi.11.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
store i64 0, i64* %indvars.iv.reg2mem
store i64 %0, i64* %rdi.11.reg2mem
br label LBL_1
LBL_1:
%rdi.11.reload = load i64, i64* %rdi.11.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%1 = mul i64 %indvars.iv.reload, 8
%2 = add i64 %1, %rdi.11.reload
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
store i64 %rdi.11.reload, i64* %rdi.0.reg2mem
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %4)
store i64 %4, i64* %rdi.0.reg2mem
br label LBL_3
LBL_3:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %rdi.0.reload, i64* %rdi.11.reg2mem
br i1 %exitcond, label LBL_4, label LBL_1
LBL_4:
%7 = call i64 @FUNC(i64 %rdi.0.reload)
%8 = call i64 @FUNC(i64 %0)
store i64 0, i64* %arg1, align 8
ret i64 %0
uselistorder i64 %0, { 1, 2, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.11.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @kfree, { 1, 0 }
} | 1 |
BinRealVul | s390_ccw_cmd_request_1827 | s390_ccw_cmd_request | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
%2 = icmp eq i1 %1, false
%storemerge = select i1 %2, i64 %0, i64 0
ret i64 %storemerge
} | 0 |
BinRealVul | cvs_client_merged_18426 | cvs_client_merged | 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
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i32, align 4
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%6 = icmp eq i64 %arg1, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %4, i64 %5, i64 %2, i64 %1)
unreachable
LBL_2:
%9 = call i64 @FUNC(i64 %arg1)
%10 = call i64 @FUNC()
%11 = call i64 @FUNC()
%12 = call i64 @FUNC()
%13 = call i64 @FUNC()
%14 = call i64 @FUNC(i64 4096)
%15 = inttoptr i64 %14 to i8*
%16 = call i64 @FUNC(i64* nonnull @gv_1, i64 %14, i64 4096)
%17 = call i64 @FUNC(i64 %14)
%18 = call i32 @strlen(i8* %15)
%19 = sext i32 %18 to i64
%20 = add nsw i64 %19, 1
%21 = inttoptr i64 %10 to i8*
%22 = call i32 @strlen(i8* %21)
%23 = sext i32 %22 to i64
%24 = icmp ugt i64 %20, %23
br i1 %24, label LBL_3, label LBL_4
LBL_3:
%25 = call i64 @FUNC(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_2, i64 0, i64 0), i64 %14, i64 4096, i64 %5, i64 %2, i64 %1)
unreachable
LBL_4:
%26 = call i32 @strlen(i8* %15)
%27 = sext i32 %26 to i64
%28 = add nsw i64 %27, 1
%29 = add i64 %28, %10
%30 = inttoptr i64 %29 to i8*
%31 = call i8* @dirname(i8* %30)
%32 = icmp eq i8* %31, null
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_6, label LBL_5
LBL_5:
%34 = call i32* @__errno_location()
%35 = load i32, i32* %34, align 4
%36 = call i8* @strerror(i32 %35)
%37 = ptrtoint i8* %36 to i64
%38 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_3, i64 0, i64 0), i64 %37, i64 %28, i64 %5, i64 %2, i64 %1)
unreachable
LBL_6:
%39 = call i64 @FUNC(i64 %14)
%40 = ptrtoint i64* %sv_4 to i64
%41 = call i64 @FUNC(i64 %13, i64 0, i64 2147483647, i64* nonnull %sv_4)
%42 = load i64, i64* %sv_4, align 8
%43 = icmp eq i64 %42, 0
br i1 %43, label LBL_8, label LBL_7
LBL_7:
%44 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_4, i64 0, i64 0), i64 %13, i64 %42, i64 %40, i64 %2, i64 %1)
unreachable
LBL_8:
%45 = ptrtoint i64* %sv_5 to i64
%46 = call i64 @FUNC(i64 %13)
%47 = bitcast i32* %sv_3 to i64*
%48 = call i64 @FUNC(i64 %12, i64* nonnull %47)
%49 = call i64 @FUNC(i64 %12)
%50 = call i32 @umask(i32 0)
%51 = call i32 @umask(i32 %50)
%52 = sub i32 0, %50
%53 = sub i32 %52, 1
%54 = load i32, i32* %sv_3, align 4
%55 = and i32 %54, %53
store i32 %55, i32* %sv_3, align 4
%56 = bitcast i64* %sv_2 to i32*
%57 = call i32 @time(i32* nonnull %56)
%58 = call %tm* @gmtime(i32* nonnull %56)
%59 = bitcast i64* %sv_1 to i8*
%60 = call i8* @asctime_r(%tm* %58, i8* nonnull %59)
%61 = call i32 @strlen(i8* nonnull %59)
%62 = sext i32 %61 to i64
%63 = add i64 %45, -193
%64 = add i64 %63, %62
%65 = inttoptr i64 %64 to i8*
%66 = load i8, i8* %65, align 1
%67 = icmp eq i8 %66, 10
%68 = icmp eq i1 %67, false
br i1 %68, label LBL_10, label LBL_9
LBL_9:
%69 = call i32 @strlen(i8* nonnull %59)
%70 = sext i32 %69 to i64
%71 = add i64 %63, %70
%72 = inttoptr i64 %71 to i8*
store i8 0, i8* %72, align 1
br label LBL_10
LBL_10:
%73 = ptrtoint i8* %31 to i64
%74 = call i64 @FUNC(i64 %73)
%75 = call i64 @FUNC(i64 %74, i64 %11)
%76 = call i64 @FUNC(i64 %74, i64 0)
%77 = call i32 (i8*, i32, ...) @open(i8* %30, i32 577)
%78 = icmp eq i32 %77, -1
%79 = icmp eq i1 %78, false
br i1 %79, label LBL_12, label LBL_11
LBL_11:
%80 = call i32* @__errno_location()
%81 = load i32, i32* %80, align 4
%82 = call i8* @strerror(i32 %81)
%83 = ptrtoint i8* %82 to i64
%84 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_5, i64 0, i64 0), i64 %29, i64 %83, i64 %40, i64 %2, i64 %1)
unreachable
LBL_12:
%85 = zext i32 %77 to i64
%86 = call i64 @FUNC(i64 %85, i64 %41)
%87 = load i64, i64* %sv_2, align 8
store i64 %87, i64* %sv_0, align 8
%88 = ptrtoint i64* %sv_0 to i64
%89 = insertvalue %timeval undef, i64 %88, 0
%90 = insertvalue [2 x %timeval] undef, %timeval %89, 0
%91 = call i32 @futimes(i32 %77, [2 x %timeval] %90)
%92 = icmp eq i32 %91, -1
%93 = icmp eq i1 %92, false
br i1 %93, label LBL_14, label LBL_13
LBL_13:
%94 = call i32* @__errno_location()
%95 = load i32, i32* %94, align 4
%96 = call i8* @strerror(i32 %95)
%97 = ptrtoint i8* %96 to i64
%98 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_6, i64 0, i64 0), i64 %97, i64 %88, i64 %40, i64 %2, i64 %1)
unreachable
LBL_14:
%99 = load i32, i32* %sv_3, align 4
%100 = call i32 @fchmod(i32 %77, i32 %99)
%101 = icmp eq i32 %100, -1
%102 = icmp eq i1 %101, false
br i1 %102, label LBL_16, label LBL_15
LBL_15:
%103 = zext i32 %99 to i64
%104 = call i32* @__errno_location()
%105 = load i32, i32* %104, align 4
%106 = call i8* @strerror(i32 %105)
%107 = ptrtoint i8* %106 to i64
%108 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_7, i64 0, i64 0), i64 %107, i64 %103, i64 %40, i64 %2, i64 %1)
unreachable
LBL_16:
%109 = call i32 @close(i32 %77)
%110 = call i64 @FUNC(i64 %10)
ret i64 %110
uselistorder i32 %99, { 1, 0 }
uselistorder i64 %40, { 3, 2, 1, 0 }
uselistorder i8* %31, { 1, 0 }
uselistorder i64 %28, { 1, 0 }
uselistorder i64 %14, { 0, 1, 3, 4, 2 }
uselistorder i64 %13, { 1, 0, 2 }
uselistorder i64 %12, { 1, 0 }
uselistorder i64 %10, { 1, 0, 2 }
uselistorder i64* %sv_4, { 1, 0, 2 }
uselistorder i32* %sv_3, { 2, 1, 0, 3 }
uselistorder i64* %sv_2, { 1, 0 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64 %2, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder i32 (i32)* @umask, { 1, 0 }
uselistorder i64 (i64)* @xfree, { 3, 2, 1, 0 }
uselistorder i8* (i32)* @strerror, { 0, 1, 3, 2 }
uselistorder i32* ()* @__errno_location, { 3, 0, 1, 2 }
uselistorder i32 (i8*)* @strlen, { 4, 3, 2, 1, 0 }
uselistorder i64 ()* @cvs_remote_input, { 3, 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @fatal, { 7, 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | imap_quote_string_11239 | imap_quote_string | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%sv_0.1.lcssa.reg2mem = alloca i8*
%sv_0.1.in.lcssa.reg2mem = alloca i64
%sv_0.0.in.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_1.16.reg2mem = alloca i64
%sv_0.1.in7.reg2mem = alloca i64
%sv_2.08.reg2mem = alloca i64
%sv_0.19.reg2mem = alloca i8*
%.reg2mem20 = alloca i8*
%.reg2mem = alloca i8
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg4 to i8
%2 = icmp eq i8 %1, 1
%spec.select = select i1 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0)
%3 = add i64 %0, 1
%4 = bitcast i64* %arg1 to i8*
store i8 34, i8* %4, align 1
%5 = add i64 %arg2, -2
%sv_0.14 = inttoptr i64 %3 to i8*
%6 = inttoptr i64 %arg3 to i8*
%7 = load i8, i8* %6, align 1
%8 = icmp ne i8 %7, 0
%9 = icmp eq i64 %5, 0
%10 = icmp eq i1 %9, false
%or.cond5 = icmp eq i1 %10, %8
store i8 %7, i8* %.reg2mem
store i8* %6, i8** %.reg2mem20
store i8* %sv_0.14, i8** %sv_0.19.reg2mem
store i64 %arg3, i64* %sv_2.08.reg2mem
store i64 %3, i64* %sv_0.1.in7.reg2mem
store i64 %5, i64* %sv_1.16.reg2mem
store i64 %3, i64* %sv_0.1.in.lcssa.reg2mem
store i8* %sv_0.14, i8** %sv_0.1.lcssa.reg2mem
br i1 %or.cond5, label LBL_1, label LBL_6
LBL_1:
%sv_1.16.reload = load i64, i64* %sv_1.16.reg2mem
%sv_0.1.in7.reload = load i64, i64* %sv_0.1.in7.reg2mem
%sv_2.08.reload = load i64, i64* %sv_2.08.reg2mem
%sv_0.19.reload = load i8*, i8** %sv_0.19.reg2mem
%.reload21 = load i8*, i8** %.reg2mem20
%.reload = load i8, i8* %.reg2mem
%11 = sext i8 %.reload to i32
%12 = call i8* @strchr(i8* %spec.select, i32 %11)
%13 = icmp eq i8* %12, null
br i1 %13, label LBL_4, label LBL_2
LBL_2:
%14 = icmp ult i64 %sv_1.16.reload, 2
store i64 %sv_0.1.in7.reload, i64* %sv_0.1.in.lcssa.reg2mem
store i8* %sv_0.19.reload, i8** %sv_0.1.lcssa.reg2mem
br i1 %14, label LBL_6, label LBL_3
LBL_3:
%15 = add i64 %sv_1.16.reload, -2
%16 = add i64 %sv_0.1.in7.reload, 1
store i8 92, i8* %sv_0.19.reload, align 1
%17 = add i64 %sv_0.1.in7.reload, 2
%18 = load i8, i8* %.reload21, align 1
%19 = inttoptr i64 %16 to i8*
store i8 %18, i8* %19, align 1
store i64 %15, i64* %sv_1.0.reg2mem
store i64 %17, i64* %sv_0.0.in.reg2mem
br label LBL_5
LBL_4:
%20 = add i64 %sv_0.1.in7.reload, 1
%21 = load i8, i8* %.reload21, align 1
store i8 %21, i8* %sv_0.19.reload, align 1
%22 = add i64 %sv_1.16.reload, -1
store i64 %22, i64* %sv_1.0.reg2mem
store i64 %20, i64* %sv_0.0.in.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%23 = add i64 %sv_2.08.reload, 1
%sv_0.1 = inttoptr i64 %sv_0.0.in.reload to i8*
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = icmp ne i8 %25, 0
%27 = icmp eq i64 %sv_1.0.reload, 0
%28 = icmp eq i1 %27, false
%or.cond = icmp eq i1 %28, %26
store i8 %25, i8* %.reg2mem
store i8* %24, i8** %.reg2mem20
store i8* %sv_0.1, i8** %sv_0.19.reg2mem
store i64 %23, i64* %sv_2.08.reg2mem
store i64 %sv_0.0.in.reload, i64* %sv_0.1.in7.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.16.reg2mem
store i64 %sv_0.0.in.reload, i64* %sv_0.1.in.lcssa.reg2mem
store i8* %sv_0.1, i8** %sv_0.1.lcssa.reg2mem
br i1 %or.cond, label LBL_1, label LBL_6
LBL_6:
%sv_0.1.lcssa.reload = load i8*, i8** %sv_0.1.lcssa.reg2mem
%sv_0.1.in.lcssa.reload = load i64, i64* %sv_0.1.in.lcssa.reg2mem
%29 = add i64 %sv_0.1.in.lcssa.reload, 1
store i8 34, i8* %sv_0.1.lcssa.reload, align 1
%30 = inttoptr i64 %29 to i8*
store i8 0, i8* %30, align 1
ret i64 %29
uselistorder i64 %29, { 1, 0 }
uselistorder i64 %sv_1.0.reload, { 1, 0 }
uselistorder i64 %sv_0.0.in.reload, { 0, 2, 1 }
uselistorder i8* %.reload21, { 1, 0 }
uselistorder i8* %sv_0.19.reload, { 1, 2, 0 }
uselistorder i64 %sv_0.1.in7.reload, { 1, 3, 2, 0 }
uselistorder i64 %sv_1.16.reload, { 2, 1, 0 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i8** %.reg2mem20, { 2, 0, 1 }
uselistorder i8** %sv_0.19.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.08.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.1.in7.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.16.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.1.in.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i8** %sv_0.1.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 2, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i8 0, { 1, 2, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | hmp_memchar_write_16941 | hmp_memchar_write | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%2 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0))
%3 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
store i64 0, i64* %sv_0, align 8
%4 = inttoptr i64 %3 to i8*
%5 = call i32 @strlen(i8* %4)
%6 = call i64 @FUNC(i64 %2, i32 %5, i64 %3, i64 0, i64 0, i64* nonnull %sv_0)
%7 = call i64 @FUNC(i64 %1, i64* nonnull %sv_0)
ret i64 %7
uselistorder i64 (i64, i8*)* @qdict_get_str, { 1, 0 }
} | 1 |
BinRealVul | smart_socket_close_8143 | smart_socket_close | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 %2)
%4 = add i64 %arg1, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %6)
br label LBL_2
LBL_2:
%9 = add i64 %arg1, 16
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = add i64 %11, 16
%14 = inttoptr i64 %13 to i64*
store i64 0, i64* %14, align 8
store i64 0, i64* %10, align 8
br label LBL_4
LBL_4:
%15 = inttoptr i64 %arg1 to i64*
call void @free(i64* %15)
ret i64 ptrtoint (i32* @0 to i64)
uselistorder void (i64*)* @free, { 1, 0 }
} | 0 |
BinRealVul | xbzrle_decode_buffer_14758 | xbzrle_decode_buffer | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.08.reg2mem = alloca i32
%sv_1.09.reg2mem = alloca i32
%sv_2 = alloca i32, align 4
store i32 0, i32* %sv_2, align 4
%0 = trunc i64 %arg2 to i32
%1 = icmp sgt i32 %0, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_11
LBL_1:
%2 = ptrtoint i64* %arg3 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %arg4 to i32
store i32 0, i32* %sv_1.09.reg2mem
store i32 0, i32* %sv_0.08.reg2mem
br label LBL_2
LBL_2:
%sv_0.08.reload = load i32, i32* %sv_0.08.reg2mem
%5 = sub i32 %0, %sv_0.08.reload
%6 = icmp sgt i32 %5, 1
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %6, label LBL_3, label LBL_11
LBL_3:
%7 = sext i32 %sv_0.08.reload to i64
%8 = add i64 %7, %3
%9 = call i64 @FUNC(i64 %8, i32* nonnull %sv_2)
%10 = trunc i64 %9 to i32
%11 = icmp slt i32 %10, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %11, label LBL_11, label LBL_4
LBL_4:
%12 = icmp eq i32 %sv_0.08.reload, 0
%.pre = load i32, i32* %sv_2, align 4
%13 = icmp eq i32 %.pre, 0
%14 = icmp eq i1 %13, false
%or.cond11 = or i1 %12, %14
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond11, label LBL_5, label LBL_11
LBL_5:
%sv_1.09.reload = load i32, i32* %sv_1.09.reg2mem
%15 = add i32 %sv_0.08.reload, %10
%16 = add i32 %.pre, %sv_1.09.reload
%17 = icmp sle i32 %16, %4
%18 = sub i32 %0, %15
%19 = icmp sgt i32 %18, 1
%or.cond = icmp eq i1 %19, %17
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_6, label LBL_11
LBL_6:
%20 = sext i32 %15 to i64
%21 = add i64 %20, %3
%22 = call i64 @FUNC(i64 %21, i32* nonnull %sv_2)
%23 = trunc i64 %22 to i32
%24 = icmp slt i32 %23, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %24, label LBL_11, label LBL_7
LBL_7:
%25 = load i32, i32* %sv_2, align 4
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %27, label LBL_8, label LBL_11
LBL_8:
%28 = add i32 %15, %23
%29 = add i32 %25, %16
%30 = icmp ugt i32 %29, %4
%31 = add i32 %25, %28
%32 = icmp ugt i32 %31, %0
%or.cond6 = or i1 %30, %32
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond6, label LBL_11, label LBL_9
LBL_9:
%33 = sext i32 %28 to i64
%34 = add i64 %33, %3
%35 = sext i32 %16 to i64
%36 = add i64 %35, %2
%37 = inttoptr i64 %36 to i64*
%38 = inttoptr i64 %34 to i64*
%39 = call i64* @memcpy(i64* %37, i64* %38, i32 %25)
%40 = load i32, i32* %sv_2, align 4
%41 = add i32 %40, %16
%42 = add i32 %40, %28
%43 = icmp slt i32 %42, %0
store i32 %41, i32* %sv_1.09.reg2mem
store i32 %42, i32* %sv_0.08.reg2mem
br i1 %43, label LBL_2, label LBL_10
LBL_10:
%phitmp = zext i32 %41 to i64
store i64 %phitmp, 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 %41, { 1, 0 }
uselistorder i32 %28, { 0, 2, 1 }
uselistorder i32 %25, { 2, 0, 1, 3 }
uselistorder i32 %16, { 0, 2, 1, 3 }
uselistorder i32 %15, { 0, 2, 1 }
uselistorder i32 %sv_0.08.reload, { 3, 0, 2, 1 }
uselistorder i32 %0, { 4, 1, 2, 3, 0 }
uselistorder i32* %sv_2, { 3, 4, 1, 0, 2, 5 }
uselistorder i32* %sv_1.09.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.08.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 9, 3, 5, 4, 2, 1, 6, 7, 8 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i64 (i64, i32*)* @uleb128_decode_small, { 1, 0 }
uselistorder i32 0, { 7, 8, 4, 9, 10, 0, 1, 5, 6, 3, 2, 11 }
uselistorder label LBL_11, { 8, 2, 4, 3, 1, 0, 5, 6, 7 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | vnc_server_info_get_188 | vnc_server_info_get | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%sv_1 = alloca i64, align 8
store i64 0, i64* %sv_1, align 8
%3 = call i64 @FUNC(i64 16)
%4 = call i64 @FUNC(i64 %3)
%5 = and i64 %1, 4294967295
%6 = call i64 @FUNC(i64 %5, i64 %4, i64* nonnull %sv_1)
%7 = inttoptr i64 %3 to i32*
store i32 1, i32* %7, align 4
%8 = call i64 @FUNC(i64 %2)
%9 = call i64 @FUNC(i64 %8)
%10 = add i64 %3, 8
%11 = inttoptr i64 %10 to i64*
store i64 %9, i64* %11, align 8
%12 = load i64, i64* %sv_1, align 8
%13 = icmp eq i64 %12, 0
store i64 %3, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = call i64 @FUNC(i64 %3)
%15 = load i64, i64* %sv_1, align 8
%16 = call i64 @FUNC(i64 %15)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %3, { 1, 0, 2, 3, 4 }
uselistorder i64* %sv_1, { 1, 2, 0, 3 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.