dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | dp8393x_realize_16585 | dp8393x_realize | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.12.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 48
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i64 %2, 56
%7 = zext i32 %5 to i64
%8 = call i64 @FUNC(i64 %6, i64 %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0))
%9 = add i64 %2, 52
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = urem i32 %11, 32
%13 = shl i32 64, %12
%storemerge = zext i32 %13 to i64
%14 = call i64 @FUNC(i64 %2)
%15 = add i64 %2, 64
%16 = call i64 @FUNC(i64 %15, i64 %14, i64* nonnull @gv_1, i64 %2, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0), i64 %storemerge)
%17 = call i64 @FUNC(i64 %2)
%18 = call i64 @FUNC(i64 %17)
%19 = and i64 %1, 4294967295
%20 = call i64 @FUNC(i64* nonnull @gv_3, i64 %2, i64 %18, i64 %19, i64 %2)
%21 = add i64 %2, 8
%22 = inttoptr i64 %21 to i64*
store i64 %20, i64* %22, align 8
%23 = call i64 @FUNC(i64 %20)
%24 = call i64 @FUNC(i64 %23, i64 %2)
%25 = call i64 @FUNC(i64 0, i64 4198824, i64 %2)
%26 = add i64 %2, 16
%27 = inttoptr i64 %26 to i64*
store i64 %25, i64* %27, align 8
%28 = add i64 %2, 24
%29 = inttoptr i64 %28 to i16*
store i16 4, i16* %29, align 2
%30 = call i64 @FUNC(i64 %2)
%31 = add i64 %2, 40
%32 = call i64 @FUNC(i64 %31, i64 %30, i64 0, i64 0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_4, i64 0, i64 0), i64 256)
%33 = call i64 @FUNC(i64 %31)
store i64 0, i64* %indvars.iv.reg2mem
store i32 0, i32* %sv_0.12.reg2mem
br label LBL_1
LBL_1:
%sv_0.12.reload = load i32, i32* %sv_0.12.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%34 = add i64 %indvars.iv.reload, %33
%35 = add i64 %indvars.iv.reload, %2
%36 = inttoptr i64 %35 to i8*
%37 = load i8, i8* %36, align 1
%38 = inttoptr i64 %34 to i8*
store i8 %37, i8* %38, align 1
%39 = zext i8 %37 to i32
%40 = add i32 %sv_0.12.reload, %39
%41 = icmp slt i32 %40, 256
%42 = add i32 %40, 1
%43 = urem i32 %42, 256
%sv_0.0 = select i1 %41, i32 %40, i32 %43
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 6
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %sv_0.0, i32* %sv_0.12.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
%44 = add i64 %33, 7
%45 = trunc i32 %sv_0.0 to i8
%46 = sub i8 0, %45
%47 = sub i8 %46, 1
%48 = inttoptr i64 %44 to i8*
store i8 %47, i8* %48, align 1
ret i64 %44
uselistorder i64 %44, { 1, 0 }
uselistorder i32 %sv_0.0, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %33, { 1, 0 }
uselistorder i64 %2, { 0, 1, 13, 2, 3, 5, 4, 8, 7, 6, 12, 10, 9, 11, 14, 15, 16 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.12.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @OBJECT, { 2, 1, 0 }
} | 1 |
BinRealVul | usb_net_handle_dataout_2801 | usb_net_handle_dataout | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 1024
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = trunc i64 %4 to i32
%6 = sub i32 1024, %5
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%11 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %10, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i64 %9)
%12 = load i64, i64* %8, align 8
%13 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%14 = ptrtoint %_IO_FILE* %13 to i64
%15 = add i64 %0, 16
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17, i64 %17, i64 %14, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i64 %12)
%19 = sext i32 %6 to i64
%20 = load i64, i64* %8, align 8
%21 = icmp ult i64 %20, %19
%22 = trunc i64 %20 to i32
%spec.select = select i1 %21, i32 %22, i32 %6
%23 = load i64, i64* %3, align 8
%24 = add i64 %23, %1
%25 = call i64 @FUNC(i64 %0, i64 %24, i32 %spec.select)
%26 = load i64, i64* %3, align 8
%27 = sext i32 %spec.select to i64
%28 = add i64 %26, %27
store i64 %28, i64* %3, align 8
%29 = call i64 @FUNC(i64 %1)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_3, label LBL_1
LBL_1:
%33 = load i64, i64* %8, align 8
%34 = icmp ult i64 %33, 64
store i64 %33, i64* %rax.0.reg2mem
br i1 %34, label LBL_2, label LBL_9
LBL_2:
%35 = load i64, i64* %3, align 8
%36 = add i64 %1, 1032
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = call i64 @FUNC(i64 %38)
%40 = call i64 @FUNC(i64 %39, i64 %1, i64 %35)
store i64 0, i64* %3, align 8
store i64 %1, i64* %rax.0.reg2mem
br label LBL_9
LBL_3:
%41 = bitcast i64* %rdi to i32*
%42 = load i32, i32* %41, align 8
%43 = zext i32 %42 to i64
%44 = call i64 @FUNC(i64 %43)
%45 = load i64, i64* %3, align 8
%46 = icmp ult i64 %45, 8
store i64 %45, i64* %rax.0.reg2mem
br i1 %46, label LBL_9, label LBL_4
LBL_4:
%47 = and i64 %44, 4294967295
%48 = icmp ult i64 %45, %47
store i64 %47, i64* %rax.0.reg2mem
br i1 %48, label LBL_9, label LBL_5
LBL_5:
%49 = add i64 %1, 4
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = zext i32 %51 to i64
%53 = call i64 @FUNC(i64 %52)
%54 = trunc i64 %53 to i32
%55 = icmp eq i32 %54, 1
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_8, label LBL_6
LBL_6:
%57 = trunc i64 %44 to i32
%58 = add i64 %1, 8
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
%61 = zext i32 %60 to i64
%62 = call i64 @FUNC(i64 %61)
%63 = trunc i64 %62 to i32
%64 = add i32 %63, 8
%65 = add i64 %1, 12
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = zext i32 %67 to i64
%69 = call i64 @FUNC(i64 %68)
%70 = trunc i64 %69 to i32
%71 = icmp ult i32 %64, %57
%72 = icmp ult i32 %70, %57
%73 = icmp eq i1 %71, %72
%74 = icmp ne i1 %73, true
%75 = add i32 %64, %70
%76 = icmp ugt i32 %75, %57
%or.cond3 = or i1 %76, %74
br i1 %or.cond3, label LBL_8, label LBL_7
LBL_7:
%77 = and i64 %69, 4294967295
%78 = zext i32 %64 to i64
%79 = add i64 %78, %1
%80 = add i64 %1, 1032
%81 = inttoptr i64 %80 to i64*
%82 = load i64, i64* %81, align 8
%83 = call i64 @FUNC(i64 %82)
%84 = call i64 @FUNC(i64 %83, i64 %79, i64 %77)
br label LBL_8
LBL_8:
%85 = load i64, i64* %3, align 8
%86 = sub i64 %85, %47
store i64 %86, i64* %3, align 8
%87 = add i64 %47, %1
%88 = inttoptr i64 %87 to i64*
%89 = trunc i64 %86 to i32
%90 = call i64* @memmove(i64* %arg1, i64* %88, i32 %89)
%91 = ptrtoint i64* %90 to i64
store i64 %91, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %64, { 1, 0, 2 }
uselistorder i64 %47, { 1, 2, 0, 3 }
uselistorder i64 %45, { 1, 0, 2 }
uselistorder i64 %44, { 1, 0 }
uselistorder i32 %spec.select, { 1, 0 }
uselistorder i64 %17, { 1, 0 }
uselistorder i64* %3, { 3, 2, 4, 0, 1, 6, 5, 7, 8 }
uselistorder i64 %1, { 1, 6, 2, 7, 8, 9, 0, 4, 5, 10, 3, 11 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 5, 2, 1 }
uselistorder i64 (i64)* @le32_to_cpu, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @qemu_send_packet, { 1, 0 }
uselistorder i64 (i64)* @qemu_get_queue, { 1, 0 }
uselistorder %_IO_FILE** @gv_0, { 1, 0 }
uselistorder i64 8, { 1, 0, 2 }
uselistorder label LBL_9, { 4, 1, 0, 2, 3 }
} | 0 |
BinRealVul | rm_read_packet_15602 | rm_read_packet | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.be.reg2mem = alloca i32*
%sv_0.2.reg2mem = alloca i32*
%sv_0.14.reg2mem = alloca i32*
%sv_1.05.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32*
%storemerge3.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32*
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%sv_2 = alloca i32, align 4
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i32, align 4
%sv_6 = alloca i32, align 4
%sv_7 = alloca i64, align 8
%2 = ptrtoint i64* %sv_7 to i64
store i64 %arg2, i64* %sv_7, align 8
store i32 1, i32* %sv_6, align 4
%3 = bitcast i64* %rdi to i32*
%4 = add i64 %arg1, 8
%5 = inttoptr i64 %4 to i64*
%6 = add i64 %arg1, 4
%7 = inttoptr i64 %6 to i32*
%8 = add i64 %arg1, 16
%9 = inttoptr i64 %8 to i64*
%10 = inttoptr i64 %4 to i32*
%11 = bitcast i32* %sv_2 to i64*
%12 = add i64 %2, -8
%13 = inttoptr i64 %12 to i64*
%14 = add i64 %2, -16
%15 = inttoptr i64 %14 to i64*
%16 = add i64 %2, -24
%17 = inttoptr i64 %16 to i64*
%18 = ptrtoint i32* %sv_6 to i64
%19 = trunc i64 %1 to i32
store i32 %19, i32* %.reg2mem
br label LBL_1
LBL_1:
%.reload = load i32, i32* %.reg2mem
%20 = icmp eq i32 %.reload, 0
br i1 %20, label LBL_5, label LBL_2
LBL_2:
%21 = load i64, i64* %5, align 8
%22 = load i32, i32* %7, align 4
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 8
%25 = add i64 %24, %21
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = add i64 %27, 8
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = load i64, i64* %9, align 8
%32 = load i64, i64* %sv_7, align 8
%33 = call i64 @FUNC(i64 %arg1, i64 %31, i64 %27, i64 %30, i64 %32)
%34 = trunc i64 %33 to i32
%35 = icmp slt i32 %34, 0
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_4, label LBL_3
LBL_3:
%37 = and i64 %33, 4294967295
store i64 %37, i64* %rax.0.reg2mem
br label LBL_21
LBL_4:
%38 = inttoptr i64 %27 to i32*
store i32 0, i32* %sv_5, align 4
store i32* %38, i32** %sv_0.2.reg2mem
br label LBL_17
LBL_5:
%39 = load i32, i32* %10, align 4
%40 = icmp eq i32 %39, 0
br i1 %40, label LBL_9, label LBL_6
LBL_6:
%41 = load i64, i64* %5, align 8
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = add i64 %43, 8
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
store i64 -1, i64* %sv_4, align 8
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = icmp eq i32 %48, 0
store i32 2048, i32* %storemerge3.reg2mem
br i1 %49, label LBL_8, label LBL_7
LBL_7:
%50 = add i64 %46, 4
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = add i64 %46, 8
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = mul i32 %55, %52
%57 = icmp slt i32 %56, 0
%58 = zext i1 %57 to i32
%59 = add i32 %56, %58
%60 = ashr i32 %59, 1
store i32 %60, i32* %storemerge3.reg2mem
br label LBL_8
LBL_8:
%61 = inttoptr i64 %43 to i32*
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%62 = load i32, i32* %sv_6, align 4
%63 = add i32 %62, 1
store i32 %63, i32* %sv_6, align 4
%64 = icmp eq i32 %62, 1
%65 = icmp eq i1 %64, false
%66 = select i1 %65, i32 0, i32 2
store i32 %66, i32* %sv_5, align 4
%67 = load i64, i64* %9, align 8
%68 = call i64 @FUNC(i64 %67)
store i64 %68, i64* %sv_3, align 8
store i32* %61, i32** %sv_0.1.reg2mem
store i32 %storemerge3.reload, i32* %sv_1.0.reg2mem
br label LBL_11
LBL_9:
%sv_0.0.reload = load i32*, i32** %sv_0.0.reg2mem
%69 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_4, i32* nonnull %sv_5, i64* nonnull %11, i64* nonnull %sv_3)
%70 = trunc i64 %69 to i32
%71 = icmp slt i32 %70, 1
store i32* %sv_0.0.reload, i32** %sv_0.1.reg2mem
store i32 %70, i32* %sv_1.0.reg2mem
br i1 %71, label LBL_11, label LBL_10
LBL_10:
%72 = load i64, i64* %5, align 8
%73 = load i32, i32* %sv_2, align 4
%74 = sext i32 %73 to i64
%75 = mul i64 %74, 8
%76 = add i64 %75, %72
%77 = inttoptr i64 %76 to i64*
%78 = load i64, i64* %77, align 8
%79 = inttoptr i64 %78 to i32*
store i32 %70, i32* %sv_1.05.reg2mem
store i32* %79, i32** %sv_0.14.reg2mem
br label LBL_12
LBL_11:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_0.1.reload = load i32*, i32** %sv_0.1.reg2mem
%80 = icmp slt i32 %sv_1.0.reload, 0
store i32 %sv_1.0.reload, i32* %sv_1.05.reg2mem
store i32* %sv_0.1.reload, i32** %sv_0.14.reg2mem
store i64 5, i64* %rax.0.reg2mem
br i1 %80, label LBL_21, label LBL_12
LBL_12:
%81 = load i64, i64* %9, align 8
%82 = call i64 @FUNC(i64 %81)
%83 = trunc i64 %82 to i32
%84 = icmp eq i32 %83, 0
store i64 5, i64* %rax.0.reg2mem
br i1 %84, label LBL_13, label LBL_21
LBL_13:
%sv_0.14.reload = load i32*, i32** %sv_0.14.reg2mem
%sv_1.05.reload = load i32, i32* %sv_1.05.reg2mem
%85 = load i64, i64* %sv_4, align 8
%86 = load i32, i32* %sv_5, align 4
%87 = zext i32 %86 to i64
%88 = ptrtoint i32* %sv_0.14.reload to i64
%89 = add i64 %88, 8
%90 = inttoptr i64 %89 to i64*
%91 = load i64, i64* %90, align 8
%92 = load i64, i64* %9, align 8
%93 = load i64, i64* %sv_7, align 8
store i64 %85, i64* %13, align 8
store i64 %87, i64* %15, align 8
store i64 %18, i64* %17, align 8
%94 = zext i32 %sv_1.05.reload to i64
%95 = call i64 @FUNC(i64 %arg1, i64 %92, i64 %88, i64 %91, i64 %94, i64 %93)
%96 = load i32, i32* %sv_5, align 4
%97 = and i32 %96, 2
%98 = icmp eq i32 %97, 0
br i1 %98, label LBL_16, label LBL_14
LBL_14:
%99 = load i32, i32* %sv_6, align 4
%100 = urem i32 %99, 128
%101 = icmp eq i32 %100, 1
%102 = icmp eq i1 %101, false
br i1 %102, label LBL_16, label LBL_15
LBL_15:
%103 = load i64, i64* %sv_4, align 8
%104 = load i64, i64* %sv_3, align 8
%105 = call i64 @FUNC(i64 %88, i64 %104, i64 %103, i64 0, i64 0, i64 1)
br label LBL_16
LBL_16:
%106 = trunc i64 %95 to i32
%107 = icmp eq i32 %106, 0
%108 = icmp eq i1 %107, false
store i32* %sv_0.14.reload, i32** %sv_0.2.reg2mem
store i32* %sv_0.14.reload, i32** %sv_0.0.be.reg2mem
br i1 %108, label LBL_1.backedge, label LBL_17
LBL_17:
%sv_0.2.reload = load i32*, i32** %sv_0.2.reg2mem
%109 = load i32, i32* %sv_0.2.reload, align 4
%110 = icmp slt i32 %109, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %110, label LBL_21, label LBL_18
LBL_18:
%111 = load i32, i32* %sv_5, align 4
%112 = and i32 %111, 2
%113 = icmp ne i32 %112, 0
%114 = icmp eq i32 %109, 1
%or.cond = icmp eq i1 %114, %113
store i64 0, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_21, label LBL_19
LBL_19:
%115 = load i64, i64* %sv_7, align 8
%116 = call i64 @FUNC(i64 %115)
store i32* %sv_0.2.reload, i32** %sv_0.0.be.reg2mem
br label LBL_1.backedge
LBL_20:
%sv_0.0.be.reload = load i32*, i32** %sv_0.0.be.reg2mem
%.pre = load i32, i32* %3, align 8
store i32 %.pre, i32* %.reg2mem
store i32* %sv_0.0.be.reload, i32** %sv_0.0.reg2mem
br label LBL_1
LBL_21:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %46, { 1, 0, 2 }
uselistorder i64* %9, { 1, 0, 2, 3 }
uselistorder i64 %4, { 1, 0 }
uselistorder i32* %sv_6, { 0, 2, 3, 1, 4 }
uselistorder i32* %sv_5, { 1, 2, 3, 0, 4, 5 }
uselistorder i64* %sv_4, { 1, 2, 0, 3 }
uselistorder i64* %sv_3, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32** %sv_0.0.reg2mem, { 1, 0 }
uselistorder i32* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i32** %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i32** %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2, 5 }
uselistorder i64 0, { 1, 0, 8, 7, 2, 3, 4, 5, 6, 9 }
uselistorder i64 5, { 1, 0 }
uselistorder i32 2, { 1, 2, 0 }
uselistorder i32 0, { 3, 4, 5, 6, 7, 1, 0, 8, 9, 2, 10, 11 }
uselistorder i64 8, { 2, 0, 3, 4, 6, 1, 5 }
uselistorder i32 1, { 13, 18, 15, 14, 16, 17, 27, 24, 26, 25, 23, 22, 21, 20, 19, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 3, 4, 1, 0, 2, 5 }
uselistorder label LBL_21, { 0, 1, 3, 2, 4 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | do_setlk_7018 | do_setlk | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64*
%storemerge.in.in.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = inttoptr i64 %3 to i64*
%5 = icmp eq i32 %2, 0
%6 = icmp eq i1 %5, false
store i64* %4, i64** %sv_0.0.reg2mem
br i1 %6, label LBL_5, label LBL_1
LBL_1:
%7 = trunc i64 %0 to i32
%8 = call i64 @FUNC()
%9 = urem i32 %7, 2
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i32 %7, i32* %.pre-phi.reg2mem
store i64 %0, i64* %storemerge.in.in.reg2mem
br i1 %11, label LBL_2, label LBL_3
LBL_2:
%12 = ptrtoint i64* %arg3 to i64
%13 = call i64 @FUNC(i64 %0, i64 %12)
%.pre = trunc i64 %13 to i32
store i32 %.pre, i32* %.pre-phi.reg2mem
store i64 %13, i64* %storemerge.in.in.reg2mem
br label LBL_3
LBL_3:
%storemerge.in.in.reload = load i64, i64* %storemerge.in.in.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%storemerge.in = and i64 %storemerge.in.in.reload, 4294967295
%storemerge = inttoptr i64 %storemerge.in to i64*
%14 = call i64 @FUNC()
%15 = icmp slt i32 %.pre-phi.reload, 0
store i64* %storemerge, i64** %sv_0.0.reg2mem
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = call i64 @FUNC(i64 %0)
%17 = call i64 @FUNC(i64 %0)
store i64* %storemerge, i64** %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64*, i64** %sv_0.0.reg2mem
%18 = ptrtoint i64* %sv_0.0.reload to i64
%19 = and i64 %18, 4294967295
ret i64 %19
uselistorder i64 %0, { 3, 1, 4, 0, 2, 5 }
uselistorder i64 (i64)* @nfs_sync_mapping, { 1, 0 }
uselistorder label LBL_5, { 2, 0, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | generic_permission_6126 | generic_permission | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = and i64 %arg2, 4294967295
%4 = call i64 @FUNC(i64 %2, i64 %3)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, -13
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = and i64 %4, 4294967295
store i64 %7, i64* %rax.0.reg2mem
br label LBL_12
LBL_2:
%8 = trunc i64 %1 to i32
%9 = and i32 %8, 16384
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_7, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 %2, i64 1)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_4, label LBL_12
LBL_4:
%14 = and i64 %arg2, 2
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_6, label LBL_5
LBL_5:
%17 = call i64 @FUNC(i64 %2, i64 2)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_6, label LBL_12
LBL_6:
store i64 4294967283, i64* %rax.0.reg2mem
br label LBL_12
LBL_7:
%20 = urem i64 %arg2, 2
%21 = icmp ne i64 %20, 0
%22 = urem i32 %8, 2
%23 = icmp eq i32 %22, 0
%or.cond = icmp eq i1 %21, %23
br i1 %or.cond, label LBL_9, label LBL_8
LBL_8:
%24 = call i64 @FUNC(i64 %2, i64 1)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %26, label LBL_9, label LBL_12
LBL_9:
%27 = urem i64 %arg2, 8
%28 = icmp eq i64 %27, 4
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_11, label LBL_10
LBL_10:
%30 = call i64 @FUNC(i64 %2, i64 2)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %32, label LBL_11, label LBL_12
LBL_11:
store i64 4294967283, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 3, 2, 0, 1, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 7, 1, 2, 6, 3, 4, 5 }
uselistorder i64 4294967283, { 1, 0, 2 }
uselistorder i64 2, { 2, 0, 3, 1 }
uselistorder i64 (i64, i64)* @capable_wrt_inode_uidgid, { 3, 2, 1, 0 }
uselistorder label LBL_12, { 4, 0, 1, 5, 2, 3, 6 }
uselistorder label LBL_9, { 1, 0 }
} | 0 |
BinRealVul | text_console_init_620 | text_console_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%0 = call i64 @FUNC(i64 16)
%1 = load i32, i32* @gv_0, align 4
%2 = icmp eq i32 %1, 128
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%5 = call i32 @fwrite(i64* bitcast ([24 x i8]* @gv_2 to i64*), i32 1, i32 23, %_IO_FILE* %4)
call void @exit(i32 1)
unreachable
LBL_2:
%6 = ptrtoint i64* %arg1 to i64
%7 = zext i32 %1 to i64
%8 = mul i64 %7, 8
%9 = add i64 %8, ptrtoint (i64* @gv_3 to i64)
%10 = inttoptr i64 %9 to i64*
store i64 %0, i64* %10, align 8
store i32 ptrtoint (i32* @gv_4 to i32), i32* @gv_0, align 4
%11 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_5, i64 0, i64 0), i64 0)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
store i32 %12, i32* %sv_1.0.reg2mem
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_6, i64 0, i64 0), i64 0)
%16 = trunc i64 %15 to i32
%17 = mul i32 %16, 8
store i32 %17, i32* %sv_1.0.reg2mem
br label LBL_4
LBL_4:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%18 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_7, i64 0, i64 0), i64 0)
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
store i32 %19, i32* %sv_0.0.reg2mem
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_8, i64 0, i64 0), i64 0)
%23 = trunc i64 %22 to i32
%24 = mul i32 %23, 16
store i32 %24, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%25 = icmp ne i32 %sv_1.0.reload, 0
%26 = icmp eq i32 %sv_0.0.reload, 0
%27 = icmp eq i1 %26, false
%or.cond = icmp eq i1 %25, %27
br i1 %or.cond, label LBL_8, label LBL_7
LBL_7:
%28 = call i64 @FUNC(i64 0, i64 0)
store i64 %28, i64* %storemerge1.reg2mem
br label LBL_9
LBL_8:
%29 = call i64 @FUNC(i64 0, i64 1)
store i64 %29, i64* %storemerge1.reg2mem
br label LBL_9
LBL_9:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%30 = icmp eq i64 %storemerge1.reload, 0
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_11, label LBL_10
LBL_10:
%32 = call i64 @FUNC(i64 %0)
store i64 0, i64* %storemerge.reg2mem
br label LBL_12
LBL_11:
%33 = inttoptr i64 %storemerge1.reload to i64*
store i64 %0, i64* %33, align 8
%34 = add i64 %storemerge1.reload, 8
%35 = inttoptr i64 %34 to i32*
store i32 %sv_1.0.reload, i32* %35, align 4
%36 = add i64 %storemerge1.reload, 12
%37 = inttoptr i64 %36 to i32*
store i32 %sv_0.0.reload, i32* %37, align 4
%38 = inttoptr i64 %0 to i64*
store i64 %storemerge1.reload, i64* %38, align 8
%39 = add i64 %0, 8
%40 = inttoptr i64 %39 to i64*
store i64 4198863, i64* %40, align 8
store i64 %0, i64* %storemerge.reg2mem
br label LBL_12
LBL_12:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %storemerge1.reload, { 4, 3, 2, 1, 0 }
uselistorder i32 %sv_1.0.reload, { 1, 0 }
uselistorder i64 %6, { 1, 2, 0, 3 }
uselistorder i64 %0, { 0, 2, 3, 4, 1, 5 }
uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @new_console, { 1, 0 }
uselistorder i64 (i64, i8*, i64)* @qemu_opt_get_number, { 3, 2, 1, 0 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder i32 0, { 0, 3, 4, 5, 1, 2 }
uselistorder i32* @gv_0, { 1, 0 }
} | 0 |
reposvul_c_test | lock_rename_80 | lock_rename | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, %arg2
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %0, i64 0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%4 = ptrtoint i64* %arg2 to i64
%5 = add i64 %0, 40
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7)
%9 = call i64 @FUNC(i64 %4, i64 %0)
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 %0, i64 0)
%12 = call i64 @FUNC(i64 %0, i64 1)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%13 = call i64 @FUNC(i64 %0, i64 %4)
%14 = call i64 @FUNC(i64 %0, i64 0)
%15 = call i64 @FUNC(i64 0, i64 1)
store i64 %13, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 2, 3, 1, 0, 4, 5, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i64 (i64, i64)* @d_ancestor, { 1, 0 }
uselistorder i64 (i64, i64)* @mutex_lock_nested, { 4, 3, 2, 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
} | 0 |
BinRealVul | virtio_scsi_common_realize_16407 | virtio_scsi_common_realize | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 2, i64 4)
%4 = bitcast i64* %rdi to i32*
%sext = mul i64 %1, 4294967296
%5 = ashr exact i64 %sext, 29
%6 = call i64 @FUNC(i64 %5)
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i64*
store i64 %6, i64* %8, align 8
%9 = add i64 %2, 16
%10 = inttoptr i64 %9 to i32*
store i32 32, i32* %10, align 4
%11 = add i64 %2, 20
%12 = inttoptr i64 %11 to i32*
store i32 16, i32* %12, align 4
%13 = call i64 @FUNC(i64 %2, i64 256, i64 4198766)
%14 = add i64 %2, 24
%15 = inttoptr i64 %14 to i64*
store i64 %13, i64* %15, align 8
%16 = call i64 @FUNC(i64 %2, i64 256, i64 4198773)
%17 = add i64 %2, 32
%18 = inttoptr i64 %17 to i64*
store i64 %16, i64* %18, align 8
%19 = load i32, i32* %4, align 8
%20 = icmp eq i32 %19, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
store i64 0, i64* %.lcssa.reg2mem
br i1 %20, label LBL_2, label LBL_1
LBL_1:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%21 = load i64, i64* %8, align 8
%22 = mul i64 %.reload, 8
%23 = add i64 %21, %22
%24 = call i64 @FUNC(i64 %2, i64 256, i64 4198780)
%25 = inttoptr i64 %23 to i64*
store i64 %24, i64* %25, align 8
%26 = add i32 %storemerge1.reload, 1
%27 = load i32, i32* %4, align 8
%28 = zext i32 %27 to i64
%29 = sext i32 %26 to i64
%30 = icmp slt i64 %29, %28
store i64 %29, i64* %.reg2mem
store i32 %26, i32* %storemerge1.reg2mem
store i64 %28, i64* %.lcssa.reg2mem
br i1 %30, label LBL_1, label LBL_2
LBL_2:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i32* %4, { 1, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64, i64, i64)* @virtio_add_queue, { 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | usbip_recv_9834 | usbip_recv | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%rsi.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sext = mul i64 %arg3, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0))
%7 = icmp ne i64* %arg1, null
%8 = icmp ne i64* %arg2, null
%.pre = trunc i64 %5 to i32
%or.cond.not = icmp eq i1 %7, %8
%9 = icmp eq i32 %.pre, 0
%10 = icmp eq i1 %9, false
%or.cond30 = icmp eq i1 %or.cond.not, %10
store i64 %3, i64* %sv_2.0.reg2mem
store i64 %5, i64* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
store i64 ptrtoint ([7 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br i1 %or.cond30, label LBL_2, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_1, i64 0, i64 0), i64 %4, i64 %3, i32 %.pre, i64 %2, i64 %1)
store i32 -22, i32* %rax.0.shrunk.reg2mem
br label LBL_10
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%12 = inttoptr i64 %rdi.0.reload to i32*
store i32 0, i32* %12, align 4
store i64 %sv_2.0.reload, i64* %sv_4, align 8
store i64 0, i64* %sv_3, align 8
%13 = and i64 %sv_1.0.reload, 4294967295
%14 = call i64 @FUNC(i64 %4, i64* nonnull %sv_3, i64* nonnull %sv_4, i64 1, i64 %13, i64 0)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp slt i32 %15, 0
%18 = icmp eq i1 %17, false
%19 = icmp eq i1 %16, false
%20 = icmp eq i1 %18, %19
%21 = trunc i64 %sv_1.0.reload to i32
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%22 = zext i32 %sv_0.0.reload to i64
%23 = and i64 %14, 4294967295
%24 = call i64 @FUNC(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_2, i64 0, i64 0), i64 %4, i64 %sv_2.0.reload, i32 %21, i64 %23, i64 %22)
store i32 %15, i32* %rax.0.shrunk.reg2mem
br label LBL_10
LBL_4:
%25 = sub i32 %21, %15
%26 = sext i32 %25 to i64
%sext5 = mul i64 %14, 4294967296
%27 = ashr exact i64 %sext5, 32
%28 = add i64 %27, %sv_2.0.reload
%29 = add i32 %sv_0.0.reload, %15
%30 = icmp eq i32 %25, 0
%31 = icmp slt i32 %25, 0
%32 = icmp eq i1 %31, false
%33 = icmp eq i1 %30, false
%34 = icmp eq i1 %32, %33
store i64 %28, i64* %sv_2.0.reg2mem
store i64 %26, i64* %sv_1.0.reg2mem
store i32 %29, i32* %sv_0.0.reg2mem
store i64 %4, i64* %rdi.0.reg2mem
br i1 %34, label LBL_2, label LBL_5
LBL_5:
%35 = load i32, i32* inttoptr (i64 4210748 to i32*), align 4
%36 = icmp eq i32 %35, 0
store i32 %29, i32* %rax.0.shrunk.reg2mem
br i1 %36, label LBL_10, label LBL_6
LBL_6:
%37 = ptrtoint i64* %sv_4 to i64
%38 = call i64 @FUNC()
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_8, label LBL_7
LBL_7:
%42 = load i64, i64* @gv_3, align 8
%43 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0), i64 %42, i64 %37, i32 1, i64 %13, i64 0)
store i64 %42, i64* %rsi.0.reg2mem
br label LBL_9
LBL_8:
%44 = ptrtoint i64* %sv_3 to i64
%45 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_5, i64 0, i64 0), i64 %44, i64 %37, i32 1, i64 %13, i64 0)
store i64 %44, i64* %rsi.0.reg2mem
br label LBL_9
LBL_9:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%46 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_6, i64 0, i64 0), i64 %rsi.0.reload, i64 %37, i32 1, i64 %13, i64 0)
%47 = and i64 %5, 4294967295
%48 = call i64 @FUNC(i64 %3, i64 %47)
%49 = and i64 %14, 4294967295
%50 = zext i32 %29 to i64
%51 = call i64 @FUNC(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_7, i64 0, i64 0), i64 %47, i64 %49, i32 %25, i64 %50, i64 0)
store i32 %29, i32* %rax.0.shrunk.reg2mem
br label LBL_10
LBL_10:
%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 %37, { 0, 2, 1 }
uselistorder i32 %29, { 1, 3, 0, 2 }
uselistorder i32 %25, { 0, 3, 2, 1 }
uselistorder i32 %21, { 1, 0 }
uselistorder i32 %15, { 1, 2, 0, 4, 3 }
uselistorder i64 %14, { 1, 0, 2, 3 }
uselistorder i64 %13, { 0, 2, 1, 3 }
uselistorder i64 %sv_2.0.reload, { 1, 2, 0 }
uselistorder i64 %sv_1.0.reload, { 1, 0 }
uselistorder i64 %5, { 2, 0, 1 }
uselistorder i64 %3, { 1, 2, 0 }
uselistorder i64* %sv_2.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.0.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %rsi.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i32, i64, i64)* @pr_debug, { 4, 3, 2, 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i1 false, { 3, 4, 1, 5, 2, 0 }
uselistorder i32 0, { 3, 4, 5, 6, 7, 8, 9, 0, 1, 2 }
uselistorder [7 x i8]* @gv_0, { 1, 0 }
uselistorder label LBL_10, { 1, 0, 2, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | seg6_validate_srh_17598 | seg6_validate_srh | define i64 @FUNC(i8* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i32
%sv_1.04.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 4
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_6
LBL_1:
%4 = ptrtoint i8* %arg1 to i64
%5 = add i64 %4, 1
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6, align 1
%8 = zext i8 %7 to i32
%9 = mul i32 %8, 8
%10 = add nuw nsw i32 %9, 8
%11 = trunc i64 %arg2 to i32
%12 = icmp eq i32 %10, %11
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_2, label LBL_6
LBL_2:
%13 = add i64 %4, 2
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = add i64 %4, 3
%17 = inttoptr i64 %16 to i8*
%18 = load i8, i8* %17, align 1
%19 = icmp eq i8 %15, %18
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_3, label LBL_6
LBL_3:
%20 = zext i8 %15 to i32
%21 = mul i32 %20, 16
%22 = add nuw nsw i32 %21, 20
%23 = sub nsw i32 %10, %22
%24 = icmp slt i32 %23, 0
%25 = icmp eq i1 %24, false
store i32 %23, i32* %sv_1.04.reg2mem
store i32 %22, i32* %sv_0.03.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %25, label LBL_4, label LBL_6
LBL_4:
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%sv_1.04.reload = load i32, i32* %sv_1.04.reg2mem
%26 = zext i32 %sv_0.03.reload to i64
%27 = add i64 %26, %4
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 1
%30 = zext i8 %29 to i32
%31 = add nuw nsw i32 %30, 1
%32 = sub i32 %sv_1.04.reload, %31
%33 = icmp slt i32 %32, 0
%34 = icmp eq i1 %33, false
store i64 0, i64* %rax.0.reg2mem
br i1 %34, label LBL_5, label LBL_6
LBL_5:
%35 = add i32 %31, %sv_0.03.reload
%36 = icmp eq i32 %32, 0
%37 = icmp eq i1 %36, false
store i32 %32, i32* %sv_1.04.reg2mem
store i32 %35, i32* %sv_0.03.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %37, label LBL_4, label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.03.reload, { 1, 0 }
uselistorder i32* %sv_1.04.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4, 5, 6 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i32 0, { 1, 0, 2 }
uselistorder i32 8, { 1, 0 }
uselistorder label LBL_6, { 1, 0, 2, 3, 4, 5 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | vmxnet3_pci_realize_15653 | vmxnet3_pci_realize | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i32 @puts(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0))
%2 = call i64 @FUNC(i64 %0, i64 %0, i64* nonnull @gv_1, i64 %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0), i64 4096)
%3 = call i64 @FUNC(i64 %0, i64 0, i64 0, i64 %0)
%4 = add i64 %0, 8
%5 = call i64 @FUNC(i64 %4, i64 %0, i64* nonnull @gv_3, i64 %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_4, i64 0, i64 0), i64 4096)
%6 = call i64 @FUNC(i64 %0, i64 1, i64 0, i64 %4)
%7 = add i64 %0, 16
%8 = call i64 @FUNC(i64 %7, i64 %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_5, i64 0, i64 0), i64 4096)
%9 = call i64 @FUNC(i64 %0, i64 2, i64 0, i64 %7)
%10 = call i64 @FUNC(i64 %0)
%11 = bitcast i64* %arg1 to i8*
store i8 1, i8* %11, align 1
%12 = call i64 @FUNC(i64 %0)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_2, label LBL_1
LBL_1:
%16 = call i32 @puts(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @gv_6, i64 0, i64 0))
br label LBL_2
LBL_2:
%17 = call i64 @FUNC(i64 %0)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_4, label LBL_3
LBL_3:
%21 = call i32 @puts(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @gv_7, i64 0, i64 0))
br label LBL_4
LBL_4:
%22 = call i64 @FUNC(i64 %0)
%23 = call i64 @FUNC(i64 %0)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
br i1 %25, label LBL_8, label LBL_5
LBL_5:
%26 = add i64 %0, 256
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = call i64 @FUNC(i64 %28)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_7, label LBL_6
LBL_6:
%32 = call i64 @FUNC(i64 %0, i64 0)
br label LBL_7
LBL_7:
%33 = call i64 @FUNC(i64 %0)
%34 = and i64 %33, 4294967295
%35 = call i64 @FUNC(i64 %0, i64 0, i64 %34)
br label LBL_8
LBL_8:
%36 = load i64, i64* @gv_8, align 8
%37 = load i64, i64* @gv_9, align 8
%38 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_10, i64 0, i64 0), i64 4294967295, i64 1, i64 %37, i64 %36)
ret i64 %38
uselistorder i64 %0, { 4, 1, 2, 0, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 14, 16, 18, 17, 20, 21, 19 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 1, { 4, 5, 0, 1, 2, 3 }
uselistorder i64 (i64, i64, i64, i64)* @pci_register_bar, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64*, i64, i8*, i64)* @memory_region_init_io, { 1, 0 }
uselistorder i32 (i8*)* @puts, { 2, 1, 0 }
} | 1 |
BinRealVul | hpack_dht_insert_7791 | hpack_dht_insert | define i64 @FUNC(i32* %arg1, i64 %arg2, i32 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%.pre-phi17.reg2mem = alloca i64
%.pre-phi21.reg2mem = alloca i32*
%sv_1.1.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32*
%.pre-phi.reg2mem = alloca i64
%.pre-phi12.reg2mem = alloca i32*
%.pre-phi16.reg2mem = alloca i32*
%storemerge.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%sv_4.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_5.0.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = trunc i64 %arg5 to i32
%4 = add i32 %3, %arg3
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %2, i64 %5)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_1, label LBL_21
LBL_1:
%10 = trunc i64 %1 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
%13 = add i64 %2, 8
%14 = inttoptr i64 %13 to i32*
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%15 = bitcast i64* %rdi to i32*
store i32 0, i32* %14, align 4
%16 = add i64 %2, 4
%17 = inttoptr i64 %16 to i32*
store i32 0, i32* %17, align 4
store i32 1, i32* %arg1, align 4
%18 = load i32, i32* %15, align 8
%19 = add i64 %2, 12
%20 = inttoptr i64 %19 to i32*
store i32 %18, i32* %20, align 4
%21 = add i64 %2, 20
%22 = inttoptr i64 %21 to i32*
store i32 0, i32* %22, align 4
%23 = add i64 %2, 16
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = sub i32 %25, %4
%27 = add i64 %2, 24
%28 = inttoptr i64 %27 to i32*
store i32 %26, i32* %28, align 4
store i32* %22, i32** %.pre-phi21.reg2mem
store i64 %2, i64* %.pre-phi17.reg2mem
store i32 0, i32* %sv_0.2.reg2mem
br label LBL_20
LBL_3:
%29 = load i32, i32* %14, align 4
%30 = add i64 %2, 12
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = call i64 @FUNC(i64 %2)
%34 = trunc i64 %33 to i32
%35 = add i32 %10, 1
%36 = add i32 %29, 1
%37 = icmp ult i32 %36, %32
br i1 %37, label LBL_8, label LBL_4
LBL_4:
%38 = add i32 %32, 1
%39 = zext i32 %38 to i64
%40 = mul nuw nsw i64 %39, 12
%41 = add nuw nsw i64 %40, 3096
%42 = add i64 %2, 4
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = zext i32 %44 to i64
%46 = mul nuw nsw i64 %45, 12
%47 = add i64 %2, 24
%48 = add i64 %47, %46
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = zext i32 %50 to i64
%52 = icmp ugt i64 %41, %51
store i32 %36, i32* %sv_0.0.reg2mem
store i32 %29, i32* %sv_5.0.reg2mem
store i32 %38, i32* %sv_1.0.reg2mem
store i32 %34, i32* %sv_4.0.reg2mem
br i1 %52, label LBL_5, label LBL_11
LBL_5:
%53 = icmp ult i32 %36, %35
store i32 0, i32* %sv_0.0.reg2mem
store i32 %29, i32* %sv_5.0.reg2mem
store i32 %32, i32* %sv_1.0.reg2mem
store i32 %34, i32* %sv_4.0.reg2mem
br i1 %53, label LBL_6, label LBL_11
LBL_6:
%54 = call i64 @FUNC(i64 %2)
%55 = trunc i64 %54 to i32
%56 = icmp eq i32 %55, 0
%57 = icmp eq i1 %56, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %57, label LBL_7, label LBL_21
LBL_7:
%58 = load i32, i32* %31, align 4
%59 = add i32 %58, 1
%60 = load i32, i32* %14, align 4
%61 = add i32 %60, 1
store i32 %61, i32* %sv_0.0.reg2mem
store i32 %60, i32* %sv_5.0.reg2mem
store i32 %59, i32* %sv_1.0.reg2mem
store i32 0, i32* %sv_4.0.reg2mem
br label LBL_11
LBL_8:
%62 = icmp ult i32 %35, %32
store i32 %36, i32* %sv_0.0.reg2mem
store i32 %29, i32* %sv_5.0.reg2mem
store i32 %32, i32* %sv_1.0.reg2mem
store i32 %34, i32* %sv_4.0.reg2mem
br i1 %62, label LBL_11, label LBL_9
LBL_9:
%63 = call i64 @FUNC(i64 %2)
%64 = trunc i64 %63 to i32
%65 = icmp eq i32 %64, 0
%66 = icmp eq i1 %65, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %66, label LBL_10, label LBL_21
LBL_10:
%67 = load i32, i32* %31, align 4
%68 = add i32 %67, 1
%69 = load i32, i32* %14, align 4
%70 = add i32 %69, 1
store i32 %70, i32* %sv_0.0.reg2mem
store i32 %69, i32* %sv_5.0.reg2mem
store i32 %68, i32* %sv_1.0.reg2mem
store i32 0, i32* %sv_4.0.reg2mem
br label LBL_11
LBL_11:
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_5.0.reload = load i32, i32* %sv_5.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%71 = add i64 %2, 4
%72 = inttoptr i64 %71 to i32*
%73 = load i32, i32* %72, align 4
%74 = icmp eq i32 %sv_5.0.reload, %73
%75 = icmp eq i1 %74, false
br i1 %75, label LBL_13, label LBL_12
LBL_12:
%76 = zext i32 %73 to i64
%77 = mul nuw nsw i64 %76, 12
%78 = add i64 %2, 24
%79 = add i64 %78, %77
%80 = inttoptr i64 %79 to i32*
%81 = load i32, i32* %80, align 4
%82 = mul i32 %sv_1.0.reload, -12
%83 = add i32 %82, -3096
%84 = add i32 %83, %81
%85 = add i64 %2, 16
%86 = inttoptr i64 %85 to i32*
%87 = load i32, i32* %86, align 4
%88 = zext i32 %sv_4.0.reload to i64
%89 = mul nuw nsw i64 %88, 12
%90 = add i64 %89, %2
%91 = add i64 %90, 24
%92 = inttoptr i64 %91 to i32*
%93 = load i32, i32* %92, align 4
%94 = sub i32 %87, %93
%95 = add i64 %90, 28
%96 = inttoptr i64 %95 to i32*
%97 = load i32, i32* %96, align 4
%98 = sub i32 %94, %97
%99 = add i64 %90, 32
%100 = inttoptr i64 %99 to i32*
%101 = load i32, i32* %100, align 4
%102 = sub i32 %98, %101
store i32 %84, i32* %sv_3.0.reg2mem
store i32 %102, i32* %storemerge.reg2mem
br label LBL_14
LBL_13:
%103 = zext i32 %sv_5.0.reload to i64
%104 = mul nuw nsw i64 %103, 12
%105 = add i64 %2, 24
%106 = add i64 %105, %104
%107 = inttoptr i64 %106 to i32*
%108 = load i32, i32* %107, align 4
%109 = zext i32 %sv_4.0.reload to i64
%110 = mul nuw nsw i64 %109, 12
%111 = add i64 %110, %2
%112 = add i64 %111, 24
%113 = inttoptr i64 %112 to i32*
%114 = load i32, i32* %113, align 4
%115 = sub i32 %108, %114
%116 = add i64 %111, 28
%117 = inttoptr i64 %116 to i32*
%118 = load i32, i32* %117, align 4
%119 = sub i32 %115, %118
%120 = add i64 %111, 32
%121 = inttoptr i64 %120 to i32*
%122 = load i32, i32* %121, align 4
%123 = sub i32 %119, %122
store i32 0, i32* %sv_3.0.reg2mem
store i32 %123, i32* %storemerge.reg2mem
br label LBL_14
LBL_14:
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%124 = icmp ult i32 %sv_3.0.reload, %4
br i1 %124, label LBL_16, label LBL_15
LBL_15:
%125 = zext i32 %73 to i64
%126 = mul nuw nsw i64 %125, 12
%127 = add i64 %2, 24
%128 = add i64 %126, %127
%129 = inttoptr i64 %128 to i32*
%130 = load i32, i32* %129, align 4
%131 = sub i32 %130, %4
%132 = zext i32 %sv_0.0.reload to i64
%133 = mul nuw nsw i64 %132, 12
%134 = add i64 %133, %127
%135 = inttoptr i64 %134 to i32*
store i32 %131, i32* %135, align 4
store i32 %sv_0.0.reload, i32* %72, align 4
store i32* %14, i32** %.pre-phi16.reg2mem
store i32* %31, i32** %.pre-phi12.reg2mem
store i64 %2, i64* %.pre-phi.reg2mem
store i32* %arg1, i32** %sv_2.0.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
br label LBL_19
LBL_16:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%136 = icmp ult i32 %storemerge.reload, %4
br i1 %136, label LBL_18, label LBL_17
LBL_17:
%137 = zext i32 %sv_4.0.reload to i64
%138 = mul nuw nsw i64 %137, 12
%139 = add i64 %138, %2
%140 = add i64 %139, 24
%141 = inttoptr i64 %140 to i32*
%142 = load i32, i32* %141, align 4
%143 = add i64 %139, 28
%144 = inttoptr i64 %143 to i32*
%145 = load i32, i32* %144, align 4
%146 = add i64 %139, 32
%147 = inttoptr i64 %146 to i32*
%148 = load i32, i32* %147, align 4
%149 = sub i32 %storemerge.reload, %4
%150 = add i32 %149, %142
%151 = add i32 %150, %145
%152 = add i32 %151, %148
%153 = zext i32 %sv_0.0.reload to i64
%154 = mul nuw nsw i64 %153, 12
%155 = add i64 %2, 24
%156 = add i64 %155, %154
%157 = inttoptr i64 %156 to i32*
store i32 %152, i32* %157, align 4
store i32* %14, i32** %.pre-phi16.reg2mem
store i32* %31, i32** %.pre-phi12.reg2mem
store i64 %2, i64* %.pre-phi.reg2mem
store i32* %arg1, i32** %sv_2.0.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.1.reg2mem
br label LBL_19
LBL_18:
%158 = call i64 @FUNC(i64 %2)
%sext = mul i64 %158, 4294967296
%159 = ashr exact i64 %sext, 32
%160 = inttoptr i64 %159 to i32*
%161 = add nsw i64 %159, 12
%162 = inttoptr i64 %161 to i32*
%163 = load i32, i32* %162, align 4
%164 = add i32 %163, 1
%165 = add nsw i64 %159, 8
%166 = inttoptr i64 %165 to i32*
%167 = load i32, i32* %166, align 4
%168 = add i32 %167, 1
%169 = add nsw i64 %159, 4
%170 = inttoptr i64 %169 to i32*
%171 = load i32, i32* %170, align 4
%172 = zext i32 %171 to i64
%173 = mul nuw nsw i64 %172, 12
%174 = add nsw i64 %159, 24
%175 = add nsw i64 %173, %174
%176 = inttoptr i64 %175 to i32*
%177 = load i32, i32* %176, align 4
%178 = sub i32 %177, %4
%179 = zext i32 %168 to i64
%180 = mul nuw nsw i64 %179, 12
%181 = add nsw i64 %180, %174
%182 = inttoptr i64 %181 to i32*
store i32 %178, i32* %182, align 4
store i32 %168, i32* %170, align 4
store i32* %166, i32** %.pre-phi16.reg2mem
store i32* %162, i32** %.pre-phi12.reg2mem
store i64 %159, i64* %.pre-phi.reg2mem
store i32* %160, i32** %sv_2.0.reg2mem
store i32 %168, i32* %sv_0.1.reg2mem
store i32 %164, i32* %sv_1.1.reg2mem
br label LBL_19
LBL_19:
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_2.0.reload = load i32*, i32** %sv_2.0.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%.pre-phi12.reload = load i32*, i32** %.pre-phi12.reg2mem
%.pre-phi16.reload = load i32*, i32** %.pre-phi16.reg2mem
store i32 %sv_1.1.reload, i32* %.pre-phi12.reload, align 4
store i32 %sv_0.1.reload, i32* %.pre-phi16.reload, align 4
store i32 %35, i32* %sv_2.0.reload, align 4
%.pre18 = add i64 %.pre-phi.reload, 20
%.pre20 = inttoptr i64 %.pre18 to i32*
store i32* %.pre20, i32** %.pre-phi21.reg2mem
store i64 %.pre-phi.reload, i64* %.pre-phi17.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br label LBL_20
LBL_20:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%.pre-phi17.reload = load i64, i64* %.pre-phi17.reg2mem
%.pre-phi21.reload = load i32*, i32** %.pre-phi21.reg2mem
%183 = load i32, i32* %.pre-phi21.reload, align 4
%184 = add i32 %183, %4
store i32 %184, i32* %.pre-phi21.reload, align 4
%185 = zext i32 %sv_0.2.reload to i64
%186 = mul nuw nsw i64 %185, 12
%187 = add i64 %186, %.pre-phi17.reload
%188 = add i64 %187, 28
%189 = inttoptr i64 %188 to i32*
store i32 %arg3, i32* %189, align 4
%190 = add i64 %187, 32
%191 = inttoptr i64 %190 to i32*
store i32 %3, i32* %191, align 4
%192 = add i64 %187, 24
%193 = inttoptr i64 %192 to i32*
%194 = load i32, i32* %193, align 4
%195 = zext i32 %194 to i64
%196 = add i64 %.pre-phi17.reload, %195
%197 = inttoptr i64 %196 to i64*
%198 = inttoptr i64 %arg2 to i64*
%199 = call i64* @memcpy(i64* %197, i64* %198, i32 %arg3)
%200 = load i32, i32* %193, align 4
%201 = zext i32 %200 to i64
%202 = zext i32 %arg3 to i64
%203 = add i64 %.pre-phi17.reload, %202
%204 = add i64 %203, %201
%205 = inttoptr i64 %204 to i64*
%206 = inttoptr i64 %arg4 to i64*
%207 = call i64* @memcpy(i64* %205, i64* %206, i32 %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_21
LBL_21:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %.pre-phi17.reload, { 1, 2, 0 }
uselistorder i64 %159, { 0, 1, 4, 3, 2, 5 }
uselistorder i32 %storemerge.reload, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 2, 0, 4, 3 }
uselistorder i32 %sv_5.0.reload, { 1, 0 }
uselistorder i32 %sv_1.0.reload, { 1, 0, 2 }
uselistorder i32 %sv_4.0.reload, { 1, 0, 2 }
uselistorder i32 %36, { 1, 2, 0, 3 }
uselistorder i32 %35, { 1, 2, 0 }
uselistorder i32 %34, { 2, 0, 1 }
uselistorder i32 %32, { 1, 3, 0, 2, 4 }
uselistorder i32* %31, { 1, 0, 3, 2, 4 }
uselistorder i32 %29, { 2, 0, 1, 3 }
uselistorder i32* %14, { 1, 0, 3, 2, 5, 4 }
uselistorder i32 %10, { 1, 0 }
uselistorder i32 %4, { 1, 3, 0, 5, 6, 4, 2, 7 }
uselistorder i32 %3, { 1, 2, 0 }
uselistorder i64 %2, { 19, 2, 6, 3, 1, 7, 4, 8, 5, 18, 9, 20, 21, 17, 10, 16, 22, 24, 0, 12, 11, 13, 14, 15, 23, 25 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 4, 5, 3, 1, 2 }
uselistorder i32* %sv_5.0.reg2mem, { 0, 4, 5, 3, 1, 2 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 4, 5, 3, 1, 2 }
uselistorder i32* %sv_4.0.reg2mem, { 0, 4, 5, 3, 1, 2 }
uselistorder i32* %sv_3.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32** %.pre-phi16.reg2mem, { 0, 3, 2, 1 }
uselistorder i32** %.pre-phi12.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 3, 2, 1 }
uselistorder i32** %sv_2.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %sv_1.1.reg2mem, { 0, 3, 2, 1 }
uselistorder i32** %.pre-phi21.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre-phi17.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 32, { 1, 0, 2, 3, 4 }
uselistorder i64 (i64)* @hpack_dht_defrag, { 2, 1, 0 }
uselistorder i64 24, { 6, 0, 1, 7, 2, 8, 3, 9, 4, 5, 10 }
uselistorder i64 12, { 12, 2, 3, 13, 4, 5, 6, 7, 0, 1, 8, 9, 10, 11, 14, 15 }
uselistorder i32 %arg3, { 1, 2, 3, 0 }
uselistorder i32* %arg1, { 1, 0, 2, 3 }
uselistorder label LBL_21, { 3, 0, 1, 2 }
uselistorder label LBL_11, { 2, 3, 4, 0, 1 }
} | 1 |
reposvul_c_test | extract_sockaddr_186 | extract_sockaddr | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.0.in.reg2mem = alloca i64*
%.pre-phi.reg2mem = alloca i8*
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i8*
%storemerge.in.reg2mem = alloca i8*
%0 = ptrtoint i64* %arg2 to i64
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%1 = bitcast i64* %arg2 to i8*
%2 = call i8* @strstr(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0))
%3 = ptrtoint i8* %2 to i64
%4 = icmp eq i8* %2, null
%5 = icmp eq i1 %4, false
%6 = add i64 %3, 2
%storemerge3 = select i1 %5, i64 %6, i64 %0
%7 = inttoptr i64 %storemerge3 to i8*
%8 = call i8* @strchr(i8* %7, i32 91)
%9 = call i8* @strchr(i8* %7, i32 93)
%10 = icmp ne i8* %8, null
%11 = icmp ult i8* %8, %9
%or.cond5 = icmp eq i1 %10, %11
br i1 %or.cond5, label LBL_1, label LBL_2
LBL_1:
%12 = call i8* @strchr(i8* %9, i32 58)
store i8* %12, i8** %storemerge.in.reg2mem
br label LBL_3
LBL_2:
%13 = call i8* @strchr(i8* %7, i32 58)
store i8* %13, i8** %storemerge.in.reg2mem
br label LBL_3
LBL_3:
%storemerge.in.reload = load i8*, i8** %storemerge.in.reg2mem
%14 = icmp eq i8* %storemerge.in.reload, null
br i1 %14, label LBL_6, label LBL_4
LBL_4:
%storemerge = ptrtoint i8* %storemerge.in.reload to i64
%15 = sub i64 %storemerge, %storemerge3
%16 = trunc i64 %15 to i32
%17 = call i32 @strlen(i8* %7)
%18 = sub i32 0, %16
%19 = sub i32 %18, 1
%20 = add i32 %17, %19
%21 = icmp eq i32 %20, 0
%22 = icmp slt i32 %20, 0
%23 = icmp eq i1 %22, false
%24 = icmp eq i1 %21, false
%25 = icmp eq i1 %23, %24
store i64 0, i64* %rax.0.reg2mem
br i1 %25, label LBL_5, label LBL_14
LBL_5:
%26 = add i64 %storemerge, 1
%27 = inttoptr i64 %26 to i8*
store i8* %27, i8** %sv_2.0.reg2mem
store i32 %20, i32* %sv_1.0.reg2mem
store i32 %16, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_6:
%28 = call i32 @strlen(i8* %7)
store i8* null, i8** %sv_2.0.reg2mem
store i32 0, i32* %sv_1.0.reg2mem
store i32 %28, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%29 = icmp eq i32 %sv_0.0.reload, 0
%30 = icmp slt i32 %sv_0.0.reload, 0
%31 = icmp eq i1 %30, false
%32 = icmp eq i1 %29, false
%33 = icmp eq i1 %31, %32
store i64 0, i64* %rax.0.reg2mem
br i1 %33, label LBL_8, label LBL_14
LBL_8:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_2.0.reload = load i8*, i8** %sv_2.0.reg2mem
%34 = icmp ult i32 %sv_0.0.reload, 256
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %34, label LBL_10, label LBL_9
LBL_9:
%35 = zext i32 %sv_0.0.reload to i64
%36 = call i64 @FUNC(i64 4, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0), i64 %35, i64 %storemerge3)
store i32 255, i32* %sv_0.1.reg2mem
br label LBL_10
LBL_10:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%37 = zext i32 %sv_0.1.reload to i64
%38 = bitcast i64* %sv_4 to i8*
%39 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %38, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i64 %37, i8* %7)
%40 = icmp eq i32 %sv_1.0.reload, 0
br i1 %40, label LBL_12, label LBL_11
LBL_11:
%41 = zext i32 %sv_1.0.reload to i64
%42 = bitcast i64* %sv_3 to i8*
%43 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %42, i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i64 %41, i8* %sv_2.0.reload)
store i8* %42, i8** %.pre-phi.reg2mem
store i64* %sv_3, i64** %rdi.0.in.reg2mem
br label LBL_13
LBL_12:
store i64 12344, i64* %sv_3, align 8
%.pre = bitcast i64* %sv_3 to i8*
store i8* %.pre, i8** %.pre-phi.reg2mem
store i64* %sv_4, i64** %rdi.0.in.reg2mem
br label LBL_13
LBL_13:
%44 = ptrtoint i64* %arg1 to i64
%rdi.0.in.reload = load i64*, i64** %rdi.0.in.reg2mem
%.pre-phi.reload = load i8*, i8** %.pre-phi.reg2mem
call void @free(i64* nonnull %rdi.0.in.reload)
%45 = call i8* @strdup(i8* nonnull %.pre-phi.reload)
%46 = ptrtoint i8* %45 to i64
store i64 %46, i64* %arg1, align 8
%47 = add i64 %44, 8
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = inttoptr i64 %49 to i64*
call void @free(i64* %50)
%51 = call i8* @strdup(i8* nonnull %38)
%52 = ptrtoint i8* %51 to i64
store i64 %52, i64* %48, align 8
store i64 1, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.0.reload, { 1, 0, 2, 3, 4 }
uselistorder i32 %20, { 0, 2, 1 }
uselistorder i8* %9, { 1, 0 }
uselistorder i8* %7, { 2, 3, 1, 0, 4, 5 }
uselistorder i64 %storemerge3, { 1, 0, 2 }
uselistorder i64* %sv_3, { 1, 3, 0, 2 }
uselistorder i8** %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i8** %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i8** %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64** %rdi.0.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i8* (i8*)* @strdup, { 1, 0 }
uselistorder i32 0, { 2, 3, 4, 0, 5, 6, 1 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i8* (i8*, i32)* @strchr, { 3, 2, 1, 0 }
uselistorder i1 false, { 2, 0, 3, 1, 4 }
uselistorder label LBL_14, { 2, 0, 1 }
} | 0 |
BinRealVul | ext4_bmap_10252 | ext4_bmap | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 1)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = urem i32 %4, 2
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = and i32 %4, -2
store i32 %7, i32* %3, align 4
br label LBL_2
LBL_2:
ret i64 %arg2
uselistorder i32 %4, { 1, 0 }
} | 0 |
BinRealVul | sdp_parse_fmtp_18821 | sdp_parse_fmtp | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rdi = alloca i64, align 8
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
store i64 %arg2, i64* %sv_2, align 8
%0 = call i64 @FUNC(i64* nonnull %sv_2)
%1 = load i64, i64* %sv_2, align 8
%2 = inttoptr i64 %1 to i8*
%3 = load i8, i8* %2, align 1
%4 = icmp eq i8 %3, 0
br i1 %4, label LBL_11, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = bitcast i64* %rdi to i32*
%7 = bitcast i64* %sv_1 to i8*
%8 = add i64 %5, 8
%9 = inttoptr i64 %8 to i64*
%10 = add i64 %5, 16
%11 = inttoptr i64 %10 to i32*
br label LBL_2
LBL_2:
%12 = call i64 @FUNC(i64* nonnull %sv_1, i64 256, i64* nonnull @gv_0, i64* nonnull %sv_2)
%13 = load i64, i64* %sv_2, align 8
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = icmp eq i8 %15, 61
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = add i64 %13, 1
store i64 %18, i64* %sv_2, align 8
br label LBL_4
LBL_4:
%19 = call i64 @FUNC(i64* nonnull %sv_0, i64 4096, i64* nonnull @gv_1, i64* nonnull %sv_2)
%20 = load i64, i64* %sv_2, align 8
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21, align 1
%23 = icmp eq i8 %22, 59
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%25 = add i64 %20, 1
store i64 %25, i64* %sv_2, align 8
br label LBL_6
LBL_6:
%26 = load i32, i32* %6, align 8
%27 = icmp eq i32 %26, 1
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_10, label LBL_7
LBL_7:
%29 = call i32 @strcmp(i8* nonnull %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_10, label LBL_8
LBL_8:
%32 = call i64 @FUNC(i64 0, i64* nonnull %sv_0)
%sext = mul i64 %32, 4294967296
%33 = ashr exact i64 %sext, 32
%34 = call i64 @FUNC(i64 %33)
store i64 %34, i64* %9, align 8
%35 = icmp eq i64 %34, 0
br i1 %35, label LBL_10, label LBL_9
LBL_9:
%36 = trunc i64 %32 to i32
store i32 %36, i32* %11, align 4
%37 = load i64, i64* %9, align 8
%38 = call i64 @FUNC(i64 %37, i64* nonnull %sv_0)
br label LBL_10
LBL_10:
%39 = call i64 @FUNC(i64* nonnull %sv_2)
%40 = load i64, i64* %sv_2, align 8
%41 = inttoptr i64 %40 to i8*
%42 = load i8, i8* %41, align 1
%43 = icmp eq i8 %42, 0
br i1 %43, label LBL_11, label LBL_2
LBL_11:
ret i64 0
uselistorder i64 %32, { 1, 0 }
uselistorder i64* %sv_2, { 9, 4, 5, 6, 2, 7, 8, 3, 0, 1, 10 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64 (i64, i64*)* @hex_to_data, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 (i64*, i64, i64*, i64*)* @get_word_sep, { 1, 0 }
uselistorder i64 256, { 1, 0 }
uselistorder i8 0, { 2, 0, 3, 4, 1 }
uselistorder i64 (i64*)* @skip_spaces, { 1, 0 }
uselistorder label LBL_10, { 1, 3, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | bdrv_delete_2840 | bdrv_delete | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_1, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%1 = add i64 %arg1, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_1, i64 0, i64 0), i32 43, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
%5 = call i64 @FUNC(i64 %arg1)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_6, label LBL_5
LBL_5:
call void @__assert_fail(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_1, i64 0, i64 0), i32 44, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0))
br label LBL_6
LBL_6:
%9 = add i64 %arg1, 16
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_8, label LBL_7
LBL_7:
call void @__assert_fail(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_1, i64 0, i64 0), i32 45, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0))
br label LBL_8
LBL_8:
%13 = call i64 @FUNC(i64 %arg1)
%14 = call i64 @FUNC(i64 %arg1)
%15 = call i64 @FUNC(i64 %arg1)
%16 = call i64 @FUNC(i64 %15)
%17 = call i64 @FUNC(i64 %arg1)
ret i64 %17
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 3, 2, 1, 0 }
uselistorder i64 %arg1, { 3, 2, 1, 0, 4, 5, 6, 7 }
} | 0 |
BinRealVul | add_dir_maybe_1619 | add_dir_maybe | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i64
%sv_0.0.ph.lcssa.reg2mem = alloca i64
%sv_0.0.ph5.reg2mem = alloca i64
%.in.reg2mem = alloca %dirent*
%.in7.reg2mem = alloca %dirent*
%0 = inttoptr i64 %arg1 to i8*
%1 = call %__dirstream* @opendir(i8* %0)
%2 = icmp eq %__dirstream* %1, null
store i64 %arg1, i64* %sv_0.1.reg2mem
br i1 %2, label LBL_8, label LBL_1
LBL_1:
%3 = call %dirent* @readdir(%__dirstream* nonnull %1)
%4 = icmp eq %dirent* %3, null
%5 = icmp eq i1 %4, false
store %dirent* %3, %dirent** %.in.reg2mem
store i64 %arg1, i64* %sv_0.0.ph5.reg2mem
store i64 %arg1, i64* %sv_0.0.ph.lcssa.reg2mem
br i1 %5, label LBL_2.lr.ph, label LBL_7
LBL_2:
%.in7.reload = load %dirent*, %dirent** %.in7.reg2mem
%6 = ptrtoint %dirent* %.in7.reload to i64
%7 = add i64 %6, 19
%8 = call i64 @FUNC(i64 %7, i64 4202512)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_3, label LBL_4
LBL_3:
%12 = call %dirent* @readdir(%__dirstream* nonnull %1)
%13 = icmp eq %dirent* %12, null
%14 = icmp eq i1 %13, false
store %dirent* %12, %dirent** %.in7.reg2mem
store i64 %sv_0.0.ph5.reload, i64* %sv_0.0.ph.lcssa.reg2mem
br i1 %14, label LBL_2, label LBL_7
LBL_4:
%15 = call i64 @FUNC(i64 %7, i64 ptrtoint ([3 x i8]* @gv_0 to i64))
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_3, label LBL_5
LBL_5:
%19 = call i64 @FUNC(i64 %6)
%20 = and i64 %19, 4294967295
%21 = call i64 @FUNC(i64 %sv_0.0.ph5.reload, i64 %7, i64 %20)
%22 = call %dirent* @readdir(%__dirstream* nonnull %1)
%23 = icmp eq %dirent* %22, null
%24 = icmp eq i1 %23, false
store %dirent* %22, %dirent** %.in.reg2mem
store i64 %21, i64* %sv_0.0.ph5.reg2mem
store i64 %21, i64* %sv_0.0.ph.lcssa.reg2mem
br i1 %24, label LBL_2.lr.ph, label LBL_7
LBL_6:
%sv_0.0.ph5.reload = load i64, i64* %sv_0.0.ph5.reg2mem
%.in.reload = load %dirent*, %dirent** %.in.reg2mem
store %dirent* %.in.reload, %dirent** %.in7.reg2mem
br label LBL_2
LBL_7:
%sv_0.0.ph.lcssa.reload = load i64, i64* %sv_0.0.ph.lcssa.reg2mem
%25 = call i32 @closedir(%__dirstream* nonnull %1)
store i64 %sv_0.0.ph.lcssa.reload, i64* %sv_0.1.reg2mem
br label LBL_8
LBL_8:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
ret i64 %sv_0.1.reload
uselistorder %__dirstream* %1, { 2, 1, 3, 0, 4 }
uselistorder %dirent** %.in7.reg2mem, { 2, 1, 0 }
uselistorder %dirent** %.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.ph5.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @streq, { 1, 0 }
uselistorder %dirent* null, { 1, 2, 0 }
uselistorder %dirent* (%__dirstream*)* @readdir, { 1, 2, 0 }
uselistorder i64 %arg1, { 1, 2, 0, 3 }
uselistorder label LBL_2.lr.ph, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | qmp_query_migrate_cache_size_2400 | qmp_query_migrate_cache_size | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
ret i64 %0
} | 0 |
BinRealVul | _disable_carbons_handler_17890 | _disable_carbons_handler | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0))
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %4)
%11 = call i64 @FUNC(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i64 %10, i64 %arg3, i64 %3, i64 %2, i64 %1)
%12 = call i64 @FUNC(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_2, i64 0, i64 0), i64 %10, i64 %arg3, i64 %3, i64 %2, i64 %1)
br label LBL_3
LBL_2:
%13 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0), i64 ptrtoint ([6 x i8]* @gv_0 to i64), i64 %arg3, i64 %3, i64 %2, i64 %1)
br label LBL_3
LBL_3:
ret i64 0
uselistorder i64 %3, { 2, 0, 1 }
uselistorder i64 %2, { 2, 0, 1 }
uselistorder i64 %1, { 2, 0, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @log_debug, { 1, 0 }
uselistorder i64 %arg3, { 2, 1, 0 }
} | 1 |
BinRealVul | read_line_15036 | read_line | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = inttoptr i64 %arg1 to %_IO_FILE*
%1 = call i32 (%_IO_FILE*, i8*, ...) @fscanf(%_IO_FILE* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64* %arg2, i64* nonnull %sv_0)
%2 = icmp eq i32 %1, -1
%3 = icmp eq i1 %2, false
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64* nonnull %sv_0)
store i64 %6, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | mcdc_14427 | mcdc | define i64 @FUNC(i64* %arg1, i16* %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.326.reg2mem = alloca i64
%sv_1.727.reg2mem = alloca i16*
%storemerge1928.reg2mem = alloca i32
%sv_0.229.reg2mem = alloca i64
%sv_1.530.reg2mem = alloca i16*
%storemerge1631.reg2mem = alloca i32
%sv_0.137.reg2mem = alloca i64
%sv_1.338.reg2mem = alloca i16*
%storemerge39.reg2mem = alloca i32
%sv_0.033.reg2mem = alloca i64
%sv_1.134.reg2mem = alloca i16*
%storemerge1335.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg3 to i32
%sext5 = mul i64 %arg4, 4294967296
%2 = ashr exact i64 %sext5, 32
%sext6 = mul i64 %arg5, 4294967296
%sext7 = mul i64 %arg6, 4294967296
%3 = ashr exact i64 %sext7, 32
%4 = trunc i64 %arg7 to i32
%5 = mul i32 %4, 65537
%6 = icmp eq i32 %1, 3
br i1 %6, label LBL_1, label LBL_3
LBL_1:
%7 = trunc i64 %2 to i32
%8 = icmp sgt i32 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_20
LBL_2:
%9 = and i64 %3, 4294967295
%10 = trunc i64 %3 to i32
%11 = icmp eq i32 %10, 0
%12 = ashr exact i64 %sext6, 31
store i32 0, i32* %storemerge1928.reg2mem
store i16* %arg2, i16** %sv_1.727.reg2mem
store i64 %0, i64* %sv_0.326.reg2mem
br label LBL_14
LBL_3:
%13 = icmp sgt i32 %1, 3
br i1 %13, label LBL_15, label LBL_4
LBL_4:
switch i32 %1, label LBL_15 [
i32 2, label LBL_9
i32 0, label LBL_7
i32 1, label LBL_5
]
LBL_5:
%14 = trunc i64 %2 to i32
%15 = icmp sgt i32 %14, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_6, label LBL_20
LBL_6:
%16 = and i64 %3, 4294967295
%17 = trunc i64 %3 to i32
%18 = icmp eq i32 %17, 0
%19 = ashr exact i64 %sext6, 31
store i32 0, i32* %storemerge39.reg2mem
store i16* %arg2, i16** %sv_1.338.reg2mem
store i64 %0, i64* %sv_0.137.reg2mem
br label LBL_12
LBL_7:
%20 = trunc i64 %2 to i32
%21 = icmp sgt i32 %20, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_8, label LBL_20
LBL_8:
%22 = trunc i64 %3 to i32
%23 = icmp eq i32 %22, 0
%24 = ashr exact i64 %sext6, 31
store i32 0, i32* %storemerge1335.reg2mem
store i16* %arg2, i16** %sv_1.134.reg2mem
store i64 %0, i64* %sv_0.033.reg2mem
br label LBL_11
LBL_9:
%25 = trunc i64 %2 to i32
%26 = icmp sgt i32 %25, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %26, label LBL_10, label LBL_20
LBL_10:
%27 = and i64 %3, 4294967295
%28 = trunc i64 %3 to i32
%29 = icmp eq i32 %28, 0
%30 = ashr exact i64 %sext6, 31
store i32 0, i32* %storemerge1631.reg2mem
store i16* %arg2, i16** %sv_1.530.reg2mem
store i64 %0, i64* %sv_0.229.reg2mem
br label LBL_13
LBL_11:
%sv_0.033.reload = load i64, i64* %sv_0.033.reg2mem
%sv_1.134.reload = load i16*, i16** %sv_1.134.reg2mem
%storemerge1335.reload = load i32, i32* %storemerge1335.reg2mem
%31 = load i16, i16* %sv_1.134.reload, align 2
%32 = zext i16 %31 to i64
%33 = mul nsw i64 %3, %32
%34 = trunc i64 %33 to i32
%35 = add i32 %5, %34
%36 = trunc i32 %35 to i16
%37 = inttoptr i64 %sv_0.033.reload to i16*
store i16 %36, i16* %37, align 2
%38 = ptrtoint i16* %sv_1.134.reload to i64
%39 = add i64 %24, %38
%40 = inttoptr i64 %39 to i16*
%sv_1.0 = select i1 %23, i16* %sv_1.134.reload, i16* %40
%41 = add i64 %sv_0.033.reload, %24
%42 = add nuw nsw i32 %storemerge1335.reload, 1
%exitcond50 = icmp eq i32 %42, %20
store i32 %42, i32* %storemerge1335.reg2mem
store i16* %sv_1.0, i16** %sv_1.134.reg2mem
store i64 %41, i64* %sv_0.033.reg2mem
br i1 %exitcond50, label LBL_18, label LBL_11
LBL_12:
%sv_0.137.reload = load i64, i64* %sv_0.137.reg2mem
%sv_1.338.reload = load i16*, i16** %sv_1.338.reg2mem
%storemerge39.reload = load i32, i32* %storemerge39.reg2mem
%43 = ptrtoint i16* %sv_1.338.reload to i64
%44 = call i64 @FUNC(i64 %sv_0.137.reload, i64 %43, i64 %16, i32 %5)
%45 = add i64 %19, %43
%46 = inttoptr i64 %45 to i16*
%sv_1.2 = select i1 %18, i16* %sv_1.338.reload, i16* %46
%47 = add i64 %sv_0.137.reload, %19
%48 = add nuw nsw i32 %storemerge39.reload, 1
%exitcond51 = icmp eq i32 %48, %14
store i32 %48, i32* %storemerge39.reg2mem
store i16* %sv_1.2, i16** %sv_1.338.reg2mem
store i64 %47, i64* %sv_0.137.reg2mem
br i1 %exitcond51, label LBL_19, label LBL_12
LBL_13:
%sv_0.229.reload = load i64, i64* %sv_0.229.reg2mem
%sv_1.530.reload = load i16*, i16** %sv_1.530.reg2mem
%storemerge1631.reload = load i32, i32* %storemerge1631.reg2mem
%49 = ptrtoint i16* %sv_1.530.reload to i64
%50 = call i64 @FUNC(i64 %sv_0.229.reload, i64 %49, i64 %27, i32 %5)
%51 = add i64 %49, 4
%52 = add i64 %sv_0.229.reload, 4
%53 = call i64 @FUNC(i64 %52, i64 %51, i64 %27, i32 %5)
%54 = add i64 %30, %49
%55 = inttoptr i64 %54 to i16*
%sv_1.4 = select i1 %29, i16* %sv_1.530.reload, i16* %55
%56 = add i64 %sv_0.229.reload, %30
%57 = add nuw nsw i32 %storemerge1631.reload, 1
%exitcond49 = icmp eq i32 %57, %25
store i32 %57, i32* %storemerge1631.reg2mem
store i16* %sv_1.4, i16** %sv_1.530.reg2mem
store i64 %56, i64* %sv_0.229.reg2mem
br i1 %exitcond49, label LBL_17, label LBL_13
LBL_14:
%sv_0.326.reload = load i64, i64* %sv_0.326.reg2mem
%sv_1.727.reload = load i16*, i16** %sv_1.727.reg2mem
%storemerge1928.reload = load i32, i32* %storemerge1928.reg2mem
%58 = ptrtoint i16* %sv_1.727.reload to i64
%59 = call i64 @FUNC(i64 %sv_0.326.reload, i64 %58, i64 %9, i32 %5)
%60 = add i64 %58, 4
%61 = add i64 %sv_0.326.reload, 4
%62 = call i64 @FUNC(i64 %61, i64 %60, i64 %9, i32 %5)
%63 = add i64 %58, 8
%64 = add i64 %sv_0.326.reload, 8
%65 = call i64 @FUNC(i64 %64, i64 %63, i64 %9, i32 %5)
%66 = add i64 %58, 12
%67 = add i64 %sv_0.326.reload, 12
%68 = call i64 @FUNC(i64 %67, i64 %66, i64 %9, i32 %5)
%69 = add i64 %12, %58
%70 = inttoptr i64 %69 to i16*
%sv_1.6 = select i1 %11, i16* %sv_1.727.reload, i16* %70
%71 = add i64 %sv_0.326.reload, %12
%72 = add nuw nsw i32 %storemerge1928.reload, 1
%exitcond = icmp eq i32 %72, %7
store i32 %72, i32* %storemerge1928.reg2mem
store i16* %sv_1.6, i16** %sv_1.727.reg2mem
store i64 %71, i64* %sv_0.326.reg2mem
br i1 %exitcond, label LBL_16, label LBL_14
LBL_15:
call void @__assert_fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_1, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint (i32* @0 to i64), i64* %rax.0.reg2mem
br label LBL_20
LBL_16:
%73 = and i64 %2, 4294967295
store i64 %73, i64* %rax.0.reg2mem
br label LBL_20
LBL_17:
%74 = and i64 %2, 4294967295
store i64 %74, i64* %rax.0.reg2mem
br label LBL_20
LBL_18:
%75 = and i64 %2, 4294967295
store i64 %75, i64* %rax.0.reg2mem
br label LBL_20
LBL_19:
%76 = and i64 %2, 4294967295
store i64 %76, i64* %rax.0.reg2mem
br label LBL_20
LBL_20:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.326.reload, { 4, 0, 1, 3, 2 }
uselistorder i64 %sv_0.229.reload, { 2, 1, 0 }
uselistorder i64 %sv_0.137.reload, { 1, 0 }
uselistorder i64 %sv_0.033.reload, { 1, 0 }
uselistorder i64 %30, { 1, 0 }
uselistorder i64 %24, { 1, 0 }
uselistorder i64 %19, { 1, 0 }
uselistorder i64 %12, { 1, 0 }
uselistorder i32 %5, { 4, 3, 1, 2, 5, 6, 7, 0 }
uselistorder i64 %3, { 0, 4, 5, 3, 1, 2, 6, 7 }
uselistorder i64 %sext6, { 2, 1, 0, 3 }
uselistorder i64 %2, { 3, 2, 1, 0, 6, 5, 4, 7 }
uselistorder i64 %0, { 1, 3, 2, 0 }
uselistorder i32* %storemerge1335.reg2mem, { 1, 0, 2 }
uselistorder i16** %sv_1.134.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.033.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge39.reg2mem, { 1, 0, 2 }
uselistorder i16** %sv_1.338.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.137.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1631.reg2mem, { 1, 0, 2 }
uselistorder i16** %sv_1.530.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.229.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1928.reg2mem, { 1, 0, 2 }
uselistorder i16** %sv_1.727.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.326.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 4, 6, 8, 9, 5, 3, 1, 7 }
uselistorder i64 (i64, i64, i64, i32)* @LE_CENTRIC_MUL, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 31, { 1, 2, 3, 0 }
uselistorder i64 4294967295, { 3, 2, 1, 0, 5, 6, 4 }
uselistorder i32 0, { 1, 10, 5, 3, 12, 6, 2, 11, 7, 8, 0, 9, 4 }
uselistorder i32 3, { 1, 0 }
uselistorder i16* %arg2, { 1, 3, 2, 0 }
uselistorder label LBL_20, { 1, 3, 5, 7, 8, 4, 2, 0, 6 }
} | 1 |
BinRealVul | s_mp_mul_high_digs_fast_6066 | s_mp_mul_high_digs_fast | define i64 @FUNC(i32* %arg1, i32* %arg2, i64* %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge.lcssa.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i64
%.reg2mem35 = alloca i32
%sv_0.011.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_1.0.lcssa.reg2mem = alloca i32
%sv_1.014.reg2mem = alloca i32
%sv_2.0.in15.reg2mem = alloca i64
%sv_3.0.in16.reg2mem = alloca i64
%storemerge817.reg2mem = alloca i32
%sv_1.119.reg2mem = alloca i32
%indvars.iv23.reg2mem = alloca i64
%.reg2mem33 = alloca i32
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%rsi = alloca i64, align 8
%2 = load i64, i64* %0
%rdx = alloca i64, align 8
%3 = load i64, i64* %0
%sv_4 = alloca i64, align 8
%4 = icmp slt i32 %arg4, 0
%5 = icmp eq i1 %4, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_15
LBL_1:
%6 = ptrtoint i64* %arg3 to i64
%7 = trunc i64 %1 to i32
%8 = trunc i64 %2 to i32
%9 = add i32 %8, %7
%10 = add i64 %6, 4
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = zext i32 %12 to i64
%14 = sext i32 %9 to i64
%15 = icmp sgt i64 %14, %13
br i1 %15, label LBL_2, label LBL_4
LBL_2:
%16 = zext i32 %9 to i64
%17 = call i64 @FUNC(i64 %6, i64 %16)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_4, label LBL_3
LBL_3:
%20 = and i64 %17, 4294967295
store i64 %20, i64* %rax.0.reg2mem
br label LBL_15
LBL_4:
%21 = icmp sgt i32 %9, %arg4
br i1 %21, label LBL_6, label LBL_5
LBL_5:
%22 = trunc i64 %3 to i32
%.pre29 = sext i32 %arg4 to i64
%23 = bitcast i64* %arg3 to i32*
store i32 %9, i32* %23, align 4
%24 = add i64 %6, 8
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = mul i64 %.pre29, 4
%28 = add i64 %26, %27
store i32 %22, i32* %.reg2mem35
store i64 %28, i64* %sv_0.0.lcssa.reg2mem
store i32 %arg4, i32* %storemerge.lcssa.reg2mem
br label LBL_14
LBL_6:
%29 = ptrtoint i64* %sv_4 to i64
%30 = bitcast i64* %rdi to i32*
%31 = bitcast i64* %rsi to i32*
%32 = ptrtoint i32* %arg1 to i64
%33 = add i64 %32, 8
%34 = inttoptr i64 %33 to i64*
%35 = ptrtoint i32* %arg2 to i64
%36 = add i64 %35, 8
%37 = inttoptr i64 %36 to i64*
%38 = add i64 %29, -464
%39 = sext i32 %arg4 to i64
store i32 %7, i32* %.reg2mem
store i32 %8, i32* %.reg2mem33
store i64 %39, i64* %indvars.iv23.reg2mem
store i32 0, i32* %sv_1.119.reg2mem
br label LBL_7
LBL_7:
%sv_1.119.reload = load i32, i32* %sv_1.119.reg2mem
%indvars.iv23.reload = load i64, i64* %indvars.iv23.reg2mem
%.reload34 = load i32, i32* %.reg2mem33
%.reload = load i32, i32* %.reg2mem
%40 = zext i32 %.reload34 to i64
%41 = icmp slt i64 %indvars.iv23.reload, %40
%42 = add i32 %.reload34, -1
%43 = trunc i64 %indvars.iv23.reload to i32
%storemerge10.in = select i1 %41, i32 %43, i32 %42
%44 = sub i32 %43, %storemerge10.in
%45 = sub i32 %.reload, %44
%46 = zext i32 %45 to i64
%47 = sext i32 %storemerge10.in to i64
%48 = icmp slt i64 %47, %46
%49 = add i32 %storemerge10.in, 1
%storemerge9.in = select i1 %48, i32 %49, i32 %45
%50 = icmp sgt i32 %storemerge9.in, 0
store i32 %sv_1.119.reload, i32* %sv_1.0.lcssa.reg2mem
br i1 %50, label LBL_8, label LBL_10
LBL_8:
%storemerge10 = zext i32 %storemerge10.in to i64
%sext = mul i64 %storemerge10, 4294967296
%51 = ashr exact i64 %sext, 30
%52 = load i64, i64* %37, align 8
%53 = add i64 %52, %51
%54 = sext i32 %44 to i64
%55 = mul i64 %54, 4
%56 = load i64, i64* %34, align 8
%57 = add i64 %56, %55
store i32 0, i32* %storemerge817.reg2mem
store i64 %53, i64* %sv_3.0.in16.reg2mem
store i64 %57, i64* %sv_2.0.in15.reg2mem
store i32 %sv_1.119.reload, i32* %sv_1.014.reg2mem
br label LBL_9
LBL_9:
%sv_1.014.reload = load i32, i32* %sv_1.014.reg2mem
%sv_2.0.in15.reload = load i64, i64* %sv_2.0.in15.reg2mem
%sv_3.0.in16.reload = load i64, i64* %sv_3.0.in16.reg2mem
%storemerge817.reload = load i32, i32* %storemerge817.reg2mem
%sv_3.0 = inttoptr i64 %sv_3.0.in16.reload to i32*
%sv_2.0 = inttoptr i64 %sv_2.0.in15.reload to i32*
%58 = add i64 %sv_2.0.in15.reload, 4
%59 = load i32, i32* %sv_2.0, align 4
%60 = add i64 %sv_3.0.in16.reload, -4
%61 = load i32, i32* %sv_3.0, align 4
%62 = mul i32 %61, %59
%63 = add i32 %62, %sv_1.014.reload
%64 = add nuw nsw i32 %storemerge817.reload, 1
%exitcond = icmp eq i32 %64, %storemerge9.in
store i32 %64, i32* %storemerge817.reg2mem
store i64 %60, i64* %sv_3.0.in16.reg2mem
store i64 %58, i64* %sv_2.0.in15.reg2mem
store i32 %63, i32* %sv_1.014.reg2mem
store i32 %63, i32* %sv_1.0.lcssa.reg2mem
br i1 %exitcond, label LBL_10, label LBL_9
LBL_10:
%sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem
%65 = urem i32 %sv_1.0.lcssa.reload, 268435456
%66 = mul i64 %indvars.iv23.reload, 4
%67 = add i64 %66, %38
%68 = inttoptr i64 %67 to i32*
store i32 %65, i32* %68, align 4
%indvars.iv.next24 = add nsw i64 %indvars.iv23.reload, 1
%exitcond25 = icmp eq i64 %indvars.iv.next24, %14
br i1 %exitcond25, label LBL_12, label LBL_10.LBL_7_crit_edge
LBL_11:
%69 = ashr i32 %sv_1.0.lcssa.reload, 28
%.pre = load i32, i32* %31, align 8
%.pre26 = load i32, i32* %30, align 8
store i32 %.pre26, i32* %.reg2mem
store i32 %.pre, i32* %.reg2mem33
store i64 %indvars.iv.next24, i64* %indvars.iv23.reg2mem
store i32 %69, i32* %sv_1.119.reg2mem
br label LBL_7
LBL_12:
%.phi.trans.insert = bitcast i64* %rdx to i32*
%.pre27 = load i32, i32* %.phi.trans.insert, align 8
%70 = bitcast i64* %arg3 to i32*
store i32 %9, i32* %70, align 4
%71 = add i64 %6, 8
%72 = inttoptr i64 %71 to i64*
%73 = load i64, i64* %72, align 8
%74 = mul i64 %39, 4
%75 = add i64 %73, %74
store i64 %39, i64* %indvars.iv.reg2mem
store i64 %75, i64* %sv_0.011.reg2mem
br label LBL_13
LBL_13:
%sv_0.011.reload = load i64, i64* %sv_0.011.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%76 = add i64 %sv_0.011.reload, 4
%77 = mul i64 %indvars.iv.reload, 4
%78 = add i64 %77, %38
%79 = inttoptr i64 %78 to i32*
%80 = load i32, i32* %79, align 4
%81 = inttoptr i64 %sv_0.011.reload to i32*
store i32 %80, i32* %81, align 4
%82 = trunc i64 %indvars.iv.reload to i32
%83 = add i32 %82, 1
%84 = icmp slt i32 %83, %9
%indvars.iv.next = add nsw i64 %indvars.iv.reload, 1
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %76, i64* %sv_0.011.reg2mem
store i32 %.pre27, i32* %.reg2mem35
store i64 %76, i64* %sv_0.0.lcssa.reg2mem
store i32 %9, i32* %storemerge.lcssa.reg2mem
br i1 %84, label LBL_13, label LBL_14
LBL_14:
%storemerge.lcssa.reload = load i32, i32* %storemerge.lcssa.reg2mem
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
%.reload36 = load i32, i32* %.reg2mem35
%85 = sub i32 %.reload36, %storemerge.lcssa.reload
%86 = mul i32 %85, 4
%87 = inttoptr i64 %sv_0.0.lcssa.reload to i64*
%88 = call i64* @memset(i64* %87, i32 0, i32 %86)
%89 = call i64 @FUNC(i64 %6)
store i64 0, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %storemerge10.in, { 1, 0, 3, 2 }
uselistorder i64 %indvars.iv23.reload, { 0, 3, 1, 2 }
uselistorder i32 %sv_1.119.reload, { 1, 0 }
uselistorder i64 %39, { 0, 2, 1 }
uselistorder i32 %9, { 0, 3, 2, 1, 4, 5, 6 }
uselistorder i64 %6, { 1, 2, 0, 4, 3 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem33, { 1, 0, 2 }
uselistorder i64* %indvars.iv23.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.119.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge817.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.0.in16.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.0.in15.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.014.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.011.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 -4, { 1, 0 }
uselistorder i64 8, { 3, 1, 2, 0, 4, 5 }
uselistorder i32 %arg4, { 2, 0, 1, 3, 4 }
uselistorder i64* %arg3, { 1, 0, 2 }
uselistorder label LBL_15, { 1, 2, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | ubi_read_volume_table_13146 | ubi_read_volume_table | define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.pre-phi4.reg2mem = alloca i64*
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%rsi = alloca i64, align 8
%4 = load i64, i64* %0
%5 = ptrtoint i32* %arg1 to i64
%6 = call i64 @FUNC(i64 4044800875)
%7 = trunc i64 %6 to i32
store i32 %7, i32* inttoptr (i64 4210764 to i32*), align 4
%8 = trunc i64 %3 to i32
%9 = add i32 %8, 63
%10 = icmp slt i32 %8, 0
%11 = select i1 %10, i32 %9, i32 %8
%12 = ashr i32 %11, 6
%13 = add i64 %5, 4
%14 = inttoptr i64 %13 to i32*
%15 = icmp slt i32 %11, 8256
%spec.store.select = select i1 %15, i32 %12, i32 128
store i32 %spec.store.select, i32* %14, align 4
%16 = mul i32 %spec.store.select, 64
%17 = add i64 %5, 8
%18 = inttoptr i64 %17 to i32*
store i32 %16, i32* %18, align 4
%19 = add i64 %5, 12
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i32 %16, -1
%23 = add i32 %22, %21
%24 = sub i32 0, %21
%25 = and i32 %23, %24
store i32 %25, i32* %18, align 4
%26 = ptrtoint i32* %arg2 to i64
%27 = call i64 @FUNC(i64 %26, i64 1)
%28 = icmp eq i64 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_4, label LBL_1
LBL_1:
%30 = bitcast i64* %rsi to i32*
%31 = load i32, i32* %30, align 8
%32 = icmp eq i32 %31, 0
br i1 %32, label LBL_3, label LBL_2
LBL_2:
%33 = call i64 @FUNC(i64 %5, i64 %26)
%34 = add i64 %5, 24
%35 = inttoptr i64 %34 to i64*
store i64 %33, i64* %35, align 8
%36 = icmp ult i64 %33, -1000
store i64* %35, i64** %.pre-phi4.reg2mem
store i64 %33, i64* %rax.0.reg2mem
br i1 %36, label LBL_7, label LBL_10
LBL_3:
%37 = zext i32 %25 to i64
%38 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_0, i64 0, i64 0), i64 %37, i64 %4, i64 %2, i64 %1)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_10
LBL_4:
%39 = inttoptr i64 %27 to i32*
%40 = load i32, i32* %39, align 4
%41 = icmp slt i32 %40, 11
br i1 %41, label LBL_6, label LBL_5
LBL_5:
%42 = zext i32 %40 to i64
%43 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_1, i64 0, i64 0), i64 %42, i64 %4, i64 %2, i64 %1)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_10
LBL_6:
%44 = call i64 @FUNC(i64 %5, i64 %26, i64 %27)
%45 = add i64 %5, 24
%46 = inttoptr i64 %45 to i64*
store i64 %44, i64* %46, align 8
%47 = icmp ult i64 %44, -1000
store i64* %46, i64** %.pre-phi4.reg2mem
store i64 %44, i64* %rax.0.reg2mem
br i1 %47, label LBL_7, label LBL_10
LBL_7:
%.pre-phi4.reload = load i64*, i64** %.pre-phi4.reg2mem
%48 = add i64 %5, 16
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = add i64 %5, 20
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = sub i32 %50, %53
%55 = add i64 %5, 32
%56 = inttoptr i64 %55 to i32*
store i32 %54, i32* %56, align 4
%57 = load i64, i64* %.pre-phi4.reload, align 8
%58 = call i64 @FUNC(i64 %5, i64 %26, i64 %57)
%59 = trunc i64 %58 to i32
%60 = icmp eq i32 %59, 0
%61 = icmp eq i1 %60, false
store i64 %58, i64* %sv_0.0.reg2mem
br i1 %61, label LBL_9, label LBL_8
LBL_8:
%62 = call i64 @FUNC(i64 %5, i64 %26)
%63 = trunc i64 %62 to i32
%64 = icmp eq i32 %63, 0
%65 = icmp eq i1 %64, false
store i64 %62, i64* %sv_0.0.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %65, label LBL_9, label LBL_10
LBL_9:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%66 = load i64, i64* %.pre-phi4.reload, align 8
%67 = call i64 @FUNC(i64 %66)
%68 = call i64 @FUNC(i64 %5)
%69 = and i64 %sv_0.0.reload, 4294967295
store i64 %69, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %26, { 1, 2, 3, 0, 4 }
uselistorder i32 %25, { 1, 0 }
uselistorder i32 %21, { 1, 0 }
uselistorder i32 %16, { 1, 0 }
uselistorder i32 %8, { 2, 1, 0 }
uselistorder i64 %5, { 4, 3, 5, 8, 7, 6, 10, 11, 9, 2, 0, 1, 12, 13, 14 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64** %.pre-phi4.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 1, 2, 5, 4, 3 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 4294967274, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @ubi_err, { 1, 0 }
uselistorder label LBL_10, { 3, 0, 1, 4, 5, 2 }
} | 1 |
BinRealVul | cap_vm_enough_memory_8722 | cap_vm_enough_memory | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC()
%2 = call i64 @FUNC(i64 %1, i64* nonnull @gv_0, i64 0, i64 0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%spec.select = zext i1 %4 to i32
%5 = call i64 @FUNC(i64 %0, i64 %arg2, i32 %spec.select)
ret i64 %5
} | 0 |
BinRealVul | xps_begin_opacity_4157 | xps_begin_opacity | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64 %arg4, i64* %arg5, i64 %arg6, i64* %arg7) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.1.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.3.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%sv_2 = alloca i64, align 8
%sv_3 = alloca i32, align 4
%2 = icmp eq i64 %arg6, 0
%3 = icmp eq i64* %arg7, null
%or.cond = icmp eq i1 %2, %3
br i1 %or.cond, label LBL_13, label LBL_1
LBL_1:
%4 = call i128 @FUNC(i32 1065353216)
%5 = call i64 @__asm_movss.1(i128 %4)
%6 = trunc i64 %5 to i32
store i32 %6, i32* %sv_0.0.reg2mem
br i1 %2, label LBL_3, label LBL_2
LBL_2:
%7 = call i128 @FUNC(i64 %arg6)
%8 = call i32 @FUNC(i128 %7)
store i32 %8, i32* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%9 = ptrtoint i64* %arg7 to i64
%10 = ptrtoint i64* %arg1 to i64
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
store i64 %9, i64* %sv_1.0.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.3.reg2mem
br i1 %3, label LBL_9, label LBL_4
LBL_4:
%11 = call i64 @FUNC(i64 %9)
%12 = inttoptr i64 %11 to i8*
%13 = call i32 @strcmp(i8* %12, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 %9, i64* %sv_1.0.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.3.reg2mem
br i1 %15, label LBL_9, label LBL_5
LBL_5:
%16 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0))
%17 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0))
%18 = icmp eq i64 %16, 0
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %18, label LBL_7, label LBL_6
LBL_6:
%19 = call i128 @FUNC(i64 %16)
%20 = call i128 @FUNC(i32 %sv_0.0.reload)
%21 = call i128 @FUNC(i128 %19, i128 %20)
%22 = call i64 @__asm_movss.1(i128 %21)
%23 = trunc i64 %22 to i32
store i32 %23, i32* %sv_0.1.reg2mem
br label LBL_7
LBL_7:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%24 = icmp eq i64 %17, 0
store i64 0, i64* %sv_1.0.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.3.reg2mem
br i1 %24, label LBL_9, label LBL_8
LBL_8:
%25 = bitcast i32* %sv_3 to i64*
%26 = call i64 @FUNC(i64 %10, i64 %arg4, i64 %17, i64* nonnull %sv_2, i64* nonnull %25)
%27 = load i32, i32* %sv_3, align 4
%28 = call i128 @FUNC(i32 %27)
%29 = call i128 @FUNC(i32 %sv_0.1.reload)
%30 = call i128 @FUNC(i128 %28, i128 %29)
%31 = call i64 @__asm_movss.1(i128 %30)
%32 = trunc i64 %31 to i32
store i64 0, i64* %sv_1.0.reg2mem
store i32 %32, i32* %sv_0.3.reg2mem
br label LBL_9
LBL_9:
%33 = trunc i64 %1 to i32
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%34 = add i32 %33, 1
%35 = zext i32 %34 to i64
%36 = add i64 %10, 4
%37 = call i64 @FUNC(i64 %36)
%38 = icmp sgt i64 %37, %35
store i64 %37, i64* %rax.0.reg2mem
br i1 %38, label LBL_10, label LBL_11
LBL_10:
%sv_0.3.reload = load i32, i32* %sv_0.3.reg2mem
%39 = bitcast i64* %rdi to i32*
%sext = mul i64 %1, 4294967296
%40 = ashr exact i64 %sext, 30
%41 = add i64 %40, %36
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = call i128 @FUNC(i32 %43)
%45 = call i128 @__asm_mulss.2(i128 %44, i32 %sv_0.3.reload)
%46 = sext i32 %34 to i64
%47 = call i64 @__asm_movss.1(i128 %45)
%48 = mul i64 %46, 4
%49 = add i64 %48, %36
%50 = trunc i64 %47 to i32
%51 = inttoptr i64 %49 to i32*
store i32 %50, i32* %51, align 4
%52 = load i32, i32* %39, align 8
%53 = add i32 %52, 1
%54 = bitcast i64* %arg1 to i32*
store i32 %53, i32* %54, align 4
store i64 %10, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%55 = icmp eq i64 %sv_1.0.reload, 0
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %55, label LBL_13, label LBL_12
LBL_12:
%56 = ptrtoint i64* %arg5 to i64
%57 = ptrtoint i64* %arg3 to i64
%58 = ptrtoint i64* %arg2 to i64
%59 = add i64 %10, 48
%60 = inttoptr i64 %59 to i64*
%61 = load i64, i64* %60, align 8
%62 = call i64 @FUNC(i64 %61, i64 %57, i64 0, i64 0, i64 0)
%63 = call i64 @FUNC(i64 %10, i64 %58, i64 %57, i64 %arg4, i64 %56, i64 %sv_1.0.reload)
%64 = load i64, i64* %60, align 8
%65 = call i64 @FUNC(i64 %64)
store i64 %65, i64* %rax.1.reg2mem
br label LBL_13
LBL_13:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %57, { 1, 0 }
uselistorder i64 %sv_1.0.reload, { 1, 0 }
uselistorder i32 %sv_0.1.reload, { 1, 0 }
uselistorder i64 %17, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 3, 2, 0, 1 }
uselistorder i64 %10, { 2, 3, 0, 4, 1 }
uselistorder i64 %9, { 3, 2, 0, 4, 1 }
uselistorder i1 %3, { 1, 0 }
uselistorder i1 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i32* %sv_0.3.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i8*)* @fz_xml_att, { 1, 0 }
uselistorder i128 (i64)* @fz_atof, { 1, 0 }
uselistorder i64* %arg7, { 1, 0 }
uselistorder i64 %arg4, { 1, 0 }
uselistorder label LBL_13, { 1, 2, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_9, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | ff_vorbis_floor1_render_list_17538 | ff_vorbis_floor1_render_list | define i64 @FUNC(i32* %arg1, i64 %arg2, i16* %arg3, i32* %arg4, i64 %arg5, i64* %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_1.2.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_1.114.reg2mem = alloca i32
%sv_0.115.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg6 to i64
%sext = mul i64 %arg7, 4294967296
%3 = ashr exact i64 %sext, 32
%sext9 = mul i64 %arg5, 4294967296
%4 = ashr exact i64 %sext9, 32
%5 = urem i64 %1, 65536
%6 = mul nsw i64 %5, %4
%7 = trunc i64 %6 to i32
%sext11 = mul i32 %7, 16777216
%8 = ashr exact i32 %sext11, 24
%9 = trunc i64 %arg2 to i32
%10 = icmp sgt i32 %9, 1
br i1 %10, label LBL_2, label LBL_0.LBL_8_crit_edge
LBL_1:
%.pre = trunc i64 %3 to i32
store i32 %.pre, i32* %.pre-phi.reg2mem
store i32 0, i32* %sv_1.2.reg2mem
store i32 %8, i32* %sv_0.2.reg2mem
br label LBL_8
LBL_2:
%11 = ptrtoint i32* %arg1 to i64
%12 = ptrtoint i32* %arg4 to i64
%13 = add i64 %11, 4
%14 = ptrtoint i16* %arg3 to i64
%15 = trunc i64 %3 to i32
%sext22 = mul i64 %arg2, 4294967296
%16 = ashr exact i64 %sext22, 32
store i64 1, i64* %indvars.iv.reg2mem
store i32 %8, i32* %sv_0.115.reg2mem
store i32 0, i32* %sv_1.114.reg2mem
br label LBL_3
LBL_3:
%sv_1.114.reload = load i32, i32* %sv_1.114.reg2mem
%sv_0.115.reload = load i32, i32* %sv_0.115.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%17 = mul i64 %indvars.iv.reload, 8
%18 = add i64 %17, %11
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = sext i32 %20 to i64
%22 = mul i64 %21, 4
%23 = add i64 %22, %12
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = icmp eq i32 %25, 0
store i32 %sv_1.114.reload, i32* %sv_1.0.reg2mem
store i32 %sv_0.115.reload, i32* %sv_0.0.reg2mem
br i1 %26, label LBL_7, label LBL_4
LBL_4:
%27 = mul i64 %21, 8
%28 = add i64 %13, %27
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = mul i64 %21, 2
%32 = add i64 %31, %14
%33 = inttoptr i64 %32 to i16*
%34 = load i16, i16* %33, align 2
%35 = zext i16 %34 to i64
%36 = mul nsw i64 %4, %35
%37 = icmp slt i32 %sv_1.114.reload, %15
br i1 %37, label LBL_5, label LBL_6
LBL_5:
%38 = urem i64 %36, 256
%39 = sub i32 %15, %30
%40 = xor i32 %30, %15
%41 = xor i32 %39, %15
%42 = and i32 %41, %40
%43 = icmp slt i32 %42, 0
%44 = icmp eq i32 %39, 0
%45 = icmp slt i32 %39, 0
%46 = icmp eq i1 %45, %43
%47 = icmp eq i1 %44, false
%48 = icmp eq i1 %46, %47
%49 = select i1 %48, i32 %30, i32 %15
%50 = trunc i32 %sv_0.115.reload to i8
%51 = zext i32 %sv_1.114.reload to i64
%52 = call i64 @FUNC(i64 %51, i8 %50, i32 %49, i64 %38, i64 %2)
br label LBL_6
LBL_6:
%53 = trunc i64 %36 to i32
%sext13 = mul i32 %53, 16777216
%54 = ashr exact i32 %sext13, 24
store i32 %30, i32* %sv_1.0.reg2mem
store i32 %54, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%55 = icmp slt i32 %sv_1.0.reload, %15
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%56 = icmp slt i64 %indvars.iv.next, %16
%or.cond = icmp eq i1 %56, %55
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.115.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.114.reg2mem
store i32 %15, i32* %.pre-phi.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.2.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
br i1 %or.cond, label LBL_3, label LBL_8
LBL_8:
%sv_1.2.reload = load i32, i32* %sv_1.2.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%57 = zext i32 %sv_1.2.reload to i64
%58 = icmp slt i32 %sv_1.2.reload, %.pre-phi.reload
store i64 %57, i64* %rax.0.reg2mem
br i1 %58, label LBL_9, label LBL_10
LBL_9:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%59 = trunc i32 %sv_0.2.reload to i8
%60 = urem i32 %sv_0.2.reload, 256
%61 = zext i32 %60 to i64
%62 = call i64 @FUNC(i64 %57, i8 %59, i32 %.pre-phi.reload, i64 %61, i64 %2)
store i64 %62, 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.2.reload, { 1, 0 }
uselistorder i64 %57, { 1, 0 }
uselistorder i32 %sv_1.0.reload, { 0, 2, 1 }
uselistorder i32 %39, { 1, 2, 0 }
uselistorder i64 %36, { 1, 0 }
uselistorder i32 %30, { 0, 3, 1, 2 }
uselistorder i32 %sv_0.115.reload, { 1, 0 }
uselistorder i32 %sv_1.114.reload, { 2, 1, 0 }
uselistorder i32 %15, { 0, 3, 4, 1, 2, 5, 6 }
uselistorder i32 %8, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.115.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.114.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i8, i32, i64, i64)* @render_line, { 1, 0 }
uselistorder i64 32, { 0, 2, 3, 4, 1 }
uselistorder i64 4294967296, { 0, 1, 2, 4, 3 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | init_fs_pin_19234 | init_fs_pin | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = call i64 @FUNC(i64 %1)
store i64 %arg2, i64* %arg1, align 8
ret i64 %0
} | 1 |
BinRealVul | xhci_er_reset_2096 | xhci_er_reset | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%sext = mul i64 %arg2, 4294967296
%5 = ashr exact i64 %sext, 32
%6 = ashr exact i64 %sext, 30
%7 = add nsw i64 %6, %5
%8 = mul i64 %7, 8
%9 = add i64 %8, %4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = add i64 %9, 8
%15 = inttoptr i64 %14 to i64*
store i64 0, i64* %15, align 8
%16 = add i64 %9, 16
%17 = inttoptr i64 %16 to i32*
store i32 0, i32* %17, align 4
store i64 %9, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%18 = icmp eq i32 %11, 1
br i1 %18, label LBL_4, label LBL_3
LBL_3:
%19 = zext i32 %11 to i64
%20 = call i64 @FUNC(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0), i64 %19, i64 %4, i64 %3, i64 %2, i64 %1)
%21 = call i64 @FUNC(i64 %4)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%22 = add i64 %9, 32
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i64 %9, 28
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = zext i32 %24 to i64
%29 = zext i32 %27 to i64
%30 = call i64 @FUNC(i64 %29, i64 %28)
%31 = bitcast i32* %sv_2 to i64*
%32 = call i64 @FUNC(i64 0, i64 %30, i64* nonnull %31, i64 12)
%33 = call i64 @FUNC(i64* nonnull %31)
%34 = bitcast i32* %sv_1 to i64*
%35 = call i64 @FUNC(i64* nonnull %34)
%36 = bitcast i32* %sv_0 to i64*
%37 = call i64 @FUNC(i64* nonnull %36)
%38 = load i32, i32* %sv_0, align 4
%.off = add i32 %38, -16
%39 = icmp ult i32 %.off, 4081
br i1 %39, label LBL_6, label LBL_5
LBL_5:
%40 = ptrtoint i32* %sv_2 to i64
%41 = zext i32 %38 to i64
%42 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_1, i64 0, i64 0), i64 %41, i64 %40, i64 12, i64 %2, i64 %1)
%43 = call i64 @FUNC(i64 %4)
store i64 %43, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%44 = load i32, i32* %sv_1, align 4
%45 = load i32, i32* %sv_2, align 4
%46 = zext i32 %44 to i64
%47 = zext i32 %45 to i64
%48 = call i64 @FUNC(i64 %47, i64 %46)
%49 = add i64 %9, 8
%50 = inttoptr i64 %49 to i64*
store i64 %48, i64* %50, align 8
%51 = load i32, i32* %sv_0, align 4
%52 = add i64 %9, 16
%53 = inttoptr i64 %52 to i32*
store i32 %51, i32* %53, align 4
%54 = add i64 %9, 20
%55 = inttoptr i64 %54 to i32*
store i32 0, i32* %55, align 4
%56 = add i64 %9, 24
%57 = inttoptr i64 %56 to i32*
store i32 1, i32* %57, align 4
%58 = load i32, i32* %53, align 4
%59 = zext i32 %58 to i64
%60 = load i64, i64* %50, align 8
%61 = and i64 %5, 4294967295
%62 = call i64 @FUNC(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_2, i64 0, i64 0), i64 %61, i64 %60, i64 %59, i64 %2, i64 %1)
store i64 %62, 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 %38, { 1, 0 }
uselistorder i64 %9, { 1, 2, 3, 4, 7, 8, 0, 5, 6, 9 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i32* %sv_2, { 1, 0, 2 }
uselistorder i32* %sv_0, { 1, 0, 2 }
uselistorder i64 %4, { 3, 1, 2, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64*)* @le32_to_cpus, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @xhci_addr64, { 1, 0 }
uselistorder i64 (i64)* @xhci_die, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @DPRINTF, { 2, 1, 0 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder i64 32, { 1, 0 }
} | 0 |
BinRealVul | vc1_inv_trans_4x8_dc_c_16554 | vc1_inv_trans_4x8_dc_c | define i64 @FUNC(i64* %arg1, i64 %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.04.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%3 = trunc i64 %1 to i32
%4 = mul i32 %3, 17
%5 = add i32 %4, 4
%6 = ashr i32 %5, 3
%7 = mul i32 %6, 12
%8 = add i32 %7, 64
%9 = ashr i32 %8, 7
%10 = sext i32 %9 to i64
%11 = add i64 %10, ptrtoint (i8** @gv_0 to i64)
%12 = ashr exact i64 %sext, 32
store i32 0, i32* %storemerge5.reg2mem
store i64 %2, i64* %sv_0.04.reg2mem
br label LBL_1
LBL_1:
%sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%13 = inttoptr i64 %sv_0.04.reload to i8*
%14 = load i8, i8* %13, align 1
%15 = zext i8 %14 to i64
%16 = add i64 %11, %15
%17 = inttoptr i64 %16 to i8*
%18 = load i8, i8* %17, align 1
store i8 %18, i8* %13, align 1
%19 = add i64 %sv_0.04.reload, 1
%20 = inttoptr i64 %19 to i8*
%21 = load i8, i8* %20, align 1
%22 = zext i8 %21 to i64
%23 = add i64 %11, %22
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
store i8 %25, i8* %20, align 1
%26 = add i64 %sv_0.04.reload, 2
%27 = inttoptr i64 %26 to i8*
%28 = load i8, i8* %27, align 1
%29 = zext i8 %28 to i64
%30 = add i64 %11, %29
%31 = inttoptr i64 %30 to i8*
%32 = load i8, i8* %31, align 1
store i8 %32, i8* %27, align 1
%33 = add i64 %sv_0.04.reload, 3
%34 = inttoptr i64 %33 to i8*
%35 = load i8, i8* %34, align 1
%36 = zext i8 %35 to i64
%37 = add i64 %11, %36
%38 = inttoptr i64 %37 to i8*
%39 = load i8, i8* %38, align 1
store i8 %39, i8* %34, align 1
%40 = add i64 %sv_0.04.reload, %12
%41 = add nuw nsw i32 %storemerge5.reload, 1
%exitcond = icmp eq i32 %41, 8
store i32 %41, i32* %storemerge5.reg2mem
store i64 %40, i64* %sv_0.04.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
ret i64 %12
uselistorder i64 %sv_0.04.reload, { 4, 0, 1, 2, 3 }
uselistorder i64 %12, { 1, 0 }
uselistorder i32* %storemerge5.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.04.reg2mem, { 1, 0, 2 }
} | 1 |
BinRealVul | fatal_log_check_17558 | fatal_log_check | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.in.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 0)
%2 = inttoptr i64 %1 to i8*
%3 = call i32 (i8*, i32, ...) @open(i8* %2, i32 0)
%4 = icmp eq i32 %3, -1
store i32 -1, i32* %rax.0.in.reg2mem
br i1 %4, label LBL_5, label LBL_1
LBL_1:
%5 = call i32 @read(i32 %3, i64* nonnull %sv_0, i32 1024)
%6 = icmp slt i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_1, i64 0, i64 0), i64 %1)
unreachable
LBL_3:
%9 = sext i32 %5 to i64
%10 = ptrtoint i64* %sv_0 to i64
%11 = add i64 %9, %10
%12 = inttoptr i64 %11 to i8*
store i8 0, i8* %12, align 1
%13 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%14 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %13, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @gv_3, i64 0, i64 0), i64* nonnull %sv_0)
%15 = call i32 @close(i32 %3)
%16 = call i32 @unlink(i8* %2)
%17 = icmp slt i32 %16, 0
%18 = icmp eq i1 %17, false
store i32 %16, i32* %rax.0.in.reg2mem
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%19 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_4, i64 0, i64 0), i64 %1)
unreachable
LBL_5:
%rax.0.in.reload = load i32, i32* %rax.0.in.reg2mem
%rax.0 = sext i32 %rax.0.in.reload to i64
ret i64 %rax.0
uselistorder i32 %5, { 1, 0 }
uselistorder i64* %sv_0, { 0, 2, 1 }
uselistorder i32 (%_IO_FILE*, i8*, ...)* @fprintf, { 1, 0 }
uselistorder %_IO_FILE** @gv_2, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 (i8*, i64)* @i_error, { 1, 0 }
uselistorder i32 0, { 3, 1, 2, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | nfs4_proc_unlink_setup_18389 | nfs4_proc_unlink_setup | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %0)
%3 = add i64 %1, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %2 to i32*
%7 = load i32, i32* %6, align 4
%8 = bitcast i64* %arg2 to i32*
store i32 %7, i32* %8, align 4
%9 = inttoptr i64 %5 to i64*
store i64 %2, i64* %9, align 8
%10 = add i64 %1, 16
%11 = inttoptr i64 %10 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %11, align 8
ret i64 %1
uselistorder i64 %1, { 1, 0, 2 }
} | 1 |
BinRealVul | ff_rv34_decode_init_thread_copy_6993 | ff_rv34_decode_init_thread_copy | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 %0, i64* %2, align 8
%3 = bitcast i64* %arg1 to i32*
%4 = load i32, i32* %3, align 4
%5 = icmp eq i32 %4, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_5, label LBL_1
LBL_1:
%6 = add i64 %0, 16
%7 = inttoptr i64 %6 to i64*
store i64 0, i64* %7, align 8
%8 = add i64 %0, 24
%9 = inttoptr i64 %8 to i64*
store i64 0, i64* %9, align 8
%10 = add i64 %0, 32
%11 = inttoptr i64 %10 to i64*
store i64 0, i64* %11, align 8
%12 = add i64 %0, 40
%13 = inttoptr i64 %12 to i64*
store i64 0, i64* %13, align 8
%14 = add i64 %0, 48
%15 = inttoptr i64 %14 to i64*
store i64 0, i64* %15, align 8
%16 = add i64 %0, 56
%17 = inttoptr i64 %16 to i64*
store i64 0, i64* %17, align 8
%18 = call i64 @FUNC(i64 %1)
%19 = call i64 @FUNC(i64 %1)
%20 = trunc i64 %19 to i32
%21 = icmp slt i32 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_3, label LBL_2
LBL_2:
%23 = and i64 %19, 4294967295
store i64 %23, i64* %rax.0.reg2mem
br label LBL_5
LBL_3:
%24 = call i64 @FUNC(i64 %0)
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, 0
%27 = icmp eq i1 %26, false
store i64 0, i64* %rax.0.reg2mem
br i1 %27, label LBL_5, label LBL_4
LBL_4:
%28 = call i64 @FUNC(i64 %1)
%29 = and i64 %24, 4294967295
store i64 %29, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 3, 1 }
uselistorder label LBL_5, { 2, 1, 3, 0 }
} | 0 |
BinRealVul | lka_expand_format_18364 | lka_expand_format | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.in.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%sv_2.17.reg2mem = alloca i64
%sv_1.19.reg2mem = alloca i8*
%sv_3.012.reg2mem = alloca i64
%.reg2mem = alloca i8
%sv_3.0.ph.reg2mem = alloca i64
%sv_1.1.ph.reg2mem = alloca i8*
%sv_2.1.ph.reg2mem = alloca i64
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
%0 = icmp ult i64 %arg2, 1024
br i1 %0, label LBL_1, label LBL_2
LBL_1:
%1 = call i64 @FUNC(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_0, i64 0, i64 0))
unreachable
LBL_2:
%2 = ptrtoint i64* %arg4 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64* @memset(i64* nonnull %sv_6, i32 0, i32 1024)
%5 = bitcast i64* %sv_6 to i8*
%6 = bitcast i64* %arg1 to i8*
%7 = call i32 @strncmp(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i32 2)
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 %3, i64* %sv_2.1.ph.reg2mem
store i8* %5, i8** %sv_1.1.ph.reg2mem
store i64 0, i64* %sv_3.0.ph.reg2mem
br i1 %9, label LBL_6, label LBL_3
LBL_3:
%10 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %5, i32 1024, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i64* %arg4)
%11 = icmp ult i32 %10, 1024
br i1 %11, label LBL_5, label LBL_4
LBL_4:
%12 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_3, i64 0, i64 0), i64 %2)
store i64 0, i64* %rax.0.reg2mem
br label LBL_19
LBL_5:
%13 = sext i32 %10 to i64
%14 = ptrtoint i64* %sv_6 to i64
%15 = add i64 %13, %14
%16 = inttoptr i64 %15 to i8*
%17 = add i64 %3, 2
store i64 %17, i64* %sv_2.1.ph.reg2mem
store i8* %16, i8** %sv_1.1.ph.reg2mem
store i64 %13, i64* %sv_3.0.ph.reg2mem
br label LBL_6
LBL_6:
%sv_3.0.ph.reload = load i64, i64* %sv_3.0.ph.reg2mem
%sv_2.1.ph.reload = load i64, i64* %sv_2.1.ph.reg2mem
%18 = inttoptr i64 %sv_2.1.ph.reload to i8*
%19 = load i8, i8* %18, align 1
%20 = icmp ne i8 %19, 0
%21 = icmp ult i64 %sv_3.0.ph.reload, 1024
%or.cond6 = icmp eq i1 %21, %20
store i64 %sv_3.0.ph.reload, i64* %rax.0.reg2mem
br i1 %or.cond6, label LBL_7, label LBL_19
LBL_7:
%22 = ptrtoint i64* %arg3 to i64
%sv_1.1.ph.reload = load i8*, i8** %sv_1.1.ph.reg2mem
%23 = bitcast i64* %sv_5 to i8*
store i8 %19, i8* %.reg2mem
store i64 %sv_3.0.ph.reload, i64* %sv_3.012.reg2mem
store i8* %sv_1.1.ph.reload, i8** %sv_1.19.reg2mem
store i64 %sv_2.1.ph.reload, i64* %sv_2.17.reg2mem
br label LBL_8
LBL_8:
%sv_2.17.reload = load i64, i64* %sv_2.17.reg2mem
%sv_1.19.reload = load i8*, i8** %sv_1.19.reg2mem
%sv_3.012.reload = load i64, i64* %sv_3.012.reg2mem
%.reload = load i8, i8* %.reg2mem
%24 = icmp eq i8 %.reload, 37
%25 = icmp eq i1 %24, false
%.pre = add i64 %sv_2.17.reload, 1
br i1 %25, label LBL_12, label LBL_9
LBL_9:
%26 = inttoptr i64 %.pre to i8*
%27 = load i8, i8* %26, align 1
%28 = icmp eq i8 %27, 37
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_11, label LBL_10
LBL_10:
%30 = ptrtoint i8* %sv_1.19.reload to i64
%31 = add i64 %30, 1
store i8 %.reload, i8* %sv_1.19.reload, align 1
%32 = add i64 %sv_2.17.reload, 2
store i64 %32, i64* %sv_2.0.reg2mem
store i64 %31, i64* %sv_1.0.in.reg2mem
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_18
LBL_11:
%33 = icmp eq i8 %27, 123
br i1 %33, label LBL_13, label LBL_12
LBL_12:
%34 = ptrtoint i8* %sv_1.19.reload to i64
%35 = add i64 %34, 1
store i8 %.reload, i8* %sv_1.19.reload, align 1
store i64 %.pre, i64* %sv_2.0.reg2mem
store i64 %35, i64* %sv_1.0.in.reg2mem
store i64 1, i64* %sv_0.0.reg2mem
br label LBL_18
LBL_13:
%36 = call i8* @strchr(i8* %26, i32 125)
%37 = icmp eq i8* %36, null
%38 = icmp eq i1 %37, false
store i64 0, i64* %rax.0.reg2mem
br i1 %38, label LBL_14, label LBL_19
LBL_14:
%39 = ptrtoint i8* %36 to i64
%40 = sub i64 0, %sv_2.17.reload
%41 = sub i64 %40, 1
%42 = add i64 %39, %41
%43 = icmp ult i64 %42, 256
store i64 0, i64* %rax.0.reg2mem
br i1 %43, label LBL_15, label LBL_19
LBL_15:
%44 = xor i64 %sv_2.17.reload, 4294967295
%45 = add i64 %44, %39
%46 = add i64 %sv_2.17.reload, 2
%47 = inttoptr i64 %46 to i64*
%48 = trunc i64 %45 to i32
%49 = call i64* @memcpy(i64* nonnull %sv_5, i64* %47, i32 %48)
%50 = call i8* @strchr(i8* nonnull %23, i32 125)
%51 = icmp eq i8* %50, null
%52 = icmp eq i1 %51, false
store i64 0, i64* %rax.0.reg2mem
br i1 %52, label LBL_16, label LBL_19
LBL_16:
%53 = call i8* @strchr(i8* nonnull %23, i32 125)
store i8 0, i8* %53, align 1
%54 = call i64 @FUNC(i64* nonnull %sv_4, i64 1024, i64* nonnull %sv_5, i64 %22, i64 %2)
%55 = icmp eq i64 %54, 0
%56 = icmp eq i1 %55, false
store i64 0, i64* %rax.0.reg2mem
br i1 %56, label LBL_17, label LBL_19
LBL_17:
%57 = trunc i64 %54 to i32
%58 = bitcast i8* %sv_1.19.reload to i64*
%59 = call i64* @memcpy(i64* %58, i64* nonnull %sv_4, i32 %57)
%60 = add i64 %39, 1
%sext5 = mul i64 %54, 4294967296
%61 = ashr exact i64 %sext5, 32
%62 = ptrtoint i8* %sv_1.19.reload to i64
%63 = add i64 %61, %62
store i64 %60, i64* %sv_2.0.reg2mem
store i64 %63, i64* %sv_1.0.in.reg2mem
store i64 %54, i64* %sv_0.0.reg2mem
br label LBL_18
LBL_18:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.in.reload = load i64, i64* %sv_1.0.in.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%sv_1.0 = inttoptr i64 %sv_1.0.in.reload to i8*
%sext = mul i64 %sv_0.0.reload, 4294967296
%64 = ashr exact i64 %sext, 32
%65 = add i64 %64, %sv_3.012.reload
%66 = inttoptr i64 %sv_2.0.reload to i8*
%67 = load i8, i8* %66, align 1
%68 = icmp ne i8 %67, 0
%69 = icmp ult i64 %65, 1024
%or.cond = icmp eq i1 %68, %69
store i8 %67, i8* %.reg2mem
store i64 %65, i64* %sv_3.012.reg2mem
store i8* %sv_1.0, i8** %sv_1.19.reg2mem
store i64 %sv_2.0.reload, i64* %sv_2.17.reg2mem
store i64 %65, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_8, label LBL_19
LBL_19:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_2.0.reload, { 1, 0 }
uselistorder i64 %39, { 2, 0, 1 }
uselistorder i8* %36, { 1, 0 }
uselistorder i8 %.reload, { 2, 0, 1 }
uselistorder i8* %sv_1.19.reload, { 4, 3, 2, 5, 1, 0 }
uselistorder i64 %sv_2.17.reload, { 0, 1, 4, 2, 3 }
uselistorder i64 %sv_3.0.ph.reload, { 1, 0, 2 }
uselistorder i8* %5, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %sv_5, { 0, 2, 1 }
uselistorder i64* %sv_2.1.ph.reg2mem, { 0, 2, 1 }
uselistorder i8** %sv_1.1.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_3.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.012.reg2mem, { 1, 0, 2 }
uselistorder i8** %sv_1.19.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.17.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_1.0.in.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 2, 1, 6, 7 }
uselistorder i64 32, { 1, 0 }
uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 }
uselistorder i8* (i8*, i32)* @strchr, { 2, 1, 0 }
uselistorder i64 1, { 4, 2, 1, 5, 0, 6, 3 }
uselistorder i8 0, { 3, 2, 0, 1 }
uselistorder i64 2, { 1, 0, 2 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_19, { 4, 3, 2, 1, 0, 5, 6 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | smd_channel_probe_worker_5313 | smd_channel_probe_worker | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.2.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 0, i64 1792)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 0, i64* %indvars.iv.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_0, i64 0, i64 0))
store i64 %3, i64* %rax.2.reg2mem
br label LBL_10
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%4 = mul i64 %indvars.iv.reload, 4
%5 = add i64 %4, ptrtoint (i32** @gv_1 to i64)
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = zext i32 %7 to i64
%9 = icmp eq i32 %7, 0
%10 = icmp eq i1 %9, false
store i64 %8, i64* %rax.0.reg2mem
br i1 %10, label LBL_9, label LBL_3
LBL_3:
%11 = mul nuw nsw i64 %indvars.iv.reload, 28
%12 = add i64 %11, %0
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_9, label LBL_4
LBL_4:
%16 = add i64 %12, 4
%17 = inttoptr i64 %16 to i8*
%18 = load i8, i8* %17, align 1
%19 = icmp eq i8 %18, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_9, label LBL_5
LBL_5:
%20 = add i64 %12, 20
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = inttoptr i64 %16 to i64*
%24 = call i32 @memcmp(i64* %23, i64* bitcast ([4 x i8]* @gv_2 to i64*), i32 3)
%25 = load i32, i32* %21, align 4
%26 = urem i32 %25, 256
%27 = icmp eq i32 %26, 1
br i1 %27, label LBL_7, label LBL_6
LBL_6:
%28 = zext i32 %26 to i64
%29 = icmp eq i32 %26, 2
%30 = icmp eq i1 %29, false
store i64 %28, i64* %rax.0.reg2mem
br i1 %30, label LBL_9, label LBL_7
LBL_7:
%31 = icmp eq i32 %24, 0
%32 = icmp eq i1 %31, false
%33 = and i32 %22, -65281
%34 = or i32 %33, 256
%sv_0.0 = select i1 %32, i32 %22, i32 %34
%35 = add i64 %12, 24
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = zext i32 %sv_0.0 to i64
%39 = zext i32 %37 to i64
%40 = call i64 @FUNC(i64 %16, i64 %39, i64 %38)
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 0
%43 = icmp eq i1 %42, false
store i64 %40, i64* %rax.0.reg2mem
br i1 %43, label LBL_9, label LBL_8
LBL_8:
store i32 1, i32* %6, align 4
store i64 %indvars.iv.reload, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 64
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %rax.0.reload, i64* %rax.2.reg2mem
br i1 %exitcond, label LBL_10, label LBL_2
LBL_10:
%rax.2.reload = load i64, i64* %rax.2.reg2mem
ret i64 %rax.2.reload
uselistorder i32 %26, { 2, 0, 1 }
uselistorder i64 %indvars.iv.reload, { 1, 0, 2, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1, 4, 5, 6 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i32 2, { 2, 1, 0 }
uselistorder i32 256, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 4, { 2, 0, 1 }
uselistorder i1 false, { 0, 2, 1, 3, 4, 5 }
uselistorder label LBL_9, { 3, 4, 5, 0, 1, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | acpi_pcihp_get_bsel_16976 | acpi_pcihp_get_bsel | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %0, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = call i64 @FUNC(i64 %1, i64 0, i64 0)
%3 = icmp eq i64 %2, 0
store i64 -1, i64* %sv_0.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %2)
%5 = call i64 @FUNC(i64 %4)
store i64 %5, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%6 = icmp slt i64 %sv_0.0.reload, 0
%7 = icmp eq i1 %6, false
%storemerge = select i1 %7, i64 %sv_0.0.reload, i64 4294967295
ret i64 %storemerge
} | 1 |
BinRealVul | onig_region_free_10573 | onig_region_free | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.1.reg2mem = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64 %arg1, 0
br i1 %2, label LBL_9, label LBL_1
LBL_1:
%3 = trunc i64 %1 to i32
%4 = and i64 %1, 4294967295
%5 = icmp slt i32 %3, 1
store i64 %4, i64* %rax.0.reg2mem
br i1 %5, label LBL_7, label LBL_2
LBL_2:
%6 = add i64 %arg1, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %8)
br label LBL_4
LBL_4:
%11 = add i64 %arg1, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = call i64 @FUNC(i64 %13)
br label LBL_6
LBL_6:
%16 = inttoptr i64 %arg1 to i32*
store i32 0, i32* %16, align 4
store i64 %arg1, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
%17 = trunc i64 %arg2 to i32
%18 = icmp eq i32 %17, 0
store i64 %rax.0.reload, i64* %rax.1.reg2mem
br i1 %18, label LBL_9, label LBL_8
LBL_8:
%19 = call i64 @FUNC(i64 %arg1)
store i64 %19, 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 i64 %1, { 1, 0 }
uselistorder i64 (i64)* @xfree, { 2, 1, 0 }
uselistorder i64 %arg1, { 4, 0, 1, 2, 3, 5 }
} | 0 |
BinRealVul | nego_recv_7338 | nego_recv | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = alloca i32
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%rdx = alloca i64, align 8
%4 = ptrtoint i64* %arg2 to i64
%5 = load i32, i32* %1
%sv_0 = alloca i8, align 1
%sv_1 = alloca i32, align 4
%6 = bitcast i32* %sv_1 to i64*
%7 = call i64 @FUNC(i64 %4, i64* nonnull %6)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %10, label LBL_1, label LBL_21
LBL_1:
%11 = load i32, i32* %sv_1, align 4
%12 = urem i32 %11, 65536
%13 = zext i32 %12 to i64
store i64 %13, i64* %rdx, align 8
%14 = bitcast i8* %sv_0 to i64*
%15 = call i64 @FUNC(i64 %4, i64* nonnull %14, i64 %13)
%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_2, label LBL_21
LBL_2:
%19 = ptrtoint i64* %arg3 to i64
%20 = ptrtoint i8* %sv_0 to i64
%21 = load i8, i8* %sv_0, align 1
%22 = icmp ult i8 %21, 7
br i1 %22, label LBL_15, label LBL_3
LBL_3:
%23 = urem i32 %5, 256
%24 = zext i32 %23 to i64
%25 = call i64 @FUNC(i64 %4, i64 %24)
%trunc = trunc i32 %5 to i8
switch i8 %trunc, label LBL_20 [
i8 1, label LBL_4
i8 2, label LBL_14
]
LBL_4:
%26 = call i64 @FUNC(i64 %19, i64 %4)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %29, label LBL_5, label LBL_21
LBL_5:
%30 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i64 %13, i64 %20, i64 %3, i64 %2)
%31 = icmp eq i32 %12, 0
br i1 %31, label LBL_12, label LBL_6
LBL_6:
%32 = icmp eq i32 %12, 1
%33 = icmp eq i1 %32, false
store i32 %12, i32* %.reg2mem
br i1 %33, label LBL_9, label LBL_7
LBL_7:
%34 = add i64 %19, 8
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
store i32 %12, i32* %.reg2mem
br i1 %38, label LBL_9, label LBL_8
LBL_8:
%39 = bitcast i64* %rdx to i32*
%40 = add i64 %19, 44
%41 = inttoptr i64 %40 to i32*
store i32 0, i32* %41, align 4
%.pre = load i32, i32* %39, align 8
store i32 %.pre, i32* %.reg2mem
br label LBL_9
LBL_9:
%.reload = load i32, i32* %.reg2mem
%42 = icmp eq i32 %.reload, 2
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_20, label LBL_10
LBL_10:
%44 = add i64 %19, 12
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = icmp eq i32 %46, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_20, label LBL_11
LBL_11:
%49 = add i64 %19, 44
%50 = inttoptr i64 %49 to i32*
store i32 0, i32* %50, align 4
br label LBL_20
LBL_12:
%51 = add i64 %19, 16
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = icmp eq i32 %53, 0
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_20, label LBL_13
LBL_13:
%56 = add i64 %19, 44
%57 = inttoptr i64 %56 to i32*
store i32 0, i32* %57, align 4
br label LBL_20
LBL_14:
%58 = call i64 @FUNC(i64 %19, i64 %4)
%59 = trunc i64 %58 to i32
%60 = icmp eq i32 %59, 0
%61 = icmp eq i1 %60, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %61, label LBL_20, label LBL_21
LBL_15:
%62 = icmp eq i8 %21, 6
%63 = icmp eq i1 %62, false
br i1 %63, label LBL_19, label LBL_16
LBL_16:
%64 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0), i64 %13, i64 %20, i64 %3, i64 %2)
%65 = add i64 %19, 16
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = icmp eq i32 %67, 0
%69 = icmp eq i1 %68, false
%70 = add i64 %19, 44
%71 = inttoptr i64 %70 to i32*
br i1 %69, label LBL_18, label LBL_17
LBL_17:
store i32 0, i32* %71, align 4
br label LBL_20
LBL_18:
store i32 1, i32* %71, align 4
br label LBL_20
LBL_19:
%72 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_3, i64 0, i64 0), i64 %13, i64 %20, i64 %3, i64 %2)
%73 = add i64 %19, 44
%74 = inttoptr i64 %73 to i32*
store i32 0, i32* %74, align 4
br label LBL_20
LBL_20:
%75 = load i32, i32* %sv_1, align 4
%76 = urem i32 %75, 65536
%77 = zext i32 %76 to i64
%78 = call i64 @FUNC(i64 %4, i64 %77)
%79 = trunc i64 %78 to i32
%80 = icmp eq i32 %79, 0
%81 = icmp eq i1 %80, false
%. = select i1 %81, i64 0, i64 4294967295
store i64 %., i64* %rax.0.reg2mem
br label LBL_21
LBL_21:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %71, { 1, 0 }
uselistorder i64 %20, { 1, 2, 0 }
uselistorder i64 %19, { 10, 9, 8, 0, 6, 5, 4, 3, 2, 1, 7 }
uselistorder i64 %13, { 1, 2, 0, 3, 4 }
uselistorder i32 %12, { 1, 0, 3, 4, 2 }
uselistorder i32* %sv_1, { 1, 0, 2 }
uselistorder i8* %sv_0, { 1, 0, 2 }
uselistorder i64 %4, { 3, 0, 1, 2, 4, 5 }
uselistorder i64* %rdx, { 1, 0 }
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i8*, i8*, i64, i64, i64, i64)* @WLog_DBG, { 1, 0 }
uselistorder label LBL_20, { 7, 8, 9, 1, 6, 5, 4, 3, 2, 0 }
} | 0 |
BinRealVul | av_packet_new_side_data_18005 | av_packet_new_side_data | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sext2 = mul i64 %arg3, 4294967296
%0 = ashr exact i64 %sext2, 32
%1 = trunc i64 %0 to i32
%.off = add i32 %1, -1
%2 = icmp ult i32 %.off, 2147483615
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%sext3 = add i64 %sext2, 137438953472
%3 = ashr exact i64 %sext3, 32
%4 = call i64 @FUNC(i64 %3)
store i64 %4, i64* %sv_0, align 8
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_4
LBL_2:
%7 = ptrtoint i64* %arg1 to i64
%8 = and i64 %0, 4294967295
%9 = trunc i64 %arg2 to i32
%10 = call i64 @FUNC(i64 %7, i32 %9, i64 %4, i64 %8)
%11 = trunc i64 %10 to i32
%12 = icmp slt i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64* nonnull %sv_0)
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 %sext2, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder label LBL_4, { 3, 0, 1, 2 }
} | 1 |
BinRealVul | bitmap_set_atomic_14273 | bitmap_set_atomic | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge3.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_1.2.reg2mem = alloca i64
%sv_2.011.reg2mem = alloca i64
%sv_1.14.reg2mem = alloca i64
%sv_0.15.reg2mem = alloca i64
%sv_1.08.reg2mem = alloca i64
%sv_0.09.reg2mem = alloca i64
%sv_2.010.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = udiv i64 %arg2, 64
%2 = mul i64 %1, 8
%3 = add i64 %2, %0
%4 = trunc i64 %arg2 to i32
%5 = urem i32 %4, 64
%6 = sub nsw i32 64, %5
%7 = sub i64 0, %arg2
%8 = urem i64 %7, 64
%9 = lshr i64 -1, %8
%10 = zext i32 %6 to i64
%11 = sub i64 %arg3, %10
%12 = icmp slt i64 %11, 1
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i64 %3, i64 %9)
%14 = add i64 %3, 8
store i64 -1, i64* %sv_2.010.reg2mem
store i64 %14, i64* %sv_0.09.reg2mem
store i64 %11, i64* %sv_1.08.reg2mem
br label LBL_3
LBL_2:
%15 = icmp eq i32 %5, 0
%16 = icmp eq i1 %15, false
store i64 %9, i64* %sv_2.010.reg2mem
store i64 %3, i64* %sv_0.09.reg2mem
store i64 %arg3, i64* %sv_1.08.reg2mem
store i64 %9, i64* %sv_2.011.reg2mem
store i64 %arg3, i64* %sv_1.2.reg2mem
store i64 %3, i64* %sv_0.2.reg2mem
br i1 %16, label LBL_6, label LBL_3
LBL_3:
%sv_1.08.reload = load i64, i64* %sv_1.08.reg2mem
%sv_0.09.reload = load i64, i64* %sv_0.09.reg2mem
%sv_2.010.reload = load i64, i64* %sv_2.010.reg2mem
%17 = icmp ult i64 %sv_1.08.reload, 64
store i64 %sv_0.09.reload, i64* %sv_0.15.reg2mem
store i64 %sv_1.08.reload, i64* %sv_1.14.reg2mem
store i64 %sv_2.010.reload, i64* %sv_2.011.reg2mem
store i64 %sv_1.08.reload, i64* %sv_1.2.reg2mem
store i64 %sv_0.09.reload, i64* %sv_0.2.reg2mem
br i1 %17, label LBL_6, label LBL_4
LBL_4:
%sv_1.14.reload = load i64, i64* %sv_1.14.reg2mem
%sv_0.15.reload = load i64, i64* %sv_0.15.reg2mem
%18 = inttoptr i64 %sv_0.15.reload to i64*
store i64 -1, i64* %18, align 8
%19 = add i64 %sv_1.14.reload, -64
%20 = add i64 %sv_0.15.reload, 8
%21 = icmp ult i64 %19, 64
store i64 %20, i64* %sv_0.15.reg2mem
store i64 %19, i64* %sv_1.14.reg2mem
br i1 %21, label LBL_5, label LBL_4
LBL_5:
%22 = urem i64 %sv_1.08.reload, 64
store i64 %sv_2.010.reload, i64* %sv_2.011.reg2mem
store i64 %22, i64* %sv_1.2.reg2mem
store i64 %20, i64* %sv_0.2.reg2mem
br label LBL_6
LBL_6:
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%23 = icmp eq i64 %sv_1.2.reload, 0
br i1 %23, label LBL_8, label LBL_7
LBL_7:
%24 = add i64 %arg3, %arg2
%25 = trunc i64 %24 to i32
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%sv_2.011.reload = load i64, i64* %sv_2.011.reg2mem
%26 = urem i32 %25, 64
%27 = icmp eq i32 %26, 0
%28 = zext i32 %26 to i64
%29 = shl i64 -1, %28
%storemerge2 = select i1 %27, i64 -1, i64 %29
%30 = and i64 %sv_2.011.reload, %storemerge2
%31 = call i64 @FUNC(i64 %sv_0.2.reload, i64 %30)
store i64 %31, i64* %storemerge3.reg2mem
br label LBL_9
LBL_8:
%32 = call i64 @FUNC()
store i64 %32, i64* %storemerge3.reg2mem
br label LBL_9
LBL_9:
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
ret i64 %storemerge3.reload
uselistorder i64 %sv_2.010.reload, { 1, 0 }
uselistorder i64 %sv_1.08.reload, { 3, 0, 1, 2 }
uselistorder i32 %5, { 1, 0 }
uselistorder i64* %sv_0.15.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_1.14.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.011.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %sv_1.2.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %sv_0.2.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @atomic_or, { 1, 0 }
uselistorder i64 -1, { 1, 2, 4, 0, 3 }
uselistorder i32 64, { 0, 2, 1 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder i64 64, { 0, 4, 3, 2, 1 }
uselistorder i64 %arg3, { 2, 0, 1, 3 }
uselistorder i64 %arg2, { 1, 2, 3, 0 }
uselistorder label LBL_6, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | vterm_state_new_11573 | vterm_state_new | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 56)
%2 = inttoptr i64 %1 to i64*
store i64 %0, i64* %2, align 8
%3 = bitcast i64* %rdi to i32*
%4 = load i32, i32* %3, align 8
%5 = add i64 %1, 8
%6 = inttoptr i64 %5 to i32*
store i32 %4, i32* %6, align 4
%7 = add i64 %0, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %1, 12
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 4
%12 = add i64 %1, 16
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
%14 = add i64 %1, 20
%15 = inttoptr i64 %14 to i32*
store i32 0, i32* %15, align 4
%16 = add i64 %1, 24
%17 = inttoptr i64 %16 to i32*
store i32 0, i32* %17, align 4
%18 = add i64 %1, 28
%19 = inttoptr i64 %18 to i32*
store i32 0, i32* %19, align 4
%20 = add i64 %1, 32
%21 = inttoptr i64 %20 to i64*
store i64 0, i64* %21, align 8
%22 = add i64 %1, 40
%23 = inttoptr i64 %22 to i64*
store i64 0, i64* %23, align 8
%24 = call i64 @FUNC(i64 %1)
%25 = add i64 %1, 48
%26 = inttoptr i64 %25 to i32*
store i32 0, i32* %26, align 4
ret i64 %1
} | 1 |
BinRealVul | av_reallocp_array_16167 | av_reallocp_array | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 %arg2, i64 %arg3)
store i64 %1, i64* %arg1, align 8
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = icmp ne i64 %arg2, 0
%5 = icmp eq i64 %arg3, 0
%6 = icmp eq i1 %5, false
%or.cond = icmp eq i1 %4, %6
store i64 12, i64* %storemerge.reg2mem
br i1 %or.cond, label LBL_2, label LBL_3
LBL_2:
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | rv34_set_deblock_coef_18765 | rv34_set_deblock_coef | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.4.reg2mem = alloca i32
%sv_1.4.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_1.29.reg2mem = alloca i32
%sv_0.210.reg2mem = alloca i32
%sv_2.011.reg2mem = alloca i64
%indvars.iv13.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.15.reg2mem = alloca i32
%sv_0.16.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = add i64 %2, 4
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = add i64 %2, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = mul i32 %9, %6
%11 = add i32 %10, %3
%12 = mul i32 %11, 2
%13 = add i64 %2, 16
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = sext i32 %12 to i64
%17 = mul i64 %16, 2
%18 = add i64 %17, %15
store i64 0, i64* %indvars.iv13.reg2mem
store i64 %18, i64* %sv_2.011.reg2mem
store i32 0, i32* %sv_0.210.reg2mem
store i32 0, i32* %sv_1.29.reg2mem
br label LBL_9
LBL_1:
%sv_1.15.reload = load i32, i32* %sv_1.15.reg2mem
%sv_0.16.reload = load i32, i32* %sv_0.16.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%19 = mul i64 %indvars.iv.reload, 4
%20 = add i64 %19, %sv_2.011.reload
%21 = call i64 @FUNC(i64 %20, i64 1)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
store i32 %sv_0.16.reload, i32* %sv_0.0.reg2mem
br i1 %23, label LBL_3, label LBL_2
LBL_2:
%24 = mul i64 %indvars.iv.reload, 2
%25 = add nuw nsw i64 %24, %indvars.iv13.reload
%26 = trunc i64 %25 to i32
%27 = shl i32 17, %26
%28 = or i32 %27, %sv_0.16.reload
store i32 %28, i32* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
br i1 %47, label LBL_5, label LBL_4
LBL_4:
%29 = load i32, i32* %5, align 4
%30 = icmp eq i32 %29, 0
store i32 %sv_1.15.reload, i32* %sv_1.0.reg2mem
br i1 %30, label LBL_7, label LBL_5
LBL_5:
%31 = load i32, i32* %8, align 4
%32 = zext i32 %31 to i64
%33 = call i64 @FUNC(i64 %20, i64 %32)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
store i32 %sv_1.15.reload, i32* %sv_1.0.reg2mem
br i1 %35, label LBL_7, label LBL_6
LBL_6:
%36 = mul i64 %indvars.iv.reload, 2
%37 = add nuw nsw i64 %36, %indvars.iv13.reload
%38 = trunc i64 %37 to i32
%39 = shl i32 3, %38
%40 = or i32 %39, %sv_1.15.reload
store i32 %40, i32* %sv_1.0.reg2mem
br label LBL_7
LBL_7:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 2
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.16.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.15.reg2mem
br i1 %exitcond, label LBL_8, label LBL_1
LBL_8:
%41 = load i32, i32* %8, align 4
%42 = sext i32 %41 to i64
%43 = mul i64 %42, 4
%44 = add i64 %43, %sv_2.011.reload
%indvars.iv.next14 = add nuw nsw i64 %indvars.iv13.reload, 8
%45 = icmp ult i64 %indvars.iv.next14, 16
store i64 %indvars.iv.next14, i64* %indvars.iv13.reg2mem
store i64 %44, i64* %sv_2.011.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.210.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.29.reg2mem
br i1 %45, label LBL_9, label LBL_10
LBL_9:
%sv_1.29.reload = load i32, i32* %sv_1.29.reg2mem
%sv_0.210.reload = load i32, i32* %sv_0.210.reg2mem
%sv_2.011.reload = load i64, i64* %sv_2.011.reg2mem
%indvars.iv13.reload = load i64, i64* %indvars.iv13.reg2mem
%46 = icmp eq i64 %indvars.iv13.reload, 0
%47 = icmp eq i1 %46, false
store i64 0, i64* %indvars.iv.reg2mem
store i32 %sv_0.210.reload, i32* %sv_0.16.reg2mem
store i32 %sv_1.29.reload, i32* %sv_1.15.reg2mem
br label LBL_1
LBL_10:
%48 = add i64 %2, 12
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = icmp eq i32 %50, 0
%52 = and i32 %sv_1.0.reload, -16
%spec.select = select i1 %51, i32 %sv_1.0.reload, i32 %52
%53 = icmp eq i32 %3, 0
%54 = icmp eq i1 %53, false
%55 = and i32 %sv_0.0.reload, -4370
%sv_0.3 = select i1 %54, i32 %sv_0.0.reload, i32 %55
%56 = add i64 %2, 32
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = icmp eq i32 %58, 0
store i32 %spec.select, i32* %sv_1.4.reg2mem
store i32 %sv_0.3, i32* %sv_0.4.reg2mem
br i1 %59, label LBL_15, label LBL_11
LBL_11:
store i32 %50, i32* %.reg2mem
br i1 %53, label LBL_13, label LBL_12
LBL_12:
%60 = add i32 %3, -1
%61 = load i32, i32* %5, align 4
%62 = add i64 %2, 24
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = mul i32 %64, %61
%66 = add i32 %60, %65
%67 = sext i32 %66 to i64
%68 = mul i64 %67, 4
%69 = add i64 %2, 36
%70 = add i64 %69, %68
%71 = inttoptr i64 %70 to i32*
%72 = load i32, i32* %71, align 4
%73 = mul i32 %sv_0.3, 8
%74 = and i32 %73, 34952
%75 = or i32 %72, %74
store i32 %75, i32* %71, align 4
%.pre = load i32, i32* %49, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_13
LBL_13:
%76 = udiv i32 %sv_0.3, 2
%77 = and i32 %76, 8738
%78 = or i32 %77, %sv_0.3
%79 = udiv i32 %spec.select, 16
%80 = and i32 %79, 240
%81 = or i32 %80, %spec.select
%.reload = load i32, i32* %.reg2mem
%82 = icmp eq i32 %.reload, 0
%83 = icmp eq i1 %82, false
store i32 %81, i32* %sv_1.4.reg2mem
store i32 %78, i32* %sv_0.4.reg2mem
br i1 %83, label LBL_15, label LBL_14
LBL_14:
%84 = bitcast i64* %rdi to i32*
%85 = load i32, i32* %84, align 8
%86 = load i32, i32* %5, align 4
%87 = add i32 %86, -1
%88 = add i64 %2, 24
%89 = inttoptr i64 %88 to i32*
%90 = load i32, i32* %89, align 4
%91 = mul i32 %90, %87
%92 = add i32 %91, %85
%93 = sext i32 %92 to i64
%94 = mul i64 %93, 4
%95 = add i64 %2, 36
%96 = add i64 %95, %94
%97 = inttoptr i64 %96 to i32*
%98 = load i32, i32* %97, align 4
%99 = mul i32 %spec.select, 4096
%100 = and i32 %99, 61440
%101 = or i32 %98, %100
store i32 %101, i32* %97, align 4
store i32 %81, i32* %sv_1.4.reg2mem
store i32 %78, i32* %sv_0.4.reg2mem
br label LBL_15
LBL_15:
%sv_0.4.reload = load i32, i32* %sv_0.4.reg2mem
%sv_1.4.reload = load i32, i32* %sv_1.4.reg2mem
%102 = or i32 %sv_0.4.reload, %sv_1.4.reload
%103 = zext i32 %102 to i64
ret i64 %103
uselistorder i32 %sv_0.3, { 3, 2, 1, 0 }
uselistorder i32 %spec.select, { 1, 3, 2, 0 }
uselistorder i64 %indvars.iv13.reload, { 1, 2, 3, 0 }
uselistorder i32 %sv_1.0.reload, { 1, 2, 0, 3 }
uselistorder i32 %sv_0.0.reload, { 1, 2, 0, 3 }
uselistorder i64 %indvars.iv.reload, { 0, 3, 2, 1 }
uselistorder i32 %sv_0.16.reload, { 1, 0 }
uselistorder i32 %sv_1.15.reload, { 2, 1, 0 }
uselistorder i32* %5, { 1, 0, 2, 3 }
uselistorder i32 %3, { 1, 2, 0 }
uselistorder i64 %2, { 0, 3, 1, 2, 4, 5, 8, 7, 6 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.16.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_1.15.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @is_mv_diff_gt_3, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i32 0, { 2, 3, 4, 8, 5, 6, 7, 0, 1 }
uselistorder i64 2, { 3, 0, 1, 2 }
uselistorder i32 2, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | crossOriginDirective_17337 | crossOriginDirective | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i8*, align 8
%sv_1 = alloca i64, align 8
%5 = call i64 @FUNC(i64 %arg3)
store i64 %5, i64* %sv_1, align 8
%6 = call i64 @FUNC(i64 %5, i64* nonnull %sv_1)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 %5, i64* %.lcssa.reg2mem
br i1 %8, label LBL_1, label LBL_12
LBL_1:
%9 = bitcast i8** %sv_0 to i64*
%10 = add i64 %4, 8
%11 = inttoptr i64 %10 to i32*
%12 = add i64 %4, 16
%13 = inttoptr i64 %12 to i64*
%14 = add i64 %4, 24
%15 = inttoptr i64 %14 to i32*
store i64 %6, i64* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
%16 = call i64 @FUNC(i64 %.reload, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64* nonnull %9)
%17 = load i8*, i8** %sv_0, align 8
%18 = ptrtoint i8* %17 to i64
%19 = call i64 @FUNC(i64 %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 0)
%20 = inttoptr i64 %19 to i8*
store i8* %20, i8** %sv_0, align 8
%21 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_5, label LBL_3
LBL_3:
%24 = load i8*, i8** %sv_0, align 8
%25 = ptrtoint i8* %24 to i64
%26 = call i64 @FUNC(i64 %25)
store i64 %26, i64* %arg1, align 8
br label LBL_4
LBL_4:
%27 = load i64, i64* %sv_1, align 8
%28 = call i64 @FUNC(i64 %27, i64* nonnull %sv_1)
%29 = icmp eq i64 %28, 0
%30 = icmp eq i1 %29, false
store i64 %28, i64* %.reg2mem
store i64 %27, i64* %.lcssa.reg2mem
br i1 %30, label LBL_2, label LBL_12
LBL_5:
%31 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_3, i64 0, i64 0))
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 0
br i1 %33, label LBL_7, label LBL_6
LBL_6:
%34 = load i8*, i8** %sv_0, align 8
%35 = ptrtoint i8* %34 to i64
%36 = call i64 @FUNC(i64 %35)
%37 = trunc i64 %36 to i32
store i32 %37, i32* %11, align 4
br label LBL_4
LBL_7:
%38 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_4, i64 0, i64 0))
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label LBL_9, label LBL_8
LBL_8:
%41 = load i8*, i8** %sv_0, align 8
%42 = ptrtoint i8* %41 to i64
%43 = call i64 @FUNC(i64 %42)
store i64 %43, i64* %13, align 8
br label LBL_4
LBL_9:
%44 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0))
%45 = trunc i64 %44 to i32
%46 = icmp eq i32 %45, 0
br i1 %46, label LBL_11, label LBL_10
LBL_10:
%47 = load i8*, i8** %sv_0, align 8
%48 = call i32 @atoi(i8* %47)
store i32 %48, i32* %15, align 4
br label LBL_4
LBL_11:
%49 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_6, i64 0, i64 0), i64 0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_7, i64 0, i64 0), i64 %16, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_16
LBL_12:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%50 = call i64 @FUNC(i64 %.lcssa.reload, i64* nonnull @gv_8)
%51 = trunc i64 %50 to i32
%52 = icmp eq i32 %51, 0
br i1 %52, label LBL_15, label LBL_13
LBL_13:
%53 = add i64 %4, 8
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = icmp eq i32 %55, 0
br i1 %56, label LBL_15, label LBL_14
LBL_14:
%57 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_6, i64 0, i64 0), i64 0, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @gv_9, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_16
LBL_15:
%58 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_10, i64 0, i64 0))
%59 = add i64 %4, 28
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = or i32 %61, 1
store i32 %62, i32* %60, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %sv_1, { 1, 2, 0, 3 }
uselistorder i8** %sv_0, { 5, 4, 3, 2, 1, 0, 6 }
uselistorder i64 %4, { 2, 1, 0, 5, 4, 3 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_6, i64 0, i64 0), { 1, 0 }
uselistorder i32 0, { 4, 5, 0, 1, 2, 3, 6, 7, 8 }
uselistorder i64 (i64, i8*)* @scaselessmatch, { 3, 2, 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3, 4, 5 }
uselistorder i64 (i64, i64*)* @maGetNextArg, { 1, 0 }
uselistorder i64 (i64)* @sclone, { 2, 1, 0 }
uselistorder label LBL_16, { 0, 2, 1 }
uselistorder label LBL_4, { 3, 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | mov_write_gpmd_tag_10221 | mov_write_gpmd_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)
%6 = call i64 @FUNC(i64 %0, i64 1)
%7 = call i64 @FUNC(i64 %0, i64 0)
%8 = call i64 @FUNC(i64 %0, i64 %1)
ret i64 %8
uselistorder i64 (i64, i64)* @avio_wb16, { 1, 0 }
uselistorder i64 (i64, i64)* @avio_wb32, { 2, 1, 0 }
} | 0 |
BinRealVul | find_unused_picture_2252 | find_unused_picture | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.in.in.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%indvars.iv12.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 = trunc i64 %arg2 to i32
%6 = icmp eq i32 %5, 0
store i64 0, i64* %indvars.iv.reg2mem
br i1 %6, label LBL_5, label LBL_1
LBL_1:
%7 = add i64 %4, 80
%8 = inttoptr i64 %7 to i64*
store i64 0, i64* %indvars.iv12.reg2mem
br label LBL_2
LBL_2:
%indvars.iv12.reload = load i64, i64* %indvars.iv12.reg2mem
%9 = mul i64 %indvars.iv12.reload, 8
%10 = add i64 %9, %4
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = load i64, i64* %8, align 8
%16 = icmp eq i64 %10, %15
store i64 %indvars.iv12.reload, i64* %storemerge1.in.in.reg2mem
br i1 %16, label LBL_4, label LBL_8
LBL_4:
%indvars.iv.next13 = add nuw nsw i64 %indvars.iv12.reload, 1
%17 = icmp ult i64 %indvars.iv.next13, 10
store i64 %indvars.iv.next13, i64* %indvars.iv12.reg2mem
br i1 %17, label LBL_2, label LBL_7
LBL_5:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%18 = mul i64 %indvars.iv.reload, 8
%19 = add i64 %18, %4
%20 = call i64 @FUNC(i64 %4, i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
store i64 %indvars.iv.reload, i64* %storemerge1.in.in.reg2mem
br i1 %22, label LBL_6, label LBL_8
LBL_6:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%23 = icmp ult i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %23, label LBL_5, label LBL_7
LBL_7:
%24 = add i64 %4, 88
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = call i64 @FUNC(i64 %26, i64 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
call void @abort()
unreachable
LBL_8:
%storemerge1.in.in.reload = load i64, i64* %storemerge1.in.in.reg2mem
%storemerge1 = and i64 %storemerge1.in.in.reload, 4294967295
ret i64 %storemerge1
uselistorder i64 %indvars.iv.reload, { 1, 0, 2 }
uselistorder i64 %indvars.iv12.reload, { 1, 0, 2 }
uselistorder i64 %4, { 3, 4, 0, 1, 2 }
uselistorder i64* %indvars.iv12.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge1.in.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 10, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ramoops_get_next_prz_18169 | ramoops_get_next_prz | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3, i64* %arg4, i64* %arg5, i64 %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %arg3 to i32
%3 = trunc i64 %1 to i32
%4 = add i32 %3, 1
store i32 %4, i32* %arg2, align 4
%5 = icmp ult i32 %3, %2
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_4
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %1, 4294967296
%7 = ashr exact i64 %sext, 29
%8 = add i64 %7, %6
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = trunc i64 %arg7 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%13 = call i64 @FUNC(i64 %10)
%14 = call i64 @FUNC(i64 %10)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_3, label LBL_4
LBL_3:
%18 = ashr exact i64 %sext, 32
%19 = trunc i64 %arg6 to i32
%20 = bitcast i64* %arg5 to i32*
store i32 %19, i32* %20, align 4
store i64 %18, i64* %arg4, align 8
store i64 %10, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %10, { 0, 2, 1 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_4, { 2, 0, 1 }
} | 1 |
BinRealVul | qcow2_co_flush_3157 | qcow2_co_flush | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %0, i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %0)
%10 = and i64 %5, 4294967295
store i64 %10, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%11 = add i64 %0, 16
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = call i64 @FUNC(i64 %0, i64 %13)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %15, 0
%17 = icmp eq i1 %16, false
%18 = call i64 @FUNC(i64 %0)
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%19 = and i64 %14, 4294967295
store i64 %19, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%20 = load i64, i64* %3, align 8
%21 = call i64 @FUNC(i64 %20)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64)* @qemu_co_mutex_unlock, { 1, 0 }
uselistorder i64 (i64, i64)* @qcow2_cache_flush, { 1, 0 }
} | 0 |
BinRealVul | spatial_compose53i_dy_buffered_2106 | spatial_compose53i_dy_buffered | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = trunc i64 %1 to i32
%5 = add i32 %arg4, -1
%6 = add i32 %4, -1
%7 = zext i32 %5 to i64
%8 = zext i32 %6 to i64
%9 = call i64 @FUNC(i64 %8, i64 %7)
%10 = and i64 %1, 4294967295
%11 = call i64 @FUNC(i64 %10, i64 %7)
%12 = add i32 %4, 1
%13 = zext i32 %12 to i64
%14 = call i64 @FUNC(i64 %13, i64 %7)
%15 = add i64 %1, 2
%16 = and i64 %15, 4294967295
%17 = call i64 @FUNC(i64 %16, i64 %7)
%18 = add i64 %3, 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = add i64 %3, 16
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%sext = mul i64 %14, 4294967296
%24 = ashr exact i64 %sext, 32
%sext1 = mul i64 %arg5, 4294967296
%25 = ashr exact i64 %sext1, 32
%26 = mul nsw i64 %24, %25
%27 = and i64 %26, 4294967295
%28 = call i64 @FUNC(i64 %2, i64 %27)
%sext2 = mul i64 %17, 4294967296
%29 = ashr exact i64 %sext2, 32
%30 = mul nsw i64 %29, %25
%31 = and i64 %30, 4294967295
%32 = call i64 @FUNC(i64 %2, i64 %31)
%33 = icmp ult i32 %12, %arg4
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_2, label LBL_1
LBL_1:
%35 = call i64 @FUNC(i64 %23, i64 %28, i64 %32, i32 %arg3)
br label LBL_2
LBL_2:
%36 = icmp ult i32 %4, %arg4
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_4, label LBL_3
LBL_3:
%38 = call i64 @FUNC(i64 %20, i64 %23, i64 %28, i32 %arg3)
br label LBL_4
LBL_4:
%39 = icmp ult i32 %6, %arg4
%40 = icmp eq i1 %39, false
br i1 %40, label LBL_6, label LBL_5
LBL_5:
%41 = zext i32 %arg3 to i64
%42 = call i64 @FUNC(i64 %20, i64 %41)
br label LBL_6
LBL_6:
br i1 %37, label LBL_8, label LBL_7
LBL_7:
%43 = zext i32 %arg3 to i64
%44 = call i64 @FUNC(i64 %23, i64 %43)
br label LBL_8
LBL_8:
%45 = bitcast i64* %rdi to i32*
store i64 %28, i64* %19, align 8
store i64 %32, i64* %22, align 8
%46 = load i32, i32* %45, align 8
%47 = add i32 %46, 2
%48 = bitcast i64* %arg1 to i32*
store i32 %47, i32* %48, align 4
ret i64 %3
uselistorder i64 %28, { 2, 1, 0 }
uselistorder i64 %23, { 2, 1, 0 }
uselistorder i64 %20, { 1, 0 }
uselistorder i32 %4, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @horizontal_compose53i, { 1, 0 }
uselistorder i64 (i64, i64)* @slice_buffer_get_line, { 1, 0 }
uselistorder i64 4294967295, { 3, 4, 0, 1, 2 }
uselistorder i64 (i64, i64)* @mirror, { 3, 2, 1, 0 }
uselistorder i32 %arg3, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | minix_getattr_10472 | minix_getattr | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg3 to i64
%3 = ptrtoint i64* %arg2 to i64
%4 = call i64 @FUNC(i64 %3, i64 %2)
%5 = trunc i64 %1 to i32
%6 = icmp eq i32 %5, 1
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %2)
%9 = mul i64 %8, 2
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i64*
store i64 %9, i64* %11, align 8
br label LBL_3
LBL_2:
%12 = call i64 @FUNC(i64 %2)
%13 = mul i64 %12, 2
%14 = add i64 %2, 8
%15 = inttoptr i64 %14 to i64*
store i64 %13, i64* %15, align 8
br label LBL_3
LBL_3:
%16 = add i64 %2, 16
%17 = inttoptr i64 %16 to i64*
store i64 1024, i64* %17, align 8
ret i64 0
uselistorder i64 %2, { 1, 2, 3, 0, 4, 5 }
uselistorder i64 1024, { 2, 0, 1 }
} | 0 |
BinRealVul | tpm_register_model_15094 | tpm_register_model | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge23.reg2mem = alloca i32
store i32 0, i32* %storemerge23.reg2mem
br label LBL_1
LBL_1:
%storemerge23.reload = load i32, i32* %storemerge23.reg2mem
%0 = sext i32 %storemerge23.reload to i64
%1 = mul i64 %0, 4
%2 = add i64 %1, ptrtoint (i32** @gv_0 to i64)
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = icmp eq i32 %4, -1
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = trunc i64 %arg1 to i32
store i32 %7, i32* %3, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_3:
%8 = add nuw i32 %storemerge23.reload, 1
%9 = icmp ult i32 %8, 10
store i32 %8, i32* %storemerge23.reg2mem
br i1 %9, label LBL_1, label LBL_4
LBL_4:
%10 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0))
store i64 1, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %storemerge23.reg2mem, { 1, 0, 2 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | SProcXFixesQueryVersion_5217 | SProcXFixesQueryVersion | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 12
%5 = icmp eq i1 %4, false
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %arg1)
%7 = add i64 %arg1, 4
%8 = call i64 @FUNC(i64 %7)
store i64 %arg1, 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 %1, { 1, 0 }
uselistorder i64 %arg1, { 0, 2, 1 }
} | 0 |
BinRealVul | rtsp_cmd_pause_3534 | rtsp_cmd_pause | 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* %arg3 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 %arg2, i64 %4)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %5, i64 1)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%10 = add i64 %6, 16
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%.off = add i32 %12, -1
%switch = icmp ult i32 %.off, 2
br i1 %switch, label LBL_4, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i64 %5, i64 2)
store i64 %13, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
store i32 3, i32* %11, align 4
%14 = add i64 %6, 20
%15 = inttoptr i64 %14 to i32*
store i32 -1, i32* %15, align 4
%16 = call i64 @FUNC(i64 %5, i64 3)
%17 = add i64 %6, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i64 %19, i64 %3, i64 %2, i64 %1)
%21 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 %19, i64 %3, i64 %2, i64 %1)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %19, { 1, 0 }
uselistorder i64 %5, { 4, 3, 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @url_fprintf, { 1, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i64 (i64, i64)* @rtsp_reply_error, { 1, 0 }
} | 0 |
BinRealVul | ff_clean_h263_qscales_5177 | ff_clean_h263_qscales | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem24 = alloca i32
%storemerge6.reg2mem = alloca i32
%.reg2mem22 = alloca i64
%.reg2mem20 = alloca i32
%storemerge27.reg2mem = alloca i32
%.lcssa4.reg2mem = alloca i32
%.reg2mem18 = alloca i32
%storemerge38.reg2mem = alloca i32
%.reg2mem16 = alloca i64
%.reg2mem = alloca i32
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = add i64 %2, 24
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %2)
%7 = bitcast i64* %rdi to i32*
%8 = trunc i64 %1 to i32
%9 = icmp ugt i32 %8, 1
store i32 %8, i32* %.lcssa4.reg2mem
br i1 %9, label LBL_1, label LBL_5
LBL_1:
%10 = add i64 %2, 16
%11 = inttoptr i64 %10 to i64*
store i32 %8, i32* %.reg2mem
store i64 1, i64* %.reg2mem16
store i32 1, i32* %storemerge38.reg2mem
br label LBL_2
LBL_2:
%storemerge38.reload = load i32, i32* %storemerge38.reg2mem
%.reload17 = load i64, i64* %.reg2mem16
%.reload = load i32, i32* %.reg2mem
%12 = load i64, i64* %11, align 8
%13 = mul i64 %.reload17, 4
%14 = add i64 %12, %13
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = sext i32 %16 to i64
%18 = add i64 %5, %17
%19 = inttoptr i64 %18 to i8*
%20 = load i8, i8* %19, align 1
%21 = add i64 %14, -4
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = sext i32 %23 to i64
%25 = add i64 %5, %24
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = sext i8 %20 to i32
%29 = sext i8 %27 to i32
%30 = sub nsw i32 %28, %29
%31 = icmp slt i32 %30, 3
store i32 %.reload, i32* %.reg2mem18
br i1 %31, label LBL_4, label LBL_3
LBL_3:
%32 = add i8 %27, 2
store i8 %32, i8* %19, align 1
%.pre = load i32, i32* %7, align 8
store i32 %.pre, i32* %.reg2mem18
br label LBL_4
LBL_4:
%.reload19 = load i32, i32* %.reg2mem18
%33 = add i32 %storemerge38.reload, 1
%34 = zext i32 %.reload19 to i64
%35 = sext i32 %33 to i64
%36 = icmp slt i64 %35, %34
store i32 %.reload19, i32* %.reg2mem
store i64 %35, i64* %.reg2mem16
store i32 %33, i32* %storemerge38.reg2mem
store i32 %.reload19, i32* %.lcssa4.reg2mem
br i1 %36, label LBL_2, label LBL_5
LBL_5:
%.lcssa4.reload = load i32, i32* %.lcssa4.reg2mem
%37 = add i32 %.lcssa4.reload, -2
%38 = icmp slt i32 %37, 0
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_6, label LBL_10
LBL_6:
%40 = add i64 %2, 16
%41 = inttoptr i64 %40 to i64*
store i32 %37, i32* %storemerge27.reg2mem
br label LBL_7
LBL_7:
%storemerge27.reload = load i32, i32* %storemerge27.reg2mem
%42 = load i64, i64* %41, align 8
%43 = sext i32 %storemerge27.reload to i64
%44 = mul i64 %43, 4
%45 = add i64 %44, %42
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = sext i32 %47 to i64
%49 = add i64 %5, %48
%50 = inttoptr i64 %49 to i8*
%51 = load i8, i8* %50, align 1
%52 = add i64 %45, 4
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = sext i32 %54 to i64
%56 = add i64 %5, %55
%57 = inttoptr i64 %56 to i8*
%58 = load i8, i8* %57, align 1
%59 = sext i8 %51 to i32
%60 = sext i8 %58 to i32
%61 = sub nsw i32 %59, %60
%62 = icmp slt i32 %61, 3
br i1 %62, label LBL_9, label LBL_8
LBL_8:
%63 = add i8 %58, 2
store i8 %63, i8* %50, align 1
br label LBL_9
LBL_9:
%64 = add i32 %storemerge27.reload, -1
%65 = icmp slt i32 %64, 0
%66 = icmp eq i1 %65, false
store i32 %64, i32* %storemerge27.reg2mem
br i1 %66, label LBL_7, label LBL_10
LBL_10:
%67 = add i64 %2, 4
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = icmp eq i32 %69, 1
store i64 1, i64* %rax.0.reg2mem
br i1 %70, label LBL_17, label LBL_11
LBL_11:
%71 = load i32, i32* %7, align 8
%72 = zext i32 %71 to i64
%73 = icmp ugt i32 %71, 1
store i64 %72, i64* %rax.0.reg2mem
br i1 %73, label LBL_12, label LBL_17
LBL_12:
%74 = add i64 %2, 16
%75 = inttoptr i64 %74 to i64*
%76 = add i64 %2, 8
%77 = inttoptr i64 %76 to i64*
store i32 %71, i32* %.reg2mem20
store i64 1, i64* %.reg2mem22
store i32 1, i32* %storemerge6.reg2mem
br label LBL_13
LBL_13:
%storemerge6.reload = load i32, i32* %storemerge6.reg2mem
%.reload23 = load i64, i64* %.reg2mem22
%.reload21 = load i32, i32* %.reg2mem20
%78 = load i64, i64* %75, align 8
%79 = mul i64 %.reload23, 4
%80 = add i64 %78, %79
%81 = inttoptr i64 %80 to i32*
%82 = load i32, i32* %81, align 4
%83 = sext i32 %82 to i64
%84 = add i64 %5, %83
%85 = inttoptr i64 %84 to i8*
%86 = load i8, i8* %85, align 1
%87 = add i64 %80, -4
%88 = inttoptr i64 %87 to i32*
%89 = load i32, i32* %88, align 4
%90 = sext i32 %89 to i64
%91 = add i64 %5, %90
%92 = inttoptr i64 %91 to i8*
%93 = load i8, i8* %92, align 1
%94 = icmp eq i8 %86, %93
store i32 %.reload21, i32* %.reg2mem24
br i1 %94, label LBL_16, label LBL_14
LBL_14:
%95 = load i64, i64* %77, align 8
%96 = mul i64 %83, 4
%97 = add i64 %95, %96
%98 = inttoptr i64 %97 to i32*
%99 = load i32, i32* %98, align 4
%100 = urem i32 %99, 2
%101 = icmp eq i32 %100, 0
store i32 %.reload21, i32* %.reg2mem24
br i1 %101, label LBL_16, label LBL_15
LBL_15:
%102 = or i32 %99, 2
store i32 %102, i32* %98, align 4
%.pre13 = load i32, i32* %7, align 8
store i32 %.pre13, i32* %.reg2mem24
br label LBL_16
LBL_16:
%.reload25 = load i32, i32* %.reg2mem24
%103 = add i32 %storemerge6.reload, 1
%104 = zext i32 %.reload25 to i64
%105 = sext i32 %103 to i64
%106 = icmp slt i64 %105, %104
store i32 %.reload25, i32* %.reg2mem20
store i64 %105, i64* %.reg2mem22
store i32 %103, i32* %storemerge6.reg2mem
store i64 %104, i64* %rax.0.reg2mem
br i1 %106, label LBL_13, label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload25, { 1, 0 }
uselistorder i32 %99, { 1, 0 }
uselistorder i32 %.reload21, { 1, 0 }
uselistorder i32 %.reload19, { 0, 2, 1 }
uselistorder i32 %8, { 1, 0, 2 }
uselistorder i32* %7, { 0, 2, 1 }
uselistorder i64 %5, { 4, 5, 2, 3, 0, 1 }
uselistorder i64 %2, { 0, 1, 3, 2, 4, 5, 6 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem16, { 1, 0, 2 }
uselistorder i32* %storemerge38.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem18, { 0, 2, 1 }
uselistorder i32* %storemerge27.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem20, { 1, 0, 2 }
uselistorder i64* %.reg2mem22, { 1, 0, 2 }
uselistorder i32* %storemerge6.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem24, { 0, 3, 2, 1 }
uselistorder i32 2, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i8 2, { 1, 0 }
uselistorder i32 3, { 1, 0 }
uselistorder i64 -4, { 1, 0 }
uselistorder i64 4, { 0, 1, 5, 4, 2, 3 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | os_setup_post_17276 | os_setup_post | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1 = alloca i8, align 1
%0 = load i32, i32* inttoptr (i64 4210780 to i32*), align 4
%1 = icmp eq i32 %0, 0
store i32 0, i32* %sv_0.0.reg2mem
br i1 %1, label LBL_10, label LBL_1
LBL_1:
store i8 0, i8* %sv_1, align 1
%2 = bitcast i8* %sv_1 to i64*
br label LBL_2
LBL_2:
%3 = load i32, i32* inttoptr (i64 4210788 to i32*), align 4
%4 = call i32 @write(i32 %3, i64* nonnull %2, i32 1)
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = call i32* @__errno_location()
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 4
br i1 %9, label LBL_2, label LBL_4
LBL_4:
%10 = icmp eq i32 %4, 1
br i1 %10, label LBL_6, label LBL_5
LBL_5:
call void @exit(i32 1)
unreachable
LBL_6:
%11 = call i32 @chdir(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_8, label LBL_7
LBL_7:
call void @perror(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_1, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_8:
%13 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), i64 2)
%14 = trunc i64 %13 to i32
%15 = and i64 %13, 4294967295
%16 = call i64 @FUNC(i64 %15)
%17 = icmp eq i32 %14, -1
%18 = icmp eq i1 %17, false
store i32 %14, i32* %sv_0.0.reg2mem
br i1 %18, label LBL_10, label LBL_9
LBL_9:
call void @exit(i32 1)
unreachable
LBL_10:
%19 = call i64 @FUNC()
%20 = call i64 @FUNC()
%21 = load i32, i32* @gv_3, align 4
%22 = icmp eq i32 %21, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_12, label LBL_11
LBL_11:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%23 = call i32 @dup2(i32 %sv_0.0.reload, i32 0)
%24 = call i32 @dup2(i32 %sv_0.0.reload, i32 1)
%25 = call i32 @dup2(i32 %sv_0.0.reload, i32 2)
%26 = call i32 @close(i32 %sv_0.0.reload)
%27 = sext i32 %26 to i64
store i64 %27, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 (i32, i32)* @dup2, { 2, 1, 0 }
uselistorder void (i32)* @exit, { 2, 1, 0 }
uselistorder i32 0, { 2, 3, 4, 1, 0, 5 }
uselistorder i32 1, { 6, 7, 8, 9, 5, 10, 12, 4, 3, 2, 1, 0, 11 }
} | 1 |
BinRealVul | jbig2_decode_mmr_init_5127 | jbig2_decode_mmr_init | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i32* %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.04.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i32* %arg4 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg2 to i32
%3 = trunc i64 %arg3 to i32
%4 = bitcast i64* %arg1 to i32*
store i32 %2, i32* %4, align 4
%5 = add i64 %1, 4
%6 = inttoptr i64 %5 to i32*
store i32 %3, i32* %6, align 4
%7 = add i64 %1, 8
%8 = inttoptr i64 %7 to i64*
store i64 %0, i64* %8, align 8
%9 = add i64 %1, 16
%10 = inttoptr i64 %9 to i64*
store i64 %arg5, i64* %10, align 8
%11 = add i64 %1, 24
%12 = inttoptr i64 %11 to i64*
store i64 0, i64* %12, align 8
%13 = add i64 %1, 32
%14 = inttoptr i64 %13 to i32*
store i32 0, i32* %14, align 4
%15 = icmp eq i64 %arg5, 0
store i64 0, i64* %indvars.iv.reg2mem
store i32 0, i32* %sv_0.04.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %15, label LBL_2, label LBL_1
LBL_1:
%sv_0.04.reload = load i32, i32* %sv_0.04.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%16 = add i64 %indvars.iv.reload, %0
%17 = inttoptr i64 %16 to i8*
%18 = load i8, i8* %17, align 1
%19 = zext i8 %18 to i32
%indvars.iv.tr = trunc i64 %indvars.iv.reload to i32
%20 = mul i32 %indvars.iv.tr, 8
%21 = sub i32 24, %20
%22 = and i32 %21, 24
%23 = shl i32 %19, %22
%24 = or i32 %23, %sv_0.04.reload
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%25 = icmp ult i64 %indvars.iv.next, %arg5
%26 = icmp ult i64 %indvars.iv.next, 4
%or.cond = icmp eq i1 %26, %25
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %24, i32* %sv_0.04.reg2mem
store i32 %24, i32* %sv_0.0.lcssa.reg2mem
br i1 %or.cond, label LBL_1, label LBL_2
LBL_2:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%27 = add i64 %1, 36
%28 = inttoptr i64 %27 to i32*
store i32 %sv_0.0.lcssa.reload, i32* %28, align 4
ret i64 %1
uselistorder i64 %indvars.iv.next, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.04.reg2mem, { 2, 0, 1 }
uselistorder i32 24, { 1, 0 }
uselistorder i64 %arg5, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | cgit_print_http_headers_19213 | cgit_print_http_headers | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdx.1.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i8*, i8** @gv_0, align 8
%5 = icmp eq i8* %4, null
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i32 @strcmp(i8* nonnull %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_19, label LBL_2
LBL_2:
%8 = load i32, i32* @gv_2, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = load i64, i64* @gv_3, align 8
%11 = zext i32 %8 to i64
%12 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_4, i64 0, i64 0), i64 %11, i64 %10, i64 %3, i64 %2, i64 %1)
store i64 %10, i64* %rdx.0.reg2mem
br label LBL_4
LBL_4:
%13 = load i64, i64* @gv_5, align 8
%14 = icmp eq i64 %13, 0
%15 = load i64, i64* @gv_6, align 8
%16 = icmp eq i64 %15, 0
%or.cond = or i1 %14, %16
br i1 %or.cond, label LBL_6, label LBL_5
LBL_5:
%17 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_7, i64 0, i64 0), i64 %13, i64 %15, i64 %3, i64 %2, i64 %1)
store i64 %15, i64* %rdx.1.reg2mem
br label LBL_8
LBL_6:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
store i64 %rdx.0.reload, i64* %rdx.1.reg2mem
br i1 %14, label LBL_8, label LBL_7
LBL_7:
%18 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_8, i64 0, i64 0), i64 %13, i64 %rdx.0.reload, i64 %3, i64 %2, i64 %1)
store i64 %rdx.0.reload, i64* %rdx.1.reg2mem
br label LBL_8
LBL_8:
%rdx.1.reload = load i64, i64* %rdx.1.reg2mem
%19 = load i64, i64* @gv_9, align 8
%20 = icmp eq i64 %19, 0
br i1 %20, label LBL_10, label LBL_9
LBL_9:
%21 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_10, i64 0, i64 0), i64 %19, i64 %rdx.1.reload, i64 %3, i64 %2, i64 %1)
br label LBL_10
LBL_10:
%22 = load i64, i64* @gv_11, align 8
%23 = icmp eq i64 %22, 0
br i1 %23, label LBL_12, label LBL_11
LBL_11:
%24 = call i64 @FUNC(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_12, i64 0, i64 0), i64 %22, i64 %rdx.1.reload, i64 %3, i64 %2, i64 %1)
br label LBL_12
LBL_12:
%25 = load i32, i32* @gv_13, align 4
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_14, label LBL_13
LBL_13:
%28 = call i64 @FUNC(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_14, i64 0, i64 0))
br label LBL_14
LBL_14:
%29 = load i64, i64* @gv_15, align 8
%30 = call i64 @FUNC(i64 %29)
%31 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_16, i64 0, i64 0), i64 %30, i64 %rdx.1.reload, i64 %3, i64 %2, i64 %1)
%32 = load i64, i64* @gv_17, align 8
%33 = call i64 @FUNC(i64 %32)
%34 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_18, i64 0, i64 0), i64 %33, i64 %rdx.1.reload, i64 %3, i64 %2, i64 %1)
%35 = load i64, i64* @gv_19, align 8
%36 = icmp eq i64 %35, 0
br i1 %36, label LBL_16, label LBL_15
LBL_15:
%37 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_20, i64 0, i64 0), i64 %35, i64 %rdx.1.reload, i64 %3, i64 %2, i64 %1)
br label LBL_16
LBL_16:
%38 = call i64 @FUNC(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_21, i64 0, i64 0))
%39 = load i8*, i8** @gv_22, align 8
%40 = ptrtoint i8* %39 to i64
%41 = icmp eq i8* %39, null
store i64 %40, i64* %rax.0.reg2mem
br i1 %41, label LBL_19, label LBL_17
LBL_17:
%42 = call i32 @strcmp(i8* nonnull %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_23, i64 0, i64 0))
%43 = sext i32 %42 to i64
%44 = icmp eq i32 %42, 0
%45 = icmp eq i1 %44, false
store i64 %43, i64* %rax.0.reg2mem
br i1 %45, label LBL_19, label LBL_18
LBL_18:
call void @exit(i32 0)
unreachable
LBL_19:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %rdx.1.reload, { 2, 1, 0, 3, 4 }
uselistorder i64 %rdx.0.reload, { 0, 2, 1 }
uselistorder i64 %13, { 1, 0, 2 }
uselistorder i64 %3, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %2, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %rdx.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @http_date, { 1, 0 }
uselistorder i64 (i8*)* @html, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @htmlf, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
uselistorder i32 1, { 5, 4, 3, 2, 6, 1, 0 }
uselistorder label LBL_19, { 1, 2, 0 }
} | 1 |
BinRealVul | Jsi_Lstat_8391 | Jsi_Lstat | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%0 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64* nonnull %sv_0)
%1 = icmp eq i64 %0, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = inttoptr i64 %0 to i64*
%3 = load i64, i64* %2, align 8
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
%spec.select = select i1 %5, i64 %arg1, i64 4294967295
ret i64 %spec.select
LBL_2:
ret i64 4294967295
} | 0 |
BinRealVul | pt_migrate_13233 | pt_migrate | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 16
%2 = call i64 @FUNC(i64 %1)
%3 = add i64 %0, 24
%4 = inttoptr i64 %3 to i32*
store i64 %1, i64* %storemerge1.reg2mem
br label LBL_1
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%5 = load i32, i32* %4, align 4
%6 = add i64 %storemerge1.reload, 16
%7 = zext i32 %5 to i64
%8 = call i64 @FUNC(i64 %6, i64 %7)
%9 = inttoptr i64 %storemerge1.reload to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, %0
%12 = icmp eq i1 %11, false
store i64 %10, i64* %storemerge1.reg2mem
br i1 %12, label LBL_1, label LBL_2
LBL_2:
%13 = call i64 @FUNC(i64 %1)
ret i64 %13
uselistorder i64 %storemerge1.reload, { 1, 0 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | migrate_fd_cleanup_2082 | migrate_fd_cleanup | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
store i64 0, i64* %arg1, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC()
%7 = call i64 @FUNC()
%8 = add i64 %0, 20
%9 = call i64 @FUNC(i64 %8)
%10 = call i64 @FUNC()
%11 = load i64, i64* %3, align 8
%12 = call i64 @FUNC(i64 %11)
store i64 0, i64* %3, align 8
br label LBL_2
LBL_2:
%13 = add i64 %0, 16
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 1
%17 = icmp eq i1 %16, false
store i32 %15, i32* %.reg2mem
br i1 %17, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i32 65, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0))
%.pr = load i32, i32* %14, align 4
store i32 %.pr, i32* %.reg2mem
br label LBL_4
LBL_4:
%.reload = load i32, i32* %.reg2mem
%18 = icmp eq i32 %.reload, 2
br i1 %18, label LBL_7, label LBL_5
LBL_5:
%19 = call i64 @FUNC()
%20 = load i32, i32* %14, align 4
%21 = icmp eq i32 %20, 3
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_7, label LBL_6
LBL_6:
%23 = call i64 @FUNC(i64 %0, i64 3, i64 4)
br label LBL_7
LBL_7:
%24 = call i64 @FUNC(i64* nonnull @gv_3, i64 %0)
ret i64 %24
uselistorder i32* %14, { 1, 0, 2 }
uselistorder i64 %0, { 2, 1, 3, 0, 4, 5 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | decode_i_block_3583 | decode_i_block | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.be.reg2mem = alloca i32
%sv_0.01.reg2mem = alloca i32
%.reg2mem3 = alloca i64
%.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 16
%7 = call i64 @FUNC(i64 %6)
%8 = trunc i64 %7 to i32
%9 = icmp sgt i32 %8, 1
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %6)
%11 = add i64 %5, 24
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = and i64 %10, 4294967295
%15 = call i64 @FUNC(i64 %13, i64 0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i64 %14, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_13
LBL_2:
%16 = add i64 %5, 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = add i64 %5, 32
%20 = call i64 @FUNC(i64 %19, i64 %18, i64 10, i64 3)
%21 = trunc i64 %20 to i32
%22 = icmp ult i32 %21, 16
br i1 %22, label LBL_4, label LBL_3
LBL_3:
%23 = add i64 %5, 24
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %25, i64 0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 3, i64 %2, i64 %1)
br label LBL_5
LBL_4:
%27 = icmp eq i32 %21, 0
store i32 0, i32* %sv_1.0.reg2mem
br i1 %27, label LBL_6, label LBL_5
LBL_5:
%28 = and i64 %20, 4294967295
%29 = call i64 @FUNC(i64 %6, i64 %28)
%30 = trunc i64 %29 to i32
store i32 %30, i32* %sv_1.0.reg2mem
br label LBL_6
LBL_6:
%31 = ptrtoint i64* %arg2 to i64
%32 = trunc i64 %3 to i32
%33 = trunc i64 %4 to i32
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%34 = load i32, i32* bitcast (i32** @gv_2 to i32*), align 8
%35 = mul i32 %34, %sv_1.0.reload
%36 = add i32 %35, %32
%37 = bitcast i64* %arg2 to i32*
store i32 %36, i32* %37, align 4
%38 = bitcast i64* %arg1 to i32*
store i32 %33, i32* %38, align 4
%39 = load i64, i64* %17, align 8
%40 = call i64 @FUNC(i64 %19, i64 %39, i64 10, i64 3)
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 0
store i32 %41, i32* %.reg2mem
store i64 %40, i64* %.reg2mem3
store i32 1, i32* %sv_0.01.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %42, label LBL_13, label LBL_7
LBL_7:
%sv_0.01.reload = load i32, i32* %sv_0.01.reg2mem
%.reload = load i32, i32* %.reg2mem
%43 = icmp eq i32 %.reload, 240
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_10, label LBL_8
LBL_8:
%45 = add i32 %sv_0.01.reload, 16
store i32 %45, i32* %sv_0.0.be.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.be.reload = load i32, i32* %sv_0.0.be.reg2mem
%46 = load i64, i64* %17, align 8
%47 = call i64 @FUNC(i64 %19, i64 %46, i64 10, i64 3)
%48 = trunc i64 %47 to i32
%49 = icmp eq i32 %48, 0
store i32 %48, i32* %.reg2mem
store i64 %47, i64* %.reg2mem3
store i32 %sv_0.0.be.reload, i32* %sv_0.01.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %49, label LBL_13, label LBL_7
LBL_10:
%.reload4 = load i64, i64* %.reg2mem3
%50 = urem i64 %.reload4, 16
%51 = call i64 @FUNC(i64 %6, i64 %50)
%52 = ashr i32 %.reload, 4
%53 = add i32 %sv_0.01.reload, %52
%54 = icmp slt i32 %53, 64
br i1 %54, label LBL_12, label LBL_11
LBL_11:
%55 = add i64 %5, 24
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = zext i32 %53 to i64
%59 = call i64 @FUNC(i64 %57, i64 0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_3, i64 0, i64 0), i64 %58, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_13
LBL_12:
%60 = trunc i64 %51 to i32
%61 = sext i32 %53 to i64
%62 = mul i64 %61, 4
%63 = add i64 %62, ptrtoint (i32** @gv_4 to i64)
%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_2 to i64)
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = add i64 %67, %31
%72 = mul i32 %70, %60
%73 = inttoptr i64 %71 to i32*
store i32 %72, i32* %73, align 4
%74 = add i32 %53, 1
%75 = icmp sgt i32 %74, 63
store i32 %74, i32* %sv_0.0.be.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %75, label LBL_13, label LBL_9
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %67, { 1, 0 }
uselistorder i32 %53, { 1, 2, 0, 3 }
uselistorder i32 %sv_0.01.reload, { 1, 0 }
uselistorder i64 %19, { 1, 0, 2 }
uselistorder i64* %17, { 1, 0, 2 }
uselistorder i64 %6, { 2, 1, 0, 3 }
uselistorder i64 %5, { 1, 0, 3, 2, 4, 5 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem3, { 0, 2, 1 }
uselistorder i32* %sv_0.01.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.be.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 5, 2, 3, 4 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i32** @gv_2, { 1, 0 }
uselistorder i64 (i64, i64)* @get_xbits, { 1, 0 }
uselistorder i32 0, { 2, 1, 0, 3 }
uselistorder i32 16, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @get_vlc2, { 2, 0, 1 }
uselistorder i64 3, { 2, 0, 1, 3 }
uselistorder i64 10, { 2, 1, 3, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 2, 1, 0 }
uselistorder i64 4294967295, { 1, 0, 2 }
uselistorder i64 (i64)* @get_bits_left, { 1, 0 }
uselistorder label LBL_13, { 0, 3, 1, 2, 4 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | generate_subkeys_3881 | generate_subkeys | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 16)
%2 = call i64 @FUNC(i64 %0, i64* nonnull %sv_1, i64 16, i64* nonnull %sv_1, i64* nonnull %sv_0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = and i64 %2, 4294967295
store i64 %5, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%6 = add i64 %0, 8
%7 = call i64 @FUNC(i64 %6, i64* nonnull %sv_1)
%8 = add i64 %0, 24
%9 = inttoptr i64 %6 to i64*
%10 = call i64 @FUNC(i64 %8, i64* %9)
%11 = call i64 @FUNC(i64* nonnull %sv_1, i64 16)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64*)* @multiply_by_u, { 1, 0 }
} | 0 |
BinRealVul | qvirtio_pci_device_disable_2374 | qvirtio_pci_device_disable | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%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 = zext i32 %3 to i64
%5 = call i64 @FUNC(i64 %0, i64 %4)
ret i64 %5
uselistorder i64 %0, { 1, 0 }
} | 0 |
BinRealVul | ir_lirc_unregister_4697 | ir_lirc_unregister | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = add nuw nsw i64 %2, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %6, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = call i64 @FUNC(i64 %10)
ret i64 0
uselistorder i64 %2, { 1, 0 }
uselistorder i64 (i64)* @kfree, { 1, 0 }
} | 0 |
BinRealVul | swf_write_trailer_3953 | swf_write_trailer | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i64
%sv_0.14.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = add i64 %2, 24
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = trunc i64 %1 to i32
%7 = icmp eq i32 %6, 0
store i64 0, i64* %sv_0.1.lcssa.reg2mem
br i1 %7, label LBL_3, label LBL_1
LBL_1:
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = and i64 %1, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge5.reg2mem
store i64 0, i64* %sv_0.14.reg2mem
br label LBL_2
LBL_2:
%sv_0.14.reload = load i64, i64* %sv_0.14.reg2mem
%storemerge5.reload = load i32, i32* %storemerge5.reg2mem
%.reload = load i64, i64* %.reg2mem
%12 = mul i64 %.reload, 8
%13 = add i64 %12, %10
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp eq i32 %19, 1
%21 = icmp eq i1 %20, false
%spec.select = select i1 %21, i64 %sv_0.14.reload, i64 %17
%22 = add i32 %storemerge5.reload, 1
%23 = sext i32 %22 to i64
%24 = icmp sgt i64 %11, %23
store i64 %23, i64* %.reg2mem
store i32 %22, i32* %storemerge5.reg2mem
store i64 %spec.select, i64* %sv_0.14.reg2mem
store i64 %spec.select, i64* %sv_0.1.lcssa.reg2mem
br i1 %24, label LBL_2, label LBL_3
LBL_3:
%25 = add i64 %2, 16
%sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem
%26 = call i64 @FUNC(i64 %2, i64 0)
%27 = call i64 @FUNC(i64 %2)
%28 = call i64 @FUNC(i64 %25)
%29 = call i64 @FUNC(i64 %25)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
%33 = icmp eq i64 %sv_0.1.lcssa.reload, 0
%or.cond = or i1 %33, %32
br i1 %or.cond, label LBL_5, label LBL_4
LBL_4:
%34 = inttoptr i64 %5 to i32*
%35 = call i64 @FUNC(i64 %25)
%36 = call i64 @FUNC(i64 %25, i64 4, i64 0)
%37 = and i64 %35, 4294967295
%38 = call i64 @FUNC(i64 %25, i64 %37)
%39 = load i32, i32* %34, align 4
%40 = zext i32 %39 to i64
%41 = call i64 @FUNC(i64 %25, i64 %40, i64 0)
%42 = add i64 %sv_0.1.lcssa.reload, 4
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = zext i32 %44 to i64
%46 = call i64 @FUNC(i64 %25, i64 %45)
%47 = call i64 @FUNC(i64 %25, i64 %37, i64 0)
br label LBL_5
LBL_5:
%48 = add i64 %5, 8
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = call i64 @FUNC(i64 %50)
ret i64 0
uselistorder i64 %25, { 3, 2, 4, 7, 6, 5, 0, 1 }
uselistorder i64 %2, { 2, 1, 3, 0, 4 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge5.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.14.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i64, i64)* @url_fseek, { 2, 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 8, { 1, 0, 2 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | skb_vlan_pop_9585 | skb_vlan_pop | define i64 @FUNC(i16* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i64
%.pre-phi5.reg2mem = alloca i16*
%0 = ptrtoint i16* %arg1 to i64
%sv_0 = alloca i16, align 2
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
store i16 0, i16* %arg1, align 2
%.pre = add i64 %0, 2
%.pre4 = inttoptr i64 %.pre to i16*
store i16* %.pre4, i16** %.pre-phi5.reg2mem
br label LBL_4
LBL_2:
%6 = add i64 %0, 2
%7 = inttoptr i64 %6 to i16*
%8 = load i16, i16* %7, align 2
%9 = zext i16 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %13, label LBL_3, label LBL_7
LBL_3:
%14 = bitcast i16* %sv_0 to i64*
%15 = call i64 @FUNC(i64 %0, i64* nonnull %14)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
store i16* %7, i16** %.pre-phi5.reg2mem
store i64 %15, i64* %rax.0.shrunk.reg2mem
br i1 %17, label LBL_4, label LBL_7
LBL_4:
%.pre-phi5.reload = load i16*, i16** %.pre-phi5.reg2mem
%18 = load i16, i16* %.pre-phi5.reload, align 2
%19 = zext i16 %18 to i64
%20 = call i64 @FUNC(i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %23, label LBL_5, label LBL_7
LBL_5:
%24 = load i16, i16* %.pre-phi5.reload, align 2
%25 = bitcast i16* %sv_0 to i64*
%26 = call i64 @FUNC(i64 %0, i64* nonnull %25)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
%30 = icmp eq i1 %29, false
store i64 %26, i64* %rax.0.shrunk.reg2mem
br i1 %30, label LBL_6, label LBL_7
LBL_6:
%31 = load i16, i16* %sv_0, align 2
%32 = zext i16 %31 to i64
%33 = zext i16 %24 to i64
%34 = call i64 @FUNC(i64 %0, i64 %33, i64 %32)
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_7
LBL_7:
%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 i16* %sv_0, { 0, 2, 1 }
uselistorder i64 %0, { 1, 2, 3, 4, 0, 5 }
uselistorder i16** %.pre-phi5.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i64 (i64, i64*)* @__skb_vlan_pop, { 1, 0 }
uselistorder i64 (i64)* @eth_type_vlan, { 1, 0 }
uselistorder i64 2, { 1, 0 }
uselistorder i1 false, { 1, 4, 2, 0, 3, 5, 6 }
uselistorder label LBL_7, { 4, 0, 1, 2, 3 }
} | 0 |
BinRealVul | gd_vc_chr_write_1056 | gd_vc_chr_write | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = and i64 %arg3, 4294967295
ret i64 %0
} | 0 |
BinRealVul | get_bits_15161 | get_bits | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%.reg2mem6 = alloca i32
%sv_0.03.reg2mem = alloca i32
%.in.reg2mem = alloca i32
%.reg2mem4 = alloca i32
%.reg2mem = alloca i8
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
store i64 %0, i64* %rdi, align 8
%1 = trunc i64 %arg2 to i32
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = sub i64 %4, %0
%6 = add i64 %0, 16
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = sub i32 %1, %8
%10 = ashr i32 %9, 8
%11 = sext i32 %10 to i64
%12 = icmp slt i64 %5, %11
store i64 4294967274, i64* %storemerge.reg2mem
br i1 %12, label LBL_7, label LBL_1
LBL_1:
%13 = add i32 %1, -1
%14 = icmp slt i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 0, i64* %storemerge.reg2mem
br i1 %15, label LBL_2, label LBL_7
LBL_2:
%16 = trunc i64 %0 to i8
%17 = bitcast i64* %rdi to i8*
store i8 %16, i8* %.reg2mem
store i32 %8, i32* %.reg2mem4
store i32 %13, i32* %.in.reg2mem
store i32 0, i32* %sv_0.03.reg2mem
br label LBL_3
LBL_3:
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%.in.reload = load i32, i32* %.in.reg2mem
%.reload5 = load i32, i32* %.reg2mem4
%18 = icmp eq i32 %.reload5, 0
%19 = icmp eq i1 %18, false
store i32 %.reload5, i32* %.reg2mem6
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%.reload = load i8, i8* %.reg2mem
%20 = icmp eq i8 %.reload, -1
%21 = select i1 %20, i32 7, i32 8
store i32 %21, i32* %7, align 4
%22 = load i64, i64* %rdi, align 8
%23 = add i64 %22, 1
store i64 %23, i64* %arg1, align 8
%.pre = load i32, i32* %7, align 4
store i32 %.pre, i32* %.reg2mem6
br label LBL_5
LBL_5:
%24 = mul i32 %sv_0.03.reload, 2
%.reload7 = load i32, i32* %.reg2mem6
%25 = add i32 %.reload7, -1
store i32 %25, i32* %7, align 4
%26 = load i8, i8* %17, align 8
%27 = zext i8 %26 to i32
%28 = urem i32 %25, 32
%29 = lshr i32 %27, %28
%30 = urem i32 %29, 2
%31 = or i32 %30, %24
%32 = add i32 %.in.reload, -1
%33 = icmp slt i32 %32, 0
%34 = icmp eq i1 %33, false
store i8 %26, i8* %.reg2mem
store i32 %25, i32* %.reg2mem4
store i32 %32, i32* %.in.reg2mem
store i32 %31, i32* %sv_0.03.reg2mem
br i1 %34, label LBL_3, label LBL_6
LBL_6:
%phitmp = zext i32 %31 to i64
store i64 %phitmp, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %31, { 1, 0 }
uselistorder i32* %7, { 2, 0, 1, 3 }
uselistorder i64* %rdi, { 1, 0, 2 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem4, { 1, 0, 2 }
uselistorder i32* %.in.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.03.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem6, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i32 2, { 1, 0 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i32 0, { 3, 2, 0, 1 }
uselistorder i32 -1, { 2, 1, 0 }
uselistorder label LBL_7, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | i40evf_free_all_rx_resources_18570 | i40evf_free_all_rx_resources | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
br i1 %4, label LBL_5, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 8
%7 = inttoptr i64 %6 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%8 = load i64, i64* %7, align 8
%9 = mul i64 %.reload, 8
%10 = add i64 %8, %9
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %10)
br label LBL_4
LBL_4:
%15 = add i32 %storemerge1.reload, 1
%16 = sext i32 %15 to i64
%17 = icmp sgt i64 %3, %16
store i64 %16, i64* %.reg2mem
store i32 %15, i32* %storemerge1.reg2mem
br i1 %17, label LBL_2, label LBL_5
LBL_5:
ret i64 %3
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | save_admin_config_8400 | save_admin_config | define i64 @FUNC(i8* %arg1, i8* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = bitcast i64* %arg3 to i8*
store i8 0, i8* %1, align 1
%2 = load [11 x i8]*, [11 x i8]** @gv_0, align 8
%3 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%4 = call i32 (i8*, i32, ...) @open(i8* %3, i32 2)
%5 = icmp slt i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_1, i64 0, i64 0))
%8 = inttoptr i64 %7 to i8*
%9 = call i32 (i8*, i8*, ...) @sprintf(i8* %1, i8* %8)
%10 = call i32 @strlen(i8* %1)
%11 = sext i32 %10 to i64
%12 = add i64 %11, %0
%13 = inttoptr i64 %12 to i16*
store i16 8250, i16* %13, align 2
%14 = add i64 %12, 2
%15 = inttoptr i64 %14 to i8*
store i8 0, i8* %15, align 1
%16 = call i32* @__errno_location()
%17 = load i32, i32* %16, align 4
%18 = call i8* @strerror(i32 %17)
%19 = call i8* @strcat(i8* %1, i8* %18)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_2:
%20 = call i32 @lseek(i32 %4, i32 0, i32 2)
%21 = call i32 @lseek(i32 %4, i32 0, i32 0)
%22 = sext i32 %20 to i64
%23 = call i32 @strlen(i8* %arg2)
%24 = sext i32 %23 to i64
%25 = add nsw i64 %22, 10
%26 = add nsw i64 %25, %24
%27 = call i64 @FUNC(i64 %26)
%28 = inttoptr i64 %27 to i64*
%29 = call i32 @read(i32 %4, i64* %28, i32 %20)
%30 = add i64 %27, %22
%31 = inttoptr i64 %30 to i8*
store i8 0, i8* %31, align 1
%32 = ptrtoint i8* %arg1 to i64
%33 = call i64 @FUNC(i64 %27, i64 %32)
%34 = add i64 %33, 1
%35 = call i64 @FUNC(i64 %34)
%36 = icmp eq i64 %35, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %36, label LBL_4, label LBL_3
LBL_3:
%37 = call i64 @FUNC(i64 %35)
store i64 %37, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%38 = inttoptr i64 %33 to i8*
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%39 = call i32 (i8*, i8*, ...) @sprintf(i8* %38, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i8* %arg1)
%40 = call i8* @strcat(i8* %38, i8* %arg2)
%41 = call i32 @strlen(i8* %38)
%42 = sext i32 %41 to i64
%43 = add i64 %33, %42
%44 = inttoptr i64 %43 to i32*
store i32 168626701, i32* %44, align 4
%45 = add i64 %43, 4
%46 = inttoptr i64 %45 to i8*
store i8 0, i8* %46, align 1
br i1 %36, label LBL_6, label LBL_5
LBL_5:
%47 = call i32 @strlen(i8* %arg2)
%48 = sext i32 %47 to i64
%49 = add nsw i64 %22, 1
%50 = add nsw i64 %49, %48
%51 = call i64 @FUNC(i64 %33, i64 %sv_0.0.reload, i64 %50)
%52 = call i64 @FUNC(i64 %sv_0.0.reload)
br label LBL_6
LBL_6:
%53 = inttoptr i64 %27 to i8*
%54 = call i32 @strlen(i8* %arg2)
%55 = add i32 %20, 10
%56 = add i32 %55, %54
%57 = zext i32 %56 to i64
%58 = call i64 @FUNC(i64 %27, i64 %57)
%59 = call i32 @lseek(i32 %4, i32 0, i32 0)
%60 = call i32 @strlen(i8* %53)
%61 = call i32 @write(i32 %4, i64* %28, i32 %60)
%62 = call i32 @strlen(i8* %53)
%63 = icmp slt i32 %61, %62
br i1 %63, label LBL_7, label LBL_8
LBL_7:
%64 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0))
%65 = inttoptr i64 %64 to i8*
%66 = call i32 (i8*, i8*, ...) @sprintf(i8* %1, i8* %65)
%67 = call i32 @strlen(i8* %1)
%68 = sext i32 %67 to i64
%69 = add i64 %68, %0
%70 = inttoptr i64 %69 to i16*
store i16 8250, i16* %70, align 2
%71 = add i64 %69, 2
%72 = inttoptr i64 %71 to i8*
store i8 0, i8* %72, align 1
%73 = call i32* @__errno_location()
%74 = load i32, i32* %73, align 4
%75 = call i8* @strerror(i32 %74)
%76 = call i8* @strcat(i8* %1, i8* %75)
%77 = call i32 @close(i32 %4)
%78 = call i64 @FUNC(i64 %27)
store i64 0, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%79 = zext i32 %4 to i64
%80 = call i64 @FUNC(i64 %79)
%81 = call i32 @close(i32 %4)
%82 = call i64 @FUNC(i64 %27)
%83 = call i64 @FUNC(i64 1)
store i64 1, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %69, { 1, 0 }
uselistorder i64 %43, { 1, 0 }
uselistorder i8* %38, { 2, 1, 0 }
uselistorder i64 %33, { 1, 0, 2, 3 }
uselistorder i64 %27, { 2, 1, 3, 4, 5, 0, 6 }
uselistorder i64 %22, { 1, 0, 2 }
uselistorder i64 %12, { 1, 0 }
uselistorder i32 %4, { 1, 0, 2, 4, 3, 5, 7, 6, 8 }
uselistorder i8* %1, { 3, 4, 5, 0, 1, 2, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i32 (i32)* @close, { 1, 0 }
uselistorder i64 (i64)* @xfree, { 2, 1, 0 }
uselistorder i64 1, { 0, 3, 2, 4, 1 }
uselistorder i32 (i32, i32, i32)* @lseek, { 3, 2, 1, 0 }
uselistorder i8* (i32)* @strerror, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 (i8*, i8*, ...)* @sprintf, { 2, 1, 0 }
uselistorder i64 (i8*)* @loc, { 1, 0 }
uselistorder i32 0, { 0, 1, 2, 3, 4, 6, 5 }
uselistorder i8* %arg2, { 1, 0, 2, 3 }
} | 0 |
BinRealVul | php_escape_shell_arg_12612 | php_escape_shell_arg | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%sv_1.2.lcssa.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%.reg2mem = alloca i8
%sv_1.21.reg2mem = alloca i32
%storemerge2.reg2mem = alloca i32
%0 = inttoptr i64 %arg1 to i8*
%1 = call i32 @strlen(i8* %0)
%2 = mul i32 %1, 4
%3 = or i32 %2, 2
%4 = sext i32 %3 to i64
%5 = call i64 @FUNC(i64 %4, i64 0)
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = inttoptr i64 %7 to i8*
store i8 39, i8* %8, align 1
%9 = icmp sgt i32 %1, 0
store i32 0, i32* %storemerge2.reg2mem
store i32 1, i32* %sv_1.21.reg2mem
store i32 1, i32* %sv_1.2.lcssa.reg2mem
br i1 %9, label LBL_1, label LBL_8
LBL_1:
%sv_1.21.reload = load i32, i32* %sv_1.21.reg2mem
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%10 = sub i32 %1, %storemerge2.reload
%11 = sext i32 %10 to i64
%12 = sext i32 %storemerge2.reload to i64
%13 = add i64 %12, %arg1
%14 = call i64 @FUNC(i64 %13, i64 %11)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %15, 0
store i32 %sv_1.21.reload, i32* %sv_1.1.reg2mem
store i32 %storemerge2.reload, i32* %sv_2.0.reg2mem
br i1 %16, label LBL_7, label LBL_2
LBL_2:
%17 = icmp slt i32 %15, 2
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = load i64, i64* %6, align 8
%19 = sext i32 %sv_1.21.reload to i64
%20 = add i64 %18, %19
%21 = inttoptr i64 %20 to i64*
%22 = inttoptr i64 %13 to i64*
%23 = call i64* @memcpy(i64* %21, i64* %22, i32 %15)
%24 = add i32 %sv_1.21.reload, %15
%25 = add i32 %storemerge2.reload, -1
%26 = add i32 %25, %15
store i32 %24, i32* %sv_1.1.reg2mem
store i32 %26, i32* %sv_2.0.reg2mem
br label LBL_7
LBL_4:
%27 = inttoptr i64 %13 to i8*
%28 = load i8, i8* %27, align 1
%29 = icmp eq i8 %28, 39
%30 = icmp eq i1 %29, false
store i8 %28, i8* %.reg2mem
store i32 %sv_1.21.reload, i32* %sv_1.0.reg2mem
br i1 %30, label LBL_6, label LBL_5
LBL_5:
%31 = load i64, i64* %6, align 8
%32 = add i32 %sv_1.21.reload, 1
%33 = sext i32 %sv_1.21.reload to i64
%34 = add i64 %31, %33
%35 = inttoptr i64 %34 to i8*
store i8 39, i8* %35, align 1
%36 = load i64, i64* %6, align 8
%37 = add i32 %sv_1.21.reload, 2
%38 = sext i32 %32 to i64
%39 = add i64 %36, %38
%40 = inttoptr i64 %39 to i8*
store i8 92, i8* %40, align 1
%41 = load i64, i64* %6, align 8
%42 = add i32 %sv_1.21.reload, 3
%43 = sext i32 %37 to i64
%44 = add i64 %41, %43
%45 = inttoptr i64 %44 to i8*
store i8 39, i8* %45, align 1
%.pre = load i8, i8* %27, align 1
store i8 %.pre, i8* %.reg2mem
store i32 %42, i32* %sv_1.0.reg2mem
br label LBL_6
LBL_6:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%.reload = load i8, i8* %.reg2mem
%46 = load i64, i64* %6, align 8
%47 = add i32 %sv_1.0.reload, 1
%48 = sext i32 %sv_1.0.reload to i64
%49 = add i64 %46, %48
%50 = inttoptr i64 %49 to i8*
store i8 %.reload, i8* %50, align 1
store i32 %47, i32* %sv_1.1.reg2mem
store i32 %storemerge2.reload, i32* %sv_2.0.reg2mem
br label LBL_7
LBL_7:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_1.1.reload = load i32, i32* %sv_1.1.reg2mem
%51 = add i32 %sv_2.0.reload, 1
%52 = icmp sgt i32 %1, %51
store i32 %51, i32* %storemerge2.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.21.reg2mem
store i32 %sv_1.1.reload, i32* %sv_1.2.lcssa.reg2mem
br i1 %52, label LBL_1, label LBL_8
LBL_8:
%53 = or i32 %2, 3
%54 = sext i32 %53 to i64
%sv_1.2.lcssa.reload = load i32, i32* %sv_1.2.lcssa.reg2mem
%55 = load i64, i64* %6, align 8
%56 = add i32 %sv_1.2.lcssa.reload, 1
%57 = sext i32 %sv_1.2.lcssa.reload to i64
%58 = add i64 %55, %57
%59 = inttoptr i64 %58 to i8*
store i8 39, i8* %59, align 1
%60 = load i64, i64* %6, align 8
%61 = sext i32 %56 to i64
%62 = add i64 %60, %61
%63 = inttoptr i64 %62 to i8*
store i8 0, i8* %63, align 1
%64 = sub nsw i64 %54, %61
%65 = icmp ult i64 %64, 4097
store i64 %5, i64* %sv_0.0.reg2mem
br i1 %65, label LBL_10, label LBL_9
LBL_9:
%66 = call i64 @FUNC(i64 %5, i64 %61, i64 0)
store i64 %66, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%67 = add i64 %sv_0.0.reload, 8
%68 = inttoptr i64 %67 to i64*
store i64 %61, i64* %68, align 8
ret i64 %sv_0.0.reload
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %61, { 2, 1, 3, 0 }
uselistorder i32 %sv_1.2.lcssa.reload, { 1, 0 }
uselistorder i32 %15, { 1, 0, 2, 3, 4 }
uselistorder i32 %storemerge2.reload, { 0, 2, 1, 4, 3 }
uselistorder i32 %sv_1.21.reload, { 6, 5, 4, 3, 1, 7, 2, 0 }
uselistorder i64* %6, { 0, 1, 6, 3, 4, 5, 2, 7 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i32 %1, { 2, 3, 1, 0 }
uselistorder i32* %storemerge2.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.21.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.1.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %sv_2.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i32 3, { 1, 0 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder i8 39, { 3, 1, 2, 0, 4 }
uselistorder i32 1, { 12, 13, 10, 11, 1, 7, 9, 8, 6, 5, 4, 3, 2, 0 }
uselistorder label LBL_7, { 1, 2, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | loop_attr_backing_file_show_10297 | loop_attr_backing_file_show | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = call i64 @FUNC(i64 %1)
%3 = icmp eq i64 %1, 0
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = call i64 @FUNC(i64 0)
store i64 -1, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_2:
%5 = ptrtoint i64* %arg2 to i64
%6 = call i64 @FUNC(i64 %1, i64 %5, i64 4095)
%7 = call i64 @FUNC(i64 %1)
%8 = icmp eq i64 %6, 0
%9 = icmp eq i1 %8, false
store i64 -1, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_3, label LBL_4
LBL_3:
%10 = inttoptr i64 %6 to i8*
%11 = call i32 @strlen(i8* %10)
%12 = sext i32 %11 to i64
%13 = inttoptr i64 %6 to i64*
%14 = call i64* @memmove(i64* %arg2, i64* %13, i32 %11)
%15 = add nsw i64 %12, 1
%16 = add i64 %12, %5
%17 = inttoptr i64 %16 to i8*
store i8 10, i8* %17, align 1
%18 = add i64 %15, %5
%19 = inttoptr i64 %18 to i8*
store i8 0, i8* %19, align 1
store i64 %15, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 %6, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 -1, { 1, 0 }
uselistorder i64 (i64)* @spin_unlock_irq, { 1, 0 }
uselistorder label LBL_4, { 2, 1, 0 }
} | 0 |
BinRealVul | cg_open_6551 | cg_open | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
store i64 0, i64* %sv_2, align 8
store i64 0, i64* %sv_1, align 8
%0 = call i64 @FUNC()
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_9
LBL_1:
%3 = call i64 @FUNC(i64 %0, i64 %arg1)
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 4294967291, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_9
LBL_2:
%6 = call i64 @FUNC(i64 %arg1)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %8, label LBL_3, label LBL_9
LBL_3:
%9 = call i64 @FUNC(i64 %6, i64* nonnull %sv_1, i64* nonnull %sv_2)
%10 = load i64, i64* %sv_2, align 8
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
%13 = load i64, i64* %sv_1, align 8
%storemerge2 = select i1 %12, i64 %13, i64 ptrtoint (i64* @gv_0 to i64)
%storemerge = select i1 %12, i64 %10, i64 %13
%14 = call i64 @FUNC(i64 %3, i64 %storemerge2, i64 %storemerge)
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
store i64 4294967274, i64* %sv_0.0.reg2mem
br i1 %16, label LBL_4, label LBL_8
LBL_4:
%17 = inttoptr i64 %0 to i32*
%18 = call i64 @FUNC(i64 %14)
%19 = load i32, i32* %17, align 4
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %20, i64 %3, i64 %storemerge2)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
store i64 4294967294, i64* %sv_0.0.reg2mem
br i1 %24, label LBL_5, label LBL_8
LBL_5:
%25 = ptrtoint i64* %arg2 to i64
%26 = add i64 %25, 8
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = zext i32 %28 to i64
%30 = call i64 @FUNC(i64 %0, i64 %3, i64 %storemerge2, i64 %storemerge, i64 %29)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
store i64 4294967283, i64* %sv_0.0.reg2mem
br i1 %33, label LBL_6, label LBL_8
LBL_6:
%34 = call i64* @malloc(i32 48)
%35 = icmp eq i64* %34, null
%36 = icmp eq i1 %35, false
store i64 4294967284, i64* %sv_0.0.reg2mem
br i1 %36, label LBL_7, label LBL_8
LBL_7:
%37 = ptrtoint i64* %34 to i64
%38 = call i64 @FUNC(i64 %3)
store i64 %38, i64* %34, align 8
%39 = call i64 @FUNC(i64 %storemerge2)
%40 = add i64 %37, 8
%41 = inttoptr i64 %40 to i64*
store i64 %39, i64* %41, align 8
%42 = call i64 @FUNC(i64 %storemerge)
%43 = add i64 %37, 16
%44 = inttoptr i64 %43 to i64*
store i64 %42, i64* %44, align 8
%45 = add i64 %37, 24
%46 = inttoptr i64 %45 to i32*
store i32 1, i32* %46, align 4
%47 = add i64 %37, 32
%48 = inttoptr i64 %47 to i64*
store i64 0, i64* %48, align 8
%49 = add i64 %37, 40
%50 = inttoptr i64 %49 to i64*
store i64 0, i64* %50, align 8
store i64 %37, i64* %arg2, align 8
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%51 = load i64, i64* %sv_1, align 8
%52 = inttoptr i64 %51 to i64*
call void @free(i64* %52)
store i64 %sv_0.0.reload, 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* %34, { 0, 2, 1 }
uselistorder i64 %storemerge, { 2, 1, 0 }
uselistorder i64 %0, { 0, 2, 1, 3 }
uselistorder i64* %sv_2, { 1, 0, 2 }
uselistorder i64* %sv_1, { 1, 2, 0, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 5, 1, 2, 3, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 (i64)* @must_copy_string, { 2, 1, 0 }
uselistorder i64 4294967274, { 1, 0 }
uselistorder label LBL_9, { 3, 0, 1, 2 }
uselistorder label LBL_8, { 4, 0, 1, 2, 3 }
} | 0 |
BinRealVul | FIO_openDstFile_13274 | FIO_openDstFile | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i8* %arg3, null
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_1, i64 0, i64 0), i32 39, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%4 = trunc i64 %1 to i32
%5 = call i32 @strcmp(i8* %arg3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0))
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_6, label LBL_3
LBL_3:
%8 = call i32 @puts(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_4, i64 0, i64 0))
%9 = icmp eq i32 %4, 1
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%11 = bitcast i64* %arg1 to i32*
store i32 0, i32* %11, align 4
%12 = call i32 @puts(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @gv_5, i64 0, i64 0))
br label LBL_5
LBL_5:
%13 = load i64, i64* @gv_6, align 8
store i64 %13, i64* %rax.0.reg2mem
br label LBL_25
LBL_6:
%14 = icmp eq i8* %arg2, null
br i1 %14, label LBL_9, label LBL_7
LBL_7:
%15 = ptrtoint i8* %arg3 to i64
%16 = ptrtoint i8* %arg2 to i64
%17 = call i64 @FUNC(i64 %16, i64 %15)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_9, label LBL_8
LBL_8:
%20 = call i32 @puts(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @gv_7, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_25
LBL_9:
%21 = icmp eq i32 %4, 1
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_11, label LBL_10
LBL_10:
%23 = bitcast i64* %arg1 to i32*
store i32 0, i32* %23, align 4
br label LBL_11
LBL_11:
%24 = ptrtoint i8* %arg3 to i64
%25 = call i64 @FUNC(i64 %24)
%26 = trunc i64 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_23, label LBL_12
LBL_12:
%28 = call %_IO_FILE* @fopen(i8* %arg3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_8, i64 0, i64 0))
%29 = call i32 @strcmp(i8* %arg3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_9, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_14, label LBL_13
LBL_13:
%32 = load %_IO_FILE*, %_IO_FILE** @gv_10, align 8
%33 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %32, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_11, i64 0, i64 0), i8* %arg3)
br label LBL_14
LBL_14:
%34 = icmp eq %_IO_FILE* %28, null
br i1 %34, label LBL_23, label LBL_15
LBL_15:
%35 = ptrtoint i64* %arg1 to i64
%36 = call i32 @fclose(%_IO_FILE* nonnull %28)
%37 = add i64 %35, 4
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = icmp eq i32 %39, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_22, label LBL_16
LBL_16:
%42 = load i32, i32* inttoptr (i64 4210804 to i32*), align 4
%43 = icmp sgt i32 %42, 1
br i1 %43, label LBL_18, label LBL_17
LBL_17:
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_12, i64 0, i64 0), i8* %arg3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_25
LBL_18:
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_13, i64 0, i64 0), i8* %arg3)
%46 = call i32 @getchar()
%47 = or i32 %46, 32
%48 = icmp eq i32 %47, 121
br i1 %48, label LBL_19, label LBL_20
LBL_19:
%49 = icmp ne i32 %46, -1
%50 = icmp eq i32 %46, 10
%51 = icmp eq i1 %50, false
%or.cond6 = icmp eq i1 %49, %51
br i1 %or.cond6, label LBL_21, label LBL_22
LBL_20:
%52 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_14, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_25
LBL_21:
%53 = call i32 @getchar()
%54 = icmp ne i32 %53, -1
%55 = icmp eq i32 %53, 10
%56 = icmp eq i1 %55, false
%or.cond = icmp eq i1 %54, %56
br i1 %or.cond, label LBL_21, label LBL_22
LBL_22:
%57 = call i64 @FUNC(i64 %24)
br label LBL_23
LBL_23:
%58 = call %_IO_FILE* @fopen(i8* %arg3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_15, i64 0, i64 0))
%59 = ptrtoint %_IO_FILE* %58 to i64
%60 = icmp eq %_IO_FILE* %58, null
%61 = icmp eq i1 %60, false
store i64 %59, i64* %rax.0.reg2mem
br i1 %61, label LBL_25, label LBL_24
LBL_24:
%62 = call i32* @__errno_location()
%63 = load i32, i32* %62, align 4
%64 = call i8* @strerror(i32 %63)
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_16, i64 0, i64 0), i8* %arg3, i8* %64)
store i64 %59, i64* %rax.0.reg2mem
br label LBL_25
LBL_25:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %59, { 1, 0 }
uselistorder i32 %53, { 1, 0 }
uselistorder %_IO_FILE* %28, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 6, 5, 4, 3 }
uselistorder i32 10, { 1, 0 }
uselistorder i32 -1, { 1, 0 }
uselistorder i32 ()* @getchar, { 1, 0 }
uselistorder i32 (i8*, ...)* @printf, { 2, 1, 0 }
uselistorder %_IO_FILE* (i8*, i8*)* @fopen, { 1, 0 }
uselistorder i32 (i8*)* @puts, { 3, 2, 0, 1 }
uselistorder i32 (i8*, i8*)* @strcmp, { 2, 0, 1 }
uselistorder i1 false, { 2, 1, 0, 3, 4, 5, 6, 7, 8 }
uselistorder i8* %arg3, { 6, 7, 2, 3, 1, 5, 4, 8, 0, 9, 10 }
uselistorder i8* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 2, 0, 1 }
uselistorder label LBL_25, { 1, 0, 2, 3, 4, 5 }
uselistorder label LBL_21, { 1, 0 }
} | 1 |
BinRealVul | FindDpbPic_10167 | FindDpbPic | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.2.reg2mem = alloca i32
%sv_1.2.in.reg2mem = alloca i64
%rdi.1.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%rdi.1.ph.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%rdi.0.ph.reg2mem = alloca i64
%indvars.iv13.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = trunc i64 %arg3 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_7, label LBL_1
LBL_1:
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i32*
%6 = trunc i64 %1 to i32
store i64 0, i64* %indvars.iv13.reg2mem
store i64 %0, i64* %rdi.0.ph.reg2mem
br label LBL_5
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%7 = add i64 %rdi.0.reload, %19
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = zext i32 %9 to i64
%11 = call i64 @FUNC(i32 %9)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = add nuw nsw i64 %19, %10
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, %6
%18 = icmp eq i1 %17, false
store i32 1, i32* %sv_0.0.reg2mem
store i64 %10, i64* %rdi.0.reg2mem
br i1 %18, label LBL_4, label LBL_6
LBL_4:
%indvars.iv.next14 = add nuw nsw i64 %indvars.iv13.reload, 1
store i64 %indvars.iv.next14, i64* %indvars.iv13.reg2mem
store i64 %10, i64* %rdi.0.ph.reg2mem
br label LBL_5
LBL_5:
%rdi.0.ph.reload = load i64, i64* %rdi.0.ph.reg2mem
%indvars.iv13.reload = load i64, i64* %indvars.iv13.reg2mem
%19 = mul i64 %indvars.iv13.reload, 4
store i32 0, i32* %sv_0.0.reg2mem
store i64 %rdi.0.ph.reload, i64* %rdi.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%20 = load i32, i32* %5, align 4
%21 = zext i32 %20 to i64
%22 = icmp ult i64 %indvars.iv13.reload, %21
%23 = icmp eq i32 %sv_0.0.reload, 0
%or.cond5 = icmp eq i1 %23, %22
store i64 %indvars.iv13.reload, i64* %sv_1.2.in.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
br i1 %or.cond5, label LBL_2, label LBL_15
LBL_7:
%24 = trunc i64 %1 to i32
%25 = icmp slt i32 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_8, label LBL_9
LBL_8:
%27 = add i64 %0, 8
%28 = inttoptr i64 %27 to i32*
store i64 0, i64* %indvars.iv.reg2mem
store i64 %0, i64* %rdi.1.ph.reg2mem
br label LBL_13
LBL_9:
call void @exit(i32 1)
unreachable
LBL_10:
%rdi.1.reload = load i64, i64* %rdi.1.reg2mem
%29 = add i64 %rdi.1.reload, %41
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = zext i32 %31 to i64
%33 = call i64 @FUNC(i32 %31)
%34 = trunc i64 %33 to i32
%35 = icmp eq i32 %34, 0
br i1 %35, label LBL_12, label LBL_11
LBL_11:
%36 = add nuw nsw i64 %41, %32
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = icmp eq i32 %38, %24
%40 = icmp eq i1 %39, false
store i32 1, i32* %sv_0.1.reg2mem
store i64 %32, i64* %rdi.1.reg2mem
br i1 %40, label LBL_12, label LBL_14
LBL_12:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %32, i64* %rdi.1.ph.reg2mem
br label LBL_13
LBL_13:
%rdi.1.ph.reload = load i64, i64* %rdi.1.ph.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%41 = mul i64 %indvars.iv.reload, 4
store i32 0, i32* %sv_0.1.reg2mem
store i64 %rdi.1.ph.reload, i64* %rdi.1.reg2mem
br label LBL_14
LBL_14:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%42 = load i32, i32* %28, align 4
%43 = zext i32 %42 to i64
%44 = icmp ult i64 %indvars.iv.reload, %43
%45 = icmp eq i32 %sv_0.1.reload, 0
%or.cond = icmp eq i1 %45, %44
store i64 %indvars.iv.reload, i64* %sv_1.2.in.reg2mem
store i32 %sv_0.1.reload, i32* %sv_0.2.reg2mem
br i1 %or.cond, label LBL_10, label LBL_15
LBL_15:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%sv_1.2.in.reload = load i64, i64* %sv_1.2.in.reg2mem
%46 = icmp eq i32 %sv_0.2.reload, 0
%sv_1.2.in.op = and i64 %sv_1.2.in.reload, 4294967295
%storemerge = select i1 %46, i64 4294967295, i64 %sv_1.2.in.op
ret i64 %storemerge
uselistorder i64 %indvars.iv.reload, { 0, 2, 3, 1 }
uselistorder i64 %32, { 1, 0, 2 }
uselistorder i64 %indvars.iv13.reload, { 0, 2, 3, 1 }
uselistorder i64 %10, { 1, 0, 2 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64 %0, { 0, 3, 1, 2 }
uselistorder i64* %rdi.0.reg2mem, { 1, 2, 0 }
uselistorder i64* %rdi.1.reg2mem, { 1, 2, 0 }
uselistorder i64* %sv_1.2.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 2, 1 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | mount_entry_on_relative_rootfs_11084 | mount_entry_on_relative_rootfs | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = bitcast i64* %sv_0 to i8*
%5 = inttoptr i64 %arg2 to i8*
%6 = inttoptr i64 %3 to i8*
%7 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %4, i32 4096, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i8* %5, i8* %6)
%8 = icmp ult i32 %7, 4096
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%10 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_3, i64 0, i64 0))
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%11 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0)
store i64 %11, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | init_ctx_new_11554 | init_ctx_new | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%0 = call i64 @FUNC()
store i64 %0, i64* %sv_1, align 8
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 1, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_5
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 %arg2, i64 1, i64 %0)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %sv_0.0.reg2mem
br i1 %6, label LBL_4, label LBL_2
LBL_2:
%7 = inttoptr i64 %0 to i64*
%8 = load i64, i64* %7, align 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = add i64 %0, 8
%12 = inttoptr i64 %11 to i64*
store i64 %10, i64* %12, align 8
%13 = load i64, i64* %sv_1, align 8
%14 = add i64 %13, 24
%15 = inttoptr i64 %13 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16, i64 %14)
%18 = trunc i64 %17 to i32
%19 = icmp slt i32 %18, 0
%20 = icmp eq i1 %19, false
store i64 1, i64* %sv_0.0.reg2mem
br i1 %20, label LBL_3, label LBL_4
LBL_3:
%21 = load i64, i64* %sv_1, align 8
%22 = add i64 %21, 16
%23 = inttoptr i64 %22 to i64*
store i64 0, i64* %23, align 8
%24 = load i64, i64* %sv_1, align 8
store i64 %24, i64* %arg3, align 8
store i64 0, i64* %sv_1, align 8
%25 = bitcast i64* %arg4 to i32*
store i32 0, i32* %25, align 4
store i64 2, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%26 = call i64 @FUNC(i64* nonnull %sv_1)
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 1, 0, 2, 3, 4 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 2, 0, 1 }
} | 1 |
BinRealVul | printuserlist_9688 | printuserlist | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i8* %arg4) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i32
%sv_1.05.reg2mem = alloca i64
%sv_0.06.reg2mem = alloca i32
%0 = icmp eq i64* %arg3, null
%1 = icmp eq i1 %0, false
store i32 0, i32* %sv_0.1.reg2mem
br i1 %1, label LBL_1, label LBL_6
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = ptrtoint i64* %arg3 to i64
%4 = add i64 %arg2, 4294967233
%5 = and i64 %4, 4294967295
%6 = ptrtoint i8* %arg4 to i64
store i32 0, i32* %sv_0.06.reg2mem
store i64 %3, i64* %sv_1.05.reg2mem
br label LBL_2
LBL_2:
%sv_0.06.reload = load i32, i32* %sv_0.06.reg2mem
%7 = sext i32 %sv_0.06.reload to i64
%8 = icmp sgt i64 %5, %7
store i32 %sv_0.06.reload, i32* %sv_0.1.reg2mem
br i1 %8, label LBL_3, label LBL_6
LBL_3:
%sv_1.05.reload = load i64, i64* %sv_1.05.reg2mem
%9 = add i64 %sv_1.05.reload, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
%storemerge = select i1 %12, i64 ptrtoint (i8** @gv_0 to i64), i64 %6
%13 = inttoptr i64 %sv_1.05.reload to i64*
%14 = load i64, i64* %13, align 8
%15 = add i64 %7, %2
%16 = inttoptr i64 %15 to i8*
%17 = inttoptr i64 %14 to i8*
%18 = inttoptr i64 %storemerge to i8*
%19 = call i32 (i8*, i8*, ...) @sprintf(i8* %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i8* %17, i8* %18)
%20 = add i32 %19, %sv_0.06.reload
%21 = sext i32 %20 to i64
%22 = icmp sgt i64 %5, %21
br i1 %22, label LBL_5, label LBL_4
LBL_4:
%23 = add i64 %21, %2
%24 = inttoptr i64 %23 to i8*
%25 = call i32 (i8*, i8*, ...) @sprintf(i8* %24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0))
%26 = add i32 %25, %20
store i32 %26, i32* %sv_0.1.reg2mem
br label LBL_6
LBL_5:
%27 = load i64, i64* %10, align 8
%28 = icmp eq i64 %27, 0
%29 = icmp eq i1 %28, false
store i32 %20, i32* %sv_0.06.reg2mem
store i64 %27, i64* %sv_1.05.reg2mem
store i32 %20, i32* %sv_0.1.reg2mem
br i1 %29, label LBL_2, label LBL_6
LBL_6:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%30 = zext i32 %sv_0.1.reload to i64
ret i64 %30
uselistorder i32 %sv_0.06.reload, { 2, 0, 1 }
uselistorder i32* %sv_0.06.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.05.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 1, 4, 2, 3 }
uselistorder i32 (i8*, i8*, ...)* @sprintf, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder label LBL_6, { 0, 3, 1, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ras_gethdr_8840 | ras_gethdr | 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* %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
%7 = icmp eq i1 %6, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %7, label LBL_9, label LBL_1
LBL_1:
%8 = add i64 %2, 4
%9 = call i64 @FUNC(i64 %3, i64 %8)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %12, label LBL_9, label LBL_2
LBL_2:
%13 = add i64 %2, 8
%14 = call i64 @FUNC(i64 %3, i64 %13)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %17, label LBL_9, label LBL_3
LBL_3:
%18 = add i64 %2, 12
%19 = call i64 @FUNC(i64 %3, i64 %18)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %22, label LBL_9, label LBL_4
LBL_4:
%23 = add i64 %2, 16
%24 = call i64 @FUNC(i64 %3, i64 %23)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %27, label LBL_9, label LBL_5
LBL_5:
%28 = add i64 %2, 20
%29 = call i64 @FUNC(i64 %3, i64 %28)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
%32 = icmp eq i1 %31, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %32, label LBL_9, label LBL_6
LBL_6:
%33 = add i64 %2, 24
%34 = call i64 @FUNC(i64 %3, i64 %33)
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %37, label LBL_9, label LBL_7
LBL_7:
%38 = add i64 %2, 28
%39 = call i64 @FUNC(i64 %3, i64 %38)
%40 = trunc i64 %39 to i32
%41 = icmp eq i32 %40, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %41, label LBL_8, label LBL_9
LBL_8:
%42 = trunc i64 %1 to i32
%43 = icmp eq i32 %42, 1504078485
%. = select i1 %43, i64 0, i64 4294967295
store i64 %., 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* %rax.0.reg2mem, { 0, 1, 9, 8, 7, 6, 5, 4, 3, 2 }
uselistorder i64 4294967295, { 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @ras_getint, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_9, { 0, 8, 7, 6, 5, 4, 3, 2, 1 }
} | 0 |
BinRealVul | setupStream_13102 | setupStream | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i8*, align 8
%0 = bitcast i64* %arg3 to i32*
store i32 -1, i32* %0, align 4
%1 = bitcast i8** %sv_1 to i64*
%2 = call i64 @FUNC(i64* nonnull %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i64 %arg2)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
store i64 %2, i64* %sv_0.1.reg2mem
br i1 %4, label LBL_7, label LBL_1
LBL_1:
%5 = load i32, i32* @gv_1, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = load i64, i64* @gv_2, align 8
%8 = call i64 @FUNC(i64* nonnull %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_3, i64 0, i64 0), i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %11, label LBL_3, label LBL_6
LBL_3:
%12 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4
%13 = icmp slt i32 %12, 6
%. = select i1 %13, i8* bitcast (i64* @gv_4 to i8*), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_5, i64 0, i64 0)
store i8* %., i8** %sv_1, align 8
%14 = ptrtoint i8* %. to i64
%15 = call i64 @FUNC(i64* nonnull %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_6, i64 0, i64 0), i64 %14)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %17, label LBL_6, label LBL_4
LBL_4:
%18 = call i64 @FUNC(i64* nonnull %1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_7, i64 0, i64 0), i64 ptrtoint ([30 x i8]* @gv_8 to i64))
%19 = trunc i64 %18 to i32
%20 = icmp eq i32 %19, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %20, label LBL_6, label LBL_5
LBL_5:
%21 = ptrtoint i64* %arg3 to i64
%22 = ptrtoint i64* %arg1 to i64
%23 = call i64 @FUNC(i64* nonnull %1, i64 %22, i64 0, i64 %21)
store i64 %23, i64* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%24 = call i64 @FUNC(i64* nonnull %1)
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_7
LBL_7:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%25 = and i64 %sv_0.1.reload, 4294967295
ret i64 %25
uselistorder i8* %., { 1, 0 }
uselistorder i64* %1, { 1, 2, 3, 4, 0, 5 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 4, 2, 1, 3 }
uselistorder i64 (i64*, i8*, i64)* @addOption, { 2, 1, 0 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 0 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder label LBL_6, { 3, 1, 0, 2 }
} | 1 |
BinRealVul | usbip_dump_usb_ctrlrequest_8399 | usbip_dump_usb_ctrlrequest | define i64 @FUNC(i8* %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 = load i64, i64* %0
%5 = load i64, i64* %0
%6 = load i64, i64* %0
%7 = icmp eq i8* %arg1, null
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %5, i64 %6, i64 %2, i64 %1)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_23
LBL_2:
%10 = trunc i64 %3 to i8
%11 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i64 %4, i64 %5, i64 %6, i64 %2, i64 %1)
%12 = ptrtoint i8* %arg1 to i64
%13 = add i64 %12, 6
%14 = inttoptr i64 %13 to i16*
%15 = load i16, i16* %14, align 2
%16 = add i64 %12, 4
%17 = inttoptr i64 %16 to i16*
%18 = load i16, i16* %17, align 2
%19 = add i64 %12, 2
%20 = inttoptr i64 %19 to i16*
%21 = load i16, i16* %20, align 2
%22 = zext i16 %21 to i64
%23 = add i64 %12, 1
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = zext i8 %25 to i64
%27 = zext i16 %15 to i64
%28 = zext i16 %18 to i64
%29 = urem i64 %3, 256
%30 = call i64 @FUNC(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @gv_2, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
%31 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
%32 = and i8 %10, 96
%33 = icmp eq i8 %32, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_17, label LBL_3
LBL_3:
%35 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_4, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
store i64 %12, i64* @0, align 8
switch i64 %12, label LBL_15 [
i64 0, label LBL_4
i64 1, label LBL_5
i64 3, label LBL_6
i64 5, label LBL_7
i64 6, label LBL_8
i64 7, label LBL_9
i64 8, label LBL_10
i64 9, label LBL_11
i64 10, label LBL_12
i64 11, label LBL_13
i64 12, label LBL_14
]
LBL_4:
%36 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_5, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
br label LBL_16
LBL_5:
%37 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_6, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
br label LBL_16
LBL_6:
%38 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_7, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
br label LBL_16
LBL_7:
%39 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_8, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
br label LBL_16
LBL_8:
%40 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_9, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
br label LBL_16
LBL_9:
%41 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_10, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
br label LBL_16
LBL_10:
%42 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_11, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
br label LBL_16
LBL_11:
%43 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_12, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
br label LBL_16
LBL_12:
%44 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_13, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
br label LBL_16
LBL_13:
%45 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_14, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
br label LBL_16
LBL_14:
%46 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_15, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
br label LBL_16
LBL_15:
%47 = load i8, i8* %24, align 1
%48 = zext i8 %47 to i64
%49 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_16, i64 0, i64 0), i64 %48, i64 %26, i64 %22, i64 %28, i64 %27)
br label LBL_16
LBL_16:
%50 = call i64 @FUNC(i64 %29)
store i64 %50, i64* %rax.0.reg2mem
br label LBL_23
LBL_17:
%51 = icmp eq i8 %32, 32
%52 = icmp eq i1 %51, false
br i1 %52, label LBL_19, label LBL_18
LBL_18:
%53 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_17, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
store i64 %53, i64* %rax.0.reg2mem
br label LBL_23
LBL_19:
%54 = icmp eq i8 %32, 64
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_21, label LBL_20
LBL_20:
%56 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_18, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
store i64 %56, i64* %rax.0.reg2mem
br label LBL_23
LBL_21:
%57 = zext i8 %32 to i64
%58 = icmp eq i8 %32, 96
%59 = icmp eq i1 %58, false
store i64 %57, i64* %rax.0.reg2mem
br i1 %59, label LBL_23, label LBL_22
LBL_22:
%60 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_19, i64 0, i64 0), i64 %29, i64 %26, i64 %22, i64 %28, i64 %27)
store i64 %60, 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 i8 %32, { 1, 0, 2, 3, 4 }
uselistorder i64 %29, { 15, 14, 13, 0, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 12, 17, 16 }
uselistorder i64 %28, { 15, 14, 13, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 12, 17, 16 }
uselistorder i64 %27, { 15, 14, 13, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 12, 17, 16 }
uselistorder i64 %26, { 15, 14, 13, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 12, 16, 17 }
uselistorder i64 %22, { 15, 14, 13, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 12, 16, 17 }
uselistorder i64 %12, { 1, 0, 2, 3, 4, 5 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 6, 4, 3, 2, 1 }
uselistorder i64* %0, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @pr_debug, { 9, 8, 7, 6, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_16, { 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }
} | 0 |
BinRealVul | tg3_mem_tx_release_10475 | tg3_mem_tx_release | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
store i64 %3, i64* %.lcssa.reg2mem
br i1 %4, label LBL_5, label LBL_1
LBL_1:
%5 = bitcast i64* %rdi to i32*
%6 = ptrtoint i32* %arg1 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
%9 = add i64 %6, 16
%10 = inttoptr i64 %9 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge2.reg2mem
br label LBL_2
LBL_2:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%.reload = load i64, i64* %.reg2mem
%11 = load i64, i64* %8, align 8
%12 = mul nsw i64 %.reload, 24
%13 = add i64 %11, %12
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = icmp eq i64 %15, 0
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = add i64 %13, 16
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = load i64, i64* %10, align 8
%21 = call i64 @FUNC(i64 %20, i64 1024, i64 %15, i64 %19)
store i64 0, i64* %14, align 8
br label LBL_4
LBL_4:
%22 = add i64 %13, 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %24)
store i64 0, i64* %23, align 8
%26 = add i32 %storemerge2.reload, 1
%27 = load i32, i32* %5, align 8
%28 = zext i32 %27 to i64
%29 = sext i32 %26 to i64
%30 = icmp slt i64 %29, %28
store i64 %29, i64* %.reg2mem
store i32 %26, i32* %storemerge2.reg2mem
store i64 %28, i64* %.lcssa.reg2mem
br i1 %30, label LBL_2, label LBL_5
LBL_5:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i64 16, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | decode_p_frame_7388 | decode_p_frame | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.08.reg2mem = alloca i64
%sv_1.010.reg2mem = alloca i64
%storemerge12.reg2mem = alloca i32
%storemerge17.reg2mem = alloca i32
%storemerge2.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%sv_4.0.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 4
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = add i64 %1, 16
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %1, 32
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = add i64 %1, 40
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i64 %1, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp slt i32 %16, 2
br i1 %17, label LBL_3, label LBL_1
LBL_1:
%18 = icmp ugt i32 %arg3, 19
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %18, label LBL_2, label LBL_13
LBL_2:
%19 = add i64 %0, 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i64 %0, 12
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i64 %0, 16
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%.pre = sub i32 %arg3, %21
store i32 %.pre, i32* %.pre-phi.reg2mem
store i32 20, i32* %sv_4.0.reg2mem
store i32 %21, i32* %sv_3.0.reg2mem
store i32 %24, i32* %sv_2.0.reg2mem
store i32 %27, i32* %storemerge2.reg2mem
br label LBL_4
LBL_3:
%28 = add i64 %0, -4
%29 = inttoptr i64 %28 to i16*
%30 = load i16, i16* %29, align 2
%31 = zext i16 %30 to i32
%32 = add i64 %0, -2
%33 = inttoptr i64 %32 to i16*
%34 = load i16, i16* %33, align 2
%35 = zext i16 %34 to i32
%36 = sub nsw i32 0, %35
%37 = sub i32 %31, %arg3
%38 = icmp eq i32 %37, %36
%39 = sub i32 %arg3, %31
%40 = sub i32 %39, %35
%storemerge3 = select i1 %38, i32 0, i32 %40
store i32 %39, i32* %.pre-phi.reg2mem
store i32 0, i32* %sv_4.0.reg2mem
store i32 %31, i32* %sv_3.0.reg2mem
store i32 %35, i32* %sv_2.0.reg2mem
store i32 %storemerge3, i32* %storemerge2.reg2mem
br label LBL_4
LBL_4:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%41 = icmp ugt i32 %sv_3.0.reload, %arg3
%42 = icmp ugt i32 %storemerge2.reload, %.pre-phi.reload
%or.cond = or i1 %41, %42
br i1 %or.cond, label LBL_6, label LBL_5
LBL_5:
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%43 = sub i32 %arg3, %storemerge2.reload
%44 = sub i32 %43, %sv_3.0.reload
%45 = icmp ult i32 %44, %sv_2.0.reload
%46 = sub i32 %44, %sv_2.0.reload
%47 = icmp ugt i32 %sv_4.0.reload, %46
%or.cond6 = or i1 %45, %47
br i1 %or.cond6, label LBL_6, label LBL_7
LBL_6:
%48 = zext i32 %sv_2.0.reload to i64
%49 = zext i32 %storemerge2.reload to i64
%50 = zext i32 %sv_3.0.reload to i64
%51 = call i64 @FUNC(i64 %1, i64 16, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i64 %50, i64 %49, i64 %48)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_13
LBL_7:
%52 = add i32 %sv_3.0.reload, 32
%53 = zext i32 %52 to i64
%54 = add i64 %1, 56
%55 = add i64 %1, 48
%56 = call i64 @FUNC(i64 %55, i64 %54, i64 %53)
%57 = inttoptr i64 %55 to i64*
%58 = load i64, i64* %57, align 8
%59 = icmp eq i64 %58, 0
%60 = icmp eq i1 %59, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %60, label LBL_8, label LBL_13
LBL_8:
%61 = zext i32 %sv_3.0.reload to i64
%62 = add i64 %58, %61
%63 = inttoptr i64 %62 to i64*
%64 = call i64* @memset(i64* %63, i32 0, i32 32)
%65 = mul i32 %sv_3.0.reload, 8
%66 = load i64, i64* %57, align 8
%67 = add i64 %1, 72
%68 = zext i32 %65 to i64
%69 = call i64 @FUNC(i64 %67, i64 %66, i64 %68)
%70 = add i32 %sv_3.0.reload, %sv_4.0.reload
%71 = add i32 %sv_2.0.reload, %70
%72 = sub i32 %arg3, %70
%73 = zext i32 %72 to i64
%74 = zext i32 %70 to i64
%75 = add i64 %74, %0
%76 = add i64 %1, 80
%77 = call i64 @FUNC(i64 %76, i64 %75, i64 %73)
%78 = sub i32 %arg3, %71
%79 = zext i32 %78 to i64
%80 = zext i32 %71 to i64
%81 = add i64 %80, %0
%82 = add i64 %1, 88
%83 = call i64 @FUNC(i64 %82, i64 %81, i64 %79)
%84 = call i64 @FUNC(i64 %1)
%85 = icmp sgt i32 %4, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %85, label LBL_9, label LBL_13
LBL_9:
%86 = trunc i64 %1 to i32
%87 = ashr i32 %13, 1
%88 = icmp sgt i32 %86, 0
%89 = zext i32 %87 to i64
%90 = mul i32 %87, 8
%91 = sext i32 %90 to i64
%92 = mul i64 %91, 2
store i32 0, i32* %storemerge12.reg2mem
store i64 %10, i64* %sv_1.010.reg2mem
store i64 %7, i64* %sv_0.08.reg2mem
br label LBL_12
LBL_10:
%storemerge17.reload = load i32, i32* %storemerge17.reg2mem
%93 = sext i32 %storemerge17.reload to i64
%94 = mul i64 %93, 2
%95 = add i64 %94, %sv_0.08.reload
%96 = add i64 %94, %sv_1.010.reload
%97 = call i64 @FUNC(i64 %1, i64 %96, i64 %95, i64 3, i64 3, i64 %89)
%98 = add i32 %storemerge17.reload, 8
%99 = icmp slt i32 %98, %86
store i32 %98, i32* %storemerge17.reg2mem
br i1 %99, label LBL_10, label LBL_11
LBL_11:
%100 = add i64 %sv_0.08.reload, %92
%101 = add i64 %sv_1.010.reload, %92
%102 = add i32 %storemerge12.reload, 8
%103 = icmp slt i32 %102, %4
store i32 %102, i32* %storemerge12.reg2mem
store i64 %101, i64* %sv_1.010.reg2mem
store i64 %100, i64* %sv_0.08.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %103, label LBL_12, label LBL_13
LBL_12:
%sv_0.08.reload = load i64, i64* %sv_0.08.reg2mem
%sv_1.010.reload = load i64, i64* %sv_1.010.reg2mem
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
store i32 0, i32* %storemerge17.reg2mem
br i1 %88, label LBL_10, label LBL_11
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %94, { 1, 0 }
uselistorder i64 %92, { 1, 0 }
uselistorder i32 %71, { 1, 0 }
uselistorder i32 %70, { 2, 1, 0 }
uselistorder i32 %sv_4.0.reload, { 1, 0 }
uselistorder i32 %sv_3.0.reload, { 4, 6, 3, 0, 2, 5, 1 }
uselistorder i32 %sv_2.0.reload, { 1, 0, 3, 2 }
uselistorder i32 %storemerge2.reload, { 1, 0, 2 }
uselistorder i32 %4, { 1, 0 }
uselistorder i64 %1, { 2, 1, 4, 3, 5, 6, 8, 7, 0, 9, 10, 11, 12, 13 }
uselistorder i64 %0, { 0, 1, 6, 5, 2, 4, 3 }
uselistorder i32* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_4.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_3.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge2.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge17.reg2mem, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 3, 5, 4 }
uselistorder i64 3, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @bytestream2_init, { 1, 0 }
uselistorder i32 8, { 3, 2, 0, 1 }
uselistorder i32 32, { 1, 0 }
uselistorder i64 0, { 0, 1, 5, 2, 3, 4 }
uselistorder i32 0, { 1, 0, 3, 4, 7, 2, 5, 6 }
uselistorder i32 %arg3, { 3, 4, 6, 5, 1, 7, 0, 2 }
uselistorder label LBL_13, { 0, 1, 2, 4, 3 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
} | 1 |
BinRealVul | kvm_apic_accept_events_9142 | kvm_apic_accept_events | 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
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i32* %arg1 to i64
%sv_0 = alloca i64, align 8
%5 = add i64 %4, 16
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %4)
%9 = and i64 %8, 4294967295
%10 = xor i64 %9, 1
%11 = trunc i64 %10 to i8
%12 = icmp eq i8 %11, 0
%13 = icmp eq i1 %12, false
store i64 %10, i64* %rax.0.reg2mem
br i1 %13, label LBL_9, label LBL_1
LBL_1:
%14 = inttoptr i64 %7 to i64*
%15 = load i64, i64* %14, align 8
%16 = icmp eq i64 %15, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_9, label LBL_2
LBL_2:
%17 = call i64 @FUNC(i64 %7, i64 0)
store i64 %17, i64* %sv_0, align 8
%18 = call i64 @FUNC(i64 0, i64* nonnull %sv_0)
%19 = trunc i64 %18 to i8
%20 = icmp eq i8 %19, 0
br i1 %20, label LBL_6, label LBL_3
LBL_3:
%21 = call i64 @FUNC(i64 %4)
%22 = call i64 @FUNC(i64 %4)
%23 = add i64 %7, 16
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %25)
%27 = trunc i64 %26 to i8
%28 = icmp eq i8 %27, 0
%29 = add i64 %4, 8
%30 = inttoptr i64 %29 to i32*
br i1 %28, label LBL_5, label LBL_4
LBL_4:
store i32 0, i32* %30, align 4
br label LBL_6
LBL_5:
store i32 1, i32* %30, align 4
br label LBL_6
LBL_6:
%31 = call i64 @FUNC(i64 1, i64* nonnull %sv_0)
%32 = trunc i64 %31 to i8
%33 = icmp eq i8 %32, 0
store i64 %31, i64* %rax.0.reg2mem
br i1 %33, label LBL_9, label LBL_7
LBL_7:
%34 = add i64 %4, 8
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = zext i32 %36 to i64
%38 = icmp eq i32 %36, 1
%39 = icmp eq i1 %38, false
store i64 %37, i64* %rax.0.reg2mem
br i1 %39, label LBL_9, label LBL_8
LBL_8:
%40 = call i64 @FUNC()
%41 = add i64 %7, 8
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = bitcast i64* %rdi to i32*
%45 = load i32, i32* %44, align 8
%46 = zext i32 %45 to i64
%47 = call i64 @FUNC(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_0, i64 0, i64 0), i64 %46, i32 %43, i64 %3, i64 %2, i64 %1)
%48 = zext i32 %43 to i64
%49 = call i64 @FUNC(i64 %4, i64 %48)
store i32 0, i32* %35, align 4
store i64 %4, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %30, { 1, 0 }
uselistorder i64 %7, { 1, 0, 2, 3 }
uselistorder i64 %4, { 0, 4, 5, 1, 3, 2, 6, 7 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64*)* @test_bit, { 1, 0 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder label LBL_9, { 2, 3, 4, 1, 0 }
} | 0 |
BinRealVul | gf_isom_fdm_new_temp_3834 | gf_isom_fdm_new_temp | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi1.reg2mem = alloca i64*
%.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = call i64* @malloc(i32 32)
%1 = icmp eq i64* %0, null
%2 = icmp eq i1 %1, false
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_16
LBL_1:
%3 = ptrtoint i64* %0 to i64
%4 = bitcast i64* %0 to i32*
store i32 1, i32* %4, align 4
%5 = add i64 %3, 4
%6 = inttoptr i64 %5 to i32*
store i32 2, i32* %6, align 4
%7 = icmp eq i64 %arg1, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = add i64 %3, 16
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %3, 8
%12 = inttoptr i64 %11 to i64*
store i64 %10, i64* %12, align 8
store i64 %10, i64* %.reg2mem
store i64* %12, i64** %.pre-phi1.reg2mem
br label LBL_8
LBL_3:
%13 = inttoptr i64 %arg1 to i8*
%14 = call i32 @strlen(i8* %13)
%15 = sext i32 %14 to i64
%16 = add i64 %arg1, -1
%17 = add i64 %16, %15
%18 = inttoptr i64 %17 to i8*
%19 = load i8, i8* %18, align 1
%20 = icmp eq i8 %19, 92
br i1 %20, label LBL_6, label LBL_4
LBL_4:
%21 = call i32 @strlen(i8* %13)
%22 = sext i32 %21 to i64
%23 = add i64 %16, %22
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = icmp eq i8 %25, 47
br i1 %26, label LBL_6, label LBL_5
LBL_5:
%27 = bitcast i64* %sv_0 to i8*
%28 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %27, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i8* %13, i8 47, i64* nonnull %0)
br label LBL_7
LBL_6:
%29 = bitcast i64* %sv_0 to i8*
%30 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %29, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0), i8* %13, i64* nonnull %0)
br label LBL_7
LBL_7:
%31 = call i64 @FUNC(i64* nonnull %sv_0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0))
%32 = add i64 %3, 8
%33 = inttoptr i64 %32 to i64*
store i64 %31, i64* %33, align 8
%34 = call i64 @FUNC(i64* nonnull %sv_0)
%35 = add i64 %3, 16
%36 = inttoptr i64 %35 to i64*
store i64 %34, i64* %36, align 8
%.pre = load i64, i64* %33, align 8
store i64 %.pre, i64* %.reg2mem
store i64* %33, i64** %.pre-phi1.reg2mem
br label LBL_8
LBL_8:
%.reload = load i64, i64* %.reg2mem
%37 = icmp eq i64 %.reload, 0
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_12, label LBL_9
LBL_9:
%39 = add i64 %3, 16
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = icmp eq i64 %41, 0
br i1 %42, label LBL_11, label LBL_10
LBL_10:
%43 = call i64 @FUNC(i64 %41)
br label LBL_11
LBL_11:
%44 = call i64 @FUNC(i64 %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_16
LBL_12:
%.pre-phi1.reload = load i64*, i64** %.pre-phi1.reg2mem
%45 = call i64 @FUNC(i64 %.reload, i64 1)
%46 = add i64 %3, 24
%47 = inttoptr i64 %46 to i64*
store i64 %45, i64* %47, align 8
%48 = icmp eq i64 %45, 0
%49 = icmp eq i1 %48, false
br i1 %49, label LBL_14, label LBL_13
LBL_13:
%50 = load i64, i64* %.pre-phi1.reload, align 8
%51 = call i64 @FUNC(i64 %50)
%52 = call i64 @FUNC(i64 %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_16
LBL_14:
%53 = load i64, i64* @gv_3, align 8
%54 = icmp eq i64 %53, 0
store i64 %3, i64* %rax.0.reg2mem
br i1 %54, label LBL_16, label LBL_15
LBL_15:
%55 = call i64 @FUNC(i64 %45, i64 %53)
store i64 %3, 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 %45, { 1, 0, 2 }
uselistorder i8* %13, { 2, 0, 1, 3 }
uselistorder i64 %3, { 1, 0, 5, 6, 4, 7, 8, 9, 2, 3, 10 }
uselistorder i64* %0, { 0, 1, 2, 4, 3 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64** %.pre-phi1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 5, 4, 3 }
uselistorder i32 (i8*, i8*, ...)* @sprintf, { 1, 0 }
uselistorder i8 47, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 2, 1, 0 }
uselistorder i64* (i32)* @malloc, { 1, 0 }
uselistorder i32 1, { 6, 5, 3, 2, 1, 0, 4 }
uselistorder i64 %arg1, { 0, 2, 1 }
uselistorder label LBL_16, { 1, 0, 3, 4, 2 }
} | 0 |
BinRealVul | unix_connect_opts_14754 | unix_connect_opts | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%5 = call i32 @fwrite(i64* bitcast ([33 x i8]* @gv_2 to i64*), i32 1, i32 32, %_IO_FILE* %4)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_2:
%6 = call i64 @FUNC(i64 1, i64 1, i64 0)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
call void @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_3, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_4:
%10 = inttoptr i64 %1 to i8*
%11 = call i64* @memset(i64* nonnull %sv_1, i32 0, i32 110)
store i64 1, i64* %sv_1, align 8
%12 = bitcast i64* %sv_0 to i8*
%13 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %12, i32 108, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, i64 0, i64 0), i8* %10)
%14 = bitcast i64* %sv_1 to %sockaddr*
%15 = call i32 @connect(i32 %7, %sockaddr* nonnull %14, i32 110)
%16 = icmp slt i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%18 = call i32* @__errno_location()
%19 = load i32, i32* %18, align 4
%20 = call i8* @strerror(i32 %19)
%21 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%22 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %21, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_5, i64 0, i64 0), i8* %10, i8* %20)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%23 = load i32, i32* inttoptr (i64 4210812 to i32*), align 4
%24 = icmp eq i32 %23, 0
br i1 %24, label LBL_8, label LBL_7
LBL_7:
%25 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%26 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %25, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_6, i64 0, i64 0), i8* %10)
br label LBL_8
LBL_8:
%27 = and i64 %6, 4294967295
store i64 %27, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %10, { 1, 0, 2 }
uselistorder i64* %sv_1, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder %_IO_FILE** @gv_1, { 2, 1, 0 }
} | 1 |
BinRealVul | try_decode_video_frame_16506 | try_decode_video_frame | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.1.reg2mem = alloca i64
%.reg2mem11 = alloca i64
%.reg2mem9 = alloca i64
%.reg2mem = alloca i32
%rcx.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
store i32 0, i32* %sv_2, align 4
store i64 0, i64* %sv_1, align 8
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 0, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_3, label LBL_1
LBL_1:
%9 = add i64 %4, 16
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = zext i32 %11 to i64
%13 = call i64 @FUNC(i64 %12)
%14 = call i64 @FUNC(i64 %4, i64 %13, i64 0)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %15, 0
%17 = icmp eq i1 %16, false
store i64 %14, i64* %sv_0.0.reg2mem
store i64 %13, i64* %rcx.0.reg2mem
br i1 %17, label LBL_3, label LBL_2
LBL_2:
%18 = call i64 @FUNC(i64 %4, i64 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %13, i64 %2, i64 %1)
store i64 %14, i64* %sv_0.1.reg2mem
br label LBL_12
LBL_3:
%19 = call i64 @FUNC()
store i64 %19, i64* %sv_1, align 8
%20 = icmp eq i64 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%22 = call i64 @FUNC(i64 0, i64 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_1, i64 0, i64 0), i64 %rcx.0.reload, i64 %2, i64 %1)
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_12
LBL_5:
%23 = icmp eq i32 %arg3, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_8, label LBL_6
LBL_6:
%25 = add i64 %4, 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = urem i32 %29, 2
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_8, label LBL_7
LBL_7:
%32 = bitcast i64* %arg1 to i32*
store i32 1, i32* %32, align 4
br label LBL_8
LBL_8:
%33 = ptrtoint i64* %arg2 to i64
%34 = add i64 %33, 8
%35 = inttoptr i64 %34 to i32*
%36 = call i64 @FUNC(i64 %4, i64 %19, i32* nonnull %sv_2, i64 %33)
%37 = trunc i64 %36 to i32
%38 = load i32, i32* %sv_2, align 4
%39 = icmp eq i32 %38, 0
%narrow1 = or i1 %24, %39
%storemerge2 = zext i1 %narrow1 to i64
%40 = call i64 @FUNC(i64 %storemerge2)
%41 = icmp slt i32 %37, 0
store i32 %37, i32* %.reg2mem
store i64 %36, i64* %.reg2mem9
store i64 %19, i64* %.reg2mem11
store i64 %36, i64* %sv_0.1.reg2mem
br i1 %41, label LBL_12, label LBL_9
LBL_9:
%.reload12 = load i64, i64* %.reg2mem11
%.reload10 = load i64, i64* %.reg2mem9
%.reload = load i32, i32* %.reg2mem
%sext = mul i64 %.reload10, 4294967296
%42 = ashr exact i64 %sext, 32
%43 = add i64 %42, %.reload12
store i64 %43, i64* %arg2, align 8
%44 = load i32, i32* %35, align 4
%45 = sub i32 %44, %.reload
store i32 %45, i32* %35, align 4
%46 = load i32, i32* %sv_2, align 4
%47 = icmp eq i32 %46, 0
%48 = icmp eq i1 %47, false
store i64 %.reload10, i64* %sv_0.1.reg2mem
br i1 %48, label LBL_12, label LBL_10
LBL_10:
%49 = icmp eq i32 %45, 0
%50 = icmp slt i32 %45, 0
%51 = icmp eq i1 %50, false
%52 = icmp eq i1 %49, false
%53 = icmp eq i1 %51, %52
store i64 %.reload10, i64* %sv_0.1.reg2mem
br i1 %53, label LBL_10.dec_label_pc_40130b_crit_edge, label LBL_12
LBL_11:
%.pre = load i64, i64* %sv_1, align 8
%54 = call i64 @FUNC(i64 %4, i64 %.pre, i32* nonnull %sv_2, i64 %33)
%55 = trunc i64 %54 to i32
%56 = load i32, i32* %sv_2, align 4
%57 = icmp eq i32 %56, 0
%narrow = or i1 %24, %57
%storemerge = zext i1 %narrow to i64
%58 = call i64 @FUNC(i64 %storemerge)
%59 = icmp slt i32 %55, 0
store i32 %55, i32* %.reg2mem
store i64 %54, i64* %.reg2mem9
store i64 %.pre, i64* %.reg2mem11
store i64 %54, i64* %sv_0.1.reg2mem
br i1 %59, label LBL_12, label LBL_9
LBL_12:
%60 = trunc i64 %3 to i32
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%61 = bitcast i64* %arg1 to i32*
store i32 %60, i32* %61, align 4
%62 = call i64 @FUNC(i64* nonnull %sv_1)
%63 = and i64 %sv_0.1.reload, 4294967295
ret i64 %63
uselistorder i64 %.reload10, { 1, 0, 2 }
uselistorder i64 %33, { 2, 0, 1 }
uselistorder i1 %24, { 1, 0, 2 }
uselistorder i64 %13, { 1, 0, 2 }
uselistorder i32* %sv_2, { 4, 2, 3, 0, 1, 5 }
uselistorder i64* %sv_1, { 1, 0, 2, 3 }
uselistorder i64 %4, { 5, 0, 4, 1, 2, 3, 6 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem9, { 2, 0, 1 }
uselistorder i64* %.reg2mem11, { 2, 0, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 3, 1, 4, 6, 5 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @av_assert0, { 1, 0 }
uselistorder i64 (i64, i64, i32*, i64)* @avcodec_decode_video2, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder i64 0, { 9, 5, 6, 13, 7, 8, 10, 0, 12, 14, 1, 2, 3, 4, 11 }
uselistorder i64* %arg1, { 1, 0, 2 }
uselistorder label LBL_12, { 2, 1, 3, 0, 4, 5 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 2, 1, 0 }
} | 1 |
reposvul_c_test | section_name_is_ok_314 | section_name_is_ok | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i64
%.reg2mem5 = alloca i8*
%.reg2mem = alloca i8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_5
LBL_1:
%5 = inttoptr i64 %arg1 to i8*
%6 = load i8, i8* %5, align 1
%7 = icmp ne i8 %6, 0
%8 = icmp eq i8 %6, 46
%9 = icmp eq i1 %8, false
%or.cond2 = icmp eq i1 %7, %9
store i8 %6, i8* %.reg2mem
store i8* %5, i8** %.reg2mem5
store i64 %arg1, i64* %sv_0.03.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %or.cond2, label LBL_2, label LBL_5
LBL_2:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%.reload = load i8, i8* %.reg2mem
%10 = icmp eq i8 %.reload, 45
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%.reload6 = load i8*, i8** %.reg2mem5
%11 = call i16** @__ctype_b_loc()
%12 = load i16*, i16** %11, align 8
%13 = ptrtoint i16* %12 to i64
%14 = load i8, i8* %.reload6, align 1
%15 = sext i8 %14 to i64
%16 = mul i64 %15, 2
%17 = add i64 %16, %13
%18 = inttoptr i64 %17 to i16*
%19 = load i16, i16* %18, align 2
%20 = and i16 %19, 8
%21 = icmp eq i16 %20, 0
%22 = icmp eq i1 %21, false
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_4, label LBL_5
LBL_4:
%23 = add i64 %sv_0.03.reload, 1
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = icmp ne i8 %25, 0
%27 = icmp eq i8 %25, 46
%28 = icmp eq i1 %27, false
%or.cond = icmp eq i1 %26, %28
store i8 %25, i8* %.reg2mem
store i8* %24, i8** %.reg2mem5
store i64 %23, i64* %sv_0.03.reg2mem
store i64 1, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_2, label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i8** %.reg2mem5, { 2, 0, 1 }
uselistorder i64* %sv_0.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i8 46, { 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3 }
uselistorder i8 0, { 1, 0, 2 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder label LBL_5, { 1, 0, 2, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | xudc_getstatus_6455 | xudc_getstatus | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 128
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = add i64 %0, 136
%5 = inttoptr i64 %4 to i8*
%6 = load i8, i8* %5, align 1
%7 = urem i8 %6, 32
%8 = icmp eq i8 %7, 2
br i1 %8, label LBL_4, label LBL_1
LBL_1:
%9 = icmp ugt i8 %7, 2
br i1 %9, label LBL_9, label LBL_2
LBL_2:
store i64 0, i64* %sv_0.0.reg2mem
switch i8 %7, label LBL_9 [
i8 0, label LBL_3
i8 1, label LBL_8
]
LBL_3:
%10 = add i64 %0, 140
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
%spec.select = select i1 %13, i64 1, i64 3
store i64 %spec.select, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_4:
%14 = add i64 %0, 138
%15 = inttoptr i64 %14 to i16*
%16 = load i16, i16* %15, align 2
%17 = mul i16 %16, 8
%18 = and i16 %17, 120
%19 = zext i16 %18 to i64
%20 = add i64 %19, %0
%21 = inttoptr i64 %20 to i32*
%22 = add i64 %0, 160
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = trunc i16 %16 to i8
%26 = icmp sgt i8 %25, -1
%27 = load i32, i32* %21, align 4
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
br i1 %26, label LBL_6, label LBL_5
LBL_5:
br i1 %29, label LBL_7, label LBL_9
LBL_6:
br i1 %29, label LBL_9, label LBL_7
LBL_7:
%30 = urem i64 %24, 2
%31 = icmp ne i64 %30, 0
%spec.select4 = zext i1 %31 to i64
store i64 %spec.select4, i64* %sv_0.0.reg2mem
br label LBL_8
LBL_8:
%32 = inttoptr i64 %3 to i16*
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
store i16 2, i16* %32, align 2
%33 = add i64 %3, 2
%34 = call i64 @FUNC(i64 %sv_0.0.reload)
%35 = trunc i64 %34 to i16
%36 = inttoptr i64 %33 to i16*
store i16 %35, i16* %36, align 2
%37 = call i64 @FUNC(i64 %0, i64 %3)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
store i64 %37, i64* %rax.0.reg2mem
br i1 %39, label LBL_10, label LBL_9
LBL_9:
%40 = add i64 %0, 144
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = call i64 @FUNC(i64 %42, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0))
%44 = call i64 @FUNC(i64 %0)
store i64 %44, 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 i1 %29, { 1, 0 }
uselistorder i16 %16, { 1, 0 }
uselistorder i8 %7, { 2, 1, 0 }
uselistorder i64 %0, { 4, 3, 2, 5, 0, 6, 1, 7, 8 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 2, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_9, { 3, 1, 4, 0, 2 }
} | 0 |
BinRealVul | usb_packet_unmap_2536 | usb_packet_unmap | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%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, 0
store i64 0, i64* %.lcssa.reg2mem
br i1 %6, label LBL_3, label LBL_1
LBL_1:
%7 = trunc i64 %1 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
%10 = zext i1 %9 to i32
%11 = add i64 %2, 16
%12 = inttoptr i64 %11 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1.reg2mem
br label LBL_2
LBL_2:
%storemerge1.reload = load i32, i32* %storemerge1.reg2mem
%.reload = load i64, i64* %.reg2mem
%13 = load i64, i64* %12, align 8
%14 = mul i64 %.reload, 16
%15 = add i64 %13, %14
%16 = add i64 %15, 8
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = inttoptr i64 %15 to i64*
%20 = load i64, i64* %19, align 8
%21 = zext i32 %18 to i64
%22 = call i64 @FUNC(i64 %20, i64 %20, i32 %18, i32 %10, i64 %21)
%23 = add i32 %storemerge1.reload, 1
%24 = load i32, i32* %4, align 4
%25 = zext i32 %24 to i64
%26 = sext i32 %23 to i64
%27 = icmp slt i64 %26, %25
store i64 %26, i64* %.reg2mem
store i32 %23, i32* %storemerge1.reg2mem
store i64 %25, i64* %.lcssa.reg2mem
br i1 %27, label LBL_2, label LBL_3
LBL_3:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %20, { 1, 0 }
uselistorder i32* %4, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge1.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | audio_capture_3443 | audio_capture | define i64 @FUNC(i32* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %1 to i32
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = icmp ugt i32 %7, %4
br i1 %8, label LBL_1, label LBL_2
LBL_1:
%sext = mul i64 %arg3, 4294967296
%9 = ashr exact i64 %sext, 32
%10 = ptrtoint i64* %arg2 to i64
%11 = call i64 @FUNC(i64 %2, i64 0)
%12 = call i64 @FUNC(i64 %2, i64 1)
%13 = call i64 @FUNC(i64 %2, i64 2)
%14 = and i64 %9, 4294967295
%15 = call i64 @FUNC(i64 %2, i64 %14)
%16 = trunc i64 %9 to i32
%17 = call i64 @FUNC(i64 %2, i64 %10, i32 %16)
br label LBL_2
LBL_2:
%18 = call i64 @FUNC(i64 %2)
%19 = call i64 @FUNC(i64 %2)
ret i64 %19
uselistorder i64 %9, { 1, 0 }
uselistorder i64 %2, { 1, 0, 3, 2, 6, 5, 4, 7, 8 }
uselistorder i64 (i64, i64)* @vnc_write_u8, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | nfsd4_cb_recall_18111 | nfsd4_cb_recall | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 64
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = add i64 %0, 72
%5 = inttoptr i64 %4 to i32*
store i32 1, i32* %5, align 4
store i64 %0, i64* %arg1, align 8
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
store i64 %3, i64* %7, align 8
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i64*
store i64 ptrtoint (i64* @gv_0 to i64), i64* %9, align 8
%10 = add i64 %0, 24
%11 = inttoptr i64 %10 to i64*
store i64 %0, i64* %11, align 8
%12 = add i64 %0, 32
%13 = inttoptr i64 %12 to i64*
store i64 %0, i64* %13, align 8
%14 = load i64, i64* @gv_1, align 8
%15 = add i64 %0, 40
%16 = inttoptr i64 %15 to i64*
store i64 %14, i64* %16, align 8
%17 = add i64 %0, 48
%18 = inttoptr i64 %17 to i64*
store i64 ptrtoint (i64* @gv_2 to i64), i64* %18, align 8
store i32 1, i32* %5, align 4
%19 = add i64 %0, 56
%20 = inttoptr i64 %19 to i8*
store i8 1, i8* %20, align 1
%21 = call i64 @FUNC(i64 %0)
ret i64 %21
uselistorder i64 %0, { 1, 12, 11, 10, 9, 8, 7, 6, 5, 4, 0, 2, 3 }
} | 1 |
BinRealVul | udp_attach_2458 | udp_attach | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = call i64 @FUNC(i64 2, i64 2, i64 0)
%3 = trunc i64 %2 to i32
%4 = bitcast i64* %arg1 to i32*
store i32 %3, i32* %4, align 4
%5 = trunc i64 %1 to i32
%6 = icmp eq i32 %5, -1
store i64 4294967295, i64* %.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = bitcast i64* %rdi to i32*
%9 = load i64, i64* @gv_0, align 8
%10 = add i64 %9, 60
%11 = add i64 %7, 8
%12 = inttoptr i64 %11 to i64*
store i64 %10, i64* %12, align 8
%13 = add i64 %7, 16
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %7, i64 %15)
%.pre = load i32, i32* %8, align 8
%phitmp = zext i32 %.pre to i64
store i64 %phitmp, i64* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
ret i64 %.reload
uselistorder i64 %7, { 1, 0, 2 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64 2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
} | 0 |
BinRealVul | openfile_14844 | openfile | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%3 = call i32 @fwrite(i64* bitcast ([37 x i8]* @gv_2 to i64*), i32 1, i32 36, %_IO_FILE* %2)
store i64 1, i64* %rax.0.reg2mem
br label LBL_10
LBL_2:
%4 = call i64 @FUNC(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_3, i64 0, i64 0))
store i64 %4, i64* @gv_0, align 8
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
store i64 1, i64* %rax.0.reg2mem
br i1 %6, label LBL_3, label LBL_10
LBL_3:
%7 = trunc i64 %arg2 to i32
%8 = call i64 @FUNC(i64 %4, i64 %arg1, i32 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, -1
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_5, label LBL_4
LBL_4:
%12 = load [8 x i8]*, [8 x i8]** @gv_4, align 8
%13 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%14 = getelementptr inbounds [8 x i8], [8 x i8]* %12, i64 0, i64 0
%15 = inttoptr i64 %arg1 to i8*
%16 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %13, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_5, i64 0, i64 0), i8* %14, i8* %15)
store i64 0, i64* @gv_0, align 8
store i64 1, i64* %rax.0.reg2mem
br label LBL_10
LBL_5:
%17 = icmp eq i32 %arg3, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_10, label LBL_6
LBL_6:
%18 = load i64, i64* @gv_0, align 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
br i1 %21, label LBL_8, label LBL_7
LBL_7:
%22 = inttoptr i64 %20 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_9, label LBL_8
LBL_8:
%26 = load [8 x i8]*, [8 x i8]** @gv_4, align 8
%27 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%28 = getelementptr inbounds [8 x i8], [8 x i8]* %26, i64 0, i64 0
%29 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %27, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_6, i64 0, i64 0), i8* %28)
store i64 1, i64* %rax.0.reg2mem
br label LBL_10
LBL_9:
%30 = add i64 %18, 8
%31 = inttoptr i64 %30 to i32*
store i32 1, i32* %31, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 6, 1, 5, 3, 4 }
uselistorder label LBL_10, { 1, 3, 0, 4, 2, 5 }
} | 1 |
BinRealVul | ehci_reset_8533 | ehci_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%indvars.iv5.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = ptrtoint i64* %sv_0 to i64
%2 = call i64 @FUNC()
%3 = add i64 %1, -48
store i64 0, i64* %indvars.iv5.reg2mem
br label LBL_1
LBL_1:
%indvars.iv5.reload = load i64, i64* %indvars.iv5.reg2mem
%4 = mul i64 %indvars.iv5.reload, 8
%5 = add i64 %4, %0
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %4, %3
%9 = inttoptr i64 %8 to i64*
store i64 %7, i64* %9, align 8
%10 = icmp eq i64 %7, 0
br i1 %10, label LBL_4, label LBL_2
LBL_2:
%11 = inttoptr i64 %7 to i32*
%12 = load i32, i32* %11, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = call i64 @FUNC(i64 %5)
br label LBL_4
LBL_4:
%indvars.iv.next6 = add nuw nsw i64 %indvars.iv5.reload, 1
%exitcond7 = icmp eq i64 %indvars.iv.next6, 4
store i64 %indvars.iv.next6, i64* %indvars.iv5.reg2mem
br i1 %exitcond7, label LBL_5, label LBL_1
LBL_5:
%15 = add i64 %0, 104
%16 = inttoptr i64 %15 to i64*
%17 = call i64* @memset(i64* %16, i32 0, i32 4)
%18 = add i64 %0, 56
%19 = inttoptr i64 %18 to i64*
%20 = call i64* @memset(i64* %19, i32 0, i32 16)
%21 = add i64 %0, 32
%22 = inttoptr i64 %21 to i32*
store i32 1, i32* %22, align 4
%23 = add i64 %0, 36
%24 = inttoptr i64 %23 to i32*
store i32 1, i32* %24, align 4
%25 = add i64 %0, 40
%26 = inttoptr i64 %25 to i32*
store i32 0, i32* %26, align 4
%27 = add i64 %0, 44
%28 = inttoptr i64 %27 to i32*
store i32 0, i32* %28, align 4
%29 = call i64 @FUNC(i64 %0)
%30 = add i64 %0, 48
%31 = inttoptr i64 %30 to i32*
store i32 0, i32* %31, align 4
%32 = add i64 %0, 52
%33 = inttoptr i64 %32 to i32*
store i32 0, i32* %33, align 4
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_6
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%34 = mul i64 %indvars.iv.reload, 4
%35 = add i64 %34, %0
%36 = add i64 %35, 88
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = icmp eq i32 %38, 0
%40 = add i64 %35, 56
%41 = inttoptr i64 %40 to i32*
%. = select i1 %39, i32 2, i32 3
store i32 %., i32* %41, align 4
%42 = mul i64 %indvars.iv.reload, 8
%43 = add i64 %42, %3
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = icmp eq i64 %45, 0
br i1 %46, label LBL_9, label LBL_7
LBL_7:
%47 = inttoptr i64 %45 to i32*
%48 = load i32, i32* %47, align 4
%49 = icmp eq i32 %48, 0
br i1 %49, label LBL_9, label LBL_8
LBL_8:
%50 = add i64 %42, %0
%51 = call i64 @FUNC(i64 %50)
%52 = load i64, i64* %44, align 8
%53 = call i64 @FUNC(i64 %52)
br label LBL_9
LBL_9:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 4
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_10, label LBL_6
LBL_10:
%54 = call i64 @FUNC(i64 %0, i64 0)
%55 = call i64 @FUNC(i64 %0, i64 1)
%56 = add i64 %0, 72
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = call i64 @FUNC(i64 %58)
%60 = add i64 %0, 80
%61 = inttoptr i64 %60 to i64*
%62 = load i64, i64* %61, align 8
%63 = call i64 @FUNC(i64 %62)
ret i64 %63
uselistorder i64 %42, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %7, { 1, 0, 2 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %0, { 3, 4, 5, 6, 0, 1, 7, 8, 9, 10, 11, 12, 13, 14, 15, 2 }
uselistorder i64* %indvars.iv5.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i64)* @ehci_queues_rip_all, { 1, 0 }
uselistorder i64 4, { 2, 0, 1 }
uselistorder i64 1, { 2, 1, 0 }
} | 0 |
BinRealVul | v410_decode_init_14030 | v410_decode_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i32*
store i32 1, i32* %1, align 4
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
store i32 10, i32* %3, align 4
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = urem i32 %6, 2
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %0, i64 0, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%10 = call i64 @FUNC()
%11 = add i64 %0, 16
%12 = inttoptr i64 %11 to i64*
store i64 %10, i64* %12, align 8
%13 = icmp eq i64 %10, 0
%14 = icmp eq i1 %13, false
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = call i64 @FUNC(i64 %0, i64 0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_1, i64 0, i64 0))
store i64 4294967284, 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 %0, { 1, 2, 0, 3, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64, i64, i8*)* @av_log, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 1 |
BinRealVul | ff_h264_frame_start_3 | ff_h264_frame_start | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%.reg2mem23 = alloca i32
%storemerge212.reg2mem = alloca i32
%.reg2mem21 = alloca i64
%.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%indvars.iv15.reg2mem = alloca i64
%storemerge9.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%3 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i32 %5, 31
%7 = urem i32 %6, 32
%8 = shl i32 1, %7
store i32 %8, i32* %sv_0, align 4
%9 = add i64 %2, 128
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_2, label LBL_1
LBL_1:
%16 = load i64, i64* %10, align 8
%17 = call i64 @FUNC(i64 %16, i64 0, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.shrunk.reg2mem
br label LBL_27
LBL_2:
%18 = call i64 @FUNC(i64 %2, i64 1)
%19 = add i64 %2, 32
%20 = inttoptr i64 %19 to i64*
store i64 0, i64* %20, align 8
%21 = call i64 @FUNC(i64 %2)
%22 = trunc i64 %21 to i32
%23 = icmp slt i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_4, label LBL_3
LBL_3:
%25 = load i64, i64* %10, align 8
%26 = call i64 @FUNC(i64 %25, i64 0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_1, i64 0, i64 0))
store i64 %21, i64* %rax.0.shrunk.reg2mem
br label LBL_27
LBL_4:
%27 = add i64 %2, 24
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = add i64 %2, 12
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = icmp eq i32 %32, 0
%34 = icmp eq i1 %33, false
%.pre18 = add i64 %2, 16
%.pre19 = inttoptr i64 %.pre18 to i32*
store i32 0, i32* %storemerge9.reg2mem
br i1 %34, label LBL_6, label LBL_5
LBL_5:
%35 = load i32, i32* %.pre19, align 4
store i32 %35, i32* %storemerge9.reg2mem
br label LBL_6
LBL_6:
%sext = mul i64 %21, 4294967296
%36 = ashr exact i64 %sext, 32
%37 = mul nsw i64 %36, 56
%38 = add i64 %29, %37
%39 = inttoptr i64 %38 to i32*
%storemerge9.reload = load i32, i32* %storemerge9.reg2mem
store i32 %storemerge9.reload, i32* %39, align 4
%40 = add i64 %2, 20
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = add i32 %42, 1
store i32 %43, i32* %41, align 4
%44 = add i64 %38, 4
%45 = inttoptr i64 %44 to i32*
store i32 %42, i32* %45, align 4
%46 = load i32, i32* %.pre19, align 4
%47 = icmp eq i32 %46, 1
%48 = icmp eq i1 %47, false
%49 = zext i1 %48 to i32
%50 = add i64 %38, 32
%51 = inttoptr i64 %50 to i32*
store i32 %49, i32* %51, align 4
%52 = add i64 %38, 8
%53 = inttoptr i64 %52 to i32*
store i32 0, i32* %53, align 4
%54 = add i64 %38, 48
%55 = inttoptr i64 %54 to i32*
store i32 0, i32* %55, align 4
%56 = add i64 %38, 52
%57 = inttoptr i64 %56 to i32*
store i32 0, i32* %57, align 4
%58 = call i64 @FUNC(i64 %2, i64 %38)
%59 = trunc i64 %58 to i32
%60 = icmp slt i32 %59, 0
%61 = icmp eq i1 %60, false
store i64 %58, i64* %rax.0.shrunk.reg2mem
br i1 %61, label LBL_7, label LBL_27
LBL_7:
%62 = add i64 %2, 168
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = icmp eq i32 %64, 0
%66 = icmp eq i1 %65, false
br i1 %66, label LBL_10, label LBL_8
LBL_8:
%67 = load i64, i64* %10, align 8
%68 = inttoptr i64 %67 to i64*
%69 = load i64, i64* %68, align 8
%70 = icmp eq i64 %69, 0
%71 = icmp eq i1 %70, false
br i1 %71, label LBL_10, label LBL_9
LBL_9:
%72 = call i64 @FUNC(i64 %38, i32* nonnull %sv_0)
br label LBL_10
LBL_10:
store i64 %38, i64* %20, align 8
%73 = inttoptr i64 %38 to i64*
%74 = load i64, i64* %73, align 8
%75 = inttoptr i64 %52 to i64*
%76 = load i64, i64* %75, align 8
%77 = add i64 %2, 40
%78 = inttoptr i64 %77 to i64*
store i64 %74, i64* %78, align 8
%79 = add i64 %2, 48
%80 = inttoptr i64 %79 to i64*
store i64 %76, i64* %80, align 8
%81 = add i64 %38, 16
%82 = inttoptr i64 %81 to i64*
%83 = load i64, i64* %82, align 8
%84 = add i64 %38, 24
%85 = inttoptr i64 %84 to i64*
%86 = load i64, i64* %85, align 8
%87 = add i64 %2, 56
%88 = inttoptr i64 %87 to i64*
store i64 %83, i64* %88, align 8
%89 = add i64 %2, 64
%90 = inttoptr i64 %89 to i64*
store i64 %86, i64* %90, align 8
%91 = inttoptr i64 %50 to i64*
%92 = load i64, i64* %91, align 8
%93 = add i64 %38, 40
%94 = inttoptr i64 %93 to i64*
%95 = load i64, i64* %94, align 8
%96 = add i64 %2, 72
%97 = inttoptr i64 %96 to i64*
store i64 %92, i64* %97, align 8
%98 = add i64 %2, 80
%99 = inttoptr i64 %98 to i64*
store i64 %95, i64* %99, align 8
%100 = inttoptr i64 %54 to i64*
%101 = load i64, i64* %100, align 8
%102 = add i64 %2, 88
%103 = inttoptr i64 %102 to i64*
store i64 %101, i64* %103, align 8
%104 = load i64, i64* %90, align 8
store i64 %104, i64* %88, align 8
%105 = add i64 %2, 136
%106 = call i64 @FUNC(i64 %105)
%107 = add i64 %2, 96
%108 = inttoptr i64 %107 to i32*
%109 = load i32, i32* %108, align 4
%110 = icmp eq i32 %109, 0
br i1 %110, label LBL_12, label LBL_11
LBL_11:
%111 = add i64 %2, 100
%112 = inttoptr i64 %111 to i32*
%113 = load i32, i32* %112, align 4
%114 = icmp eq i32 %113, 0
%115 = icmp eq i1 %114, false
br i1 %115, label LBL_13, label LBL_12
LBL_12:
call void @__assert_fail(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_3, i64 0, i64 0), i32 127, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_4, i64 0, i64 0))
br label LBL_13
LBL_13:
%116 = trunc i64 %1 to i32
%117 = urem i32 %116, 32
%118 = add i64 %2, 152
%119 = inttoptr i64 %118 to i64*
store i64 0, i64* %indvars.iv15.reg2mem
br label LBL_14
LBL_14:
%indvars.iv15.reload = load i64, i64* %indvars.iv15.reg2mem
%120 = mul i64 %indvars.iv15.reload, 4
%121 = add i64 %120, ptrtoint (i32** @gv_5 to i64)
%122 = inttoptr i64 %121 to i32*
%123 = load i32, i32* %122, align 4
%124 = load i32, i32* bitcast (i32** @gv_5 to i32*), align 8
%125 = sub i32 %123, %124
%126 = mul i32 %125, 4
%127 = and i32 %126, 28
%128 = shl i32 %127, %117
%129 = load i32, i32* %108, align 4
%130 = ashr i32 %125, 3
%131 = mul i32 %129, 4
%132 = mul i32 %131, %130
%133 = load i64, i64* %119, align 8
%134 = add i64 %133, %120
%135 = add i32 %128, %132
%136 = inttoptr i64 %134 to i32*
store i32 %135, i32* %136, align 4
%137 = load i32, i32* %122, align 4
%138 = load i32, i32* bitcast (i32** @gv_5 to i32*), align 8
%139 = sub i32 %137, %138
%140 = mul i32 %139, 4
%141 = and i32 %140, 28
%142 = shl i32 %141, %117
%143 = load i32, i32* %108, align 4
%144 = ashr i32 %139, 3
%145 = mul i32 %143, 8
%146 = mul i32 %145, %144
%147 = load i64, i64* %119, align 8
%148 = add nuw nsw i64 %120, 192
%149 = add i64 %148, %147
%150 = add i32 %142, %146
%151 = inttoptr i64 %149 to i32*
store i32 %150, i32* %151, align 4
%indvars.iv.next16 = add nuw nsw i64 %indvars.iv15.reload, 1
%exitcond17 = icmp eq i64 %indvars.iv.next16, 16
store i64 %indvars.iv.next16, i64* %indvars.iv15.reg2mem
br i1 %exitcond17, label LBL_15, label LBL_14
LBL_15:
%152 = add i64 %2, 100
%153 = inttoptr i64 %152 to i32*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_16
LBL_16:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%154 = mul i64 %indvars.iv.reload, 4
%155 = add i64 %154, ptrtoint (i32** @gv_5 to i64)
%156 = inttoptr i64 %155 to i32*
%157 = load i32, i32* %156, align 4
%158 = load i32, i32* bitcast (i32** @gv_5 to i32*), align 8
%159 = sub i32 %157, %158
%160 = mul i32 %159, 4
%161 = and i32 %160, 28
%162 = shl i32 %161, %117
%163 = load i32, i32* %153, align 4
%164 = ashr i32 %159, 3
%165 = mul i32 %163, 4
%166 = mul i32 %165, %164
%167 = load i64, i64* %119, align 8
%168 = add nuw nsw i64 %154, 128
%169 = add i64 %168, %167
%170 = add i32 %162, %166
%171 = inttoptr i64 %169 to i32*
store i32 %170, i32* %171, align 4
%172 = load i64, i64* %119, align 8
%173 = add nuw nsw i64 %154, 64
%174 = add i64 %173, %172
%175 = inttoptr i64 %174 to i32*
store i32 %170, i32* %175, align 4
%176 = load i32, i32* %156, align 4
%177 = load i32, i32* bitcast (i32** @gv_5 to i32*), align 8
%178 = sub i32 %176, %177
%179 = mul i32 %178, 4
%180 = and i32 %179, 28
%181 = shl i32 %180, %117
%182 = load i32, i32* %153, align 4
%183 = ashr i32 %178, 3
%184 = mul i32 %182, 8
%185 = mul i32 %184, %183
%186 = load i64, i64* %119, align 8
%187 = add nuw nsw i64 %154, 320
%188 = add i64 %187, %186
%189 = add i32 %181, %185
%190 = inttoptr i64 %188 to i32*
store i32 %189, i32* %190, align 4
%191 = load i64, i64* %119, align 8
%192 = add nuw nsw i64 %154, 256
%193 = add i64 %192, %191
%194 = inttoptr i64 %193 to i32*
store i32 %189, i32* %194, align 4
%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_17, label LBL_16
LBL_17:
%195 = add i64 %2, 104
%196 = inttoptr i64 %195 to i32*
%197 = load i32, i32* %196, align 4
%198 = icmp eq i32 %197, 0
br i1 %198, label LBL_23, label LBL_18
LBL_18:
%199 = add i64 %2, 112
%200 = inttoptr i64 %199 to i64*
store i32 %197, i32* %.reg2mem
store i64 0, i64* %.reg2mem21
store i32 0, i32* %storemerge212.reg2mem
br label LBL_19
LBL_19:
%storemerge212.reload = load i32, i32* %storemerge212.reg2mem
%.reload22 = load i64, i64* %.reg2mem21
%.reload = load i32, i32* %.reg2mem
%201 = load i64, i64* %200, align 8
%202 = mul i64 %.reload22, 8
%203 = add i64 %201, %202
%204 = inttoptr i64 %203 to i64*
%205 = load i64, i64* %204, align 8
%206 = icmp eq i64 %205, 0
store i32 %.reload, i32* %.reg2mem23
br i1 %206, label LBL_22, label LBL_20
LBL_20:
%207 = load i32, i32* %108, align 4
%208 = zext i32 %207 to i64
%209 = call i64 @FUNC(i64 %205, i64 %208)
%210 = trunc i64 %209 to i32
%211 = icmp slt i32 %210, 0
%212 = icmp eq i1 %211, false
store i64 %209, i64* %rax.0.shrunk.reg2mem
br i1 %212, label LBL_20.LBL_22_crit_edge, label LBL_27
LBL_21:
%.pre = load i32, i32* %196, align 4
store i32 %.pre, i32* %.reg2mem23
br label LBL_22
LBL_22:
%.reload24 = load i32, i32* %.reg2mem23
%213 = add i32 %storemerge212.reload, 1
%214 = zext i32 %.reload24 to i64
%215 = sext i32 %213 to i64
%216 = icmp slt i64 %215, %214
store i32 %.reload24, i32* %.reg2mem
store i64 %215, i64* %.reg2mem21
store i32 %213, i32* %storemerge212.reg2mem
br i1 %216, label LBL_19, label LBL_23
LBL_23:
%217 = add i64 %2, 144
%218 = inttoptr i64 %217 to i32*
%219 = load i32, i32* %218, align 4
%220 = add i64 %2, 148
%221 = inttoptr i64 %220 to i32*
%222 = load i32, i32* %221, align 4
%223 = mul i32 %219, 4
%224 = mul i32 %223, %222
%225 = add i32 %224, -4
%226 = add i64 %2, 120
%227 = inttoptr i64 %226 to i64*
%228 = load i64, i64* %227, align 8
%229 = inttoptr i64 %228 to i64*
%230 = call i64* @memset(i64* %229, i32 -1, i32 %225)
%231 = load i64, i64* %10, align 8
%232 = add i64 %231, 8
%233 = inttoptr i64 %232 to i32*
%234 = load i32, i32* %233, align 4
%235 = icmp eq i32 %234, 2
br i1 %235, label LBL_25, label LBL_24
LBL_24:
%236 = load i64, i64* %20, align 8
%237 = inttoptr i64 %236 to i32*
store i32 0, i32* %237, align 4
br label LBL_25
LBL_25:
%238 = load i64, i64* %20, align 8
%239 = add i64 %238, 40
%240 = inttoptr i64 %239 to i32*
store i32 2147483647, i32* %240, align 4
%241 = load i64, i64* %20, align 8
%242 = add i64 %241, 36
%243 = inttoptr i64 %242 to i32*
store i32 2147483647, i32* %243, align 4
%244 = add i64 %2, 160
%245 = inttoptr i64 %244 to i64*
store i64 0, i64* %245, align 8
%246 = load i64, i64* %20, align 8
%247 = add i64 %246, 44
%248 = inttoptr i64 %247 to i32*
%249 = load i32, i32* %248, align 4
%250 = icmp eq i32 %249, 0
store i64 0, i64* %rax.0.shrunk.reg2mem
br i1 %250, label LBL_27, label LBL_26
LBL_26:
call void @__assert_fail(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_6, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_3, i64 0, i64 0), i32 147, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_4, i64 0, i64 0))
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_27
LBL_27:
%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 %.reload24, { 1, 0 }
uselistorder i32 %178, { 1, 0 }
uselistorder i32 %159, { 1, 0 }
uselistorder i64 %154, { 4, 3, 2, 1, 0 }
uselistorder i32 %139, { 1, 0 }
uselistorder i32 %125, { 1, 0 }
uselistorder i64 %120, { 1, 2, 0 }
uselistorder i64* %119, { 3, 2, 1, 0, 4, 5 }
uselistorder i32 %117, { 2, 3, 1, 0 }
uselistorder i64 %38, { 2, 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }
uselistorder i64 %21, { 1, 0, 2 }
uselistorder i64* %20, { 1, 2, 3, 0, 4, 5 }
uselistorder i64* %10, { 3, 2, 1, 0, 4 }
uselistorder i64 %2, { 1, 6, 4, 3, 5, 2, 7, 8, 10, 9, 11, 18, 17, 16, 15, 14, 13, 12, 19, 20, 21, 0, 22, 23, 24, 25, 26, 27, 28 }
uselistorder i32* %storemerge9.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv15.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem21, { 1, 0, 2 }
uselistorder i32* %storemerge212.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem23, { 0, 2, 1 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 3, 2, 1, 4, 6, 5 }
uselistorder i32 28, { 2, 3, 0, 1 }
uselistorder i32* bitcast (i32** @gv_5 to i32*), { 3, 2, 1, 0 }
uselistorder i32** @gv_5, { 1, 0 }
uselistorder i64 ptrtoint (i32** @gv_5 to i64), { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
uselistorder i64 8, { 1, 0, 2 }
uselistorder i64 56, { 1, 0 }
uselistorder i64 16, { 2, 1, 3, 0 }
uselistorder i64 32, { 1, 0, 2 }
uselistorder i64 1, { 2, 1, 3, 0 }
uselistorder i64 (i64, i64, i8*)* @av_log, { 1, 0 }
uselistorder i32 0, { 3, 5, 4, 0, 2, 6, 7, 8, 9, 10, 11, 12, 1, 13, 14, 15 }
uselistorder label LBL_27, { 2, 1, 0, 3, 4, 5 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | migration_fd_process_incoming_14958 | migration_fd_process_incoming | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 4198772)
%1 = call i64 @FUNC()
%2 = call i64 @FUNC(i64 %arg1, i64 0)
%3 = call i64 @FUNC(i64 %0, i64 %arg1)
ret i64 %3
} | 1 |
BinRealVul | memory_region_transaction_commit_17125 | memory_region_transaction_commit | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge13.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i64
%.reg2mem = alloca i32
%0 = load i32, i32* @gv_0, align 4
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
store i32 %0, i32* %.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @gv_2, i64 0, i64 0), i32 30, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_3, i64 0, i64 0))
%.pre = load i32, i32* @gv_0, align 4
store i32 %.pre, i32* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i32, i32* %.reg2mem
%3 = add i32 %.reload, -1
store i32 %3, i32* @gv_0, align 4
%4 = zext i32 %3 to i64
%5 = icmp eq i32 %3, 0
%6 = icmp eq i1 %5, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_8, label LBL_3
LBL_3:
%7 = load i32, i32* inttoptr (i64 4210728 to i32*), align 8
%8 = icmp eq i32 %7, 0
store i64 ptrtoint (i64* @gv_4 to i64), i64* %storemerge4.reg2mem
br i1 %8, label LBL_5, label LBL_4
LBL_4:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
%9 = call i64 @FUNC(i64 %storemerge4.reload)
%10 = inttoptr i64 %storemerge4.reload to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
store i64 %11, i64* %storemerge4.reg2mem
br i1 %13, label LBL_4, label LBL_7
LBL_5:
%14 = load i32, i32* @gv_5, align 4
%15 = icmp eq i32 %14, 0
store i64 ptrtoint (i64* @gv_4 to i64), i64* %storemerge13.reg2mem
br i1 %15, label LBL_7, label LBL_6
LBL_6:
%storemerge13.reload = load i64, i64* %storemerge13.reg2mem
%16 = call i64 @FUNC(i64 %storemerge13.reload)
%17 = inttoptr i64 %storemerge13.reload to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
store i64 %18, i64* %storemerge13.reg2mem
br i1 %20, label LBL_6, label LBL_7
LBL_7:
%21 = call i64 @FUNC()
store i64 %21, 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 %storemerge13.reload, { 1, 0 }
uselistorder i64 %storemerge4.reload, { 1, 0 }
uselistorder i32* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge4.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge13.reg2mem, { 2, 0, 1 }
uselistorder i32 0, { 1, 2, 3, 4, 0 }
uselistorder i32* @gv_0, { 2, 0, 1 }
uselistorder i32 1, { 6, 5, 4, 3, 2, 1, 0, 7 }
uselistorder label LBL_7, { 1, 2, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | vhost_user_reset_device_1421 | vhost_user_reset_device | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
store i32 1, i32* %sv_0, align 4
%1 = call i64 @FUNC(i64 %0, i32* nonnull %sv_0, i64 0, i64 0)
%2 = trunc i64 %1 to i32
%3 = icmp slt i32 %2, 0
%4 = icmp eq i1 %3, false
%. = select i1 %4, i64 0, i64 4294967295
ret i64 %.
} | 0 |
BinRealVul | sh_mobile_ceu_videobuf_release_4723 | sh_mobile_ceu_videobuf_release | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, -8
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %0)
%6 = inttoptr i64 %4 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %7, 8
%9 = call i64 @FUNC(i64 %8)
%10 = inttoptr i64 %7 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %11, %0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = call i64 @FUNC(i64 %7, i64 0, i64 65536)
store i64 0, i64* %10, align 8
br label LBL_2
LBL_2:
%15 = inttoptr i64 %5 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, 0
br i1 %17, label LBL_4, label LBL_3
LBL_3:
%18 = call i64 @FUNC(i64 %5)
br label LBL_4
LBL_4:
%19 = call i64 @FUNC(i64 %8)
ret i64 %19
uselistorder i64 %5, { 1, 0 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.