dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | process_open_11789 | process_open | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%sv_0.06.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i32, i32* %1
%sv_2 = alloca i32, align 4
%sv_3 = alloca i32, align 4
%sv_4 = alloca i8*, align 8
%5 = load i64, i64* @gv_0, align 8
%6 = ptrtoint i8** %sv_4 to i64
%7 = bitcast i8** %sv_4 to i64*
%8 = call i64 @FUNC(i64 %5, i64* nonnull %7, i64 0)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 %8, i64* %sv_1.0.reg2mem
br i1 %11, label LBL_3, label LBL_1
LBL_1:
%12 = load i64, i64* @gv_0, align 8
%13 = bitcast i32* %sv_3 to i64*
%14 = call i64 @FUNC(i64 %12, i64* nonnull %13)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
store i64 %14, i64* %sv_1.0.reg2mem
br i1 %17, label LBL_3, label LBL_2
LBL_2:
%18 = load i64, i64* @gv_0, align 8
%19 = bitcast i32* %sv_2 to i64*
%20 = call i64 @FUNC(i64 %18, i64* nonnull %19)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
store i64 %20, i64* %sv_1.0.reg2mem
br i1 %22, label LBL_4, label LBL_3
LBL_3:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%23 = and i64 %sv_1.0.reload, 4294967295
%24 = call i64 @FUNC(i64 %23)
%25 = and i64 %24, 4294967295
%26 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0), i64 %25, i64 %6, i64 %3, i64 %2)
unreachable
LBL_4:
%27 = and i64 %arg1, 4294967295
%28 = load i32, i32* %sv_3, align 4
%29 = zext i32 %28 to i64
%30 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0), i64 %27, i64 %29, i64 %6, i64 %3, i64 %2)
%31 = load i32, i32* %sv_3, align 4
%32 = zext i32 %31 to i64
%33 = call i64 @FUNC(i64 %32)
%34 = trunc i64 %33 to i32
%35 = load i32, i32* %sv_2, align 4
%36 = and i32 %35, 4
%37 = icmp eq i32 %36, 0
%narrow = select i1 %37, i32 438, i32 %4
%storemerge = zext i32 %narrow to i64
%38 = load i32, i32* %sv_3, align 4
%39 = zext i32 %38 to i64
%40 = call i64 @FUNC(i64 %39)
%41 = load i8*, i8** %sv_4, align 8
%42 = ptrtoint i8* %41 to i64
%43 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_4, i64 0, i64 0), i64 %42, i64 %40, i64 %storemerge, i64 %3, i64 %2)
%44 = load i32, i32* @gv_5, align 4
%45 = icmp eq i32 %44, 0
br i1 %45, label LBL_7, label LBL_5
LBL_5:
%46 = urem i32 %34, 4
%47 = icmp ne i32 %46, 1
%48 = icmp eq i32 %46, 2
%49 = icmp eq i1 %48, false
%or.cond = icmp eq i1 %47, %49
br i1 %or.cond, label LBL_7, label LBL_6
LBL_6:
%50 = call i64 @FUNC(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_6, i64 0, i64 0), i64 %42, i64 %40, i64 %storemerge, i64 %3, i64 %2)
store i64 2, i64* %sv_0.06.reg2mem
br label LBL_12
LBL_7:
%51 = load i8*, i8** %sv_4, align 8
%52 = call i32 (i8*, i32, ...) @open(i8* %51, i32 %34)
%53 = icmp slt i32 %52, 0
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_8, label LBL_11
LBL_8:
%55 = load i8*, i8** %sv_4, align 8
%56 = ptrtoint i8* %55 to i64
%57 = call i64 @FUNC(i64 3, i64 %56, i32 %52, i32 %34, i64 0)
%58 = trunc i64 %57 to i32
%59 = icmp slt i32 %58, 0
%60 = icmp eq i1 %59, false
br i1 %60, label LBL_10, label LBL_9
LBL_9:
%61 = call i32 @close(i32 %52)
store i64 1, i64* %sv_0.06.reg2mem
br label LBL_12
LBL_10:
%62 = and i64 %57, 4294967295
%63 = call i64 @FUNC(i64 %27, i64 %62)
br label LBL_13
LBL_11:
%64 = call i32* @__errno_location()
%65 = load i32, i32* %64, align 4
%66 = zext i32 %65 to i64
%67 = call i64 @FUNC(i64 %66)
%68 = trunc i64 %67 to i32
%69 = icmp eq i32 %68, 0
store i64 %67, i64* %sv_0.06.reg2mem
br i1 %69, label LBL_13, label LBL_12
LBL_12:
%sv_0.06.reload = load i64, i64* %sv_0.06.reg2mem
%70 = and i64 %sv_0.06.reload, 4294967295
%71 = call i64 @FUNC(i64 %27, i64 %70)
br label LBL_13
LBL_13:
%72 = load i8*, i8** %sv_4, align 8
%73 = bitcast i8* %72 to i64*
call void @free(i64* %73)
ret i64 ptrtoint (i32* @0 to i64)
uselistorder i32 %46, { 1, 0 }
uselistorder i64 %storemerge, { 1, 0 }
uselistorder i32 %34, { 1, 2, 0 }
uselistorder i8** %sv_4, { 4, 3, 2, 1, 5, 0 }
uselistorder i32* %sv_3, { 2, 1, 0, 3 }
uselistorder i64 %3, { 2, 0, 1, 3 }
uselistorder i64 %2, { 2, 0, 1, 3 }
uselistorder i64* %sv_0.06.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 4294967295, { 0, 2, 1, 4, 3, 5, 6 }
uselistorder i1 false, { 1, 2, 0, 3, 4 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 8, 0 }
uselistorder i32 1, { 14, 16, 17, 18, 13, 12, 11, 10, 9, 8, 7, 3, 6, 2, 5, 1, 15, 19, 4, 0 }
uselistorder label LBL_13, { 1, 2, 0 }
uselistorder label LBL_12, { 2, 1, 0 }
} | 1 |
BinRealVul | httpParseRequestLine_11234 | httpParseRequestLine | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_17
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4, i64 %1, i64 8)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_17
LBL_2:
%8 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0)
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %10, label LBL_3, label LBL_17
LBL_3:
%11 = inttoptr i64 %8 to i8*
%12 = call i8* @strchr(i8* %11, i32 63)
%13 = icmp eq i8* %12, null
br i1 %13, label LBL_7, label LBL_4
LBL_4:
store i8 0, i8* %12, align 1
%14 = add i64 %4, 8
%15 = call i64 @FUNC(i64 %8, i64 %14, i64 256)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %17, label LBL_5, label LBL_17
LBL_5:
%18 = ptrtoint i8* %12 to i64
%19 = add i64 %18, 1
%20 = call i64 @FUNC(i64 %19)
%21 = icmp ult i64 %20, 257
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %21, label LBL_6, label LBL_17
LBL_6:
%22 = add i64 %4, 264
%23 = call i64 @FUNC(i64 %22, i64 %19)
store i64 %14, i64* %.pre-phi.reg2mem
br label LBL_9
LBL_7:
%24 = add i64 %4, 8
%25 = call i64 @FUNC(i64 %8, i64 %24, i64 256)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %27, label LBL_8, label LBL_17
LBL_8:
%28 = add i64 %4, 264
%29 = inttoptr i64 %28 to i8*
store i8 0, i8* %29, align 1
store i64 %24, i64* %.pre-phi.reg2mem
br label LBL_9
LBL_9:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%30 = call i64 @FUNC(i64 %.pre-phi.reload, i64* nonnull @gv_1)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_11, label LBL_10
LBL_10:
%34 = add i64 %4, 528
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = call i64 @FUNC(i64 %.pre-phi.reload, i64 %38)
br label LBL_11
LBL_11:
%40 = call i64 @FUNC(i64 %.pre-phi.reload)
%41 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %sv_0)
%42 = icmp eq i64 %41, 0
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_13, label LBL_12
LBL_12:
%44 = add i64 %4, 520
%45 = inttoptr i64 %44 to i32*
store i32 0, i32* %45, align 4
%46 = add i64 %4, 524
%47 = inttoptr i64 %46 to i32*
store i32 0, i32* %47, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_13:
%48 = call i64 @FUNC(i64 %41, i64* bitcast ([9 x i8]* @gv_2 to i64*))
%49 = trunc i64 %48 to i32
%50 = icmp eq i32 %49, 0
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_15, label LBL_14
LBL_14:
%52 = add i64 %4, 520
%53 = inttoptr i64 %52 to i32*
store i32 1, i32* %53, align 4
%54 = add i64 %4, 524
%55 = inttoptr i64 %54 to i32*
store i32 0, i32* %55, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_15:
%56 = call i64 @FUNC(i64 %41, i64* bitcast ([9 x i8]* @gv_3 to i64*))
%57 = trunc i64 %56 to i32
%58 = icmp eq i32 %57, 0
%59 = icmp eq i1 %58, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %59, label LBL_17, label LBL_16
LBL_16:
%60 = add i64 %4, 520
%61 = inttoptr i64 %60 to i32*
store i32 2, i32* %61, align 4
%62 = add i64 %4, 524
%63 = inttoptr i64 %62 to i32*
store i32 1, i32* %63, align 4
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 %.pre-phi.reload, { 1, 0, 2 }
uselistorder i64 %4, { 7, 8, 5, 6, 3, 4, 2, 9, 10, 0, 1, 11 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1, 5, 6, 7, 8, 9, 10 }
uselistorder i64 (i64, i64*)* @osStrcasecmp, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @osStrcpy, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @httpDecodePercentEncodedString, { 1, 0 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder i64 (i64, i8*, i64*)* @osStrtok_r, { 2, 1, 0 }
uselistorder label LBL_17, { 2, 3, 1, 0, 4, 5, 6, 7, 8, 9 }
} | 1 |
BinRealVul | ff_dxva2_commit_buffer_17383 | ff_dxva2_commit_buffer | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3, i64 %arg4, i64 %arg5, i64 %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.3.reg2mem = alloca i32
%sv_1.2.reg2mem = alloca i32
%storemerge9.reg2mem = alloca i64
%rsi.1.reg2mem = alloca i64
%.reg2mem11 = alloca i32
%rsi.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%sv_2 = alloca i32, align 4
%sv_3 = alloca i64, align 8
%sext7 = mul i64 %arg4, 4294967296
%3 = ashr exact i64 %sext7, 32
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 1
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = trunc i64 %3 to i32
%11 = bitcast i32* %sv_2 to i64*
%12 = call i64 @FUNC(i64 %9, i64 %9, i32 %10, i64* nonnull %11, i64* nonnull %sv_3)
%13 = trunc i64 %12 to i32
store i32 %13, i32* %sv_1.0.reg2mem
br label LBL_2
LBL_2:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%14 = icmp eq i32 %4, 2
%15 = icmp eq i1 %14, false
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = add i64 %2, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = trunc i64 %3 to i32
%20 = bitcast i32* %sv_2 to i64*
%21 = call i64 @FUNC(i64 %18, i32 %19, i64* nonnull %sv_3, i64* nonnull %20)
%22 = trunc i64 %21 to i32
store i32 %22, i32* %sv_1.1.reg2mem
br label LBL_4
LBL_4:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%23 = icmp slt i32 %sv_1.1.reload, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%25 = trunc i64 %3 to i32
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i32 %25, i32 %sv_1.1.reload)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_19
LBL_6:
%27 = load i32, i32* %sv_2, align 4
%28 = trunc i64 %arg6 to i32
%29 = icmp ult i32 %27, %28
br i1 %29, label LBL_11, label LBL_7
LBL_7:
%30 = ptrtoint i64* %arg3 to i64
%sext = mul i64 %arg7, 4294967296
%31 = ashr exact i64 %sext, 32
%32 = bitcast i64* %rdi to i32*
%33 = load i64, i64* %sv_3, align 8
%34 = inttoptr i64 %33 to i64*
%35 = inttoptr i64 %arg5 to i64*
%36 = call i64* @memcpy(i64* %34, i64* %35, i32 %28)
store i32 %4, i32* %.reg2mem
store i64 %arg5, i64* %rsi.0.reg2mem
br i1 %6, label LBL_9, label LBL_8
LBL_8:
%37 = call i64* @memset(i64* %arg3, i32 0, i32 12)
%38 = trunc i64 %3 to i32
%39 = bitcast i64* %arg3 to i32*
store i32 %38, i32* %39, align 4
%40 = add i64 %30, 4
%41 = inttoptr i64 %40 to i32*
store i32 %28, i32* %41, align 4
%42 = trunc i64 %31 to i32
%43 = add i64 %30, 8
%44 = inttoptr i64 %43 to i32*
store i32 %42, i32* %44, align 4
%.pre = load i32, i32* %32, align 8
store i32 %.pre, i32* %.reg2mem
store i64 0, i64* %rsi.0.reg2mem
br label LBL_9
LBL_9:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%.reload = load i32, i32* %.reg2mem
%45 = icmp eq i32 %.reload, 2
%46 = icmp eq i1 %45, false
store i32 %.reload, i32* %.reg2mem11
store i64 %rsi.0.reload, i64* %rsi.1.reg2mem
store i64 0, i64* %storemerge9.reg2mem
br i1 %46, label LBL_12, label LBL_10
LBL_10:
%47 = call i64* @memset(i64* %arg3, i32 0, i32 12)
%48 = trunc i64 %3 to i32
%49 = bitcast i64* %arg3 to i32*
store i32 %48, i32* %49, align 4
%50 = add i64 %30, 4
%51 = inttoptr i64 %50 to i32*
store i32 %28, i32* %51, align 4
%52 = trunc i64 %31 to i32
%53 = add i64 %30, 8
%54 = inttoptr i64 %53 to i32*
store i32 %52, i32* %54, align 4
%.pre10 = load i32, i32* %32, align 8
store i32 %.pre10, i32* %.reg2mem11
store i64 0, i64* %rsi.1.reg2mem
store i64 0, i64* %storemerge9.reg2mem
br label LBL_12
LBL_11:
%55 = and i64 %3, 4294967295
%56 = trunc i64 %3 to i32
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), i32 %56)
store i32 %4, i32* %.reg2mem11
store i64 %55, i64* %rsi.1.reg2mem
store i64 4294967295, i64* %storemerge9.reg2mem
br label LBL_12
LBL_12:
%storemerge9.reload = load i64, i64* %storemerge9.reg2mem
%.reload12 = load i32, i32* %.reg2mem11
%58 = icmp eq i32 %.reload12, 1
%59 = icmp eq i1 %58, false
store i32 %sv_1.1.reload, i32* %sv_1.2.reg2mem
br i1 %59, label LBL_14, label LBL_13
LBL_13:
%rsi.1.reload = load i64, i64* %rsi.1.reg2mem
%60 = add i64 %2, 8
%61 = inttoptr i64 %60 to i64*
%62 = load i64, i64* %61, align 8
%63 = trunc i64 %3 to i32
%64 = call i64 @FUNC(i64 %rsi.1.reload, i64 %62, i32 %63)
%65 = trunc i64 %64 to i32
store i32 %65, i32* %sv_1.2.reg2mem
br label LBL_14
LBL_14:
%sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem
%66 = icmp eq i32 %.reload12, 2
%67 = icmp eq i1 %66, false
store i32 %sv_1.2.reload, i32* %sv_1.3.reg2mem
br i1 %67, label LBL_16, label LBL_15
LBL_15:
%68 = add i64 %2, 8
%69 = inttoptr i64 %68 to i64*
%70 = load i64, i64* %69, align 8
%71 = and i64 %3, 4294967295
%72 = call i64 @FUNC(i64 %70, i64 %71)
%73 = trunc i64 %72 to i32
store i32 %73, i32* %sv_1.3.reg2mem
br label LBL_16
LBL_16:
%sv_1.3.reload = load i32, i32* %sv_1.3.reg2mem
%74 = icmp slt i32 %sv_1.3.reload, 0
%75 = icmp eq i1 %74, false
store i64 %storemerge9.reload, i64* %sv_0.0.reg2mem
br i1 %75, label LBL_18, label LBL_17
LBL_17:
%76 = trunc i64 %3 to i32
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_2, i64 0, i64 0), i32 %76, i32 %sv_1.3.reload)
store i64 4294967295, i64* %sv_0.0.reg2mem
br label LBL_18
LBL_18:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%78 = and i64 %sv_0.0.reload, 4294967295
store i64 %78, i64* %storemerge.reg2mem
br label LBL_19
LBL_19:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %31, { 1, 0 }
uselistorder i64 %30, { 3, 2, 1, 0 }
uselistorder i32 %28, { 1, 0, 2, 3 }
uselistorder i64 %9, { 1, 0 }
uselistorder i64 %3, { 7, 6, 5, 9, 8, 4, 3, 2, 1, 0 }
uselistorder i64* %sv_3, { 2, 0, 1 }
uselistorder i32* %sv_2, { 0, 2, 1 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i32* %.reg2mem11, { 0, 3, 1, 2 }
uselistorder i64* %rsi.1.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %storemerge9.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i32 0, { 0, 2, 3, 1 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 4294967296, { 1, 0 }
uselistorder label LBL_12, { 2, 1, 0 }
} | 1 |
BinRealVul | bdrv_op_block_15174 | bdrv_op_block | define i64 @FUNC(i64* %arg1, i64 %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg2 to i32
%1 = icmp ult i32 %0, 2
br i1 %1, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_1, i64 0, i64 0), i32 40, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 24)
%4 = ptrtoint i32* %arg3 to i64
%5 = add i64 %3, 8
%6 = inttoptr i64 %5 to i64*
store i64 %4, i64* %6, align 8
%7 = mul i64 %arg2, 8
%8 = and i64 %7, 34359738360
%9 = add i64 %8, %2
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = add i64 %3, 16
%13 = inttoptr i64 %12 to i64*
store i64 %11, i64* %13, align 8
store i64 %3, i64* %10, align 8
ret i64 %2
uselistorder i64 %2, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | memory_map_init_1833 | memory_map_init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 0)
store i64 %0, i64* @gv_0, align 8
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i64 9223372036854775807)
%2 = load i64, i64* @gv_0, align 8
%3 = call i64 @FUNC(i64 %2)
ret i64 %3
} | 0 |
BinRealVul | tlb_flush_by_mmuidx_async_work_16033 | tlb_flush_by_mmuidx_async_work | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 %arg2, i64* %sv_0, align 8
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC()
%8 = call i64 @FUNC(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %arg2, i64 %3, i64 %4, i64 %2, i64 %1)
%9 = ptrtoint i64* %sv_0 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%10 = call i64 @FUNC(i64 %indvars.iv.reload, i64* nonnull %sv_0)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i64 %indvars.iv.reload, i64 %9, i64 %4, i64 %2, i64 %1)
%14 = mul i64 %indvars.iv.reload, 8
%15 = add i64 %14, %5
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = inttoptr i64 %17 to i64*
%19 = call i64* @memset(i64* %18, i32 -1, i32 8)
%20 = add i64 %15, 128
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = inttoptr i64 %22 to i64*
%24 = call i64* @memset(i64* %23, i32 -1, i32 8)
br label LBL_3
LBL_3:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 16
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_4, label LBL_1
LBL_4:
%25 = add i64 %5, 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = inttoptr i64 %27 to i64*
%29 = call i64* @memset(i64* %28, i32 0, i32 8)
%30 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0), i64 0, i64 8, i64 %4, i64 %2, i64 %1)
%31 = call i64 @FUNC()
ret i64 %31
uselistorder i64 %indvars.iv.reload, { 0, 3, 1, 2 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64 %4, { 2, 1, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64* (i64*, i32, i32)* @memset, { 0, 2, 1 }
uselistorder i32 8, { 2, 0, 1 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @tlb_debug, { 1, 2, 0 }
} | 1 |
BinRealVul | ipmi_si_mem_setup_5320 | ipmi_si_mem_setup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i32
%storemerge5.reg2mem = alloca i32
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 4294967277, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_18
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = icmp eq i32 %5, 8
br i1 %6, label LBL_9, label LBL_2
LBL_2:
%7 = icmp sgt i32 %5, 8
br i1 %7, label LBL_10, label LBL_3
LBL_3:
%8 = icmp eq i32 %5, 4
br i1 %8, label LBL_8, label LBL_4
LBL_4:
%9 = icmp sgt i32 %5, 4
br i1 %9, label LBL_10, label LBL_5
LBL_5:
switch i32 %5, label LBL_10 [
i32 1, label LBL_6
i32 2, label LBL_7
]
LBL_6:
%10 = add i64 %2, 32
%11 = inttoptr i64 %10 to i64*
store i64 4198755, i64* %11, align 8
%12 = add i64 %2, 40
%13 = inttoptr i64 %12 to i64*
store i64 4198762, i64* %13, align 8
br label LBL_11
LBL_7:
%14 = add i64 %2, 32
%15 = inttoptr i64 %14 to i64*
store i64 4198769, i64* %15, align 8
%16 = add i64 %2, 40
%17 = inttoptr i64 %16 to i64*
store i64 4198776, i64* %17, align 8
br label LBL_11
LBL_8:
%18 = add i64 %2, 32
%19 = inttoptr i64 %18 to i64*
store i64 4198783, i64* %19, align 8
%20 = add i64 %2, 40
%21 = inttoptr i64 %20 to i64*
store i64 4198790, i64* %21, align 8
br label LBL_11
LBL_9:
%22 = add i64 %2, 32
%23 = inttoptr i64 %22 to i64*
store i64 4198797, i64* %23, align 8
%24 = add i64 %2, 40
%25 = inttoptr i64 %24 to i64*
store i64 4198804, i64* %25, align 8
br label LBL_11
LBL_10:
%26 = add i64 %2, 56
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = call i64 @FUNC(i64 %28, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i32 %5)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_18
LBL_11:
%30 = add i64 %2, 12
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = icmp eq i32 %32, 0
%.pre = add i64 %2, 16
%.pre9 = inttoptr i64 %.pre to i32*
store i32 0, i32* %storemerge5.reg2mem
store i32 0, i32* %.lcssa.reg2mem
br i1 %33, label LBL_15, label LBL_12
LBL_12:
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%34 = load i32, i32* %4, align 4
%35 = load i32, i32* %.pre9, align 4
%36 = mul i32 %35, %storemerge5.reload
%37 = sext i32 %36 to i64
%38 = add i64 %37, %2
%39 = zext i32 %34 to i64
%40 = call i64 @FUNC(i64 %38, i64 %39, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_14, label LBL_13
LBL_13:
%43 = zext i32 %storemerge5.reload to i64
%44 = call i64 @FUNC(i64 %2, i64 %43)
store i64 4294967291, i64* %rax.0.reg2mem
br label LBL_18
LBL_14:
%45 = add i32 %storemerge5.reload, 1
%46 = load i32, i32* %31, align 4
%47 = zext i32 %46 to i64
%48 = sext i32 %45 to i64
%49 = icmp slt i64 %48, %47
store i32 %45, i32* %storemerge5.reg2mem
store i32 %46, i32* %.lcssa.reg2mem
br i1 %49, label LBL_12, label LBL_15
LBL_15:
%.lcssa.reload = load i32, i32* %.lcssa.reg2mem
%50 = load i32, i32* %.pre9, align 4
%51 = mul i32 %50, %.lcssa.reload
%52 = load i32, i32* %4, align 4
%53 = sub i32 %52, %50
%54 = add i32 %53, %51
%55 = zext i32 %54 to i64
%56 = call i64 @FUNC(i64 %2, i64 %55)
%57 = add i64 %2, 24
%58 = inttoptr i64 %57 to i64*
store i64 %56, i64* %58, align 8
%59 = icmp eq i64 %56, 0
%60 = icmp eq i1 %59, false
br i1 %60, label LBL_17, label LBL_16
LBL_16:
%61 = load i32, i32* %31, align 4
%62 = zext i32 %61 to i64
%63 = call i64 @FUNC(i64 %2, i64 %62)
store i64 4294967291, i64* %rax.0.reg2mem
br label LBL_18
LBL_17:
%64 = add i64 %2, 48
%65 = inttoptr i64 %64 to i64*
store i64 4198748, i64* %65, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %storemerge5.reload, { 0, 2, 1 }
uselistorder i32* %31, { 0, 2, 1 }
uselistorder i64 %2, { 10, 9, 11, 12, 13, 0, 1, 14, 8, 15, 16, 6, 7, 2, 3, 4, 5, 17 }
uselistorder i32* %storemerge5.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 5, 2, 1 }
uselistorder i32 4, { 1, 0 }
uselistorder i32 8, { 1, 0 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_18, { 1, 3, 2, 4, 0 }
uselistorder label LBL_12, { 1, 0 }
} | 0 |
BinRealVul | lm32_juart_set_jtx_3073 | lm32_juart_set_jtx | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = trunc i64 %arg2 to i32
%2 = call i64 @FUNC(i64 %0)
%sext = mul i64 %arg2, 72057594037927936
%3 = ashr exact i64 %sext, 56
store i64 %3, i64* %sv_0, align 8
%4 = inttoptr i64 %2 to i32*
%5 = load i32, i32* %4, align 4
%6 = zext i32 %5 to i64
%7 = call i64 @FUNC(i64 %6)
store i32 %1, i32* %4, align 4
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = bitcast i64* %sv_0 to i8*
%13 = call i64 @FUNC(i64 %10, i8* nonnull %12, i64 1)
store i64 %13, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64 0, { 0, 8, 1, 2, 3, 4, 5, 6, 7 }
uselistorder i32 1, { 2, 1, 3, 0 }
} | 0 |
BinRealVul | rsvg_new_image_17627 | rsvg_new_image | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64* @malloc(i32 64)
%1 = ptrtoint i64* %0 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = bitcast i64* %0 to i32*
%4 = load i32, i32* %3, align 4
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i32 47, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%7 = add i64 %1, 32
%8 = inttoptr i64 %7 to i64*
store i64 0, i64* %8, align 8
%9 = add i64 %1, 40
%10 = inttoptr i64 %9 to i32*
store i32 0, i32* %10, align 4
%11 = call i128 @FUNC(i64* nonnull @gv_3)
%12 = call i32 @FUNC(i128 %11)
%13 = add i64 %1, 56
%14 = inttoptr i64 %13 to i32*
store i32 %12, i32* %14, align 4
%15 = call i128 @FUNC(i32 %12)
%16 = call i64 @__asm_movss.1(i128 %15)
%17 = add i64 %1, 52
%18 = trunc i64 %16 to i32
%19 = inttoptr i64 %17 to i32*
store i32 %18, i32* %19, align 4
%20 = call i128 @FUNC(i32 %18)
%21 = call i64 @__asm_movss.1(i128 %20)
%22 = add i64 %1, 48
%23 = trunc i64 %21 to i32
%24 = inttoptr i64 %22 to i32*
store i32 %23, i32* %24, align 4
%25 = call i128 @FUNC(i32 %23)
%26 = call i64 @__asm_movss.1(i128 %25)
%27 = add i64 %1, 44
%28 = trunc i64 %26 to i32
%29 = inttoptr i64 %27 to i32*
store i32 %28, i32* %29, align 4
%30 = add i64 %1, 8
%31 = inttoptr i64 %30 to i64*
store i64 4198763, i64* %31, align 8
%32 = add i64 %1, 16
%33 = inttoptr i64 %32 to i64*
store i64 4198770, i64* %33, align 8
%34 = add i64 %1, 24
%35 = inttoptr i64 %34 to i64*
store i64 4198777, i64* %35, align 8
ret i64 %1
} | 1 |
BinRealVul | r_socket_accept_timeout_10973 | r_socket_accept_timeout | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge7.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv12.reg2mem = alloca i64
%rdi = alloca i64, align 8
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%0 = ptrtoint i64* %sv_2 to i64
store i64 0, i64* %indvars.iv12.reg2mem
br label LBL_1
LBL_1:
%indvars.iv12.reload = load i64, i64* %indvars.iv12.reg2mem
%1 = mul i64 %indvars.iv12.reload, 8
%2 = add i64 %1, %0
%3 = inttoptr i64 %2 to i64*
store i64 0, i64* %3, align 8
%indvars.iv.next13 = add nuw nsw i64 %indvars.iv12.reload, 1
%exitcond14 = icmp eq i64 %indvars.iv.next13, 16
store i64 %indvars.iv.next13, i64* %indvars.iv12.reg2mem
br i1 %exitcond14, label LBL_2, label LBL_1
LBL_2:
%4 = ptrtoint i64* %sv_3 to i64
%5 = bitcast i64* %rdi to i32*
%6 = load i32, i32* %5, align 8
%7 = add i32 %6, 63
%8 = icmp slt i32 %6, 0
%9 = select i1 %8, i32 %7, i32 %6
%10 = ashr i32 %9, 6
%11 = zext i32 %10 to i64
%12 = sext i32 %10 to i64
%13 = mul i64 %12, 8
%14 = add i64 %4, -160
%15 = add i64 %13, %14
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = urem i32 %6, 64
%19 = icmp eq i32 %18, 0
%20 = zext i32 %18 to i64
%21 = shl i64 1, %20
%storemerge = select i1 %19, i64 1, i64 %21
store i64 %storemerge, i64* %rdi, align 8
%22 = or i64 %storemerge, %17
%sext3 = mul i64 %11, 4294967296
%23 = ashr exact i64 %sext3, 29
%24 = add i64 %23, %14
%25 = inttoptr i64 %24 to i64*
store i64 %22, i64* %25, align 8
%26 = ptrtoint i64* %sv_1 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%27 = mul i64 %indvars.iv.reload, 8
%28 = add i64 %27, %26
%29 = inttoptr i64 %28 to i64*
store i64 0, i64* %29, align 8
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 16
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_4, label LBL_3
LBL_4:
%30 = and i64 %arg2, 4294967295
%31 = load i32, i32* %5, align 8
%32 = add i32 %31, 63
%33 = icmp slt i32 %31, 0
%34 = select i1 %33, i32 %32, i32 %31
%35 = ashr i32 %34, 6
%36 = zext i32 %35 to i64
%37 = sext i32 %35 to i64
%38 = mul i64 %37, 8
%39 = add i64 %4, -288
%40 = add i64 %38, %39
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = urem i32 %31, 64
%44 = icmp eq i32 %43, 0
%45 = zext i32 %43 to i64
%46 = shl i64 1, %45
%storemerge4 = select i1 %44, i64 1, i64 %46
store i64 %storemerge4, i64* %rdi, align 8
%47 = or i64 %storemerge4, %42
%sext5 = mul i64 %36, 4294967296
%48 = ashr exact i64 %sext5, 29
%49 = add i64 %48, %39
%50 = inttoptr i64 %49 to i64*
store i64 %47, i64* %50, align 8
store i64 %30, i64* %sv_0, align 8
%51 = load i32, i32* %5, align 8
%52 = add i32 %51, 1
%53 = bitcast i64* %sv_2 to %_TYPEDEF_fd_set*
%54 = bitcast i64* %sv_1 to %_TYPEDEF_fd_set*
%55 = bitcast i64* %sv_0 to %timeval*
%56 = call i32 @select(i32 %52, %_TYPEDEF_fd_set* nonnull %53, %_TYPEDEF_fd_set* null, %_TYPEDEF_fd_set* nonnull %54, %timeval* nonnull %55)
%57 = icmp slt i32 %56, 0
%58 = icmp eq i1 %57, false
br i1 %58, label LBL_6, label LBL_5
LBL_5:
call void @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %storemerge7.reg2mem
br label LBL_9
LBL_6:
%59 = icmp slt i32 %56, 1
store i64 0, i64* %storemerge7.reg2mem
br i1 %59, label LBL_9, label LBL_7
LBL_7:
%60 = add i32 %51, 63
%61 = icmp slt i32 %51, 0
%62 = select i1 %61, i32 %60, i32 %51
%63 = ashr i32 %62, 6
%64 = sext i32 %63 to i64
%65 = mul i64 %64, 8
%66 = add i64 %65, %14
%67 = inttoptr i64 %66 to i64*
%68 = load i64, i64* %67, align 8
%69 = urem i32 %51, 64
%70 = icmp eq i32 %69, 0
%71 = zext i32 %69 to i64
%72 = shl i64 1, %71
%storemerge6 = select i1 %70, i64 1, i64 %72
%73 = and i64 %68, %storemerge6
%74 = icmp eq i64 %73, 0
store i64 0, i64* %storemerge7.reg2mem
br i1 %74, label LBL_9, label LBL_8
LBL_8:
%75 = ptrtoint i32* %arg1 to i64
%76 = call i64 @FUNC(i64 %75)
store i64 %76, i64* %storemerge7.reg2mem
br label LBL_9
LBL_9:
%storemerge7.reload = load i64, i64* %storemerge7.reg2mem
ret i64 %storemerge7.reload
uselistorder i32 %51, { 0, 3, 2, 1, 4 }
uselistorder i64* %indvars.iv12.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge7.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 16, { 1, 0 }
uselistorder label LBL_9, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | rstrip_spaces_buf_3689 | rstrip_spaces_buf | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 %1, i64* %rax.0.reg2mem
br i1 %3, label LBL_5, label LBL_1
LBL_1:
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
store i64 %6, i64* %.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_5, label LBL_3
LBL_2:
store i64 %10, i64* %5, align 8
store i8 0, i8* %12, align 1
%8 = load i64, i64* %5, align 8
%9 = icmp eq i64 %8, 0
store i64 %8, i64* %.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_5, label LBL_3
LBL_3:
%.reload = load i64, i64* %.reg2mem
%10 = add i64 %.reload, -1
%11 = add i64 %10, %0
%12 = inttoptr i64 %11 to i8*
%13 = load i8, i8* %12, align 1
%14 = icmp eq i8 %13, 32
br i1 %14, label LBL_2, label LBL_3.LBL_5.loopexit_crit_edge
LBL_4:
%15 = zext i8 %13 to i64
store i64 %15, 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 i8* %12, { 1, 0 }
uselistorder i64* %5, { 2, 1, 0 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2, 4 }
uselistorder label LBL_5, { 2, 0, 1, 3 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | decode_header_trees_7419 | decode_header_trees | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%r8.2.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%r8.1.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%r8.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %3, 4
%6 = call i64 @FUNC(i64 %5)
%7 = add i64 %3, 12
%8 = call i64 @FUNC(i64 %7)
%9 = add i64 %3, 24
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %3, 32
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i32 %13, -16
%15 = zext i32 %14 to i64
%16 = add i64 %3, 40
%17 = call i64 @FUNC(i64* nonnull %sv_0, i64 %16, i64 %15)
%18 = ptrtoint i64* %sv_0 to i64
%19 = call i64 @FUNC(i64* nonnull %sv_0)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_3, label LBL_1
LBL_1:
%23 = call i64 @FUNC(i64 %18, i64 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %16, i64 %2, i64 %1)
%24 = call i64 @FUNC(i64 8)
%25 = add i64 %3, 8
%26 = inttoptr i64 %25 to i64*
store i64 %24, i64* %26, align 8
%27 = icmp eq i64 %24, 0
%28 = icmp eq i1 %27, false
store i64 4294967284, i64* %rax.0.shrunk.reg2mem
br i1 %28, label LBL_2, label LBL_17
LBL_2:
%29 = inttoptr i64 %24 to i32*
store i32 0, i32* %29, align 4
%30 = inttoptr i64 %9 to i32*
store i32 1, i32* %30, align 4
%31 = add i64 %3, 20
%32 = inttoptr i64 %31 to i32*
store i32 1, i32* %32, align 4
%33 = add i64 %3, 16
%34 = inttoptr i64 %33 to i32*
store i32 1, i32* %34, align 4
store i64 %16, i64* %rcx.0.reg2mem
br label LBL_4
LBL_3:
%35 = add i64 %3, 16
%36 = add i64 %3, 8
%37 = and i64 %4, 4294967295
%38 = call i64 @FUNC(i64 %3, i64* nonnull %sv_0, i64 %36, i64 %35, i64 %37)
%39 = trunc i64 %38 to i32
%40 = icmp slt i32 %39, 0
%41 = icmp eq i1 %40, false
store i64 %35, i64* %rcx.0.reg2mem
store i64 %37, i64* %r8.0.reg2mem
store i64 %38, i64* %rax.0.shrunk.reg2mem
br i1 %41, label LBL_4, label LBL_17
LBL_4:
%42 = call i64 @FUNC(i64* nonnull %sv_0)
%43 = trunc i64 %42 to i32
%44 = icmp eq i32 %43, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_7, label LBL_5
LBL_5:
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%46 = call i64 @FUNC(i64 %18, i64 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_1, i64 0, i64 0), i64 %rcx.0.reload, i64 %r8.0.reload, i64 %1)
%47 = call i64 @FUNC(i64 8)
%48 = inttoptr i64 %11 to i64*
store i64 %47, i64* %48, align 8
%49 = icmp eq i64 %47, 0
%50 = icmp eq i1 %49, false
store i64 4294967284, i64* %rax.0.shrunk.reg2mem
br i1 %50, label LBL_6, label LBL_17
LBL_6:
%51 = inttoptr i64 %47 to i32*
store i32 0, i32* %51, align 4
%52 = add i64 %3, 48
%53 = inttoptr i64 %52 to i32*
store i32 1, i32* %53, align 4
%54 = add i64 %3, 44
%55 = inttoptr i64 %54 to i32*
store i32 1, i32* %55, align 4
%56 = inttoptr i64 %16 to i32*
store i32 1, i32* %56, align 4
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
store i64 %r8.0.reload, i64* %r8.1.reg2mem
br label LBL_8
LBL_7:
%57 = and i64 %6, 4294967295
%58 = call i64 @FUNC(i64 %3, i64* nonnull %sv_0, i64 %11, i64 %16, i64 %57)
%59 = trunc i64 %58 to i32
%60 = icmp slt i32 %59, 0
%61 = icmp eq i1 %60, false
store i64 %16, i64* %rcx.1.reg2mem
store i64 %57, i64* %r8.1.reg2mem
store i64 %58, i64* %rax.0.shrunk.reg2mem
br i1 %61, label LBL_8, label LBL_17
LBL_8:
%62 = call i64 @FUNC(i64* nonnull %sv_0)
%63 = trunc i64 %62 to i32
%64 = icmp eq i32 %63, 0
%65 = icmp eq i1 %64, false
br i1 %65, label LBL_11, label LBL_9
LBL_9:
%r8.1.reload = load i64, i64* %r8.1.reg2mem
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%66 = call i64 @FUNC(i64 %18, i64 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0), i64 %rcx.1.reload, i64 %r8.1.reload, i64 %1)
%67 = call i64 @FUNC(i64 8)
%68 = add i64 %3, 56
%69 = inttoptr i64 %68 to i64*
store i64 %67, i64* %69, align 8
%70 = icmp eq i64 %67, 0
%71 = icmp eq i1 %70, false
store i64 4294967284, i64* %rax.0.shrunk.reg2mem
br i1 %71, label LBL_10, label LBL_17
LBL_10:
%72 = inttoptr i64 %67 to i32*
store i32 0, i32* %72, align 4
%73 = add i64 %3, 72
%74 = inttoptr i64 %73 to i32*
store i32 1, i32* %74, align 4
%75 = add i64 %3, 68
%76 = inttoptr i64 %75 to i32*
store i32 1, i32* %76, align 4
%77 = add i64 %3, 64
%78 = inttoptr i64 %77 to i32*
store i32 1, i32* %78, align 4
store i64 %rcx.1.reload, i64* %rcx.2.reg2mem
store i64 %r8.1.reload, i64* %r8.2.reg2mem
br label LBL_12
LBL_11:
%79 = add i64 %3, 64
%80 = add i64 %3, 56
%81 = and i64 %8, 4294967295
%82 = call i64 @FUNC(i64 %3, i64* nonnull %sv_0, i64 %80, i64 %79, i64 %81)
%83 = trunc i64 %82 to i32
%84 = icmp slt i32 %83, 0
%85 = icmp eq i1 %84, false
store i64 %79, i64* %rcx.2.reg2mem
store i64 %81, i64* %r8.2.reg2mem
store i64 %82, i64* %rax.0.shrunk.reg2mem
br i1 %85, label LBL_12, label LBL_17
LBL_12:
%86 = call i64 @FUNC(i64* nonnull %sv_0)
%87 = trunc i64 %86 to i32
%88 = icmp eq i32 %87, 0
%89 = icmp eq i1 %88, false
br i1 %89, label LBL_15, label LBL_13
LBL_13:
%r8.2.reload = load i64, i64* %r8.2.reg2mem
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%90 = call i64 @FUNC(i64 %18, i64 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_3, i64 0, i64 0), i64 %rcx.2.reload, i64 %r8.2.reload, i64 %1)
%91 = call i64 @FUNC(i64 8)
%92 = add i64 %3, 80
%93 = inttoptr i64 %92 to i64*
store i64 %91, i64* %93, align 8
%94 = icmp eq i64 %91, 0
%95 = icmp eq i1 %94, false
store i64 4294967284, i64* %rax.0.shrunk.reg2mem
br i1 %95, label LBL_14, label LBL_17
LBL_14:
%96 = inttoptr i64 %91 to i32*
store i32 0, i32* %96, align 4
%97 = add i64 %3, 96
%98 = inttoptr i64 %97 to i32*
store i32 1, i32* %98, align 4
%99 = add i64 %3, 92
%100 = inttoptr i64 %99 to i32*
store i32 1, i32* %100, align 4
%101 = add i64 %3, 88
%102 = inttoptr i64 %101 to i32*
store i32 1, i32* %102, align 4
br label LBL_16
LBL_15:
%103 = add i64 %3, 88
%104 = add i64 %3, 80
%105 = and i64 %10, 4294967295
%106 = call i64 @FUNC(i64 %3, i64* nonnull %sv_0, i64 %104, i64 %103, i64 %105)
%107 = trunc i64 %106 to i32
%108 = icmp slt i32 %107, 0
%109 = icmp eq i1 %108, false
store i64 %106, i64* %rax.0.shrunk.reg2mem
br i1 %109, label LBL_16, label LBL_17
LBL_16:
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_17
LBL_17:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %91, { 1, 0, 2 }
uselistorder i64 %67, { 1, 0, 2 }
uselistorder i64 %47, { 1, 0, 2 }
uselistorder i64 %24, { 1, 0, 2 }
uselistorder i64 %18, { 3, 2, 1, 0 }
uselistorder i64 %16, { 0, 3, 2, 1, 4, 5 }
uselistorder i64 %11, { 1, 0, 2 }
uselistorder i64* %sv_0, { 0, 1, 2, 3, 4, 5, 6, 7, 9, 8 }
uselistorder i64 %3, { 15, 14, 13, 9, 10, 11, 12, 18, 17, 16, 5, 6, 7, 8, 19, 3, 4, 22, 21, 20, 0, 1, 2, 23, 24, 25, 26, 27, 28 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %r8.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %r8.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 9, 1, 2, 3, 4, 5, 6, 7, 8 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64*, i64, i64, i64)* @smacker_decode_header_tree, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @av_malloc, { 4, 3, 2, 1, 0 }
uselistorder i64 8, { 0, 1, 2, 4, 5, 3, 6, 7 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 3, 2, 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 0, 13, 14 }
uselistorder i64 (i64*)* @get_bits1, { 3, 2, 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i64 (i64)* @AV_RL32, { 3, 2, 1, 0 }
uselistorder label LBL_17, { 8, 0, 1, 2, 3, 4, 5, 6, 7 }
} | 1 |
BinRealVul | htonll_969 | htonll | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = udiv i64 %arg1, 4294967296
%1 = trunc i64 %0 to i32
%2 = call i32 @htonl(i32 %1)
%3 = trunc i64 %arg1 to i32
%4 = call i32 @htonl(i32 %3)
%5 = sext i32 %2 to i64
ret i64 %5
uselistorder i32 (i32)* @htonl, { 1, 0 }
uselistorder i64 %arg1, { 1, 0 }
} | 0 |
BinRealVul | apparmor_setprocattr_11167 | apparmor_setprocattr | define i64 @FUNC(i64* %arg1, i8* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.in.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
store i64 %0, i64* %sv_2, align 8
%1 = icmp eq i64 %arg4, 0
%2 = icmp eq i1 %1, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_22
LBL_1:
%3 = add i64 %0, %arg4
%4 = add i64 %3, -1
%5 = inttoptr i64 %4 to i8*
%6 = load i8, i8* %5, align 1
%7 = icmp eq i8 %6, 0
br i1 %7, label LBL_4, label LBL_2
LBL_2:
%8 = icmp eq i64 %arg4, 4096
%9 = icmp eq i1 %8, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_22
LBL_3:
%10 = inttoptr i64 %3 to i8*
store i8 0, i8* %10, align 1
br label LBL_4
LBL_4:
%11 = ptrtoint i64* %arg1 to i64
%12 = load i64, i64* @gv_0, align 8
%13 = icmp eq i64 %12, %11
store i64 4294967283, i64* %rax.0.reg2mem
br i1 %13, label LBL_5, label LBL_22
LBL_5:
%14 = call i64 @FUNC(i64 %0)
store i64 %14, i64* %sv_2, align 8
%15 = bitcast i64* %sv_2 to i8**
%16 = call i8* @strsep(i8** nonnull %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0))
%17 = load i64, i64* %sv_2, align 8
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %19, label LBL_6, label LBL_22
LBL_6:
%20 = call i64 @FUNC(i64 %17)
store i64 %20, i64* %sv_2, align 8
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21, align 1
%23 = icmp eq i8 %22, 0
%24 = icmp eq i1 %23, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %24, label LBL_7, label LBL_22
LBL_7:
%25 = call i32 @strcmp(i8* %arg2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_2, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_19, label LBL_8
LBL_8:
%28 = sub i64 %0, %20
%29 = add i64 %28, %arg4
%30 = call i32 @strcmp(i8* %16, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_3, i64 0, i64 0))
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_10, label LBL_9
LBL_9:
%33 = load i64, i64* %sv_2, align 8
%34 = call i64 @FUNC(i64 %33, i64 %29, i64 0)
store i64 %34, i64* %sv_0.0.in.in.reg2mem
br label LBL_21
LBL_10:
%35 = call i32 @strcmp(i8* %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_4, i64 0, i64 0))
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_12, label LBL_11
LBL_11:
%38 = load i64, i64* %sv_2, align 8
%39 = call i64 @FUNC(i64 %38, i64 %29, i64 1)
store i64 %39, i64* %sv_0.0.in.in.reg2mem
br label LBL_21
LBL_12:
%40 = call i32 @strcmp(i8* %16, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_5, i64 0, i64 0))
%41 = icmp eq i32 %40, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_14, label LBL_13
LBL_13:
%43 = load i64, i64* %sv_2, align 8
%44 = call i64 @FUNC(i64 %43, i64 0, i64 0)
store i64 %44, i64* %sv_0.0.in.in.reg2mem
br label LBL_21
LBL_14:
%45 = call i32 @strcmp(i8* %16, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_6, i64 0, i64 0))
%46 = icmp eq i32 %45, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_16, label LBL_15
LBL_15:
%48 = load i64, i64* %sv_2, align 8
%49 = call i64 @FUNC(i64 %48, i64 0, i64 1)
store i64 %49, i64* %sv_0.0.in.in.reg2mem
br label LBL_21
LBL_16:
%50 = call i32 @strcmp(i8* %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_7, i64 0, i64 0))
%51 = icmp eq i32 %50, 0
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_18, label LBL_17
LBL_17:
%53 = load i64, i64* %sv_2, align 8
%54 = call i64 @FUNC(i64 %53)
store i64 %54, i64* %sv_0.0.in.in.reg2mem
br label LBL_21
LBL_18:
%55 = call i64 @FUNC(i64* nonnull %sv_1, i64 0)
store i64 1, i64* %sv_1, align 8
%56 = call i64 @FUNC(i64 1, i64 0, i64 0, i64* nonnull %sv_1, i64 0)
store i64 %56, i64* %rax.0.reg2mem
br label LBL_22
LBL_19:
%57 = call i32 @strcmp(i8* %arg2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_8, i64 0, i64 0))
%58 = icmp eq i32 %57, 0
%59 = icmp eq i1 %58, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %59, label LBL_22, label LBL_20
LBL_20:
%60 = load i64, i64* %sv_2, align 8
%61 = call i64 @FUNC(i64 %60, i64 1, i64 0)
store i64 %61, i64* %sv_0.0.in.in.reg2mem
br label LBL_21
LBL_21:
%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
%62 = trunc i64 %sv_0.0 to i32
%63 = icmp eq i32 %62, 0
%64 = icmp eq i1 %63, false
%sv_0.1 = select i1 %64, i64 %sv_0.0, i64 %arg4
%65 = and i64 %sv_0.1, 4294967295
store i64 %65, 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 %29, { 1, 0 }
uselistorder i64* %sv_2, { 1, 2, 3, 4, 5, 6, 7, 8, 0, 9, 10 }
uselistorder i64* %sv_1, { 0, 2, 1 }
uselistorder i64 %0, { 1, 2, 0, 3 }
uselistorder i64* %sv_0.0.in.in.reg2mem, { 0, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 8, 1, 7, 2, 3, 4, 5, 6 }
uselistorder i64 (i64, i64, i64)* @aa_setprocattr_changeprofile, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @aa_setprocattr_changehat, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 12, 13 }
uselistorder i32 (i8*, i8*)* @strcmp, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i8 0, { 2, 3, 4, 5, 0, 6, 7, 1 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0 }
uselistorder i64 %arg4, { 2, 0, 3, 1, 4 }
uselistorder label LBL_22, { 6, 0, 7, 1, 2, 3, 4, 5 }
} | 1 |
BinRealVul | decode_src_opc_105 | decode_src_opc | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%sext = mul i64 %arg3, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = and i64 %1, 4294967295
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %3)
%6 = trunc i64 %5 to i32
%7 = and i64 %2, 4294967295
store i64 %7, i64* @0, align 8
%8 = mul i64 %7, 8
%9 = add i64 %8, ptrtoint (i64* @gv_0 to i64)
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%trunc = trunc i64 %2 to i32
store i64 %11, i64* %rax.0.reg2mem
switch i32 %trunc, label LBL_17 [
i32 0, label LBL_1
i32 1, label LBL_2
i32 2, label LBL_3
i32 3, label LBL_4
i32 4, label LBL_5
i32 5, label LBL_6
i32 6, label LBL_7
i32 7, label LBL_8
i32 8, label LBL_9
i32 9, label LBL_10
i32 10, label LBL_11
i32 11, label LBL_12
i32 12, label LBL_13
i32 13, label LBL_15
i32 14, label LBL_16
]
LBL_1:
%sext19 = mul i64 %4, 4294967296
%12 = ashr exact i64 %sext19, 30
%13 = add i64 %12, ptrtoint (i32** @gv_1 to i64)
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = zext i32 %15 to i64
%17 = call i64 @FUNC(i64 %16, i64 %16, i32 %6)
store i64 %17, i64* %rax.0.reg2mem
br label LBL_17
LBL_2:
%18 = load i32, i32* @gv_2, align 4
%sext18 = mul i64 %4, 4294967296
%19 = ashr exact i64 %sext18, 30
%20 = add i64 %19, ptrtoint (i32** @gv_1 to i64)
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = zext i32 %18 to i64
%24 = zext i32 %22 to i64
%25 = call i64 @FUNC(i64 %24, i64 %23, i32 %6)
store i64 %25, i64* %rax.0.reg2mem
br label LBL_17
LBL_3:
%sext17 = mul i64 %4, 4294967296
%26 = ashr exact i64 %sext17, 30
%27 = add i64 %26, ptrtoint (i32** @gv_1 to i64)
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = load i32, i32* @gv_2, align 4
%31 = zext i32 %29 to i64
%32 = zext i32 %30 to i64
%33 = call i64 @FUNC(i64 %32, i64 %31, i32 %6)
store i64 %33, i64* %rax.0.reg2mem
br label LBL_17
LBL_4:
%sext16 = mul i64 %4, 4294967296
%34 = ashr exact i64 %sext16, 30
%35 = add i64 %34, ptrtoint (i32** @gv_3 to i64)
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = zext i32 %37 to i64
%39 = call i64 @FUNC(i64 %38, i64 %38, i32 %6)
store i64 %39, i64* %rax.0.reg2mem
br label LBL_17
LBL_5:
%40 = load i32, i32* @gv_2, align 4
%sext15 = mul i64 %4, 4294967296
%41 = ashr exact i64 %sext15, 30
%42 = add i64 %41, ptrtoint (i32** @gv_1 to i64)
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = zext i32 %40 to i64
%46 = zext i32 %44 to i64
%47 = call i64 @FUNC(i64 1, i64 %46, i32 %6, i32 %44, i64 %45)
store i64 %47, i64* %rax.0.reg2mem
br label LBL_17
LBL_6:
%48 = load i32, i32* @gv_2, align 4
%sext14 = mul i64 %4, 4294967296
%49 = ashr exact i64 %sext14, 30
%50 = add i64 %49, ptrtoint (i32** @gv_1 to i64)
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = zext i32 %48 to i64
%54 = zext i32 %52 to i64
%55 = call i64 @FUNC(i64 2, i64 %54, i32 %6, i32 %52, i64 %53)
store i64 %55, i64* %rax.0.reg2mem
br label LBL_17
LBL_7:
%56 = call i64 @FUNC(i64 0)
%57 = trunc i64 %56 to i32
%58 = and i64 %5, 4294967295
%59 = call i64 @FUNC(i64 %58)
%sext13 = mul i64 %4, 4294967296
%60 = ashr exact i64 %sext13, 30
%61 = add i64 %60, ptrtoint (i32** @gv_1 to i64)
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = load i32, i32* @gv_2, align 4
%65 = zext i32 %63 to i64
%66 = and i64 %59, 4294967295
%67 = call i64 @FUNC(i64 1, i64 %65, i32 %64, i32 %57, i64 %66, i64 %65)
%68 = and i64 %56, 4294967295
%69 = call i64 @FUNC(i64 %68)
%70 = call i64 @FUNC(i64 %66)
store i64 %70, i64* %rax.0.reg2mem
br label LBL_17
LBL_8:
%71 = call i64 @FUNC(i64 0)
%72 = trunc i64 %71 to i32
%73 = and i64 %5, 4294967295
%74 = call i64 @FUNC(i64 %73)
%sext12 = mul i64 %4, 4294967296
%75 = ashr exact i64 %sext12, 30
%76 = add i64 %75, ptrtoint (i32** @gv_1 to i64)
%77 = inttoptr i64 %76 to i32*
%78 = load i32, i32* %77, align 4
%79 = load i32, i32* @gv_2, align 4
%80 = zext i32 %78 to i64
%81 = and i64 %74, 4294967295
%82 = call i64 @FUNC(i64 2, i64 %80, i32 %79, i32 %72, i64 %81, i64 %80)
%83 = and i64 %71, 4294967295
%84 = call i64 @FUNC(i64 %83)
%85 = call i64 @FUNC(i64 %81)
store i64 %85, i64* %rax.0.reg2mem
br label LBL_17
LBL_9:
%sext11 = mul i64 %4, 4294967296
%86 = ashr exact i64 %sext11, 30
%87 = add i64 %86, ptrtoint (i32** @gv_1 to i64)
%88 = inttoptr i64 %87 to i32*
%89 = load i32, i32* %88, align 4
%90 = load i32, i32* @gv_2, align 4
%91 = zext i32 %90 to i64
%92 = call i64 @FUNC(i64 2, i64 %91, i32 %89, i32 %6)
store i64 %92, i64* %rax.0.reg2mem
br label LBL_17
LBL_10:
%sext10 = mul i64 %4, 4294967296
%93 = ashr exact i64 %sext10, 30
%94 = add i64 %93, ptrtoint (i32** @gv_1 to i64)
%95 = inttoptr i64 %94 to i32*
%96 = load i32, i32* %95, align 4
%97 = load i32, i32* @gv_2, align 4
%98 = zext i32 %97 to i64
%99 = call i64 @FUNC(i64 3, i64 %98, i32 %96, i32 %6)
store i64 %99, i64* %rax.0.reg2mem
br label LBL_17
LBL_11:
%sext9 = mul i64 %4, 4294967296
%100 = ashr exact i64 %sext9, 30
%101 = add i64 %100, ptrtoint (i32** @gv_1 to i64)
%102 = inttoptr i64 %101 to i32*
%103 = load i32, i32* %102, align 4
%104 = and i64 %5, 4294967295
%105 = zext i32 %103 to i64
%106 = call i64 @FUNC(i64 %105, i64 %104)
store i64 %106, i64* %rax.0.reg2mem
br label LBL_17
LBL_12:
%107 = call i64 @FUNC(i64 %3)
%sext8 = mul i64 %4, 4294967296
%108 = ashr exact i64 %sext8, 30
%109 = add i64 %108, ptrtoint (i32** @gv_3 to i64)
%110 = inttoptr i64 %109 to i32*
%111 = load i32, i32* %110, align 4
%112 = and i64 %107, 4294967295
%113 = zext i32 %111 to i64
%114 = call i64 @FUNC(i64 %113, i64 %112)
store i64 %114, i64* %rax.0.reg2mem
br label LBL_17
LBL_13:
%115 = ptrtoint i64* %arg1 to i64
%116 = call i64 @FUNC(i64 %115, i64 1)
%117 = trunc i64 %116 to i32
%118 = icmp eq i32 %117, 0
store i64 %116, i64* %rax.0.reg2mem
br i1 %118, label LBL_17, label LBL_14
LBL_14:
%sext5 = mul i64 %4, 4294967296
%119 = ashr exact i64 %sext5, 30
%120 = add i64 %119, ptrtoint (i32** @gv_1 to i64)
%121 = inttoptr i64 %120 to i32*
%122 = load i32, i32* %121, align 4
%123 = and i64 %5, 4294967295
%124 = zext i32 %122 to i64
%125 = call i64 @FUNC(i64 %124, i64 %123)
%126 = load i32, i32* %121, align 4
%sext7 = add i64 %sext5, 4294967296
%127 = ashr exact i64 %sext7, 30
%128 = add i64 %127, ptrtoint (i32** @gv_1 to i64)
%129 = inttoptr i64 %128 to i32*
%130 = load i32, i32* %129, align 4
%131 = zext i32 %126 to i64
%132 = zext i32 %130 to i64
%133 = call i64 @FUNC(i64 %132, i64 %131, i64 31)
store i64 %133, i64* %rax.0.reg2mem
br label LBL_17
LBL_15:
%sext4 = mul i64 %4, 4294967296
%134 = ashr exact i64 %sext4, 30
%135 = add i64 %134, ptrtoint (i32** @gv_1 to i64)
%136 = inttoptr i64 %135 to i32*
%137 = load i32, i32* %136, align 4
%138 = zext i32 %137 to i64
%139 = call i64 @FUNC(i64 %138, i64 %138, i32 %6)
store i64 %139, i64* %rax.0.reg2mem
br label LBL_17
LBL_16:
%sext3 = mul i64 %4, 4294967296
%140 = ashr exact i64 %sext3, 30
%141 = add i64 %140, ptrtoint (i32** @gv_1 to i64)
%142 = inttoptr i64 %141 to i32*
%143 = load i32, i32* %142, align 4
%144 = zext i32 %143 to i64
%145 = call i64 @FUNC(i64 %144, i64 %144, i32 %6)
store i64 %145, 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 %144, { 1, 0 }
uselistorder i64 %138, { 1, 0 }
uselistorder i64 %sext5, { 1, 0 }
uselistorder i64 %80, { 1, 0 }
uselistorder i64 %65, { 1, 0 }
uselistorder i32 %52, { 1, 0 }
uselistorder i32 %44, { 1, 0 }
uselistorder i64 %38, { 1, 0 }
uselistorder i64 %16, { 1, 0 }
uselistorder i32 %6, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %5, { 3, 2, 1, 0, 4 }
uselistorder i64 %3, { 2, 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 16, 15, 13, 14, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 17 }
uselistorder i64 (i64, i64)* @tcg_gen_movi_tl, { 2, 1, 0 }
uselistorder i64 (i64, i64, i32, i32)* @tcg_gen_setcondi_tl, { 1, 0 }
uselistorder i64 (i64)* @tcg_temp_free, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i32, i32, i64, i64)* @tcg_gen_movcond_tl, { 1, 0 }
uselistorder i64 (i64)* @tcg_const_tl, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i32, i32, i64)* @gen_condi_add, { 1, 0 }
uselistorder i64 ptrtoint (i32** @gv_3 to i64), { 1, 0 }
uselistorder i32* @gv_2, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i32)* @gen_addi_d, { 2, 1, 0 }
uselistorder i64 ptrtoint (i32** @gv_1 to i64), { 13, 12, 10, 11, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 30, { 15, 14, 12, 13, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 4294967295, { 4, 9, 3, 7, 8, 2, 5, 6, 1, 10, 0, 11 }
uselistorder i64 4294967296, { 0, 1, 16, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }
uselistorder label LBL_17, { 2, 3, 1, 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }
} | 1 |
BinRealVul | r_config_set_i_cb_8548 | r_config_set_i_cb | define i64 @FUNC(i64* %arg1, i8* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i8* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg3 to i32
%3 = call i64 @FUNC(i64 %1, i64 %0, i32 %2)
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = inttoptr i64 %3 to i64*
store i64 %arg4, i64* %5, align 8
%6 = icmp eq i64 %arg4, 0
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = trunc i64 %1 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %storemerge.reg2mem
br i1 %9, label LBL_3, label LBL_4
LBL_3:
store i64 %3, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | dev_new_4141 | dev_new | define i64 @FUNC(i8* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = call i64* @malloc(i32 608)
%1 = icmp eq i64* %0, null
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
call void @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_2:
%3 = urem i64 %arg2, 2
%4 = icmp eq i64 %3, 0
%. = select i1 %4, i64 ptrtoint (i64* @gv_1 to i64), i64 ptrtoint (i32** @gv_2 to i64)
%5 = inttoptr i64 %. to i32*
%6 = load i32, i32* %5, align 8
%7 = icmp eq i32 %6, 10
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_5, label LBL_3
LBL_3:
%9 = load i32, i32* @gv_3, align 4
%10 = icmp slt i32 %9, 1
store i64 0, i64* %storemerge.reg2mem
br i1 %10, label LBL_8, label LBL_4
LBL_4:
%11 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_4, i64 0, i64 0))
store i64 0, i64* %storemerge.reg2mem
br label LBL_8
LBL_5:
%12 = bitcast i64* %0 to i32*
%13 = add i32 %6, 1
store i32 %13, i32* %5, align 8
%14 = add i32 %6, 10
%spec.select = select i1 %4, i32 %6, i32 %14
store i32 %spec.select, i32* %12, align 4
%15 = ptrtoint i64* %0 to i64
%16 = add i64 %15, 584
%17 = inttoptr i64 %16 to i64*
store i64 0, i64* %17, align 8
%18 = ptrtoint i8* %arg1 to i64
%19 = add i64 %15, 8
%20 = inttoptr i64 %19 to i64*
store i64 %18, i64* %20, align 8
%21 = trunc i64 %arg2 to i32
%22 = add i64 %15, 16
%23 = inttoptr i64 %22 to i32*
store i32 %21, i32* %23, align 4
%24 = add i64 %15, 592
%25 = call i64 @FUNC(i64 %24, i64 16, i64 0, i64 0)
%26 = add i64 %15, 600
%27 = call i64 @FUNC(i64 %26, i64 16, i64 0, i64 0)
%28 = trunc i64 %arg3 to i32
%29 = add i64 %15, 20
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
%31 = trunc i64 %arg4 to i32
%32 = add i64 %15, 24
%33 = inttoptr i64 %32 to i32*
store i32 %31, i32* %33, align 4
%34 = trunc i64 %arg5 to i32
%35 = add i64 %15, 28
%36 = inttoptr i64 %35 to i32*
store i32 %34, i32* %36, align 4
%37 = trunc i64 %arg6 to i32
%38 = add i64 %15, 32
%39 = inttoptr i64 %38 to i32*
store i32 %37, i32* %39, align 4
%40 = add i64 %15, 36
%41 = inttoptr i64 %40 to i32*
store i32 0, i32* %41, align 4
%42 = add i64 %15, 40
%43 = inttoptr i64 %42 to i32*
store i32 0, i32* %43, align 4
%44 = add i64 %15, 44
%45 = inttoptr i64 %44 to i32*
store i32 0, i32* %45, align 4
%46 = add i64 %15, 48
%47 = inttoptr i64 %46 to i32*
store i32 0, i32* %47, align 4
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_6
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%48 = mul i64 %indvars.iv.reload, 64
%49 = add i64 %48, %15
%50 = add i64 %49, 56
%51 = inttoptr i64 %50 to i32*
%52 = trunc i64 %indvars.iv.reload to i32
store i32 %52, i32* %51, align 4
%53 = add i64 %49, 64
%54 = inttoptr i64 %53 to i64*
store i64 0, i64* %54, align 8
%55 = add i64 %49, 72
%56 = inttoptr i64 %55 to i32*
store i32 127, i32* %56, align 4
%57 = add i64 %49, 76
%58 = inttoptr i64 %57 to i32*
store i32 0, i32* %58, align 4
%59 = load i32, i32* %47, align 4
%60 = add i32 %59, 1
store i32 %60, i32* %47, align 4
%61 = add i64 %49, 80
%62 = inttoptr i64 %61 to i32*
store i32 %59, i32* %62, align 4
%63 = add i64 %49, 84
%64 = inttoptr i64 %63 to i8*
store i8 0, i8* %64, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 8
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_7, label LBL_6
LBL_7:
%65 = add i64 %15, 568
%66 = inttoptr i64 %65 to i32*
store i32 0, i32* %66, align 4
%67 = add i64 %15, 572
%68 = inttoptr i64 %67 to i32*
store i32 1, i32* %68, align 4
%69 = load i64, i64* @gv_5, align 8
%70 = add i64 %15, 576
%71 = inttoptr i64 %70 to i64*
store i64 %69, i64* %71, align 8
store i64 %15, i64* @gv_5, align 8
store i64 %15, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %49, { 3, 2, 1, 0, 4, 5 }
uselistorder i32* %47, { 1, 0, 2 }
uselistorder i64 %15, { 0, 2, 3, 4, 5, 1, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 }
uselistorder i64* %0, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 64, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @aparams_init, { 1, 0 }
uselistorder i32 0, { 2, 1, 3, 4, 5, 6, 0 }
uselistorder i32 1, { 7, 3, 4, 5, 6, 2, 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_8, { 2, 1, 0 }
} | 0 |
BinRealVul | ProcFreeColors_10865 | ProcFreeColors | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32*, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp ult i32 %3, 3
store i64 1, i64* %rax.0.reg2mem
br i1 %4, label LBL_5, label LBL_1
LBL_1:
%5 = add i64 %0, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = bitcast i32** %sv_0 to i64*
%9 = call i64 @FUNC(i64* nonnull %8, i32 %7, i64 1, i64 %0, i64 1)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_4, label LBL_2
LBL_2:
%13 = load i32*, i32** %sv_0, align 8
%14 = load i32, i32* %13, align 4
%15 = urem i32 %14, 2
%16 = icmp eq i32 %15, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %16, label LBL_3, label LBL_5
LBL_3:
%17 = load i32, i32* %2, align 4
%18 = mul i32 %17, 4
%19 = add i32 %18, -12
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %20)
%22 = trunc i64 %21 to i32
%23 = load i32, i32* %2, align 4
%24 = zext i32 %23 to i64
%25 = add i64 %0, 12
%26 = add i64 %0, 16
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = load i32*, i32** %sv_0, align 8
%30 = ptrtoint i32* %29 to i64
%31 = call i64 @FUNC(i64 %30, i32 %28, i32 %22, i64 %25, i64 %24)
store i64 %31, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%32 = load i32, i32* %6, align 4
%33 = add i64 %0, 12
%34 = inttoptr i64 %33 to i32*
store i32 %32, i32* %34, align 4
%35 = and i64 %9, 4294967295
store i64 %35, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32** %sv_0, { 1, 0, 2 }
uselistorder i64 %0, { 2, 0, 1, 3, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i64 1, { 0, 3, 2, 1 }
uselistorder label LBL_5, { 2, 3, 0, 1 }
} | 0 |
BinRealVul | check_packet_type_19305 | check_packet_type | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 6
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 1
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = icmp eq i8 %7, 1
br i1 %8, label LBL_2, label LBL_4
LBL_2:
%9 = call i64 @FUNC(i64 %4, i64 53)
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_3, label LBL_4
LBL_3:
%12 = inttoptr i64 %9 to i8*
%13 = load i8, i8* %12, align 1
%14 = icmp eq i8 %13, 0
%15 = icmp eq i1 %14, false
%16 = icmp ult i8 %13, 7
%or.cond = icmp eq i1 %16, %15
%17 = zext i8 %13 to i64
%spec.select = select i1 %or.cond, i64 %17, i64 0
ret i64 %spec.select
LBL_4:
ret i64 0
uselistorder i8 %13, { 1, 0, 2 }
} | 1 |
BinRealVul | print_uint32_14563 | print_uint32 | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = bitcast i64* %arg3 to i8*
%6 = trunc i64 %arg4 to i32
%7 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %5, i32 %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i32 %4)
%8 = sext i32 %7 to i64
ret i64 %8
} | 1 |
BinRealVul | BN_hex2bn_19089 | BN_hex2bn | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i64
%sv_4.011.reg2mem = alloca i32
%sv_0.012.reg2mem = alloca i32
%storemerge.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = icmp ne i64 %arg2, 0
%3 = trunc i64 %1 to i8
%4 = icmp eq i8 %3, 0
%5 = icmp eq i1 %4, false
%or.cond = icmp eq i1 %2, %5
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %or.cond, label LBL_1, label LBL_15
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = icmp eq i8 %3, 45
%8 = zext i1 %7 to i64
%spec.select = add i64 %8, %arg2
store i32 0, i32* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%9 = call i16** @__ctype_b_loc()
%10 = load i16*, i16** %9, align 8
%11 = ptrtoint i16* %10 to i64
%12 = sext i32 %storemerge.reload to i64
%13 = add i64 %spec.select, %12
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = zext i8 %15 to i64
%17 = mul i64 %16, 2
%18 = add i64 %17, %11
%19 = inttoptr i64 %18 to i16*
%20 = load i16, i16* %19, align 2
%21 = and i16 %20, 4096
%22 = icmp eq i16 %21, 0
%23 = icmp eq i1 %22, false
%24 = add i32 %storemerge.reload, 1
store i32 %24, i32* %storemerge.reg2mem
br i1 %23, label LBL_2, label LBL_3
LBL_3:
%spec.select8 = zext i1 %7 to i32
%25 = add i32 %storemerge.reload, %spec.select8
%26 = icmp eq i64* %arg1, null
%27 = icmp eq i1 %26, false
store i32 %25, i32* %rax.0.shrunk.reg2mem
br i1 %27, label LBL_4, label LBL_15
LBL_4:
%28 = call i64 @FUNC(i64 %6)
%29 = mul i32 %storemerge.reload, 4
%30 = zext i32 %29 to i64
%31 = call i64 @FUNC(i64 %6, i64 %30)
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 0
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %33, label LBL_15, label LBL_5
LBL_5:
%34 = icmp eq i32 %storemerge.reload, 0
%35 = icmp slt i32 %storemerge.reload, 0
%36 = icmp eq i1 %35, false
%37 = icmp eq i1 %34, false
%38 = icmp eq i1 %36, %37
store i32 0, i32* %sv_0.012.reg2mem
store i32 %storemerge.reload, i32* %sv_4.011.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %38, label LBL_6, label LBL_14
LBL_6:
%sv_4.011.reload = load i32, i32* %sv_4.011.reg2mem
%sv_0.012.reload = load i32, i32* %sv_0.012.reg2mem
%39 = add i32 %sv_4.011.reload, -8
%40 = sub i32 7, %sv_4.011.reload
%41 = and i32 %40, %sv_4.011.reload
%42 = icmp slt i32 %41, 0
%43 = icmp eq i32 %39, 0
%44 = icmp slt i32 %39, 0
%45 = icmp eq i1 %44, %42
%46 = icmp eq i1 %43, false
%47 = icmp eq i1 %45, %46
%48 = select i1 %47, i32 8, i32 %sv_4.011.reload
store i64 0, i64* %sv_3.0.reg2mem
store i32 %48, i32* %sv_2.0.reg2mem
br label LBL_7
LBL_7:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%49 = sub i32 %sv_4.011.reload, %sv_2.0.reload
%50 = sext i32 %49 to i64
%51 = add i64 %spec.select, %50
%52 = inttoptr i64 %51 to i8*
%53 = load i8, i8* %52, align 1
%54 = sext i8 %53 to i32
%.off = add i8 %53, -48
%55 = icmp ugt i8 %.off, 9
br i1 %55, label LBL_9, label LBL_8
LBL_8:
%56 = add nsw i32 %54, -48
store i32 %56, i32* %sv_1.0.reg2mem
br label LBL_12
LBL_9:
%.off6 = add i8 %53, -97
%57 = icmp ugt i8 %.off6, 5
br i1 %57, label LBL_11, label LBL_10
LBL_10:
%58 = add nsw i32 %54, -87
store i32 %58, i32* %sv_1.0.reg2mem
br label LBL_12
LBL_11:
%.off7 = add i8 %53, -65
%59 = icmp ugt i8 %.off7, 5
%60 = add nsw i32 %54, -55
%spec.select9 = select i1 %59, i32 0, i32 %60
store i32 %spec.select9, i32* %sv_1.0.reg2mem
br label LBL_12
LBL_12:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%61 = mul i64 %sv_3.0.reload, 16
%62 = sext i32 %sv_1.0.reload to i64
%63 = or i64 %61, %62
%64 = add i32 %sv_2.0.reload, -1
%65 = icmp eq i32 %64, 0
%66 = icmp slt i32 %64, 0
%67 = icmp eq i1 %66, false
%68 = icmp eq i1 %65, false
%69 = icmp eq i1 %67, %68
store i64 %63, i64* %sv_3.0.reg2mem
store i32 %64, i32* %sv_2.0.reg2mem
br i1 %69, label LBL_7, label LBL_13
LBL_13:
%70 = load i64, i64* %arg1, align 8
%71 = add i32 %sv_0.012.reload, 1
%72 = sext i32 %sv_0.012.reload to i64
%73 = mul i64 %72, 8
%74 = add i64 %70, %73
%75 = inttoptr i64 %74 to i64*
store i64 %63, i64* %75, align 8
%76 = icmp eq i1 %44, false
%77 = icmp eq i1 %76, %46
store i32 %71, i32* %sv_0.012.reg2mem
store i32 %39, i32* %sv_4.011.reg2mem
store i32 %71, i32* %sv_0.0.lcssa.reg2mem
br i1 %77, label LBL_6, label LBL_14
LBL_14:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%78 = add i64 %6, 8
%79 = inttoptr i64 %78 to i32*
store i32 %sv_0.0.lcssa.reload, i32* %79, align 4
%80 = call i64 @FUNC(i64 %6)
%81 = add i64 %6, 12
%82 = inttoptr i64 %81 to i32*
store i32 %spec.select8, i32* %82, align 4
store i64 %6, i64* %arg1, align 8
%83 = call i64 @FUNC(i64 %6)
store i32 %25, i32* %rax.0.shrunk.reg2mem
br label LBL_15
LBL_15:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i64 %63, { 1, 0 }
uselistorder i32 %sv_2.0.reload, { 1, 0 }
uselistorder i32 %39, { 0, 2, 1 }
uselistorder i32 %sv_0.012.reload, { 1, 0 }
uselistorder i32 %sv_4.011.reload, { 0, 2, 4, 1, 3 }
uselistorder i32 %25, { 1, 0 }
uselistorder i32 %spec.select8, { 1, 0 }
uselistorder i32 %storemerge.reload, { 0, 3, 4, 6, 5, 2, 1 }
uselistorder i64 %6, { 5, 4, 2, 3, 1, 0, 6 }
uselistorder i8 %3, { 1, 0 }
uselistorder i32* %storemerge.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.012.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_4.011.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_3.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 8, { 1, 0, 2, 3 }
uselistorder i32 0, { 8, 9, 7, 10, 11, 12, 2, 3, 5, 6, 0, 13, 4, 1, 14, 15, 16, 17 }
uselistorder i1 false, { 4, 5, 3, 6, 1, 2, 7, 8, 0 }
uselistorder i64* %arg1, { 1, 0, 2, 3 }
uselistorder label LBL_15, { 3, 1, 2, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | fxLoadScript_13042 | fxLoadScript | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.03.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%1 = ptrtoint i64* %sv_4 to i64
store i64 0, i64* %sv_3, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %1, i64 %0, i64 %0, i64 %4)
%6 = ptrtoint i64* %sv_2 to i64
store i64 %6, i64* %sv_4, align 8
%7 = inttoptr i64 %arg2 to i8*
%8 = call %_IO_FILE* @fopen(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%9 = call i64 @FUNC(i64* nonnull %sv_2)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_9, label LBL_1
LBL_1:
%13 = ptrtoint %_IO_FILE* %8 to i64
%14 = call i64 @FUNC(i64 %13)
%15 = call i64 @FUNC(i64 %1, i64 %arg2)
%16 = add i64 %1, 8
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
%18 = zext i32 %arg3 to i64
%19 = call i64 @FUNC(i64 %1, i64 %13, i64 4198464, i64 %18, i64* nonnull %sv_3)
%20 = call i32 @fclose(%_IO_FILE* %8)
%21 = load i64, i64* %sv_3, align 8
%22 = icmp eq i64 %21, 0
br i1 %22, label LBL_8, label LBL_2
LBL_2:
%23 = call i64 @FUNC(i64 %arg2, i64 47)
%24 = inttoptr i64 %23 to i8*
%25 = icmp eq i64 %23, 0
br i1 %25, label LBL_4, label LBL_3
LBL_3:
store i8 0, i8* %24, align 1
br label LBL_4
LBL_4:
%26 = load i64, i64* %sv_3, align 8
%27 = call i64 @FUNC(i64 %arg2, i64 %26)
%28 = call i64 @FUNC(i64 %arg2, i64* nonnull %sv_1)
%29 = call i64 @FUNC(i64 %28)
%30 = ptrtoint i64* %sv_1 to i64
%31 = call i64 @FUNC(i64 %1, i64 %30)
store i64 %31, i64* %17, align 8
%32 = bitcast i64* %sv_1 to i8*
%33 = call %_IO_FILE* @fopen(i8* nonnull %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%34 = ptrtoint %_IO_FILE* %33 to i64
%35 = call i64 @FUNC(i64 %34)
%36 = call i64 @FUNC(i64 %1, i64 %34, i64 4198464, i64 %18, i64* nonnull %sv_3)
%37 = call i32 @fclose(%_IO_FILE* %33)
%38 = add i64 %1, 16
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 8
%41 = icmp eq i32 %40, 0
%42 = icmp eq i1 %41, false
br i1 %42, label LBL_8, label LBL_5
LBL_5:
br i1 %25, label LBL_7, label LBL_6
LBL_6:
store i8 0, i8* %24, align 1
br label LBL_7
LBL_7:
%43 = load i64, i64* %sv_3, align 8
%44 = call i64 @FUNC(i64 %arg2, i64 %43)
%45 = call i64 @FUNC(i64 %arg2, i64* nonnull %sv_1)
%46 = call i64 @FUNC(i64 %45)
%47 = call i64 @FUNC(i64 %1, i64 %30)
store i64 %47, i64* %17, align 8
br label LBL_8
LBL_8:
%48 = call i64 @FUNC(i64 %1)
%49 = call i64 @FUNC(i64 %1)
%50 = call i64 @FUNC(i64 %1)
store i64 %50, i64* %sv_0.03.reg2mem
br label LBL_11
LBL_9:
%51 = icmp eq %_IO_FILE* %8, null
store i64 0, i64* %sv_0.03.reg2mem
br i1 %51, label LBL_11, label LBL_10
LBL_10:
%52 = call i32 @fclose(%_IO_FILE* nonnull %8)
store i64 0, i64* %sv_0.03.reg2mem
br label LBL_11
LBL_11:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%53 = call i64 @FUNC(i64 %1)
ret i64 %sv_0.03.reload
uselistorder i64 %23, { 1, 0 }
uselistorder %_IO_FILE* %8, { 1, 0, 2, 3 }
uselistorder i64 %1, { 10, 6, 5, 4, 0, 2, 1, 3, 7, 9, 8, 11 }
uselistorder i64* %sv_3, { 2, 0, 3, 4, 1, 5 }
uselistorder i64* %sv_1, { 0, 1, 3, 2 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %sv_0.03.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64, i64*)* @c_realpath, { 1, 0 }
uselistorder i64 (i64, i64)* @c_strcat, { 1, 0 }
uselistorder i32 (%_IO_FILE*)* @fclose, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @fxNewParserSymbol, { 2, 1, 0 }
uselistorder i64 (i64)* @mxParserThrowElse, { 3, 2, 1, 0 }
uselistorder %_IO_FILE* (i8*, i8*)* @fopen, { 1, 0 }
uselistorder i64 %arg2, { 1, 0, 3, 2, 4, 5, 6 }
uselistorder label LBL_11, { 1, 2, 0 }
uselistorder label LBL_8, { 2, 1, 0 }
} | 1 |
BinRealVul | config_18883 | config | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%storemerge.reg2mem = alloca i64
%.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i32
%.pre-phi18.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%1 = load i128, i128* %0
%2 = trunc i64 %arg7 to i32
%sv_2 = alloca i32, align 4
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_8
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%sext7 = mul i64 %arg2, 4294967296
%6 = ashr exact i64 %sext7, 32
%sext8 = mul i64 %arg3, 4294967296
%7 = ashr exact i64 %sext8, 32
%sext9 = mul i64 %arg4, 4294967296
%8 = ashr exact i64 %sext9, 32
%sext10 = mul i64 %arg5, 4294967296
%9 = ashr exact i64 %sext10, 32
%10 = load i32, i32* @gv_0, align 4
%11 = trunc i64 %7 to i32
%12 = add i32 %10, %11
%13 = load i32, i32* @gv_1, align 4
%14 = add i64 %5, 40
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = add i32 %12, %13
%18 = inttoptr i64 %16 to i32*
store i32 %17, i32* %18, align 4
%19 = load i64, i64* %15, align 8
%20 = trunc i64 %6 to i32
%21 = add i64 %19, 4
%22 = inttoptr i64 %21 to i32*
store i32 %20, i32* %22, align 4
%23 = load i32, i32* @gv_2, align 4
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
store i64 %8, i64* %sv_1.0.reg2mem
store i64 %9, i64* %sv_0.0.reg2mem
br i1 %25, label LBL_4, label LBL_2
LBL_2:
%26 = load i32, i32* @gv_3, align 4
%27 = icmp eq i32 %26, 0
%28 = icmp eq i1 %27, false
store i64 %8, i64* %sv_1.0.reg2mem
store i64 %9, i64* %sv_0.0.reg2mem
br i1 %28, label LBL_4, label LBL_3
LBL_3:
%29 = load i64, i64* %15, align 8
%30 = add i64 %29, 4
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = trunc i64 %8 to i32
%34 = mul i32 %32, %33
%35 = ashr i32 %34, 31
%36 = zext i32 %34 to i64
%37 = zext i32 %35 to i64
%38 = mul i64 %37, 4294967296
%39 = or i64 %38, %36
%40 = and i64 %6, 4294967295
%41 = sdiv i64 %39, %40
%sext13 = mul i64 %41, 4294967296
%42 = ashr exact i64 %sext13, 32
%43 = inttoptr i64 %29 to i32*
%44 = load i32, i32* %43, align 4
%45 = trunc i64 %9 to i32
%46 = mul i32 %44, %45
%47 = ashr i32 %46, 31
%48 = zext i32 %46 to i64
%49 = zext i32 %47 to i64
%50 = mul i64 %49, 4294967296
%51 = or i64 %50, %48
%52 = and i64 %7, 4294967295
%53 = sdiv i64 %51, %52
%sext15 = mul i64 %53, 4294967296
%54 = ashr exact i64 %sext15, 32
store i64 %42, i64* %sv_1.0.reg2mem
store i64 %54, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%55 = load i64, i64* %15, align 8
%56 = add i64 %55, 4
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = inttoptr i64 %55 to i32*
%60 = load i32, i32* %59, align 4
%61 = mul i32 %60, %58
%62 = call i64* @malloc(i32 %61)
%63 = ptrtoint i64* %62 to i64
%64 = add i64 %55, 16
%65 = inttoptr i64 %64 to i64*
store i64 %63, i64* %65, align 8
%66 = load i64, i64* %15, align 8
%67 = add i64 %66, 4
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = inttoptr i64 %66 to i32*
%71 = load i32, i32* %70, align 4
%72 = mul i32 %71, %69
%73 = call i64* @malloc(i32 %72)
%74 = ptrtoint i64* %73 to i64
%75 = add i64 %66, 24
%76 = inttoptr i64 %75 to i64*
store i64 %74, i64* %76, align 8
%77 = load i64, i64* %15, align 8
%78 = inttoptr i64 %77 to i32*
%79 = load i32, i32* %78, align 4
%80 = call i64* @malloc(i32 %79)
%81 = ptrtoint i64* %80 to i64
%82 = add i64 %77, 32
%83 = inttoptr i64 %82 to i64*
store i64 %81, i64* %83, align 8
%84 = load i64, i64* %15, align 8
%85 = add i64 %84, 40
%86 = inttoptr i64 %85 to i64*
%87 = load i64, i64* %86, align 8
%88 = icmp eq i64 %87, 0
br i1 %88, label LBL_4.LBL_7_crit_edge, label LBL_6
LBL_5:
%.pre16 = trunc i64 %sv_0.0.reload to i32
%.pre17 = trunc i64 %sv_1.0.reload to i32
store i32 %.pre17, i32* %.pre-phi18.reg2mem
store i32 %.pre16, i32* %.pre-phi.reg2mem
store i64 %84, i64* %.reg2mem
br label LBL_7
LBL_6:
%89 = add i64 %84, 4
%90 = inttoptr i64 %89 to i32*
%91 = load i32, i32* %90, align 4
store i32 %91, i32* %sv_2, align 4
%92 = load i64, i64* @gv_4, align 8
%93 = call i128 @FUNC(i64 %92)
%94 = call i64 @__asm_movsd.1(i128 %93)
%95 = load i64, i64* @gv_5, align 8
%96 = call i128 @FUNC(i64 %95)
%97 = call i64 @__asm_movsd.1(i128 %96)
%98 = call i128 @FUNC(i128 %96, i128 %96)
%99 = trunc i64 %sv_1.0.reload to i32
%100 = call i128 @FUNC(i32 %99)
%101 = call i128 @FUNC(i128 %1, i128 %1)
%102 = trunc i64 %sv_0.0.reload to i32
%103 = call i128 @FUNC(i32 %102)
%104 = call i128 @FUNC(i128 %100, i128 %103)
%105 = call i64 @__asm_movsd.1(i128 %104)
%106 = load i64, i64* %15, align 8
%107 = add i64 %106, 40
%108 = inttoptr i64 %107 to i64*
%109 = load i64, i64* %108, align 8
%110 = call i64 @FUNC(i64 %109, i32* nonnull %sv_2)
%.pre = load i64, i64* %15, align 8
store i32 %99, i32* %.pre-phi18.reg2mem
store i32 %102, i32* %.pre-phi.reg2mem
store i64 %.pre, i64* %.reg2mem
br label LBL_7
LBL_7:
%.reload = load i64, i64* %.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%.pre-phi18.reload = load i32, i32* %.pre-phi18.reg2mem
%111 = inttoptr i64 %.reload to i32*
%112 = load i32, i32* %111, align 4
%113 = add i64 %.reload, 4
%114 = inttoptr i64 %113 to i32*
%115 = load i32, i32* %114, align 4
%116 = trunc i64 %arg6 to i32
%117 = call i64 @FUNC(i64 %5, i32 %115, i32 %112, i32 %.pre-phi18.reload, i32 %.pre-phi.reload, i32 %116)
store i64 %117, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i128 %96, { 2, 1, 0 }
uselistorder i64 %84, { 1, 0, 2 }
uselistorder i64* %15, { 0, 2, 3, 4, 5, 6, 1, 7, 8 }
uselistorder i64 %9, { 2, 0, 1 }
uselistorder i64 %8, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 0, { 4, 5, 6, 0, 1, 2, 3 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | error_set_16004 | error_set | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3, i8* %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%sv_0 = alloca i32, align 4
%11 = trunc i64 %2 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i128 %10)
%14 = call i64 @FUNC(i128 %9)
%15 = call i64 @FUNC(i128 %8)
%16 = call i64 @FUNC(i128 %7)
%17 = call i64 @FUNC(i128 %6)
%18 = call i64 @FUNC(i128 %5)
%19 = call i64 @FUNC(i128 %4)
%20 = call i64 @FUNC(i128 %3)
br label LBL_2
LBL_2:
%21 = ptrtoint i64* %arg1 to i64
store i32 24, i32* %sv_0, align 4
%22 = ptrtoint i8* %arg3 to i64
%23 = trunc i64 %arg2 to i32
%24 = call i64 @FUNC(i64 %21, i32 %23, i64 %22, i32* nonnull %sv_0)
ret i64 %24
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | gen_neon_trn_u8_15709 | gen_neon_trn_u8 | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = and i64 %arg2, 4294967295
%1 = call i64 @FUNC()
%2 = call i64 @FUNC()
%3 = trunc i64 %2 to i32
%4 = and i64 %arg1, 4294967295
%5 = and i64 %1, 4294967295
%6 = call i64 @FUNC(i64 %5, i64 %4, i64 8)
%7 = call i64 @FUNC(i64 %5, i64 %5, i64 4278255360)
%8 = and i64 %2, 4294967295
%9 = call i64 @FUNC(i64 %8, i64 %0, i64 16711935)
%10 = call i64 @FUNC(i64 %5, i64 %5, i32 %3)
%11 = call i64 @FUNC(i64 %0, i64 %0, i64 8)
%12 = call i64 @FUNC(i64 %0, i64 %0, i64 16711935)
%13 = call i64 @FUNC(i64 %8, i64 %4, i64 4278255360)
%14 = call i64 @FUNC(i64 %0, i64 %0, i32 %3)
%15 = call i64 @FUNC(i64 %4, i64 %5)
%16 = call i64 @FUNC(i64 %8)
%17 = call i64 @FUNC(i64 %5)
ret i64 %17
uselistorder i64 %5, { 0, 1, 3, 2, 5, 4, 6 }
uselistorder i64 %0, { 0, 1, 4, 5, 2, 3, 6 }
uselistorder i64 (i64)* @dead_tmp, { 1, 0 }
uselistorder i64 (i64, i64, i32)* @tcg_gen_or_i32, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @tcg_gen_andi_i32, { 3, 2, 1, 0 }
uselistorder i64 4294967295, { 2, 3, 4, 1, 5, 6, 0, 7 }
} | 1 |
BinRealVul | jsi_ArrayFillCmd_6321 | jsi_ArrayFillCmd | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%storemerge.reg2mem = alloca i64
%rcx.4.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%rcx.33.reg2mem = alloca i64
%storemerge14.reg2mem = alloca i32
%rcx.1.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%rcx.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i32
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%4 = trunc i64 %2 to i32
%5 = icmp eq i32 %4, 1
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = add i64 %arg3, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %arg1, i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0))
store i64 %14, i64* %storemerge.reg2mem
br label LBL_19
LBL_3:
%15 = call i128 @FUNC(i128 %3, i128 %3)
%16 = call i64 @FUNC(i128 %15)
store i64 %16, i64* %sv_3, align 8
%17 = call i128 @FUNC(i128 %15, i128 %15)
%18 = call i64 @FUNC(i128 %17)
store i64 %18, i64* %sv_2, align 8
%19 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 0)
%20 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 1)
%21 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 2)
%22 = load i64, i64* %8, align 8
%23 = call i64 @FUNC(i64 %arg1, i64 %22)
%24 = trunc i64 %23 to i32
%25 = icmp eq i64 %20, 0
store i32 0, i32* %sv_1.1.reg2mem
store i64 %arg2, i64* %rcx.0.reg2mem
br i1 %25, label LBL_7, label LBL_4
LBL_4:
%26 = call i64 @FUNC(i64 %arg1, i64 %20, i64* nonnull %sv_3)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
store i32 0, i32* %sv_1.1.reg2mem
store i64 %20, i64* %rcx.0.reg2mem
br i1 %29, label LBL_7, label LBL_5
LBL_5:
%30 = load i64, i64* %sv_3, align 8
%31 = call i128 @__asm_movsd.1(i64 %30)
%32 = call i32 @FUNC(i128 %31)
%33 = icmp sgt i32 %32, %24
store i64 %20, i64* %rcx.4.reg2mem
br i1 %33, label LBL_17, label LBL_6
LBL_6:
%34 = icmp slt i32 %32, 0
%35 = icmp eq i1 %34, false
%36 = select i1 %35, i32 0, i32 %24
%spec.select = add i32 %36, %32
%37 = icmp slt i32 %spec.select, 0
store i32 %spec.select, i32* %sv_1.1.reg2mem
store i64 %20, i64* %rcx.0.reg2mem
store i64 %20, i64* %rcx.4.reg2mem
br i1 %37, label LBL_17, label LBL_7
LBL_7:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%38 = icmp eq i32 %24, 0
store i64 %rcx.0.reload, i64* %rcx.4.reg2mem
br i1 %38, label LBL_17, label LBL_8
LBL_8:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%39 = add i32 %24, -1
%40 = icmp eq i64 %21, 0
store i32 %39, i32* %sv_0.2.reg2mem
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
br i1 %40, label LBL_11, label LBL_9
LBL_9:
%41 = call i64 @FUNC(i64 %arg1, i64 %21, i64* nonnull %sv_2)
%42 = trunc i64 %41 to i32
%43 = icmp eq i32 %42, 0
%44 = icmp eq i1 %43, false
store i32 %39, i32* %sv_0.2.reg2mem
store i64 %21, i64* %rcx.1.reg2mem
br i1 %44, label LBL_11, label LBL_10
LBL_10:
%45 = load i64, i64* %sv_2, align 8
%46 = call i128 @__asm_movsd.1(i64 %45)
%47 = call i32 @FUNC(i128 %46)
%48 = icmp slt i32 %47, %24
%spec.select2 = select i1 %48, i32 %47, i32 %24
%49 = icmp slt i32 %spec.select2, 0
%50 = icmp eq i1 %49, false
%51 = select i1 %50, i32 0, i32 %24
%sv_0.1 = add i32 %51, %spec.select2
%52 = icmp slt i32 %sv_0.1, 0
store i32 %sv_0.1, i32* %sv_0.2.reg2mem
store i64 %21, i64* %rcx.1.reg2mem
store i64 %21, i64* %rcx.4.reg2mem
br i1 %52, label LBL_17, label LBL_11
LBL_11:
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%53 = sub i32 1, %sv_1.1.reload
%54 = add i32 %53, %sv_0.2.reload
%55 = icmp slt i32 %54, 1
%56 = icmp sgt i32 %sv_1.1.reload, %sv_0.2.reload
%or.cond = or i1 %56, %55
store i64 %rcx.1.reload, i64* %rcx.4.reg2mem
br i1 %or.cond, label LBL_17, label LBL_12
LBL_12:
%57 = inttoptr i64 %22 to i64*
store i32 %sv_1.1.reload, i32* %storemerge14.reg2mem
store i64 %rcx.1.reload, i64* %rcx.33.reg2mem
br label LBL_13
LBL_13:
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
%58 = load i64, i64* %57, align 8
%59 = sext i32 %storemerge14.reload to i64
%60 = mul i64 %59, 8
%61 = add i64 %58, %60
%62 = inttoptr i64 %61 to i64*
%63 = load i64, i64* %62, align 8
%64 = icmp eq i64 %63, 0
br i1 %64, label LBL_15, label LBL_14
LBL_14:
%65 = call i64 @FUNC(i64 %arg1, i64 %63, i64 %19)
store i64 %63, i64* %rcx.2.reg2mem
br label LBL_16
LBL_15:
%rcx.33.reload = load i64, i64* %rcx.33.reg2mem
%66 = call i64 @FUNC(i64 %arg1, i64 %19)
store i64 %66, i64* %62, align 8
store i64 %rcx.33.reload, i64* %rcx.2.reg2mem
br label LBL_16
LBL_16:
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%67 = add i32 %storemerge14.reload, 1
%68 = icmp sgt i32 %67, %sv_0.2.reload
store i32 %67, i32* %storemerge14.reg2mem
store i64 %rcx.2.reload, i64* %rcx.33.reg2mem
store i64 %rcx.2.reload, i64* %rcx.4.reg2mem
br i1 %68, label LBL_17, label LBL_13
LBL_17:
%rcx.4.reload = load i64, i64* %rcx.4.reg2mem
%69 = icmp eq i64 %rcx.4.reload, %arg3
store i64 0, i64* %storemerge.reg2mem
br i1 %69, label LBL_19, label LBL_18
LBL_18:
%70 = call i64 @FUNC(i64 %arg1, i64 %rcx.4.reload, i64 %arg3)
store i64 0, i64* %storemerge.reg2mem
br label LBL_19
LBL_19:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %sv_0.2.reload, { 0, 2, 1 }
uselistorder i64 %rcx.1.reload, { 1, 0 }
uselistorder i64 %rcx.0.reload, { 1, 0 }
uselistorder i32 %24, { 0, 2, 4, 6, 5, 1, 3 }
uselistorder i64 %21, { 0, 1, 2, 4, 3 }
uselistorder i64 %20, { 0, 2, 1, 3, 4, 5 }
uselistorder i64 %19, { 1, 0 }
uselistorder i128 %15, { 2, 1, 0 }
uselistorder i64* %sv_3, { 1, 0, 2 }
uselistorder i64* %sv_2, { 1, 0, 2 }
uselistorder i32* %storemerge14.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.33.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rcx.4.reg2mem, { 0, 1, 5, 4, 6, 2, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64, i64, i64*)* @Jsi_GetNumberFromValue, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @Jsi_ValueArrayIndex, { 2, 1, 0 }
uselistorder i32 0, { 4, 2, 5, 6, 7, 8, 3, 9, 0, 10, 1, 11 }
uselistorder i64 %arg3, { 1, 0, 2 }
uselistorder i64 %arg2, { 0, 3, 2, 1 }
uselistorder i64 %arg1, { 4, 3, 2, 1, 0, 5, 8, 7, 6, 9 }
uselistorder label LBL_19, { 1, 0, 2 }
uselistorder label LBL_13, { 1, 0 }
} | 0 |
BinRealVul | parse_config_7789 | parse_config | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.reg2mem26 = alloca i64
%.reg2mem24 = alloca i64
%.reg2mem = alloca i64
%sv_1 = alloca i8*, align 8
%sv_2 = alloca i64, align 8
store i64 0, i64* %sv_2, align 8
store i8* null, i8** %sv_1, align 8
%0 = bitcast i8** %sv_1 to i64*
%1 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_2, i64* nonnull %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_57
LBL_1:
%5 = ptrtoint i64* %arg3 to i64
%6 = load i64, i64* %sv_2, align 8
%7 = add i64 %5, 8
%8 = call i64 @FUNC(i64 %6, i64 %7, i64 %6)
%9 = load i8*, i8** %sv_1, align 8
%10 = call i32 @strcmp(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_12, label LBL_2
LBL_2:
%13 = icmp eq i64 %arg2, 0
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = call i64 @FUNC(i64 %arg1)
store i64 %15, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_4:
%16 = call i64 @FUNC(i64 %arg2)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = call i64 @FUNC(i64 %arg1, i64 %arg2)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_6:
%20 = add i64 %5, 28
%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
%.pre19 = inttoptr i64 %8 to i64*
%.pr = load i64, i64* %.pre19, align 8
%25 = icmp eq i64 %.pr, 0
br i1 %24, label LBL_9, label LBL_7
LBL_7:
store i64 0, i64* %.reg2mem
br i1 %25, label LBL_11, label LBL_8
LBL_8:
%26 = add i64 %8, 48
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = add i64 %5, 32
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i64 @FUNC(i64 %31, i64 %28, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_9:
store i64 0, i64* %.reg2mem
br i1 %25, label LBL_11, label LBL_10
LBL_10:
%33 = call i64 @FUNC(i64 %6, i64 %8)
%.pre = load i64, i64* %.pre19, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_11
LBL_11:
%.reload = load i64, i64* %.reg2mem
%34 = call i64 @FUNC(i64 %.reload)
%35 = call i64 @FUNC(i64 %arg2)
store i64 %35, i64* %.pre19, align 8
%36 = call i64 @FUNC(i64 %8, i64 %8)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_12:
%37 = load i8*, i8** %sv_1, align 8
%38 = call i32 @strcmp(i8* %37, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_1, i64 0, i64 0))
%39 = icmp eq i32 %38, 0
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_17, label LBL_13
LBL_13:
%41 = call i64 @FUNC(i64 %7)
%42 = add i64 %5, 28
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
%.pre15 = add i64 %8, 8
%.pre17 = inttoptr i64 %.pre15 to i32*
br i1 %46, label LBL_16, label LBL_14
LBL_14:
%47 = load i32, i32* %.pre17, align 4
%48 = icmp eq i32 %47, 0
br i1 %48, label LBL_16, label LBL_15
LBL_15:
%49 = add i64 %8, 48
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = add i64 %5, 32
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = call i64 @FUNC(i64 %54, i64 %51, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_1, i64 0, i64 0))
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_16:
%56 = trunc i64 %41 to i32
%57 = call i64 @FUNC(i64 %arg1, i64 %arg2, i32 %56)
%58 = trunc i64 %57 to i32
store i32 %58, i32* %.pre17, align 4
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_17:
%59 = load i8*, i8** %sv_1, align 8
%60 = call i32 @strcmp(i8* %59, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%61 = icmp eq i32 %60, 0
%62 = icmp eq i1 %61, false
br i1 %62, label LBL_29, label LBL_18
LBL_18:
%63 = icmp eq i64 %arg2, 0
%64 = icmp eq i1 %63, false
br i1 %64, label LBL_20, label LBL_19
LBL_19:
%65 = call i64 @FUNC(i64 %arg1)
store i64 %65, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_20:
%66 = add i64 %5, 28
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = icmp eq i32 %68, 0
%70 = icmp eq i1 %69, false
br i1 %70, label LBL_23, label LBL_21
LBL_21:
%71 = add i64 %8, 16
%72 = inttoptr i64 %71 to i64*
%73 = load i64, i64* %72, align 8
%74 = icmp eq i64 %73, 0
br i1 %74, label LBL_23, label LBL_22
LBL_22:
%75 = add i64 %8, 48
%76 = inttoptr i64 %75 to i64*
%77 = load i64, i64* %76, align 8
%78 = add i64 %5, 32
%79 = inttoptr i64 %78 to i64*
%80 = load i64, i64* %79, align 8
%81 = call i64 @FUNC(i64 %80, i64 %77, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_23:
%82 = inttoptr i64 %arg2 to i8*
%83 = call i32 @strcmp(i8* %82, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_3, i64 0, i64 0))
%84 = icmp eq i32 %83, 0
br i1 %84, label LBL_28, label LBL_24
LBL_24:
%85 = call i32 @strcmp(i8* %82, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0))
%86 = icmp eq i32 %85, 0
br i1 %86, label LBL_28, label LBL_25
LBL_25:
%87 = call i32 @strcmp(i8* %82, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0))
%88 = icmp eq i32 %87, 0
br i1 %88, label LBL_28, label LBL_26
LBL_26:
%89 = call i32 @strcmp(i8* %82, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0))
%90 = icmp eq i32 %89, 0
br i1 %90, label LBL_28, label LBL_27
LBL_27:
%91 = load i64, i64* %sv_2, align 8
%92 = call i64 @FUNC(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @gv_7, i64 0, i64 0), i64 %arg2, i64 %91)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_28:
%93 = add i64 %8, 16
%94 = inttoptr i64 %93 to i64*
%95 = load i64, i64* %94, align 8
%96 = call i64 @FUNC(i64 %95)
%97 = call i64 @FUNC(i64 %arg2)
store i64 %97, i64* %94, align 8
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_29:
%98 = load i8*, i8** %sv_1, align 8
%99 = call i32 @strcmp(i8* %98, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_8, i64 0, i64 0))
%100 = icmp eq i32 %99, 0
%101 = icmp eq i1 %100, false
br i1 %101, label LBL_38, label LBL_30
LBL_30:
%102 = icmp eq i64 %arg2, 0
%103 = icmp eq i1 %102, false
br i1 %103, label LBL_32, label LBL_31
LBL_31:
%104 = call i64 @FUNC(i64 %arg1)
store i64 %104, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_32:
%105 = call i64 @FUNC(i64 %arg2)
%106 = trunc i64 %105 to i32
%107 = icmp eq i32 %106, 0
br i1 %107, label LBL_34, label LBL_33
LBL_33:
%108 = call i64 @FUNC(i64 %arg1, i64 %arg2)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_34:
%109 = add i64 %5, 28
%110 = inttoptr i64 %109 to i32*
%111 = load i32, i32* %110, align 4
%112 = icmp eq i32 %111, 0
%113 = icmp eq i1 %112, false
%.pre11 = add i64 %8, 24
%.pre13 = inttoptr i64 %.pre11 to i64*
%.pre22 = load i64, i64* %.pre13, align 8
store i64 %.pre22, i64* %.reg2mem24
br i1 %113, label LBL_37, label LBL_35
LBL_35:
%114 = icmp eq i64 %.pre22, 0
store i64 0, i64* %.reg2mem24
br i1 %114, label LBL_37, label LBL_36
LBL_36:
%115 = add i64 %8, 48
%116 = inttoptr i64 %115 to i64*
%117 = load i64, i64* %116, align 8
%118 = add i64 %5, 32
%119 = inttoptr i64 %118 to i64*
%120 = load i64, i64* %119, align 8
%121 = call i64 @FUNC(i64 %120, i64 %117, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_8, i64 0, i64 0))
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_37:
%.reload25 = load i64, i64* %.reg2mem24
%122 = call i64 @FUNC(i64 %.reload25)
%123 = call i64 @FUNC(i64 %arg2)
store i64 %123, i64* %.pre13, align 8
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_38:
%124 = load i8*, i8** %sv_1, align 8
%125 = call i32 @strcmp(i8* %124, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_9, i64 0, i64 0))
%126 = icmp eq i32 %125, 0
%127 = icmp eq i1 %126, false
br i1 %127, label LBL_46, label LBL_39
LBL_39:
%128 = icmp eq i64 %arg2, 0
%129 = icmp eq i1 %128, false
br i1 %129, label LBL_41, label LBL_40
LBL_40:
%130 = call i64 @FUNC(i64 %arg1)
store i64 %130, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_41:
%131 = add i64 %5, 28
%132 = inttoptr i64 %131 to i32*
%133 = load i32, i32* %132, align 4
%134 = icmp eq i32 %133, 0
%135 = icmp eq i1 %134, false
%.pre9 = add i64 %8, 32
br i1 %135, label LBL_44, label LBL_42
LBL_42:
%136 = inttoptr i64 %.pre9 to i32*
%137 = load i32, i32* %136, align 4
%138 = icmp eq i32 %137, 0
br i1 %138, label LBL_44, label LBL_43
LBL_43:
%139 = add i64 %8, 48
%140 = inttoptr i64 %139 to i64*
%141 = load i64, i64* %140, align 8
%142 = add i64 %5, 32
%143 = inttoptr i64 %142 to i64*
%144 = load i64, i64* %143, align 8
%145 = call i64 @FUNC(i64 %144, i64 %141, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_9, i64 0, i64 0))
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_44:
%146 = call i64 @FUNC(i64 %arg2, i64 %.pre9)
%147 = trunc i64 %146 to i32
%148 = icmp slt i32 %147, 0
%149 = icmp eq i1 %148, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %149, label LBL_56, label LBL_45
LBL_45:
%150 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @globalFUNCvarFUNC40209a, i64 0, i64 0))
%151 = call i64 @FUNC(i64 %150, i64 %arg1)
unreachable
LBL_46:
%152 = load i8*, i8** %sv_1, align 8
%153 = call i32 @strcmp(i8* %152, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_10, i64 0, i64 0))
%154 = icmp eq i32 %153, 0
%155 = icmp eq i1 %154, false
br i1 %155, label LBL_51, label LBL_47
LBL_47:
%156 = add i64 %5, 28
%157 = inttoptr i64 %156 to i32*
%158 = load i32, i32* %157, align 4
%159 = icmp eq i32 %158, 0
%160 = icmp eq i1 %159, false
%.pre5 = add i64 %8, 36
%.pre7 = inttoptr i64 %.pre5 to i32*
br i1 %160, label LBL_50, label LBL_48
LBL_48:
%161 = load i32, i32* %.pre7, align 4
%162 = icmp eq i32 %161, -1
br i1 %162, label LBL_50, label LBL_49
LBL_49:
%163 = add i64 %8, 48
%164 = inttoptr i64 %163 to i64*
%165 = load i64, i64* %164, align 8
%166 = add i64 %5, 32
%167 = inttoptr i64 %166 to i64*
%168 = load i64, i64* %167, align 8
%169 = call i64 @FUNC(i64 %168, i64 %165, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_10, i64 0, i64 0))
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_50:
%170 = call i64 @FUNC(i64 %arg1, i64 %arg2)
%171 = trunc i64 %170 to i32
store i32 %171, i32* %.pre7, align 4
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_51:
%172 = load i8*, i8** %sv_1, align 8
%173 = call i32 @strcmp(i8* %172, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_11, i64 0, i64 0))
%174 = icmp eq i32 %173, 0
%175 = icmp eq i1 %174, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %175, label LBL_56, label LBL_52
LBL_52:
%176 = add i64 %5, 28
%177 = inttoptr i64 %176 to i32*
%178 = load i32, i32* %177, align 4
%179 = icmp eq i32 %178, 0
%180 = icmp eq i1 %179, false
%.pre2 = add i64 %8, 40
%.pre3 = inttoptr i64 %.pre2 to i64*
%.pre23 = load i64, i64* %.pre3, align 8
store i64 %.pre23, i64* %.reg2mem26
br i1 %180, label LBL_55, label LBL_53
LBL_53:
%181 = icmp eq i64 %.pre23, 0
store i64 0, i64* %.reg2mem26
br i1 %181, label LBL_55, label LBL_54
LBL_54:
%182 = add i64 %8, 48
%183 = inttoptr i64 %182 to i64*
%184 = load i64, i64* %183, align 8
%185 = add i64 %5, 32
%186 = inttoptr i64 %185 to i64*
%187 = load i64, i64* %186, align 8
%188 = call i64 @FUNC(i64 %187, i64 %184, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_11, i64 0, i64 0))
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_55:
%.reload27 = load i64, i64* %.reg2mem26
%189 = call i64 @FUNC(i64 %.reload27)
%190 = call i64 @FUNC(i64 %arg2)
store i64 %190, i64* %.pre3, align 8
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_56
LBL_56:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%191 = call i64 @FUNC(i64* nonnull %sv_2)
%192 = call i64 @FUNC(i64* nonnull %0)
%193 = and i64 %sv_0.0.reload, 4294967295
store i64 %193, i64* %storemerge.reg2mem
br label LBL_57
LBL_57:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %.pre23, { 1, 0 }
uselistorder i64* %.pre3, { 1, 0 }
uselistorder i64 %.pre22, { 1, 0 }
uselistorder i64* %.pre13, { 1, 0 }
uselistorder i1 %25, { 1, 0 }
uselistorder i64 %8, { 17, 5, 16, 4, 15, 3, 14, 2, 13, 12, 11, 10, 1, 7, 8, 9, 6, 0 }
uselistorder i64 %6, { 0, 2, 1 }
uselistorder i64 %5, { 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 2, 3, 1, 0, 14 }
uselistorder i64* %sv_2, { 0, 2, 3, 1, 4 }
uselistorder i8** %sv_1, { 7, 6, 5, 4, 3, 2, 1, 8, 0 }
uselistorder i64* %.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %.reg2mem24, { 0, 2, 1 }
uselistorder i64* %.reg2mem26, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 21, 20, 22, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64*)* @strbuf_release, { 1, 0 }
uselistorder i64 (i64)* @xstrdup, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @free, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i8*)* @warn_multiple_config, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 32, { 1, 2, 3, 0, 4, 5, 6, 7, 8 }
uselistorder i64 (i64, i64)* @warn_command_line_option, { 1, 0 }
uselistorder i64 (i64)* @looks_like_command_line_option, { 1, 0 }
uselistorder i64 (i64)* @config_error_nonbool, { 3, 2, 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg2, { 16, 15, 13, 14, 10, 9, 12, 11, 6, 5, 7, 8, 4, 1, 0, 3, 2 }
uselistorder i64 %arg1, { 8, 7, 6, 5, 4, 3, 2, 1, 0, 9 }
uselistorder label LBL_57, { 1, 0 }
uselistorder label LBL_55, { 1, 0 }
uselistorder label LBL_50, { 1, 0 }
uselistorder label LBL_44, { 1, 0 }
uselistorder label LBL_37, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_11, { 1, 2, 0 }
} | 1 |
BinRealVul | iSLT_Write_11905 | iSLT_Write | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_4
LBL_1:
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 %2)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = and i64 %4, 4294967295
store i64 %7, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%8 = call i64 @FUNC(i64 %2, i64 %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | free_user_ns_4462 | free_user_ns | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = add i64 %arg1, 4
%1 = inttoptr i64 %0 to i32*
%2 = load i32, i32* %1, align 4
%3 = zext i32 %2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %arg1)
ret i64 %5
} | 0 |
BinRealVul | X509_VERIFY_PARAM_lookup_8414 | X509_VERIFY_PARAM_lookup | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
store i64 %arg1, i64* %sv_0, align 8
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
br i1 %1, label LBL_3, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0)
%3 = icmp eq i64 %2, -1
br i1 %3, label LBL_3, label LBL_2
LBL_2:
%4 = load i64, i64* @gv_0, align 8
%5 = call i64 @FUNC(i64 %4, i64 %2)
store i64 %5, i64* %rax.0.reg2mem
br label LBL_6
LBL_3:
%6 = inttoptr i64 %arg1 to i8*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%7 = mul i64 %indvars.iv.reload, 8
%8 = add i64 %7, ptrtoint ([3 x i8*]* @gv_1 to i64)
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i8*
%12 = call i32 @strcmp(i8* %11, i8* %6)
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i64 %8, i64* %rax.0.reg2mem
br i1 %14, label LBL_5, label LBL_6
LBL_5:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%15 = icmp ult i64 %indvars.iv.next, 3
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_4, label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i32 0, { 6, 0, 1, 2, 3, 4, 5 }
uselistorder i64 -1, { 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder label LBL_6, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | sdhci_initfn_16424 | sdhci_initfn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 0)
%3 = icmp eq i64 %2, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = inttoptr i64 %2 to i64*
%5 = load i64, i64* %4, align 8
store i64 %5, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%6 = call i64 @FUNC(i64 %storemerge.reload, i64 0)
%7 = inttoptr i64 %1 to i64*
store i64 %6, i64* %7, align 8
%8 = icmp eq i64 %6, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
call void @exit(i32 1)
unreachable
LBL_4:
%10 = call i64 @FUNC(i64 4198849, i64 %1, i64 1)
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = add i64 %1, 8
%14 = inttoptr i64 %13 to i64*
store i64 %12, i64* %14, align 8
%15 = call i64 @FUNC(i64 4198856, i64 %1, i64 1)
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = add i64 %1, 16
%19 = inttoptr i64 %18 to i64*
store i64 %17, i64* %19, align 8
%20 = load i64, i64* %14, align 8
%21 = load i64, i64* %7, align 8
%22 = call i64 @FUNC(i64 %21, i64 %17, i64 %20)
%23 = call i64 @FUNC(i64 0, i64 4198835, i64 %1)
%24 = add i64 %1, 24
%25 = inttoptr i64 %24 to i64*
store i64 %23, i64* %25, align 8
%26 = call i64 @FUNC(i64 0, i64 4198842, i64 %1)
%27 = add i64 %1, 32
%28 = inttoptr i64 %27 to i64*
store i64 %26, i64* %28, align 8
ret i64 %26
uselistorder i64 %26, { 1, 0 }
uselistorder i64 %1, { 1, 0, 2, 3, 5, 4, 6, 7, 8 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64)* @timer_new_ns, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @qemu_allocate_irqs, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | stonith_cleanup_18891 | stonith_cleanup | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %0)
br label LBL_2
LBL_2:
%3 = call i64 @FUNC()
%4 = call i64 @FUNC()
%5 = load i64, i64* @gv_1, align 8
%6 = inttoptr i64 %5 to i64*
call void @free(i64* %6)
ret i64 ptrtoint (i32* @0 to i64)
} | 1 |
BinRealVul | teletext_close_decoder_13990 | teletext_close_decoder | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i32 %3)
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
%10 = add i64 %2, 8
br i1 %9, label LBL_1, label LBL_3
LBL_1:
%11 = inttoptr i64 %10 to i64*
store i32 %7, i32* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i32, i32* %.reg2mem
%12 = load i64, i64* %11, align 8
%13 = add i32 %.reload, -1
store i32 %13, i32* %6, align 4
%14 = sext i32 %13 to i64
%15 = mul i64 %14, 8
%16 = add i64 %15, %12
%17 = call i64 @FUNC(i64 %16)
%18 = load i32, i32* %6, align 4
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
store i32 %18, i32* %.reg2mem
br i1 %20, label LBL_2, label LBL_3
LBL_3:
%21 = call i64 @FUNC(i64 %10)
%22 = add i64 %2, 16
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %24)
%26 = add i64 %2, 24
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = call i64 @FUNC(i64 %28)
store i64 0, i64* %23, align 8
store i64 0, i64* %27, align 8
%30 = add i64 %2, 32
%31 = inttoptr i64 %30 to i32*
store i32 0, i32* %31, align 4
ret i64 0
uselistorder i32* %6, { 2, 1, 0 }
uselistorder i64 %2, { 0, 1, 3, 4, 2, 5 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | jpc_pi_next_8153 | jpc_pi_next | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.in.reg2mem = alloca i64
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 21
%2 = inttoptr i64 %1 to i8*
%3 = add i64 %0, 24
%4 = inttoptr i64 %3 to i64*
%5 = bitcast i64* %rdi to i32*
%6 = bitcast i64* %arg1 to i32*
%7 = add i64 %0, 4
%8 = inttoptr i64 %7 to i32*
%9 = add i64 %0, 8
%10 = inttoptr i64 %9 to i32*
%11 = add i64 %0, 12
%12 = inttoptr i64 %11 to i32*
%13 = add i64 %0, 16
%14 = inttoptr i64 %13 to i32*
%15 = add i64 %0, 20
%16 = inttoptr i64 %15 to i8*
%17 = add i64 %0, 40
%18 = inttoptr i64 %17 to i64*
%19 = add i64 %0, 32
br label LBL_1
LBL_1:
store i8 0, i8* %2, align 1
%20 = load i64, i64* %4, align 8
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
store i64 %20, i64* %.reg2mem
br i1 %22, label LBL_6, label LBL_2
LBL_2:
%23 = load i32, i32* %5, align 8
%24 = add i32 %23, 1
store i32 %24, i32* %6, align 4
store i32 0, i32* %8, align 4
store i32 0, i32* %10, align 4
store i32 0, i32* %12, align 4
store i32 0, i32* %14, align 4
store i8 1, i8* %16, align 1
%25 = load i32, i32* %5, align 8
%26 = zext i32 %25 to i64
%27 = load i64, i64* %18, align 8
%28 = call i64 @FUNC(i64 %27)
%29 = icmp sgt i64 %28, %26
%30 = load i64, i64* %18, align 8
br i1 %29, label LBL_3, label LBL_4
LBL_3:
%31 = call i64 @FUNC(i64 %30, i64 %26)
store i64 %31, i64* %4, align 8
store i64 %31, i64* %.reg2mem
br label LBL_6
LBL_4:
%32 = call i64 @FUNC(i64 %30)
%33 = trunc i64 %32 to i32
%34 = icmp eq i32 %25, %33
%35 = icmp eq i1 %34, false
store i64 1, i64* %storemerge.reg2mem
br i1 %35, label LBL_15, label LBL_5
LBL_5:
store i64 %19, i64* %4, align 8
store i64 %19, i64* %.reg2mem
br label LBL_6
LBL_6:
%.reload = load i64, i64* %.reg2mem
%36 = inttoptr i64 %.reload to i32*
%37 = load i32, i32* %36, align 4
%38 = zext i32 %37 to i64
store i64 %38, i64* @0, align 8
switch i32 %37, label LBL_14 [
i32 0, label LBL_7
i32 1, label LBL_8
i32 2, label LBL_9
i32 3, label LBL_10
i32 4, label LBL_11
]
LBL_7:
%39 = call i64 @FUNC(i64 %0)
store i64 %39, i64* %sv_0.0.in.reg2mem
br label LBL_12
LBL_8:
%40 = call i64 @FUNC(i64 %0)
store i64 %40, i64* %sv_0.0.in.reg2mem
br label LBL_12
LBL_9:
%41 = call i64 @FUNC(i64 %0)
store i64 %41, i64* %sv_0.0.in.reg2mem
br label LBL_12
LBL_10:
%42 = call i64 @FUNC(i64 %0)
store i64 %42, i64* %sv_0.0.in.reg2mem
br label LBL_12
LBL_11:
%43 = call i64 @FUNC(i64 %0)
store i64 %43, i64* %sv_0.0.in.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%sv_0.0 = trunc i64 %sv_0.0.in.reload to i32
%44 = icmp eq i32 %sv_0.0, 0
%45 = icmp eq i1 %44, false
br i1 %45, label LBL_14, label LBL_13
LBL_13:
store i8 1, i8* %2, align 1
%46 = add i64 %0, 48
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = add i32 %48, 1
store i32 %49, i32* %47, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_15
LBL_14:
store i64 0, i64* %4, align 8
br label LBL_1
LBL_15:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %4, { 2, 0, 1, 3 }
uselistorder i64 %0, { 12, 11, 10, 9, 8, 7, 0, 1, 2, 3, 4, 5, 6, 13, 14 }
uselistorder i64* %.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_0.0.in.reg2mem, { 0, 5, 4, 3, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @jpc_pchglist_numpchgs, { 1, 0 }
uselistorder i32 0, { 1, 0, 2, 3, 4, 5 }
uselistorder i8 0, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
} | 0 |
BinRealVul | opj_pi_next_lrcp_9025 | opj_pi_next_lrcp | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%.reg2mem25 = alloca i32
%.reg2mem23 = alloca i32
%.pre-phi3.reg2mem = alloca i64
%.reg2mem21 = alloca i32
%.pre-phi5.reg2mem = alloca i64
%.pre-phi7.reg2mem = alloca i32*
%.reg2mem19 = alloca i32
%.pre-phi4.reg2mem = alloca i64
%.reg2mem17 = alloca i32
%.pre-phi9.reg2mem = alloca i64
%.pre-phi11.reg2mem = alloca i32*
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_0.LBL_11_crit_edge
LBL_1:
%.pre8 = add i64 %2, 16
%.pre10 = inttoptr i64 %.pre8 to i32*
%.pre15 = load i32, i32* %.pre10, align 4
store i32 %.pre15, i32* %.reg2mem
store i32* %.pre10, i32** %.pre-phi11.reg2mem
store i64 %.pre8, i64* %.pre-phi9.reg2mem
br label LBL_11
LBL_2:
%6 = bitcast i64* %arg1 to i32*
store i32 0, i32* %6, align 4
%7 = add i64 %2, 48
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %2, 4
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 4
store i32 %9, i32* %.reg2mem25
br label LBL_19
LBL_3:
%12 = add i64 %2, 56
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i64 %2, 8
%16 = inttoptr i64 %15 to i32*
store i32 %14, i32* %16, align 4
store i32 %14, i32* %.reg2mem23
br label LBL_17
LBL_4:
%17 = add i64 %2, 64
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = add i64 %2, 12
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
store i32 %19, i32* %.reg2mem21
store i64 %20, i64* %.pre-phi3.reg2mem
br label LBL_15
LBL_5:
%.pre-phi3.reload = load i64, i64* %.pre-phi3.reg2mem
%22 = inttoptr i64 %.pre-phi3.reload to i32*
%23 = add i64 %2, 80
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = zext i32 %.reload22 to i64
%27 = mul i64 %26, 16
%28 = add i64 %25, %27
%29 = add i64 %2, 8
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = inttoptr i64 %28 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp ult i32 %31, %33
%35 = icmp eq i1 %34, false
store i32 %.reload22, i32* %.reg2mem19
store i32* %22, i32** %.pre-phi7.reg2mem
store i64 %.pre-phi3.reload, i64* %.pre-phi5.reg2mem
br i1 %35, label LBL_14, label LBL_6
LBL_6:
%36 = add i64 %2, 36
%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_8, label LBL_7
LBL_7:
%41 = add i64 %28, 8
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = zext i32 %31 to i64
%45 = mul i64 %44, 8
%46 = add i64 %43, %45
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = add i64 %46, 4
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = mul i32 %51, %48
%53 = add i64 %2, 76
%54 = inttoptr i64 %53 to i32*
store i32 %52, i32* %54, align 4
br label LBL_8
LBL_8:
%55 = add i64 %2, 72
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = add i64 %2, 16
%59 = inttoptr i64 %58 to i32*
store i32 %57, i32* %59, align 4
store i32 %57, i32* %.reg2mem17
store i64 %58, i64* %.pre-phi4.reg2mem
br label LBL_12
LBL_9:
%.pre-phi4.reload = load i64, i64* %.pre-phi4.reg2mem
%60 = inttoptr i64 %.pre-phi4.reload to i32*
%61 = add i64 %2, 4
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = add i64 %2, 20
%65 = inttoptr i64 %64 to i32*
%66 = load i32, i32* %65, align 4
%67 = mul i32 %66, %63
%68 = add i64 %2, 8
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = add i64 %2, 24
%72 = inttoptr i64 %71 to i32*
%73 = load i32, i32* %72, align 4
%74 = mul i32 %73, %70
%75 = add i64 %2, 32
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = mul i32 %77, %.reload18
%79 = add i64 %2, 12
%80 = inttoptr i64 %79 to i32*
%81 = load i32, i32* %80, align 4
%82 = add i64 %2, 28
%83 = inttoptr i64 %82 to i32*
%84 = load i32, i32* %83, align 4
%85 = mul i32 %84, %81
%86 = add i32 %74, %67
%87 = add i32 %86, %78
%88 = add i32 %87, %85
%89 = add i64 %2, 40
%90 = inttoptr i64 %89 to i64*
%91 = load i64, i64* %90, align 8
%92 = zext i32 %88 to i64
%93 = mul i64 %92, 4
%94 = add i64 %93, %91
%95 = inttoptr i64 %94 to i32*
%96 = load i32, i32* %95, align 4
%97 = icmp eq i32 %96, 0
%98 = icmp eq i1 %97, false
store i32 %.reload18, i32* %.reg2mem
store i32* %60, i32** %.pre-phi11.reg2mem
store i64 %.pre-phi4.reload, i64* %.pre-phi9.reg2mem
br i1 %98, label LBL_11, label LBL_10
LBL_10:
store i32 1, i32* %95, align 4
store i64 1, i64* %storemerge.reg2mem
br label LBL_20
LBL_11:
%.pre-phi9.reload = load i64, i64* %.pre-phi9.reg2mem
%.pre-phi11.reload = load i32*, i32** %.pre-phi11.reg2mem
%.reload = load i32, i32* %.reg2mem
%99 = add i32 %.reload, 1
store i32 %99, i32* %.pre-phi11.reload, align 4
store i32 %99, i32* %.reg2mem17
store i64 %.pre-phi9.reload, i64* %.pre-phi4.reg2mem
br label LBL_12
LBL_12:
%.reload18 = load i32, i32* %.reg2mem17
%100 = add i64 %2, 76
%101 = inttoptr i64 %100 to i32*
%102 = load i32, i32* %101, align 4
%103 = icmp ult i32 %.reload18, %102
br i1 %103, label LBL_9, label LBL_12.LBL_14_crit_edge
LBL_13:
%.pre = add i64 %2, 12
%.pre6 = inttoptr i64 %.pre to i32*
%.pre16 = load i32, i32* %.pre6, align 4
store i32 %.pre16, i32* %.reg2mem19
store i32* %.pre6, i32** %.pre-phi7.reg2mem
store i64 %.pre, i64* %.pre-phi5.reg2mem
br label LBL_14
LBL_14:
%.pre-phi5.reload = load i64, i64* %.pre-phi5.reg2mem
%.pre-phi7.reload = load i32*, i32** %.pre-phi7.reg2mem
%.reload20 = load i32, i32* %.reg2mem19
%104 = add i32 %.reload20, 1
store i32 %104, i32* %.pre-phi7.reload, align 4
store i32 %104, i32* %.reg2mem21
store i64 %.pre-phi5.reload, i64* %.pre-phi3.reg2mem
br label LBL_15
LBL_15:
%.reload22 = load i32, i32* %.reg2mem21
%105 = add i64 %2, 68
%106 = inttoptr i64 %105 to i32*
%107 = load i32, i32* %106, align 4
%108 = icmp ult i32 %.reload22, %107
br i1 %108, label LBL_5, label LBL_16
LBL_16:
%109 = add i64 %2, 8
%110 = inttoptr i64 %109 to i32*
%111 = load i32, i32* %110, align 4
%112 = add i32 %111, 1
store i32 %112, i32* %110, align 4
store i32 %112, i32* %.reg2mem23
br label LBL_17
LBL_17:
%.reload24 = load i32, i32* %.reg2mem23
%113 = add i64 %2, 60
%114 = inttoptr i64 %113 to i32*
%115 = load i32, i32* %114, align 4
%116 = icmp ult i32 %.reload24, %115
br i1 %116, label LBL_4, label LBL_18
LBL_18:
%117 = add i64 %2, 4
%118 = inttoptr i64 %117 to i32*
%119 = load i32, i32* %118, align 4
%120 = add i32 %119, 1
store i32 %120, i32* %118, align 4
store i32 %120, i32* %.reg2mem25
br label LBL_19
LBL_19:
%.reload26 = load i32, i32* %.reg2mem25
%121 = add i64 %2, 52
%122 = inttoptr i64 %121 to i32*
%123 = load i32, i32* %122, align 4
%124 = icmp ult i32 %.reload26, %123
store i64 0, i64* %storemerge.reg2mem
br i1 %124, label LBL_3, label LBL_20
LBL_20:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %.reload22, { 1, 0, 2 }
uselistorder i32 %.reload18, { 1, 0, 2 }
uselistorder i64 %.pre-phi4.reload, { 1, 0 }
uselistorder i64 %.pre-phi3.reload, { 1, 0 }
uselistorder i64 %2, { 23, 20, 19, 17, 16, 1, 3, 2, 9, 10, 8, 6, 7, 4, 5, 12, 11, 14, 13, 15, 18, 21, 22, 24, 25, 27, 26, 0 }
uselistorder i64* %.pre-phi4.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem19, { 0, 2, 1 }
uselistorder i32** %.pre-phi7.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre-phi5.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre-phi3.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem25, { 0, 2, 1 }
uselistorder i64 76, { 1, 0 }
uselistorder i64 12, { 0, 2, 1 }
uselistorder i64 16, { 2, 0, 1 }
uselistorder i1 false, { 2, 0, 1, 3 }
uselistorder i32 0, { 1, 0, 2, 3 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
} | 0 |
BinRealVul | vidioc_fill_name_19165 | vidioc_fill_name | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.in.reg2mem = alloca i32
%0 = sext i32 %arg3 to i64
%1 = mul i64 %0, 8
%2 = add i64 %1, ptrtoint (i64* @gv_0 to i64)
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
%6 = trunc i64 %arg2 to i32
%7 = bitcast i64* %arg1 to i8*
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%8 = inttoptr i64 %4 to i8*
%9 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %7, i32 %6, i8* %8)
store i32 %9, i32* %storemerge.in.reg2mem
br label LBL_3
LBL_2:
%10 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %7, i32 %6, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_1, i64 0, i64 0), i32 %arg3)
store i32 %10, i32* %storemerge.in.reg2mem
br label LBL_3
LBL_3:
%storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem
%storemerge = sext i32 %storemerge.in.reload to i64
ret i64 %storemerge
uselistorder i8* %7, { 1, 0 }
uselistorder i32 %6, { 1, 0 }
uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 1, 0 }
} | 1 |
BinRealVul | dec_scall_15937 | dec_scall | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 7
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0))
br label LBL_5
LBL_2:
%7 = icmp eq i32 %3, 2
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0))
br label LBL_5
LBL_4:
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0))
unreachable
LBL_5:
%14 = add i64 %2, 16
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = load i64, i64* @gv_3, align 8
%18 = call i64 @FUNC(i64 %17, i64 %16)
br i1 %5, label LBL_7, label LBL_6
LBL_6:
%19 = call i64 @FUNC(i64 %2, i64 1)
store i64 %19, i64* %storemerge.reg2mem
br label LBL_8
LBL_7:
%20 = call i64 @FUNC(i64 %2, i64 2)
store i64 %20, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %2, { 1, 2, 0, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @t_gen_raise_exception, { 1, 0 }
uselistorder i64 (i8*)* @LOG_DIS, { 1, 0 }
} | 1 |
BinRealVul | v9fs_symlink_1969 | v9fs_symlink | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%2 = load i64, i64* %0
%3 = ptrtoint i32* %arg1 to i64
%4 = load i32, i32* %1
%5 = load i32, i32* %1
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%6 = load i32, i32* %1
%sv_3 = alloca i32, align 4
%sv_4 = alloca i64, align 8
%sv_5 = alloca i8*, align 8
%7 = bitcast i8** %sv_5 to i64*
%8 = call i64 @FUNC(i64* nonnull %7)
%9 = call i64 @FUNC(i64* nonnull %sv_4)
%10 = bitcast i32* %sv_3 to i64*
%11 = call i64 @FUNC(i64 %3, i64 7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %10, i64* nonnull %7, i64* nonnull %sv_4)
%12 = trunc i64 %11 to i32
%13 = icmp slt i32 %12, 0
store i64 %11, i64* %sv_0.1.reg2mem
br i1 %13, label LBL_9, label LBL_1
LBL_1:
%14 = load i64, i64* %sv_4, align 8
%15 = load i8*, i8** %sv_5, align 8
%16 = ptrtoint i8* %15 to i64
%17 = load i32, i32* %sv_3, align 4
%18 = zext i32 %17 to i64
%19 = add i64 %3, 4
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = zext i32 %6 to i64
%23 = and i64 %2, 4294967295
%24 = call i64 @FUNC(i64 %23, i32 %21, i64 %18, i64 %16, i64 %14, i64 %22)
%25 = load i8*, i8** %sv_5, align 8
%26 = ptrtoint i8* %25 to i64
%27 = call i64 @FUNC(i64 %26)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
store i64 4294967294, i64* %sv_0.1.reg2mem
br i1 %29, label LBL_2, label LBL_9
LBL_2:
%30 = load i8*, i8** %sv_5, align 8
%31 = call i32 @strcmp(i8* inttoptr (i64 4202517 to i8*), i8* %30)
%32 = icmp eq i32 %31, 0
store i64 4294967279, i64* %sv_0.1.reg2mem
br i1 %32, label LBL_9, label LBL_3
LBL_3:
%33 = load i8*, i8** %sv_5, align 8
%34 = call i32 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i8* %33)
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
store i64 4294967279, i64* %sv_0.1.reg2mem
br i1 %36, label LBL_4, label LBL_9
LBL_4:
%37 = load i32, i32* %sv_3, align 4
%38 = zext i32 %37 to i64
%39 = call i64 @FUNC(i64 %3, i64 %38)
%40 = icmp eq i64 %39, 0
%41 = icmp eq i1 %40, false
store i64 4294967274, i64* %sv_0.1.reg2mem
br i1 %41, label LBL_5, label LBL_9
LBL_5:
%42 = load i64, i64* %sv_4, align 8
%43 = call i64 @FUNC(i64 %3, i64 %39, i64* nonnull %7, i64 %42, i64 %22, i64* nonnull %sv_2)
%44 = trunc i64 %43 to i32
%45 = icmp slt i32 %44, 0
store i64 %43, i64* %sv_0.0.reg2mem
br i1 %45, label LBL_8, label LBL_6
LBL_6:
%46 = bitcast i32* %sv_1 to i64*
%47 = call i64 @FUNC(i64* nonnull %sv_2, i64* nonnull %46)
%48 = call i64 @FUNC(i64 %3, i64 7, i64 4202522, i64* nonnull %46)
%49 = trunc i64 %48 to i32
%50 = icmp slt i32 %49, 0
store i64 %48, i64* %sv_0.0.reg2mem
br i1 %50, label LBL_8, label LBL_7
LBL_7:
%51 = add i64 %48, 7
%52 = load i32, i32* %sv_1, align 4
%53 = zext i32 %52 to i64
%54 = load i32, i32* %20, align 4
%55 = zext i32 %5 to i64
%56 = call i64 @FUNC(i64 %23, i32 %54, i64 %53, i32 %4, i64 %55)
store i64 %51, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%57 = call i64 @FUNC(i64 %3, i64 %39)
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_9
LBL_9:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%58 = and i64 %sv_0.1.reload, 4294967295
%59 = call i64 @FUNC(i64 %3, i64 %58)
%60 = call i64 @FUNC(i64* nonnull %7)
%61 = call i64 @FUNC(i64* nonnull %sv_4)
ret i64 %61
uselistorder i64 %48, { 1, 0, 2 }
uselistorder i64 %23, { 1, 0 }
uselistorder i64* %7, { 1, 0, 2, 3 }
uselistorder i8** %sv_5, { 3, 2, 1, 0, 4 }
uselistorder i64* %sv_4, { 0, 3, 4, 1, 2 }
uselistorder i32* %sv_3, { 1, 0, 2 }
uselistorder i64 %3, { 5, 1, 0, 2, 3, 4, 6 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 5, 1, 3, 2, 4, 6 }
uselistorder i32* %1, { 2, 1, 0 }
uselistorder i64 (i64*)* @v9fs_string_free, { 1, 0 }
uselistorder i64 4294967279, { 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 0 }
uselistorder i64 (i64*)* @v9fs_string_init, { 1, 0 }
uselistorder label LBL_9, { 5, 0, 2, 1, 3, 4 }
uselistorder label LBL_8, { 2, 0, 1 }
} | 0 |
BinRealVul | net_socket_fd_init_stream_5080 | net_socket_fd_init_stream | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i8* %arg3 to i64
%1 = ptrtoint i8* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %arg4 to i32
%4 = call i64 @FUNC(i64 16)
%5 = inttoptr i64 %4 to i32*
store i32 %3, i32* %5, align 4
%6 = call i64 @FUNC(i64 %2, i64 %1, i64 %0, i64 4198866, i64 0, i64 4198873, i64 %4)
%7 = add i64 %4, 8
%8 = inttoptr i64 %7 to i64*
store i64 %6, i64* %8, align 8
%9 = and i64 %arg4, 4294967295
%10 = inttoptr i64 %6 to i8*
%11 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %10, i32 256, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i64 %9)
%12 = trunc i64 %arg5 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = call i64 @FUNC(i64 %4)
br label LBL_3
LBL_2:
%15 = load i32, i32* %5, align 4
%16 = zext i32 %15 to i64
%17 = call i64 @FUNC(i64 %16, i64 0, i64 4198789, i64 %4)
br label LBL_3
LBL_3:
ret i64 %4
uselistorder i64 %4, { 1, 0, 2, 5, 3, 4 }
} | 0 |
BinRealVul | init_uni_ac_vlc_14133 | init_uni_ac_vlc | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%indvars.iv5.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 516
%3 = add i64 %1, 1404
%4 = inttoptr i64 %3 to i32*
store i64 0, i64* %indvars.iv5.reg2mem
store i32 0, i32* %storemerge4.reg2mem
br label LBL_1
LBL_1:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%indvars.iv5.reload = load i64, i64* %indvars.iv5.reg2mem
%5 = add nsw i32 %storemerge4.reload, -64
%6 = sub nsw i64 64, %indvars.iv5.reload
%7 = icmp slt i64 %6, 0
%8 = icmp eq i1 %7, false
%9 = trunc i64 %6 to i32
%10 = select i1 %8, i32 %9, i32 %5
%11 = sext i32 %10 to i64
%12 = add i32 %10, -1
%13 = icmp sgt i32 %10, 127
%14 = add i64 %indvars.iv5.reload, %0
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%15 = mul i64 %indvars.iv.reload, 4
%16 = add i64 %15, %1
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = zext i32 %18 to i64
%20 = icmp sgt i64 %11, %19
br i1 %20, label LBL_5, label LBL_3
LBL_3:
%21 = add i64 %16, 256
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = add i32 %12, %23
%25 = icmp sgt i32 %24, 110
br i1 %25, label LBL_5, label LBL_4
LBL_4:
%26 = sext i32 %24 to i64
%27 = mul i64 %26, 8
%28 = add i64 %2, %27
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = add i32 %30, 1
store i32 %31, i32* %sv_0.0.reg2mem
br label LBL_8
LBL_5:
%32 = load i32, i32* %4, align 4
br i1 %13, label LBL_7, label LBL_6
LBL_6:
%33 = add i32 %32, 14
store i32 %33, i32* %sv_0.0.reg2mem
br label LBL_8
LBL_7:
%34 = add i32 %32, 22
store i32 %34, i32* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%35 = mul i64 %indvars.iv.reload, 128
%36 = add i64 %14, %35
%37 = trunc i32 %sv_0.0.reload to i8
%38 = inttoptr i64 %36 to i8*
store i8 %37, i8* %38, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 64
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_9, label LBL_2
LBL_9:
%indvars.iv.next6 = add nuw nsw i64 %indvars.iv5.reload, 1
%39 = add nuw nsw i32 %storemerge4.reload, 1
%exitcond7 = icmp eq i64 %indvars.iv.next6, 128
store i64 %indvars.iv.next6, i64* %indvars.iv5.reg2mem
store i32 %39, i32* %storemerge4.reg2mem
br i1 %exitcond7, label LBL_10, label LBL_1
LBL_10:
ret i64 %36
uselistorder i32 %24, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64 %indvars.iv5.reload, { 0, 2, 1 }
uselistorder i64* %indvars.iv5.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | test_none_2557 | test_none | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i8*, align 8
%sv_1 = alloca i64, align 8
%0 = ptrtoint i64* %sv_1 to i64
%1 = trunc i64 %0 to i8
%2 = add i8 %1, -16
%3 = call i8 @llvm.ctpop.i8(i8 %2), !range !14
%4 = urem i8 %3, 2
%5 = icmp eq i8 %4, 0
%6 = bitcast i8** %sv_0 to i64*
%7 = call i64 @FUNC(i64* nonnull %6)
%8 = call i128 @FUNC(i64* nonnull %6)
call void @FUNC(i128 %8, i128 %8)
br i1 %5, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 48, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
%9 = call i128 @FUNC(i64* nonnull %6)
call void @FUNC(i128 %9, i128 %9)
call void @__assert_fail(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 49, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
br label LBL_3
LBL_2:
%10 = call i128 @FUNC(i64* nonnull %6)
call void @FUNC(i128 %10, i128 %10)
br label LBL_3
LBL_3:
%11 = call i128 @FUNC(i64* nonnull %6)
call void @FUNC(i128 %11, i128 %11)
br i1 %5, label LBL_5, label LBL_4
LBL_4:
call void @__assert_fail(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 50, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
br label LBL_5
LBL_5:
%12 = call i64 @FUNC(i64* nonnull %6, i64 0)
%13 = inttoptr i64 %12 to i8*
store i8* %13, i8** %sv_0, align 8
%14 = call i32 @strcmp(i8* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_5, i64 0, i64 0))
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_7, label LBL_6
LBL_6:
call void @__assert_fail(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_6, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 52, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
br label LBL_7
LBL_7:
%16 = load i8*, i8** %sv_0, align 8
%17 = bitcast i8* %16 to i64*
call void @free(i64* %17)
%18 = call i64 @FUNC(i64* nonnull %6, i64 2)
%19 = inttoptr i64 %18 to i8*
store i8* %19, i8** %sv_0, align 8
%20 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_5, i64 0, i64 0))
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_9, label LBL_8
LBL_8:
call void @__assert_fail(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_6, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 55, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
br label LBL_9
LBL_9:
%22 = load i8*, i8** %sv_0, align 8
%23 = bitcast i8* %22 to i64*
call void @free(i64* %23)
%24 = call i64 @FUNC(i64* nonnull %6, i64 0, i64 0)
%25 = inttoptr i64 %24 to i8*
store i8* %25, i8** %sv_0, align 8
%26 = call i32 @strcmp(i8* %25, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_5, i64 0, i64 0))
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_11, label LBL_10
LBL_10:
call void @__assert_fail(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_6, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i32 58, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0))
br label LBL_11
LBL_11:
%28 = load i8*, i8** %sv_0, align 8
%29 = bitcast i8* %28 to i64*
call void @free(i64* %29)
%30 = call i64 @FUNC(i64* nonnull %6)
ret i64 %30
uselistorder i128 %11, { 1, 0 }
uselistorder i128 %9, { 1, 0 }
uselistorder i128 %8, { 1, 0 }
uselistorder i64* %6, { 1, 2, 3, 4, 5, 0, 6, 7, 8 }
uselistorder i8** %sv_0, { 5, 4, 3, 2, 1, 0, 6 }
uselistorder void (i64*)* @free, { 2, 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 0, 2, 1 }
uselistorder i64 (i64*, i64)* @qdist_pr_plain, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 5, 4, 3, 2, 1, 0 }
uselistorder void (i128, i128)* @__asm_ucomisd, { 1, 0, 2, 3 }
uselistorder i32 1, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | usb_enumerate_device_otg_12823 | usb_enumerate_device_otg | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i8*, align 8
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %6, label LBL_10, label LBL_1
LBL_1:
%7 = add i64 %3, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %10, label LBL_10, label LBL_2
LBL_2:
store i8* null, i8** %sv_1, align 8
%11 = add i64 %3, 24
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = load i64, i64* %8, align 8
%15 = inttoptr i64 %14 to i16*
%16 = load i16, i16* %15, align 2
%17 = zext i16 %16 to i64
%18 = call i64 @FUNC(i64 %17)
%19 = urem i64 %18, 65536
%20 = add i64 %3, 32
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = bitcast i8** %sv_1 to i64*
%24 = call i64 @FUNC(i64 %22, i64 %19, i64 1, i64* nonnull %23)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
store i64 0, i64* %storemerge.reg2mem
br i1 %27, label LBL_11, label LBL_3
LBL_3:
%28 = load i8*, i8** %sv_1, align 8
%29 = ptrtoint i8* %28 to i64
%30 = add i64 %29, 1
%31 = inttoptr i64 %30 to i8*
%32 = load i8, i8* %31, align 1
%33 = urem i8 %32, 2
%34 = icmp eq i8 %33, 0
%35 = icmp eq i1 %34, false
store i64 0, i64* %storemerge.reg2mem
br i1 %35, label LBL_4, label LBL_11
LBL_4:
%36 = ptrtoint i8** %sv_1 to i64
%37 = add i64 %3, 4
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = icmp eq i32 %13, %39
%41 = icmp eq i1 %40, false
%42 = add i64 %3, 40
%43 = select i1 %41, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i8* bitcast (i8** @gv_1 to i8*)
%44 = call i64 @FUNC(i64 %42, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_2, i64 0, i64 0), i8* %43, i64 %36, i64 %2, i64 %1)
%45 = load i32, i32* %38, align 4
%46 = icmp eq i32 %13, %45
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_7, label LBL_5
LBL_5:
%48 = inttoptr i64 %7 to i32*
store i32 1, i32* %48, align 4
%49 = call i64 @FUNC(i64 %3, i64 0)
%50 = and i64 %49, 4294967295
%51 = call i64 @FUNC(i64 %3, i64 %50, i64 3, i64 0, i64 1, i64 0)
%52 = trunc i64 %51 to i32
%53 = icmp slt i32 %52, 0
%54 = icmp eq i1 %53, false
store i64 %51, i64* %sv_0.0.reg2mem
br i1 %54, label LBL_10, label LBL_6
LBL_6:
%55 = and i64 %51, 4294967295
%56 = call i64 @FUNC(i64 %42, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_3, i64 0, i64 0), i64 %55, i64 %42, i64 1, i64 0)
store i32 0, i32* %48, align 4
store i64 %51, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_7:
%57 = load i8*, i8** %sv_1, align 8
%58 = load i8, i8* %57, align 1
%59 = icmp eq i8 %58, 2
%60 = icmp eq i1 %59, false
store i64 %24, i64* %sv_0.0.reg2mem
br i1 %60, label LBL_10, label LBL_8
LBL_8:
%61 = call i64 @FUNC(i64 %3, i64 0)
%62 = and i64 %61, 4294967295
%63 = call i64 @FUNC(i64 %3, i64 %62, i64 3, i64 0, i64 2, i64 0)
%64 = trunc i64 %63 to i32
%65 = icmp slt i32 %64, 0
%66 = icmp eq i1 %65, false
store i64 %63, i64* %sv_0.0.reg2mem
br i1 %66, label LBL_10, label LBL_9
LBL_9:
%67 = and i64 %63, 4294967295
%68 = call i64 @FUNC(i64 %42, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_4, i64 0, i64 0), i64 %67, i64 %42, i64 2, i64 0)
store i64 %63, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%69 = and i64 %sv_0.0.reload, 4294967295
store i64 %69, i64* %storemerge.reg2mem
br label LBL_11
LBL_11:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %63, { 0, 2, 1, 3 }
uselistorder i64 %51, { 0, 2, 1, 3 }
uselistorder i64 %42, { 2, 3, 0, 1, 4 }
uselistorder i8** %sv_1, { 3, 1, 2, 4, 0 }
uselistorder i64 %3, { 5, 4, 3, 2, 6, 0, 7, 8, 9, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 4, 5, 1, 2, 6, 7 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @dev_err, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64, i64)* @usb_control_msg, { 1, 0 }
uselistorder i64 (i64, i64)* @usb_sndctrlpipe, { 1, 0 }
uselistorder i8 2, { 1, 0 }
uselistorder i64 1, { 0, 1, 3, 2 }
uselistorder label LBL_11, { 2, 1, 0 }
} | 1 |
BinRealVul | gf_isom_get_track_switch_parameter_12477 | gf_isom_get_track_switch_parameter | define i64 @FUNC(i64* %arg1, i32 %arg2, i32 %arg3, i64* %arg4, i64* %arg5) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = zext i32 %arg2 to i64
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = icmp eq i32 %arg3, 0
%4 = icmp eq i64 %2, 0
%or.cond = or i1 %3, %4
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_5, label LBL_1
LBL_1:
%5 = inttoptr i64 %2 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_5
LBL_2:
%9 = call i64 @FUNC(i64 %6, i64 1, i64 0)
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_5
LBL_3:
%12 = add i32 %arg3, -1
%13 = inttoptr i64 %9 to i64*
%14 = load i64, i64* %13, align 8
%15 = zext i32 %12 to i64
%16 = call i64 @FUNC(i64 %14, i64 %15)
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_4, label LBL_5
LBL_4:
%19 = inttoptr i64 %16 to i32*
%20 = load i32, i32* %19, align 4
%21 = bitcast i64* %arg4 to i32*
store i32 %20, i32* %21, align 4
%22 = add i64 %16, 4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = bitcast i64* %arg5 to i32*
store i32 %24, i32* %25, align 4
%26 = add i64 %16, 8
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
store i64 %28, 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, 5, 1, 2, 4, 3 }
uselistorder label LBL_5, { 4, 0, 1, 3, 2 }
} | 1 |
BinRealVul | ff_pixblockdsp_init_2282 | ff_pixblockdsp_init | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rsi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 4198662, i64* %2, align 8
store i64 4198662, i64* %arg1, align 8
%3 = bitcast i64* %rsi to i32*
%4 = load i32, i32* %3, align 8
%5 = icmp ult i32 %4, 15
%6 = icmp ne i1 %5, true
%7 = icmp eq i1 %6, false
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_3, label LBL_1
LBL_1:
%9 = urem i32 %4, 64
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_3, label %11
LBL_2:
%14 = add i64 %0, 16
%15 = inttoptr i64 %14 to i64*
store i64 4198669, i64* %15, align 8
store i64 %0, i64* %rax.0.reg2mem
br label LBL_6
LBL_3:
%16 = icmp slt i32 %4, 9
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = ptrtoint i32* %arg2 to i64
%18 = add i64 %17, 4
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, 1
store i64 1, i64* %rax.0.reg2mem
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = add i64 %0, 16
%23 = inttoptr i64 %22 to i64*
store i64 4198676, i64* %23, align 8
store i64 %0, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %4, { 1, 0, 2 }
uselistorder i64 %0, { 1, 3, 0, 2, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i1 false, { 0, 1, 3, 2 }
uselistorder label LBL_6, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0, 2 }
} | 0 |
BinRealVul | create_user_ns_9689 | create_user_ns | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = add i64 %0, 12
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = call i64 @FUNC()
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %9, label LBL_1, label LBL_7
LBL_1:
%10 = zext i32 %3 to i64
%11 = call i64 @FUNC(i64 %0, i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %13, label LBL_7, label LBL_2
LBL_2:
%14 = zext i32 %6 to i64
%15 = call i64 @FUNC(i64 %0, i64 %14)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %18, label LBL_3, label LBL_7
LBL_3:
%19 = load i64, i64* @gv_0, align 8
%20 = call i64 @FUNC(i64 %19, i64 0)
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
store i64 4294967294, i64* %rax.0.reg2mem
br i1 %22, label LBL_4, label LBL_7
LBL_4:
%23 = add i64 %20, 20
%24 = call i64 @FUNC(i64 %23)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
br i1 %26, label LBL_6, label LBL_5
LBL_5:
%27 = load i64, i64* @gv_0, align 8
%28 = call i64 @FUNC(i64 %27, i64 %20)
%29 = and i64 %24, 4294967295
store i64 %29, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%30 = add i64 %20, 16
%31 = call i64 @FUNC(i64 %30, i64 1)
%32 = inttoptr i64 %20 to i64*
store i64 %0, i64* %32, align 8
%33 = add i64 %20, 8
%34 = inttoptr i64 %33 to i32*
store i32 %3, i32* %34, align 4
%35 = add i64 %20, 12
%36 = inttoptr i64 %35 to i32*
store i32 %6, i32* %36, align 4
%37 = call i64 @FUNC(i64 %0, i64 %20)
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, { 1, 2, 3, 5, 4, 0, 6, 7 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 1, 3, 2, 4 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder label LBL_7, { 4, 5, 0, 2, 1, 3 }
} | 0 |
BinRealVul | ehci_advance_async_state_8080 | ehci_advance_async_state | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 1)
%4 = trunc i64 %3 to i32
switch i32 %4, label LBL_10 [
i32 0, label LBL_1
i32 1, label LBL_3
]
LBL_1:
%5 = call i64 @FUNC(i64 %2)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i64 %5, i64* %rax.0.reg2mem
br i1 %7, label LBL_11, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i64 %2, i64 1, i64 1)
br label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %2)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_5, label LBL_4
LBL_4:
%13 = call i64 @FUNC(i64 %2, i64 1)
%14 = call i64 @FUNC(i64 %2, i64 1, i64 0)
store i64 %14, i64* %rax.0.reg2mem
br label LBL_11
LBL_5:
%15 = urem i64 %1, 2
%16 = icmp eq i64 %15, 0
br i1 %16, label LBL_7, label LBL_6
LBL_6:
%17 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0))
store i64 %17, i64* %rax.0.reg2mem
br label LBL_11
LBL_7:
%18 = add i64 %2, 8
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_11, label LBL_8
LBL_8:
%22 = call i64 @FUNC(i64 %2, i64 1, i64 2)
%23 = call i64 @FUNC(i64 %2, i64 1)
%24 = add i64 %2, 4
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = and i32 %26, 2
%28 = icmp eq i32 %27, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %28, label LBL_11, label LBL_9
LBL_9:
%29 = call i64 @FUNC(i64 %2, i64 1)
%30 = call i64 @FUNC()
%31 = load i32, i32* %25, align 4
%32 = and i32 %31, -3
store i32 %32, i32* %25, align 4
%33 = call i64 @FUNC(i64 %2, i64 1)
store i64 %33, i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
%34 = add i64 %2, 12
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = zext i32 %36 to i64
%38 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%39 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %38, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_2, i64 0, i64 0), i64 %37)
%40 = call i64 @FUNC()
unreachable
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 0, 3, 4, 7, 6, 5, 8, 2, 1, 9, 10, 11, 12 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 5, 2, 1, 6 }
uselistorder %_IO_FILE** @gv_1, { 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @ehci_set_state, { 2, 1, 0 }
uselistorder i64 (i64)* @ehci_async_enabled, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 0 }
uselistorder i64 1, { 8, 2, 4, 3, 6, 5, 9, 1, 7, 0 }
uselistorder label LBL_11, { 1, 0, 2, 4, 5, 3 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | may_open_6999 | may_open | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
store i32 -2, i32* %rax.0.shrunk.reg2mem
br i1 %3, label LBL_1, label LBL_25
LBL_1:
%4 = trunc i64 %1 to i32
%5 = and i32 %4, 61440
%6 = icmp eq i32 %5, 40960
%7 = icmp eq i1 %6, false
store i32 -40, i32* %rax.0.shrunk.reg2mem
br i1 %7, label LBL_2, label LBL_25
LBL_2:
%8 = icmp eq i32 %5, 16384
%9 = icmp eq i1 %8, false
%10 = urem i64 %arg2, 2
%11 = icmp eq i64 %10, 0
%or.cond = or i1 %11, %9
store i32 -21, i32* %rax.0.shrunk.reg2mem
br i1 %or.cond, label LBL_3, label LBL_25
LBL_3:
%12 = ptrtoint i64* %arg1 to i64
%sext2 = mul i64 %arg3, 4294967296
%13 = ashr exact i64 %sext2, 32
%14 = icmp ne i32 %5, 4096
%15 = icmp eq i32 %5, 49152
%16 = icmp eq i1 %15, false
%or.cond7 = icmp eq i1 %14, %16
br i1 %or.cond7, label LBL_5, label LBL_4
LBL_4:
%17 = and i64 %13, -2
store i64 %17, i64* %sv_1.0.reg2mem
br label LBL_9
LBL_5:
%18 = icmp ne i32 %5, 24576
%19 = icmp eq i32 %5, 8192
%20 = icmp eq i1 %19, false
%or.cond9 = icmp eq i1 %18, %20
br i1 %or.cond9, label LBL_8, label LBL_6
LBL_6:
%21 = add i64 %12, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = urem i32 %25, 2
%27 = icmp eq i32 %26, 0
store i32 -13, i32* %rax.0.shrunk.reg2mem
br i1 %27, label LBL_7, label LBL_25
LBL_7:
%28 = and i64 %13, -2
store i64 %28, i64* %sv_1.0.reg2mem
br label LBL_9
LBL_8:
%29 = call i64 @FUNC(i64 %12)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
%or.cond11 = or i1 %11, %31
store i64 %13, i64* %sv_1.0.reg2mem
store i32 -30, i32* %rax.0.shrunk.reg2mem
br i1 %or.cond11, label LBL_9, label LBL_25
LBL_9:
%32 = and i64 %arg2, 4294967295
%33 = call i64 @FUNC(i64 %12, i64 %32)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
store i32 %34, i32* %rax.0.shrunk.reg2mem
br i1 %35, label LBL_10, label LBL_25
LBL_10:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%36 = call i64 @FUNC(i64 %12)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 0
br i1 %38, label LBL_14, label LBL_11
LBL_11:
%39 = and i64 %sv_1.0.reload, 8
%40 = icmp eq i64 %39, 0
br i1 %40, label LBL_13, label LBL_12
LBL_12:
%41 = and i64 %sv_1.0.reload, 2
%42 = icmp eq i64 %41, 0
%43 = icmp eq i1 %42, false
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %43, label LBL_13, label LBL_25
LBL_13:
%44 = urem i64 %sv_1.0.reload, 2
%45 = icmp eq i64 %44, 0
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %45, label LBL_14, label LBL_25
LBL_14:
%46 = and i64 %sv_1.0.reload, 4
%47 = icmp eq i64 %46, 0
br i1 %47, label LBL_16, label LBL_15
LBL_15:
%48 = call i64 @FUNC(i64 %12)
%49 = trunc i64 %48 to i32
%50 = icmp eq i32 %49, 0
%51 = icmp eq i1 %50, false
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %51, label LBL_16, label LBL_25
LBL_16:
%52 = and i64 %sv_1.0.reload, 4294967295
%53 = call i64 @FUNC(i64 %12, i64 %52)
%54 = trunc i64 %53 to i32
%55 = icmp eq i32 %54, 0
store i32 %54, i32* %rax.0.shrunk.reg2mem
br i1 %55, label LBL_17, label LBL_25
LBL_17:
%56 = urem i64 %sv_1.0.reload, 2
%57 = icmp eq i64 %56, 0
br i1 %57, label LBL_22, label LBL_18
LBL_18:
%58 = call i64 @FUNC(i64 %12)
%59 = trunc i64 %58 to i32
%60 = icmp eq i32 %59, 0
store i32 %59, i32* %rax.0.shrunk.reg2mem
br i1 %60, label LBL_19, label LBL_25
LBL_19:
%61 = call i64 @FUNC(i64 %12)
%62 = trunc i64 %61 to i32
%63 = icmp eq i32 %62, 0
%64 = icmp eq i1 %63, false
store i32 %62, i32* %sv_0.0.reg2mem
br i1 %64, label LBL_21, label LBL_20
LBL_20:
%65 = call i64 @FUNC(i64 %12)
%66 = call i64 @FUNC(i64 %12, i64 0, i64 7, i64 0)
%67 = trunc i64 %66 to i32
store i32 %67, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_21:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%68 = call i64 @FUNC(i64 %12)
%69 = icmp eq i32 %sv_0.0.reload, 0
store i32 %sv_0.0.reload, i32* %rax.0.shrunk.reg2mem
br i1 %69, label LBL_24, label LBL_25
LBL_22:
%70 = and i64 %sv_1.0.reload, 8
%71 = icmp eq i64 %70, 0
br i1 %71, label LBL_24, label LBL_23
LBL_23:
%72 = call i64 @FUNC(i64 %12)
br label LBL_24
LBL_24:
store i32 0, i32* %rax.0.shrunk.reg2mem
br label LBL_25
LBL_25:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i64 %sv_1.0.reload, { 2, 6, 1, 0, 5, 3, 4 }
uselistorder i64 %13, { 0, 2, 1 }
uselistorder i64 %12, { 8, 5, 3, 4, 6, 7, 9, 2, 10, 11, 0, 1 }
uselistorder i32 %5, { 3, 1, 2, 0, 4, 5 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }
uselistorder i64 (i64)* @DQUOT_INIT, { 1, 0 }
uselistorder i64 2, { 0, 1, 3, 2 }
uselistorder i1 false, { 2, 3, 4, 0, 1, 5, 6, 7 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_25, { 12, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }
} | 0 |
BinRealVul | mov_write_dops_tag_10569 | mov_write_dops_tag | 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 %0, i64 0)
%3 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%4 = call i64 @FUNC(i64 %0, i64 0)
%5 = call i64 @FUNC(i64 %0, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0))
ret i64 4294967295
} | 0 |
BinRealVul | mix_pool_19043 | mix_pool | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.14.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_1.06.reg2mem = alloca i64
%storemerge7.reg2mem = alloca i32
%indvars.iv10.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i64, align 8
%1 = add i64 %0, 64
%2 = load i32, i32* inttoptr (i64 4210748 to i32*), align 4
%3 = zext i32 %2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64* nonnull %sv_2)
%6 = add i64 %0, 44
%7 = inttoptr i64 %1 to i64*
%8 = inttoptr i64 %6 to i64*
%9 = call i64* @memcpy(i64* %7, i64* %8, i32 20)
%10 = add i64 %0, 84
%11 = inttoptr i64 %10 to i64*
%12 = call i64* @memcpy(i64* %11, i64* %arg1, i32 12)
%13 = call i64 @FUNC(i64* nonnull %sv_2, i64 %1)
%14 = call i64* @memcpy(i64* %arg1, i64* %7, i32 20)
%15 = load i32, i32* @gv_0, align 4
%16 = icmp eq i32 %15, 0
%17 = icmp eq i64* %arg1, @gv_1
%18 = icmp eq i1 %17, false
%or.cond = or i1 %18, %16
store i64 0, i64* %indvars.iv10.reg2mem
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%indvars.iv10.reload = load i64, i64* %indvars.iv10.reg2mem
%19 = add i64 %indvars.iv10.reload, %0
%20 = inttoptr i64 %19 to i8*
%21 = load i8, i8* %20, align 1
%22 = add i64 %indvars.iv10.reload, ptrtoint (i8** @gv_2 to i64)
%23 = inttoptr i64 %22 to i8*
%24 = load i8, i8* %23, align 1
%25 = xor i8 %24, %21
store i8 %25, i8* %20, align 1
%indvars.iv.next11 = add nuw nsw i64 %indvars.iv10.reload, 1
%exitcond12 = icmp eq i64 %indvars.iv.next11, 20
store i64 %indvars.iv.next11, i64* %indvars.iv10.reg2mem
br i1 %exitcond12, label LBL_2, label LBL_1
LBL_2:
store i32 1, i32* %storemerge7.reg2mem
store i64 %0, i64* %sv_1.06.reg2mem
br label LBL_3
LBL_3:
%sv_1.06.reload = load i64, i64* %sv_1.06.reg2mem
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%26 = inttoptr i64 %sv_1.06.reload to i64*
%27 = call i64* @memcpy(i64* %7, i64* %26, i32 20)
%28 = add i64 %sv_1.06.reload, 72
%29 = icmp ugt i64 %1, %28
%30 = add i64 %sv_1.06.reload, 40
store i64 20, i64* %indvars.iv.reg2mem
store i64 %30, i64* %sv_0.14.reg2mem
br i1 %29, label LBL_4, label LBL_5
LBL_4:
%31 = inttoptr i64 %30 to i64*
%32 = call i64* @memcpy(i64* %11, i64* %31, i32 12)
br label LBL_6
LBL_5:
%sv_0.14.reload = load i64, i64* %sv_0.14.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%33 = icmp ult i64 %sv_0.14.reload, %1
%spec.select = select i1 %33, i64 %sv_0.14.reload, i64 %0
%34 = add i64 %spec.select, 1
%35 = add i64 %indvars.iv.reload, %1
%36 = inttoptr i64 %spec.select to i8*
%37 = load i8, i8* %36, align 1
%38 = inttoptr i64 %35 to i8*
store i8 %37, i8* %38, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 32
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %34, i64* %sv_0.14.reg2mem
br i1 %exitcond, label LBL_6, label LBL_5
LBL_6:
%39 = add i64 %sv_1.06.reload, 20
%40 = call i64 @FUNC(i64* nonnull %sv_2, i64 %1)
%41 = inttoptr i64 %39 to i64*
%42 = call i64* @memcpy(i64* %41, i64* %7, i32 20)
%43 = add nuw nsw i32 %storemerge7.reload, 1
%exitcond9 = icmp eq i32 %43, 3
store i32 %43, i32* %storemerge7.reg2mem
store i64 %39, i64* %sv_1.06.reg2mem
br i1 %exitcond9, label LBL_7, label LBL_3
LBL_7:
br i1 %18, label LBL_9, label LBL_8
LBL_8:
%44 = call i64 @FUNC(i64* bitcast (i8** @gv_2 to i64*), i64 %0, i64 64)
store i32 1, i32* @gv_0, align 4
br label LBL_9
LBL_9:
%45 = and i64 %13, 4294967295
%46 = call i64 @FUNC(i64 %45)
ret i64 %46
uselistorder i64 %spec.select, { 1, 0 }
uselistorder i64 %30, { 1, 0 }
uselistorder i64 %sv_1.06.reload, { 3, 0, 2, 1 }
uselistorder i1 %18, { 1, 0 }
uselistorder i64 %1, { 2, 0, 1, 3, 4, 5 }
uselistorder i64 %0, { 3, 2, 0, 1, 4, 5, 6 }
uselistorder i64* %indvars.iv10.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge7.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.06.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.14.reg2mem, { 2, 0, 1 }
uselistorder i64 20, { 2, 0, 1 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i32* @gv_0, { 1, 0 }
uselistorder i64 (i64*, i64)* @_gcry_sha1_mixblock, { 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | radeon_vm_bo_update_pte_7578 | radeon_vm_bo_update_pte | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%3 = icmp eq i64* %arg2, null
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %4, label LBL_1, label LBL_18
LBL_1:
%5 = ptrtoint i64* %arg3 to i64
%6 = ptrtoint i64* %arg2 to i64
%7 = call i64 @FUNC(i64 %6, i64 %5)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %5, i64 %6)
store i64 4294967274, i64* %rax.0.shrunk.reg2mem
br label LBL_18
LBL_3:
%11 = add i64 %7, 8
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_1, i64 0, i64 0), i64 %5, i64 %6)
store i64 4294967274, i64* %rax.0.shrunk.reg2mem
br label LBL_18
LBL_5:
%17 = add i64 %7, 4
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp ne i32 %19, 0
%21 = icmp eq i64* %arg4, null
%22 = icmp eq i1 %21, false
%or.cond = icmp eq i1 %22, %20
%23 = icmp eq i32 %19, 0
%24 = icmp eq i1 %21, %23
%or.cond6 = or i1 %or.cond, %24
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %or.cond6, label LBL_18, label LBL_6
LBL_6:
%25 = ptrtoint i64* %arg1 to i64
%26 = inttoptr i64 %7 to i32*
%27 = load i32, i32* %26, align 4
%28 = and i32 %27, -4
store i32 %28, i32* %26, align 4
br i1 %21, label LBL_11, label LBL_7
LBL_7:
%29 = ptrtoint i64* %arg4 to i64
%30 = mul i64 %29, 4096
%31 = add i64 %29, 8
%32 = inttoptr i64 %31 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, 0
br i1 %34, label LBL_10, label LBL_8
LBL_8:
%35 = or i32 %28, 1
store i32 %35, i32* %26, align 4
store i32 1, i32* %18, align 4
%.pre = load i32, i32* %32, align 4
%phitmp = icmp eq i32 %.pre, 1
%phitmp9 = icmp eq i1 %phitmp, false
br i1 %phitmp9, label LBL_10, label LBL_9
LBL_9:
%36 = load i32, i32* %26, align 4
%37 = or i32 %36, 2
store i32 %37, i32* %26, align 4
store i64 %30, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_10:
%38 = add i64 %25, 8
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = add i64 %40, %30
store i64 %41, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_11:
store i32 0, i32* %18, align 4
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%42 = call i64 @FUNC(i64 %5)
%43 = trunc i64 %42 to i32
%44 = udiv i32 %43, 4096
%45 = add nuw nsw i32 %44, 2
%46 = udiv i32 %43, 2048
%47 = udiv i32 %45, 2048
%48 = mul i32 %45, 2
%reass.add = add nuw nsw i32 %47, %46
%reass.mul = mul i32 %reass.add, 4
%reass.add7 = add i32 %48, %43
%reass.mul8 = mul i32 %reass.add7, 2
%49 = add nuw nsw i32 %reass.mul, 64
%50 = add i32 %49, %reass.mul8
%51 = icmp ult i32 %50, 1048576
store i64 4294967284, i64* %rax.0.shrunk.reg2mem
br i1 %51, label LBL_13, label LBL_18
LBL_13:
%52 = mul i32 %50, 4
%53 = zext i32 %52 to i64
%54 = call i64 @FUNC(i64 %25, i64 0, i64* nonnull %sv_1, i64 0, i64 %53)
store i64 0, i64* %sv_1, align 8
%55 = add i64 %7, 16
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = load i64, i64* %12, align 8
%59 = call i64 @FUNC(i64 %25, i64 %6, i64* nonnull %sv_1, i64 %58, i64 %57)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
br i1 %61, label LBL_15, label LBL_14
LBL_14:
%62 = call i64 @FUNC(i64 %25, i64* nonnull %sv_1)
store i64 %59, i64* %rax.0.shrunk.reg2mem
br label LBL_18
LBL_15:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%63 = load i32, i32* %26, align 4
%64 = zext i32 %63 to i64
%65 = call i64 @FUNC(i64 %64)
%66 = load i64, i64* %56, align 8
%67 = load i64, i64* %12, align 8
%68 = call i64 @FUNC(i64 %25, i64 %6, i64* nonnull %sv_1, i64 %67, i64 %66, i64 %sv_0.0.reload)
%69 = add i64 %6, 8
%70 = inttoptr i64 %69 to i64*
%71 = load i64, i64* %70, align 8
%72 = call i64 @FUNC(i64 %2, i64 %71)
%73 = call i64 @FUNC(i64 %25, i64* nonnull %sv_1, i64 0)
%74 = trunc i64 %73 to i32
%75 = icmp eq i32 %74, 0
br i1 %75, label LBL_17, label LBL_16
LBL_16:
%76 = call i64 @FUNC(i64 %25, i64* nonnull %sv_1)
store i64 %73, i64* %rax.0.shrunk.reg2mem
br label LBL_18
LBL_17:
%77 = call i64 @FUNC(i64 %69)
%78 = call i64 @FUNC(i64 %1)
store i64 %78, i64* %70, align 8
%79 = call i64 @FUNC(i64 %25, i64* nonnull %sv_1)
%80 = add i64 %6, 16
%81 = call i64 @FUNC(i64 %80)
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_18
LBL_18:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i32 %43, { 2, 0, 1 }
uselistorder i64 %30, { 1, 0 }
uselistorder i64 %29, { 1, 0 }
uselistorder i32* %26, { 3, 2, 1, 0, 5, 4 }
uselistorder i64 %25, { 3, 2, 4, 5, 1, 6, 7, 0 }
uselistorder i1 %21, { 1, 0, 2 }
uselistorder i32* %18, { 1, 0, 2 }
uselistorder i64 %7, { 0, 3, 1, 2, 4 }
uselistorder i64 %6, { 4, 6, 5, 7, 2, 3, 0, 1, 8 }
uselistorder i64 %5, { 2, 1, 0, 3 }
uselistorder i64* %sv_1, { 0, 1, 2, 3, 4, 5, 7, 6 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 8, 7, 6, 1, 2, 5, 4, 3 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64)* @radeon_fence_unref, { 1, 0 }
uselistorder i64 (i64, i64*)* @radeon_ib_free, { 2, 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 0, 5 }
uselistorder i64 4294967274, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64)* @dev_err, { 1, 0 }
uselistorder i64* %arg4, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_18, { 3, 4, 5, 0, 1, 6, 7, 2 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | stellaris_enet_receive_15799 | stellaris_enet_receive | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = urem i32 %7, 2
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %10, label LBL_1, label LBL_5
LBL_1:
%11 = add i64 %5, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp slt i32 %13, 31
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_2, label LBL_5
LBL_2:
%15 = ptrtoint i64* %arg2 to i64
%16 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 %arg3, i64 %arg3, i64 %3, i64 %2, i64 %1)
%17 = add i64 %5, 8
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = load i32, i32* %12, align 4
%21 = add i32 %20, %19
%22 = icmp slt i32 %21, 31
%23 = add i32 %21, -31
%spec.select = select i1 %22, i32 %21, i32 %23
%24 = add i32 %20, 1
store i32 %24, i32* %12, align 4
%25 = add i64 %arg3, 6
%26 = sext i32 %spec.select to i64
%27 = mul nsw i64 %26, 1512
%28 = add i64 %5, 16
%29 = add i64 %28, %27
%30 = inttoptr i64 %29 to i64*
store i64 %25, i64* %30, align 8
%31 = add i64 %29, 8
%32 = add i64 %29, 9
%33 = trunc i64 %arg3 to i8
%34 = add i8 %33, 6
%35 = inttoptr i64 %31 to i8*
store i8 %34, i8* %35, align 1
%36 = udiv i64 %25, 256
%37 = add i64 %29, 10
%38 = trunc i64 %36 to i8
%39 = inttoptr i64 %32 to i8*
store i8 %38, i8* %39, align 1
%40 = inttoptr i64 %37 to i64*
%41 = trunc i64 %arg3 to i32
%42 = call i64* @memcpy(i64* %40, i64* %arg2, i32 %41)
%43 = add i64 %37, %arg3
%44 = call i64 @FUNC(i64 4294967295, i64 %15, i64 %arg3)
%45 = trunc i64 %44 to i32
%46 = add i64 %43, 1
%47 = trunc i64 %44 to i8
%48 = inttoptr i64 %43 to i8*
store i8 %47, i8* %48, align 1
%49 = udiv i32 %45, 256
%50 = add i64 %43, 2
%51 = trunc i32 %49 to i8
%52 = inttoptr i64 %46 to i8*
store i8 %51, i8* %52, align 1
%53 = udiv i32 %45, 65536
%54 = add i64 %43, 3
%55 = trunc i32 %53 to i8
%56 = inttoptr i64 %50 to i8*
store i8 %55, i8* %56, align 1
%57 = udiv i32 %45, 16777216
%58 = trunc i32 %57 to i8
%59 = inttoptr i64 %54 to i8*
store i8 %58, i8* %59, align 1
%60 = urem i64 %arg3, 4
%61 = icmp eq i64 %60, 2
br i1 %61, label LBL_4, label LBL_3
LBL_3:
%62 = add i64 %43, 4
%63 = sub i32 2, %41
%64 = urem i32 %63, 4
%65 = inttoptr i64 %62 to i64*
%66 = call i64* @memset(i64* %65, i32 0, i32 %64)
br label LBL_4
LBL_4:
%67 = add i64 %5, 46888
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = or i32 %69, 2
store i32 %70, i32* %68, align 4
%71 = call i64 @FUNC(i64 %5)
store i64 %arg3, 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 %43, { 0, 1, 2, 4, 3 }
uselistorder i64 %29, { 2, 1, 0, 3 }
uselistorder i32 %20, { 1, 0 }
uselistorder i64 %5, { 1, 2, 0, 3, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 4, { 1, 0, 2 }
uselistorder i32 2, { 2, 1, 0 }
uselistorder i64 %arg3, { 0, 1, 3, 2, 4, 5, 6, 7, 8 }
uselistorder label LBL_5, { 2, 0, 1 }
} | 1 |
BinRealVul | jspeFactorDelete_6449 | jspeFactorDelete | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
store i64 0, i64* %sv_1, align 8
%0 = call i64 @FUNC()
%1 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1)
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i8
%4 = icmp eq i8 %3, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_11, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %1)
%6 = trunc i64 %5 to i8
%7 = icmp eq i8 %6, 1
store i64 0, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_11, label LBL_2
LBL_2:
%8 = load i64, i64* %sv_1, align 8
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
store i64 %8, i64* %.reg2mem
br i1 %10, label LBL_6, label LBL_3
LBL_3:
%11 = load i64, i64* @gv_0, align 8
%12 = call i64 @FUNC(i64 %11, i64 %1)
%13 = trunc i64 %12 to i8
%14 = icmp eq i8 %13, 0
br i1 %14, label LBL_3.LBL_6_crit_edge, label LBL_5
LBL_4:
%.pre = load i64, i64* %sv_1, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_6
LBL_5:
%15 = load i64, i64* @gv_0, align 8
%16 = call i64 @FUNC(i64 %15)
store i64 %16, i64* %sv_1, align 8
store i64 %16, i64* %.reg2mem
br label LBL_6
LBL_6:
%.reload = load i64, i64* %.reg2mem
%17 = call i64 @FUNC(i64 %.reload)
%18 = trunc i64 %17 to i8
%19 = icmp eq i8 %18, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %19, label LBL_11, label LBL_7
LBL_7:
%20 = load i64, i64* %sv_1, align 8
%21 = call i64 @FUNC(i64 %20, i64 %1)
%22 = trunc i64 %21 to i8
%23 = icmp eq i8 %22, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %23, label LBL_11, label LBL_8
LBL_8:
%24 = load i64, i64* %sv_1, align 8
%25 = call i64 @FUNC(i64 %24)
%26 = trunc i64 %25 to i8
%27 = icmp eq i8 %26, 0
%28 = load i64, i64* %sv_1, align 8
br i1 %27, label LBL_10, label LBL_9
LBL_9:
%29 = call i64 @FUNC(i64 %28)
%30 = load i64, i64* %sv_1, align 8
%31 = call i64 @FUNC(i64 %30, i64 %1)
%32 = load i64, i64* %sv_1, align 8
%33 = and i64 %29, 4294967295
%34 = call i64 @FUNC(i64 %32, i64 %33, i64 0)
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_10:
%35 = call i64 @FUNC(i64 %28, i64 %1)
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_11:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%36 = call i64 @FUNC(i64 %sv_0.0.reload)
%37 = load i64, i64* %sv_1, align 8
%38 = call i64 @FUNC(i64 %1, i64 %37)
ret i64 %36
uselistorder i64 %28, { 1, 0 }
uselistorder i64 %1, { 5, 2, 1, 3, 0, 4, 6 }
uselistorder i64* %sv_1, { 2, 4, 5, 3, 6, 7, 8, 0, 9, 1, 10 }
uselistorder i64* %.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3, 4, 5, 6 }
uselistorder i64 1, { 1, 0, 2, 3, 4 }
uselistorder i64 (i64, i64)* @jsvRemoveChild, { 1, 0 }
uselistorder i64 (i64, i64)* @jsvIsChild, { 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder label LBL_11, { 1, 0, 2, 3, 4, 5 }
uselistorder label LBL_6, { 1, 0, 2 }
} | 0 |
BinRealVul | basic_destroy_17606 | basic_destroy | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge12.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = icmp eq i64 %1, 0
store i64 %1, i64* %storemerge12.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%3 = inttoptr i64 %storemerge12.reload to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %storemerge12.reload)
%6 = call i64 @FUNC(i64 %0, i64 %storemerge12.reload)
%7 = icmp eq i64 %4, 0
store i64 %4, i64* %storemerge12.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_2:
ret i64 0
uselistorder i64 %storemerge12.reload, { 1, 0, 2 }
uselistorder i64* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | find_callno_13056 | find_callno | define i64 @FUNC(i64 %arg1, i16 %arg2, i64* %arg3, i32 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg3 to i64
%1 = and i64 %arg5, 4294967295
%2 = urem i64 %arg1, 65536
%3 = call i64 @FUNC(i64 %2, i16 %arg2, i64 %0, i32 %arg4, i64 %1, i64 0)
ret i64 %3
} | 1 |
BinRealVul | open_log_file_10976 | open_log_file | define i64 @FUNC(i8* %arg1, i8* %arg2, i8* %arg3, i8* %arg4) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%0 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%1 = ptrtoint %_IO_FILE* %0 to i64
%2 = icmp eq %_IO_FILE* %0, null
store i64 %1, i64* %rax.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i32 @fclose(%_IO_FILE* nonnull %0)
%4 = sext i32 %3 to i64
store %_IO_FILE* null, %_IO_FILE** @gv_0, align 8
store i64 %4, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%5 = icmp eq i8* %arg1, null
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %5, label LBL_6, label LBL_3
LBL_3:
%6 = ptrtoint i8* %arg4 to i64
%7 = ptrtoint i8* %arg3 to i64
%8 = ptrtoint i8* %arg2 to i64
%9 = ptrtoint i8* %arg1 to i64
%10 = call i64 @FUNC(i64 %9, i64 %8, i64 %7, i64 %6)
%11 = inttoptr i64 %10 to i8*
%12 = call %_IO_FILE* @fopen(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0))
store %_IO_FILE* %12, %_IO_FILE** @gv_0, align 8
%13 = icmp eq %_IO_FILE* %12, null
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = call i32 @fileno(%_IO_FILE* nonnull %12)
%15 = call i32 (i32, i32, ...) @fcntl(i32 %14, i32 1)
%16 = call i32 (i32, i32, ...) @fcntl(i32 %14, i32 2)
%17 = call i32 (i32, i32, ...) @fcntl(i32 %14, i32 3)
%18 = call i32 (i32, i32, ...) @fcntl(i32 %14, i32 4)
br label LBL_5
LBL_5:
%19 = inttoptr i64 %10 to i64*
call void @free(i64* %19)
store i64 ptrtoint (i32* @0 to i64), i64* %rax.1.reg2mem
br label LBL_6
LBL_6:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32 (i32, i32, ...)* @fcntl, { 3, 2, 1, 0 }
uselistorder %_IO_FILE* null, { 0, 2, 1, 3 }
uselistorder %_IO_FILE** @gv_0, { 2, 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder i8* %arg1, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | get_description_10132 | get_description | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge2.reg2mem = alloca i64
%storemerge.reg2mem = alloca i8*
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%3 = icmp eq i64 %arg2, 0
%4 = icmp eq i1 %3, false
store i64 %arg2, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
store i64 %7, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%8 = trunc i64 %1 to i32
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%9 = icmp eq i32 %8, 0
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i8** %storemerge.reg2mem
br i1 %9, label LBL_3, label LBL_4
LBL_3:
%10 = add i64 %2, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i8** %storemerge.reg2mem
store i64 0, i64* %storemerge2.reg2mem
br i1 %13, label LBL_7, label LBL_4
LBL_4:
%14 = ptrtoint i64* %arg3 to i64
%storemerge.reload = load i8*, i8** %storemerge.reg2mem
%15 = bitcast i64* %sv_1 to i8*
%16 = inttoptr i64 %sv_0.0.reload to i8*
%17 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %15, i32 1024, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_2, i64 0, i64 0), i8* nonnull %storemerge.reload, i8* %16)
%18 = call i64 @FUNC(i64 %2, i64* nonnull %sv_1, i64 1024, i64 %14, i64 4198822, i64 %2)
%19 = trunc i64 %18 to i32
%20 = icmp slt i32 %19, 1
br i1 %20, label LBL_6, label LBL_5
LBL_5:
%21 = ptrtoint i8* %storemerge.reload to i64
%22 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i64 %21, i64* nonnull %sv_1)
br label LBL_6
LBL_6:
%23 = and i64 %18, 4294967295
store i64 %23, i64* %storemerge2.reg2mem
br label LBL_7
LBL_7:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
ret i64 %storemerge2.reload
uselistorder i8* %storemerge.reload, { 1, 0 }
uselistorder i64 %2, { 2, 1, 3, 0 }
uselistorder i64* %storemerge2.reg2mem, { 0, 2, 1 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | r_bin_mdmp_init_directory_6704 | r_bin_mdmp_init_directory | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%3 = trunc i64 %1 to i32
%4 = add i64 %2, 16
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i32 %3, i64 0)
%8 = load i64, i64* %5, align 8
%9 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @gv_2, i64 0, i64 0), i64 0)
%10 = add i64 %8, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_5, label LBL_1
LBL_1:
%14 = and i64 %8, 4294967295
%15 = add i64 %2, 8
%16 = inttoptr i64 %15 to i64*
%17 = bitcast i32* %sv_0 to i64*
store i32 0, i32* %storemerge3.reg2mem
br label LBL_2
LBL_2:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%18 = load i64, i64* %16, align 8
%19 = call i64 @FUNC(i64 %18, i64 %14, i64* nonnull %17, i64 0)
%20 = trunc i64 %19 to i32
store i32 %20, i32* %sv_0, align 4
%21 = icmp eq i32 %20, 0
store i64 %18, i64* %.reg2mem
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = call i64 @FUNC(i64 %2, i64* nonnull %17)
store i64 %2, i64* %.reg2mem
br label LBL_4
LBL_4:
%.reload = load i64, i64* %.reg2mem
%23 = add i32 %storemerge3.reload, 1
%24 = add i64 %.reload, 4
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = zext i32 %26 to i64
%28 = sext i32 %23 to i64
%29 = icmp slt i64 %28, %27
store i32 %23, i32* %storemerge3.reg2mem
br i1 %29, label LBL_2, label LBL_5
LBL_5:
ret i64 1
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | hpet_set_timer_1640 | hpet_set_timer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i32
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC()
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
store i32 0, i32* %3, align 4
%4 = call i64 @FUNC(i64 %0, i64 %1)
%5 = trunc i64 %4 to i32
%6 = bitcast i64* %rdi to i32*
%7 = load i32, i32* %6, align 8
%8 = urem i32 %7, 2
%9 = icmp eq i32 %8, 0
store i32 %5, i32* %sv_0.0.reg2mem
br i1 %9, label LBL_4, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %0)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i32 %5, i32* %sv_0.0.reg2mem
br i1 %13, label LBL_4, label LBL_2
LBL_2:
%14 = trunc i64 %1 to i32
%15 = sub i32 0, %14
%16 = sub i32 %15, 1
%17 = icmp ugt i32 %5, %16
%18 = icmp eq i1 %17, false
store i32 %5, i32* %sv_0.0.reg2mem
br i1 %18, label LBL_4, label LBL_3
LBL_3:
store i32 1, i32* %3, align 4
store i32 %16, i32* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%19 = load i64, i64* @gv_0, align 8
%20 = call i64 @FUNC(i64 %19)
%21 = sext i32 %sv_0.0.reload to i64
%22 = call i64 @FUNC(i64 %21)
%23 = add i64 %22, %20
%24 = add i64 %0, 8
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = call i64 @FUNC(i64 %26, i64 %23)
ret i64 %27
uselistorder i32 %5, { 0, 3, 1, 2 }
uselistorder i64 %0, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | alloc_block_615 | alloc_block | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.pre-phi4.reg2mem = alloca i32*
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
store i64 %arg2, i64* %sv_2, align 8
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = add i64 %3, 16
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = icmp ugt i64 %arg2, 8192
store i64 -22, i64* %rax.0.reg2mem
br i1 %7, label LBL_9, label LBL_1
LBL_1:
%8 = add i64 %3, 20
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = sext i32 %10 to i64
%12 = udiv i64 %arg2, %11
%13 = inttoptr i64 %3 to i64*
%14 = load i64, i64* %13, align 8
%15 = mul i64 %12, 4
%16 = and i64 %15, 17179869180
%17 = add i64 %16, %14
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp eq i32 %19, -1
store i32* %18, i32** %.pre-phi4.reg2mem
br i1 %20, label LBL_3, label LBL_2
LBL_2:
call void @__assert_fail(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_1, i64 0, i64 0), i32 50, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0))
%.pre = load i64, i64* %13, align 8
%.pre2 = add i64 %.pre, %16
%.pre3 = inttoptr i64 %.pre2 to i32*
store i32* %.pre3, i32** %.pre-phi4.reg2mem
br label LBL_3
LBL_3:
%21 = ptrtoint i64* %sv_2 to i64
%22 = sext i32 %6 to i64
%23 = add nsw i64 %22, 15
%24 = udiv i64 %23, 16
%25 = mul i64 %24, 16
%26 = sub i64 %21, %25
%.pre-phi4.reload = load i32*, i32** %.pre-phi4.reg2mem
%27 = add i64 %3, 8
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = add i64 %29, 511
%31 = icmp slt i64 %29, 0
%32 = select i1 %31, i64 %30, i64 %29
%33 = udiv i64 %32, 512
%34 = trunc i64 %33 to i32
store i32 %34, i32* %.pre-phi4.reload, align 4
%35 = load i32, i32* %5, align 4
%36 = inttoptr i64 %26 to i64*
%37 = call i64* @memset(i64* %36, i32 255, i32 %35)
%38 = load i32, i32* %5, align 4
%39 = sext i32 %38 to i64
%40 = load i64, i64* %28, align 8
%41 = add i64 %0, 8
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = call i64 @FUNC(i64 %43, i64 %40, i64 %26, i64 %39)
%45 = trunc i64 %44 to i32
%46 = icmp slt i32 %45, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_5, label LBL_4
LBL_4:
%sext = mul i64 %44, 4294967296
%48 = ashr exact i64 %sext, 32
store i64 %48, i64* %rax.0.reg2mem
br label LBL_9
LBL_5:
%49 = load i64, i64* %28, align 8
%50 = load i32, i32* %9, align 4
%51 = load i32, i32* %5, align 4
%52 = add i32 %51, %50
%53 = sext i32 %52 to i64
%54 = add i64 %49, %53
store i64 %54, i64* %28, align 8
%55 = call i64 @FUNC(i64 %0)
%56 = trunc i64 %55 to i32
%57 = icmp slt i32 %56, 0
store i64 %55, i64* %sv_0.0.reg2mem
br i1 %57, label LBL_8, label LBL_6
LBL_6:
%58 = add i64 %3, 24
%59 = inttoptr i64 %58 to i64*
%60 = load i64, i64* %59, align 8
%61 = and i64 %15, 4294967292
%62 = add i64 %60, %61
%63 = load i64, i64* %13, align 8
%64 = add i64 %63, %16
%65 = inttoptr i64 %64 to i32*
%66 = load i32, i32* %65, align 4
%67 = zext i32 %66 to i64
%68 = call i64 @FUNC(i64 %67)
%69 = trunc i64 %68 to i32
store i32 %69, i32* %sv_1, align 4
%70 = load i64, i64* %42, align 8
%71 = ptrtoint i32* %sv_1 to i64
%72 = call i64 @FUNC(i64 %70, i64 %62, i64 %71, i64 4)
%73 = trunc i64 %72 to i32
%74 = icmp slt i32 %73, 0
store i64 %72, i64* %sv_0.0.reg2mem
br i1 %74, label LBL_8, label LBL_7
LBL_7:
%75 = load i64, i64* %sv_2, align 8
%76 = call i64 @FUNC(i64 %0, i64 %75, i64 0, i64 0)
store i64 %76, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%77 = load i64, i64* %28, align 8
%78 = load i32, i32* %9, align 4
%79 = load i32, i32* %5, align 4
%80 = add i32 %79, %78
%81 = sext i32 %80 to i64
%82 = sub i64 %77, %81
store i64 %82, i64* %28, align 8
%sext1 = mul i64 %sv_0.0.reload, 4294967296
%83 = ashr exact i64 %sext1, 32
store i64 %83, 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 %29, { 2, 1, 0 }
uselistorder i64* %28, { 1, 0, 3, 2, 4, 5 }
uselistorder i64 %15, { 1, 0 }
uselistorder i64* %13, { 1, 0, 2 }
uselistorder i64* %sv_2, { 0, 2, 1 }
uselistorder i32** %.pre-phi4.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64, i64, i64, i64)* @bdrv_pwrite_sync, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder label LBL_9, { 1, 2, 3, 0 }
} | 0 |
BinRealVul | sockfs_setattr_11815 | sockfs_setattr | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = ptrtoint i32* %arg2 to i64
%4 = call i64 @FUNC(i64 %2, i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
%8 = urem i64 %1, 2
%9 = icmp eq i64 %8, 0
%or.cond = or i1 %9, %7
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %2)
%11 = call i64 @FUNC(i64 %10)
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = add i64 %3, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = inttoptr i64 %13 to i32*
store i32 %16, i32* %17, align 4
br label LBL_2
LBL_2:
%18 = and i64 %4, 4294967295
ret i64 %18
} | 1 |
BinRealVul | set_guest_connected_13944 | set_guest_connected | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %0)
%4 = inttoptr i64 %2 to i64*
%5 = load i64, i64* %4, align 8
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = and i64 %1, 4294967295
%8 = call i64 @FUNC(i64 %5, i64 %7)
br label LBL_2
LBL_2:
%9 = inttoptr i64 %3 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = zext i32 %10 to i64
%13 = and i64 %1, 4294967295
%14 = call i64 @FUNC(i64 %12, i64 %13, i64* nonnull @gv_0)
store i64 %14, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %10, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
} | 1 |
BinRealVul | XGetFontPath_11553 | XGetFontPath | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%storemerge.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%r12.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_2.1.reg2mem = alloca i8*
%.reg2mem12 = alloca i32
%sv_2.28.reg2mem = alloca i8*
%sv_0.19.reg2mem = alloca i32
%r12.110.reg2mem = alloca i64
%storemerge411.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_2.07.reg2mem = alloca i8*
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = load i32, i32* %1
%sv_3 = alloca i32, align 4
%5 = call i64 @FUNC(i64 %3)
%6 = call i64 @FUNC(i64 0, i64 %2)
%7 = bitcast i32* %sv_3 to i64*
%8 = call i64 @FUNC(i64 %3, i64* nonnull %7, i64 0, i64 0)
%9 = load i32, i32* %sv_3, align 4
%10 = icmp eq i32 %9, 0
store i64 0, i64* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.2.reg2mem
br i1 %10, label LBL_10, label LBL_1
LBL_1:
%11 = sext i32 %9 to i64
%12 = mul i64 %11, 8
%13 = call i64 @FUNC(i64 %12)
%14 = icmp sgt i32 %4, 536870910
store i8* null, i8** %sv_2.07.reg2mem
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = sext i32 %4 to i64
%16 = mul i64 %15, 4
%17 = or i64 %16, 1
%18 = call i64 @FUNC(i64 %17)
%19 = inttoptr i64 %18 to i8*
%20 = icmp ne i64 %13, 0
%21 = icmp eq i64 %18, 0
%22 = icmp eq i1 %21, false
%or.cond = icmp eq i1 %20, %22
store i8* %19, i8** %sv_2.07.reg2mem
br i1 %or.cond, label LBL_4, label LBL_3
LBL_3:
%sv_2.07.reload = load i8*, i8** %sv_2.07.reg2mem
%23 = call i64 @FUNC(i64 %13)
%24 = ptrtoint i8* %sv_2.07.reload to i64
%25 = call i64 @FUNC(i64 %24)
%26 = zext i32 %4 to i64
%27 = call i64 @FUNC(i64 %3, i64 %26)
%28 = call i64 @FUNC(i64 %3)
%29 = call i64 @FUNC()
store i64 0, i64* %storemerge.reg2mem
br label LBL_11
LBL_4:
%30 = call i64 @FUNC(i64 %3, i64 %18, i64 %16)
%31 = load i32, i32* %sv_3, align 4
%32 = icmp eq i32 %31, 0
store i64 %13, i64* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.2.reg2mem
br i1 %32, label LBL_10, label LBL_5
LBL_5:
%33 = add i64 %18, %17
%34 = load i8, i8* %19, align 1
%35 = sext i8 %34 to i64
store i32 %31, i32* %.reg2mem
store i64 0, i64* %storemerge411.reg2mem
store i64 %35, i64* %r12.110.reg2mem
store i32 0, i32* %sv_0.19.reg2mem
store i8* %19, i8** %sv_2.28.reg2mem
br label LBL_6
LBL_6:
%sv_2.28.reload = load i8*, i8** %sv_2.28.reg2mem
%sv_0.19.reload = load i32, i32* %sv_0.19.reg2mem
%r12.110.reload = load i64, i64* %r12.110.reg2mem
%storemerge411.reload = load i64, i64* %storemerge411.reg2mem
%sext = mul i64 %r12.110.reload, 4294967296
%36 = ashr exact i64 %sext, 32
%37 = ptrtoint i8* %sv_2.28.reload to i64
%38 = add i64 %36, %37
%39 = icmp ugt i64 %33, %38
%40 = mul i64 %storemerge411.reload, 8
%41 = add i64 %40, %13
br i1 %39, label LBL_7, label LBL_8
LBL_7:
%42 = add i64 %37, 1
%43 = inttoptr i64 %41 to i64*
store i64 %42, i64* %43, align 8
%44 = add i64 %42, %36
%45 = inttoptr i64 %44 to i8*
%46 = load i8, i8* %45, align 1
%47 = sext i8 %46 to i64
store i8 0, i8* %45, align 1
%48 = add i32 %sv_0.19.reload, 1
%.pre = load i32, i32* %sv_3, align 4
store i32 %.pre, i32* %.reg2mem12
store i8* %45, i8** %sv_2.1.reg2mem
store i32 %48, i32* %sv_0.0.reg2mem
store i64 %47, i64* %r12.0.reg2mem
br label LBL_9
LBL_8:
%.reload = load i32, i32* %.reg2mem
%49 = inttoptr i64 %41 to i64*
store i64 0, i64* %49, align 8
store i32 %.reload, i32* %.reg2mem12
store i8* %sv_2.28.reload, i8** %sv_2.1.reg2mem
store i32 %sv_0.19.reload, i32* %sv_0.0.reg2mem
store i64 %r12.110.reload, i64* %r12.0.reg2mem
br label LBL_9
LBL_9:
%r12.0.reload = load i64, i64* %r12.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_2.1.reload = load i8*, i8** %sv_2.1.reg2mem
%.reload13 = load i32, i32* %.reg2mem12
%50 = add nuw nsw i64 %storemerge411.reload, 1
%51 = and i64 %50, 4294967295
%52 = trunc i64 %50 to i32
%53 = icmp ugt i32 %.reload13, %52
store i32 %.reload13, i32* %.reg2mem
store i64 %51, i64* %storemerge411.reg2mem
store i64 %r12.0.reload, i64* %r12.110.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.19.reg2mem
store i8* %sv_2.1.reload, i8** %sv_2.28.reg2mem
store i64 %13, i64* %sv_1.0.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
br i1 %53, label LBL_6, label LBL_10
LBL_10:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%54 = bitcast i64* %arg2 to i32*
store i32 %sv_0.2.reload, i32* %54, align 4
%55 = call i64 @FUNC(i64 %3)
%56 = call i64 @FUNC()
store i64 %sv_1.0.reload, i64* %storemerge.reg2mem
br label LBL_11
LBL_11:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %.reload13, { 1, 0 }
uselistorder i64 %37, { 1, 0 }
uselistorder i64 %36, { 1, 0 }
uselistorder i8* %19, { 0, 2, 1 }
uselistorder i64 %16, { 1, 0 }
uselistorder i64 %13, { 0, 2, 1, 3, 4 }
uselistorder i64 %3, { 3, 0, 2, 1, 4, 5 }
uselistorder i8** %sv_2.07.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge411.reg2mem, { 1, 0, 2 }
uselistorder i64* %r12.110.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.19.reg2mem, { 1, 0, 2 }
uselistorder i8** %sv_2.28.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 ()* @SyncHandle, { 1, 0 }
uselistorder i64 (i64)* @UnlockDisplay, { 1, 0 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i64 (i64)* @Xmalloc, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | iothread_stop_2362 | iothread_stop | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 %arg1, i64 1)
%1 = icmp eq i64 %0, 0
br i1 %1, label LBL_6, label LBL_1
LBL_1:
%2 = inttoptr i64 %0 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_6, label LBL_2
LBL_2:
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = icmp eq i8 %7, 0
br i1 %8, label LBL_3, label LBL_6
LBL_3:
store i8 1, i8* %6, align 1
%9 = load i64, i64* %2, align 8
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %0, 16
%12 = call i64 @FUNC(i64 %11)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_5, label LBL_4
LBL_4:
%15 = inttoptr i64 %11 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16)
br label LBL_5
LBL_5:
%18 = add i64 %0, 24
%19 = call i64 @FUNC(i64 %18)
br label LBL_6
LBL_6:
ret i64 0
uselistorder label LBL_6, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | vmx_cpuid_update_9299 | vmx_cpuid_update | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i32*
%3 = call i64 @FUNC(i64 %1)
%4 = trunc i64 %3 to i32
%5 = call i64 @FUNC()
%6 = trunc i64 %5 to i8
%7 = icmp eq i8 %6, 0
store i32 %4, i32* %sv_0.1.reg2mem
br i1 %7, label LBL_5, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %0)
%9 = trunc i64 %8 to i8
%10 = icmp eq i8 %9, 1
%11 = and i32 %4, -2
%spec.select = select i1 %10, i32 %4, i32 %11
%12 = load i8, i8* inttoptr (i64 4210716 to i8*), align 4
%13 = icmp eq i8 %12, 0
store i32 %spec.select, i32* %sv_0.1.reg2mem
br i1 %13, label LBL_5, label LBL_2
LBL_2:
%14 = icmp eq i8 %9, 0
%15 = load i32, i32* %2, align 4
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%16 = or i32 %15, 1
store i32 %16, i32* %2, align 4
store i32 %spec.select, i32* %sv_0.1.reg2mem
br label LBL_5
LBL_4:
%17 = and i32 %15, -2
store i32 %17, i32* %2, align 4
store i32 %spec.select, i32* %sv_0.1.reg2mem
br label LBL_5
LBL_5:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%18 = call i64 @FUNC(i64 %0, i64 7, i64 0)
%19 = call i64 @FUNC()
%20 = trunc i64 %19 to i8
%21 = icmp eq i8 %20, 0
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br i1 %21, label LBL_12, label LBL_6
LBL_6:
%22 = icmp eq i64 %18, 0
br i1 %22, label LBL_10, label LBL_7
LBL_7:
%23 = inttoptr i64 %18 to i32*
%24 = load i32, i32* %23, align 4
%25 = and i32 %24, 256
%26 = icmp eq i32 %25, 0
store i32 %24, i32* %.reg2mem
br i1 %26, label LBL_11, label LBL_8
LBL_8:
%27 = call i64 @FUNC(i64 %0)
%28 = trunc i64 %27 to i8
%29 = icmp eq i8 %28, 1
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br i1 %29, label LBL_12, label LBL_8.LBL_11_crit_edge
LBL_9:
%.pre = load i32, i32* %23, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_11
LBL_10:
%30 = and i32 %sv_0.1.reload, -3
store i32 %30, i32* %sv_0.2.reg2mem
br label LBL_12
LBL_11:
%.reload = load i32, i32* %.reg2mem
%31 = and i32 %sv_0.1.reload, -3
%32 = and i32 %.reload, -257
store i32 %32, i32* %23, align 4
store i32 %31, i32* %sv_0.2.reg2mem
br label LBL_12
LBL_12:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%33 = zext i32 %sv_0.2.reload to i64
%34 = call i64 @FUNC(i64 %33)
%35 = call i64 @FUNC(i64 16)
%36 = trunc i64 %35 to i8
%37 = icmp eq i8 %36, 0
store i64 %35, i64* %rax.0.reg2mem
br i1 %37, label LBL_17, label LBL_13
LBL_13:
%38 = load i8, i8* @gv_0, align 1
%39 = icmp eq i8 %38, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %39, label LBL_17, label LBL_14
LBL_14:
%40 = call i64 @FUNC(i64 %0)
%41 = trunc i64 %40 to i8
%42 = icmp eq i8 %41, 0
%43 = load i32, i32* %2, align 4
br i1 %42, label LBL_16, label LBL_15
LBL_15:
%44 = or i32 %43, 4
store i32 %44, i32* %2, align 4
store i64 %1, i64* %rax.0.reg2mem
br label LBL_17
LBL_16:
%45 = and i32 %43, -5
store i32 %45, i32* %2, align 4
store i64 %1, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %43, { 1, 0 }
uselistorder i32* %23, { 1, 0, 2 }
uselistorder i64 %18, { 1, 0 }
uselistorder i32 %sv_0.1.reload, { 3, 2, 0, 1 }
uselistorder i32 %15, { 1, 0 }
uselistorder i32 %spec.select, { 1, 0, 2 }
uselistorder i32 %4, { 1, 2, 0 }
uselistorder i32* %2, { 4, 5, 3, 1, 2, 0 }
uselistorder i64 %1, { 1, 0, 3, 2 }
uselistorder i64 %0, { 2, 1, 3, 0, 4 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 3, 1, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder label LBL_12, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | OPLDestroy_12802 | OPLDestroy | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = inttoptr i64 %arg1 to i64*
call void @free(i64* %1)
ret i64 ptrtoint (i32* @0 to i64)
} | 1 |
BinRealVul | __alloc_from_pool_11105 | __alloc_from_pool | define i64 @FUNC(i64 %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0))
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_2:
%4 = call i64 @FUNC(i64 %0, i64 %arg1)
%5 = icmp eq i64 %4, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %5, label LBL_5, label LBL_3
LBL_3:
%6 = load i64, i64* @gv_0, align 8
%7 = call i64 @FUNC(i64 %6, i64 %4)
%8 = call i64 @FUNC(i64 %7)
store i64 %8, i64* %arg2, align 8
%9 = urem i32 %arg3, 2
%10 = icmp eq i32 %9, 0
store i64 %4, i64* %storemerge.reg2mem
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%11 = inttoptr i64 %4 to i64*
%12 = trunc i64 %arg1 to i32
%13 = call i64* @memset(i64* %11, i32 0, i32 %12)
store i64 %4, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %4, { 0, 2, 1, 3, 4 }
uselistorder label LBL_5, { 2, 1, 0, 3 }
} | 1 |
BinRealVul | vrend_renderer_resource_attach_iov_11710 | vrend_renderer_resource_attach_iov | define i64 @FUNC(i64 %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = and i64 %arg1, 4294967295
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 22, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = inttoptr i64 %1 to i64*
store i64 %4, i64* %5, align 8
%6 = trunc i64 %arg3 to i32
%7 = add i64 %1, 8
%8 = inttoptr i64 %7 to i32*
store i32 %6, i32* %8, 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* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | window_602 | window | define i64 @FUNC(i32* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%storemerge2.reg2mem = alloca i64
%xmm2.3.lcssa.reg2mem = alloca i128
%xmm0.3.lcssa.reg2mem = alloca i128
%.reg2mem104 = alloca i32
%sv_0.113.reg2mem = alloca i32
%xmm0.315.reg2mem = alloca i128
%xmm2.316.reg2mem = alloca i128
%indvars.iv.reg2mem = alloca i64
%xmm0.418.reg2mem = alloca i128
%xmm2.419.reg2mem = alloca i128
%storemerge320.reg2mem = alloca i32
%.reg2mem102 = alloca i32
%storemerge422.reg2mem = alloca i32
%xmm2.2.reg2mem = alloca i128
%xmm0.2.reg2mem = alloca i128
%.reg2mem100 = alloca i32
%.reg2mem98 = alloca i32
%.reg2mem96 = alloca i32
%.reg2mem94 = alloca i32
%storemerge624.reg2mem = alloca i32
%xmm2.0.lcssa.reg2mem = alloca i128
%xmm0.0.lcssa.reg2mem = alloca i128
%.reg2mem92 = alloca i32
%.reg2mem90 = alloca i32
%.reg2mem88 = alloca i32
%.reg2mem86 = alloca i32
%.reg2mem84 = alloca i32
%sv_0.025.reg2mem = alloca i32
%xmm0.027.reg2mem = alloca i128
%xmm2.028.reg2mem = alloca i128
%indvars.iv42.reg2mem = alloca i64
%xmm0.131.reg2mem = alloca i128
%xmm2.132.reg2mem = alloca i128
%storemerge533.reg2mem = alloca i32
%.reg2mem82 = alloca i32
%.reg2mem80 = alloca i32
%.reg2mem78 = alloca i32
%.reg2mem76 = alloca i32
%.reg2mem = alloca i32
%storemerge837.reg2mem = alloca i32
%storemerge738.reg2mem = alloca i32
%rdi = alloca i64, align 8
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 40
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %4, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = urem i32 %14, 32
%16 = shl i32 1, %15
%17 = call i128 @FUNC(i128 %3, i128 %3)
%18 = call i128 @FUNC(i32 %16)
%19 = call i128 @FUNC(i32 1082130432)
%20 = call i128 @FUNC(i128 %18, i128 %19)
%21 = call i64 @__asm_movss.1(i128 %20)
%22 = add i64 %4, 16
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = or i32 %24, %arg3
%26 = icmp eq i32 %25, 0
store i64 0, i64* %storemerge2.reg2mem
br i1 %26, label LBL_28, label LBL_1
LBL_1:
%27 = add i32 %14, 31
%28 = urem i32 %27, 32
%29 = shl i32 1, %28
%30 = trunc i64 %2 to i32
%31 = icmp eq i32 %24, 0
%32 = icmp eq i32 %30, 0
br i1 %31, label LBL_4, label LBL_2
LBL_2:
br i1 %32, label LBL_8, label LBL_3
LBL_3:
%33 = mul i32 %29, 4
%34 = add i64 %4, 32
%35 = inttoptr i64 %34 to i64*
%36 = add i64 %4, 24
%37 = inttoptr i64 %36 to i64*
%38 = and i64 %2, 4294967295
store i32 0, i32* %storemerge738.reg2mem
br label LBL_6
LBL_4:
br i1 %32, label LBL_8, label LBL_5
LBL_5:
%39 = mul i32 %29, 4
%40 = add i64 %4, 24
%41 = inttoptr i64 %40 to i64*
%42 = and i64 %2, 4294967295
store i32 0, i32* %storemerge837.reg2mem
br label LBL_7
LBL_6:
%storemerge738.reload = load i32, i32* %storemerge738.reg2mem
%43 = load i64, i64* %35, align 8
%44 = shl i32 %storemerge738.reload, %28
%45 = sext i32 %44 to i64
%46 = mul i64 %45, 4
%47 = add i64 %46, %43
%48 = load i64, i64* %37, align 8
%49 = mul i32 %44, 2
%50 = sext i32 %49 to i64
%51 = mul i64 %50, 4
%52 = add i64 %51, %48
%53 = inttoptr i64 %52 to i64*
%54 = inttoptr i64 %47 to i64*
%55 = call i64* @memcpy(i64* %53, i64* %54, i32 %33)
%56 = add i32 %storemerge738.reload, 1
%57 = sext i32 %56 to i64
%58 = icmp sgt i64 %38, %57
store i32 %56, i32* %storemerge738.reg2mem
br i1 %58, label LBL_6, label LBL_8
LBL_7:
%storemerge837.reload = load i32, i32* %storemerge837.reg2mem
%59 = load i64, i64* %41, align 8
%60 = shl i32 %storemerge837.reload, %28
%61 = mul i32 %60, 2
%62 = sext i32 %61 to i64
%63 = mul i64 %62, 4
%64 = add i64 %63, %59
%65 = inttoptr i64 %64 to i64*
%66 = call i64* @memset(i64* %65, i32 0, i32 %39)
%67 = add i32 %storemerge837.reload, 1
%68 = sext i32 %67 to i64
%69 = icmp sgt i64 %42, %68
store i32 %67, i32* %storemerge837.reg2mem
br i1 %69, label LBL_7, label LBL_8
LBL_8:
%70 = ptrtoint i64* %arg2 to i64
%71 = trunc i64 %21 to i32
%72 = icmp eq i32 %arg3, 0
%73 = bitcast i64* %rdi to i32*
br i1 %72, label LBL_11, label LBL_9
LBL_9:
br i1 %32, label LBL_26, label LBL_10
LBL_10:
%74 = add i64 %4, 24
%75 = inttoptr i64 %74 to i64*
%76 = sext i32 %29 to i64
%77 = icmp sgt i32 %arg3, 0
%78 = add i64 %9, -4
%wide.trip.count44 = zext i32 %arg3 to i64
store i32 %30, i32* %.reg2mem
store i32 %30, i32* %.reg2mem76
store i32 %30, i32* %.reg2mem78
store i32 %30, i32* %.reg2mem80
store i32 %30, i32* %.reg2mem82
store i32 0, i32* %storemerge533.reg2mem
store i128 %20, i128* %xmm0.131.reg2mem
br label LBL_13
LBL_11:
br i1 %32, label LBL_27, label LBL_12
LBL_12:
%79 = mul i32 %29, 4
%80 = add i64 %4, 24
%81 = inttoptr i64 %80 to i64*
%82 = sext i32 %29 to i64
%83 = and i64 %2, 4294967295
store i32 0, i32* %storemerge624.reg2mem
br label LBL_16
LBL_13:
%xmm0.131.reload = load i128, i128* %xmm0.131.reg2mem
%xmm2.132.reload = load i128, i128* %xmm2.132.reg2mem
%storemerge533.reload = load i32, i32* %storemerge533.reg2mem
%.reload83 = load i32, i32* %.reg2mem82
%.reload81 = load i32, i32* %.reg2mem80
%.reload79 = load i32, i32* %.reg2mem78
%.reload77 = load i32, i32* %.reg2mem76
%.reload = load i32, i32* %.reg2mem
%84 = load i64, i64* %75, align 8
%85 = shl i32 %storemerge533.reload, %28
%86 = mul i32 %85, 2
%87 = sext i32 %86 to i64
%88 = add nsw i64 %87, %76
store i64 0, i64* %indvars.iv42.reg2mem
store i128 %xmm2.132.reload, i128* %xmm2.028.reg2mem
store i128 %xmm0.131.reload, i128* %xmm0.027.reg2mem
store i32 %storemerge533.reload, i32* %sv_0.025.reg2mem
store i32 %.reload, i32* %.reg2mem84
store i32 %.reload77, i32* %.reg2mem86
store i32 %.reload79, i32* %.reg2mem88
store i32 %.reload81, i32* %.reg2mem90
store i32 %.reload83, i32* %.reg2mem92
store i128 %xmm0.131.reload, i128* %xmm0.0.lcssa.reg2mem
store i128 %xmm2.132.reload, i128* %xmm2.0.lcssa.reg2mem
br i1 %77, label LBL_14, label LBL_15
LBL_14:
%sv_0.025.reload = load i32, i32* %sv_0.025.reg2mem
%xmm0.027.reload = load i128, i128* %xmm0.027.reg2mem
%xmm2.028.reload = load i128, i128* %xmm2.028.reg2mem
%indvars.iv42.reload = load i64, i64* %indvars.iv42.reg2mem
%89 = sext i32 %sv_0.025.reload to i64
%90 = mul i64 %89, 2
%91 = add i64 %90, %70
%92 = inttoptr i64 %91 to i16*
%93 = load i16, i16* %92, align 2
%94 = sext i16 %93 to i32
%95 = call i128 @FUNC(i128 %xmm0.027.reload, i128 %xmm0.027.reload)
%96 = call i128 @FUNC(i32 %94)
%97 = call i128 @FUNC(i64 4674736413210574848)
%98 = call i128 @FUNC(i128 %96, i128 %97)
%99 = call i128 @FUNC(i128 %xmm2.028.reload, i128 %xmm2.028.reload)
%100 = call i128 @FUNC(i32 %71)
%101 = call i128 @FUNC(i128 %98)
%102 = call i128 @FUNC(i128 %101, i128 %100)
%103 = trunc i64 %indvars.iv42.reload to i32
%104 = sub i32 %29, %103
%105 = sext i32 %104 to i64
%106 = mul i64 %105, 4
%107 = add i64 %78, %106
%108 = inttoptr i64 %107 to i32*
%109 = load i32, i32* %108, align 4
%110 = call i128 @FUNC(i32 %109)
%111 = call i128 @__asm_cvtss2sd.2(i128 %110)
%112 = call i128 @FUNC(i128 %111, i128 %102)
%reass.add = add nsw i64 %88, %indvars.iv42.reload
%reass.mul = mul i64 %reass.add, 4
%113 = add i64 %reass.mul, %84
%114 = call i128 @FUNC(i128 %112)
%115 = call i64 @__asm_movss.1(i128 %114)
%116 = trunc i64 %115 to i32
%117 = inttoptr i64 %113 to i32*
store i32 %116, i32* %117, align 4
%indvars.iv.next43 = add nuw nsw i64 %indvars.iv42.reload, 1
%118 = load i32, i32* %73, align 8
%119 = add i32 %118, %sv_0.025.reload
%exitcond45 = icmp eq i64 %indvars.iv.next43, %wide.trip.count44
store i64 %indvars.iv.next43, i64* %indvars.iv42.reg2mem
store i128 %100, i128* %xmm2.028.reg2mem
store i128 %114, i128* %xmm0.027.reg2mem
store i32 %119, i32* %sv_0.025.reg2mem
store i32 %118, i32* %.reg2mem84
store i32 %118, i32* %.reg2mem86
store i32 %118, i32* %.reg2mem88
store i32 %118, i32* %.reg2mem90
store i32 %118, i32* %.reg2mem92
store i128 %114, i128* %xmm0.0.lcssa.reg2mem
store i128 %100, i128* %xmm2.0.lcssa.reg2mem
br i1 %exitcond45, label LBL_15, label LBL_14
LBL_15:
%xmm2.0.lcssa.reload = load i128, i128* %xmm2.0.lcssa.reg2mem
%xmm0.0.lcssa.reload = load i128, i128* %xmm0.0.lcssa.reg2mem
%.reload93 = load i32, i32* %.reg2mem92
%.reload91 = load i32, i32* %.reg2mem90
%.reload89 = load i32, i32* %.reg2mem88
%.reload87 = load i32, i32* %.reg2mem86
%.reload85 = load i32, i32* %.reg2mem84
%120 = add i32 %storemerge533.reload, 1
%121 = zext i32 %.reload93 to i64
%122 = sext i32 %120 to i64
%123 = icmp slt i64 %122, %121
store i32 %.reload85, i32* %.reg2mem
store i32 %.reload87, i32* %.reg2mem76
store i32 %.reload89, i32* %.reg2mem78
store i32 %.reload91, i32* %.reg2mem80
store i32 %.reload93, i32* %.reg2mem82
store i32 %120, i32* %storemerge533.reg2mem
store i128 %xmm2.0.lcssa.reload, i128* %xmm2.132.reg2mem
store i128 %xmm0.0.lcssa.reload, i128* %xmm0.131.reg2mem
store i32 %.reload85, i32* %.reg2mem94
store i32 %.reload87, i32* %.reg2mem96
store i32 %.reload89, i32* %.reg2mem98
store i32 %.reload91, i32* %.reg2mem100
store i128 %xmm0.0.lcssa.reload, i128* %xmm0.2.reg2mem
store i128 %xmm2.0.lcssa.reload, i128* %xmm2.2.reg2mem
br i1 %123, label LBL_13, label LBL_17
LBL_16:
%storemerge624.reload = load i32, i32* %storemerge624.reg2mem
%124 = load i64, i64* %81, align 8
%125 = shl i32 %storemerge624.reload, %28
%126 = mul i32 %125, 2
%127 = sext i32 %126 to i64
%128 = add nsw i64 %127, %82
%129 = mul i64 %128, 4
%130 = add i64 %129, %124
%131 = inttoptr i64 %130 to i64*
%132 = call i64* @memset(i64* %131, i32 0, i32 %79)
%133 = add i32 %storemerge624.reload, 1
%134 = sext i32 %133 to i64
%135 = icmp sgt i64 %83, %134
store i32 %133, i32* %storemerge624.reg2mem
store i32 %30, i32* %.reg2mem94
store i32 %30, i32* %.reg2mem96
store i32 %30, i32* %.reg2mem98
store i32 %30, i32* %.reg2mem100
store i128 %20, i128* %xmm0.2.reg2mem
br i1 %135, label LBL_16, label LBL_17
LBL_17:
%xmm2.2.reload = load i128, i128* %xmm2.2.reg2mem
%xmm0.2.reload = load i128, i128* %xmm0.2.reg2mem
%.reload101 = load i32, i32* %.reg2mem100
%.reload97 = load i32, i32* %.reg2mem96
%.reload95 = load i32, i32* %.reg2mem94
%136 = icmp eq i32 %.reload101, 0
br i1 %136, label LBL_20, label LBL_18
LBL_18:
%.reload99 = load i32, i32* %.reg2mem98
%137 = add i64 %4, 64
%138 = inttoptr i64 %137 to i64*
%139 = add i64 %4, 24
%140 = inttoptr i64 %139 to i64*
%141 = add i64 %4, 56
%142 = inttoptr i64 %141 to i64*
%143 = add i64 %4, 48
%144 = inttoptr i64 %143 to i64*
%145 = zext i32 %.reload99 to i64
store i32 0, i32* %storemerge422.reg2mem
br label LBL_19
LBL_19:
%storemerge422.reload = load i32, i32* %storemerge422.reg2mem
%146 = load i64, i64* %138, align 8
%147 = load i64, i64* %140, align 8
%148 = shl i32 %storemerge422.reload, %28
%149 = mul i32 %148, 2
%150 = sext i32 %149 to i64
%151 = mul i64 %150, 4
%152 = add i64 %151, %147
%153 = load i64, i64* %142, align 8
%154 = sext i32 %148 to i64
%155 = mul i64 %154, 4
%156 = add i64 %153, %155
%157 = load i64, i64* %144, align 8
%158 = call i64 @FUNC(i64 %157, i64 %156, i64 %152, i64 %146)
%159 = add i32 %storemerge422.reload, 1
%160 = sext i32 %159 to i64
%161 = icmp slt i64 %160, %145
store i32 %159, i32* %storemerge422.reg2mem
br i1 %161, label LBL_19, label LBL_20
LBL_20:
br i1 %72, label LBL_27, label LBL_21
LBL_21:
%162 = icmp eq i32 %.reload97, 0
br i1 %162, label LBL_26, label LBL_22
LBL_22:
%163 = add i64 %4, 32
%164 = inttoptr i64 %163 to i64*
%165 = icmp sgt i32 %arg3, 0
%wide.trip.count = zext i32 %arg3 to i64
store i32 %.reload95, i32* %.reg2mem102
store i32 0, i32* %storemerge320.reg2mem
store i128 %xmm2.2.reload, i128* %xmm2.419.reg2mem
store i128 %xmm0.2.reload, i128* %xmm0.418.reg2mem
br label LBL_23
LBL_23:
%xmm0.418.reload = load i128, i128* %xmm0.418.reg2mem
%xmm2.419.reload = load i128, i128* %xmm2.419.reg2mem
%storemerge320.reload = load i32, i32* %storemerge320.reg2mem
%.reload103 = load i32, i32* %.reg2mem102
%166 = load i64, i64* %164, align 8
%167 = shl i32 %storemerge320.reload, %28
%168 = sext i32 %167 to i64
%169 = mul i64 %168, 4
%170 = add i64 %166, %169
store i64 0, i64* %indvars.iv.reg2mem
store i128 %xmm2.419.reload, i128* %xmm2.316.reg2mem
store i128 %xmm0.418.reload, i128* %xmm0.315.reg2mem
store i32 %storemerge320.reload, i32* %sv_0.113.reg2mem
store i32 %.reload103, i32* %.reg2mem104
store i128 %xmm0.418.reload, i128* %xmm0.3.lcssa.reg2mem
store i128 %xmm2.419.reload, i128* %xmm2.3.lcssa.reg2mem
br i1 %165, label LBL_24, label LBL_25
LBL_24:
%sv_0.113.reload = load i32, i32* %sv_0.113.reg2mem
%xmm0.315.reload = load i128, i128* %xmm0.315.reg2mem
%xmm2.316.reload = load i128, i128* %xmm2.316.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%171 = sext i32 %sv_0.113.reload to i64
%172 = mul i64 %171, 2
%173 = add i64 %172, %70
%174 = inttoptr i64 %173 to i16*
%175 = load i16, i16* %174, align 2
%176 = sext i16 %175 to i32
%177 = call i128 @FUNC(i128 %xmm0.315.reload, i128 %xmm0.315.reload)
%178 = call i128 @FUNC(i32 %176)
%179 = call i128 @FUNC(i64 4674736413210574848)
%180 = call i128 @FUNC(i128 %178, i128 %179)
%181 = call i128 @FUNC(i128 %xmm2.316.reload, i128 %xmm2.316.reload)
%182 = call i128 @FUNC(i32 %71)
%183 = call i128 @FUNC(i128 %180)
%184 = call i128 @FUNC(i128 %183, i128 %182)
%185 = mul i64 %indvars.iv.reload, 4
%186 = add i64 %185, %9
%187 = inttoptr i64 %186 to i32*
%188 = load i32, i32* %187, align 4
%189 = call i128 @FUNC(i32 %188)
%190 = call i128 @__asm_cvtss2sd.2(i128 %189)
%191 = call i128 @FUNC(i128 %190, i128 %184)
%192 = add i64 %170, %185
%193 = call i128 @FUNC(i128 %191)
%194 = call i64 @__asm_movss.1(i128 %193)
%195 = trunc i64 %194 to i32
%196 = inttoptr i64 %192 to i32*
store i32 %195, i32* %196, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%197 = load i32, i32* %73, align 8
%198 = add i32 %197, %sv_0.113.reload
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i128 %182, i128* %xmm2.316.reg2mem
store i128 %193, i128* %xmm0.315.reg2mem
store i32 %198, i32* %sv_0.113.reg2mem
store i32 %197, i32* %.reg2mem104
store i128 %193, i128* %xmm0.3.lcssa.reg2mem
store i128 %182, i128* %xmm2.3.lcssa.reg2mem
br i1 %exitcond, label LBL_25, label LBL_24
LBL_25:
%xmm2.3.lcssa.reload = load i128, i128* %xmm2.3.lcssa.reg2mem
%xmm0.3.lcssa.reload = load i128, i128* %xmm0.3.lcssa.reg2mem
%.reload105 = load i32, i32* %.reg2mem104
%199 = add i32 %storemerge320.reload, 1
%200 = zext i32 %.reload105 to i64
%201 = sext i32 %199 to i64
%202 = icmp slt i64 %201, %200
store i32 %.reload105, i32* %.reg2mem102
store i32 %199, i32* %storemerge320.reg2mem
store i128 %xmm2.3.lcssa.reload, i128* %xmm2.419.reg2mem
store i128 %xmm0.3.lcssa.reload, i128* %xmm0.418.reg2mem
br i1 %202, label LBL_23, label LBL_26
LBL_26:
store i32 1, i32* %23, align 4
store i64 1, i64* %storemerge2.reg2mem
br label LBL_28
LBL_27:
store i32 0, i32* %23, align 4
store i64 1, i64* %storemerge2.reg2mem
br label LBL_28
LBL_28:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
ret i64 %storemerge2.reload
uselistorder i32 %.reload105, { 1, 0 }
uselistorder i128 %xmm2.316.reload, { 1, 0 }
uselistorder i128 %xmm0.315.reload, { 1, 0 }
uselistorder i32 %sv_0.113.reload, { 1, 0 }
uselistorder i32 %storemerge320.reload, { 2, 0, 1 }
uselistorder i32 %148, { 1, 0 }
uselistorder i32 %storemerge422.reload, { 1, 0 }
uselistorder i32 %storemerge624.reload, { 1, 0 }
uselistorder i32 %.reload93, { 1, 0 }
uselistorder i128 %xmm2.028.reload, { 1, 0 }
uselistorder i128 %xmm0.027.reload, { 1, 0 }
uselistorder i32 %sv_0.025.reload, { 1, 0 }
uselistorder i32 %storemerge533.reload, { 2, 0, 1 }
uselistorder i32 %71, { 1, 0 }
uselistorder i32 %storemerge837.reload, { 1, 0 }
uselistorder i32 %storemerge738.reload, { 1, 0 }
uselistorder i1 %32, { 0, 1, 3, 2 }
uselistorder i32 %29, { 3, 5, 0, 4, 1, 2 }
uselistorder i32 %28, { 1, 2, 4, 3, 6, 5, 0 }
uselistorder i32 %24, { 1, 0 }
uselistorder i32* %23, { 1, 0, 2 }
uselistorder i32 %14, { 1, 0 }
uselistorder i64 %4, { 3, 7, 6, 5, 4, 8, 2, 9, 1, 0, 10, 11, 12 }
uselistorder i64 %2, { 2, 3, 1, 0 }
uselistorder i32* %storemerge738.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge837.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem76, { 1, 0, 2 }
uselistorder i32* %.reg2mem78, { 1, 0, 2 }
uselistorder i32* %.reg2mem80, { 1, 0, 2 }
uselistorder i32* %.reg2mem82, { 1, 0, 2 }
uselistorder i32* %storemerge533.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm2.132.reg2mem, { 1, 0 }
uselistorder i128* %xmm0.131.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv42.reg2mem, { 2, 0, 1 }
uselistorder i128* %xmm2.028.reg2mem, { 2, 0, 1 }
uselistorder i128* %xmm0.027.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.025.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge624.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem94, { 0, 2, 1 }
uselistorder i32* %.reg2mem96, { 0, 2, 1 }
uselistorder i32* %.reg2mem98, { 0, 2, 1 }
uselistorder i32* %.reg2mem100, { 0, 2, 1 }
uselistorder i128* %xmm0.2.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge422.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem102, { 1, 0, 2 }
uselistorder i32* %storemerge320.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm2.419.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm0.418.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i128* %xmm2.316.reg2mem, { 2, 0, 1 }
uselistorder i128* %xmm0.315.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.113.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge2.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 1, { 1, 0, 3, 2 }
uselistorder i64 4674736413210574848, { 1, 0, 2 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i64 4294967295, { 1, 0, 2 }
uselistorder i32 0, { 15, 0, 8, 9, 1, 10, 14, 2, 3, 7, 12, 13, 4, 5, 6, 16, 11 }
uselistorder i32 %arg3, { 2, 4, 1, 3, 5, 0 }
uselistorder label LBL_28, { 2, 1, 0 }
uselistorder label LBL_27, { 1, 0 }
uselistorder label LBL_26, { 0, 2, 1 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_23, { 1, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_16, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_8, { 1, 0, 3, 2 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | decode_udvm_literal_operand_18736 | decode_udvm_literal_operand | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.in.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = and i64 %arg2, 4294967295
%2 = add i64 %1, %0
%3 = inttoptr i64 %2 to i8*
%4 = load i8, i8* %3, align 1
%5 = icmp slt i8 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_4, label LBL_1
LBL_1:
%7 = ashr exact i64 %sext, 32
%8 = and i8 %4, -64
%9 = icmp eq i8 %8, -128
%10 = icmp eq i1 %9, false
%11 = and i64 %7, 4294967295
%12 = add i64 %11, %0
%13 = inttoptr i64 %12 to i8*
%14 = load i8, i8* %13, align 1
%15 = urem i8 %14, 32
%16 = zext i8 %15 to i16
%17 = mul i16 %16, 256
%18 = add nsw i64 %7, 1
%19 = urem i64 %18, 65536
%20 = add i64 %19, %0
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21, align 1
%23 = zext i8 %22 to i16
%24 = or i16 %17, %23
%25 = bitcast i64* %arg3 to i16*
store i16 %24, i16* %25, align 2
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%sext4 = add i64 %sext, 8589934592
store i64 %sext4, i64* %sv_0.0.in.reg2mem
br label LBL_5
LBL_3:
%sext5 = add i64 %sext, 12884901888
store i64 %sext5, i64* %sv_0.0.in.reg2mem
br label LBL_5
LBL_4:
%26 = urem i8 %4, -128
%27 = zext i8 %26 to i16
%28 = bitcast i64* %arg3 to i16*
store i16 %27, i16* %28, align 2
%sext6 = add i64 %sext, 4294967296
store i64 %sext6, 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
%29 = udiv i64 %sv_0.0.in.reload, 4294967296
ret i64 %29
uselistorder i64 %7, { 1, 0 }
uselistorder i64 %sext, { 3, 2, 1, 0 }
uselistorder i64* %sv_0.0.in.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 4294967296, { 1, 2, 0 }
uselistorder i64 %arg2, { 1, 0 }
} | 1 |
BinRealVul | do_token_in_15974 | do_token_in | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %2 to i32
%5 = icmp eq i32 %4, 0
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_10
LBL_1:
%6 = trunc i64 %1 to i32
store i64 4294967295, i64* %rax.0.reg2mem
switch i32 %6, label LBL_10 [
i32 0, label LBL_2
i32 1, label LBL_5
]
LBL_2:
%7 = add i64 %3, 12
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = icmp slt i8 %9, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_10, label LBL_3
LBL_3:
%11 = trunc i64 %3 to i32
%12 = icmp eq i32 %11, 1
%13 = icmp eq i1 %12, false
store i64 1, i64* %rax.0.reg2mem
br i1 %13, label LBL_4, label LBL_10
LBL_4:
%14 = bitcast i64* %arg1 to i32*
store i32 2, i32* %14, align 4
%15 = icmp slt i32 %11, 1
%16 = and i64 %3, 4294967295
%spec.select3 = select i1 %15, i64 %16, i64 0
ret i64 %spec.select3
LBL_5:
%17 = add i64 %3, 12
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18, align 1
%20 = icmp slt i8 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_9, label LBL_6
LBL_6:
%22 = add i64 %3, 4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i64 %3, 8
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = sub i32 %24, %27
%29 = ptrtoint i32* %arg2 to i64
%30 = add i64 %29, 4
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = zext i32 %32 to i64
%34 = sext i32 %28 to i64
%35 = icmp sgt i64 %34, %33
%spec.select = select i1 %35, i32 %32, i32 %28
%36 = add i64 %3, 20
%37 = sext i32 %27 to i64
%38 = add i64 %36, %37
%39 = add i64 %29, 8
%40 = inttoptr i64 %39 to i64*
%41 = inttoptr i64 %38 to i64*
%42 = call i64* @memcpy(i64* %40, i64* %41, i32 %spec.select)
%43 = load i32, i32* %26, align 4
%44 = add i32 %spec.select, %43
store i32 %44, i32* %26, align 4
%45 = load i32, i32* %23, align 4
%46 = icmp ult i32 %44, %45
br i1 %46, label LBL_8, label LBL_7
LBL_7:
%47 = bitcast i64* %arg1 to i32*
store i32 0, i32* %47, align 4
br label LBL_8
LBL_8:
%48 = zext i32 %spec.select to i64
store i64 %48, i64* %rax.0.reg2mem
br label LBL_10
LBL_9:
%49 = bitcast i64* %arg1 to i32*
store i32 2, i32* %49, align 4
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %spec.select, { 2, 0, 1 }
uselistorder i32* %26, { 1, 0, 2 }
uselistorder i64 %3, { 1, 4, 3, 2, 6, 7, 5, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 3, 2, 1, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder i64* %arg1, { 1, 2, 0, 3 }
uselistorder label LBL_10, { 4, 5, 2, 1, 0, 3 }
} | 1 |
BinRealVul | dec_sl_2621 | dec_sl | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 1
%6 = icmp eq i1 %5, false
%7 = ptrtoint i32* %arg1 to i64
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%8 = add i64 %7, 16
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %7, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i64 %7, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 %17, i32 %13, i32 %10, i64 %2, i64 %1)
br label LBL_3
LBL_2:
%19 = add i64 %7, 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i64 %7, 4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i64 %7, 12
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = zext i32 %27 to i64
%29 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_1, i64 0, i64 0), i64 %28, i32 %24, i32 %21, i64 %2, i64 %1)
br label LBL_3
LBL_3:
%30 = add i64 %7, 24
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = urem i32 %34, 2
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_5, label LBL_4
LBL_4:
%38 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_2, i64 0, i64 0))
store i64 %38, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
br i1 %6, label LBL_7, label LBL_6
LBL_6:
%39 = add i64 %7, 16
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = add i64 %7, 4
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = sext i32 %44 to i64
%46 = mul i64 %45, 4
%47 = add i64 %46, ptrtoint (i32** @gv_3 to i64)
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = add i64 %7, 8
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = sext i32 %52 to i64
%54 = mul i64 %53, 4
%55 = add i64 %54, ptrtoint (i32** @gv_3 to i64)
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = zext i32 %49 to i64
%59 = zext i32 %57 to i64
%60 = call i64 @FUNC(i64 %59, i64 %58, i32 %41)
store i64 %60, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%61 = call i64 @FUNC()
%62 = trunc i64 %61 to i32
%63 = add i64 %7, 8
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = sext i32 %65 to i64
%67 = mul i64 %66, 4
%68 = add i64 %67, ptrtoint (i32** @gv_3 to i64)
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = zext i32 %70 to i64
%72 = and i64 %61, 4294967295
%73 = call i64 @FUNC(i64 %72, i64 %71, i64 31)
%74 = add i64 %7, 4
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
%77 = sext i32 %76 to i64
%78 = mul i64 %77, 4
%79 = add i64 %78, ptrtoint (i32** @gv_3 to i64)
%80 = inttoptr i64 %79 to i32*
%81 = load i32, i32* %80, align 4
%82 = add i64 %7, 12
%83 = inttoptr i64 %82 to i32*
%84 = load i32, i32* %83, align 4
%85 = sext i32 %84 to i64
%86 = mul i64 %85, 4
%87 = add i64 %86, ptrtoint (i32** @gv_3 to i64)
%88 = inttoptr i64 %87 to i32*
%89 = load i32, i32* %88, align 4
%90 = zext i32 %81 to i64
%91 = zext i32 %89 to i64
%92 = call i64 @FUNC(i64 %91, i64 %90, i32 %62)
%93 = call i64 @FUNC(i64 %72)
store i64 %93, 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 %7, { 1, 0, 2, 6, 5, 4, 3, 9, 10, 12, 7, 8, 11 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i32, i32, i64, i64)* @LOG_DIS, { 1, 0 }
uselistorder i64 4, { 0, 1, 5, 2, 3, 4, 6, 7, 8 }
} | 0 |
BinRealVul | Sp_split_regexp_12316 | Sp_split_regexp | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.ph.lcssa.reg2mem = alloca i64
%sv_1.1.ph.lcssa.reg2mem = alloca i32
%sv_1.1.ph22.reg2mem = alloca i32
%sv_0.0.ph24.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i32
%storemerge19.reg2mem = alloca i32
%sv_1.020.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_2.012.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%1 = ptrtoint i64* %arg1 to i64
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sv_3 = alloca i32, align 4
%sv_4 = alloca i64, align 8
%4 = call i64 @FUNC(i64 %1, i64 0)
%5 = call i64 @FUNC(i64 %1, i64 1)
%6 = call i64 @FUNC(i64 %1, i64 2)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
store i32 1073741824, i32* %storemerge3.reg2mem
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %1, i64 2)
%phitmp = trunc i64 %9 to i32
store i32 %phitmp, i32* %storemerge3.reg2mem
br label LBL_2
LBL_2:
%10 = inttoptr i64 %4 to i8*
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%11 = call i64 @FUNC(i64 %1)
%12 = call i32 @strlen(i8* %10)
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_3, label LBL_5
LBL_3:
%15 = sext i32 %12 to i64
%16 = add i64 %4, %15
%17 = icmp ult i64 %4, %16
store i32 0, i32* %sv_1.1.ph.lcssa.reg2mem
store i64 %4, i64* %sv_0.0.ph.lcssa.reg2mem
br i1 %17, label LBL_4, label LBL_17
LBL_4:
%18 = ptrtoint i64* %sv_4 to i64
%19 = inttoptr i64 %5 to i64*
%20 = bitcast i32* %sv_3 to i64*
%21 = icmp ult i64 %2, %16
store i64 %4, i64* %sv_0.0.ph24.reg2mem
store i32 0, i32* %sv_1.1.ph22.reg2mem
br label LBL_8.lr.ph
LBL_5:
%22 = inttoptr i64 %5 to i64*
%23 = load i64, i64* %22, align 8
%24 = bitcast i32* %sv_3 to i64*
%25 = call i64 @FUNC(i64 %23, i64 %4, i64* nonnull %24, i64 0)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
store i64 %25, i64* %rax.0.reg2mem
br i1 %27, label LBL_19, label LBL_6
LBL_6:
%28 = icmp eq i32 %storemerge3.reload, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %28, label LBL_19, label LBL_7
LBL_7:
%29 = call i64 @FUNC(i64 %1, i64* nonnull @gv_0)
%30 = call i64 @FUNC(i64 %1, i64 4294967294, i64 0)
store i64 %30, i64* %rax.0.reg2mem
br label LBL_19
LBL_8:
%sv_2.012.reload = load i64, i64* %sv_2.012.reg2mem
%31 = icmp ule i64 %sv_2.012.reload, %4
%32 = icmp ne i1 %31, true
%33 = zext i1 %32 to i64
%34 = load i64, i64* %19, align 8
%35 = call i64 @FUNC(i64 %34, i64 %sv_2.012.reload, i64* nonnull %20, i64 %33)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
store i32 %sv_1.1.ph22.reload, i32* %sv_1.1.ph.lcssa.reg2mem
store i64 %sv_0.0.ph24.reload, i64* %sv_0.0.ph.lcssa.reg2mem
br i1 %38, label LBL_17, label LBL_9
LBL_9:
br i1 %65, label LBL_10, label LBL_16
LBL_10:
%39 = zext i32 %sv_1.1.ph22.reload to i64
%40 = icmp eq i32 %sv_1.1.ph22.reload, %storemerge3.reload
store i64 %39, i64* %rax.0.reg2mem
br i1 %40, label LBL_19, label LBL_11
LBL_11:
%41 = sub i64 %3, %sv_0.0.ph24.reload
%42 = call i64 @FUNC(i64 %1, i64 %sv_0.0.ph24.reload, i64 %41)
%43 = call i64 @FUNC(i64 %1, i64 4294967294, i64 %39)
%sv_1.018 = add i32 %sv_1.1.ph22.reload, 1
%44 = load i32, i32* %sv_3, align 4
%45 = icmp ugt i32 %44, 1
store i64 1, i64* %.reg2mem
store i32 %sv_1.018, i32* %sv_1.020.reg2mem
store i32 1, i32* %storemerge19.reg2mem
store i32 %sv_1.018, i32* %sv_1.0.lcssa.reg2mem
br i1 %45, label LBL_12, label LBL_14
LBL_12:
%sv_1.020.reload = load i32, i32* %sv_1.020.reg2mem
%46 = zext i32 %sv_1.020.reload to i64
%47 = icmp eq i32 %sv_1.020.reload, %storemerge3.reload
store i64 %46, i64* %rax.0.reg2mem
br i1 %47, label LBL_19, label LBL_13
LBL_13:
%storemerge19.reload = load i32, i32* %storemerge19.reg2mem
%.reload = load i64, i64* %.reg2mem
%48 = mul i64 %.reload, 16
%49 = add i64 %48, %18
%50 = add i64 %49, -224
%51 = inttoptr i64 %50 to i64*
%52 = load i64, i64* %51, align 8
%53 = add i64 %49, -232
%54 = inttoptr i64 %53 to i64*
%55 = load i64, i64* %54, align 8
%56 = sub i64 %52, %55
%57 = call i64 @FUNC(i64 %1, i64 %55, i64 %56)
%58 = call i64 @FUNC(i64 %1, i64 4294967294, i64 %46)
%59 = add i32 %storemerge19.reload, 1
%sv_1.0 = add i32 %sv_1.020.reload, 1
%60 = load i32, i32* %sv_3, align 4
%61 = zext i32 %60 to i64
%62 = sext i32 %59 to i64
%63 = icmp slt i64 %62, %61
store i64 %62, i64* %.reg2mem
store i32 %sv_1.0, i32* %sv_1.020.reg2mem
store i32 %59, i32* %storemerge19.reg2mem
store i32 %sv_1.0, i32* %sv_1.0.lcssa.reg2mem
br i1 %63, label LBL_12, label LBL_14
LBL_14:
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
store i32 %sv_1.0.lcssa.reload, i32* %sv_1.1.ph22.reg2mem
store i32 %sv_1.0.lcssa.reload, i32* %sv_1.1.ph.lcssa.reg2mem
br i1 %21, label LBL_8.lr.ph, label LBL_17
LBL_15:
%sv_1.1.ph22.reload = load i32, i32* %sv_1.1.ph22.reg2mem
%sv_0.0.ph24.reload = load i64, i64* %sv_0.0.ph24.reg2mem
%64 = icmp eq i64 %3, %sv_0.0.ph24.reload
%65 = icmp eq i1 %64, false
store i64 %sv_0.0.ph24.reload, i64* %sv_2.012.reg2mem
br label LBL_8
LBL_16:
%66 = add i64 %sv_2.012.reload, 1
%67 = icmp ult i64 %66, %16
store i64 %66, i64* %sv_2.012.reg2mem
store i32 %sv_1.1.ph22.reload, i32* %sv_1.1.ph.lcssa.reg2mem
store i64 %sv_0.0.ph24.reload, i64* %sv_0.0.ph.lcssa.reg2mem
br i1 %67, label LBL_8, label LBL_17
LBL_17:
%sv_1.1.ph.lcssa.reload = load i32, i32* %sv_1.1.ph.lcssa.reg2mem
%68 = zext i32 %sv_1.1.ph.lcssa.reload to i64
%69 = icmp eq i32 %sv_1.1.ph.lcssa.reload, %storemerge3.reload
store i64 %68, i64* %rax.0.reg2mem
br i1 %69, label LBL_19, label LBL_18
LBL_18:
%sv_0.0.ph.lcssa.reload = load i64, i64* %sv_0.0.ph.lcssa.reg2mem
%70 = call i64 @FUNC(i64 %1, i64 %sv_0.0.ph.lcssa.reload)
%71 = call i64 @FUNC(i64 %1, i64 4294967294, i64 %68)
store i64 %71, i64* %rax.0.reg2mem
br label LBL_19
LBL_19:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %68, { 1, 0 }
uselistorder i64 %sv_0.0.ph24.reload, { 0, 5, 2, 1, 4, 3 }
uselistorder i32 %sv_1.1.ph22.reload, { 0, 1, 4, 3, 2 }
uselistorder i64 %46, { 1, 0 }
uselistorder i32 %sv_1.020.reload, { 2, 0, 1 }
uselistorder i64 %39, { 1, 0 }
uselistorder i64 %sv_2.012.reload, { 0, 2, 1 }
uselistorder i64 %16, { 2, 1, 0 }
uselistorder i32 %12, { 1, 0 }
uselistorder i32 %storemerge3.reload, { 2, 0, 1, 3 }
uselistorder i64 %4, { 4, 5, 1, 0, 3, 2, 6 }
uselistorder i32* %sv_3, { 1, 0, 2, 3 }
uselistorder i64 %1, { 8, 7, 4, 3, 6, 5, 2, 1, 9, 0, 10, 11, 12 }
uselistorder i32* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_2.012.reg2mem, { 1, 2, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.020.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge19.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.1.ph.lcssa.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 7, 2, 1, 3, 4, 5 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @js_pushlstring, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @js_setindex, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64*, i64)* @js_regexec, { 1, 0 }
uselistorder i32 0, { 4, 2, 5, 1, 0, 3, 6 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder label LBL_19, { 6, 2, 1, 0, 5, 3, 4 }
uselistorder label LBL_17, { 1, 0, 2, 3 }
uselistorder label LBL_8.lr.ph, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | tx3g_dump_8527 | tx3g_dump | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %arg2)
%3 = add i64 %arg1, 12
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i64 %arg1, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = add i64 %arg1, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = and i64 %1, 4294967295
%13 = zext i32 %5 to i64
%14 = zext i32 %8 to i64
%15 = inttoptr i64 %arg2 to %_IO_FILE*
%16 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %15, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @gv_1, i64 0, i64 0), i64 %12, i32 %11, i64 %14, i64 %13)
%17 = add i64 %arg1, 16
%18 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0), i64 %17)
%19 = call i32 @fwrite(i64* bitcast ([3 x i8]* @gv_3 to i64*), i32 1, i32 2, %_IO_FILE* %15)
%20 = call i32 @fwrite(i64* bitcast ([14 x i8]* @gv_4 to i64*), i32 1, i32 13, %_IO_FILE* %15)
%21 = add i64 %arg1, 48
%22 = call i64 @FUNC(i64 %arg2, i64 %21)
%23 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_5, i64 0, i64 0), i64 %arg1, i64 %arg2)
%24 = call i32 @fwrite(i64* bitcast ([16 x i8]* @gv_6 to i64*), i32 1, i32 15, %_IO_FILE* %15)
%25 = add i64 %arg1, 56
%26 = call i64 @FUNC(i64 %arg2, i64 %25)
%27 = call i32 @fwrite(i64* bitcast ([17 x i8]* @gv_7 to i64*), i32 1, i32 16, %_IO_FILE* %15)
%28 = add i64 %arg1, 32
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_2, label LBL_1
LBL_1:
%32 = add i64 %arg1, 40
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34, i64 %arg2, i64 1)
br label LBL_2
LBL_2:
%36 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %arg1, i64 %arg2)
ret i64 0
uselistorder %_IO_FILE* %15, { 1, 0, 3, 2, 4 }
uselistorder i64 (i8*, i64, i64)* @gf_isom_box_dump_done, { 1, 0 }
uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 3, 2, 1, 0 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0, 2, 3 }
uselistorder i64 %arg2, { 1, 0, 3, 2, 4, 6, 5, 7 }
uselistorder i64 %arg1, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10 }
} | 0 |
BinRealVul | ras_putdatastd_6753 | ras_putdatastd | define i64 @FUNC(i64* %arg1, i32* %arg2, i32* %arg3, i32 %arg4, i32* %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv41.reg2mem = alloca i64
%storemerge537.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_1.1.lcssa.reg2mem = alloca i32
%sv_1.129.reg2mem = alloca i32
%sv_0.030.reg2mem = alloca i32
%storemerge11.reg2mem = alloca i32
%sv_1.232.reg2mem = alloca i32
%sv_0.133.reg2mem = alloca i32
%storemerge834.reg2mem = alloca i32
%indvars.iv45.reg2mem = alloca i64
%indvars.iv47.reg2mem = alloca i64
%indvars.iv49.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%4 = icmp slt i32 %arg4, 4
br i1 %4, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i32 72, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%5 = ptrtoint i32* %arg2 to i64
%6 = add i64 %5, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 24
%10 = icmp eq i1 %9, false
%11 = icmp sgt i32 %arg4, 2
%or.cond = or i1 %11, %10
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_3, label LBL_34
LBL_3:
%12 = ptrtoint i64* %arg1 to i64
%13 = ptrtoint i64* %sv_3 to i64
%14 = ptrtoint i64* %sv_2 to i64
%15 = add i64 %13, -80
store i64 0, i64* %indvars.iv49.reg2mem
br label LBL_4
LBL_4:
%indvars.iv49.reload = load i64, i64* %indvars.iv49.reg2mem
%16 = mul i64 %indvars.iv49.reload, 8
%17 = add i64 %16, %15
%18 = inttoptr i64 %17 to i64*
store i64 0, i64* %18, align 8
%indvars.iv.next50 = add nuw nsw i64 %indvars.iv49.reload, 1
%exitcond51 = icmp eq i64 %indvars.iv.next50, 3
store i64 %indvars.iv.next50, i64* %indvars.iv49.reg2mem
br i1 %exitcond51, label LBL_5, label LBL_4
LBL_5:
%19 = icmp sgt i32 %arg4, 0
br i1 %19, label LBL_6, label LBL_9
LBL_6:
%20 = ptrtoint i32* %arg3 to i64
%21 = sext i32 %arg4 to i64
store i64 0, i64* %indvars.iv47.reg2mem
br label LBL_7
LBL_7:
%indvars.iv47.reload = load i64, i64* %indvars.iv47.reg2mem
%22 = call i64 @FUNC(i64 %20)
%23 = call i64 @FUNC(i64 %20)
%24 = and i64 %22, 4294967295
%25 = and i64 %23, 4294967295
%26 = call i64 @FUNC(i64 %25, i64 %24)
%27 = mul i64 %indvars.iv47.reload, 8
%28 = add i64 %27, %15
%29 = inttoptr i64 %28 to i64*
store i64 %26, i64* %29, align 8
%30 = icmp eq i64 %26, 0
br i1 %30, label LBL_29, label LBL_8
LBL_8:
%indvars.iv.next48 = add nuw nsw i64 %indvars.iv47.reload, 1
%31 = icmp slt i64 %indvars.iv.next48, %21
store i64 %indvars.iv.next48, i64* %indvars.iv47.reg2mem
br i1 %31, label LBL_7, label LBL_9
LBL_9:
%32 = bitcast i64* %rsi to i32*
%33 = load i32, i32* %32, align 8
%34 = load i32, i32* %7, align 4
%35 = mul i32 %34, %33
%36 = sdiv i32 %35, 16384
%37 = add i64 %5, 4
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = mul i32 %36, %39
%41 = add i64 %5, 12
%42 = inttoptr i64 %41 to i32*
store i32 %40, i32* %42, align 4
%43 = load i32, i32* %38, align 4
%44 = icmp eq i32 %43, 0
br i1 %44, label LBL_26, label LBL_10
LBL_10:
%45 = ptrtoint i32* %arg3 to i64
%46 = ptrtoint i32* %arg5 to i64
%47 = add i64 %14, -16
%48 = inttoptr i64 %47 to i64*
%49 = sext i32 %arg4 to i64
store i32 0, i32* %storemerge537.reg2mem
br label LBL_12.preheader
LBL_11:
%indvars.iv45.reload = load i64, i64* %indvars.iv45.reg2mem
%50 = mul i64 %indvars.iv45.reload, 8
%51 = add i64 %50, %15
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = call i64 @FUNC(i64 %45)
%55 = mul i64 %indvars.iv45.reload, 4
%56 = add i64 %55, %46
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
store i64 %53, i64* %48, align 8
%59 = and i64 %54, 4294967295
%60 = call i64 @FUNC(i64 %45, i32 %58, i64 0, i64 %126, i64 %59, i64 1)
%61 = trunc i64 %60 to i32
%62 = icmp eq i32 %61, 0
%63 = icmp eq i1 %62, false
br i1 %63, label LBL_29, label LBL_12
LBL_12:
%indvars.iv.next46 = add nuw nsw i64 %indvars.iv45.reload, 1
%64 = icmp slt i64 %indvars.iv.next46, %49
store i64 %indvars.iv.next46, i64* %indvars.iv45.reg2mem
br i1 %64, label LBL_11, label LBL_13
LBL_13:
%65 = load i32, i32* %32, align 8
%66 = icmp eq i32 %65, 0
br i1 %66, label LBL_23, label LBL_14
LBL_14:
%67 = zext i32 %65 to i64
store i32 0, i32* %storemerge834.reg2mem
store i32 0, i32* %sv_0.133.reg2mem
store i32 0, i32* %sv_1.232.reg2mem
br label LBL_15
LBL_15:
%sv_1.232.reload = load i32, i32* %sv_1.232.reg2mem
%sv_0.133.reload = load i32, i32* %sv_0.133.reg2mem
%storemerge834.reload = load i32, i32* %storemerge834.reg2mem
%68 = load i32, i32* %7, align 4
%69 = icmp eq i32 %68, 24
%70 = icmp eq i1 %69, false
%71 = zext i32 %storemerge834.reload to i64
%72 = call i64 @FUNC(i64 %3, i64 %71)
%73 = trunc i64 %72 to i32
store i32 %73, i32* %storemerge11.reg2mem
br i1 %70, label LBL_17, label LBL_16
LBL_16:
%74 = call i64 @FUNC(i64 %2, i64 %71)
%75 = trunc i64 %74 to i32
%76 = udiv i32 %75, 256
%77 = or i32 %76, %73
%78 = call i64 @FUNC(i64 %1, i64 %71)
%79 = trunc i64 %78 to i32
%80 = udiv i32 %79, 65536
%81 = or i32 %77, %80
%82 = urem i32 %81, 256
store i32 %82, i32* %storemerge11.reg2mem
br label LBL_17
LBL_17:
%83 = urem i32 %68, 32
%84 = shl i32 %sv_1.232.reload, %83
%storemerge11.reload = load i32, i32* %storemerge11.reg2mem
%85 = load i32, i32* %7, align 4
%86 = urem i32 %85, 32
%notmask = shl nsw i32 -1, %86
%87 = sub i32 0, %notmask
%88 = sub i32 %87, 1
%89 = and i32 %storemerge11.reload, %88
%90 = or i32 %89, %84
%91 = add i32 %85, %sv_0.133.reload
%92 = icmp sgt i32 %91, 7
store i32 %91, i32* %sv_0.030.reg2mem
store i32 %90, i32* %sv_1.129.reg2mem
store i32 %90, i32* %sv_1.1.lcssa.reg2mem
store i32 %91, i32* %sv_0.0.lcssa.reg2mem
br i1 %92, label LBL_18, label LBL_20
LBL_18:
%sv_1.129.reload = load i32, i32* %sv_1.129.reg2mem
%sv_0.030.reload = load i32, i32* %sv_0.030.reg2mem
%93 = add i32 %sv_0.030.reload, 24
%94 = urem i32 %93, 32
%95 = lshr i32 %sv_1.129.reload, %94
%96 = urem i32 %95, 256
%97 = zext i32 %96 to i64
%98 = call i64 @FUNC(i64 %12, i64 %97)
%99 = trunc i64 %98 to i32
%100 = icmp eq i32 %99, -1
br i1 %100, label LBL_29, label LBL_19
LBL_19:
%101 = add nsw i32 %sv_0.030.reload, -8
%102 = urem i32 %101, 32
%notmask58 = shl nsw i32 -1, %102
%103 = sub i32 0, %notmask58
%104 = sub i32 %103, 1
%105 = and i32 %sv_1.129.reload, %104
%106 = icmp sgt i32 %101, 7
store i32 %101, i32* %sv_0.030.reg2mem
store i32 %105, i32* %sv_1.129.reg2mem
store i32 %105, i32* %sv_1.1.lcssa.reg2mem
store i32 %101, i32* %sv_0.0.lcssa.reg2mem
br i1 %106, label LBL_18, label LBL_20
LBL_20:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem
%107 = add i32 %storemerge834.reload, 1
%108 = sext i32 %107 to i64
%109 = icmp slt i64 %108, %67
store i32 %107, i32* %storemerge834.reg2mem
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.133.reg2mem
store i32 %sv_1.1.lcssa.reload, i32* %sv_1.232.reg2mem
br i1 %109, label LBL_15, label LBL_21
LBL_21:
%110 = icmp slt i32 %sv_0.0.lcssa.reload, 1
br i1 %110, label LBL_23, label LBL_22
LBL_22:
%111 = sub i32 8, %sv_0.0.lcssa.reload
%112 = urem i32 %111, 32
%113 = lshr i32 %sv_1.1.lcssa.reload, %112
%storemerge15 = zext i32 %113 to i64
%114 = urem i32 %sv_0.0.lcssa.reload, 32
%115 = shl i32 -1, %114
%storemerge4 = zext i32 %115 to i64
store i64 %storemerge4, i64* %rsi, align 8
%116 = xor i64 %storemerge4, 4294967295
%117 = and i64 %116, %storemerge15
%118 = call i64 @FUNC(i64 %12, i64 %117)
%119 = trunc i64 %118 to i32
%120 = icmp eq i32 %119, -1
br i1 %120, label LBL_29, label LBL_23
LBL_23:
%121 = add i32 %storemerge537.reload, 1
%122 = load i32, i32* %38, align 4
%123 = zext i32 %122 to i64
%124 = sext i32 %121 to i64
%125 = icmp slt i64 %124, %123
store i32 %121, i32* %storemerge537.reg2mem
br i1 %125, label LBL_12.preheader, label LBL_26
LBL_24:
%storemerge537.reload = load i32, i32* %storemerge537.reg2mem
br i1 %19, label LBL_11.lr.ph, label LBL_13
LBL_25:
%126 = zext i32 %storemerge537.reload to i64
store i64 0, i64* %indvars.iv45.reg2mem
br label LBL_11
LBL_26:
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_27, label LBL_34
LBL_27:
%wide.trip.count43 = zext i32 %arg4 to i64
store i64 0, i64* %indvars.iv41.reg2mem
br label LBL_28
LBL_28:
%indvars.iv41.reload = load i64, i64* %indvars.iv41.reg2mem
%127 = mul i64 %indvars.iv41.reload, 8
%128 = add i64 %127, %15
%129 = inttoptr i64 %128 to i64*
%130 = load i64, i64* %129, align 8
%131 = call i64 @FUNC(i64 %130)
store i64 0, i64* %129, align 8
%indvars.iv.next42 = add nuw nsw i64 %indvars.iv41.reload, 1
%exitcond44 = icmp eq i64 %indvars.iv.next42, %wide.trip.count43
store i64 %indvars.iv.next42, i64* %indvars.iv41.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %exitcond44, label LBL_34, label LBL_28
LBL_29:
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %19, label LBL_30, label LBL_34
LBL_30:
%wide.trip.count = zext i32 %arg4 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_31
LBL_31:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%132 = mul i64 %indvars.iv.reload, 8
%133 = add i64 %132, %15
%134 = inttoptr i64 %133 to i64*
%135 = load i64, i64* %134, align 8
%136 = icmp eq i64 %135, 0
br i1 %136, label LBL_33, label LBL_32
LBL_32:
%137 = call i64 @FUNC(i64 %135)
br label LBL_33
LBL_33:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %exitcond, label LBL_34, label LBL_31
LBL_34:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %storemerge537.reload, { 1, 0 }
uselistorder i32 %sv_0.0.lcssa.reload, { 2, 0, 1, 3 }
uselistorder i32 %101, { 0, 1, 3, 2 }
uselistorder i32 %sv_1.129.reload, { 1, 0 }
uselistorder i32 %85, { 1, 0 }
uselistorder i32 %73, { 1, 0 }
uselistorder i64 %indvars.iv45.reload, { 0, 2, 1 }
uselistorder i32* %38, { 1, 0, 2 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64* %indvars.iv49.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv47.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv45.reg2mem, { 2, 1, 0 }
uselistorder i32* %storemerge834.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.133.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.232.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge11.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.030.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.129.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv41.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 4, 1, 3, 5 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @jas_matrix_destroy, { 1, 0 }
uselistorder i32 7, { 1, 0 }
uselistorder i32 -1, { 3, 4, 0, 2, 1 }
uselistorder i32 256, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @jas_matrix_getv, { 1, 0, 2 }
uselistorder i64 (i64)* @jas_image_width, { 1, 0 }
uselistorder i64 1, { 4, 3, 2, 5, 1, 0 }
uselistorder i64 0, { 17, 2, 0, 18, 3, 1, 4, 15, 19, 5, 20, 6, 9, 10, 11, 12, 13, 14, 7, 8, 16 }
uselistorder i32 %arg4, { 3, 2, 1, 0, 4, 5, 6 }
uselistorder label LBL_34, { 1, 3, 0, 2, 4 }
uselistorder label LBL_31, { 1, 0 }
uselistorder label LBL_29, { 1, 3, 2, 0 }
uselistorder label LBL_28, { 1, 0 }
uselistorder label LBL_12.preheader, { 1, 0 }
uselistorder label LBL_23, { 2, 1, 0 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | visit_next_list_14558 | visit_next_list | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
%storemerge = select i1 %5, i64 0, i64 %1
ret i64 %storemerge
} | 1 |
BinRealVul | address_space_lookup_1610 | address_space_lookup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%3 = trunc i64 %1 to i32
%4 = add i64 %2, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = inttoptr i64 %6 to i64*
%8 = call i64* @bsearch(i64* nonnull %sv_0, i64* %7, i32 %3, i32 0, i32 (i64*, i64*)* inttoptr (i64 4198694 to i32 (i64*, i64*)*))
%9 = ptrtoint i64* %8 to i64
ret i64 %9
} | 0 |
BinRealVul | free_server_conf_18802 | free_server_conf | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
%1 = icmp eq i1 %0, false
%2 = zext i1 %1 to i64
%3 = call i64 @FUNC(i64 %2)
store i64 %3, i64* %rax.0.reg2mem
br i1 %0, label LBL_6, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %2)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = inttoptr i64 %2 to i8*
%9 = call i32 @strlen(i8* %8)
%10 = inttoptr i64 %2 to i64*
%11 = call i64* @memset(i64* %10, i32 0, i32 %9)
%12 = call i64 @FUNC(i64 %2)
br label LBL_3
LBL_3:
%13 = add i64 %arg1, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = load i64, i64* %14, align 8
%21 = inttoptr i64 %20 to i8*
%22 = call i32 @strlen(i8* %21)
%23 = load i64, i64* %14, align 8
%24 = inttoptr i64 %23 to i64*
%25 = call i64* @memset(i64* %24, i32 0, i32 %22)
%26 = load i64, i64* %14, align 8
%27 = call i64 @FUNC(i64 %26)
br label LBL_5
LBL_5:
%28 = add i64 %arg1, 16
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %30)
%32 = add i64 %arg1, 24
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34)
%36 = add i64 %arg1, 32
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = call i64 @FUNC(i64 %38)
%40 = add i64 %arg1, 40
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = call i64 @FUNC(i64 %42)
%44 = call i64 @FUNC(i64 %arg1)
store i64 %44, 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* %14, { 2, 1, 0, 3 }
uselistorder i64 %2, { 2, 1, 0, 3, 4 }
uselistorder i64 (i64)* @rb_free, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i32 0, { 0, 2, 1, 3, 4 }
uselistorder i64 (i64)* @EmptyString, { 1, 0 }
uselistorder i32 1, { 2, 3, 4, 1, 0 }
uselistorder i64 %arg1, { 0, 2, 1, 4, 3, 5, 6 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | write_trailer_760 | write_trailer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = trunc i64 %1 to i32
%7 = icmp slt i32 %6, 3
br i1 %7, label LBL_1, label LBL_2
LBL_1:
%8 = call i64 @FUNC(i64 %2, i64 %5)
br label LBL_1
LBL_2:
%9 = call i64 @FUNC(i64 %5)
%10 = call i64 @FUNC(i64 %2)
%11 = call i64 @FUNC(i64 %3)
%12 = add i64 %2, 16
%13 = call i64 @FUNC(i64 %12)
%14 = add i64 %2, 24
%15 = call i64 @FUNC(i64 %14)
ret i64 0
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %2, { 2, 1, 0, 3, 4 }
uselistorder i64 (i64)* @av_freep, { 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | desc_get_buf_15106 | desc_get_buf | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%storemerge1.in.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i8
%2 = add i64 %0, 32
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = zext i32 %6 to i64
%8 = call i64 @FUNC(i64 %7)
%9 = icmp eq i8 %1, 0
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = add i64 %0, 10
%11 = inttoptr i64 %10 to i16*
%12 = load i16, i16* %11, align 2
%13 = zext i16 %12 to i64
%14 = call i64 @FUNC(i64 %13)
store i64 %13, i64* %rdi.0.reg2mem
store i64 %14, i64* %storemerge1.in.reg2mem
br label LBL_3
LBL_2:
%15 = add i64 %0, 8
%16 = inttoptr i64 %15 to i16*
%17 = load i16, i16* %16, align 2
%18 = zext i16 %17 to i64
%19 = call i64 @FUNC(i64 %18)
store i64 %18, i64* %rdi.0.reg2mem
store i64 %19, i64* %storemerge1.in.reg2mem
br label LBL_3
LBL_3:
%storemerge1.in.reload = load i64, i64* %storemerge1.in.reg2mem
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%storemerge1 = urem i64 %storemerge1.in.reload, 65536
%20 = add i64 %0, 24
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp ugt i64 %storemerge1, %22
%24 = add i64 %0, 16
%25 = inttoptr i64 %24 to i64*
store i64 %rdi.0.reload, i64* %rdi.1.reg2mem
br i1 %23, label LBL_4, label LBL_5
LBL_4:
%26 = load i64, i64* %25, align 8
%27 = call i64 @FUNC(i64 %26, i64 %storemerge1)
store i64 %27, i64* %25, align 8
store i64 %storemerge1, i64* %21, align 8
store i64 %26, i64* %rdi.1.reg2mem
br label LBL_5
LBL_5:
%28 = load i64, i64* %25, align 8
%29 = icmp eq i64 %28, 0
%30 = icmp eq i1 %29, false
store i64 0, i64* %storemerge.reg2mem
br i1 %30, label LBL_6, label LBL_7
LBL_6:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%31 = call i64 @FUNC(i64 %rdi.1.reload)
%32 = call i64 @FUNC(i64 %8, i64 %31, i64 %28, i64 %storemerge1)
%33 = load i64, i64* %25, align 8
store i64 %33, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %storemerge1, { 3, 2, 1, 0 }
uselistorder i64 %0, { 1, 0, 2, 3, 4 }
uselistorder i64* %rdi.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge1.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rdi.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @le16_to_cpu, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | tg3_write_sig_pre_reset_10797 | tg3_write_sig_pre_reset | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = call i64 @FUNC(i64 %0, i64 4096, i64 43981)
%3 = call i64 @FUNC(i64 %0, i64 1)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%.pre = trunc i64 %1 to i32
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_7, label LBL_1
LBL_1:
%6 = icmp eq i32 %.pre, 2
br i1 %6, label LBL_6, label LBL_2
LBL_2:
%7 = icmp sgt i32 %.pre, 2
store i64 %3, i64* %rax.0.reg2mem
br i1 %7, label LBL_7, label LBL_3
LBL_3:
store i64 %3, i64* %rax.0.reg2mem
switch i32 %.pre, label LBL_7 [
i32 0, label LBL_4
i32 1, label LBL_5
]
LBL_4:
%8 = call i64 @FUNC(i64 %0, i64 4100, i64 1)
br label LBL_8
LBL_5:
%9 = call i64 @FUNC(i64 %0, i64 4100, i64 2)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%10 = call i64 @FUNC(i64 %0, i64 4100, i64 3)
br label LBL_8
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%11 = icmp ne i32 %.pre, 0
%12 = icmp eq i32 %.pre, 2
%13 = icmp eq i1 %12, false
%or.cond = icmp eq i1 %11, %13
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %or.cond, label LBL_9, label LBL_8
LBL_8:
%14 = and i64 %1, 4294967295
%15 = call i64 @FUNC(i64 %0, i64 %14)
store i64 %15, i64* %rax.1.reg2mem
br label LBL_9
LBL_9:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32 %.pre, { 0, 1, 4, 3, 2 }
uselistorder i64 %3, { 2, 1, 0, 3 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %0, { 3, 2, 0, 1, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 4, 3, 1 }
uselistorder i64* %rax.1.reg2mem, { 0, 2, 1 }
uselistorder i32 2, { 0, 2, 1 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i64 (i64, i64, i64)* @tg3_write_mem, { 3, 2, 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 2, 0, 1 }
uselistorder label LBL_7, { 3, 1, 2, 0 }
} | 0 |
BinRealVul | ff_dct_common_init_1826 | ff_dct_common_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.pre-phi.reg2mem = alloca i64*
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 16
%4 = call i64 @FUNC(i64 %3, i64 %2)
%5 = add i64 %2, 24
%6 = and i64 %1, 4294967295
%7 = call i64 @FUNC(i64 %5, i64 %6)
%8 = load i64, i64* @gv_0, align 8
%9 = add i64 %2, 32
%10 = inttoptr i64 %9 to i64*
store i64 %8, i64* %10, align 8
%11 = load i64, i64* @gv_1, align 8
%12 = add i64 %2, 40
%13 = inttoptr i64 %12 to i64*
store i64 %11, i64* %13, align 8
%14 = load i64, i64* @gv_2, align 8
%15 = add i64 %2, 48
%16 = inttoptr i64 %15 to i64*
store i64 %14, i64* %16, align 8
%17 = load i64, i64* @gv_3, align 8
%18 = add i64 %2, 56
%19 = inttoptr i64 %18 to i64*
store i64 %17, i64* %19, align 8
%20 = load i64, i64* @gv_4, align 8
%21 = add i64 %2, 64
%22 = inttoptr i64 %21 to i64*
store i64 %20, i64* %22, align 8
%23 = add i64 %2, 8
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = urem i32 %25, 2
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_2, label LBL_1
LBL_1:
%28 = load i64, i64* @gv_5, align 8
store i64 %28, i64* %22, align 8
br label LBL_2
LBL_2:
%29 = load i64, i64* @gv_6, align 8
%30 = add i64 %2, 72
%31 = inttoptr i64 %30 to i64*
store i64 %29, i64* %31, align 8
%32 = call i64 @FUNC(i64 %2)
%33 = add i64 %2, 12
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = icmp eq i32 %35, 0
br i1 %36, label LBL_4, label LBL_3
LBL_3:
%37 = load i64, i64* @gv_7, align 8
%38 = add i64 %2, 80
%39 = inttoptr i64 %3 to i64*
%40 = load i64, i64* %39, align 8
%41 = call i64 @FUNC(i64 %40, i64 %38, i64 %37)
%42 = load i64, i64* @gv_7, align 8
%43 = add i64 %2, 88
%44 = load i64, i64* %39, align 8
%45 = call i64 @FUNC(i64 %44, i64 %43, i64 %42)
store i64* %39, i64** %.pre-phi.reg2mem
br label LBL_5
LBL_4:
%46 = load i64, i64* @gv_8, align 8
%47 = add i64 %2, 80
%48 = inttoptr i64 %3 to i64*
%49 = load i64, i64* %48, align 8
%50 = call i64 @FUNC(i64 %49, i64 %47, i64 %46)
%51 = load i64, i64* @gv_8, align 8
%52 = add i64 %2, 88
%53 = load i64, i64* %48, align 8
%54 = call i64 @FUNC(i64 %53, i64 %52, i64 %51)
store i64* %48, i64** %.pre-phi.reg2mem
br label LBL_5
LBL_5:
%.pre-phi.reload = load i64*, i64** %.pre-phi.reg2mem
%55 = load i64, i64* @gv_9, align 8
%56 = add i64 %2, 96
%57 = load i64, i64* %.pre-phi.reload, align 8
%58 = call i64 @FUNC(i64 %57, i64 %56, i64 %55)
%59 = load i64, i64* @gv_7, align 8
%60 = add i64 %2, 104
%61 = load i64, i64* %.pre-phi.reload, align 8
%62 = call i64 @FUNC(i64 %61, i64 %60, i64 %59)
ret i64 0
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64 %2, { 2, 3, 4, 5, 0, 1, 7, 6, 8, 9, 10, 11, 12, 13, 14, 15, 17, 16 }
uselistorder i64** %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64)* @ff_init_scantable, { 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | virtio_balloon_init_768 | virtio_balloon_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 2, i64 8, i64 48)
%2 = inttoptr i64 %1 to i64*
store i64 4198766, i64* %2, align 8
%3 = add i64 %1, 8
%4 = inttoptr i64 %3 to i64*
store i64 4198773, i64* %4, align 8
%5 = add i64 %1, 16
%6 = inttoptr i64 %5 to i64*
store i64 4198780, i64* %6, align 8
%7 = call i64 @FUNC(i64 %1, i64 128, i64 4198787)
%8 = add i64 %1, 24
%9 = inttoptr i64 %8 to i64*
store i64 %7, i64* %9, align 8
%10 = call i64 @FUNC(i64 %1, i64 128, i64 4198787)
%11 = add i64 %1, 32
%12 = inttoptr i64 %11 to i64*
store i64 %10, i64* %12, align 8
%13 = call i64 @FUNC(i64 %1, i64 128, i64 4198794)
%14 = add i64 %1, 40
%15 = inttoptr i64 %14 to i64*
store i64 %13, i64* %15, align 8
%16 = call i64 @FUNC(i64 %1)
%17 = call i64 @FUNC(i64 4198831, i64 4198838, i64 %1)
%18 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 4294967295, i64 1, i64 4198845, i64 4198852)
ret i64 %1
uselistorder i64 (i64, i64, i64)* @virtio_add_queue, { 2, 1, 0 }
uselistorder i64 8, { 1, 0 }
} | 0 |
BinRealVul | read_random_17390 | read_random | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = inttoptr i64 %arg2 to i8*
%1 = call i32 (i8*, i32, ...) @open(i8* %0, i32 0)
%2 = icmp eq i32 %1, -1
%3 = icmp eq i1 %2, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%4 = call i32 (i32, i32, ...) @fcntl(i32 %1, i32 3)
%5 = call i32 (i32, i32, ...) @fcntl(i32 %1, i32 4)
%6 = icmp eq i32 %5, -1
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = call i32 @read(i32 %1, i64* %arg1, i32 4)
%phitmp = zext i32 %7 to i64
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%8 = call i32 @close(i32 %1)
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %1, { 1, 0, 3, 2, 4 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 (i32, i32, ...)* @fcntl, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | do_lrm_query_17714 | do_lrm_query | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = load i32, i32* inttoptr (i64 4210756 to i32*), align 4
%1 = zext i32 %0 to i64
%2 = call i64 @FUNC(i64 %1, i64 1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%spec.select = zext i1 %4 to i64
%5 = load i64, i64* bitcast ([2 x i8*]* @gv_0 to i64*), align 8
%6 = select i1 %4, i64 ptrtoint ([7 x i8]* @gv_1 to i64), i64 ptrtoint ([9 x i8]* @gv_2 to i64)
%7 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0), i64 %6, i64 %spec.select, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_6, i64 0, i64 0))
%8 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_7, i64 0, i64 0))
%9 = load [6 x i8]*, [6 x i8]** @gv_8, align 8
%10 = ptrtoint [6 x i8]* %9 to i64
%11 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_9, i64 0, i64 0), i64 %10)
%12 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_10, i64 0, i64 0))
%13 = call i64 @FUNC(i64 %12)
%14 = trunc i64 %arg1 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_2, label LBL_1
LBL_1:
%16 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_11, i64 0, i64 0), i64 ptrtoint ([4 x i8]* @gv_7 to i64))
br label LBL_2
LBL_2:
%17 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_12, i64 0, i64 0))
%18 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_13, i64 0, i64 0))
ret i64 %17
uselistorder i64 %7, { 2, 1, 0, 3 }
uselistorder i64 (i64, i8*, i64)* @crm_xml_add, { 1, 0 }
uselistorder i64 (i64, i8*)* @create_xml_node, { 1, 0 }
uselistorder [4 x i8]* @gv_7, { 1, 0 }
uselistorder [7 x i8]* @gv_1, { 1, 0 }
uselistorder i32 0, { 7, 8, 0, 1, 2, 3, 4, 5, 6 }
} | 1 |
BinRealVul | httpClientParseHeaderField_7488 | httpClientParseHeaderField | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.pre-phi3.reg2mem = alloca i64*
%.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rsi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = add i64 %4, %arg3
%6 = inttoptr i64 %5 to i8*
store i8 0, i8* %6, align 1
%7 = call i64 @FUNC(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %4, i64 %3, i64 %2, i64 %1)
%8 = call i64 @FUNC(i64 %4, i64 %arg3, i64 2)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = and i64 %8, 4294967295
store i64 %11, i64* %rax.0.reg2mem
br label LBL_19
LBL_2:
%12 = ptrtoint i64* %arg1 to i64
%13 = bitcast i64* %rsi to i8*
%14 = load i8, i8* %13, align 8
%15 = icmp ne i8 %14, 32
%16 = icmp eq i8 %14, 9
%17 = icmp eq i1 %16, false
%or.cond = icmp eq i1 %15, %17
br i1 %or.cond, label LBL_7, label LBL_3
LBL_3:
%18 = add i64 %12, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
%22 = icmp eq i1 %21, false
store i64 1, i64* %rax.0.reg2mem
br i1 %22, label LBL_4, label LBL_19
LBL_4:
%23 = call i64 @FUNC(i64 %4)
%24 = call i64 @FUNC(i64 %23)
%25 = icmp eq i64 %24, 0
br i1 %25, label LBL_4.LBL_18_crit_edge, label LBL_6
LBL_5:
%.pre = add i64 %12, 16
%.pre5 = inttoptr i64 %.pre to i64*
%.pre7 = load i64, i64* %.pre5, align 8
store i64 %.pre7, i64* %.reg2mem
store i64* %19, i64** %.pre-phi3.reg2mem
br label LBL_18
LBL_6:
%26 = load i64, i64* %19, align 8
%27 = add i64 %23, -1
%28 = add i64 %27, %26
%29 = inttoptr i64 %28 to i8*
store i8 32, i8* %29, align 1
%30 = add i64 %24, 1
%31 = load i64, i64* %19, align 8
%32 = add i64 %31, %23
%33 = call i64 @FUNC(i64 %32, i64 %23, i64 %30)
%34 = load i64, i64* %19, align 8
%35 = add i64 %34, %30
%36 = add i64 %12, 16
%37 = inttoptr i64 %36 to i64*
store i64 %35, i64* %37, align 8
store i64 %35, i64* %.reg2mem
store i64* %19, i64** %.pre-phi3.reg2mem
br label LBL_18
LBL_7:
%38 = bitcast i64* %arg2 to i8*
%39 = call i8* @strchr(i8* %38, i32 58)
%40 = icmp eq i8* %39, null
%41 = icmp eq i1 %40, false
store i64 1, i64* %rax.0.reg2mem
br i1 %41, label LBL_8, label LBL_19
LBL_8:
store i8 0, i8* %39, align 1
%42 = call i64 @FUNC(i64 %4)
%43 = ptrtoint i8* %39 to i64
%44 = add i64 %43, 1
%45 = call i64 @FUNC(i64 %44)
%46 = call i64 @FUNC(i64 %42)
%47 = call i64 @FUNC(i64 %45)
%48 = icmp eq i64 %46, 0
%49 = icmp eq i1 %48, false
store i64 1, i64* %rax.0.reg2mem
br i1 %49, label LBL_9, label LBL_19
LBL_9:
%50 = call i64 @FUNC(i64 %42, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0))
%51 = trunc i64 %50 to i32
%52 = icmp eq i32 %51, 0
%53 = icmp eq i1 %52, false
br i1 %53, label LBL_11, label LBL_10
LBL_10:
%54 = call i64 @FUNC(i64 %12, i64 %45)
store i64 %12, i64* %rdi.0.reg2mem
br label LBL_17
LBL_11:
%55 = call i64 @FUNC(i64 %42, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0))
%56 = trunc i64 %55 to i32
%57 = icmp eq i32 %56, 0
%58 = icmp eq i1 %57, false
br i1 %58, label LBL_13, label LBL_12
LBL_12:
%59 = call i64 @FUNC(i64 %12, i64 %45)
store i64 %12, i64* %rdi.0.reg2mem
br label LBL_17
LBL_13:
%60 = call i64 @FUNC(i64 %42, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_3, i64 0, i64 0))
%61 = trunc i64 %60 to i32
%62 = icmp eq i32 %61, 0
%63 = icmp eq i1 %62, false
br i1 %63, label LBL_15, label LBL_14
LBL_14:
%64 = call i64 @FUNC(i64 %12, i64 %45)
store i64 %12, i64* %rdi.0.reg2mem
br label LBL_17
LBL_15:
%65 = call i64 @FUNC(i64 %42, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_4, i64 0, i64 0))
%66 = trunc i64 %65 to i32
%67 = icmp eq i32 %66, 0
%68 = icmp eq i1 %67, false
store i64 %42, i64* %rdi.0.reg2mem
br i1 %68, label LBL_17, label LBL_16
LBL_16:
%69 = call i64 @FUNC(i64 %12, i64 %45)
store i64 %12, i64* %rdi.0.reg2mem
br label LBL_17
LBL_17:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%70 = add i64 %46, 1
%71 = add i64 %12, 8
%72 = inttoptr i64 %71 to i64*
%73 = load i64, i64* %72, align 8
%74 = add i64 %73, %rdi.0.reload
%75 = call i64 @FUNC(i64 %74, i64 %42, i64 %70)
%76 = add i64 %47, 1
%77 = load i64, i64* %72, align 8
%78 = add i64 %74, %70
%79 = add i64 %78, %77
%80 = call i64 @FUNC(i64 %79, i64 %45, i64 %76)
%81 = load i64, i64* %72, align 8
%82 = add i64 %46, 2
%83 = add i64 %82, %47
%84 = add i64 %83, %81
%85 = add i64 %12, 16
%86 = inttoptr i64 %85 to i64*
store i64 %84, i64* %86, align 8
store i64 %84, i64* %.reg2mem
store i64* %72, i64** %.pre-phi3.reg2mem
br label LBL_18
LBL_18:
%.pre-phi3.reload = load i64*, i64** %.pre-phi3.reg2mem
%.reload = load i64, i64* %.reg2mem
store i64 %.reload, i64* %.pre-phi3.reload, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_19
LBL_19:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %45, { 4, 3, 2, 1, 0, 5 }
uselistorder i64 %42, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder i8* %39, { 1, 0, 2 }
uselistorder i64 %23, { 2, 0, 1, 3 }
uselistorder i64* %19, { 0, 2, 3, 4, 1, 5 }
uselistorder i64 %12, { 9, 10, 3, 8, 2, 7, 1, 6, 0, 5, 11, 4, 12 }
uselistorder i64 %4, { 0, 1, 3, 5, 4, 2 }
uselistorder i64* %rdi.0.reg2mem, { 0, 4, 5, 3, 2, 1 }
uselistorder i64* %.reg2mem, { 0, 2, 1, 3 }
uselistorder i64** %.pre-phi3.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i8*)* @osStrcasecmp, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @osMemmove, { 2, 1, 0 }
uselistorder i64 16, { 1, 2, 0 }
uselistorder i64 (i64)* @osStrlen, { 2, 1, 0 }
uselistorder i64 (i64)* @strTrimWhitespace, { 2, 1, 0 }
uselistorder i64 1, { 3, 4, 0, 5, 1, 6, 2 }
uselistorder i8 32, { 1, 0 }
uselistorder i64 %arg3, { 1, 0 }
uselistorder label LBL_19, { 3, 0, 1, 2, 4 }
uselistorder label LBL_18, { 1, 2, 0 }
} | 1 |
BinRealVul | update_thread_context_14402 | update_thread_context | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, %arg2
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %1, label LBL_1, label LBL_9
LBL_1:
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 %3)
%5 = icmp eq i64* %arg1, null
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %3, i64 %2)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 %6, i64* %rax.0.shrunk.reg2mem
br i1 %9, label LBL_3, label LBL_9
LBL_3:
%10 = add i64 %3, 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
br i1 %14, label LBL_8, label LBL_4
LBL_4:
%15 = add i64 %2, 24
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i64 %3, 24
%19 = inttoptr i64 %18 to i32*
store i32 %17, i32* %19, align 4
%20 = add i64 %2, 28
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = add i64 %3, 28
%24 = inttoptr i64 %23 to i32*
store i32 %22, i32* %24, align 4
%25 = add i64 %2, 32
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i64 %3, 32
%29 = inttoptr i64 %28 to i32*
store i32 %27, i32* %29, align 4
%30 = add i64 %2, 36
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = add i64 %3, 36
%34 = inttoptr i64 %33 to i32*
store i32 %32, i32* %34, align 4
%35 = add i64 %2, 40
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = add i64 %3, 40
%39 = inttoptr i64 %38 to i32*
store i32 %37, i32* %39, align 4
%40 = add i64 %2, 44
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = add i64 %3, 44
%44 = inttoptr i64 %43 to i32*
store i32 %42, i32* %44, align 4
%45 = add i64 %2, 48
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = add i64 %3, 48
%49 = inttoptr i64 %48 to i32*
store i32 %47, i32* %49, align 4
%50 = add i64 %2, 52
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = add i64 %3, 52
%54 = inttoptr i64 %53 to i32*
store i32 %52, i32* %54, align 4
%55 = add i64 %2, 56
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = add i64 %3, 56
%59 = inttoptr i64 %58 to i32*
store i32 %57, i32* %59, align 4
%60 = add i64 %2, 60
%61 = inttoptr i64 %60 to i32*
%62 = load i32, i32* %61, align 4
%63 = add i64 %3, 60
%64 = inttoptr i64 %63 to i32*
store i32 %62, i32* %64, align 4
%65 = add i64 %2, 64
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = add i64 %3, 64
%69 = inttoptr i64 %68 to i32*
store i32 %67, i32* %69, align 4
%70 = add i64 %2, 68
%71 = inttoptr i64 %70 to i32*
%72 = load i32, i32* %71, align 4
%73 = add i64 %3, 68
%74 = inttoptr i64 %73 to i32*
store i32 %72, i32* %74, align 4
%75 = add i64 %2, 80
%76 = add i64 %3, 80
%77 = inttoptr i64 %76 to i64*
%78 = inttoptr i64 %75 to i64*
%79 = call i64* @memcpy(i64* %77, i64* %78, i32 12)
%80 = add i64 %2, 72
%81 = inttoptr i64 %80 to i32*
%82 = load i32, i32* %81, align 4
%83 = add i64 %3, 72
%84 = inttoptr i64 %83 to i32*
store i32 %82, i32* %84, align 4
%85 = add i64 %2, 92
%86 = add i64 %3, 92
%87 = inttoptr i64 %86 to i64*
%88 = inttoptr i64 %85 to i64*
%89 = call i64* @memcpy(i64* %87, i64* %88, i32 1024)
%90 = add i64 %3, 76
%91 = inttoptr i64 %90 to i32*
%92 = load i32, i32* %91, align 4
%93 = add i64 %2, 76
%94 = inttoptr i64 %93 to i32*
%95 = load i32, i32* %94, align 4
%96 = urem i32 %95, 4
%97 = or i32 %96, %92
store i32 %97, i32* %91, align 4
%98 = call i64 @FUNC(i64 %3, i64 %10)
%99 = add i64 %2, 8
%100 = inttoptr i64 %99 to i64*
%101 = load i64, i64* %100, align 8
%102 = inttoptr i64 %101 to i64*
%103 = load i64, i64* %102, align 8
%104 = icmp eq i64 %103, 0
br i1 %104, label LBL_6, label LBL_5
LBL_5:
%105 = call i64 @FUNC(i64 %10, i64 %99)
%106 = trunc i64 %105 to i32
%107 = icmp slt i32 %106, 0
%108 = icmp eq i1 %107, false
store i64 %105, i64* %rax.0.shrunk.reg2mem
br i1 %108, label LBL_6, label LBL_9
LBL_6:
%109 = add i64 %3, 16
%110 = call i64 @FUNC(i64 %3, i64 %109)
%111 = add i64 %2, 16
%112 = inttoptr i64 %111 to i64*
%113 = load i64, i64* %112, align 8
%114 = inttoptr i64 %113 to i64*
%115 = load i64, i64* %114, align 8
%116 = icmp eq i64 %115, 0
br i1 %116, label LBL_8, label LBL_7
LBL_7:
%117 = call i64 @FUNC(i64 %109, i64 %111)
%118 = trunc i64 %117 to i32
%119 = icmp slt i32 %118, 0
%120 = icmp eq i1 %119, false
store i64 %117, i64* %rax.0.shrunk.reg2mem
br i1 %120, label LBL_8, label LBL_9
LBL_8:
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_9
LBL_9:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %3, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 0, 22, 21 }
uselistorder i64 %2, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 0 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i64 (i64, i64)* @ff_thread_ref_frame, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @ff_thread_release_buffer, { 2, 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 0, 2, 1 }
uselistorder label LBL_9, { 4, 0, 1, 2, 3 }
} | 1 |
reposvul_c_test | ff_amf_read_number_171 | ff_amf_read_number | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = call i64 @FUNC(i64 %0)
%5 = call i128 @FUNC(i64 %4)
%6 = call i64 @FUNC(i128 %5)
store i64 %6, i64* %arg2, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @bytestream2_get_byte, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | AcquirePixelThreadSet_11917 | AcquirePixelThreadSet | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%xmm0.1.lcssa.reg2mem = alloca i128
%xmm0.16.reg2mem = alloca i128
%storemerge17.reg2mem = alloca i64
%xmm0.04.reg2mem = alloca i128
%storemerge25.reg2mem = alloca i64
%xmm0.28.reg2mem = alloca i128
%storemerge9.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_0.010.reg2mem = alloca i64
%storemerge311.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 8)
%1 = call i64 @FUNC(i64 %0, i64 8)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_13
LBL_1:
%4 = inttoptr i64 %1 to i64*
%.tr = trunc i64 %0 to i32
%5 = mul i32 %.tr, 8
%6 = call i64* @memset(i64* %4, i32 0, i32 %5)
%7 = icmp eq i64* %arg1, null
%8 = icmp eq i1 %7, false
store i64 %1, i64* %sv_0.0.lcssa.reg2mem
br i1 %8, label LBL_2, label LBL_4
LBL_2:
%9 = ptrtoint i64* %arg1 to i64
store i64 %9, i64* %storemerge311.reg2mem
store i64 %1, i64* %sv_0.010.reg2mem
br label LBL_3
LBL_3:
%sv_0.010.reload = load i64, i64* %sv_0.010.reg2mem
%storemerge311.reload = load i64, i64* %storemerge311.reg2mem
%10 = inttoptr i64 %storemerge311.reload to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11, i64 %sv_0.010.reload)
%13 = add i64 %storemerge311.reload, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = icmp eq i64 %15, 0
%17 = icmp eq i1 %16, false
store i64 %15, i64* %storemerge311.reg2mem
store i64 %12, i64* %sv_0.010.reg2mem
store i64 %12, i64* %sv_0.0.lcssa.reg2mem
br i1 %17, label LBL_3, label LBL_4
LBL_4:
%18 = icmp sgt i64 %0, 0
store i64 %1, i64* %rax.0.reg2mem
br i1 %18, label LBL_5, label LBL_13
LBL_5:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%19 = icmp sgt i64 %sv_0.0.lcssa.reload, 0
store i64 0, i64* %storemerge9.reg2mem
br label LBL_6
LBL_6:
%xmm0.28.reload = load i128, i128* %xmm0.28.reg2mem
%storemerge9.reload = load i64, i64* %storemerge9.reg2mem
%20 = mul i64 %storemerge9.reload, 8
%21 = add i64 %20, %1
%22 = call i64 @FUNC(i64 %sv_0.0.lcssa.reload, i64 32)
%23 = inttoptr i64 %21 to i64*
store i64 %22, i64* %23, align 8
%24 = icmp eq i64 %22, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_7, label LBL_8
LBL_7:
store i64 0, i64* %storemerge17.reg2mem
store i128 %xmm0.28.reload, i128* %xmm0.16.reg2mem
store i128 %xmm0.28.reload, i128* %xmm0.1.lcssa.reg2mem
br i1 %19, label LBL_11, label LBL_12
LBL_8:
%26 = call i64 @FUNC(i64 %1)
store i64 %26, i64* %rax.0.reg2mem
br label LBL_13
LBL_9:
%xmm0.04.reload = load i128, i128* %xmm0.04.reg2mem
%storemerge25.reload = load i64, i64* %storemerge25.reg2mem
%27 = load i64, i64* %23, align 8
%28 = call i128 @FUNC(i128 %xmm0.04.reload, i128 %xmm0.04.reload)
%29 = call i64 @FUNC(i128 %28)
%30 = mul i64 %storemerge25.reload, 8
%31 = add nuw nsw i64 %30, %36
%32 = add i64 %31, %27
%33 = inttoptr i64 %32 to i64*
store i64 %29, i64* %33, align 8
%34 = add nuw nsw i64 %storemerge25.reload, 1
%exitcond = icmp eq i64 %34, 4
store i64 %34, i64* %storemerge25.reg2mem
store i128 %28, i128* %xmm0.04.reg2mem
br i1 %exitcond, label LBL_10, label LBL_9
LBL_10:
%35 = add nuw nsw i64 %storemerge17.reload, 1
%exitcond14 = icmp eq i64 %35, %sv_0.0.lcssa.reload
store i64 %35, i64* %storemerge17.reg2mem
store i128 %28, i128* %xmm0.16.reg2mem
store i128 %28, i128* %xmm0.1.lcssa.reg2mem
br i1 %exitcond14, label LBL_12, label LBL_11
LBL_11:
%xmm0.16.reload = load i128, i128* %xmm0.16.reg2mem
%storemerge17.reload = load i64, i64* %storemerge17.reg2mem
%36 = mul i64 %storemerge17.reload, 32
store i64 0, i64* %storemerge25.reg2mem
store i128 %xmm0.16.reload, i128* %xmm0.04.reg2mem
br label LBL_9
LBL_12:
%xmm0.1.lcssa.reload = load i128, i128* %xmm0.1.lcssa.reg2mem
%37 = add nuw nsw i64 %storemerge9.reload, 1
%38 = icmp slt i64 %37, %0
store i64 %37, i64* %storemerge9.reg2mem
store i128 %xmm0.1.lcssa.reload, i128* %xmm0.28.reg2mem
store i64 %1, i64* %rax.0.reg2mem
br i1 %38, label LBL_6, label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %storemerge17.reload, { 1, 0 }
uselistorder i128 %xmm0.04.reload, { 1, 0 }
uselistorder i64 %sv_0.0.lcssa.reload, { 2, 0, 1 }
uselistorder i64 %storemerge311.reload, { 1, 0 }
uselistorder i64 %1, { 0, 5, 4, 1, 3, 2, 6, 7 }
uselistorder i64 %0, { 1, 0, 2, 3 }
uselistorder i64* %storemerge311.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.010.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge9.reg2mem, { 1, 0, 2 }
uselistorder i128* %xmm0.28.reg2mem, { 1, 0 }
uselistorder i64* %storemerge25.reg2mem, { 2, 1, 0 }
uselistorder i128* %xmm0.04.reg2mem, { 2, 1, 0 }
uselistorder i64* %storemerge17.reg2mem, { 0, 2, 1 }
uselistorder i128* %xmm0.16.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 4, 2, 3 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder i64 32, { 0, 2, 1 }
uselistorder i1 false, { 1, 2, 0, 3, 4 }
uselistorder i64 (i64, i64)* @AcquireQuantumMemory, { 1, 0 }
uselistorder i64 8, { 0, 1, 4, 2, 3 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_13, { 0, 3, 1, 2 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | dyn_buf_write_14219 | dyn_buf_write | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.04.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg3 to i32
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = add i32 %4, %1
%6 = add i64 %0, 16
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %4 to i64
%10 = sext i32 %5 to i64
%11 = icmp sge i64 %10, %9
%12 = icmp slt i32 %5, 1073741824
%or.cond = icmp eq i1 %12, %11
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_10
LBL_1:
%13 = icmp sgt i32 %5, %8
store i32 %8, i32* %sv_0.04.reg2mem
store i32 %8, i32* %sv_0.0.lcssa.reg2mem
br i1 %13, label LBL_2, label LBL_4
LBL_2:
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%14 = icmp eq i32 %sv_0.04.reload, 0
%15 = icmp eq i1 %14, false
store i32 %5, i32* %sv_0.0.lcssa.reg2mem
br i1 %15, label LBL_3, label LBL_4
LBL_3:
%16 = icmp slt i32 %sv_0.04.reload, 0
%17 = zext i1 %16 to i32
%18 = add i32 %sv_0.04.reload, %17
%19 = ashr i32 %18, 1
%20 = add i32 %sv_0.04.reload, 1
%21 = add i32 %20, %19
%22 = icmp sgt i32 %5, %21
store i32 %21, i32* %sv_0.04.reg2mem
store i32 %21, i32* %sv_0.0.lcssa.reg2mem
br i1 %22, label LBL_2, label LBL_4
LBL_4:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%23 = zext i32 %8 to i64
%24 = sext i32 %sv_0.0.lcssa.reload to i64
%25 = icmp sgt i64 %24, %23
store i32 %4, i32* %.reg2mem
br i1 %25, label LBL_5, label LBL_7
LBL_5:
%26 = call i64 @FUNC(i64 %0, i64 %24)
store i64 %26, i64* %arg1, align 8
%27 = icmp eq i64* %arg1, null
%28 = icmp eq i1 %27, false
store i64 4294966062, i64* %rax.0.reg2mem
br i1 %28, label LBL_6, label LBL_10
LBL_6:
store i32 %sv_0.0.lcssa.reload, i32* %7, align 4
%.pre = load i32, i32* %3, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_7
LBL_7:
%sext = mul i64 %arg3, 4294967296
%29 = ashr exact i64 %sext, 32
%.reload = load i32, i32* %.reg2mem
%30 = trunc i64 %29 to i32
%31 = sext i32 %.reload to i64
%32 = add i64 %31, %0
%33 = inttoptr i64 %32 to i64*
%34 = bitcast i32* %arg2 to i64*
%35 = call i64* @memcpy(i64* %33, i64* %34, i32 %30)
store i32 %5, i32* %3, align 4
%36 = add i64 %0, 12
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = icmp ugt i32 %5, %38
br i1 %39, label LBL_8, label LBL_9
LBL_8:
store i32 %5, i32* %37, align 4
br label LBL_9
LBL_9:
%40 = and i64 %29, 4294967295
store i64 %40, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.04.reload, { 0, 3, 2, 1 }
uselistorder i32 %8, { 2, 0, 1, 3 }
uselistorder i32 %5, { 3, 2, 4, 5, 0, 1, 6, 7 }
uselistorder i32 %4, { 0, 2, 1 }
uselistorder i32* %3, { 1, 0, 2 }
uselistorder i64 %0, { 1, 0, 2, 3, 4 }
uselistorder i32* %sv_0.04.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_10, { 2, 0, 1 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | quantize_mantissas_13860 | quantize_mantissas | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%.reg2mem13 = alloca i64
%storemerge12.reg2mem = alloca i32
%.reg2mem11 = alloca i64
%.reg2mem9 = alloca i64
%indvars.iv.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = ptrtoint i64* %sv_0 to i64
store i64 %0, i64* %sv_0, align 8
%2 = add i64 %1, -8
%3 = inttoptr i64 %2 to i64*
store i64 %0, i64* %.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%.reload = load i64, i64* %.reg2mem
%4 = mul nuw nsw i64 %indvars.iv.reload, 120
%5 = add i64 %4, %.reload
%6 = add i64 %.reload, 1928
%7 = inttoptr i64 %6 to i32*
store i32 0, i32* %7, align 4
%8 = load i64, i64* %sv_0, align 8
%9 = add i64 %8, 1928
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = add i64 %8, 1924
%13 = inttoptr i64 %12 to i32*
store i32 %11, i32* %13, align 4
%14 = load i64, i64* %sv_0, align 8
%15 = add i64 %14, 1924
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i64 %14, 1920
%19 = inttoptr i64 %18 to i32*
store i32 %17, i32* %19, align 4
%20 = load i64, i64* %sv_0, align 8
%21 = add i64 %20, 1952
%22 = inttoptr i64 %21 to i64*
store i64 0, i64* %22, align 8
%23 = load i64, i64* %sv_0, align 8
%24 = add i64 %23, 1952
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = add i64 %23, 1944
%28 = inttoptr i64 %27 to i64*
store i64 %26, i64* %28, align 8
%29 = load i64, i64* %sv_0, align 8
%30 = add i64 %29, 1944
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = add i64 %29, 1936
%34 = inttoptr i64 %33 to i64*
store i64 %32, i64* %34, align 8
%35 = load i64, i64* %sv_0, align 8
%36 = add i64 %35, 1960
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = icmp eq i32 %38, 0
store i64 0, i64* %.reg2mem9
store i64 %35, i64* %.reg2mem11
store i32 0, i32* %storemerge12.reg2mem
store i64 %35, i64* %.reg2mem13
store i64 0, i64* %.lcssa.reg2mem
br i1 %39, label LBL_3, label LBL_2
LBL_2:
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%.reload12 = load i64, i64* %.reg2mem11
%.reload10 = load i64, i64* %.reg2mem9
%40 = mul i64 %.reload10, 4
%41 = add i64 %.reload12, 1964
%42 = add i64 %41, %40
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = zext i32 %44 to i64
%46 = add i64 %5, %40
%47 = add i64 %46, 96
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = add i64 %46, 72
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = add i64 %46, 48
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = add i64 %46, 24
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = inttoptr i64 %46 to i32*
%60 = load i32, i32* %59, align 4
store i64 %45, i64* %3, align 8
%61 = call i64 @FUNC(i64 %.reload12, i32 %60, i32 %58, i32 %55, i32 %52, i32 %49)
%62 = add i32 %storemerge12.reload, 1
%63 = load i64, i64* %sv_0, align 8
%64 = add i64 %63, 1960
%65 = inttoptr i64 %64 to i32*
%66 = load i32, i32* %65, align 4
%67 = zext i32 %66 to i64
%68 = sext i32 %62 to i64
%69 = icmp slt i64 %68, %67
store i64 %68, i64* %.reg2mem9
store i64 %63, i64* %.reg2mem11
store i32 %62, i32* %storemerge12.reg2mem
store i64 %63, i64* %.reg2mem13
store i64 %67, i64* %.lcssa.reg2mem
br i1 %69, label LBL_2, label LBL_3
LBL_3:
%.reload14 = load i64, i64* %.reg2mem13
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 16
store i64 %.reload14, i64* %.reg2mem
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_4, label LBL_1
LBL_4:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %46, { 3, 2, 0, 1, 4 }
uselistorder i64 %.reload12, { 1, 0 }
uselistorder i64* %sv_0, { 1, 0, 2, 3, 4, 5, 6, 7, 8 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem9, { 2, 0, 1 }
uselistorder i64* %.reg2mem11, { 2, 0, 1 }
uselistorder i32* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder i64 1960, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | vorbis_comment_16536 | vorbis_comment | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i1
%sv_0.0.lcssa.reg2mem = alloca i32
%.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0.09.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
store i64 %3, i64* %sv_3, align 8
%4 = icmp sgt i32 %arg3, 7
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_16
LBL_1:
%5 = sext i32 %arg3 to i64
%6 = add i64 %5, %3
%7 = call i64 @FUNC(i64* nonnull %sv_3)
%8 = load i64, i64* %sv_3, align 8
%9 = sub i64 %6, %8
%10 = and i64 %7, 4294967295
%11 = icmp slt i64 %9, %10
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %11, label LBL_16, label LBL_2
LBL_2:
%12 = ptrtoint i64* %arg1 to i64
%13 = add i64 %8, %10
store i64 %13, i64* %sv_3, align 8
%14 = call i64 @FUNC(i64* nonnull %sv_3)
%15 = trunc i64 %14 to i32
%16 = load i64, i64* %sv_3, align 8
%17 = icmp ugt i64 %6, %16
%18 = icmp eq i32 %15, 0
%19 = icmp eq i1 %18, false
%or.cond68 = icmp eq i1 %17, %19
store i32 %15, i32* %sv_0.09.reg2mem
store i64 %16, i64* %.reg2mem
store i32 %15, i32* %sv_0.0.lcssa.reg2mem
store i1 %18, i1* %.lcssa.reg2mem
br i1 %or.cond68, label LBL_3, label LBL_12
LBL_3:
%sv_0.09.reload = load i32, i32* %sv_0.09.reg2mem
%20 = call i64 @FUNC(i64* nonnull %sv_3)
%21 = load i64, i64* %sv_3, align 8
%22 = sub i64 %6, %21
%23 = and i64 %20, 4294967295
%24 = icmp slt i64 %22, %23
store i64 %21, i64* %.reg2mem
store i32 %sv_0.09.reload, i32* %sv_0.0.lcssa.reg2mem
store i1 false, i1* %.lcssa.reg2mem
br i1 %24, label LBL_12, label LBL_4
LBL_4:
%25 = trunc i64 %20 to i32
%26 = add i64 %21, %23
store i64 %26, i64* %sv_3, align 8
%27 = inttoptr i64 %21 to i64*
%28 = call i64* @memchr(i64* %27, i32 61, i32 %25)
%29 = icmp eq i64* %28, null
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_5, label LBL_6
LBL_5:
%31 = ptrtoint i64* %28 to i64
%32 = sub i64 %31, %21
%33 = trunc i64 %32 to i32
%34 = sub i32 0, %33
%35 = sub i32 %34, 1
%36 = add i32 %35, %25
%37 = icmp eq i32 %33, 0
%38 = icmp eq i32 %36, 0
%or.cond = or i1 %37, %38
br i1 %or.cond, label LBL_6, label LBL_7
LBL_6:
%39 = add i32 %sv_0.09.reload, -1
%40 = load i64, i64* %sv_3, align 8
%41 = icmp ugt i64 %6, %40
%42 = icmp eq i32 %39, 0
%43 = icmp eq i1 %42, false
%or.cond6 = icmp eq i1 %43, %41
store i32 %39, i32* %sv_0.09.reg2mem
store i64 %40, i64* %.reg2mem
store i32 %39, i32* %sv_0.0.lcssa.reg2mem
store i1 %42, i1* %.lcssa.reg2mem
br i1 %or.cond6, label LBL_3, label LBL_12
LBL_7:
%44 = mul i64 %32, 4294967296
%sext = add i64 %44, 4294967296
%45 = ashr exact i64 %sext, 32
%46 = call i64 @FUNC(i64 %45)
store i64 %46, i64* %sv_2, align 8
%47 = add i32 %36, 1
%48 = sext i32 %47 to i64
%49 = call i64 @FUNC(i64 %48)
store i64 %49, i64* %sv_1, align 8
%50 = load i64, i64* %sv_2, align 8
%51 = icmp ne i64 %50, 0
%52 = icmp eq i64 %49, 0
%53 = icmp eq i1 %52, false
%or.cond4 = icmp eq i1 %53, %51
br i1 %or.cond4, label LBL_8, label LBL_9
LBL_8:
%54 = add i64 %31, 1
%wide.trip.count = and i64 %32, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_10
LBL_9:
%55 = call i64 @FUNC(i64* nonnull %sv_2)
%56 = call i64 @FUNC(i64* nonnull %sv_1)
%57 = call i64 @FUNC(i64 %12, i64 1, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_0, i64 0, i64 0), i64 %21, i64 %2, i64 %1)
br label LBL_6
LBL_10:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%58 = add i64 %indvars.iv.reload, %21
%59 = inttoptr i64 %58 to i8*
%60 = load i8, i8* %59, align 1
%61 = sext i8 %60 to i32
%62 = call i32 @toupper(i32 %61)
%63 = load i64, i64* %sv_2, align 8
%64 = add i64 %63, %indvars.iv.reload
%65 = trunc i32 %62 to i8
%66 = inttoptr i64 %64 to i8*
store i8 %65, i8* %66, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_11, label LBL_10
LBL_11:
%.pre = load i64, i64* %sv_2, align 8
%67 = ashr exact i64 %44, 32
%68 = add i64 %.pre, %67
%69 = inttoptr i64 %68 to i8*
store i8 0, i8* %69, align 1
%70 = load i64, i64* %sv_1, align 8
%71 = inttoptr i64 %70 to i64*
%72 = inttoptr i64 %54 to i64*
%73 = call i64* @memcpy(i64* %71, i64* %72, i32 %36)
%74 = load i64, i64* %sv_1, align 8
%75 = sext i32 %36 to i64
%76 = add i64 %74, %75
%77 = inttoptr i64 %76 to i8*
store i8 0, i8* %77, align 1
%78 = load i64, i64* %sv_1, align 8
%79 = load i64, i64* %sv_2, align 8
%80 = call i64 @FUNC(i64 %12, i64 %79, i64 %78)
%81 = call i64 @FUNC(i64* nonnull %sv_2)
%82 = call i64 @FUNC(i64* nonnull %sv_1)
br label LBL_6
LBL_12:
%.lcssa.reload = load i1, i1* %.lcssa.reg2mem
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%.reload = load i64, i64* %.reg2mem
%83 = icmp eq i64 %6, %.reload
br i1 %83, label LBL_14, label LBL_13
LBL_13:
%84 = sub i64 %6, %.reload
%85 = call i64 @FUNC(i64 %12, i64 2, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_1, i64 0, i64 0), i64 %84, i64 %2, i64 %1)
br label LBL_14
LBL_14:
store i64 0, i64* %rax.0.reg2mem
br i1 %.lcssa.reload, label LBL_16, label LBL_15
LBL_15:
%86 = zext i32 %sv_0.0.lcssa.reload to i64
%87 = call i64 @FUNC(i64 %12, i64 2, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_2, i64 0, i64 0), i64 %86, i64 %2, i64 %1)
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 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %44, { 1, 0 }
uselistorder i32 %33, { 1, 0 }
uselistorder i64 %32, { 1, 0, 2 }
uselistorder i64* %28, { 1, 0 }
uselistorder i64 %21, { 1, 5, 4, 2, 3, 0, 6 }
uselistorder i64 %20, { 1, 0 }
uselistorder i32 %sv_0.09.reload, { 1, 0 }
uselistorder i64 %12, { 3, 2, 0, 1 }
uselistorder i64 %6, { 2, 1, 4, 3, 0, 5 }
uselistorder i64* %sv_3, { 4, 5, 6, 1, 0, 2, 7, 8, 3, 9 }
uselistorder i64* %sv_2, { 1, 3, 0, 4, 2, 5, 6 }
uselistorder i64* %sv_1, { 0, 2, 3, 4, 1, 5 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i32* %sv_0.09.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %sv_0.0.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i1* %.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 1, 0 }
uselistorder i64 (i64*)* @av_freep, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @av_malloc, { 1, 0 }
uselistorder i64 4294967296, { 1, 0 }
uselistorder i1 false, { 3, 2, 4, 0, 1 }
uselistorder i32 0, { 2, 3, 4, 0, 1 }
uselistorder i64 (i64*)* @bytestream_get_le32, { 2, 1, 0 }
uselistorder i64 4294967295, { 2, 3, 0, 4, 1 }
uselistorder label LBL_16, { 1, 0, 2, 3 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_6, { 2, 1, 0, 3 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | update_sar_16910 | update_sar | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%sext = mul i64 %arg1, 4294967296
%sext4 = mul i64 %arg2, 4294967296
%sext5 = mul i64 %arg4, 4294967296
%sext6 = mul i64 %arg5, 4294967296
%0 = trunc i64 %arg3 to i32
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
%spec.select = select i1 %2, i64 %arg3, i64 1
%3 = ashr exact i64 %sext6, 32
%4 = ashr exact i64 %sext, 32
%5 = mul nsw i64 %3, %4
%6 = ashr exact i64 %sext5, 32
%7 = mul i64 %sext4, %6
%8 = and i64 %5, 4294967295
%9 = or i64 %8, %7
%10 = call i64 @FUNC(i64 %spec.select, i64 %9)
ret i64 %10
} | 1 |
BinRealVul | rgb8tobgr8_16150 | rgb8tobgr8 | define i64 @FUNC(i32* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = icmp eq i32 %arg3, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = ptrtoint i32* %arg1 to i64
%wide.trip.count = zext i32 %arg3 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%2 = add i64 %indvars.iv.reload, %1
%3 = inttoptr i64 %2 to i8*
%4 = load i8, i8* %3, align 1
%5 = udiv i8 %4, 64
%narrow = mul i8 %5, 2
%6 = and i8 %4, 56
%7 = mul i8 %4, 64
%8 = add i64 %indvars.iv.reload, %arg2
%9 = or i8 %7, %6
%10 = or i8 %9, %narrow
%11 = inttoptr i64 %8 to i8*
store i8 %10, i8* %11, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %wide.trip.count, i64* %.lcssa.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i8 %4, { 0, 2, 1 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
} | 1 |
BinRealVul | mddev_suspend_3762 | mddev_suspend | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
%6 = zext i1 %5 to i64
%7 = call i64 @FUNC(i64 %6)
%8 = bitcast i64* %arg1 to i32*
store i32 1, i32* %8, align 4
%9 = call i64 @FUNC()
%10 = add i64 %2, 56
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
%14 = zext i1 %13 to i64
%15 = call i64 @FUNC(i64 %14)
%16 = add i64 %2, 72
%17 = call i64 @FUNC(i64 %16)
ret i64 %17
} | 0 |
BinRealVul | ff_jref_idct1_add_1446 | ff_jref_idct1_add | define i64 @FUNC(i8* %arg1, i64 %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = trunc i64 %1 to i32
%4 = trunc i64 %2 to i32
%5 = add i32 %4, 4
%6 = ashr i32 %5, 3
%7 = urem i32 %3, 256
%8 = add nsw i32 %6, %7
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i8
store i8 %11, i8* %arg1, align 1
ret i64 %10
uselistorder i64 %10, { 1, 0 }
uselistorder i64* %0, { 1, 0 }
} | 0 |
BinRealVul | m25p80_transfer8_2229 | m25p80_transfer8 | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %1, 44
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = icmp eq i32 %4, 4
br i1 %5, label LBL_8, label LBL_1
LBL_1:
%sext = mul i64 %arg2, 4294967296
%6 = ashr exact i64 %sext, 32
%7 = icmp ugt i32 %4, 4
br i1 %7, label LBL_10, label LBL_2
LBL_2:
%8 = icmp ult i32 %4, 2
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_6, label LBL_3
LBL_3:
switch i32 %4, label LBL_10 [
i32 0, label LBL_4
i32 1, label LBL_5
]
LBL_4:
%10 = trunc i64 %6 to i32
%11 = inttoptr i64 %1 to i64*
%12 = load i64, i64* %11, align 8
%13 = trunc i64 %12 to i32
%14 = urem i32 %10, 256
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0), i32 %13, i32 %14)
%16 = urem i64 %6, 256
%17 = load i64, i64* %11, align 8
%18 = call i64 @FUNC(i64 %1, i64 %17, i64 %16)
%19 = load i64, i64* %11, align 8
%20 = add i64 %19, 1
%21 = add i64 %1, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = add i64 %23, -1
%25 = and i64 %24, %20
store i64 %25, i64* %11, align 8
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_11
LBL_5:
%26 = add i64 %1, 16
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = inttoptr i64 %1 to i64*
%30 = load i64, i64* %29, align 8
%31 = add i64 %30, %28
%32 = inttoptr i64 %31 to i8*
%33 = load i8, i8* %32, align 1
%34 = zext i8 %33 to i32
%35 = trunc i64 %30 to i32
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_1, i64 0, i64 0), i32 %35, i32 %34)
%37 = load i64, i64* %29, align 8
%38 = add i64 %37, 1
%39 = add i64 %1, 8
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = add i64 %41, -1
%43 = and i64 %42, %38
store i64 %43, i64* %29, align 8
store i32 %34, i32* %sv_0.0.reg2mem
br label LBL_11
LBL_6:
%44 = add i64 %1, 24
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = add i64 %1, 32
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = zext i32 %49 to i64
%51 = add i64 %46, %50
%52 = trunc i64 %6 to i8
%53 = inttoptr i64 %51 to i8*
store i8 %52, i8* %53, align 1
%54 = load i32, i32* %48, align 4
%55 = add i32 %54, 1
store i32 %55, i32* %48, align 4
%56 = add i64 %1, 36
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = icmp eq i32 %55, %58
%60 = icmp eq i1 %59, false
store i32 0, i32* %sv_0.0.reg2mem
br i1 %60, label LBL_11, label LBL_7
LBL_7:
%61 = call i64 @FUNC(i64 %1)
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_11
LBL_8:
%62 = add i64 %1, 24
%63 = inttoptr i64 %62 to i64*
%64 = load i64, i64* %63, align 8
%65 = add i64 %1, 40
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = zext i32 %67 to i64
%69 = add i64 %64, %68
%70 = inttoptr i64 %69 to i8*
%71 = load i8, i8* %70, align 1
%72 = zext i8 %71 to i32
%73 = add i32 %67, 1
store i32 %73, i32* %66, align 4
%74 = add i64 %1, 32
%75 = inttoptr i64 %74 to i32*
%76 = load i32, i32* %75, align 4
%77 = icmp eq i32 %73, %76
%78 = icmp eq i1 %77, false
store i32 %72, i32* %sv_0.0.reg2mem
br i1 %78, label LBL_11, label LBL_9
LBL_9:
store i32 0, i32* %66, align 4
store i32 5, i32* %3, align 4
store i32 %72, i32* %sv_0.0.reg2mem
br label LBL_11
LBL_10:
%79 = urem i64 %6, 256
%80 = call i64 @FUNC(i64 %1, i64 %79)
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_11
LBL_11:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%81 = zext i32 %sv_0.0.reload to i64
ret i64 %81
uselistorder i32* %48, { 1, 0, 2 }
uselistorder i64 %30, { 1, 0 }
uselistorder i64* %11, { 0, 2, 1, 3 }
uselistorder i64 %6, { 0, 3, 1, 2 }
uselistorder i32 %4, { 1, 2, 0, 3 }
uselistorder i64 %1, { 0, 11, 13, 12, 8, 7, 10, 9, 1, 3, 2, 5, 4, 6, 14 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 1, 6, 7, 4, 5, 2, 3 }
uselistorder i64 -1, { 1, 0 }
uselistorder i32 0, { 0, 5, 2, 3, 1, 4 }
uselistorder i64 32, { 1, 2, 0 }
uselistorder label LBL_11, { 4, 1, 0, 3, 2, 5, 6 }
} | 0 |
BinRealVul | intel_dp_aux_native_read_4023 | intel_dp_aux_native_read | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%sv_2 = alloca i8, align 1
%0 = trunc i64 %arg4 to i32
%1 = add i32 %0, -19
%2 = sub i32 18, %0
%3 = and i32 %2, %0
%4 = icmp slt i32 %3, 0
%5 = icmp eq i32 %1, 0
%6 = icmp slt i32 %1, 0
%7 = icmp eq i1 %6, %4
%8 = icmp eq i1 %5, false
%9 = icmp eq i1 %7, %8
%10 = zext i1 %9 to i64
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
store i32 -1, i32* %rax.0.shrunk.reg2mem
br i1 %13, label LBL_1, label LBL_7
LBL_1:
%14 = ptrtoint i64* %arg1 to i64
%15 = call i64 @FUNC(i64 %14)
store i8 0, i8* %sv_2, align 1
%16 = add i64 %arg4, 1
%17 = and i64 %16, 4294967295
%18 = bitcast i32* %sv_1 to i64*
%19 = call i64 @FUNC(i64 %14, i8* nonnull %sv_2, i32 4, i64* nonnull %18, i64 %17)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
store i32 %20, i32* %.reg2mem
store i32 -2, i32* %rax.0.shrunk.reg2mem
br i1 %22, label LBL_2, label LBL_7
LBL_2:
%.reload = load i32, i32* %.reg2mem
%23 = icmp slt i32 %.reload, 0
%24 = icmp eq i1 %23, false
store i32 %.reload, i32* %rax.0.shrunk.reg2mem
br i1 %24, label LBL_3, label LBL_7
LBL_3:
%25 = load i32, i32* %sv_1, align 4
%26 = urem i32 %25, 4
%27 = icmp eq i32 %26, 1
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_5, label LBL_4
LBL_4:
%29 = add i32 %.reload, -1
%30 = call i64* @memcpy(i64* %arg3, i64* nonnull %sv_0, i32 %29)
store i32 %29, i32* %rax.0.shrunk.reg2mem
br label LBL_7
LBL_5:
%31 = icmp eq i32 %26, 2
%32 = icmp eq i1 %31, false
store i32 -3, i32* %rax.0.shrunk.reg2mem
br i1 %32, label LBL_7, label LBL_6
LBL_6:
%33 = call i64 @FUNC(i64 100)
%34 = call i64 @FUNC(i64 %14, i8* nonnull %sv_2, i32 4, i64* nonnull %18, i64 %17)
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
store i32 %35, i32* %.reg2mem
store i32 -2, i32* %rax.0.shrunk.reg2mem
br i1 %37, label LBL_2, label LBL_7
LBL_7:
%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 i32 %26, { 1, 0 }
uselistorder i32 %.reload, { 2, 0, 1 }
uselistorder i64* %18, { 1, 0 }
uselistorder i64 %17, { 1, 0 }
uselistorder i64 %14, { 1, 0, 2 }
uselistorder i32 %1, { 1, 0 }
uselistorder i8* %sv_2, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 1, 3, 6, 2, 4, 5 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i64 (i64, i8*, i32, i64*, i64)* @intel_dp_aux_ch, { 1, 0 }
uselistorder i32 4, { 2, 0, 1 }
uselistorder i32 -1, { 1, 0, 2 }
uselistorder i1 false, { 4, 1, 2, 3, 0, 5 }
uselistorder label LBL_7, { 0, 2, 5, 1, 3, 4 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | apic_deliver_pic_intr_514 | apic_deliver_pic_intr | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %arg2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %2, i64 0)
store i64 %5, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%6 = trunc i64 %1 to i32
%7 = udiv i32 %6, 256
%8 = urem i32 %7, 8
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = zext i32 %8 to i64
%11 = icmp eq i32 %8, 1
store i64 %10, i64* %rax.0.reg2mem
br i1 %11, label LBL_6, label LBL_7
LBL_4:
%12 = and i32 %6, 2048
%13 = icmp eq i32 %12, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_7, label LBL_5
LBL_5:
%14 = add i64 %2, 1024
%15 = urem i64 %1, 256
%16 = call i64 @FUNC(i64 %14, i64 %15)
br label LBL_6
LBL_6:
%17 = call i64 @FUNC(i64 %2)
store i64 %17, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %8, { 2, 0, 1 }
uselistorder i32 %6, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1 }
uselistorder label LBL_7, { 2, 0, 1, 3 }
} | 0 |
BinRealVul | qpci_io_readb_729 | qpci_io_readb | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i8
%1 = ptrtoint i64* %arg1 to i64
%2 = load i8, i8* %0
%3 = icmp ult i64 %arg2, 4096
%4 = zext i8 %2 to i64
%storemerge = select i1 %3, i64 %1, i64 %4
ret i64 %storemerge
} | 0 |
BinRealVul | upnp_redirect_7511 | upnp_redirect | define i64 @FUNC(i64 %arg1, i16 %arg2, i64 %arg3, i16 %arg4, i64 %arg5, i64 %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i16, align 2
%sv_2 = alloca i8, align 1
%sv_3 = alloca i32, align 4
%0 = call i64 @FUNC(i64 %arg5)
%1 = inttoptr i64 %arg3 to i8*
%2 = bitcast i32* %sv_3 to %in_addr*
%3 = call i32 @inet_aton(i8* %1, %in_addr* nonnull %2)
%4 = icmp eq i32 %3, 0
%5 = icmp slt i32 %3, 0
%6 = icmp eq i1 %5, false
%7 = icmp eq i1 %4, false
%8 = icmp eq i1 %6, %7
br i1 %8, label LBL_2, label LBL_1
LBL_1:
call void (i32, i8*, ...) @syslog(i32 3, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i8* %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_23
LBL_2:
%9 = load i32, i32* @gv_1, align 4
%10 = load i64, i64* @gv_2, align 8
%11 = load i32, i32* %sv_3, align 4
%12 = zext i32 %11 to i64
%13 = zext i16 %arg4 to i64
%14 = call i64 @FUNC(i64 %10, i32 %9, i16 %arg2, i64 %12, i64 %13)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = inttoptr i64 %arg5 to i8*
call void (i32, i8*, ...) @syslog(i32 6, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_3, i64 0, i64 0), i16 %arg2, i8* %1, i16 %arg4, i8* %18)
store i64 4294967293, i64* %rax.0.reg2mem
br label LBL_23
LBL_4:
%sext = mul i64 %arg7, 4294967296
%19 = ashr exact i64 %sext, 32
%20 = trunc i64 %0 to i32
store i8 0, i8* %sv_2, align 1
%21 = load i64, i64* @gv_4, align 8
%22 = bitcast i16* %sv_1 to i64*
%23 = call i64 @FUNC(i64 %21, i16 %arg2, i32 %20, i64* nonnull %sv_0, i64 32, i64* nonnull %22)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_18, label LBL_5
LBL_5:
%27 = bitcast i64* %sv_0 to i8*
%28 = call i32 @strcmp(i8* %1, i8* nonnull %27)
%29 = icmp eq i32 %28, 0
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_17, label LBL_6
LBL_6:
%31 = icmp eq i64 %arg1, 0
br i1 %31, label LBL_9, label LBL_7
LBL_7:
%32 = inttoptr i64 %arg1 to i8*
%33 = call i32 @strcmp(i8* %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_5, i64 0, i64 0))
%34 = icmp eq i32 %33, 0
%35 = load i8, i8* %sv_2, align 1
%36 = icmp eq i8 %35, 0
%or.cond9 = icmp eq i1 %34, %36
br i1 %or.cond9, label LBL_9, label LBL_8
LBL_8:
%37 = call i32 @strcmp(i8* %32, i8* nonnull %sv_2)
%38 = icmp eq i32 %37, 0
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_17, label LBL_9
LBL_9:
%40 = load i16, i16* %sv_1, align 2
%41 = inttoptr i64 %arg5 to i8*
call void (i32, i8*, ...) @syslog(i32 6, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_6, i64 0, i64 0), i16 %arg2, i8* %41, i8* nonnull %sv_2, i64* nonnull %sv_0, i16 %40)
%42 = trunc i64 %19 to i32
%43 = icmp eq i32 %42, 0
store i64 0, i64* %storemerge5.reg2mem
br i1 %43, label LBL_11, label LBL_10
LBL_10:
%44 = call i64 @FUNC()
%45 = add i64 %44, %19
%phitmp10 = and i64 %45, 4294967295
store i64 %phitmp10, i64* %storemerge5.reg2mem
br label LBL_11
LBL_11:
%storemerge5.reload = load i64, i64* %storemerge5.reg2mem
%46 = load i16, i16* %sv_1, align 2
%47 = icmp eq i16 %46, %arg4
%48 = load i64, i64* @gv_4, align 8
br i1 %47, label LBL_13, label LBL_12
LBL_12:
%49 = call i64 @FUNC(i64 %48, i16 %arg2, i32 %20, i16 %arg4, i64 %arg6, i64 %storemerge5.reload)
store i64 %49, i64* %storemerge.in.reg2mem
br label LBL_14
LBL_13:
%50 = call i64 @FUNC(i64 %48, i16 %arg2, i32 %20, i64 %arg6, i64 %storemerge5.reload)
store i64 %50, i64* %storemerge.in.reg2mem
br label LBL_14
LBL_14:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = trunc i64 %storemerge.in.reload to i32
%51 = icmp eq i32 %storemerge, 0
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_16, label LBL_15
LBL_15:
%53 = and i64 %0, 4294967295
%54 = zext i16 %arg2 to i64
%55 = call i64 @FUNC(i64 %54, i64 %53)
%56 = call i64 @FUNC(i64 %54, i64 %arg3, i16 %arg4, i32 %20, i64 %arg6, i64 %storemerge5.reload)
br label LBL_16
LBL_16:
%57 = and i64 %storemerge.in.reload, 4294967295
store i64 %57, i64* %rax.0.reg2mem
br label LBL_23
LBL_17:
%58 = load i16, i16* %sv_1, align 2
%59 = inttoptr i64 %arg5 to i8*
call void (i32, i8*, ...) @syslog(i32 6, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_7, i64 0, i64 0), i16 %arg2, i8* %59, i8* nonnull %sv_2, i64* nonnull %sv_0, i16 %58)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_23
LBL_18:
%60 = load i64, i64* @gv_4, align 8
%61 = call i64 @FUNC(i64 %60, i16 %arg2, i32 %20, i64 %arg3, i64 %13)
%62 = trunc i64 %61 to i32
%63 = icmp slt i32 %62, 1
br i1 %63, label LBL_20, label LBL_19
LBL_19:
%64 = inttoptr i64 %arg5 to i8*
call void (i32, i8*, ...) @syslog(i32 6, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_8, i64 0, i64 0), i16 %arg2, i8* %64)
store i64 4294967292, i64* %rax.0.reg2mem
br label LBL_23
LBL_20:
%65 = trunc i64 %19 to i32
%66 = icmp eq i32 %65, 0
br i1 %66, label LBL_22, label LBL_21
LBL_21:
%67 = call i64 @FUNC()
br label LBL_22
LBL_22:
%68 = inttoptr i64 %arg5 to i8*
%69 = inttoptr i64 %arg6 to i8*
call void (i32, i8*, ...) @syslog(i32 6, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_9, i64 0, i64 0), i16 %arg2, i8* %1, i16 %arg4, i8* %68, i8* %69)
%70 = call i64 @FUNC(i64 %arg1, i16 %arg2, i64 %arg3, i16 %arg4, i32 %20, i64 %arg6)
store i64 %70, 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 %storemerge.in.reload, { 1, 0 }
uselistorder i64 %48, { 1, 0 }
uselistorder i64 %storemerge5.reload, { 1, 0, 2 }
uselistorder i32 %20, { 3, 4, 1, 2, 0, 5 }
uselistorder i64 %19, { 2, 0, 1 }
uselistorder i32 %3, { 1, 0 }
uselistorder i8* %1, { 3, 2, 1, 0, 4 }
uselistorder i8* %sv_2, { 1, 2, 3, 0, 4 }
uselistorder i16* %sv_1, { 2, 1, 0, 3 }
uselistorder i64* %storemerge5.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 5, 4, 3, 2, 1 }
uselistorder i64 ()* @upnp_time, { 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 2, 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder void (i32, i8*, ...)* @syslog, { 3, 4, 2, 1, 0, 5 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 6, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0 }
uselistorder i32 1, { 3, 4, 7, 5, 6, 2, 1, 0 }
uselistorder i64 %arg6, { 3, 4, 1, 2, 0 }
uselistorder i64 %arg5, { 4, 3, 2, 1, 0, 5 }
uselistorder i16 %arg4, { 4, 5, 2, 3, 0, 1, 6 }
uselistorder i64 %arg3, { 1, 2, 0, 3 }
uselistorder i16 %arg2, { 7, 8, 6, 9, 5, 2, 3, 1, 4, 10, 0, 11 }
uselistorder i64 %arg1, { 2, 1, 0 }
uselistorder label LBL_22, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 2, 0, 1 }
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.