dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | xdr_krb5_principal_18126 | xdr_krb5_principal | 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
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
store i64 0, i64* %sv_1, align 8
store i64 0, i64* %sv_0, align 8
%2 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64* nonnull @gv_0)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_17
LBL_2:
%8 = ptrtoint i64* %arg2 to i64
%9 = trunc i64 %1 to i32
%10 = icmp eq i32 %9, 2
br i1 %10, label LBL_15, label LBL_3
LBL_3:
%11 = icmp sgt i32 %9, 2
store i64 1, i64* %rax.0.reg2mem
br i1 %11, label LBL_17, label LBL_4
LBL_4:
store i64 1, i64* %rax.0.reg2mem
switch i32 %9, label LBL_17 [
i32 0, label LBL_5
i32 1, label LBL_10
]
LBL_5:
%12 = icmp eq i64* %arg2, null
br i1 %12, label LBL_7, label LBL_6
LBL_6:
%13 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %14, i64 %8, i64* nonnull %sv_1)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_7, label LBL_17
LBL_7:
%18 = ptrtoint i32* %arg1 to i64
%19 = call i64 @FUNC(i64 %18, i64* nonnull %sv_1)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
store i64 0, i64* %rax.0.reg2mem
br i1 %22, label LBL_8, label LBL_17
LBL_8:
%23 = load i64, i64* %sv_1, align 8
%24 = icmp eq i64 %23, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %24, label LBL_17, label LBL_9
LBL_9:
%25 = inttoptr i64 %23 to i64*
call void @free(i64* %25)
store i64 1, i64* %rax.0.reg2mem
br label LBL_17
LBL_10:
%26 = ptrtoint i32* %arg1 to i64
%27 = call i64 @FUNC(i64 %26, i64* nonnull %sv_1)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
%30 = icmp eq i1 %29, false
store i64 0, i64* %rax.0.reg2mem
br i1 %30, label LBL_11, label LBL_17
LBL_11:
%31 = load i64, i64* %sv_1, align 8
%32 = icmp eq i64 %31, 0
br i1 %32, label LBL_14, label LBL_12
LBL_12:
%33 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%34 = zext i32 %33 to i64
%35 = call i64 @FUNC(i64 %34, i64 %31, i64* nonnull %sv_0)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %37, label LBL_13, label LBL_17
LBL_13:
%38 = load i64, i64* %sv_0, align 8
store i64 %38, i64* %arg2, align 8
%39 = load i64, i64* %sv_1, align 8
%40 = inttoptr i64 %39 to i64*
call void @free(i64* %40)
store i64 1, i64* %rax.0.reg2mem
br label LBL_17
LBL_14:
store i64 0, i64* %arg2, align 8
store i64 1, i64* %rax.0.reg2mem
br label LBL_17
LBL_15:
%41 = icmp eq i64* %arg2, null
store i64 1, i64* %rax.0.reg2mem
br i1 %41, label LBL_17, label LBL_16
LBL_16:
%42 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%43 = zext i32 %42 to i64
%44 = call i64 @FUNC(i64 %43, i64 %8)
store i64 1, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %9, { 2, 1, 0 }
uselistorder i64 %8, { 1, 0 }
uselistorder i64* %sv_1, { 3, 4, 0, 5, 1, 2, 6 }
uselistorder i64* %sv_0, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 7, 3, 2, 9, 10, 4, 5, 11, 12, 8, 1, 13 }
uselistorder void (i64*)* @free, { 2, 1, 0 }
uselistorder i64 (i64, i64*)* @xdr_nullstring, { 1, 0 }
uselistorder i64 1, { 5, 6, 2, 1, 3, 4, 7, 0, 8 }
uselistorder i32 2, { 1, 0 }
uselistorder i64* %arg2, { 0, 2, 3, 1, 4 }
uselistorder label LBL_17, { 5, 6, 2, 1, 8, 9, 3, 4, 10, 11, 7, 0, 12 }
} | 1 |
BinRealVul | write_target_close_2920 | write_target_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4)
ret i64 %5
} | 0 |
BinRealVul | php_parse_date_7372 | php_parse_date | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32*, align 8
store i32* null, i32** %sv_1, align 8
%1 = load i64, i64* @gv_0, align 8
%2 = bitcast i64* %arg1 to i8*
%3 = call i32 @strlen(i8* %2)
%4 = sext i32 %3 to i64
%5 = bitcast i32** %sv_1 to i64*
%6 = call i64 @FUNC(i64 %0, i64 %4, i64* nonnull %5, i64 0, i64 %1)
%7 = load i32*, i32** %sv_1, align 8
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
%10 = ptrtoint i32* %7 to i64
%11 = call i64 @FUNC(i64 %10)
store i64 -1, i64* %rax.0.reg2mem
br i1 %9, label LBL_1, label LBL_2
LBL_1:
%12 = call i64 @FUNC(i64 %6, i64 0)
%13 = bitcast i32* %sv_0 to i64*
%14 = call i64 @FUNC(i64 %6, i64* nonnull %13)
%15 = call i64 @FUNC(i64 %6)
%16 = load i32, i32* %sv_0, align 4
%17 = icmp eq i32 %16, 0
%. = select i1 %17, i64 %14, i64 -1
store i64 %., i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %6, { 2, 1, 0 }
uselistorder i32** %sv_1, { 1, 2, 0 }
uselistorder i32 0, { 1, 2, 0 }
} | 0 |
BinRealVul | w9966_term_18256 | w9966_term | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 1, i64 1)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0)
%5 = call i64 @FUNC(i64 %0, i64 1, i64 0)
br label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %0, i64 2, i64 2)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %0)
%10 = call i64 @FUNC(i64 %0, i64 0)
%11 = call i64 @FUNC(i64 %0)
br label LBL_4
LBL_4:
%12 = call i64 @FUNC(i64 %0, i64 2, i64 2)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
store i64 %12, i64* %rax.0.reg2mem
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = add i64 %0, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17)
%19 = call i64 @FUNC(i64 %0, i64 2, i64 0)
store i64 %19, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 6, 5, 7, 4, 3, 2, 8, 1, 0, 9 }
uselistorder i64 2, { 0, 2, 1, 4, 3 }
uselistorder i64 (i64, i64, i64)* @w9966_set_state, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @w9966_get_state, { 2, 1, 0 }
uselistorder i64 1, { 1, 3, 2, 0 }
} | 1 |
BinRealVul | mxf_read_index_entry_array_6059 | mxf_read_index_entry_array | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge2.reg2mem = alloca i32
%.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%rsi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i32
%5 = bitcast i64* %arg2 to i32*
store i32 %4, i32* %5, align 4
%6 = call i64 @FUNC(i64 %2)
%7 = trunc i64 %6 to i32
%8 = trunc i64 %1 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp sgt i32 %7, 10
%or.cond = or i1 %9, %10
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_10
LBL_1:
%11 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %1, 4294967296
%12 = ashr exact i64 %sext, 32
%13 = call i64 @FUNC(i64 %12, i64 4)
%14 = add i64 %11, 8
%15 = inttoptr i64 %14 to i64*
store i64 %13, i64* %15, align 8
%16 = icmp eq i64 %13, 0
br i1 %16, label LBL_1.LBL_7_crit_edge, label LBL_3
LBL_2:
%.pre = add i64 %11, 16
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_7
LBL_3:
%17 = bitcast i64* %rsi to i32*
%18 = load i32, i32* %17, align 8
%19 = sext i32 %18 to i64
%20 = call i64 @FUNC(i64 %19, i64 4)
%21 = add i64 %11, 16
%22 = inttoptr i64 %21 to i64*
store i64 %20, i64* %22, align 8
%23 = icmp eq i64 %20, 0
store i64 %21, i64* %.pre-phi.reg2mem
br i1 %23, label LBL_7, label LBL_4
LBL_4:
%24 = load i32, i32* %17, align 8
%25 = sext i32 %24 to i64
%26 = call i64 @FUNC(i64 %25, i64 8)
%27 = add i64 %11, 24
%28 = inttoptr i64 %27 to i64*
store i64 %26, i64* %28, align 8
%29 = icmp eq i64 %26, 0
%30 = icmp eq i1 %29, false
store i64 %21, i64* %.pre-phi.reg2mem
br i1 %30, label LBL_5, label LBL_7
LBL_5:
%31 = load i32, i32* %17, align 8
%32 = icmp eq i32 %31, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %32, label LBL_10, label LBL_6
LBL_6:
%33 = add i64 %6, 4294967285
%34 = and i64 %33, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge2.reg2mem
br label LBL_8
LBL_7:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%35 = call i64 @FUNC(i64 %14)
%36 = call i64 @FUNC(i64 %.pre-phi.reload)
store i64 4294967284, i64* %rax.0.reg2mem
br label LBL_10
LBL_8:
%37 = call i64 @FUNC(i64 %2)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %39, label LBL_9, label LBL_10
LBL_9:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%.reload = load i64, i64* %.reg2mem
%40 = call i64 @FUNC(i64 %2)
%41 = load i64, i64* %15, align 8
%42 = mul i64 %.reload, 4
%43 = add i64 %41, %42
%44 = trunc i64 %40 to i32
%45 = urem i32 %44, 256
%46 = inttoptr i64 %43 to i32*
store i32 %45, i32* %46, align 4
%47 = call i64 @FUNC(i64 %2)
%48 = call i64 @FUNC(i64 %2)
%49 = load i64, i64* %22, align 8
%50 = add i64 %49, %42
%51 = trunc i64 %48 to i32
%52 = urem i32 %51, 256
%53 = inttoptr i64 %50 to i32*
store i32 %52, i32* %53, align 4
%54 = load i64, i64* %28, align 8
%55 = mul i64 %.reload, 8
%56 = add i64 %54, %55
%57 = call i64 @FUNC(i64 %2)
%58 = inttoptr i64 %56 to i64*
store i64 %57, i64* %58, align 8
%59 = call i64 @FUNC(i64 %2, i64 %34)
%60 = add i32 %storemerge2.reload, 1
%61 = load i32, i32* %17, align 8
%62 = zext i32 %61 to i64
%63 = sext i32 %60 to i64
%64 = icmp slt i64 %63, %62
store i64 %63, i64* %.reg2mem
store i32 %60, i32* %storemerge2.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %64, label LBL_8, label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %42, { 1, 0 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i64 %21, { 1, 0, 2 }
uselistorder i32* %17, { 1, 0, 2, 3 }
uselistorder i64 %11, { 1, 2, 0, 3 }
uselistorder i64 %2, { 0, 1, 3, 2, 4, 5, 6, 7 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 5, 3, 4 }
uselistorder i64 (i64)* @avio_r8, { 2, 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 (i64, i64)* @av_calloc, { 2, 1, 0 }
uselistorder i64 (i64)* @avio_rb32, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_10, { 1, 0, 4, 2, 3 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_7, { 1, 2, 0 }
} | 0 |
BinRealVul | io_read_19196 | io_read | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%1 = ptrtoint i64* %sv_5 to i64
store i64 %1, i64* %sv_4, align 8
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = urem i64 %arg2, 2
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
%8 = icmp eq i64 %4, 0
br i1 %8, label LBL_2, label LBL_1
LBL_1:
store i64 0, i64* %sv_4, align 8
store i64 %4, i64* %sv_2.0.reg2mem
br label LBL_3
LBL_2:
%9 = ptrtoint i64* %sv_3 to i64
%10 = icmp eq i1 %7, false
%11 = zext i1 %10 to i64
%12 = call i64 @FUNC(i64 0, i64 %0, i64* nonnull %sv_4, i64 %9, i64 %11)
%13 = icmp slt i64 %12, 0
%14 = icmp eq i1 %13, false
store i64 %9, i64* %sv_2.0.reg2mem
store i64 %12, i64* %rax.0.reg2mem
br i1 %14, label LBL_3, label LBL_22
LBL_3:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%15 = call i64 @FUNC(i64 %sv_2.0.reload)
%16 = add i64 %0, 40
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
%18 = bitcast i64* %rdi to i32*
%19 = load i32, i32* %18, align 8
br i1 %7, label LBL_5, label LBL_4
LBL_4:
%20 = and i32 %19, -2
%21 = bitcast i64* %arg1 to i32*
store i32 %20, i32* %21, align 4
br label LBL_7
LBL_5:
%22 = or i32 %19, 1
%23 = bitcast i64* %arg1 to i32*
store i32 %22, i32* %23, align 4
%24 = call i64 @FUNC(i64 %0, i64 0)
%25 = trunc i64 %24 to i8
%26 = icmp eq i8 %25, 1
br i1 %26, label LBL_7, label LBL_6
LBL_6:
%27 = load i64, i64* %sv_4, align 8
%28 = call i64 @FUNC(i64 %0, i64 %27, i64* nonnull %sv_5, i64 %sv_2.0.reload, i64 1)
%29 = icmp eq i64 %28, 0
%spec.store.select = select i1 %29, i64 11, i64 %28
store i64 %spec.store.select, i64* %rax.0.reg2mem
br label LBL_22
LBL_7:
%30 = call i64 @FUNC(i64 %0)
%31 = add i64 %0, 24
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = call i64 @FUNC(i64 0, i64 %33, i64 %30, i64 %15)
%35 = icmp eq i64 %34, 0
%36 = icmp eq i1 %35, false
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_9, label LBL_8
LBL_8:
%38 = load i64, i64* %sv_4, align 8
%39 = call i64 @FUNC(i64 %38)
store i64 %34, i64* %rax.0.reg2mem
br label LBL_22
LBL_9:
%40 = call i64 @FUNC(i64 %0, i64 %sv_2.0.reload)
%41 = icmp ne i64 %40, 11
%.pre = add i64 %0, 16
%.pre7 = inttoptr i64 %.pre to i32*
%.pre11 = load i32, i32* %.pre7, align 4
%42 = urem i32 %.pre11, 2
%43 = icmp eq i32 %42, 0
%or.cond = icmp eq i1 %41, %43
br i1 %or.cond, label LBL_13, label LBL_10
LBL_10:
%44 = and i32 %.pre11, -2
store i32 %44, i32* %.pre7, align 4
br i1 %7, label LBL_12, label LBL_11
LBL_11:
%45 = add i64 %0, 32
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = urem i32 %49, 2
%51 = icmp eq i32 %50, 0
store i64 %40, i64* %sv_0.1.reg2mem
br i1 %51, label LBL_19, label LBL_12
LBL_12:
%52 = call i64 @FUNC(i64 %sv_2.0.reload)
%53 = sub i64 %15, %52
%54 = call i64 @FUNC(i64 %sv_2.0.reload, i64 %53)
%55 = load i64, i64* %sv_4, align 8
%56 = call i64 @FUNC(i64 %0, i64 %55, i64* nonnull %sv_5, i64 %sv_2.0.reload, i64 1)
%57 = icmp eq i64 %56, 0
store i64 %56, i64* %rax.0.reg2mem
br i1 %57, label LBL_14, label LBL_22
LBL_13:
%58 = icmp eq i64 %40, 12
store i64 %40, i64* %sv_0.1.reg2mem
br i1 %58, label LBL_20, label LBL_19
LBL_14:
store i64 0, i64* %sv_4, align 8
%59 = load i64, i64* %3, align 8
%60 = add i64 %59, 8
%61 = inttoptr i64 %60 to i64*
%62 = bitcast i64* %arg1 to i32*
store i64 0, i64* %sv_0.0.reg2mem
store i64 %15, i64* %sv_1.0.reg2mem
br label LBL_15
LBL_15:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%63 = load i64, i64* %61, align 8
%64 = add i64 %63, %sv_0.0.reload
store i64 %64, i64* %61, align 8
%65 = call i64 @FUNC(i64 %0)
%66 = trunc i64 %65 to i8
%67 = icmp eq i8 %66, 1
br i1 %67, label LBL_17, label LBL_16
LBL_16:
%68 = load i32, i32* %18, align 8
%69 = and i32 %68, -3
store i32 %69, i32* %62, align 4
store i64 11, i64* %rax.0.reg2mem
br label LBL_22
LBL_17:
%70 = call i64 @FUNC(i64 %0, i64 %59)
%71 = icmp eq i64 %70, 12
%72 = icmp eq i1 %71, false
store i64 0, i64* %rax.0.reg2mem
br i1 %72, label LBL_18, label LBL_22
LBL_18:
%73 = sub i64 %sv_1.0.reload, %sv_0.0.reload
%74 = load i32, i32* %18, align 8
%75 = and i32 %74, -3
store i32 %75, i32* %62, align 4
%76 = icmp sgt i64 %70, 0
%77 = icmp slt i64 %70, %73
%or.cond4 = icmp eq i1 %76, %77
store i64 %70, i64* %sv_0.0.reg2mem
store i64 %73, i64* %sv_1.0.reg2mem
store i64 %70, i64* %sv_0.1.reg2mem
br i1 %or.cond4, label LBL_15, label LBL_19
LBL_19:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%78 = trunc i64 %arg2 to i32
%79 = call i64 @FUNC(i64 %0, i64 %sv_0.1.reload, i32 %78)
br label LBL_20
LBL_20:
%80 = load i64, i64* %sv_4, align 8
%81 = icmp eq i64 %80, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %81, label LBL_22, label LBL_21
LBL_21:
%82 = call i64 @FUNC(i64 %80)
store i64 0, i64* %rax.0.reg2mem
br label LBL_22
LBL_22:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %70, { 0, 1, 3, 2, 4 }
uselistorder i32* %62, { 1, 0 }
uselistorder i32 %.pre11, { 1, 0 }
uselistorder i32* %.pre7, { 1, 0 }
uselistorder i64 %40, { 0, 2, 1, 3 }
uselistorder i32 %19, { 1, 0 }
uselistorder i32* %18, { 1, 0, 2 }
uselistorder i64 %sv_2.0.reload, { 4, 2, 3, 1, 5, 0 }
uselistorder i1 %7, { 1, 2, 0 }
uselistorder i64* %sv_4, { 1, 2, 3, 4, 5, 0, 6, 7 }
uselistorder i64 %0, { 7, 4, 5, 6, 3, 0, 8, 9, 10, 1, 2, 11, 12, 13 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 8, 4, 7, 6, 5 }
uselistorder i64 12, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 (i64, i64)* @io_iter_do_read, { 1, 0 }
uselistorder i64 (i64)* @kfree, { 1, 0 }
uselistorder i64 11, { 0, 2, 1 }
uselistorder i64 (i64, i64, i64*, i64, i64)* @io_setup_async_rw, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i64 (i64)* @iov_iter_count, { 1, 0 }
uselistorder i1 false, { 2, 1, 3, 4, 0, 5 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0, 2, 3 }
uselistorder label LBL_22, { 2, 1, 0, 6, 3, 7, 5, 4 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | strip_spaces_9133 | strip_spaces | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.in4.reg2mem = alloca i64
%storemerge25.lcssa.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i8*
%storemerge2519.reg2mem = alloca i64
%0 = bitcast i64* %arg1 to i8*
%1 = load i8, i8* %0, align 1
%2 = icmp eq i8 %1, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_10, label LBL_1
LBL_1:
%3 = ptrtoint i64* %arg1 to i64
%4 = sext i8 %1 to i64
%5 = and i64 %4, 4294967295
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 %3, i64* %storemerge2519.reg2mem
store i8* %0, i8** %.lcssa.reg2mem
store i64 %3, i64* %storemerge25.lcssa.reg2mem
br i1 %9, label LBL_2, label LBL_4
LBL_2:
%storemerge2519.reload = load i64, i64* %storemerge2519.reg2mem
%10 = add i64 %storemerge2519.reload, 1
%11 = inttoptr i64 %10 to i8*
%12 = load i8, i8* %11, align 1
%13 = icmp eq i8 %12, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_10, label LBL_3
LBL_3:
%14 = sext i8 %12 to i64
%15 = and i64 %14, 4294967295
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
store i64 %10, i64* %storemerge2519.reg2mem
store i8* %11, i8** %.lcssa.reg2mem
store i64 %10, i64* %storemerge25.lcssa.reg2mem
br i1 %19, label LBL_2, label LBL_4
LBL_4:
%.lcssa.reload = load i8*, i8** %.lcssa.reg2mem
%.pre = load i8, i8* %.lcssa.reload, align 1
%phitmp = icmp eq i8 %.pre, 0
%phitmp15 = icmp eq i1 %phitmp, false
store i64 0, i64* %rax.0.reg2mem
br i1 %phitmp15, label LBL_5, label LBL_10
LBL_5:
%storemerge25.lcssa.reload = load i64, i64* %storemerge25.lcssa.reg2mem
%20 = call i32 @strlen(i8* nonnull %.lcssa.reload)
%21 = sext i32 %20 to i64
%22 = add i64 %storemerge25.lcssa.reload, -1
%23 = add i64 %22, %21
%24 = icmp eq i64 %storemerge25.lcssa.reload, %23
store i64 %23, i64* %storemerge.in4.reg2mem
br i1 %24, label LBL_9, label LBL_7
LBL_6:
%25 = add i64 %storemerge.in4.reload, -1
%26 = icmp eq i64 %storemerge25.lcssa.reload, %25
store i64 %25, i64* %storemerge.in4.reg2mem
br i1 %26, label LBL_9, label LBL_7
LBL_7:
%storemerge.in4.reload = load i64, i64* %storemerge.in4.reg2mem
%storemerge = inttoptr i64 %storemerge.in4.reload to i8*
%27 = load i8, i8* %storemerge, align 1
%28 = sext i8 %27 to i64
%29 = and i64 %28, 4294967295
%30 = call i64 @FUNC(i64 %29)
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_6, label LBL_8
LBL_8:
%34 = add i64 %storemerge.in4.reload, 1
%35 = inttoptr i64 %34 to i8*
store i8 0, i8* %35, align 1
br label LBL_9
LBL_9:
%36 = load i8, i8* %.lcssa.reload, align 1
%37 = icmp eq i8 %36, 0
%38 = icmp eq i1 %37, false
%storemerge2. = select i1 %38, i64 %storemerge25.lcssa.reload, i64 0
store i64 %storemerge2., 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 %storemerge.in4.reload, { 2, 1, 0 }
uselistorder i64 %storemerge25.lcssa.reload, { 1, 2, 3, 0 }
uselistorder i64* %storemerge2519.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.in4.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 1, 2 }
uselistorder i1 false, { 2, 3, 1, 4, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 (i64)* @ossl_isspace, { 2, 1, 0 }
uselistorder i64 4294967295, { 1, 2, 0 }
uselistorder i8 0, { 2, 3, 0, 4, 1 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_10, { 2, 3, 0, 1 }
uselistorder label LBL_9, { 2, 0, 1 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | qemu_put_buffer_17189 | qemu_put_buffer | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.1.reg2mem = alloca i64
%sv_0.08.reg2mem = alloca i64
%sv_1.09.reg2mem = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
%5 = icmp eq i1 %4, false
store i64 %3, i64* %rax.1.reg2mem
br i1 %5, label LBL_10, label LBL_1
LBL_1:
%sv_1.0.in6 = mul i64 %arg3, 4294967296
%sv_1.07 = ashr exact i64 %sv_1.0.in6, 32
%6 = trunc i64 %sv_1.07 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp slt i32 %6, 0
%9 = icmp eq i1 %8, false
%10 = icmp eq i1 %7, false
%11 = icmp eq i1 %9, %10
store i64 %3, i64* %rax.1.reg2mem
br i1 %11, label LBL_2, label LBL_10
LBL_2:
%12 = ptrtoint i64* %arg2 to i64
%13 = ptrtoint i64* %arg1 to i64
%14 = add i64 %13, 4
%15 = inttoptr i64 %14 to i32*
%16 = add i64 %13, 12
%17 = add i64 %13, 8
%18 = inttoptr i64 %17 to i32*
%19 = add i64 %13, 1040
%20 = inttoptr i64 %19 to i64*
store i32 %6, i32* %.reg2mem
store i64 %sv_1.07, i64* %sv_1.09.reg2mem
store i64 %12, i64* %sv_0.08.reg2mem
br label LBL_3
LBL_3:
%sv_0.08.reload = load i64, i64* %sv_0.08.reg2mem
%sv_1.09.reload = load i64, i64* %sv_1.09.reg2mem
%.reload = load i32, i32* %.reg2mem
%21 = load i32, i32* %15, align 4
%22 = sub i32 1024, %21
%23 = sext i32 %22 to i64
%24 = icmp sgt i32 %22, %.reload
%spec.select = select i1 %24, i64 %sv_1.09.reload, i64 %23
%25 = trunc i64 %spec.select to i32
%26 = sext i32 %21 to i64
%27 = add i64 %16, %26
%28 = inttoptr i64 %27 to i64*
%29 = inttoptr i64 %sv_0.08.reload to i64*
%30 = call i64* @memcpy(i64* %28, i64* %29, i32 %25)
%31 = load i32, i32* %18, align 4
%32 = add i32 %31, %25
store i32 %32, i32* %18, align 4
%33 = load i64, i64* %20, align 8
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = icmp eq i64 %35, 0
br i1 %36, label LBL_5, label LBL_4
LBL_4:
%37 = load i32, i32* %15, align 4
%38 = sext i32 %37 to i64
%39 = add i64 %16, %38
%40 = call i64 @FUNC(i64 %13, i64 %39, i32 %25)
br label LBL_5
LBL_5:
%41 = load i32, i32* %15, align 4
%42 = add i32 %41, %25
store i32 %42, i32* %15, align 4
%43 = icmp eq i32 %42, 1024
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_7, label LBL_6
LBL_6:
%45 = call i64 @FUNC(i64 %13)
br label LBL_7
LBL_7:
%46 = call i64 @FUNC(i64 %13)
%47 = trunc i64 %46 to i32
%48 = icmp eq i32 %47, 0
%49 = icmp eq i1 %48, false
store i64 %46, i64* %rax.1.reg2mem
br i1 %49, label LBL_10, label LBL_8
LBL_8:
%50 = add i64 %spec.select, %sv_0.08.reload
%51 = sub nsw i64 %sv_1.09.reload, %spec.select
%sv_1.0.in = mul i64 %51, 4294967296
%sv_1.0 = ashr exact i64 %sv_1.0.in, 32
%52 = trunc i64 %sv_1.0 to i32
%53 = icmp eq i32 %52, 0
%54 = icmp slt i32 %52, 0
%55 = icmp eq i1 %54, false
%56 = icmp eq i1 %53, false
%57 = icmp eq i1 %55, %56
store i32 %52, i32* %.reg2mem
store i64 %sv_1.0, i64* %sv_1.09.reg2mem
store i64 %50, i64* %sv_0.08.reg2mem
br i1 %57, label LBL_3, label LBL_9
LBL_9:
%58 = and i64 %spec.select, 4294967295
store i64 %58, i64* %rax.1.reg2mem
br label LBL_10
LBL_10:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32 %52, { 0, 2, 1 }
uselistorder i32 %25, { 1, 2, 0, 3 }
uselistorder i64 %spec.select, { 0, 3, 1, 2 }
uselistorder i64 %sv_1.09.reload, { 1, 0 }
uselistorder i64 %sv_0.08.reload, { 1, 0 }
uselistorder i32* %15, { 2, 1, 0, 3 }
uselistorder i64 %13, { 0, 1, 3, 2, 4, 5, 6 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.09.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.08.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.1.reg2mem, { 0, 3, 1, 2, 4 }
uselistorder i64 32, { 1, 0 }
uselistorder i1 false, { 5, 2, 3, 4, 0, 1, 6 }
uselistorder i32 0, { 3, 4, 2, 0, 1, 5 }
uselistorder i64 4294967295, { 2, 0, 1 }
uselistorder label LBL_10, { 2, 0, 1, 3 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | eel_g_settings_add_auto_int_18036 | eel_g_settings_add_auto_int | define i64 @FUNC(i64* %arg1, i8* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i8* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 %1)
%4 = trunc i64 %3 to i32
%5 = bitcast i64* %arg3 to i32*
store i32 %4, i32* %5, align 4
%6 = call i64 @FUNC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i64 %1, i64 0)
%7 = call i64 @FUNC(i64 %2, i64 %6, i64 4198777, i64 %0)
ret i64 %7
} | 1 |
BinRealVul | flow_stats_ds_8278 | flow_stats_ds | 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 = load i64, i64* %0
%5 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%6 = add i64 %3, 24
%7 = call i64 @FUNC(i64 %6)
%8 = call i64 @FUNC(i64 %3)
%9 = add i64 %3, 16
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %6)
%13 = add i64 %3, 8
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = icmp eq i8 %15, 0
br i1 %16, label LBL_2, label LBL_1
LBL_1:
%17 = ptrtoint i64* %sv_0 to i64
%18 = zext i8 %15 to i64
%19 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i64 %18, i64 %17, i64 %3, i64 %1)
br label LBL_2
LBL_2:
%20 = ptrtoint i64* %arg1 to i64
%21 = call i64 @FUNC()
%22 = sub i64 %21, %11
%23 = ashr i64 %22, 63
%24 = lshr i64 %22, 63
%25 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_1, i64 0, i64 0), i64 %24, i64 %23, i64 %3, i64 %1)
%26 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_2, i64 0, i64 0), i64 %4, i64 %23, i64 %3, i64 %1)
%27 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_3, i64 0, i64 0), i64 %5, i64 %23, i64 %3, i64 %1)
%28 = call i64 @FUNC(i64 %20)
%29 = add i64 %3, 64
%30 = call i64 @FUNC(i64 %29, i64 %28, i64 %2)
%31 = call i64 @FUNC(i64 %2, i64 44)
%32 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_4, i64 0, i64 0))
%33 = add i64 %8, 8
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = inttoptr i64 %8 to i64*
%37 = load i64, i64* %36, align 8
%38 = call i64 @FUNC(i64 %37, i64 %35, i64 %2)
%39 = call i64 @FUNC(i64 %2, i8* inttoptr (i64 4202582 to i8*))
ret i64 %39
uselistorder i64 %23, { 2, 1, 0 }
uselistorder i64 %8, { 1, 0 }
uselistorder i64 %3, { 1, 2, 4, 3, 0, 5, 6, 7, 8 }
uselistorder i64 %2, { 2, 1, 5, 4, 3, 6, 8, 7, 0 }
uselistorder i64 %1, { 3, 1, 2, 0 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i8*)* @ds_put_cstr, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @ds_put_format, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | ihevcd_calc_poc_8570 | ihevcd_calc_poc | define i64 @FUNC(i32* %arg1, i32* %arg2, i8 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge4.reg2mem = alloca i1
%sv_0.0.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = urem i8 %arg3, 32
%4 = icmp eq i8 %3, 0
%5 = zext i8 %3 to i32
%6 = shl i32 1, %5
%storemerge = select i1 %4, i32 1, i32 %6
%7 = trunc i64 %1 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_3, label LBL_1
LBL_1:
%10 = ptrtoint i32* %arg1 to i64
%11 = add i64 %10, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = mul i32 %storemerge, 2
%17 = sub i32 0, %16
%18 = add i64 %10, 8
%19 = inttoptr i64 %18 to i32*
store i32 %17, i32* %19, align 4
br label LBL_3
LBL_3:
%20 = trunc i64 %2 to i8
%.off = add i8 %20, -1
%switch = icmp ult i8 %.off, 5
br i1 %switch, label LBL_6, label LBL_4
LBL_4:
%21 = icmp eq i8 %20, 6
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_7, label LBL_5
LBL_5:
%23 = bitcast i64* %rdi to i32*
%24 = load i32, i32* %23, align 8
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_7, label LBL_6
LBL_6:
%27 = ptrtoint i32* %arg1 to i64
%28 = add i64 %27, 8
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = mul i32 %storemerge, 2
%32 = add i32 %30, %31
%33 = add i64 %27, 12
%34 = inttoptr i64 %33 to i32*
store i32 0, i32* %34, align 4
%35 = add i64 %27, 16
%36 = inttoptr i64 %35 to i32*
store i32 0, i32* %36, align 4
store i64 %27, i64* %.pre-phi.reg2mem
store i32 %32, i32* %sv_0.0.reg2mem
br label LBL_14
LBL_7:
%37 = ptrtoint i32* %arg1 to i64
%38 = add i64 %37, 12
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = zext i32 %40 to i64
%42 = sext i32 %arg4 to i64
%43 = icmp slt i64 %42, %41
br i1 %43, label LBL_8, label LBL_10
LBL_8:
%44 = sub i32 %40, %arg4
%45 = icmp slt i32 %storemerge, 0
%46 = zext i1 %45 to i32
%47 = add i32 %storemerge, %46
%48 = ashr i32 %47, 1
%49 = icmp ult i32 %44, %48
br i1 %49, label LBL_10, label LBL_9
LBL_9:
%50 = add i64 %37, 8
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 4
%53 = add i32 %52, %storemerge
store i64 %37, i64* %.pre-phi.reg2mem
store i32 %53, i32* %sv_0.0.reg2mem
br label LBL_14
LBL_10:
%54 = icmp sgt i64 %42, %41
br i1 %54, label LBL_11, label LBL_13
LBL_11:
%55 = sub i32 %arg4, %40
%56 = icmp slt i32 %storemerge, 0
%57 = zext i1 %56 to i32
%58 = add i32 %storemerge, %57
%59 = ashr i32 %58, 1
%60 = icmp ugt i32 %55, %59
br i1 %60, label LBL_12, label LBL_13
LBL_12:
%61 = add i64 %37, 8
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = sub i32 %63, %storemerge
store i64 %37, i64* %.pre-phi.reg2mem
store i32 %64, i32* %sv_0.0.reg2mem
br label LBL_14
LBL_13:
%65 = add i64 %37, 8
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
store i64 %37, i64* %.pre-phi.reg2mem
store i32 %67, i32* %sv_0.0.reg2mem
br label LBL_14
LBL_14:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%68 = add i64 %.pre-phi.reload, 16
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = sub i32 %70, %arg4
%72 = xor i32 %70, %arg4
%73 = xor i32 %71, %70
%74 = and i32 %73, %72
%75 = icmp slt i32 %74, 0
%76 = icmp slt i32 %71, 0
%77 = icmp eq i1 %76, %75
%78 = select i1 %77, i32 %70, i32 %arg4
store i32 %78, i32* %69, align 4
%79 = icmp sgt i8 %20, 15
br i1 %79, label LBL_16, label LBL_15
LBL_15:
%80 = urem i64 %2, 2
%81 = icmp eq i64 %80, 0
%82 = icmp eq i1 %81, false
br i1 %82, label LBL_17, label LBL_16
LBL_16:
%.off9 = add i8 %20, -5
%83 = icmp ugt i8 %.off9, 18
br i1 %83, label LBL_18, label LBL_17
LBL_17:
%84 = and i8 %20, -2
%85 = icmp eq i8 %84, 6
store i1 false, i1* %storemerge4.reg2mem
br i1 %85, label LBL_18, label LBL_19
LBL_18:
store i1 true, i1* %storemerge4.reg2mem
br label LBL_19
LBL_19:
%storemerge4.reload = load i1, i1* %storemerge4.reg2mem
%86 = ptrtoint i32* %arg2 to i64
%87 = add i64 %86, 4
%88 = inttoptr i64 %87 to i32*
%89 = load i32, i32* %88, align 4
%90 = icmp eq i32 %89, 0
%91 = icmp eq i1 %90, false
%or.cond = or i1 %storemerge4.reload, %91
br i1 %or.cond, label LBL_21, label LBL_20
LBL_20:
%92 = add i64 %.pre-phi.reload, 12
%93 = inttoptr i64 %92 to i32*
store i32 %arg4, i32* %93, align 4
%94 = add i64 %.pre-phi.reload, 8
%95 = inttoptr i64 %94 to i32*
store i32 %sv_0.0.reload, i32* %95, align 4
br label LBL_21
LBL_21:
%96 = add i32 %sv_0.0.reload, %arg4
%97 = zext i32 %96 to i64
ret i64 %97
uselistorder i32 %71, { 1, 0 }
uselistorder i32 %70, { 2, 0, 1, 3 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %37, { 2, 3, 1, 4, 0, 5, 6 }
uselistorder i8 %20, { 4, 3, 2, 0, 1 }
uselistorder i32 %storemerge, { 7, 3, 4, 6, 2, 5, 0, 1 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i1* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3, 4, 5, 6 }
uselistorder i32 %arg4, { 1, 5, 7, 0, 6, 2, 4, 3 }
uselistorder i32* %arg1, { 1, 2, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | qmp_nbd_server_stop_15389 | qmp_nbd_server_stop | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64* nonnull @gv_0)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%3 = call i64 @FUNC(i64* nonnull @gv_0)
%4 = add i64 %3, 16
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6)
%8 = add i64 %3, 8
%9 = call i64 @FUNC(i64 %8, i64 %7)
%10 = call i64 @FUNC(i64* nonnull @gv_0)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_1, label LBL_2
LBL_2:
%13 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %14, i64 0, i64 0, i64 0, i64 0)
%16 = load i32, i32* @gv_1, align 4
%17 = call i32 @close(i32 %16)
%18 = sext i32 %17 to i64
store i32 -1, i32* @gv_1, align 4
ret i64 %18
uselistorder i32 -1, { 1, 0 }
uselistorder i32* @gv_1, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 (i64*)* @QTAILQ_EMPTY, { 1, 0 }
uselistorder i64* @gv_0, { 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | mxf_read_sequence_8768 | mxf_read_sequence | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg3 to i32
%3 = icmp eq i32 %2, 19202
br i1 %3, label LBL_8, label LBL_1
LBL_1:
%4 = icmp sgt i32 %2, 19202
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_10, label LBL_2
LBL_2:
%5 = icmp eq i32 %2, 4097
br i1 %5, label LBL_9, label LBL_3
LBL_3:
%6 = icmp sgt i32 %2, 4097
store i64 0, i64* %storemerge.reg2mem
br i1 %6, label LBL_10, label LBL_4
LBL_4:
%7 = icmp eq i32 %2, 513
br i1 %7, label LBL_7, label LBL_5
LBL_5:
%8 = icmp eq i32 %2, 514
%9 = icmp eq i1 %8, false
store i64 0, i64* %storemerge.reg2mem
br i1 %9, label LBL_10, label LBL_6
LBL_6:
%10 = call i64 @FUNC(i64 %0)
store i64 %10, i64* %arg1, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_10
LBL_7:
%11 = add i64 %1, 8
%12 = call i64 @FUNC(i64 %0, i64 %11, i64 16)
store i64 0, i64* %storemerge.reg2mem
br label LBL_10
LBL_8:
%13 = call i64 @FUNC(i64 %0)
%14 = trunc i64 %13 to i8
%15 = add i64 %1, 24
%16 = inttoptr i64 %15 to i8*
store i8 %14, i8* %16, align 1
store i64 0, i64* %storemerge.reg2mem
br label LBL_10
LBL_9:
%17 = add i64 %1, 40
%18 = add i64 %1, 32
%19 = call i64 @FUNC(i64 %0, i64 %18, i64 %17)
store i64 %19, i64* %storemerge.reg2mem
br label LBL_10
LBL_10:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %2, { 4, 3, 2, 1, 0, 5 }
uselistorder i64 %1, { 3, 2, 0, 1 }
uselistorder i64 %0, { 2, 3, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i32 4097, { 1, 0 }
uselistorder i32 19202, { 1, 0 }
uselistorder label LBL_10, { 6, 5, 4, 3, 2, 1, 0 }
} | 0 |
BinRealVul | xml_parse_node_7809 | xml_parse_node | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem32 = alloca i64
%.reg2mem30 = alloca i8
%.reg2mem28 = alloca i64
%.lcssa.reg2mem = alloca i1
%.reg2mem26 = alloca i64
%.reg2mem24 = alloca i8
%.reg2mem = alloca i8
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%0 = call i64 @FUNC()
%1 = trunc i64 %arg2 to i8
%2 = icmp eq i8 %1, 60
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %arg2)
unreachable
LBL_2:
%4 = add i64 %arg2, 1
%5 = inttoptr i64 %4 to i8*
%6 = load i8, i8* %5, align 1
%7 = icmp eq i8 %6, 63
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_6, label LBL_3
LBL_3:
%9 = call i64 @FUNC(i64 %arg2, i64 2, i64 0)
%10 = call i64 @FUNC(i64 %arg2, i64 63, i64* nonnull %sv_3)
%11 = load i8, i8* inttoptr (i64 64 to i8*), align 64
%12 = icmp eq i8 %11, 62
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = call i64 @FUNC(i64 %arg2, i64 2, i64 1)
%15 = call i64 @FUNC(i64 %arg1, i64 %arg2)
store i64 %15, i64* %rax.0.reg2mem
br label LBL_39
LBL_5:
%16 = call i64 @FUNC(i64 %arg2, i64 1, i64 0)
%17 = call i64 @FUNC(i64 %arg2, i64 63, i64* nonnull %sv_3)
%18 = load i8, i8* inttoptr (i64 64 to i8*), align 64
%19 = icmp eq i8 %18, 62
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_5, label LBL_4
LBL_6:
%21 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 2)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_10, label LBL_7
LBL_7:
%25 = call i64 @FUNC(i64 %arg2, i64 2, i64 0)
%26 = call i64 @FUNC(i64 %arg2, i64 62, i64* nonnull %sv_2)
%27 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0), i64 1)
%28 = trunc i64 %27 to i32
%29 = icmp eq i32 %28, 0
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_9, label LBL_8
LBL_8:
%31 = call i64 @FUNC(i64 %arg2, i64 1, i64 1)
%32 = call i64 @FUNC(i64 %arg1, i64 %arg2)
store i64 %32, i64* %rax.0.reg2mem
br label LBL_39
LBL_9:
%33 = call i64 @FUNC(i64 %arg2, i64 1, i64 0)
%34 = call i64 @FUNC(i64 %arg2, i64 62, i64* nonnull %sv_2)
%35 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0), i64 1)
%36 = trunc i64 %35 to i32
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
br i1 %38, label LBL_9, label LBL_8
LBL_10:
%39 = call i64 @FUNC(i64 %arg1)
%40 = call i64 @FUNC(i64 %arg2)
%41 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0), i64 %39)
store i8 ptrtoint ([7 x i8]* @gv_2 to i8), i8* %.reg2mem24
store i64 ptrtoint ([7 x i8]* @gv_2 to i64), i64* %.reg2mem26
store i1 icmp ne (i8 ptrtoint ([7 x i8]* @gv_2 to i8), i8 47), i1* %.lcssa.reg2mem
br i1 and (i1 icmp ne (i8 ptrtoint ([7 x i8]* @gv_2 to i8), i8 62), i1 icmp ne (i8 ptrtoint ([7 x i8]* @gv_2 to i8), i8 47)), label LBL_11, label LBL_15
LBL_11:
%42 = add i64 %39, 32
store i8 ptrtoint ([7 x i8]* @gv_2 to i8), i8* %.reg2mem
br label LBL_12
LBL_12:
%.reload = load i8, i8* %.reg2mem
%43 = call i64 @FUNC(i64 %arg1)
%44 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_3, i64 0, i64 0), i64 %43)
%45 = icmp eq i8 %.reload, 61
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_14, label LBL_13
LBL_13:
%47 = call i64 @FUNC(i64 %arg2)
%48 = add i64 %43, 16
%49 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_4, i64 0, i64 0), i64 2, i64 %48)
%50 = inttoptr i64 %48 to i64*
%51 = load i64, i64* %50, align 8
%52 = add i64 %51, 1
store i64 %52, i64* %50, align 8
%53 = add i64 %43, 24
%54 = inttoptr i64 %53 to i32*
%55 = load i32, i32* %54, align 4
%56 = add i32 %55, -2
store i32 %56, i32* %54, align 4
br label LBL_14
LBL_14:
%57 = call i64 @FUNC(i64 %42, i64 %43)
%58 = trunc i64 %43 to i8
%59 = icmp ne i8 %58, 62
%60 = icmp eq i8 %58, 47
%61 = icmp eq i1 %60, false
%or.cond = icmp eq i1 %59, %61
store i8 %58, i8* %.reg2mem
store i8 %58, i8* %.reg2mem24
store i64 %43, i64* %.reg2mem26
store i1 %61, i1* %.lcssa.reg2mem
br i1 %or.cond, label LBL_12, label LBL_15
LBL_15:
%.lcssa.reload = load i1, i1* %.lcssa.reg2mem
%62 = call i64 @FUNC(i64 %arg2)
br i1 %.lcssa.reload, label LBL_18, label LBL_16
LBL_16:
%63 = call i64 @FUNC(i64 %arg2)
%64 = trunc i64 %63 to i8
%65 = icmp eq i8 %64, 62
store i64 %39, i64* %rax.0.reg2mem
br i1 %65, label LBL_39, label LBL_17
LBL_17:
%66 = call i64 @FUNC(i64 %arg2)
unreachable
LBL_18:
%67 = trunc i64 %62 to i8
%68 = icmp eq i8 %67, 62
br i1 %68, label LBL_19, label LBL_21
LBL_19:
%.reload27 = load i64, i64* %.reg2mem26
%.reload25 = load i8, i8* %.reg2mem24
%69 = icmp eq i8 %.reload25, 60
%70 = icmp eq i1 %69, false
store i64 %.reload27, i64* %.reg2mem28
store i8 %.reload25, i8* %.reg2mem30
br i1 %70, label LBL_24, label LBL_20
LBL_20:
%71 = add i64 %39, 40
%72 = add i64 %.reload27, 1
%73 = inttoptr i64 %72 to i8*
%74 = load i8, i8* %73, align 1
%75 = icmp ne i8 %74, 47
%76 = icmp eq i8 %74, 33
%77 = icmp eq i1 %76, false
%or.cond312 = icmp eq i1 %75, %77
store i64 %.reload27, i64* %.reg2mem28
store i8 %.reload25, i8* %.reg2mem30
br i1 %or.cond312, label LBL_22, label LBL_24
LBL_21:
%78 = call i64 @FUNC(i64 %arg2)
unreachable
LBL_22:
%79 = call i64 @FUNC(i64 %arg1, i64 %arg2)
%80 = call i64 @FUNC(i64 %71, i64 %79)
%81 = trunc i64 %79 to i8
%82 = icmp eq i8 %81, 60
%83 = icmp eq i1 %82, false
store i64 %79, i64* %.reg2mem28
store i8 %81, i8* %.reg2mem30
br i1 %83, label LBL_24, label LBL_23
LBL_23:
%84 = add i64 %79, 1
%85 = inttoptr i64 %84 to i8*
%86 = load i8, i8* %85, align 1
%87 = icmp ne i8 %86, 47
%88 = icmp eq i8 %86, 33
%89 = icmp eq i1 %88, false
%or.cond3 = icmp eq i1 %87, %89
store i64 %79, i64* %.reg2mem28
store i8 %81, i8* %.reg2mem30
br i1 %or.cond3, label LBL_22, label LBL_24
LBL_24:
%.reload31 = load i8, i8* %.reg2mem30
%90 = call i64 @FUNC(i64 %arg2)
%91 = trunc i64 %90 to i32
%92 = icmp eq i32 %91, 0
%93 = icmp eq i1 %92, false
%94 = icmp eq i8 %.reload31, 60
%or.cond5 = or i1 %94, %93
br i1 %or.cond5, label LBL_26, label LBL_25
LBL_25:
%95 = add i64 %39, 16
%96 = inttoptr i64 %95 to i64*
%97 = call i64 @FUNC(i64 %arg2, i64 60, i64* %96)
store i64 60, i64* %.reg2mem32
br label LBL_27
LBL_26:
%.reload29 = load i64, i64* %.reg2mem28
%98 = icmp eq i1 %94, false
store i64 %.reload29, i64* %.reg2mem32
br i1 %98, label LBL_32, label LBL_27
LBL_27:
%.reload33 = load i64, i64* %.reg2mem32
%99 = add i64 %.reload33, 1
%100 = inttoptr i64 %99 to i8*
%101 = load i8, i8* %100, align 1
%102 = icmp eq i8 %101, 33
%103 = icmp eq i1 %102, false
br i1 %103, label LBL_32, label LBL_28
LBL_28:
%104 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_5, i64 0, i64 0), i64 9)
%105 = trunc i64 %104 to i32
%106 = icmp eq i32 %105, 0
%107 = icmp eq i1 %106, false
br i1 %107, label LBL_32, label LBL_29
LBL_29:
%108 = call i64 @FUNC(i64 %arg2, i64 9, i64 0)
%109 = add i64 %39, 16
%110 = inttoptr i64 %109 to i64*
%111 = call i64 @FUNC(i64 %arg2, i64 93, i64* %110)
%112 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_6, i64 0, i64 0), i64 3)
%113 = trunc i64 %112 to i32
%114 = icmp eq i32 %113, 0
%115 = icmp eq i1 %114, false
br i1 %115, label LBL_30, label LBL_31
LBL_30:
%116 = call i64 @FUNC(i64 %arg2, i64 93, i64* nonnull %sv_1)
%117 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_6, i64 0, i64 0), i64 3)
%118 = trunc i64 %117 to i32
%119 = icmp eq i32 %118, 0
%120 = icmp eq i1 %119, false
br i1 %120, label LBL_30, label LBL_31
LBL_31:
%121 = load i64, i64* %110, align 8
%122 = trunc i64 %121 to i32
%123 = sub i32 ptrtoint ([4 x i8]* @gv_6 to i32), %122
%124 = add i64 %39, 24
%125 = inttoptr i64 %124 to i32*
store i32 %123, i32* %125, align 4
%126 = call i64 @FUNC(i64 %arg2, i64 3, i64 1)
br label LBL_32
LBL_32:
%127 = call i64 @FUNC(i64 %arg2)
%128 = trunc i64 %127 to i8
%129 = icmp eq i8 %128, 60
%130 = icmp eq i1 %129, false
br i1 %130, label LBL_34, label LBL_33
LBL_33:
%131 = call i64 @FUNC(i64 %arg2)
%132 = trunc i64 %131 to i8
%133 = icmp eq i8 %132, 47
br i1 %133, label LBL_35, label LBL_34
LBL_34:
%134 = call i64 @FUNC(i64 %arg2)
unreachable
LBL_35:
%135 = ptrtoint i64* %sv_0 to i64
%136 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_7, i64 0, i64 0), i64 %135)
%137 = call i64 @FUNC(i64 %39, i64* nonnull %sv_0)
%138 = trunc i64 %137 to i32
%139 = icmp eq i32 %138, 0
br i1 %139, label LBL_37, label LBL_36
LBL_36:
%140 = call i64 @FUNC(i64 %arg2)
unreachable
LBL_37:
%141 = call i64 @FUNC(i64 %arg2)
%142 = trunc i64 %141 to i8
%143 = icmp eq i8 %142, 62
store i64 %39, i64* %rax.0.reg2mem
br i1 %143, label LBL_39, label LBL_38
LBL_38:
%144 = call i64 @FUNC(i64 %arg2)
unreachable
LBL_39:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i8 %81, { 1, 0, 2 }
uselistorder i64 %79, { 1, 2, 0, 3, 4 }
uselistorder i64 %.reload27, { 0, 2, 1 }
uselistorder i8 %58, { 0, 1, 3, 2 }
uselistorder i64 %43, { 0, 1, 4, 2, 3, 5 }
uselistorder i64 %39, { 0, 7, 5, 6, 4, 3, 1, 2, 8 }
uselistorder i64* %sv_3, { 1, 0 }
uselistorder i64* %sv_2, { 1, 0 }
uselistorder i8* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem28, { 0, 2, 1, 3, 4 }
uselistorder i8* %.reg2mem30, { 0, 2, 1, 3, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 4, 3 }
uselistorder i64 3, { 1, 2, 0 }
uselistorder i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_6, i64 0, i64 0), { 1, 0 }
uselistorder i8 33, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @pj_list_push_back, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i8 47, { 3, 4, 0, 2, 1 }
uselistorder i1 icmp ne (i8 ptrtoint ([7 x i8]* @gv_2 to i8), i8 47), { 1, 0 }
uselistorder i8 ptrtoint ([7 x i8]* @gv_2 to i8), { 1, 3, 2, 0 }
uselistorder i64 (i64, i8*, i64)* @pj_scan_get_until_chr, { 2, 1, 0 }
uselistorder [7 x i8]* @gv_2, { 2, 0, 1 }
uselistorder i64 (i64)* @pj_scan_get_char, { 6, 5, 4, 1, 3, 2, 0 }
uselistorder i64 62, { 1, 0 }
uselistorder i32 0, { 3, 4, 1, 5, 6, 7, 0, 8, 2 }
uselistorder i64 (i64, i8*, i64)* @pj_scan_strcmp, { 5, 1, 4, 3, 0, 2 }
uselistorder i8 62, { 2, 3, 4, 5, 1, 6, 0 }
uselistorder i8* inttoptr (i64 64 to i8*), { 1, 0 }
uselistorder i64 (i64, i64, i64*)* @pj_scan_get_until_ch, { 6, 5, 4, 3, 1, 2, 0 }
uselistorder i64 63, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @pj_scan_advance_n, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i1 false, { 7, 8, 4, 9, 10, 11, 12, 5, 13, 1, 3, 6, 14, 15, 2, 16, 17, 0, 18 }
uselistorder i64 1, { 2, 9, 10, 0, 11, 6, 3, 5, 4, 1, 7, 8, 12, 13 }
uselistorder i64 (i64)* @on_syntax_error, { 5, 4, 3, 2, 1, 0 }
uselistorder i8 60, { 2, 1, 3, 0, 4 }
uselistorder i64 %arg2, { 32, 33, 34, 35, 37, 36, 38, 26, 28, 27, 5, 29, 30, 31, 25, 39, 24, 23, 21, 22, 40, 18, 19, 20, 41, 42, 15, 16, 13, 12, 14, 3, 4, 17, 43, 10, 9, 7, 8, 0, 11, 1, 6, 2 }
uselistorder i64 %arg1, { 3, 2, 4, 1, 0 }
uselistorder label LBL_30, { 1, 0 }
uselistorder label LBL_27, { 1, 0 }
uselistorder label LBL_24, { 1, 2, 0, 3 }
uselistorder label LBL_22, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | gf_isom_dump_ismacryp_protection_9511 | gf_isom_dump_ismacryp_protection | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0 = alloca i32*, align 8
%0 = and i64 %arg2, 4294967295
%1 = call i64 @FUNC(i64 %arg1, i64 %0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 1, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_10
LBL_1:
%4 = inttoptr i64 %arg3 to %_IO_FILE*
%5 = call i32 @fwrite(i64* bitcast ([30 x i8]* @gv_0 to i64*), i32 1, i32 29, %_IO_FILE* %4)
%6 = call i64 @FUNC(i64 %arg1, i64 %0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_9, label LBL_2
LBL_2:
%9 = inttoptr i64 %1 to i64*
%10 = bitcast i32** %sv_0 to i64*
%11 = and i64 %6, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%12 = load i64, i64* %9, align 8
%13 = call i64 @FUNC(i64 %12, i64 %indvars.iv.next, i64* nonnull %10, i64 0)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = and i64 %13, 4294967295
store i64 %16, i64* %rax.0.reg2mem
br label LBL_10
LBL_5:
%17 = load i32*, i32** %sv_0, align 8
%18 = load i32, i32* %17, align 4
%19 = add i32 %18, -1701733217
%20 = icmp ult i32 %19, 22
%21 = icmp ne i1 %20, true
%22 = icmp eq i1 %21, false
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_8, label LBL_6
LBL_6:
%24 = urem i32 %19, 64
%25 = icmp ne i32 %24, 0
%26 = zext i32 %24 to i64
%27 = lshr i64 2883585, %26
%.op = urem i64 %27, 2
%28 = icmp eq i64 %.op, 0
%29 = icmp eq i1 %25, %28
%30 = icmp eq i1 %29, false
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_8, label LBL_7
LBL_7:
%32 = ptrtoint i32* %17 to i64
%33 = call i64 @FUNC(i64 %32, i64 %arg3)
br label LBL_8
LBL_8:
%34 = icmp ult i64 %indvars.iv.next, %11
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %34, label LBL_3, label LBL_9
LBL_9:
%35 = call i32 @fwrite(i64* bitcast ([31 x i8]* @gv_1 to i64*), i32 1, i32 30, %_IO_FILE* %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* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i1 false, { 0, 2, 3, 1, 4 }
uselistorder i64 4294967295, { 1, 0, 2 }
uselistorder i32 1, { 3, 4, 5, 2, 1, 0 }
uselistorder label LBL_10, { 2, 1, 0 }
uselistorder label LBL_8, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | virtio_net_receive_7699 | virtio_net_receive | 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
%sv_0.0.lcssa54.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i64
%sv_3.1.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%.reg2mem = alloca i64
%sv_2.12976.reg2mem = alloca i64
%sv_0.02877.reg2mem = alloca i32
%sv_3.22778.reg2mem = alloca i32
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%5 = load i32, i32* %1
%sv_6 = alloca i64, align 8
%6 = call i64 @FUNC(i64 %4)
%7 = call i64 @FUNC(i64 %4)
%8 = call i64 @FUNC(i64 %4)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %11, label LBL_1, label LBL_22
LBL_1:
%12 = inttoptr i64 %6 to i32*
%13 = load i32, i32* %12, align 4
%14 = sext i32 %13 to i64
%15 = add i64 %14, %arg3
%16 = add i64 %6, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = sext i32 %18 to i64
%20 = sub i64 %15, %19
%21 = call i64 @FUNC(i64 %7, i64 %20)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
store i64 0, i64* %rax.0.reg2mem
br i1 %24, label LBL_2, label LBL_22
LBL_2:
%25 = ptrtoint i64* %arg2 to i64
%26 = call i64 @FUNC(i64 %6, i64 %25, i64 %arg3)
%27 = trunc i64 %26 to i32
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
store i64 %arg3, i64* %rax.0.reg2mem
br i1 %29, label LBL_3, label LBL_22
LBL_3:
%30 = icmp eq i64 %arg3, 0
%.pre98 = inttoptr i64 %7 to i64*
store i64 0, i64* %sv_0.0.lcssa54.reg2mem
br i1 %30, label LBL_21, label LBL_4
LBL_4:
%31 = icmp eq i32 %5, 0
%32 = icmp slt i32 %5, 0
%33 = icmp eq i1 %32, false
%34 = icmp eq i1 %31, false
%35 = icmp eq i1 %33, %34
%36 = add i64 %6, 8
%37 = inttoptr i64 %36 to i32*
%38 = load i64, i64* %.pre98, align 8
%39 = call i64 @FUNC(i64 %38, i64* nonnull %sv_6)
%40 = trunc i64 %39 to i32
%41 = icmp eq i32 %40, 0
%42 = icmp eq i1 %41, false
store i32 0, i32* %sv_3.22778.reg2mem
store i32 0, i32* %sv_0.02877.reg2mem
store i64 0, i64* %sv_2.12976.reg2mem
store i64 -1, i64* %rax.0.reg2mem
br i1 %42, label LBL_7, label LBL_22
LBL_5:
%43 = icmp eq i32 %79, 0
%44 = icmp eq i1 %43, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %44, label LBL_6, label LBL_22
LBL_6:
%45 = load i32, i32* %12, align 4
%46 = load i32, i32* %37, align 4
%47 = sext i32 %79 to i64
%48 = call i64 @FUNC(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @gv_0, i64 0, i64 0), i64 %47, i32 %46, i64 %69, i64 %arg3, i32 %45)
call void @exit(i32 1)
unreachable
LBL_7:
br i1 %35, label LBL_9, label LBL_8
LBL_8:
%49 = ptrtoint i64* %sv_6 to i64
%50 = trunc i64 %49 to i32
%51 = trunc i64 %2 to i32
%52 = call i64 @FUNC(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i64 %49, i32 %50, i64 %25, i64 %3, i32 %51)
call void @exit(i32 1)
unreachable
LBL_9:
%.reload = load i64, i64* %.reg2mem
%sv_2.12976.reload = load i64, i64* %sv_2.12976.reg2mem
%sv_0.02877.reload = load i32, i32* %sv_0.02877.reg2mem
%sv_3.22778.reload = load i32, i32* %sv_3.22778.reg2mem
%53 = icmp eq i32 %sv_0.02877.reload, 0
%54 = icmp eq i1 %53, false
store i32 %sv_3.22778.reload, i32* %sv_3.1.reg2mem
store i64 %sv_2.12976.reload, i64* %sv_2.0.reg2mem
store i32 0, i32* %sv_1.0.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %54, label LBL_15, label LBL_10
LBL_10:
%55 = icmp eq i64 %sv_2.12976.reload, 0
br i1 %55, label LBL_12, label LBL_11
LBL_11:
call void @__assert_fail(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_3, i64 0, i64 0), i32 89, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_4, i64 0, i64 0))
br label LBL_12
LBL_12:
%56 = load i32, i32* %37, align 4
%57 = icmp eq i32 %56, 0
store i32 %sv_3.22778.reload, i32* %sv_3.0.reg2mem
br i1 %57, label LBL_14, label LBL_13
LBL_13:
%58 = call i64 @FUNC(i64* nonnull %sv_5, i64 256, i64 %.reload, i32 %5, i64 0, i64 4)
%59 = trunc i64 %58 to i32
store i32 %59, i32* %sv_3.0.reg2mem
br label LBL_14
LBL_14:
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%60 = call i64 @FUNC(i64 %6, i64 %.reload, i32 %5, i64 %25, i64 %arg3)
%61 = load i32, i32* %17, align 4
%62 = sext i32 %61 to i64
%63 = load i32, i32* %12, align 4
%64 = sext i32 %63 to i64
store i32 %sv_3.0.reload, i32* %sv_3.1.reg2mem
store i64 %62, i64* %sv_2.0.reg2mem
store i32 %63, i32* %sv_1.0.reg2mem
store i64 %64, i64* %storemerge.reg2mem
br label LBL_15
LBL_15:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%65 = sub i64 %arg3, %sv_2.0.reload
%66 = add i64 %sv_2.0.reload, %25
%67 = call i64 @FUNC(i64 %.reload, i32 %5, i64 %storemerge.reload, i64 %66, i64 %65)
%sext = mul i64 %67, 4294967296
%68 = ashr exact i64 %sext, 32
%69 = add i64 %68, %sv_2.0.reload
%70 = load i32, i32* %37, align 4
%71 = icmp eq i32 %70, 0
%72 = icmp ult i64 %69, %arg3
%73 = icmp eq i1 %71, %72
br i1 %73, label LBL_16, label LBL_17
LBL_16:
%74 = load i32, i32* %12, align 4
%75 = sext i32 %sv_0.02877.reload to i64
%76 = call i64 @FUNC(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @gv_5, i64 0, i64 0), i64 %75, i32 0, i64 %69, i64 %arg3, i32 %74)
store i64 %arg3, i64* %rax.0.reg2mem
br label LBL_22
LBL_17:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_3.1.reload = load i32, i32* %sv_3.1.reg2mem
%77 = trunc i64 %67 to i32
%78 = add i32 %sv_1.0.reload, %77
%79 = add i32 %sv_0.02877.reload, 1
%80 = zext i32 %sv_0.02877.reload to i64
%81 = load i64, i64* %.pre98, align 8
%82 = call i64 @FUNC(i64 %81, i64* nonnull %sv_6, i32 %78, i64 %80)
br i1 %72, label LBL_17.dec_label_pc_401399_crit_edge, label LBL_19
LBL_18:
%.pre = load i64, i64* %sv_6, align 8
%83 = load i64, i64* %.pre98, align 8
%84 = call i64 @FUNC(i64 %83, i64* nonnull %sv_6)
%85 = trunc i64 %84 to i32
%86 = icmp eq i32 %85, 0
%87 = icmp eq i1 %86, false
store i32 %sv_3.1.reload, i32* %sv_3.22778.reg2mem
store i32 %79, i32* %sv_0.02877.reg2mem
store i64 %69, i64* %sv_2.12976.reg2mem
store i64 %.pre, i64* %.reg2mem
br i1 %87, label LBL_7, label LBL_5
LBL_19:
%phitmp = zext i32 %79 to i64
%88 = icmp eq i32 %sv_3.1.reload, 0
store i64 %phitmp, i64* %sv_0.0.lcssa54.reg2mem
br i1 %88, label LBL_21, label LBL_20
LBL_20:
%89 = call i64 @FUNC(i64 %6, i64* nonnull %sv_4, i64 %phitmp)
%90 = ptrtoint i64* %sv_4 to i64
%91 = ptrtoint i64* %sv_5 to i64
%92 = call i64 @FUNC(i64 %91, i32 %sv_3.1.reload, i64 0, i64 %90, i64 4)
store i64 %phitmp, i64* %sv_0.0.lcssa54.reg2mem
br label LBL_21
LBL_21:
%sv_0.0.lcssa54.reload = load i64, i64* %sv_0.0.lcssa54.reg2mem
%93 = load i64, i64* %.pre98, align 8
%94 = call i64 @FUNC(i64 %93, i64 %sv_0.0.lcssa54.reload)
%95 = load i64, i64* %.pre98, align 8
%96 = call i64 @FUNC(i64 %6, i64 %95)
store i64 %arg3, i64* %rax.0.reg2mem
br label LBL_22
LBL_22:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %phitmp, { 1, 2, 0 }
uselistorder i32 %79, { 3, 0, 1, 2 }
uselistorder i1 %72, { 1, 0 }
uselistorder i64 %69, { 0, 2, 3, 1 }
uselistorder i64 %67, { 1, 0 }
uselistorder i64 %sv_2.0.reload, { 2, 1, 0 }
uselistorder i32 %sv_3.22778.reload, { 1, 0 }
uselistorder i32 %sv_0.02877.reload, { 1, 2, 3, 0 }
uselistorder i64 %sv_2.12976.reload, { 1, 0 }
uselistorder i64 %49, { 1, 0 }
uselistorder i32* %37, { 1, 2, 0 }
uselistorder i64 %25, { 1, 2, 0, 3 }
uselistorder i32* %12, { 2, 1, 0, 3 }
uselistorder i64 %6, { 5, 4, 0, 1, 2, 3, 6 }
uselistorder i64* %sv_6, { 4, 1, 3, 2, 0 }
uselistorder i32 %5, { 0, 1, 2, 4, 3 }
uselistorder i64* %sv_5, { 1, 0 }
uselistorder i64* %sv_4, { 1, 0 }
uselistorder i32* %sv_3.22778.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.02877.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.12976.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem, { 1, 0 }
uselistorder i64* %sv_0.0.lcssa54.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 7, 2, 1, 3, 4, 5 }
uselistorder i64* %0, { 1, 0 }
uselistorder void (i32)* @exit, { 1, 0 }
uselistorder i64 (i8*, i64, i32, i64, i64, i32)* @error_report, { 2, 1, 0 }
uselistorder i64 (i64, i64*)* @virtqueue_pop, { 1, 0 }
uselistorder i64 -1, { 1, 0, 2 }
uselistorder i1 false, { 5, 2, 4, 0, 3, 1, 6, 7, 8 }
uselistorder i32 0, { 12, 11, 4, 7, 8, 0, 5, 6, 1, 2, 3, 9, 10, 13, 14, 15 }
uselistorder i64 %arg3, { 1, 2, 8, 5, 9, 7, 6, 4, 0, 10, 3 }
uselistorder label LBL_22, { 5, 6, 1, 0, 2, 3, 4 }
uselistorder label LBL_21, { 1, 2, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 1 |
BinRealVul | getPreferredTag_12563 | getPreferredTag | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 zext (i32 ptrtoint ([5 x i8*]* @gv_0 to i32) to i64), i64 %arg1)
%1 = trunc i64 %0 to i32
%2 = icmp slt i32 %1, 0
%3 = icmp eq i1 %2, false
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%4 = icmp sgt i32 %1, 4
%sext = mul i64 %0, 4294967296
%5 = ashr exact i64 %sext, 29
br i1 %4, label LBL_3, label LBL_2
LBL_2:
%6 = add i64 %5, ptrtoint ([5 x i8*]* @gv_1 to i64)
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8)
store i64 %9, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
%10 = add i64 %5, ptrtoint ([5 x i8*]* @gv_0 to i64)
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12)
store i64 %13, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 (i64)* @estrdup, { 1, 0 }
uselistorder i32 0, { 20, 21, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }
uselistorder i32 1, { 0, 3, 2, 1 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 1 |
BinRealVul | free_l4_table_12735 | free_l4_table | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.3.reg2mem = alloca i64
%sv_0.13.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %2)
%5 = call i64 @FUNC(i64 %4)
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC(i64 %6)
%8 = trunc i64 %1 to i32
%9 = add i64 %2, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = urem i32 %8, 2
%13 = icmp eq i32 %12, 0
%14 = zext i1 %13 to i32
%15 = sub i32 %11, %14
store i32 0, i32* %sv_0.0.reg2mem
store i32 %8, i32* %sv_2.0.reg2mem
store i32 %15, i32* %sv_1.0.reg2mem
br label LBL_1
LBL_1:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%16 = zext i32 %sv_1.0.reload to i64
%17 = call i64 @FUNC(i64 %3, i64 %16)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
store i32 %sv_0.0.reload, i32* %sv_0.13.reg2mem
br i1 %19, label LBL_3, label LBL_2
LBL_2:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%20 = mul i64 %16, 8
%21 = add i64 %20, %7
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %23, i64 %5, i32 %sv_2.0.reload)
%25 = trunc i64 %24 to i32
%26 = icmp slt i32 %25, 0
store i32 %25, i32* %sv_0.13.reg2mem
br i1 %26, label LBL_8, label LBL_3
LBL_3:
%sv_0.13.reload = load i32, i32* %sv_0.13.reg2mem
%27 = add i32 %sv_1.0.reload, -1
%28 = icmp eq i32 %sv_1.0.reload, 0
%29 = icmp eq i1 %28, false
store i32 %sv_0.13.reload, i32* %sv_0.0.reg2mem
store i32 0, i32* %sv_2.0.reg2mem
store i32 %27, i32* %sv_1.0.reg2mem
br i1 %29, label LBL_1, label LBL_4
LBL_4:
%30 = icmp eq i32 %sv_0.13.reload, 1
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_6, label LBL_5
LBL_5:
store i32 %27, i32* %10, align 4
store i32 1, i32* %arg1, align 4
br label LBL_9
LBL_6:
%32 = icmp eq i32 %sv_0.13.reload, 2
%33 = icmp ult i32 %27, 511
%or.cond = icmp eq i1 %33, %32
br i1 %or.cond, label LBL_7, label LBL_9
LBL_7:
store i32 %sv_1.0.reload, i32* %10, align 4
store i32 0, i32* %arg1, align 4
br label LBL_9
LBL_8:
%34 = call i64 @FUNC(i64 %7)
%phitmp = and i64 %24, 4294967295
store i64 %phitmp, i64* %sv_0.3.reg2mem
br label LBL_10
LBL_9:
%35 = call i64 @FUNC(i64 %7)
%36 = call i64 @FUNC(i64 %3)
store i64 0, i64* %sv_0.3.reg2mem
br label LBL_10
LBL_10:
%sv_0.3.reload = load i64, i64* %sv_0.3.reg2mem
ret i64 %sv_0.3.reload
uselistorder i32 %27, { 1, 2, 0 }
uselistorder i32 %sv_0.13.reload, { 1, 0, 2 }
uselistorder i32 %sv_1.0.reload, { 3, 1, 2, 0 }
uselistorder i32* %10, { 1, 0, 2 }
uselistorder i64 %7, { 1, 2, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.13.reg2mem, { 0, 2, 1 }
uselistorder i32 2, { 1, 0 }
uselistorder i32* %arg1, { 1, 0, 2 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | aligned_dealloc_12492 | aligned_dealloc | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = add i64 %arg1, -1
%2 = inttoptr i64 %1 to i8*
%3 = load i8, i8* %2, align 1
%4 = zext i8 %3 to i64
%5 = sub i64 %arg1, %4
%6 = call i64 @FUNC(i64 %5)
store i64 %6, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | helper_idivl_EAX_T0_2938 | helper_idivl_EAX_T0 | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = load i32, i32* bitcast (i128* @gv_0 to i32*), align 8
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 1)
unreachable
LBL_2:
%4 = load i32, i32* @gv_1, align 4
%5 = zext i32 %4 to i64
%6 = mul i64 %5, 4294967296
%7 = load i32, i32* bitcast (i64* @gv_2 to i32*), align 8
%8 = zext i32 %7 to i64
%9 = or i64 %6, %8
%10 = zext i64 %9 to i128
%11 = sext i32 %0 to i64
%12 = zext i64 %11 to i128
%13 = udiv i128 %10, %12
%14 = trunc i128 %13 to i64
%15 = add i64 %14, 2147483648
%16 = icmp ult i64 %15, 4294967296
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 1)
unreachable
LBL_4:
%18 = urem i128 %10, %12
%19 = trunc i128 %18 to i32
%20 = trunc i128 %13 to i32
store i32 %20, i32* bitcast (i64* @gv_2 to i32*), align 8
%21 = trunc i128 %18 to i64
%22 = and i64 %21, 4294967295
store i32 %19, i32* @gv_1, align 4
ret i64 %22
uselistorder i128 %18, { 1, 0 }
uselistorder i128 %13, { 1, 0 }
uselistorder i64 4294967296, { 1, 0 }
uselistorder i64 (i64)* @raise_exception, { 1, 0 }
} | 0 |
BinRealVul | gdImageFill_12568 | gdImageFill | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.in.reg2mem = alloca i64
%sv_1.0.ph.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sext8 = mul i64 %arg4, 4294967296
%3 = ashr exact i64 %sext8, 32
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = add i64 %2, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = zext i32 %9 to i64
%11 = icmp slt i64 %3, %10
store i64 %10, i64* %rax.0.reg2mem
br i1 %11, label LBL_2, label LBL_15
LBL_2:
%sext = mul i64 %arg2, 4294967296
%12 = ashr exact i64 %sext, 32
%sext7 = mul i64 %arg3, 4294967296
%13 = ashr exact i64 %sext7, 32
%14 = add i64 %2, 8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
store i32 0, i32* %15, align 4
%17 = trunc i64 %3 to i32
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_4, label LBL_3
LBL_3:
%20 = trunc i64 %13 to i32
%21 = trunc i64 %12 to i32
%22 = call i64 @FUNC(i64 %2, i32 %21, i32 %20, i32 %17)
store i32 %16, i32* %15, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_15
LBL_4:
%23 = add i64 %2, 12
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = add i64 %2, 16
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = trunc i64 %13 to i32
%30 = and i64 %12, 4294967295
%31 = call i64 @FUNC(i64 %2, i64 %30, i32 %29)
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, %17
br i1 %33, label LBL_7, label LBL_5
LBL_5:
%34 = trunc i64 %12 to i32
%35 = icmp slt i32 %34, 0
%36 = icmp slt i32 %25, %34
%or.cond = or i1 %35, %36
br i1 %or.cond, label LBL_7, label LBL_6
LBL_6:
%37 = icmp slt i32 %29, 0
%38 = icmp slt i32 %28, %29
%or.cond22 = or i1 %37, %38
br i1 %or.cond22, label LBL_7, label LBL_8
LBL_7:
store i32 %16, i32* %15, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_15
LBL_8:
%39 = load i32, i32* %24, align 4
%40 = icmp sgt i32 %39, 3
store i64 %13, i64* %sv_1.0.ph.reg2mem
br i1 %40, label LBL_13, label LBL_9
LBL_9:
%sv_1.0.ph.reload = load i64, i64* %sv_1.0.ph.reg2mem
%41 = trunc i64 %sv_1.0.ph.reload to i32
store i64 %sext, i64* %sv_0.0.in.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.in.reload = load i64, i64* %sv_0.0.in.reg2mem
%sv_0.0 = ashr exact i64 %sv_0.0.in.reload, 32
%42 = and i64 %sv_0.0, 4294967295
%43 = call i64 @FUNC(i64 %2, i64 %42, i32 %41)
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %32, %44
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_14, label LBL_11
LBL_11:
%47 = trunc i64 %sv_0.0 to i32
%48 = call i64 @FUNC(i64 %2, i32 %47, i32 %41, i32 %17)
%sext12 = add i64 %sv_0.0.in.reload, 4294967296
%49 = load i32, i32* %24, align 4
%50 = add i32 %49, -1
%51 = zext i32 %50 to i64
%52 = icmp ult i64 %42, %51
store i64 %sext12, i64* %sv_0.0.in.reg2mem
br i1 %52, label LBL_10, label LBL_12
LBL_12:
%53 = and i64 %sv_1.0.ph.reload, 4294967295
%54 = mul i64 %sv_1.0.ph.reload, 4294967296
%sext14 = add i64 %54, 4294967296
%55 = ashr exact i64 %sext14, 32
%56 = load i32, i32* %27, align 4
%57 = add i32 %56, -1
%58 = zext i32 %57 to i64
%59 = icmp ult i64 %53, %58
store i64 %55, i64* %sv_1.0.ph.reg2mem
br i1 %59, label LBL_9, label LBL_14
LBL_13:
%60 = load i32, i32* %27, align 4
%61 = mul i32 %60, %39
%62 = sdiv i32 %61, 8
%63 = sext i32 %62 to i64
%64 = call i64 @FUNC(i64 16, i64 %63, i64 1)
%65 = and i64 %13, 4294967295
%66 = call i64 @FUNC(i64 %65, i32 %34, i32 %34, i64 1)
%67 = add nsw i64 %13, 1
%68 = and i64 %67, 4294967295
%69 = call i64 @FUNC(i64 %68, i32 %34, i32 %34, i64 4294967295)
%70 = call i64 @FUNC(i64 %64)
br label LBL_14
LBL_14:
store i32 %16, i32* %15, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_15
LBL_15:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.0, { 1, 0 }
uselistorder i64 %sv_0.0.in.reload, { 1, 0 }
uselistorder i64 %sv_1.0.ph.reload, { 2, 0, 1 }
uselistorder i32 %29, { 1, 0, 2 }
uselistorder i32* %27, { 1, 0, 2 }
uselistorder i32 %16, { 1, 2, 0 }
uselistorder i32* %15, { 1, 2, 0, 3, 4 }
uselistorder i64 %13, { 3, 2, 0, 4, 1 }
uselistorder i64 %12, { 1, 2, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 1, 5, 6, 2, 7, 9, 8, 0, 4, 10, 3 }
uselistorder i64* %sv_1.0.ph.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1 }
uselistorder i64 (i64, i32, i32, i64)* @FILL_PUSH, { 1, 0 }
uselistorder i64 (i64, i64, i32)* @gdImageGetPixel, { 1, 0 }
uselistorder i64 4294967295, { 5, 0, 1, 2, 3, 4 }
uselistorder i64 32, { 1, 0, 3, 4, 2 }
uselistorder i64 4294967296, { 4, 0, 5, 2, 3, 1 }
uselistorder label LBL_15, { 1, 2, 3, 0 }
uselistorder label LBL_14, { 2, 0, 1 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
reposvul_c_test | regs_query_register_offset_22 | regs_query_register_offset | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge23.reg2mem = alloca i8*
%.reg2mem = alloca i64
%0 = load [10 x i8]*, [10 x i8]** @gv_0, align 8
%1 = icmp eq [10 x i8]* %0, null
%2 = icmp eq i1 %1, false
store i64 4294967274, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_5
LBL_1:
%3 = ptrtoint [10 x i8]* %0 to i64
%4 = inttoptr i64 %arg1 to i8*
store i64 %3, i64* %.reg2mem
store i8* bitcast ([10 x i8]** @gv_0 to i8*), i8** %storemerge23.reg2mem
br label LBL_2
LBL_2:
%storemerge23.reload = load i8*, i8** %storemerge23.reg2mem
%.reload = load i64, i64* %.reg2mem
%5 = inttoptr i64 %.reload to i8*
%6 = call i32 @strcmp(i8* %5, i8* %4)
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
%9 = ptrtoint i8* %storemerge23.reload to i64
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%10 = add i64 %9, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = zext i32 %12 to i64
store i64 %13, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%14 = add i64 %9, 16
%15 = inttoptr i64 %14 to i8*
%16 = inttoptr i64 %14 to i64*
%17 = load i64, i64* %16, align 8
%18 = icmp eq i64 %17, 0
%19 = icmp eq i1 %18, false
store i64 %17, i64* %.reg2mem
store i8* %15, i8** %storemerge23.reg2mem
store i64 4294967274, i64* %storemerge.reg2mem
br i1 %19, label LBL_2, label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %9, { 1, 0 }
uselistorder [10 x i8]* %0, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i8** %storemerge23.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 }
uselistorder [10 x i8]** @gv_0, { 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder label LBL_5, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | part_discard_alignment_show_4499 | part_discard_alignment_show | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = bitcast i64* %arg3 to i8*
%5 = call i32 (i8*, i8*, ...) @sprintf(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i32 %3)
%6 = sext i32 %5 to i64
ret i64 %6
} | 0 |
BinRealVul | DEC_UQUAD_3024 | DEC_UQUAD | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = udiv i32 %1, 4096
%4 = ashr i32 %arg3, 30
%5 = or i32 %4, 1
%6 = urem i32 %1, 4
%7 = mul nsw i32 %5, %6
%8 = bitcast i64* %arg1 to i32*
store i32 %7, i32* %8, align 4
%9 = urem i32 %3, 2
%10 = shl i32 %arg3, %9
%11 = udiv i32 %1, 8192
%12 = udiv i64 %2, 4
%13 = ashr i32 %10, 30
%14 = or i32 %13, 1
%15 = trunc i64 %12 to i32
%16 = urem i32 %15, 4
%17 = mul nsw i32 %14, %16
%18 = add i64 %0, 4
%19 = inttoptr i64 %18 to i32*
store i32 %17, i32* %19, align 4
%20 = urem i32 %11, 2
%21 = shl i32 %10, %20
%22 = udiv i32 %1, 16384
%23 = udiv i64 %2, 16
%24 = ashr i32 %21, 30
%25 = or i32 %24, 1
%26 = trunc i64 %23 to i32
%27 = urem i32 %26, 4
%28 = mul nsw i32 %25, %27
%29 = add i64 %0, 8
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
%31 = urem i32 %22, 2
%32 = shl i32 %21, %31
%33 = udiv i64 %2, 64
%34 = ashr i32 %32, 30
%35 = or i32 %34, 1
%36 = trunc i64 %33 to i32
%37 = urem i32 %36, 4
%38 = mul nsw i32 %35, %37
%39 = add i64 %0, 12
%40 = inttoptr i64 %39 to i32*
store i32 %38, i32* %40, align 4
%41 = add i64 %0, 16
ret i64 %41
uselistorder i32 %1, { 0, 1, 3, 2 }
uselistorder i64 16, { 1, 0 }
uselistorder i32 %arg3, { 1, 0 }
} | 0 |
BinRealVul | color_string_to_rgba_9414 | color_string_to_rgba | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.in.reg2mem = alloca i32
%storemerge5.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%2 = trunc i64 %arg2 to i32
%3 = icmp slt i32 %2, 0
%4 = icmp ult i32 %2, 99
%5 = or i1 %3, %4
store i64 99, i64* %storemerge5.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%sext = mul i64 %arg2, 4294967296
%.op7.op = ashr exact i64 %sext, 32
%phitmp8 = select i1 %3, i64 0, i64 %.op7.op
store i64 %phitmp8, i64* %storemerge5.reg2mem
br label LBL_2
LBL_2:
%6 = trunc i64 %1 to i8
%storemerge5.reload = load i64, i64* %storemerge5.reg2mem
%7 = icmp eq i8 %6, 35
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_11, label LBL_3
LBL_3:
%9 = add i64 %arg1, 1
%10 = trunc i64 %storemerge5.reload to i32
%11 = icmp eq i32 %10, 4
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_5, label LBL_4
LBL_4:
%13 = add i64 %arg1, 3
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = sext i8 %15 to i64
%17 = and i64 %16, 4294967295
%18 = call i64 @FUNC(i64 %17)
%19 = trunc i64 %18 to i32
%20 = mul i32 %19, 16
%21 = add i64 %arg1, 2
%22 = inttoptr i64 %21 to i8*
%23 = load i8, i8* %22, align 1
%24 = sext i8 %23 to i64
%25 = and i64 %24, 4294967295
%26 = call i64 @FUNC(i64 %25)
%27 = trunc i64 %26 to i32
%28 = mul i32 %27, 4096
%29 = inttoptr i64 %9 to i8*
%30 = load i8, i8* %29, align 1
%31 = sext i8 %30 to i64
%32 = and i64 %31, 4294967295
%33 = call i64 @FUNC(i64 %32)
%34 = trunc i64 %33 to i32
%35 = mul i32 %34, 1048576
%36 = or i32 %20, %28
%37 = or i32 %36, %35
%38 = or i32 %37, -16777216
store i32 %38, i32* %storemerge.in.reg2mem
br label LBL_13
LBL_5:
%39 = mul i64 %storemerge5.reload, 4294967296
%sext6 = add i64 %39, -4294967296
%40 = udiv i64 %sext6, 4294967296
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 4
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_7, label LBL_6
LBL_6:
%44 = add i64 %arg1, 4
%45 = inttoptr i64 %44 to i8*
%46 = load i8, i8* %45, align 1
%47 = sext i8 %46 to i64
%48 = and i64 %47, 4294967295
%49 = call i64 @FUNC(i64 %48)
%50 = trunc i64 %49 to i32
%51 = mul i32 %50, 16
%52 = add i64 %arg1, 3
%53 = inttoptr i64 %52 to i8*
%54 = load i8, i8* %53, align 1
%55 = sext i8 %54 to i64
%56 = and i64 %55, 4294967295
%57 = call i64 @FUNC(i64 %56)
%58 = trunc i64 %57 to i32
%59 = mul i32 %58, 4096
%60 = or i32 %59, %51
%61 = add i64 %arg1, 2
%62 = inttoptr i64 %61 to i8*
%63 = load i8, i8* %62, align 1
%64 = sext i8 %63 to i64
%65 = and i64 %64, 4294967295
%66 = call i64 @FUNC(i64 %65)
%67 = trunc i64 %66 to i32
%68 = mul i32 %67, 1048576
%69 = or i32 %60, %68
%70 = inttoptr i64 %9 to i8*
%71 = load i8, i8* %70, align 1
%72 = sext i8 %71 to i64
%73 = and i64 %72, 4294967295
%74 = call i64 @FUNC(i64 %73)
%75 = trunc i64 %74 to i32
%76 = mul i32 %75, 268435456
%77 = or i32 %69, %76
store i32 %77, i32* %storemerge.in.reg2mem
br label LBL_13
LBL_7:
%78 = icmp eq i32 %41, 6
%79 = icmp eq i1 %78, false
br i1 %79, label LBL_9, label LBL_8
LBL_8:
%80 = add i64 %arg1, 6
%81 = inttoptr i64 %80 to i8*
%82 = load i8, i8* %81, align 1
%83 = sext i8 %82 to i64
%84 = and i64 %83, 4294967295
%85 = call i64 @FUNC(i64 %84)
%86 = trunc i64 %85 to i32
%87 = add i64 %arg1, 5
%88 = inttoptr i64 %87 to i8*
%89 = load i8, i8* %88, align 1
%90 = sext i8 %89 to i64
%91 = and i64 %90, 4294967295
%92 = call i64 @FUNC(i64 %91)
%93 = trunc i64 %92 to i32
%94 = mul i32 %93, 16
%95 = add i64 %arg1, 4
%96 = inttoptr i64 %95 to i8*
%97 = load i8, i8* %96, align 1
%98 = sext i8 %97 to i64
%99 = and i64 %98, 4294967295
%100 = call i64 @FUNC(i64 %99)
%101 = trunc i64 %100 to i32
%102 = mul i32 %101, 256
%103 = add i64 %arg1, 3
%104 = inttoptr i64 %103 to i8*
%105 = load i8, i8* %104, align 1
%106 = sext i8 %105 to i64
%107 = and i64 %106, 4294967295
%108 = call i64 @FUNC(i64 %107)
%109 = trunc i64 %108 to i32
%110 = mul i32 %109, 4096
%111 = add i64 %arg1, 2
%112 = inttoptr i64 %111 to i8*
%113 = load i8, i8* %112, align 1
%114 = sext i8 %113 to i64
%115 = and i64 %114, 4294967295
%116 = call i64 @FUNC(i64 %115)
%117 = trunc i64 %116 to i32
%118 = mul i32 %117, 65536
%119 = inttoptr i64 %9 to i8*
%120 = load i8, i8* %119, align 1
%121 = sext i8 %120 to i64
%122 = and i64 %121, 4294967295
%123 = call i64 @FUNC(i64 %122)
%124 = trunc i64 %123 to i32
%125 = mul i32 %124, 1048576
%126 = or i32 %94, %86
%127 = or i32 %126, %102
%128 = or i32 %127, %110
%129 = or i32 %128, %118
%130 = or i32 %129, %125
%131 = or i32 %130, -16777216
store i32 %131, i32* %storemerge.in.reg2mem
br label LBL_13
LBL_9:
%132 = icmp eq i32 %41, 8
%133 = icmp eq i1 %132, false
store i32 -16777216, i32* %storemerge.in.reg2mem
br i1 %133, label LBL_13, label LBL_10
LBL_10:
%134 = add i64 %arg1, 8
%135 = inttoptr i64 %134 to i8*
%136 = load i8, i8* %135, align 1
%137 = sext i8 %136 to i64
%138 = and i64 %137, 4294967295
%139 = call i64 @FUNC(i64 %138)
%140 = trunc i64 %139 to i32
%141 = add i64 %arg1, 7
%142 = inttoptr i64 %141 to i8*
%143 = load i8, i8* %142, align 1
%144 = sext i8 %143 to i64
%145 = and i64 %144, 4294967295
%146 = call i64 @FUNC(i64 %145)
%147 = trunc i64 %146 to i32
%148 = mul i32 %147, 16
%149 = or i32 %148, %140
%150 = add i64 %arg1, 6
%151 = inttoptr i64 %150 to i8*
%152 = load i8, i8* %151, align 1
%153 = sext i8 %152 to i64
%154 = and i64 %153, 4294967295
%155 = call i64 @FUNC(i64 %154)
%156 = trunc i64 %155 to i32
%157 = mul i32 %156, 256
%158 = or i32 %149, %157
%159 = add i64 %arg1, 5
%160 = inttoptr i64 %159 to i8*
%161 = load i8, i8* %160, align 1
%162 = sext i8 %161 to i64
%163 = and i64 %162, 4294967295
%164 = call i64 @FUNC(i64 %163)
%165 = trunc i64 %164 to i32
%166 = mul i32 %165, 4096
%167 = or i32 %158, %166
%168 = add i64 %arg1, 4
%169 = inttoptr i64 %168 to i8*
%170 = load i8, i8* %169, align 1
%171 = sext i8 %170 to i64
%172 = and i64 %171, 4294967295
%173 = call i64 @FUNC(i64 %172)
%174 = trunc i64 %173 to i32
%175 = mul i32 %174, 65536
%176 = or i32 %167, %175
%177 = add i64 %arg1, 3
%178 = inttoptr i64 %177 to i8*
%179 = load i8, i8* %178, align 1
%180 = sext i8 %179 to i64
%181 = and i64 %180, 4294967295
%182 = call i64 @FUNC(i64 %181)
%183 = trunc i64 %182 to i32
%184 = mul i32 %183, 1048576
%185 = or i32 %176, %184
%186 = add i64 %arg1, 2
%187 = inttoptr i64 %186 to i8*
%188 = load i8, i8* %187, align 1
%189 = sext i8 %188 to i64
%190 = and i64 %189, 4294967295
%191 = call i64 @FUNC(i64 %190)
%192 = trunc i64 %191 to i32
%193 = mul i32 %192, 16777216
%194 = or i32 %185, %193
%195 = inttoptr i64 %9 to i8*
%196 = load i8, i8* %195, align 1
%197 = sext i8 %196 to i64
%198 = and i64 %197, 4294967295
%199 = call i64 @FUNC(i64 %198)
%200 = trunc i64 %199 to i32
%201 = mul i32 %200, 268435456
%202 = or i32 %194, %201
store i32 %202, i32* %storemerge.in.reg2mem
br label LBL_13
LBL_11:
%203 = ptrtoint i64* %sv_1 to i64
%204 = trunc i64 %storemerge5.reload to i32
%205 = bitcast i64* %sv_0 to i8*
%206 = inttoptr i64 %arg1 to i8*
%207 = call i8* @strncpy(i8* nonnull %205, i8* %206, i32 %204)
%208 = add i64 %203, -144
%209 = add i64 %208, %storemerge5.reload
%210 = inttoptr i64 %209 to i8*
store i8 0, i8* %210, align 1
%211 = call i64* @bsearch(i64* nonnull %sv_0, i64* bitcast ([4 x i8]** @gv_0 to i64*), i32 8, i32 16, i32 (i64*, i64*)* inttoptr (i64 4198758 to i32 (i64*, i64*)*))
%212 = ptrtoint i64* %211 to i64
%sext4 = mul i64 %212, 4294967296
%213 = icmp eq i64 %sext4, 0
%214 = icmp eq i1 %213, false
store i32 -16777216, i32* %storemerge.in.reg2mem
br i1 %214, label LBL_12, label LBL_13
LBL_12:
%215 = ashr exact i64 %sext4, 32
%216 = add nsw i64 %215, 8
%217 = inttoptr i64 %216 to i32*
%218 = load i32, i32* %217, align 4
store i32 %218, i32* %storemerge.in.reg2mem
br label LBL_13
LBL_13:
%storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem
%storemerge = zext i32 %storemerge.in.reload to i64
ret i64 %storemerge
uselistorder i64 %9, { 3, 2, 1, 0 }
uselistorder i64 %storemerge5.reload, { 2, 0, 3, 1 }
uselistorder i64* %storemerge5.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge.in.reg2mem, { 0, 6, 7, 4, 5, 3, 2, 1 }
uselistorder i64 8, { 1, 0 }
uselistorder i32 8, { 1, 0 }
uselistorder i32 -16777216, { 1, 0, 2, 3 }
uselistorder i32 16, { 4, 0, 1, 2, 3 }
uselistorder i64 (i64)* @hex_char_to_number, { 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 4294967296, { 0, 3, 1, 2 }
uselistorder i32 0, { 1, 0 }
uselistorder i32 1, { 5, 4, 2, 1, 0, 3 }
uselistorder i64 %arg1, { 18, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }
uselistorder label LBL_13, { 5, 6, 4, 3, 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | spapr_events_init_1687 | spapr_events_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4, i64 0, i64 0, i64 0, i64* nonnull @gv_0)
%6 = add i64 %0, 16
%7 = inttoptr i64 %6 to i64*
store i64 %5, i64* %7, align 8
%8 = add i64 %0, 24
%9 = inttoptr i64 %8 to i64*
store i64 4198701, i64* %9, align 8
%10 = call i64 @FUNC(i64 %8)
%11 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_1, i64 0, i64 0), i64 4198737)
%12 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0), i64 4198744)
ret i64 %12
uselistorder i64 (i64, i8*, i64)* @spapr_rtas_register, { 1, 0 }
} | 0 |
BinRealVul | load_tco_17312 | load_tco | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = add i64 %2, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = zext i32 %5 to i64
%7 = and i64 %1, 4294967295
%8 = call i64 @FUNC(i64 %7, i64 %6, i64 4)
ret i64 %8
} | 1 |
BinRealVul | jsonNewLine_13041 | jsonNewLine | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.01.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = trunc i64 %arg1 to i32
%4 = call i64 @FUNC(i64 %arg3, i64 %arg4, i64 4202512, i64 %arg4, i64 %2, i64 %1)
%5 = udiv i32 %3, 4
%6 = icmp ult i32 %3, 4
%7 = icmp eq i1 %6, false
store i32 %5, i32* %sv_0.01.reg2mem
store i32 %5, i32* %sv_0.0.lcssa.reg2mem
br i1 %7, label LBL_1, label LBL_2
LBL_1:
%sv_0.01.reload = load i32, i32* %sv_0.01.reg2mem
%8 = add i32 %sv_0.01.reload, -1
%9 = call i64 @FUNC(i64 %arg3, i64 %arg4, i64 %arg2, i64 %arg4, i64 %2, i64 %1)
%10 = icmp eq i32 %8, 0
%11 = icmp eq i1 %10, false
store i32 %8, i32* %sv_0.01.reg2mem
store i32 %8, i32* %sv_0.0.lcssa.reg2mem
br i1 %11, label LBL_1, label LBL_2
LBL_2:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%12 = zext i32 %sv_0.0.lcssa.reload to i64
ret i64 %12
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i32* %sv_0.01.reg2mem, { 2, 0, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64, i64)* @cbprintf, { 1, 0 }
uselistorder i32 1, { 4, 3, 2, 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | m101_decode_init_17023 | m101_decode_init | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp sgt i32 %2, 23
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%4 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %7, 8
%9 = inttoptr i64 %8 to i8*
%10 = load i8, i8* %9, align 1
%11 = icmp eq i8 %10, 10
%12 = icmp eq i1 %11, false
%13 = add i64 %4, 16
%14 = inttoptr i64 %13 to i32*
br i1 %12, label LBL_3, label LBL_2
LBL_2:
store i32 1, i32* %14, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
store i32 2, i32* %14, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %14, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 1 |
BinRealVul | need_remote_flush_10664 | need_remote_flush | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1)
%1 = trunc i64 %0 to i8
%2 = icmp eq i8 %1, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_3
LBL_1:
%3 = call i64 @FUNC(i64 %arg2)
%4 = trunc i64 %3 to i8
%5 = icmp eq i8 %4, 1
%6 = xor i64 %arg2, %arg1
%7 = icmp ult i64 %6, 4096
%or.cond = icmp eq i1 %7, %5
store i64 1, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_2, label LBL_3
LBL_2:
%8 = xor i64 %arg1, 1
%9 = xor i64 %arg2, 4094
%10 = and i64 %9, %8
%11 = urem i64 %10, 4096
%12 = icmp eq i64 %11, 0
%13 = icmp eq i1 %12, false
%14 = zext i1 %13 to i64
%15 = and i64 %10, 3840
%16 = or i64 %15, %14
store i64 %16, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %10, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 (i64)* @is_shadow_present_pte, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg2, { 1, 0, 2 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | nfs_fsync_4413 | nfs_fsync | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %6, i64 %2, i64 %1)
%8 = call i64 @FUNC(i64 %3, i64 0)
%9 = call i64 @FUNC()
%10 = call i64 @FUNC(i64 %3)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 %10, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = bitcast i64* %arg1 to i32*
store i32 0, i32* %14, align 4
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%15 = call i64 @FUNC()
%16 = and i64 %sv_0.0.reload, 4294967295
ret i64 %16
uselistorder i64* %0, { 1, 0 }
} | 0 |
BinRealVul | mono_valloc_aligned_3760 | mono_valloc_aligned | define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
store i64 0, i64* %sv_0, align 8
%0 = bitcast i64* %sv_0 to i64**
%1 = trunc i64 %arg2 to i32
%2 = trunc i64 %arg1 to i32
%3 = call i32 @posix_memalign(i64** nonnull %0, i32 %1, i32 %2)
%4 = icmp eq i32 %3, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = load i64, i64* %sv_0, align 8
%6 = inttoptr i64 %5 to i64*
%7 = call i64* @memset(i64* %6, i32 0, i32 %2)
%8 = load i64, i64* %sv_0, align 8
store i64 %8, 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, 2, 0, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | qmp_tmp105_get_temperature_16737 | qmp_tmp105_get_temperature | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @gv_0, i64 0, i64 0), i64 %arg1)
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0))
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_1, i64 0, i64 0))
%5 = call i64 @FUNC(i64 %0)
%6 = and i64 %4, 4294967295
ret i64 %6
} | 1 |
BinRealVul | update_error_limit_14694 | update_error_limit | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge3.reg2mem = alloca i32
%.reg2mem5 = alloca i64
%storemerge14.reg2mem = alloca i32
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = ptrtoint i64* %sv_0 to i64
%2 = bitcast i64* %rdi to i32*
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i64*
%5 = add i64 %1, -24
%6 = add i64 %1, -32
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge14.reg2mem
br label LBL_1
LBL_1:
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
%.reload = load i64, i64* %.reg2mem
%7 = load i64, i64* %4, align 8
%8 = mul i64 %.reload, 16
%9 = add i64 %7, %8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = add i64 %9, 4
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i32 %14, %11
store i32 %15, i32* %10, align 4
%16 = load i64, i64* %4, align 8
%17 = add i64 %16, %8
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = ashr i32 %19, 16
%21 = mul i64 %.reload, 4
%22 = add i64 %21, %5
%23 = inttoptr i64 %22 to i32*
store i32 %20, i32* %23, align 4
%24 = load i64, i64* %4, align 8
%25 = or i64 %8, 8
%26 = add i64 %24, %25
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = zext i32 %28 to i64
%30 = call i64 @FUNC(i64 %29)
%31 = trunc i64 %30 to i32
%32 = add i64 %6, %21
%33 = inttoptr i64 %32 to i32*
store i32 %31, i32* %33, align 4
%34 = add i32 %storemerge14.reload, 1
%35 = load i32, i32* %2, align 8
%36 = zext i32 %35 to i64
%37 = sext i32 %34 to i64
%38 = icmp sgt i64 %37, %36
store i64 %37, i64* %.reg2mem
store i32 %34, i32* %storemerge14.reg2mem
br i1 %38, label LBL_2, label LBL_1
LBL_2:
%39 = add i64 %0, 4
%40 = inttoptr i64 %39 to i32*
store i64 0, i64* %.reg2mem5
store i32 0, i32* %storemerge3.reg2mem
br label LBL_3
LBL_3:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%.reload6 = load i64, i64* %.reg2mem5
%41 = load i32, i32* %40, align 4
%42 = icmp eq i32 %41, 0
%43 = mul i64 %.reload6, 4
br i1 %42, label LBL_7, label LBL_4
LBL_4:
%44 = add i64 %6, %43
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = add i64 %43, %5
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = sub i32 %46, %49
%51 = icmp slt i32 %50, -255
br i1 %51, label LBL_6, label LBL_5
LBL_5:
%52 = add i32 %50, 256
%53 = load i64, i64* %4, align 8
%54 = mul i64 %.reload6, 16
%55 = zext i32 %52 to i64
%56 = call i64 @FUNC(i64 %55)
%57 = trunc i64 %56 to i32
%58 = or i64 %54, 12
%59 = add i64 %53, %58
%60 = inttoptr i64 %59 to i32*
store i32 %57, i32* %60, align 4
br label LBL_8
LBL_6:
%61 = load i64, i64* %4, align 8
%62 = mul i64 %.reload6, 16
%63 = or i64 %62, 12
%64 = add i64 %61, %63
%65 = inttoptr i64 %64 to i32*
store i32 0, i32* %65, align 4
br label LBL_8
LBL_7:
%66 = add i64 %43, %5
%67 = inttoptr i64 %66 to i32*
%68 = load i32, i32* %67, align 4
%69 = load i64, i64* %4, align 8
%70 = mul i64 %.reload6, 16
%71 = zext i32 %68 to i64
%72 = call i64 @FUNC(i64 %71)
%73 = trunc i64 %72 to i32
%74 = or i64 %70, 12
%75 = add i64 %69, %74
%76 = inttoptr i64 %75 to i32*
store i32 %73, i32* %76, align 4
br label LBL_8
LBL_8:
%77 = add i32 %storemerge3.reload, 1
%78 = load i32, i32* %2, align 8
%79 = zext i32 %78 to i64
%80 = sext i32 %77 to i64
%81 = icmp sgt i64 %80, %79
store i64 %80, i64* %.reg2mem5
store i32 %77, i32* %storemerge3.reg2mem
br i1 %81, label LBL_9, label LBL_3
LBL_9:
ret i64 %79
uselistorder i64 %43, { 2, 1, 0 }
uselistorder i64 %.reload6, { 3, 2, 1, 0 }
uselistorder i64 %8, { 0, 2, 1 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i64 %0, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge14.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem5, { 1, 0, 2 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @wp_exp2, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | unix_notinflight_12616 | unix_notinflight | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1)
%1 = icmp eq i64 %0, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_4, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64* nonnull @gv_0)
%4 = add i64 %2, 8
%5 = call i64 @FUNC(i64 %4)
%6 = urem i64 %5, 256
%7 = call i64 @FUNC(i64 %6)
%8 = call i64 @FUNC(i64 %2)
%9 = icmp eq i64 %8, 0
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i64 %4)
br label LBL_3
LBL_3:
%11 = load i64, i64* @gv_1, align 8
%12 = add i64 %11, -1
store i64 %12, i64* @gv_1, align 8
%13 = call i64 @FUNC(i64* nonnull @gv_0)
store i64 %13, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 1, { 3, 4, 5, 2, 1, 0 }
} | 1 |
BinRealVul | timerfd_remove_cancel_6934 | timerfd_remove_cancel | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %0)
ret i64 %3
} | 0 |
BinRealVul | compare_by_guid_7203 | compare_by_guid | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = call i32 @memcmp(i64* %arg1, i64* %arg2, i32 16)
%1 = icmp eq i32 %0, 0
%2 = zext i1 %1 to i64
ret i64 %2
} | 0 |
BinRealVul | nvme_directive_receive_7248 | nvme_directive_receive | 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
%sv_0 = alloca i32, align 4
%3 = and i64 %1, 4294967295
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %2, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = zext i32 %7 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = zext i32 %12 to i64
%14 = call i64 @FUNC(i64 %13)
%15 = trunc i64 %14 to i32
store i32 2, i32* %sv_0, align 4
%16 = icmp eq i32 %15, -1
store i64 3, i64* %rax.0.reg2mem
br i1 %16, label LBL_8, label LBL_1
LBL_1:
%17 = trunc i64 %9 to i32
%18 = and i32 %17, 65280
%19 = icmp eq i32 %18, 256
%20 = trunc i64 %9 to i8
%21 = icmp eq i8 %20, 0
%or.cond = icmp eq i1 %21, %19
store i64 3, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_2, label LBL_8
LBL_2:
%22 = ptrtoint i64* %arg1 to i64
%23 = and i64 %14, 4294967295
%24 = call i64 @FUNC(i64 %22, i64 %23)
%25 = icmp eq i64 %24, 0
%26 = icmp eq i1 %25, false
store i64 3, i64* %rax.0.reg2mem
br i1 %26, label LBL_3, label LBL_8
LBL_3:
%sext.mask = urem i32 %17, 256
%27 = icmp eq i32 %sext.mask, 0
%28 = icmp eq i1 %27, false
store i64 3, i64* %rax.0.reg2mem
br i1 %28, label LBL_8, label LBL_4
LBL_4:
%29 = inttoptr i64 %24 to i64*
%30 = load i64, i64* %29, align 8
%31 = icmp eq i64 %30, 0
br i1 %31, label LBL_7, label LBL_5
LBL_5:
%32 = inttoptr i64 %30 to i32*
%33 = load i32, i32* %32, align 4
%34 = icmp eq i32 %33, 0
br i1 %34, label LBL_7, label LBL_6
LBL_6:
store i32 6, i32* %sv_0, align 4
br label LBL_7
LBL_7:
%.tr = trunc i64 %4 to i32
%35 = mul i32 %.tr, 4
%36 = add i32 %35, 4
%37 = icmp ult i32 %36, 12
%38 = select i1 %37, i32 %36, i32 12
%39 = bitcast i32* %sv_0 to i64*
%40 = call i64 @FUNC(i64 %22, i64* nonnull %39, i32 %38, i64 %2)
store i64 %40, 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 i32* %sv_0, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 4, 3 }
uselistorder i32 4, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 3, { 0, 1, 3, 2 }
uselistorder i64 (i64)* @le32_to_cpu, { 2, 1, 0 }
uselistorder i64 4294967295, { 1, 0, 2 }
uselistorder label LBL_8, { 4, 0, 1, 3, 2 }
} | 0 |
BinRealVul | node_is_equal_ex_13268 | node_is_equal_ex | define i64 @FUNC(i64* %arg1, i8* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i8* %arg2, null
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = bitcast i64* %arg1 to i8*
%2 = call i32 @strcmp(i8* %1, i8* nonnull %arg2)
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_5, label LBL_2
LBL_2:
%5 = icmp eq i64 %arg3, 0
store i64 1, i64* %rax.0.reg2mem
br i1 %5, label LBL_5, label LBL_3
LBL_3:
%6 = ptrtoint i64* %arg1 to i64
%7 = call i64 @FUNC(i64 %6)
%8 = icmp eq i64 %7, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_5, label LBL_4
LBL_4:
%9 = inttoptr i64 %7 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %10 to i8*
%12 = inttoptr i64 %arg3 to i8*
%13 = call i32 @strcmp(i8* %11, i8* %12)
%14 = icmp eq i32 %13, 0
%15 = zext i1 %14 to i64
store i64 %15, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_5, { 3, 2, 1, 0 }
} | 1 |
BinRealVul | g364fb_update_display_2841 | g364fb_update_display | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC()
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_11, label LBL_1
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_11, label LBL_2
LBL_2:
%10 = add i64 %5, 16
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %12)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %3, %14
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = load i32, i32* %7, align 4
%18 = load i64, i64* %11, align 8
%19 = call i64 @FUNC(i64 %18)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %17, %20
br i1 %21, label LBL_5, label LBL_4
LBL_4:
%22 = load i32, i32* %7, align 4
%23 = load i64, i64* %11, align 8
%24 = and i64 %1, 4294967295
%25 = call i64 @FUNC(i64 %23, i64 %24, i32 %22)
br label LBL_5
LBL_5:
%26 = add i64 %5, 12
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = urem i32 %28, 2
%30 = icmp eq i32 %29, 0
br i1 %30, label LBL_7, label LBL_6
LBL_6:
%31 = call i64 @FUNC(i64 %5)
br label LBL_10
LBL_7:
%32 = add i64 %5, 8
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = icmp eq i32 %34, 8
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_9, label LBL_8
LBL_8:
%37 = call i64 @FUNC(i64 %5)
br label LBL_10
LBL_9:
%38 = zext i32 %34 to i64
%39 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i64 %38)
br label LBL_10
LBL_10:
%40 = add i64 %5, 24
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = call i64 @FUNC(i64 %42)
store i64 %43, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %11, { 1, 0, 2 }
uselistorder i32* %7, { 1, 0, 2 }
uselistorder i64 %5, { 0, 4, 3, 2, 1, 5, 6 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder label LBL_11, { 2, 1, 0 }
} | 0 |
BinRealVul | ext4_max_size_10566 | ext4_max_size | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%sext = mul i64 %arg1, 4294967296
%0 = ashr exact i64 %sext, 32
%1 = trunc i64 %arg2 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_0.LBL_3_crit_edge, label LBL_2
LBL_1:
%.pre = urem i64 %0, 64
store i64 %.pre, i64* %.pre-phi.reg2mem
store i64 9223372036854775807, i64* %sv_0.1.reg2mem
br label LBL_3
LBL_2:
%4 = trunc i64 %0 to i32
%5 = add i32 %4, 55
%6 = urem i32 %5, 64
%7 = icmp eq i32 %6, 0
%8 = zext i32 %6 to i64
%9 = lshr i64 4294967295, %8
%sv_0.0 = select i1 %7, i64 4294967295, i64 %9
%10 = urem i64 %0, 64
%11 = shl i64 %sv_0.0, %10
store i64 %10, i64* %.pre-phi.reg2mem
store i64 %11, i64* %sv_0.1.reg2mem
br label LBL_3
LBL_3:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%12 = shl i64 4294967295, %.pre-phi.reload
%13 = icmp sgt i64 %12, %sv_0.1.reload
%sv_1.1 = select i1 %13, i64 %sv_0.1.reload, i64 %12
ret i64 %sv_1.1
uselistorder i64 %12, { 1, 0 }
uselistorder i64 %sv_0.1.reload, { 1, 0 }
uselistorder i64 %0, { 0, 2, 1 }
uselistorder i64 4294967295, { 2, 0, 1 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | streamGetEdgeID_18968 | streamGetEdgeID | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%2 = trunc i64 %arg2 to i32
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i64
%5 = call i64 @FUNC(i64* nonnull %sv_1, i64 %1, i64 0, i64 0, i64 %4)
%sext2 = mul i64 %arg3, 4294967296
%6 = ashr exact i64 %sext2, 32
store i64 %6, i64* %sv_1, align 8
%7 = call i64 @FUNC(i64* nonnull %sv_1, i64 %0, i64* nonnull %sv_0)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 %7, i64* %rax.0.reg2mem
br i1 %10, label LBL_4, label LBL_1
LBL_1:
br i1 %3, label LBL_3, label LBL_2
LBL_2:
store i64 -1, i64* %arg4, align 8
%11 = add i64 %0, 8
%12 = inttoptr i64 %11 to i64*
store i64 -1, i64* %12, align 8
store i64 -1, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
store i64 0, i64* %arg4, align 8
%13 = add i64 %0, 8
%14 = inttoptr i64 %13 to i64*
store i64 0, i64* %14, align 8
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* %sv_1, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
} | 1 |
BinRealVul | get_buffer_internal_15500 | get_buffer_internal | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rcx.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
%5 = trunc i64 %1 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_12, label LBL_1
LBL_1:
%8 = add i64 %4, 12
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = add i64 %4, 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i64 %4, 4
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %17, i32 %13, i32 %10, i64 0, i64 0, i64 %4)
%19 = trunc i64 %18 to i32
%20 = icmp slt i32 %19, 0
br i1 %20, label LBL_3, label LBL_2
LBL_2:
%21 = add i64 %4, 16
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = icmp slt i32 %23, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_4, label LBL_3
LBL_3:
%26 = call i64 @FUNC(i64 %4, i64 16, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 0, i64 %4)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_13
LBL_4:
%27 = trunc i64 %2 to i32
%28 = icmp slt i32 %27, 1
%.pre = add i64 %3, 4
%.pre2 = inttoptr i64 %.pre to i32*
br i1 %28, label LBL_6, label LBL_5
LBL_5:
%29 = load i32, i32* %.pre2, align 4
%30 = icmp eq i32 %29, 0
%31 = icmp slt i32 %29, 0
%32 = icmp eq i1 %31, false
%33 = icmp eq i1 %30, false
%34 = icmp eq i1 %32, %33
store i64 0, i64* %rcx.0.reg2mem
br i1 %34, label LBL_7, label LBL_6
LBL_6:
%35 = add i64 %4, 20
%36 = inttoptr i64 %35 to i32*
%37 = load i32, i32* %36, align 4
%38 = zext i32 %37 to i64
%39 = add i64 %4, 28
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = urem i32 %41, 32
%43 = shl i32 1, %42
%storemerge = zext i32 %43 to i64
%44 = add nuw nsw i64 %38, 4294967295
%45 = add nuw nsw i64 %44, %storemerge
%46 = icmp eq i32 %42, 0
%47 = trunc i64 %45 to i32
%48 = ashr i32 %47, %42
%49 = zext i32 %48 to i64
%rdx.0 = select i1 %46, i64 %45, i64 %49
%50 = load i32, i32* %15, align 4
%51 = trunc i64 %rdx.0 to i32
%52 = sub i32 %51, %50
%53 = xor i32 %50, %51
%54 = xor i32 %52, %51
%55 = and i32 %54, %53
%56 = icmp slt i32 %55, 0
%57 = icmp slt i32 %52, 0
%58 = icmp eq i1 %57, %56
%59 = select i1 %58, i32 %51, i32 %50
%60 = bitcast i64* %arg2 to i32*
store i32 %59, i32* %60, align 4
%61 = add i64 %4, 24
%62 = inttoptr i64 %61 to i32*
%63 = load i32, i32* %62, align 4
%64 = zext i32 %63 to i64
%65 = load i32, i32* %40, align 4
%66 = urem i32 %65, 32
%67 = shl i32 1, %66
%storemerge1 = zext i32 %67 to i64
%68 = add nuw nsw i64 %64, 4294967295
%69 = add nuw nsw i64 %68, %storemerge1
%70 = zext i32 %65 to i64
%71 = icmp eq i32 %66, 0
%72 = trunc i64 %69 to i32
%73 = ashr i32 %72, %66
%74 = zext i32 %73 to i64
%rdx.1 = select i1 %71, i64 %69, i64 %74
%75 = load i32, i32* %12, align 4
%76 = trunc i64 %rdx.1 to i32
%77 = sub i32 %76, %75
%78 = xor i32 %75, %76
%79 = xor i32 %77, %76
%80 = and i32 %79, %78
%81 = icmp slt i32 %80, 0
%82 = icmp slt i32 %77, 0
%83 = icmp eq i1 %82, %81
%84 = select i1 %83, i32 %76, i32 %75
store i32 %84, i32* %.pre2, align 4
store i64 %70, i64* %rcx.0.reg2mem
br label LBL_7
LBL_7:
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%85 = add i64 %3, 8
%86 = inttoptr i64 %85 to i64*
%87 = load i64, i64* %86, align 8
%88 = icmp eq i64 %87, 0
%89 = icmp eq i1 %88, false
br i1 %89, label LBL_11, label LBL_8
LBL_8:
%90 = add i64 %3, 16
%91 = inttoptr i64 %90 to i64*
%92 = load i64, i64* %91, align 8
%93 = icmp eq i64 %92, 0
%94 = icmp eq i1 %93, false
br i1 %94, label LBL_11, label LBL_9
LBL_9:
%95 = add i64 %3, 24
%96 = inttoptr i64 %95 to i64*
%97 = load i64, i64* %96, align 8
%98 = icmp eq i64 %97, 0
%99 = icmp eq i1 %98, false
br i1 %99, label LBL_11, label LBL_10
LBL_10:
%100 = add i64 %3, 32
%101 = inttoptr i64 %100 to i64*
%102 = load i64, i64* %101, align 8
%103 = icmp eq i64 %102, 0
br i1 %103, label LBL_12, label LBL_11
LBL_11:
%104 = call i64 @FUNC(i64 %4, i64 16, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_1, i64 0, i64 0), i64 %rcx.0.reload, i64 0, i64 %4)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_13
LBL_12:
%105 = call i64 @FUNC(i64 %4, i64 %3)
%106 = and i64 %105, 4294967295
store i64 %106, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %77, { 1, 0 }
uselistorder i32 %76, { 2, 1, 0, 3 }
uselistorder i32 %75, { 1, 0, 2 }
uselistorder i32 %66, { 1, 2, 0 }
uselistorder i32 %65, { 1, 0 }
uselistorder i32 %52, { 1, 0 }
uselistorder i32 %51, { 2, 1, 0, 3 }
uselistorder i32 %50, { 1, 0, 2 }
uselistorder i32 %42, { 1, 2, 0 }
uselistorder i32 %29, { 1, 0 }
uselistorder i64 %4, { 12, 0, 1, 2, 4, 3, 6, 7, 5, 10, 11, 9, 8 }
uselistorder i64 %3, { 5, 4, 3, 2, 1, 0 }
uselistorder i64* %rcx.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i64 16, { 0, 2, 1, 3 }
uselistorder i1 false, { 1, 2, 3, 4, 0, 5, 6 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | tcp_chr_close_3376 | tcp_chr_close | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = 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 = icmp slt i32 %3, 0
br i1 %4, label LBL_6, label LBL_1
LBL_1:
%5 = add i64 %2, 24
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = call i64 @FUNC(i64 %7)
store i64 0, i64* %6, align 8
br label LBL_3
LBL_3:
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = call i64 @FUNC(i64 %12)
br label LBL_5
LBL_5:
%15 = bitcast i64* %rdi to i32*
%16 = load i32, i32* %15, align 8
%17 = zext i32 %16 to i64
%18 = call i64 @FUNC(i64 %17)
br label LBL_6
LBL_6:
%19 = add i64 %2, 4
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label LBL_12, label LBL_7
LBL_7:
%23 = add i64 %2, 32
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = icmp eq i64 %25, 0
br i1 %26, label LBL_9, label LBL_8
LBL_8:
%27 = call i64 @FUNC(i64 %25)
store i64 0, i64* %24, align 8
br label LBL_9
LBL_9:
%28 = add i64 %2, 16
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = icmp eq i64 %30, 0
br i1 %31, label LBL_11, label LBL_10
LBL_10:
%32 = call i64 @FUNC(i64 %30)
br label LBL_11
LBL_11:
%33 = load i32, i32* %20, align 4
%34 = zext i32 %33 to i64
%35 = call i64 @FUNC(i64 %34)
br label LBL_12
LBL_12:
%36 = call i64 @FUNC(i64 %2)
%37 = call i64 @FUNC(i64 %2, i64 0)
ret i64 %37
uselistorder i64 %2, { 2, 3, 1, 5, 4, 0, 6 }
uselistorder i64 (i64)* @closesocket, { 1, 0 }
uselistorder i64 (i64)* @g_io_channel_unref, { 1, 0 }
} | 0 |
BinRealVul | read_highpass_3407 | read_highpass | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%storemerge8.reg2mem = alloca i32
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg4 to i64
%sv_0 = alloca i64, align 8
store i64 %2, i64* %sv_0, align 8
%3 = sext i32 %arg3 to i64
%4 = mul i64 %3, 8
%5 = add i64 %4, %2
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = trunc i64 %1 to i32
%9 = mul i32 %8, 3
%10 = icmp eq i32 %9, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_8, label LBL_1
LBL_1:
%11 = ptrtoint i64* %arg2 to i64
%12 = ptrtoint i64* %arg1 to i64
%13 = ptrtoint i64* %sv_0 to i64
%14 = lshr i64 %7, 63
%15 = add i64 %14, %7
%16 = ashr i64 %15, 1
%17 = bitcast i64* %rdi to i32*
%18 = add i64 %12, 32
%19 = add nsw i64 %4, 24
%20 = add i64 %12, 8
%21 = add i64 %20, %4
%22 = inttoptr i64 %21 to i64*
%23 = add i64 %13, -16
%24 = inttoptr i64 %23 to i64*
%25 = add i64 %13, -24
%26 = inttoptr i64 %25 to i64*
%27 = add i64 %13, -32
%28 = inttoptr i64 %27 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge8.reg2mem
br label LBL_2
LBL_2:
%storemerge8.reload = load i32, i32* %storemerge8.reg2mem
%.reload = load i64, i64* %.reg2mem
%29 = call i64 @FUNC(i64 %18)
%30 = call i64 @FUNC(i64 %18)
%31 = call i64 @FUNC(i64 %18)
%32 = call i64 @FUNC(i64 %18)
%33 = load i64, i64* %sv_0, align 8
%34 = add i64 %19, %33
%35 = inttoptr i64 %34 to i64*
%36 = load i64, i64* %35, align 8
%37 = load i64, i64* %22, align 8
%38 = mul i64 %.reload, 16
%39 = add nsw i64 %38, 16
%40 = add i64 %39, %37
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = add i64 %40, 4
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = add i64 %40, 8
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = call i64 @FUNC(i64 %18)
%50 = trunc i64 %49 to i32
%51 = icmp eq i32 %50, -559038737
br i1 %51, label LBL_4, label LBL_3
LBL_3:
%52 = zext i32 %storemerge8.reload to i64
%53 = zext i32 %arg3 to i64
%54 = and i64 %49, 4294967295
%55 = call i64 @FUNC(i64 %12, i64 0, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_0, i64 0, i64 0), i64 %54, i64 %53, i64 %52)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_8
LBL_4:
%56 = trunc i64 %29 to i32
%57 = icmp eq i32 %56, -2147483648
%58 = icmp eq i1 %57, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %58, label LBL_5, label LBL_8
LBL_5:
%59 = trunc i64 %31 to i32
%60 = sext i32 %42 to i64
%61 = sext i32 %45 to i64
%62 = mul i64 %16, %61
%63 = add i64 %62, %60
%64 = mul i64 %63, 2
%65 = add i64 %64, %36
%66 = load i64, i64* %22, align 8
%67 = add nsw i64 %38, 28
%68 = add i64 %67, %66
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = zext i32 %70 to i64
%72 = sub i32 0, %56
%73 = icmp slt i32 %72, 0
%74 = icmp eq i1 %73, false
%75 = select i1 %74, i32 %72, i32 %56
%76 = zext i32 %75 to i64
%sext3 = mul i64 %30, 4294967296
%77 = ashr exact i64 %sext3, 32
%78 = icmp slt i64 %77, %76
%storemerge2.in = select i1 %78, i64 %29, i64 %30
%storemerge2 = and i64 %storemerge2.in, 4294967295
%79 = call i64 @FUNC(i64 %18)
%sext = mul i64 %79, 4294967296
%80 = ashr exact i64 %sext, 32
%81 = add i64 %80, %11
store i64 %16, i64* %24, align 8
store i64 %71, i64* %26, align 8
%82 = and i64 %32, 4294967295
store i64 %82, i64* %28, align 8
%83 = call i64 @FUNC(i64 %12, i64 %81, i64 %65, i32 %48, i32 %59, i64 %storemerge2)
%84 = trunc i64 %83 to i32
%85 = icmp slt i32 %84, 0
%86 = icmp eq i1 %85, false
br i1 %86, label LBL_7, label LBL_6
LBL_6:
%87 = zext i32 %storemerge8.reload to i64
%88 = zext i32 %arg3 to i64
%89 = call i64 @FUNC(i64 %12, i64 0, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_1, i64 0, i64 0), i64 %88, i64 %87, i64 %storemerge2)
%90 = and i64 %83, 4294967295
store i64 %90, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%91 = and i64 %83, 4294967295
%92 = call i64 @FUNC(i64 %18, i64 %91)
%93 = add i32 %storemerge8.reload, 1
%94 = load i32, i32* %17, align 8
%95 = mul i32 %94, 3
%96 = zext i32 %95 to i64
%97 = sext i32 %93 to i64
%98 = icmp slt i64 %97, %96
store i64 %97, i64* %.reg2mem
store i32 %93, i32* %storemerge8.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %98, label LBL_2, label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %83, { 1, 0, 2 }
uselistorder i32 %56, { 1, 0, 2 }
uselistorder i64 %38, { 1, 0 }
uselistorder i64 %30, { 1, 0 }
uselistorder i32 %storemerge8.reload, { 0, 2, 1 }
uselistorder i64 %18, { 0, 1, 2, 4, 3, 5, 6 }
uselistorder i64 %16, { 1, 0 }
uselistorder i64 %12, { 1, 2, 0, 3, 4 }
uselistorder i64 %4, { 1, 2, 0 }
uselistorder i64* %sv_0, { 0, 2, 1 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge8.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 5, 1, 4, 3 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 (i64)* @bytestream2_get_be32, { 4, 3, 2, 1, 0 }
uselistorder i64 32, { 1, 0, 2 }
uselistorder i64 0, { 0, 10, 6, 7, 11, 8, 9, 2, 1, 3, 4, 5, 12 }
uselistorder i32 3, { 1, 0 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder i32 %arg3, { 1, 0, 2 }
uselistorder label LBL_8, { 1, 3, 0, 4, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | BM_ParseCommand_12827 | BM_ParseCommand | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i32
%sv_0.11.reg2mem = alloca i32
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = add i64 %2, 16
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = bitcast i64* %arg1 to i32*
store i32 0, i32* %9, align 4
store i32 0, i32* %sv_0.11.reg2mem
br label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %1, i64 2)
%11 = urem i64 %10, 256
%12 = icmp eq i64 %11, 3
br i1 %12, label LBL_9, label LBL_2
LBL_2:
%sv_0.11.reload = load i32, i32* %sv_0.11.reg2mem
%13 = trunc i64 %11 to i32
%14 = icmp ugt i32 %13, 3
store i32 %sv_0.11.reload, i32* %sv_0.0.reg2mem
br i1 %14, label LBL_10, label LBL_3
LBL_3:
%15 = icmp eq i32 %13, 2
br i1 %15, label LBL_8, label LBL_4
LBL_4:
%16 = icmp ugt i32 %13, 2
store i32 %sv_0.11.reload, i32* %sv_0.0.reg2mem
br i1 %16, label LBL_10, label LBL_5
LBL_5:
%trunc = trunc i64 %10 to i8
store i32 %sv_0.11.reload, i32* %sv_0.0.reg2mem
switch i8 %trunc, label LBL_10 [
i8 0, label LBL_6
i8 1, label LBL_7
]
LBL_6:
%17 = call i64 @FUNC(i64 %2, i64 %1, i64 %0)
%18 = trunc i64 %17 to i32
store i32 %18, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_7:
%19 = call i64 @FUNC(i64 %2, i64 %1, i64 %0)
%20 = trunc i64 %19 to i32
store i32 %20, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_8:
%21 = call i64 @FUNC(i64 %2, i64 %1, i64 %0)
%22 = trunc i64 %21 to i32
store i32 %22, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_9:
%23 = call i64 @FUNC(i64 %2, i64 %1, i64 %0)
%24 = trunc i64 %23 to i32
store i32 %24, i32* %sv_0.0.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%25 = icmp eq i32 %sv_0.0.reload, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_12, label LBL_11
LBL_11:
%27 = call i64 @FUNC(i64 %1, i64 1)
%28 = trunc i64 %27 to i8
%29 = icmp eq i8 %28, 0
%30 = icmp eq i1 %29, false
store i32 %sv_0.0.reload, i32* %sv_0.11.reg2mem
br i1 %30, label LBL_1, label LBL_12
LBL_12:
%31 = add i64 %2, 24
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = call i64 @FUNC(i64 %33)
%35 = trunc i64 %34 to i32
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_13, label LBL_14
LBL_13:
%38 = call i64 @FUNC(i64 %2, i64 1)
%39 = load i64, i64* %32, align 8
%40 = call i64 @FUNC(i64 %39)
%41 = trunc i64 %40 to i32
%42 = icmp eq i32 %41, 0
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_13, label LBL_14
LBL_14:
store i64 %5, i64* %4, align 8
store i64 %8, i64* %7, align 8
%44 = zext i32 %sv_0.0.reload to i64
ret i64 %44
uselistorder i64* %32, { 1, 0 }
uselistorder i32 %sv_0.0.reload, { 1, 2, 0 }
uselistorder i32 %13, { 0, 2, 1 }
uselistorder i64 %11, { 1, 0 }
uselistorder i64 %10, { 1, 0 }
uselistorder i64 %2, { 3, 4, 5, 2, 0, 1, 6, 7 }
uselistorder i64 %1, { 3, 4, 2, 0, 1, 5 }
uselistorder i64 %0, { 3, 2, 0, 1 }
uselistorder i32* %sv_0.11.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 7, 5, 2, 3, 1, 4, 6 }
uselistorder i64 (i64)* @gf_list_count, { 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 (i64, i64)* @gf_bs_read_int, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_10, { 1, 2, 3, 4, 0, 5, 6 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | generic_file_llseek_unlocked_4130 | generic_file_llseek_unlocked | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pn.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg3 to i32
%2 = icmp eq i32 %1, 1
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = icmp eq i32 %1, 2
%4 = icmp eq i1 %3, false
%5 = select i1 %4, i64 0, i64 %0
store i64 %5, i64* %.pn.reg2mem
br label LBL_3
LBL_2:
%6 = icmp eq i64 %arg2, 0
%7 = icmp eq i1 %6, false
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
store i64 %10, i64* %.pn.reg2mem
store i64 %10, i64* %rax.0.reg2mem
br i1 %7, label LBL_3, label LBL_7
LBL_3:
%.pn.reload = load i64, i64* %.pn.reg2mem
%sv_0.0 = add i64 %.pn.reload, %arg2
%11 = icmp slt i64 %sv_0.0, 0
store i64 -22, i64* %rax.0.reg2mem
br i1 %11, label LBL_7, label LBL_4
LBL_4:
%12 = add i64 %0, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp sgt i64 %sv_0.0, %16
store i64 -22, i64* %rax.0.reg2mem
br i1 %17, label LBL_7, label LBL_5
LBL_5:
%18 = icmp eq i64 %sv_0.0, %14
store i64 %sv_0.0, i64* %rax.0.reg2mem
br i1 %18, label LBL_7, label LBL_6
LBL_6:
store i64 %sv_0.0, i64* %13, align 8
%19 = add i64 %0, 16
%20 = inttoptr i64 %19 to i32*
store i32 0, i32* %20, align 4
store i64 %sv_0.0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.0, { 1, 2, 0, 3, 4, 5 }
uselistorder i64 %0, { 1, 2, 3, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3, 5 }
uselistorder i64 -22, { 1, 0 }
uselistorder label LBL_7, { 1, 0, 3, 2, 4 }
} | 0 |
BinRealVul | acpi_hotplug_schedule_8914 | acpi_hotplug_schedule | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %0 to i32
%2 = call i32 (i8*, ...) @printf(i8* inttoptr (i64 1 to i8*), i64* bitcast ([59 x i8]* @gv_0 to i64*), i32 %1)
%3 = call i64 @FUNC(i64 16, i64 0)
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 1, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_3
LBL_1:
%6 = call i64 @FUNC(i64 %3, i64 4198726)
%7 = inttoptr i64 %3 to i64*
store i64 %0, i64* %7, align 8
%8 = trunc i64 %arg2 to i32
%9 = add i64 %3, 8
%10 = inttoptr i64 %9 to i32*
store i32 %8, i32* %10, align 4
%11 = load i64, i64* @gv_1, align 8
%12 = call i64 @FUNC(i64 %11, i64 %3)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = call i64 @FUNC(i64 %3)
store i64 2, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 0, 1, 2, 4, 3, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 0 |
BinRealVul | uas_find_uas_alt_setting_12109 | uas_find_uas_alt_setting | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%storemerge23.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 4294967277, i64* %storemerge.reg2mem
br i1 %3, label LBL_5, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = and i64 %1, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge23.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
%8 = load i64, i64* %6, align 8
%9 = mul i64 %.reload, 4
%10 = add i64 %8, %9
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = inttoptr i64 %10 to i32*
%15 = load i32, i32* %14, align 4
%16 = zext i32 %15 to i64
store i64 %16, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%storemerge23.reload = load i32, i32* %storemerge23.reg2mem
%17 = add i32 %storemerge23.reload, 1
%18 = sext i32 %17 to i64
%19 = icmp sgt i64 %7, %18
store i64 %18, i64* %.reg2mem
store i32 %17, i32* %storemerge23.reg2mem
store i64 4294967277, i64* %storemerge.reg2mem
br i1 %19, label LBL_2, label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge23.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder label LBL_5, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | ff_framequeue_take_16226 | ff_framequeue_take | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %1 to i32
%5 = and i64 %1, 4294967295
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC(i64 %2, i64 0)
%8 = add i32 %4, -1
store i32 %8, i32* %arg1, align 4
%9 = add i64 %2, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = add i32 %11, 1
store i32 %12, i32* %10, align 4
%13 = add i64 %2, 8
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = add i32 %15, -1
%17 = and i32 %16, %12
store i32 %17, i32* %10, align 4
%18 = add i64 %2, 12
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i32 %20, 1
store i32 %21, i32* %19, align 4
%22 = add i64 %2, 16
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = inttoptr i64 %7 to i64*
%26 = load i64, i64* %25, align 8
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = add i32 %28, %24
store i32 %29, i32* %23, align 4
%30 = call i64 @FUNC(i64 %2)
%31 = load i64, i64* %25, align 8
ret i64 %31
uselistorder i64 %1, { 1, 0 }
uselistorder i64 (i64)* @check_consistency, { 1, 0 }
} | 1 |
BinRealVul | meta_set_12460 | meta_set | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i8* %arg6) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i64
%0 = icmp ult i64 %arg5, %arg4
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_14
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %arg2 to i32
%5 = call i64 @FUNC(i64 %2, i32 %4, i64 %3, i64 %arg4)
%6 = icmp eq i64 %5, 0
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = inttoptr i64 %5 to i64*
%8 = load i64, i64* %7, align 8
store i64 %8, i64* %storemerge5.reg2mem
br label LBL_4
LBL_3:
%9 = call i64* @calloc(i32 1, i32 24)
%10 = ptrtoint i64* %9 to i64
store i64 %10, i64* %storemerge5.reg2mem
br label LBL_4
LBL_4:
%storemerge5.reload = load i64, i64* %storemerge5.reg2mem
%11 = icmp eq i64 %storemerge5.reload, 0
%12 = icmp eq i1 %11, false
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_5, label LBL_14
LBL_5:
%13 = inttoptr i64 %storemerge5.reload to i32*
store i32 %4, i32* %13, align 4
%14 = trunc i64 %arg3 to i32
%15 = add i64 %storemerge5.reload, 4
%16 = inttoptr i64 %15 to i32*
store i32 %14, i32* %16, align 4
%17 = add i64 %storemerge5.reload, 8
%18 = inttoptr i64 %17 to i64*
store i64 %3, i64* %18, align 8
%19 = add i64 %storemerge5.reload, 16
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = inttoptr i64 %21 to i64*
call void @free(i64* %22)
%23 = icmp eq i8* %arg6, null
br i1 %23, label LBL_6, label LBL_7
LBL_6:
store i64 0, i64* %20, align 8
br label LBL_10
LBL_7:
%24 = call i8* @strdup(i8* nonnull %arg6)
%25 = ptrtoint i8* %24 to i64
store i64 %25, i64* %20, align 8
%26 = icmp eq i8* %24, null
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_10, label LBL_8
LBL_8:
%28 = icmp eq i1 %6, false
store i64 0, i64* %rax.0.reg2mem
br i1 %28, label LBL_14, label LBL_9
LBL_9:
%29 = inttoptr i64 %storemerge5.reload to i64*
call void @free(i64* %29)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_10:
%30 = icmp eq i1 %6, false
br i1 %30, label LBL_12, label LBL_11
LBL_11:
%31 = add i64 %2, 8
%32 = call i64 @FUNC(i64 %31, i64 %arg4, i64 %arg5, i64 %storemerge5.reload)
store i64 1, i64* %rax.0.reg2mem
br label LBL_14
LBL_12:
%33 = add i64 %5, 8
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = icmp eq i64 %35, %arg5
store i64 1, i64* %rax.0.reg2mem
br i1 %36, label LBL_14, label LBL_13
LBL_13:
%37 = add i64 %2, 8
%38 = call i64 @FUNC(i64 %37, i64 %5, i64 %arg4, i64 %arg5)
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 i64* %20, { 1, 0, 2 }
uselistorder i64 %storemerge5.reload, { 5, 6, 4, 3, 2, 1, 0 }
uselistorder i1 %6, { 1, 0, 2 }
uselistorder i64 %5, { 1, 0, 2, 3 }
uselistorder i64 %2, { 1, 0, 3, 2 }
uselistorder i64* %storemerge5.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1, 5, 4, 6, 7 }
uselistorder i64 1, { 2, 1, 0 }
uselistorder void (i64*)* @free, { 1, 0 }
uselistorder i8* %arg6, { 1, 0 }
uselistorder i64 %arg5, { 2, 0, 1, 3 }
uselistorder i64 %arg4, { 1, 0, 2, 3 }
uselistorder label LBL_14, { 2, 1, 0, 4, 3, 5, 6 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | b43legacy_remove_17584 | b43legacy_remove | 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 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %2)
%4 = add i64 %1, 32
%5 = call i64 @FUNC(i64 %4)
%6 = icmp eq i64 %1, 0
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%9 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_1 to i64*), i32 1, i32 26, %_IO_FILE* %8)
br label LBL_2
LBL_2:
%10 = inttoptr i64 %1 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp eq i64 %2, %11
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = add i64 %1, 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16)
br label LBL_4
LBL_4:
%18 = call i64 @FUNC(i64 %0)
%19 = add i64 %1, 16
%20 = call i64 @FUNC(i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
store i64 %20, i64* %rax.0.reg2mem
br i1 %22, label LBL_6, label LBL_5
LBL_5:
%23 = call i64 @FUNC(i64 %0, i64 %1)
store i64 %23, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 0, 1, 3, 2, 5, 4 }
uselistorder i64 (i64)* @cancel_work_sync, { 1, 0 }
} | 1 |
BinRealVul | decode_0_7423 | decode_0 | define i64 @FUNC(i64* %arg1, i64* %arg2, i8 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.343.reg2mem = alloca i8
%sv_1.244.reg2mem = alloca i32
%sv_2.345.reg2mem = alloca i32
%sv_3.546.reg2mem = alloca i64
%.reg2mem117 = alloca i32
%.reg2mem115 = alloca i32
%sv_3.4.lcssa.reg2mem = alloca i64
%sv_1.1.lcssa.reg2mem = alloca i32
%sv_0.2.lcssa.reg2mem = alloca i8
%.reg2mem113 = alloca i32
%.reg2mem111 = alloca i32
%sv_0.1.ph.lcssa.reg2mem = alloca i8
%sv_4.4.reg2mem = alloca i32
%sv_4.3.reg2mem = alloca i32
%sv_0.1.ph30.reg2mem = alloca i8
%sv_5.0.ph31.reg2mem = alloca i32
%.reg2mem109 = alloca i32
%sv_4.2.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i8
%sv_4.1.reg2mem = alloca i32
%sv_5.028.reg2mem = alloca i32
%.reg2mem = alloca i32
%sv_0.233.reg2mem = alloca i8
%sv_1.134.reg2mem = alloca i32
%sv_3.435.reg2mem = alloca i64
%sv_6.038.reg2mem = alloca i32
%sv_3.3.reg2mem = alloca i64
%sv_3.2.reg2mem = alloca i64
%sv_2.2.reg2mem = alloca i32
%rdi.0.reg2mem = alloca i64
%sv_2.1.reg2mem = alloca i32
%.pre-phi68.reg2mem = alloca i32*
%.pre-phi72.reg2mem = alloca i32*
%.pre-phi.reg2mem = alloca i64
%sv_4.0.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_7 = alloca i64, align 8
%sv_8 = alloca i64, align 8
%1 = add i64 %0, 28
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_0.LBL_12_crit_edge, label LBL_2
LBL_1:
%.pre65 = add i64 %0, 24
%.pre67 = inttoptr i64 %.pre65 to i32*
%.pre69 = add i64 %0, 12
%.pre71 = inttoptr i64 %.pre69 to i32*
store i32* %.pre71, i32** %.pre-phi72.reg2mem
store i32* %.pre67, i32** %.pre-phi68.reg2mem
store i32 0, i32* %sv_2.1.reg2mem
store i64 %1, i64* %rdi.0.reg2mem
br label LBL_12
LBL_2:
%5 = and i8 %arg3, 16
%6 = icmp eq i8 %5, 0
br i1 %6, label LBL_5, label LBL_3
LBL_3:
%7 = call i64 @FUNC(i64 %1)
%8 = trunc i64 %7 to i32
%9 = urem i32 %8, 4
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%11 = sub nsw i32 4, %9
%12 = zext i32 %11 to i64
%13 = call i64 @FUNC(i64 %1, i64 %12)
br label LBL_5
LBL_5:
%14 = add i64 %0, 12
%15 = inttoptr i64 %14 to i32*
%16 = add i64 %0, 24
%17 = inttoptr i64 %16 to i32*
store i32 %3, i32* %sv_2.0.reg2mem
br label LBL_6
LBL_6:
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%18 = call i64 @FUNC(i64 %1)
%19 = trunc i64 %18 to i32
%20 = ashr i32 %19, 14
%21 = mul i32 %19, 2
%22 = and i32 %21, 254
%23 = udiv i64 %18, 64
%24 = sext i32 %20 to i64
%25 = mul i64 %24, 8
%26 = add i64 %25, %1
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = zext i32 %22 to i64
%30 = load i32, i32* %15, align 4
%31 = trunc i64 %23 to i32
%32 = and i32 %31, 254
%33 = mul i32 %32, %30
%34 = sext i32 %33 to i64
%35 = add i64 %28, %29
%36 = add i64 %35, %34
%37 = load i32, i32* %17, align 4
%38 = sext i32 %37 to i64
%39 = add i64 %28, %38
%40 = mul i32 %22, 2
%41 = and i32 %40, 252
%42 = call i64 @FUNC(i64 %1)
%43 = trunc i64 %42 to i32
%44 = add i32 %41, %43
store i64 %36, i64* %sv_3.0.reg2mem
store i32 %41, i32* %sv_4.0.reg2mem
br label LBL_7
LBL_7:
%sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem
%45 = load i32, i32* %15, align 4
%46 = mul i32 %45, 3
%47 = sext i32 %46 to i64
%48 = add i64 %sv_3.0.reload, 4
%49 = add i64 %48, %47
%50 = icmp ult i64 %39, %49
%51 = icmp eq i1 %50, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %51, label LBL_8, label LBL_37
LBL_8:
%sv_4.0.reload = load i32, i32* %sv_4.0.reg2mem
%52 = add nuw i32 %sv_4.0.reload, 1
%53 = call i64 @FUNC(i64 %0, i64 %sv_3.0.reload, i32 %45)
%54 = urem i32 %52, 64
%55 = icmp eq i32 %54, 0
%56 = icmp eq i1 %55, false
store i64 %48, i64* %.pre-phi.reg2mem
br i1 %56, label LBL_10, label LBL_9
LBL_9:
%57 = load i32, i32* %15, align 4
%58 = mul i32 %57, 3
%59 = sext i32 %58 to i64
%.pre64 = add i64 %48, %59
store i64 %.pre64, i64* %.pre-phi.reg2mem
br label LBL_10
LBL_10:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%60 = icmp ult i32 %52, %44
store i64 %.pre-phi.reload, i64* %sv_3.0.reg2mem
store i32 %52, i32* %sv_4.0.reg2mem
br i1 %60, label LBL_7, label LBL_11
LBL_11:
%61 = add i32 %sv_2.0.reload, -1
%62 = icmp eq i32 %61, 0
%63 = icmp eq i1 %62, false
store i32 %61, i32* %sv_2.0.reg2mem
store i32* %15, i32** %.pre-phi72.reg2mem
store i32* %17, i32** %.pre-phi68.reg2mem
store i32 %61, i32* %sv_2.1.reg2mem
store i64 %0, i64* %rdi.0.reg2mem
br i1 %63, label LBL_6, label LBL_12
LBL_12:
%64 = ptrtoint i64* %arg2 to i64
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%sv_2.1.reload = load i32, i32* %sv_2.1.reg2mem
%.pre-phi68.reload = load i32*, i32** %.pre-phi68.reg2mem
%.pre-phi72.reload = load i32*, i32** %.pre-phi72.reg2mem
%65 = add i64 %0, 8
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = sext i32 %67 to i64
%69 = mul i64 %68, 8
%70 = add i64 %69, %rdi.0.reload
%71 = inttoptr i64 %70 to i64*
%72 = load i64, i64* %71, align 8
%73 = load i32, i32* %.pre-phi68.reload, align 4
%74 = sext i32 %73 to i64
%75 = add i64 %72, %74
%76 = add i64 %0, 20
%77 = inttoptr i64 %76 to i32*
store i32 %sv_2.1.reload, i32* %sv_2.2.reg2mem
store i64 %72, i64* %sv_3.2.reg2mem
br label LBL_13
LBL_13:
%78 = call i64 @FUNC(i64 %0, i64* nonnull %sv_7, i64* nonnull %sv_8)
%79 = load i64, i64* %sv_7, align 8
%80 = load i32, i32* %.pre-phi72.reload, align 4
%81 = mul i32 %80, 3
%82 = sext i32 %81 to i64
%83 = add nsw i64 %82, 4
%84 = add i64 %83, %79
%85 = load i64, i64* %sv_8, align 8
%86 = icmp ugt i64 %84, %85
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %86, label LBL_37, label LBL_14
LBL_14:
%sv_3.2.reload = load i64, i64* %sv_3.2.reg2mem
%87 = add i64 %83, %sv_3.2.reload
%88 = icmp ult i64 %75, %87
%89 = icmp eq i1 %88, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %89, label LBL_15, label LBL_37
LBL_15:
%sv_2.2.reload = load i32, i32* %sv_2.2.reg2mem
%90 = call i64 @FUNC(i64 %sv_3.2.reload, i64 %79, i32 %80, i32 %80, i64 4)
%91 = add i32 %sv_2.2.reload, 1
%92 = urem i32 %91, 64
%93 = icmp eq i32 %92, 0
%94 = icmp eq i1 %93, false
store i64 %sv_3.2.reload, i64* %sv_3.3.reg2mem
br i1 %94, label LBL_17, label LBL_16
LBL_16:
%95 = load i32, i32* %.pre-phi72.reload, align 4
%96 = mul i32 %95, 3
%97 = sext i32 %96 to i64
%98 = add i64 %sv_3.2.reload, %97
store i64 %98, i64* %sv_3.3.reg2mem
br label LBL_17
LBL_17:
%sv_3.3.reload = load i64, i64* %sv_3.3.reg2mem
%99 = add i64 %sv_3.3.reload, 4
%100 = load i32, i32* %77, align 4
%101 = sdiv i32 %100, 32768
%102 = zext i32 %101 to i64
%103 = sext i32 %91 to i64
%104 = icmp slt i64 %103, %102
store i32 %91, i32* %sv_2.2.reg2mem
store i64 %99, i64* %sv_3.2.reg2mem
br i1 %104, label LBL_13, label LBL_18
LBL_18:
%105 = call i64 @FUNC(i64 %1)
%106 = trunc i64 %105 to i32
%107 = call i64 @FUNC(i64 %1, i64 2)
%108 = call i64 @FUNC(i64 %1)
%109 = trunc i64 %108 to i32
%110 = icmp ugt i32 %106, %109
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %110, label LBL_37, label LBL_19
LBL_19:
%111 = call i64 @FUNC(i64 %1)
%112 = and i64 %105, 4294967295
%113 = call i64 @FUNC(i64 %1, i64 %112)
%114 = add i64 %0, 16
%115 = inttoptr i64 %114 to i32*
%116 = load i32, i32* %115, align 4
%117 = icmp eq i32 %116, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %117, label LBL_37, label LBL_20
LBL_20:
%sext = mul i64 %111, 4294967296
%118 = ashr exact i64 %sext, 32
%119 = add i64 %118, %64
%120 = load i32, i32* %66, align 4
%121 = sext i32 %120 to i64
%122 = mul i64 %121, 8
%123 = add i64 %122, %1
%124 = inttoptr i64 %123 to i64*
%125 = load i64, i64* %124, align 8
%.pre = load i32, i32* %.pre-phi72.reload, align 4
store i32 %116, i32* %.reg2mem115
store i32 %.pre, i32* %.reg2mem117
store i64 %125, i64* %sv_3.546.reg2mem
store i32 0, i32* %sv_2.345.reg2mem
store i32 0, i32* %sv_1.244.reg2mem
store i8 0, i8* %sv_0.343.reg2mem
br label LBL_36
LBL_21:
%sv_1.134.reload = load i32, i32* %sv_1.134.reg2mem
%126 = icmp ugt i32 %sv_1.134.reload, %106
%127 = icmp eq i1 %126, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %127, label LBL_22, label LBL_37
LBL_22:
%sv_0.233.reload = load i8, i8* %sv_0.233.reg2mem
%sv_3.435.reload = load i64, i64* %sv_3.435.reg2mem
%sv_6.038.reload = load i32, i32* %sv_6.038.reg2mem
%128 = and i32 %sv_6.038.reload, 4
%129 = icmp eq i32 %128, 0
%130 = sext i32 %sv_1.134.reload to i64
%131 = add i64 %119, %130
%132 = inttoptr i64 %131 to i8*
%133 = load i8, i8* %132, align 1
%134 = urem i8 %133, 16
%135 = udiv i8 %133, 16
%sv_9.0.ph.in = select i1 %129, i8 %135, i8 %134
%136 = mul i8 %sv_9.0.ph.in, 16
%137 = zext i8 %136 to i64
%138 = mul i64 %137, 4
%139 = add i64 %138, ptrtoint (i32** @gv_0 to i64)
%140 = inttoptr i64 %139 to i32*
%141 = load i32, i32* %140, align 8
%142 = icmp eq i32 %141, 0
%143 = icmp eq i1 %142, false
store i32 %141, i32* %.reg2mem109
store i32 0, i32* %sv_5.0.ph31.reg2mem
store i8 %sv_0.233.reload, i8* %sv_0.1.ph30.reg2mem
store i8 %sv_0.233.reload, i8* %sv_0.1.ph.lcssa.reg2mem
br i1 %143, label LBL_23.lr.ph, label LBL_33
LBL_23:
%sv_5.028.reload = load i32, i32* %sv_5.028.reg2mem
%.reload = load i32, i32* %.reg2mem
%144 = load i32, i32* %.pre-phi72.reload, align 4
%145 = mul i32 %144, 2
%146 = add i32 %sv_5.028.reload, 1
%147 = urem i32 %.reload, 256
%148 = zext i32 %147 to i64
store i64 %148, i64* @0, align 8
%trunc = trunc i32 %.reload to i8
store i32 %145, i32* %sv_4.1.reg2mem
store i8 %sv_0.1.ph30.reload, i8* %sv_0.0.reg2mem
store i32 %145, i32* %sv_4.2.reg2mem
store i32 %145, i32* %sv_4.3.reg2mem
store i32 %145, i32* %sv_4.4.reg2mem
switch i8 %trunc, label LBL_24 [
i8 2, label LBL_25
i8 3, label LBL_26
i8 4, label LBL_27
i8 5, label LBL_29
i8 6, label LBL_30
i8 7, label LBL_31
]
LBL_24:
%149 = sext i32 %146 to i64
%150 = add nsw i64 %149, %137
%151 = mul i64 %150, 4
%152 = add i64 %151, ptrtoint (i32** @gv_0 to i64)
%153 = inttoptr i64 %152 to i32*
%154 = load i32, i32* %153, align 4
%155 = icmp eq i32 %154, 0
%156 = icmp eq i1 %155, false
store i32 %154, i32* %.reg2mem
store i32 %146, i32* %sv_5.028.reg2mem
store i8 %sv_0.1.ph30.reload, i8* %sv_0.1.ph.lcssa.reg2mem
br i1 %156, label LBL_23, label LBL_33
LBL_25:
store i32 0, i32* %sv_4.1.reg2mem
br label LBL_26
LBL_26:
%sv_4.1.reload = load i32, i32* %sv_4.1.reg2mem
%157 = call i64 @FUNC(i64 %1)
%158 = trunc i64 %157 to i8
store i8 %158, i8* %sv_0.0.reg2mem
store i32 %sv_4.1.reload, i32* %sv_4.2.reg2mem
br label LBL_27
LBL_27:
%sv_4.2.reload = load i32, i32* %sv_4.2.reg2mem
%sv_0.0.reload = load i8, i8* %sv_0.0.reg2mem
%159 = call i64 @FUNC(i64 %1)
%160 = trunc i64 %159 to i8
%161 = load i32, i32* %.pre-phi72.reload, align 4
%162 = zext i32 %sv_4.2.reload to i64
%163 = add i64 %sv_3.435.reload, %162
%164 = zext i32 %161 to i64
%165 = call i64 @FUNC(i64 %163, i64 %164, i8 %160, i8 %sv_0.0.reload)
%166 = sext i32 %146 to i64
%167 = add nsw i64 %166, %137
%168 = mul i64 %167, 4
%169 = add i64 %168, ptrtoint (i32** @gv_0 to i64)
%170 = inttoptr i64 %169 to i32*
%171 = load i32, i32* %170, align 4
%172 = icmp eq i32 %171, 0
%173 = icmp eq i1 %172, false
store i32 %171, i32* %.reg2mem109
store i32 %146, i32* %sv_5.0.ph31.reg2mem
store i8 %sv_0.0.reload, i8* %sv_0.1.ph30.reg2mem
store i8 %sv_0.0.reload, i8* %sv_0.1.ph.lcssa.reg2mem
br i1 %173, label LBL_23.lr.ph, label LBL_33
LBL_28:
%sv_0.1.ph30.reload = load i8, i8* %sv_0.1.ph30.reg2mem
%sv_5.0.ph31.reload = load i32, i32* %sv_5.0.ph31.reg2mem
%.reload110 = load i32, i32* %.reg2mem109
store i32 %.reload110, i32* %.reg2mem
store i32 %sv_5.0.ph31.reload, i32* %sv_5.028.reg2mem
br label LBL_23
LBL_29:
store i32 0, i32* %sv_4.3.reg2mem
br label LBL_30
LBL_30:
%sv_4.3.reload = load i32, i32* %sv_4.3.reg2mem
%174 = call i64 @FUNC(i64 %0, i64* nonnull %sv_7, i64* nonnull %sv_8)
store i32 %sv_4.3.reload, i32* %sv_4.4.reg2mem
br label LBL_31
LBL_31:
%sv_4.4.reload = load i32, i32* %sv_4.4.reg2mem
%175 = load i64, i64* %sv_7, align 8
%176 = zext i32 %sv_4.4.reload to i64
%177 = load i32, i32* %.pre-phi72.reload, align 4
%178 = sext i32 %177 to i64
%179 = add nuw nsw i64 %176, 4
%180 = add i64 %179, %175
%181 = add i64 %180, %178
%182 = load i64, i64* %sv_8, align 8
%183 = icmp ugt i64 %181, %182
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %183, label LBL_37, label LBL_32
LBL_32:
%184 = call i64 @FUNC(i64 %1)
%185 = trunc i64 %184 to i8
%186 = load i64, i64* %sv_7, align 8
%187 = add i64 %186, %176
%188 = load i32, i32* %.pre-phi72.reload, align 4
%189 = add i64 %sv_3.435.reload, %176
%190 = zext i32 %188 to i64
%191 = call i64 @FUNC(i64 %189, i64 %190, i8 %185, i64 %187)
br label LBL_24
LBL_33:
%not. = icmp ne i1 %129, true
%192 = zext i1 %not. to i32
%sv_1.0.ph = add i32 %sv_1.134.reload, %192
%sv_0.1.ph.lcssa.reload = load i8, i8* %sv_0.1.ph.lcssa.reg2mem
%193 = add i32 %sv_6.038.reload, 4
%194 = add i64 %sv_3.435.reload, 4
%195 = load i32, i32* %.pre-phi72.reload, align 4
%196 = zext i32 %195 to i64
%197 = sext i32 %193 to i64
%198 = icmp slt i64 %197, %196
store i32 %193, i32* %sv_6.038.reg2mem
store i64 %194, i64* %sv_3.435.reg2mem
store i32 %sv_1.0.ph, i32* %sv_1.134.reg2mem
store i8 %sv_0.1.ph.lcssa.reload, i8* %sv_0.233.reg2mem
br i1 %198, label LBL_21, label LBL_34
LBL_34:
%.pre63 = load i32, i32* %115, align 4
store i32 %.pre63, i32* %.reg2mem111
store i32 %195, i32* %.reg2mem113
store i8 %sv_0.1.ph.lcssa.reload, i8* %sv_0.2.lcssa.reg2mem
store i32 %sv_1.0.ph, i32* %sv_1.1.lcssa.reg2mem
store i64 %194, i64* %sv_3.4.lcssa.reg2mem
br label LBL_35
LBL_35:
%sv_3.4.lcssa.reload = load i64, i64* %sv_3.4.lcssa.reg2mem
%sv_1.1.lcssa.reload = load i32, i32* %sv_1.1.lcssa.reg2mem
%sv_0.2.lcssa.reload = load i8, i8* %sv_0.2.lcssa.reg2mem
%.reload114 = load i32, i32* %.reg2mem113
%.reload112 = load i32, i32* %.reg2mem111
%199 = add i32 %sv_2.345.reload, 4
%200 = mul i32 %.reload114, 3
%201 = sext i32 %200 to i64
%202 = add i64 %sv_3.4.lcssa.reload, %201
%203 = zext i32 %.reload112 to i64
%204 = sext i32 %199 to i64
%205 = icmp slt i64 %204, %203
store i32 %.reload112, i32* %.reg2mem115
store i32 %.reload114, i32* %.reg2mem117
store i64 %202, i64* %sv_3.546.reg2mem
store i32 %199, i32* %sv_2.345.reg2mem
store i32 %sv_1.1.lcssa.reload, i32* %sv_1.244.reg2mem
store i8 %sv_0.2.lcssa.reload, i8* %sv_0.343.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %205, label LBL_36, label LBL_37
LBL_36:
%sv_0.343.reload = load i8, i8* %sv_0.343.reg2mem
%sv_1.244.reload = load i32, i32* %sv_1.244.reg2mem
%sv_2.345.reload = load i32, i32* %sv_2.345.reg2mem
%sv_3.546.reload = load i64, i64* %sv_3.546.reg2mem
%.reload118 = load i32, i32* %.reg2mem117
%.reload116 = load i32, i32* %.reg2mem115
%206 = icmp eq i32 %.reload118, 0
store i32 0, i32* %sv_6.038.reg2mem
store i64 %sv_3.546.reload, i64* %sv_3.435.reg2mem
store i32 %sv_1.244.reload, i32* %sv_1.134.reg2mem
store i8 %sv_0.343.reload, i8* %sv_0.233.reg2mem
store i32 %.reload116, i32* %.reg2mem111
store i32 0, i32* %.reg2mem113
store i8 %sv_0.343.reload, i8* %sv_0.2.lcssa.reg2mem
store i32 %sv_1.244.reload, i32* %sv_1.1.lcssa.reg2mem
store i64 %sv_3.546.reload, i64* %sv_3.4.lcssa.reg2mem
br i1 %206, label LBL_35, label LBL_21
LBL_37:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_3.546.reload, { 1, 0 }
uselistorder i32 %sv_1.244.reload, { 1, 0 }
uselistorder i8 %sv_0.343.reload, { 1, 0 }
uselistorder i8 %sv_0.1.ph30.reload, { 1, 0 }
uselistorder i32 %146, { 0, 2, 1, 3 }
uselistorder i64 %137, { 2, 1, 0 }
uselistorder i32 %sv_1.134.reload, { 2, 1, 0 }
uselistorder i32 %91, { 0, 2, 1 }
uselistorder i64 %sv_3.2.reload, { 3, 0, 1, 2 }
uselistorder i32 %80, { 1, 0, 2 }
uselistorder i64 %79, { 1, 0 }
uselistorder i32* %.pre-phi72.reload, { 1, 5, 4, 3, 2, 0, 6, 7 }
uselistorder i32 %52, { 0, 2, 1 }
uselistorder i64 %48, { 1, 0, 2 }
uselistorder i32 %9, { 1, 0 }
uselistorder i64 %1, { 7, 8, 9, 1, 10, 11, 12, 13, 14, 5, 2, 6, 3, 4, 0, 15 }
uselistorder i64* %sv_8, { 2, 0, 3, 1 }
uselistorder i64* %sv_7, { 2, 3, 0, 4, 1 }
uselistorder i64 %0, { 6, 7, 9, 8, 10, 0, 3, 4, 5, 1, 2, 11 }
uselistorder i32* %sv_2.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_3.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_4.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_2.2.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.2.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_6.038.reg2mem, { 1, 2, 0 }
uselistorder i64* %sv_3.435.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_1.134.reg2mem, { 1, 2, 0 }
uselistorder i8* %sv_0.233.reg2mem, { 1, 2, 0 }
uselistorder i32* %.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_5.028.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_4.1.reg2mem, { 0, 2, 1 }
uselistorder i8* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_4.2.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem109, { 0, 2, 1 }
uselistorder i32* %sv_5.0.ph31.reg2mem, { 0, 2, 1 }
uselistorder i8* %sv_0.1.ph30.reg2mem, { 0, 2, 1 }
uselistorder i32* %.reg2mem111, { 1, 0, 2 }
uselistorder i32* %.reg2mem113, { 1, 0, 2 }
uselistorder i8* %sv_0.2.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.1.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_3.4.lcssa.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 6, 5, 7, 8, 2, 3, 1 }
uselistorder i64 ptrtoint (i32** @gv_0 to i64), { 1, 2, 0 }
uselistorder i64 (i64, i64*, i64*)* @set_src_position, { 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3, 4, 5, 6, 7, 8 }
uselistorder i64 4, { 5, 3, 0, 1, 2, 6, 4, 7, 8 }
uselistorder i64 (i64)* @bytestream2_get_le16, { 1, 0 }
uselistorder i64 8, { 0, 1, 3, 2 }
uselistorder i32 254, { 1, 0 }
uselistorder i64 (i64, i64)* @bytestream2_skip, { 1, 0 }
uselistorder i32 4, { 4, 2, 3, 1, 0 }
uselistorder i64 (i64)* @bytestream2_tell, { 1, 0 }
uselistorder i64 12, { 1, 0 }
uselistorder i64 24, { 1, 0 }
uselistorder i32 0, { 2, 6, 8, 3, 11, 5, 12, 4, 10, 13, 0, 1, 9, 14, 15, 16, 17, 7, 18 }
uselistorder i64 (i64)* @bytestream2_get_byte, { 3, 2, 1, 0 }
uselistorder label LBL_37, { 3, 5, 4, 6, 7, 1, 2, 0 }
uselistorder label LBL_36, { 1, 0 }
uselistorder label LBL_23.lr.ph, { 1, 0 }
uselistorder label LBL_27, { 1, 0 }
uselistorder label LBL_26, { 1, 0 }
uselistorder label LBL_24, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 2, 1, 0 }
} | 1 |
BinRealVul | test_smram_lock_14438 | test_smram_lock | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 0)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
%3 = zext i1 %2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %0, i64 0)
%6 = icmp eq i64 %5, 0
%7 = icmp eq i1 %6, false
%8 = zext i1 %7 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = call i64 @FUNC(i64 %5, i64 0, i64 0)
%11 = call i64 @FUNC(i64 %5, i64 0)
%12 = urem i64 %11, 256
%13 = xor i64 %12, 1
%14 = call i64 @FUNC(i64 %13)
%15 = call i64 @FUNC(i64 %5, i64 0, i64 1)
%16 = call i64 @FUNC(i64 %5, i64 0)
%17 = urem i64 %16, 256
%18 = call i64 @FUNC(i64 %17)
%19 = call i64 @FUNC(i64 %5, i64 1, i64 1)
%20 = call i64 @FUNC(i64 %5, i64 0)
%21 = urem i64 %20, 256
%22 = xor i64 %21, 1
%23 = call i64 @FUNC(i64 %22)
%24 = call i64 @FUNC(i64 %5, i64 0, i64 1)
%25 = call i64 @FUNC(i64 %5, i64 0)
%26 = urem i64 %25, 256
%27 = xor i64 %26, 1
%28 = call i64 @FUNC(i64 %27)
%29 = call i64 @FUNC(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_0, i64 0, i64 0))
%30 = call i64 @FUNC(i64 %29)
%31 = call i64 @FUNC(i64 %29, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0))
%32 = urem i64 %31, 256
%33 = xor i64 %32, 1
%34 = call i64 @FUNC(i64 %33)
%35 = call i64 @FUNC(i64 %29)
%36 = call i64 @FUNC(i64 %5, i64 0, i64 0)
%37 = call i64 @FUNC(i64 %5, i64 0)
%38 = urem i64 %37, 256
%39 = xor i64 %38, 1
%40 = call i64 @FUNC(i64 %39)
%41 = call i64 @FUNC(i64 %5, i64 0, i64 1)
%42 = call i64 @FUNC(i64 %5, i64 0)
%43 = urem i64 %42, 256
%44 = call i64 @FUNC(i64 %43)
ret i64 %44
uselistorder i64 (i64, i64)* @smram_test_bit, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @smram_set_bit, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @g_assert, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | raptor_new_term_from_blank_18818 | raptor_new_term_from_blank | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64 %arg2, 0
%1 = icmp eq i64* %arg1, null
%2 = or i1 %1, %0
%3 = icmp eq i1 %2, false
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_5
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = inttoptr i64 %arg2 to i8*
%7 = call i32 @strlen(i8* %6)
%8 = add i32 %7, 1
%9 = call i64* @malloc(i32 %8)
%10 = icmp eq i64* %9, null
%11 = icmp eq i1 %10, false
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_2, label LBL_5
LBL_2:
%12 = inttoptr i64 %arg2 to i64*
%13 = call i64* @memcpy(i64* %9, i64* %12, i32 %8)
%14 = call i64* @calloc(i32 1, i32 32)
%15 = icmp eq i64* %14, null
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_4, label LBL_3
LBL_3:
call void @free(i64* %9)
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%17 = ptrtoint i64* %9 to i64
%18 = bitcast i64* %14 to i32*
store i32 1, i32* %18, align 4
%19 = ptrtoint i64* %14 to i64
%20 = add i64 %19, 8
%21 = inttoptr i64 %20 to i64*
store i64 %4, i64* %21, align 8
%22 = add i64 %19, 16
%23 = inttoptr i64 %22 to i32*
store i32 1, i32* %23, align 4
%24 = add i64 %19, 24
%25 = inttoptr i64 %24 to i64*
store i64 %17, i64* %25, align 8
store i64 %19, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %14, { 0, 2, 1 }
uselistorder i64* %9, { 3, 0, 1, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i64* null, { 1, 2, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_5, { 2, 3, 0, 1 }
} | 1 |
BinRealVul | ff_vaapi_render_picture_2181 | ff_vaapi_render_picture | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%1 = add i64 %0, 16
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_9
LBL_1:
%6 = ptrtoint i64* %sv_2 to i64
%7 = zext i32 %3 to i64
%8 = call i64 @FUNC(i64 %0, i64 %7)
%9 = load i32, i32* %2, align 4
%10 = add i64 %6, -16
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 8
%12 = add i64 %0, 20
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
store i32 1, i32* %sv_0.0.reg2mem
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = zext i32 %14 to i64
%17 = call i64 @FUNC(i64 %0, i64 %16)
%18 = load i32, i32* %13, align 4
%19 = add i64 %6, -12
%20 = inttoptr i64 %19 to i32*
store i32 %18, i32* %20, align 4
store i32 2, i32* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%21 = add i64 %0, 24
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = icmp eq i32 %23, 0
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %24, label LBL_5, label LBL_4
LBL_4:
%25 = zext i32 %23 to i64
%26 = call i64 @FUNC(i64 %0, i64 %25)
%27 = add nuw nsw i32 %sv_0.0.reload, 1
%28 = load i32, i32* %22, align 4
%29 = mul i32 %sv_0.0.reload, 4
%30 = zext i32 %29 to i64
%31 = add i64 %10, %30
%32 = inttoptr i64 %31 to i32*
store i32 %28, i32* %32, align 4
store i32 %27, i32* %sv_0.1.reg2mem
br label LBL_5
LBL_5:
%33 = add i64 %0, 8
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = trunc i64 %arg2 to i32
%37 = call i64 @FUNC(i64 %0, i64 %35, i32 %36)
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %39, label LBL_6, label LBL_9
LBL_6:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%40 = load i64, i64* %34, align 8
%41 = call i64 @FUNC(i64 %0, i64 %40, i64* nonnull %sv_1, i32 %sv_0.1.reload)
%42 = trunc i64 %41 to i32
%43 = icmp eq i32 %42, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %43, label LBL_7, label LBL_9
LBL_7:
%44 = add i64 %0, 40
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = add i64 %0, 32
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = load i64, i64* %34, align 8
%51 = inttoptr i64 %49 to i64*
%52 = call i64 @FUNC(i64 %0, i64 %50, i64* %51, i32 %46)
%53 = trunc i64 %52 to i32
%54 = icmp eq i32 %53, 0
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %54, label LBL_8, label LBL_9
LBL_8:
%55 = load i64, i64* %34, align 8
%56 = call i64 @FUNC(i64 %0, i64 %55)
%57 = trunc i64 %56 to i32
%58 = icmp eq i32 %57, 0
%. = select i1 %58, 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 i32 %sv_0.0.reload, { 2, 1, 0 }
uselistorder i64 %0, { 2, 3, 5, 4, 6, 7, 8, 1, 9, 0, 10, 11, 12 }
uselistorder i64 (i64, i64, i64*, i32)* @vaRenderPicture, { 1, 0 }
uselistorder i64 (i64, i64)* @vaUnmapBuffer, { 2, 1, 0 }
} | 0 |
BinRealVul | bit_prop_set_15986 | bit_prop_set | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = trunc i64 %arg3 to i8
%3 = call i64 @FUNC(i64 %1, i64 %0)
%4 = inttoptr i64 %3 to i32*
%5 = call i64 @FUNC(i64 %0)
%6 = trunc i64 %5 to i32
%7 = icmp eq i8 %2, 0
%8 = load i32, i32* %4, align 4
%9 = sub i32 0, %6
%10 = sub i32 %9, 1
%11 = or i32 %8, %10
%12 = and i32 %8, %10
%storemerge = select i1 %7, i32 %12, i32 %11
store i32 %storemerge, i32* %4, align 4
ret i64 %3
uselistorder i32 %8, { 1, 0 }
uselistorder i8 0, { 1, 0 }
} | 1 |
BinRealVul | kvm_put_vcpu_events_3378 | kvm_put_vcpu_events | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%sv_0 = alloca i32, align 4
%2 = call i64 @FUNC()
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %storemerge.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%6 = trunc i64 %1 to i32
%7 = ptrtoint i64* %arg1 to i64
%8 = icmp sgt i32 %6, -1
%9 = zext i1 %8 to i32
store i32 %9, i32* %sv_0, align 4
%10 = call i64 @FUNC(i64 %7, i64 3, i32* nonnull %sv_0)
store i64 %10, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | mrb_mod_remove_const_8671 | mrb_mod_remove_const | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0 = alloca i32, align 4
%0 = bitcast i32* %sv_0 to i64*
%1 = call i64 @FUNC(i64 %arg1, i64* nonnull @gv_0, i64* nonnull %0)
%2 = load i32, i32* %sv_0, align 4
%3 = zext i32 %2 to i64
%4 = call i64 @FUNC(i64 %arg1, i64 %3)
%5 = load i32, i32* %sv_0, align 4
%6 = zext i32 %5 to i64
%7 = and i64 %arg2, 4294967295
%8 = call i64 @FUNC(i64 %arg1, i64 %7, i64 %6)
%9 = and i64 %8, 4294967295
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = load i32, i32* %sv_0, align 4
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %arg1, i64 %14)
%16 = load i32, i32* %sv_0, align 4
%17 = zext i32 %16 to i64
%18 = and i64 %15, 4294967295
%19 = call i64 @FUNC(i64 %arg1, i64 %17, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0), i64 %18)
br label LBL_2
LBL_2:
ret i64 %9
uselistorder i32* %sv_0, { 3, 2, 1, 0, 4 }
uselistorder i32 1, { 1, 0, 2 }
uselistorder i64 %arg1, { 1, 0, 2, 3, 4 }
} | 0 |
BinRealVul | vp9_rc_init_5151 | vp9_rc_init | define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%indvars.iv.reg2mem = alloca i64
%.pre-phi5.reg2mem = alloca i32*
%rdi = alloca i64, align 8
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = ptrtoint i64* %arg3 to i64
%5 = trunc i64 %arg2 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
%8 = trunc i64 %2 to i32
%.pre7 = ptrtoint i32* %arg1 to i64
br i1 %7, label LBL_3, label LBL_1
LBL_1:
%9 = add i64 %.pre7, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, 1
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = bitcast i64* %arg3 to i32*
store i32 %8, i32* %14, align 4
%15 = add i64 %4, 4
%16 = inttoptr i64 %15 to i32*
store i32 %8, i32* %16, align 4
%.pre = add i64 %.pre7, 4
%.pre4 = inttoptr i64 %.pre to i32*
store i32* %.pre4, i32** %.pre-phi5.reg2mem
br label LBL_4
LBL_3:
%17 = add i64 %.pre7, 4
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = add i32 %19, %8
%21 = icmp slt i32 %20, 0
%22 = zext i1 %21 to i32
%23 = add i32 %20, %22
%24 = ashr i32 %23, 1
%25 = bitcast i64* %arg3 to i32*
store i32 %24, i32* %25, align 4
%26 = load i32, i32* %18, align 4
%27 = add i32 %26, %8
%28 = icmp slt i32 %27, 0
%29 = zext i1 %28 to i32
%30 = add i32 %27, %29
%31 = ashr i32 %30, 1
%32 = add i64 %4, 4
%33 = inttoptr i64 %32 to i32*
store i32 %31, i32* %33, align 4
store i32* %18, i32** %.pre-phi5.reg2mem
br label LBL_4
LBL_4:
%.pre-phi5.reload = load i32*, i32** %.pre-phi5.reg2mem
%.pre-phi6 = bitcast i64* %rdi to i32*
%34 = load i32, i32* %.pre-phi5.reload, align 4
%35 = add i64 %4, 8
%36 = inttoptr i64 %35 to i32*
store i32 %34, i32* %36, align 4
%37 = load i32, i32* %.pre-phi5.reload, align 4
%38 = add i64 %4, 12
%39 = inttoptr i64 %38 to i32*
store i32 %37, i32* %39, align 4
%40 = add i64 %4, 192
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = add i64 %4, 16
%44 = inttoptr i64 %43 to i32*
store i32 %42, i32* %44, align 4
%45 = load i32, i32* %41, align 4
%46 = add i64 %4, 20
%47 = inttoptr i64 %46 to i32*
store i32 %45, i32* %47, align 4
%48 = add i64 %4, 196
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = add i64 %4, 24
%52 = inttoptr i64 %51 to i32*
store i32 %50, i32* %52, align 4
%53 = load i32, i32* %49, align 4
%54 = add i64 %4, 28
%55 = inttoptr i64 %54 to i32*
store i32 %53, i32* %55, align 4
%56 = load i32, i32* %49, align 4
%57 = add i64 %4, 32
%58 = inttoptr i64 %57 to i32*
store i32 %56, i32* %58, align 4
%59 = load i32, i32* %49, align 4
%60 = add i64 %4, 36
%61 = inttoptr i64 %60 to i32*
store i32 %59, i32* %61, align 4
%62 = add i64 %4, 40
%63 = inttoptr i64 %62 to i32*
store i32 0, i32* %63, align 4
%64 = add i64 %4, 44
%65 = inttoptr i64 %64 to i32*
store i32 0, i32* %65, align 4
%66 = add i64 %4, 48
%67 = inttoptr i64 %66 to i32*
store i32 0, i32* %67, align 4
%68 = add i64 %4, 52
%69 = inttoptr i64 %68 to i32*
store i32 7, i32* %69, align 4
%70 = add i64 %4, 56
%71 = inttoptr i64 %70 to i32*
store i32 8, i32* %71, align 4
%72 = add i64 %4, 60
%73 = inttoptr i64 %72 to i32*
store i32 0, i32* %73, align 4
%74 = add i64 %4, 64
%75 = inttoptr i64 %74 to i32*
store i32 0, i32* %75, align 4
%76 = add i64 %4, 68
%77 = inttoptr i64 %76 to i32*
store i32 0, i32* %77, align 4
%78 = add i64 %4, 72
%79 = inttoptr i64 %78 to i32*
store i32 0, i32* %79, align 4
%80 = add i64 %4, 76
%81 = inttoptr i64 %80 to i32*
store i32 0, i32* %81, align 4
%82 = load i32, i32* %.pre-phi6, align 8
%83 = add i64 %4, 80
%84 = inttoptr i64 %83 to i32*
store i32 %82, i32* %84, align 4
%85 = add i64 %4, 84
%86 = inttoptr i64 %85 to i32*
store i32 0, i32* %86, align 4
%87 = add i64 %4, 88
%88 = inttoptr i64 %87 to i32*
store i32 0, i32* %88, align 4
%89 = call i128 @FUNC(i128 %3, i128 %3)
%90 = call i64 @FUNC(i128 %89)
%91 = add i64 %4, 96
%92 = inttoptr i64 %91 to i64*
store i64 %90, i64* %92, align 8
%93 = add i64 %.pre7, 12
%94 = inttoptr i64 %93 to i32*
%95 = load i32, i32* %94, align 4
%96 = load i32, i32* %.pre-phi6, align 8
%97 = zext i32 %95 to i64
%98 = zext i32 %96 to i64
%99 = call i128 @FUNC(i64 %98, i64 %97)
%100 = call i64 @FUNC(i128 %99)
%101 = add i64 %4, 104
%102 = inttoptr i64 %101 to i64*
store i64 %100, i64* %102, align 8
%103 = add i64 %4, 112
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_5
LBL_5:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%104 = call i128 @__asm_movsd.1(i64 4607182418800017408)
%105 = call i64 @FUNC(i128 %104)
%106 = mul i64 %indvars.iv.reload, 8
%107 = add i64 %103, %106
%108 = inttoptr i64 %107 to i64*
store i64 %105, i64* %108, align 8
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 10
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_6, label LBL_5
LBL_6:
ret i64 %4
uselistorder i64 %.pre7, { 1, 0, 3, 2 }
uselistorder i32 %8, { 0, 1, 3, 2 }
uselistorder i64 %4, { 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 21, 23, 25, 24, 26, 27, 28, 2 }
uselistorder i32** %.pre-phi5.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 4, { 1, 2, 0, 3 }
uselistorder i32 0, { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 12 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | set_segment_filename_17194 | set_segment_filename | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i64*
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = inttoptr i64 %6 to i32*
%8 = add i64 %6, 32
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = add i64 %6, 4
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_2, label LBL_1
LBL_1:
%15 = load i32, i32* %7, align 4
%16 = ashr i32 %15, 31
%17 = zext i32 %15 to i64
%18 = zext i32 %16 to i64
%19 = mul i64 %18, 4294967296
%20 = or i64 %19, %17
%21 = zext i32 %13 to i64
%22 = srem i64 %20, %21
%23 = trunc i64 %22 to i32
store i32 %23, i32* %7, align 4
br label LBL_2
LBL_2:
%24 = add i64 %6, 8
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label LBL_5, label LBL_3
LBL_3:
%28 = bitcast i64* %sv_2 to i32*
%29 = call i32 @time(i32* nonnull %28)
%30 = bitcast i64* %sv_1 to %tm*
%31 = call %tm* @localtime_r(i32* nonnull %28, %tm* nonnull %30)
%32 = inttoptr i64 %10 to i64*
%33 = load i64, i64* %32, align 8
%34 = inttoptr i64 %33 to i8*
%35 = bitcast i64* %sv_2 to i8*
%36 = call i32 @strftime(i8* %34, i32 8, i8* nonnull %35, %tm* %31)
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
store i64* %32, i64** %.pre-phi.reg2mem
br i1 %38, label LBL_7, label LBL_4
LBL_4:
%39 = ptrtoint %tm* %31 to i64
%40 = call i64 @FUNC(i64 %10, i64 0, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_0, i64 0, i64 0), i64 %39, i64 %2, i64 %1)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_11
LBL_5:
%41 = load i32, i32* %7, align 4
%42 = inttoptr i64 %10 to i64*
%43 = load i64, i64* %42, align 8
%44 = call i64 @FUNC(i64 %43, i64 8, i64 %3, i32 %41)
%45 = trunc i64 %44 to i32
%46 = icmp slt i32 %45, 0
%47 = icmp eq i1 %46, false
store i64* %42, i64** %.pre-phi.reg2mem
br i1 %47, label LBL_7, label LBL_6
LBL_6:
%48 = call i64 @FUNC(i64 %10, i64 0, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_1, i64 0, i64 0), i64 %43, i64 %2, i64 %1)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_11
LBL_7:
%.pre-phi.reload = load i64*, i64** %.pre-phi.reg2mem
%49 = load i64, i64* %.pre-phi.reload, align 8
%50 = call i64 @FUNC(i64 %49)
%51 = inttoptr i64 %50 to i8*
%52 = call i32 @strlen(i8* %51)
%53 = add i32 %52, 1
%54 = add i64 %6, 16
%55 = inttoptr i64 %54 to i64*
%56 = load i64, i64* %55, align 8
%57 = icmp eq i64 %56, 0
store i32 %53, i32* %sv_0.0.reg2mem
br i1 %57, label LBL_9, label LBL_8
LBL_8:
%58 = inttoptr i64 %56 to i8*
%59 = call i32 @strlen(i8* %58)
%60 = add i32 %59, %53
store i32 %60, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%61 = sext i32 %sv_0.0.reload to i64
%62 = call i64 @FUNC(i64 %61)
%63 = add i64 %6, 24
%64 = inttoptr i64 %63 to i64*
store i64 %62, i64* %64, align 8
%65 = icmp eq i64 %62, 0
%66 = icmp eq i1 %65, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %66, label LBL_10, label LBL_11
LBL_10:
%67 = load i64, i64* %.pre-phi.reload, align 8
%68 = call i64 @FUNC(i64 %67)
%69 = load i64, i64* %55, align 8
%70 = icmp eq i64 %69, 0
%spec.select = select i1 %70, i64 ptrtoint (i8** @gv_2 to i64), i64 %69
%71 = load i64, i64* %64, align 8
%72 = inttoptr i64 %71 to i8*
%73 = inttoptr i64 %spec.select to i8*
%74 = inttoptr i64 %68 to i8*
%75 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %72, i32 %sv_0.0.reload, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i8* %73, i8* %74)
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i32 %53, { 1, 0 }
uselistorder %tm* %31, { 1, 0 }
uselistorder i64 %10, { 2, 3, 0, 1 }
uselistorder i32* %7, { 2, 1, 0 }
uselistorder i64 %6, { 0, 1, 2, 4, 5, 3 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64** %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i64 (i64)* @av_basename, { 1, 0 }
uselistorder i64 4294967274, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder label LBL_11, { 1, 0, 2, 3 }
} | 1 |
BinRealVul | lsi_queue_req_10639 | lsi_queue_req | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = trunc i64 %2 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %3)
br label LBL_2
LBL_2:
%7 = ptrtoint i64* %arg1 to i64
%8 = trunc i64 %1 to i32
%9 = trunc i64 %arg3 to i32
%10 = bitcast i64* %arg2 to i32*
store i32 %9, i32* %10, align 4
%11 = icmp eq i32 %8, 1
br i1 %11, label LBL_6, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 %7)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_7, label LBL_4
LBL_4:
%15 = add i64 %7, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = and i32 %17, 2
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_7, label LBL_5
LBL_5:
%21 = add i64 %7, 8
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = and i32 %23, 12
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_7, label LBL_6
LBL_6:
%27 = call i64 @FUNC(i64 %7, i64 %3)
store i64 0, i64* %storemerge.reg2mem
br label LBL_8
LBL_7:
%28 = add i64 %3, 4
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = zext i32 %30 to i64
%32 = call i64 @FUNC(i64 %31)
store i32 %9, i32* %10, align 4
store i64 1, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %7, { 3, 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
} | 0 |
BinRealVul | btrfs_alloc_inode_18151 | btrfs_alloc_inode | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = inttoptr i64 %1 to i64*
store i64 0, i64* %4, align 8
%5 = add i64 %1, 8
%6 = inttoptr i64 %5 to i64*
store i64 0, i64* %6, align 8
%7 = add i64 %1, 16
%8 = inttoptr i64 %7 to i64*
store i64 0, i64* %8, align 8
%9 = add i64 %1, 24
%10 = inttoptr i64 %9 to i64*
store i64 0, i64* %10, align 8
%11 = add i64 %1, 32
%12 = inttoptr i64 %11 to i64*
store i64 0, i64* %12, align 8
%13 = add i64 %1, 40
%14 = call i64 @FUNC(i64 %13)
%15 = add i64 %1, 48
%16 = call i64 @FUNC(i64 %15)
%17 = add i64 %1, 56
%18 = call i64 @FUNC(i64 %17)
%19 = add i64 %1, 64
%20 = call i64 @FUNC(i64 %19)
store i64 %1, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %1, { 0, 1, 4, 3, 2, 5, 6, 7, 8, 9, 10 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @INIT_LIST_HEAD, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | Jsi_EvalFile_10665 | Jsi_EvalFile | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge2.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 %5, i64 %4)
%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 %5, i64 %4)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_3, label LBL_2
LBL_2:
%. = select i1 %8, i64 ptrtoint ([10 x i8]* @gv_0 to i64), i64 ptrtoint ([5 x i8]* @gv_1 to i64)
%13 = call i64 @FUNC(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0), i64 %., i64 %4, i64 %3, i64 %2, i64 %1)
store i64 %13, i64* %storemerge2.reg2mem
br label LBL_4
LBL_3:
%14 = and i64 %arg3, 4294967295
%15 = and i64 %5, 4294967295
%16 = call i64 @FUNC(i64 %5, i64 %4, i64 0, i64 %14, i64 %15)
store i64 %16, i64* %storemerge2.reg2mem
br label LBL_4
LBL_4:
%storemerge2.reload = load i64, i64* %storemerge2.reg2mem
ret i64 %storemerge2.reload
uselistorder i64 %5, { 1, 0, 2, 3 }
uselistorder i64 %4, { 1, 0, 2, 3 }
uselistorder i64* %storemerge2.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
} | 0 |
BinRealVul | qdev_create_15551 | qdev_create | 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 %arg2)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0), i64 %arg2, i64 %0)
br label LBL_2
LBL_2:
ret i64 %1
} | 1 |
BinRealVul | qtest_qmp_1858 | qtest_qmp | define i64 @FUNC(i32* %arg1, i8* %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%sv_0.0.ph.ph.lcssa.reg2mem = alloca i64
%sv_1.0.ph19.reg2mem = alloca i32
%sv_1.0.ph.ph23.reg2mem = alloca i32
%sv_0.0.ph.ph24.reg2mem = alloca i64
%.reg2mem = alloca i1
%2 = load i64, i64* %1
%3 = load i64, i64* %1
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%11 = load i128, i128* %0
%sv_2 = alloca i64, align 8
%sv_3 = alloca i32, align 4
%12 = trunc i64 %3 to i8
%13 = icmp eq i8 %12, 0
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = call i64 @FUNC(i128 %11)
%15 = call i64 @FUNC(i128 %10)
%16 = call i64 @FUNC(i128 %9)
%17 = call i64 @FUNC(i128 %8)
%18 = call i64 @FUNC(i128 %7)
%19 = call i64 @FUNC(i128 %6)
%20 = call i64 @FUNC(i128 %5)
%21 = call i64 @FUNC(i128 %4)
br label LBL_2
LBL_2:
%22 = trunc i64 %2 to i32
store i32 16, i32* %sv_3, align 4
%23 = ptrtoint i8* %arg2 to i64
%24 = and i64 %2, 4294967295
%25 = call i64 @FUNC(i64 %24, i64 %23, i32* nonnull %sv_3)
store i1 true, i1* %.reg2mem
store i64 1, i64* %sv_0.0.ph.ph24.reg2mem
store i32 0, i32* %sv_1.0.ph.ph23.reg2mem
br label LBL_3.lr.ph.lr.ph
LBL_3:
%26 = call i32 @read(i32 %22, i64* nonnull %sv_2, i32 1)
%27 = icmp eq i32 %26, -1
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_6, label LBL_4
LBL_4:
%29 = call i32* @__errno_location()
%30 = load i32, i32* %29, align 4
%31 = icmp eq i32 %30, 4
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_6, label LBL_5
LBL_5:
br label LBL_3
LBL_6:
%33 = icmp ne i32 %26, -1
%34 = icmp eq i32 %26, 0
%35 = icmp eq i1 %34, false
%or.cond = icmp eq i1 %33, %35
br i1 %or.cond, label LBL_8, label LBL_7
LBL_7:
%36 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%37 = call i32 @fwrite(i64* bitcast ([13 x i8]* @gv_1 to i64*), i32 1, i32 12, %_IO_FILE* %36)
call void @exit(i32 1)
unreachable
LBL_8:
%38 = load i64, i64* %sv_2, align 8
%sext = mul i64 %38, 72057594037927936
%39 = ashr exact i64 %sext, 56
%40 = trunc i64 %39 to i32
switch i32 %40, label LBL_5 [
i32 123, label LBL_9
i32 125, label LBL_11
]
LBL_9:
%41 = add i32 %sv_1.0.ph19.reload, 1
%42 = icmp eq i32 %41, 0
%43 = icmp slt i32 %41, 0
%44 = icmp eq i1 %43, false
%45 = icmp eq i1 %42, false
%46 = icmp eq i1 %44, %45
store i1 false, i1* %.reg2mem
store i64 0, i64* %sv_0.0.ph.ph24.reg2mem
store i32 %41, i32* %sv_1.0.ph.ph23.reg2mem
store i64 0, i64* %sv_0.0.ph.ph.lcssa.reg2mem
br i1 %46, label LBL_3.lr.ph.lr.ph, label LBL_13
LBL_10:
%sv_1.0.ph.ph23.reload = load i32, i32* %sv_1.0.ph.ph23.reg2mem
%sv_0.0.ph.ph24.reload = load i64, i64* %sv_0.0.ph.ph24.reg2mem
%.reload = load i1, i1* %.reg2mem
store i32 %sv_1.0.ph.ph23.reload, i32* %sv_1.0.ph19.reg2mem
br label LBL_3.lr.ph
LBL_11:
%47 = add i32 %sv_1.0.ph19.reload, -1
%48 = icmp eq i32 %47, 0
%49 = icmp slt i32 %47, 0
%50 = icmp eq i1 %49, false
%51 = icmp eq i1 %48, false
%52 = icmp eq i1 %50, %51
%brmerge = or i1 %.reload, %52
store i32 %47, i32* %sv_1.0.ph19.reg2mem
store i64 %sv_0.0.ph.ph24.reload, i64* %sv_0.0.ph.ph.lcssa.reg2mem
br i1 %brmerge, label LBL_3.lr.ph, label LBL_13
LBL_12:
%sv_1.0.ph19.reload = load i32, i32* %sv_1.0.ph19.reg2mem
br label LBL_3
LBL_13:
%sv_0.0.ph.ph.lcssa.reload = load i64, i64* %sv_0.0.ph.ph.lcssa.reg2mem
%53 = and i64 %sv_0.0.ph.ph.lcssa.reload, 4294967295
ret i64 %53
uselistorder i32 %sv_1.0.ph19.reload, { 1, 0 }
uselistorder i32 %47, { 0, 2, 1 }
uselistorder i32 %41, { 0, 2, 1 }
uselistorder i64* %sv_2, { 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %1, { 1, 0 }
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i1 false, { 7, 4, 0, 1, 2, 3, 5, 6 }
uselistorder i32 -1, { 1, 0, 2 }
uselistorder i8 0, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_3.lr.ph, { 1, 0 }
uselistorder label LBL_3.lr.ph.lr.ph, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | pk_get_ecparams_18206 | pk_get_ecparams | 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 = trunc i64 %1 to i8
%4 = bitcast i64* %arg3 to i8*
store i8 %3, i8* %4, align 1
%5 = trunc i64 %2 to i8
store i64 4294967263, i64* %rax.0.reg2mem
switch i8 %5, label LBL_4 [
i8 6, label LBL_1
i8 48, label LBL_1
]
LBL_1:
%6 = ptrtoint i64* %arg3 to i64
%7 = ptrtoint i64* %arg1 to i64
%8 = ptrtoint i64* %arg2 to i64
%9 = add i64 %6, 8
%10 = urem i64 %2, 256
%11 = call i64 @FUNC(i64 %7, i64 %8, i64 %9, i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = add i64 %11, 4294967280
%15 = and i64 %14, 4294967295
store i64 %15, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%16 = add i64 %6, 16
%17 = inttoptr i64 %16 to i64*
store i64 %7, i64* %17, align 8
%18 = inttoptr i64 %9 to i64*
%19 = load i64, i64* %18, align 8
%20 = add i64 %19, %7
store i64 %20, i64* %arg1, align 8
%21 = icmp eq i64* %arg1, %arg2
%. = select i1 %21, i64 0, i64 4294967262
store i64 %., i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64* %arg3, { 1, 0 }
uselistorder label LBL_4, { 0, 2, 1 }
} | 1 |
BinRealVul | qemu_update_position_2401 | qemu_update_position | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = add i64 %arg2, %arg1
%1 = inttoptr i64 %arg1 to i64*
store i64 %0, i64* %1, align 8
ret i64 %arg1
uselistorder i64 %arg1, { 2, 1, 0 }
} | 0 |
BinRealVul | qemu_event_init_16231 | qemu_event_init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.shrunk.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%1 = load i32, i32* %0
%sv_1 = alloca i32, align 4
%2 = ptrtoint i32* %sv_1 to i64
%3 = trunc i64 %2 to i32
%4 = insertvalue [2 x i32] undef, i32 %3, 0
%5 = call i32 @pipe([2 x i32] %4)
%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 i32* @__errno_location()
%9 = load i32, i32* %8, align 4
%10 = sub i32 0, %9
store i32 %10, i32* %rax.0.shrunk.reg2mem
br label LBL_6
LBL_2:
%11 = load i32, i32* %sv_1, align 4
%12 = zext i32 %11 to i64
%13 = call i64 @FUNC(i64 %12, i64 2048)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %14, 0
store i32 %14, i32* %sv_0.0.reg2mem
br i1 %15, label LBL_5, label LBL_3
LBL_3:
%16 = zext i32 %1 to i64
%17 = call i64 @FUNC(i64 %16, i64 2048)
%18 = trunc i64 %17 to i32
%19 = icmp slt i32 %18, 0
store i32 %18, i32* %sv_0.0.reg2mem
br i1 %19, label LBL_5, label LBL_4
LBL_4:
%20 = load i32, i32* %sv_1, align 4
%21 = sext i32 %20 to i64
%22 = zext i32 %20 to i64
%23 = call i64 @FUNC(i64 %22, i64 0, i64 4198854, i64 0, i64 %21)
store i32 0, i32* %rax.0.shrunk.reg2mem
br label LBL_6
LBL_5:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%24 = load i32, i32* %sv_1, align 4
%25 = call i32 @close(i32 %24)
%26 = call i32 @close(i32 %1)
store i32 %sv_0.0.reload, i32* %rax.0.shrunk.reg2mem
br label LBL_6
LBL_6:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i32* %sv_1, { 3, 2, 1, 0 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 (i32)* @close, { 1, 0 }
uselistorder i64 (i64, i64)* @fcntl_setfl, { 1, 0 }
} | 1 |
BinRealVul | get_bool_2748 | get_bool | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 0
%4 = icmp eq i1 %3, false
%5 = zext i1 %4 to i8
%6 = bitcast i64* %arg2 to i8*
store i8 %5, i8* %6, align 1
ret i64 0
} | 0 |
BinRealVul | qcow_open_7705 | qcow_open | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge1523.reg2mem = alloca i32
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
%sv_3 = alloca i64, align 8
%sv_4 = alloca i32, align 4
%sv_5 = alloca i64, align 8
%sv_6 = alloca i32, align 4
%sv_7 = alloca i32, align 4
%sv_8 = alloca i64, align 8
%sv_9 = alloca i32, align 4
%sv_10 = alloca i64, align 8
%sv_11 = alloca i32, align 4
%sv_12 = alloca i32, align 4
%1 = add i64 %0, 1040
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = or i32 %arg3, 1
%5 = zext i32 %4 to i64
%6 = add i64 %3, 112
%7 = call i64 @FUNC(i64 %6, i64 %arg2, i64 %5)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = and i64 %7, 4294967295
store i64 %11, i64* %rax.0.reg2mem
br label LBL_23
LBL_2:
%12 = inttoptr i64 %6 to i64*
%13 = load i64, i64* %12, align 8
%14 = bitcast i32* %sv_12 to i64*
%15 = call i64 @FUNC(i64 %13, i64 0, i64* nonnull %14, i64 88)
%16 = trunc i64 %15 to i32
%17 = icmp eq i32 %16, 88
%18 = icmp eq i1 %17, false
br i1 %18, label LBL_22, label LBL_3
LBL_3:
%19 = call i64 @FUNC(i64* nonnull %14)
%20 = bitcast i32* %sv_11 to i64*
%21 = call i64 @FUNC(i64* nonnull %20)
%22 = call i64 @FUNC(i64* nonnull %sv_10)
%23 = bitcast i32* %sv_9 to i64*
%24 = call i64 @FUNC(i64* nonnull %23)
%25 = call i64 @FUNC(i64* nonnull %sv_8)
%26 = bitcast i32* %sv_7 to i64*
%27 = call i64 @FUNC(i64* nonnull %26)
%28 = bitcast i32* %sv_6 to i64*
%29 = call i64 @FUNC(i64* nonnull %28)
%30 = call i64 @FUNC(i64* nonnull %sv_5)
%31 = bitcast i32* %sv_4 to i64*
%32 = call i64 @FUNC(i64* nonnull %31)
%33 = call i64 @FUNC(i64* nonnull %sv_3)
%34 = bitcast i32* %sv_2 to i64*
%35 = call i64 @FUNC(i64* nonnull %34)
%36 = call i64 @FUNC(i64* nonnull %sv_1)
%37 = bitcast i32* %sv_0 to i64*
%38 = call i64 @FUNC(i64* nonnull %37)
%39 = load i32, i32* %sv_12, align 4
%40 = icmp eq i32 %39, 1363234889
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_22, label LBL_4
LBL_4:
%42 = load i32, i32* %sv_11, align 4
%43 = icmp eq i32 %42, 2
%44 = icmp eq i1 %43, false
br i1 %44, label LBL_22, label LBL_5
LBL_5:
%45 = load i64, i64* %sv_8, align 8
%46 = icmp ugt i64 %45, 1
%47 = load i32, i32* %sv_7, align 4
%.off = add i32 %47, -9
%48 = icmp ult i32 %.off, 8
%49 = icmp eq i1 %46, %48
%50 = load i32, i32* %sv_6, align 4
%51 = icmp ult i32 %50, 2
%or.cond20 = icmp eq i1 %51, %49
br i1 %or.cond20, label LBL_6, label LBL_22
LBL_6:
%52 = inttoptr i64 %3 to i32*
store i32 %50, i32* %52, align 4
%53 = icmp eq i32 %50, 0
br i1 %53, label LBL_8, label LBL_7
LBL_7:
%54 = bitcast i64* %arg1 to i32*
store i32 1, i32* %54, align 4
br label LBL_8
LBL_8:
%55 = load i32, i32* %sv_7, align 4
%56 = add i64 %3, 4
%57 = inttoptr i64 %56 to i32*
store i32 %55, i32* %57, align 4
%58 = urem i32 %55, 32
%59 = shl i32 1, %58
%60 = add i64 %3, 8
%61 = inttoptr i64 %60 to i32*
store i32 %59, i32* %61, align 4
%62 = load i32, i32* %57, align 4
%63 = add i32 %62, 23
%64 = urem i32 %63, 32
%65 = shl i32 1, %64
%66 = add i64 %3, 12
%67 = inttoptr i64 %66 to i32*
store i32 %65, i32* %67, align 4
%68 = load i32, i32* %57, align 4
%69 = add i32 %68, -3
%70 = add i64 %3, 16
%71 = inttoptr i64 %70 to i32*
store i32 %69, i32* %71, align 4
%72 = urem i32 %69, 32
%73 = shl i32 1, %72
%74 = add i64 %3, 20
%75 = inttoptr i64 %74 to i32*
store i32 %73, i32* %75, align 4
%76 = load i64, i64* %sv_8, align 8
%77 = udiv i64 %76, 512
%78 = add i64 %0, 1032
%79 = inttoptr i64 %78 to i64*
store i64 %77, i64* %79, align 8
%80 = load i32, i32* %57, align 4
%81 = sub i32 70, %80
%82 = add i64 %3, 120
%83 = inttoptr i64 %82 to i32*
store i32 %81, i32* %83, align 4
%84 = load i32, i32* %57, align 4
%85 = add i32 %84, 24
%86 = urem i32 %85, 32
%87 = icmp eq i32 %86, 0
%notmask = shl nsw i32 -1, %86
%88 = sub i32 0, %notmask
%phitmp = sub i32 %88, 1
%rdx.2 = select i1 %87, i32 0, i32 %phitmp
%89 = add i64 %3, 124
%90 = inttoptr i64 %89 to i32*
store i32 %rdx.2, i32* %90, align 4
%91 = load i32, i32* %83, align 4
%92 = urem i32 %91, 64
%93 = icmp eq i32 %92, 0
%94 = zext i32 %92 to i64
%95 = shl i64 1, %94
%96 = trunc i64 %95 to i32
%.op = add i32 %96, -1
%97 = select i1 %93, i32 0, i32 %.op
%98 = add i64 %3, 128
%99 = inttoptr i64 %98 to i32*
store i32 %97, i32* %99, align 4
%100 = load i64, i64* %sv_3, align 8
%101 = add i64 %3, 80
%102 = inttoptr i64 %101 to i64*
store i64 %100, i64* %102, align 8
%103 = load i32, i32* %sv_2, align 4
%104 = load i32, i32* %57, align 4
%105 = add i32 %104, 29
%106 = urem i32 %105, 32
%107 = shl i32 %103, %106
%rdx.3 = zext i32 %107 to i64
%108 = add i64 %3, 88
%109 = inttoptr i64 %108 to i64*
store i64 %rdx.3, i64* %109, align 8
%110 = load i64, i64* %sv_1, align 8
%111 = add i64 %3, 96
%112 = inttoptr i64 %111 to i64*
store i64 %110, i64* %112, align 8
%113 = load i32, i32* %sv_0, align 4
%114 = zext i32 %113 to i64
%115 = add i64 %3, 104
%116 = inttoptr i64 %115 to i64*
store i64 %114, i64* %116, align 8
%117 = load i32, i32* %sv_4, align 4
%118 = zext i32 %117 to i64
%119 = add i64 %3, 24
%120 = inttoptr i64 %119 to i64*
store i64 %118, i64* %120, align 8
%121 = load i32, i32* %57, align 4
%122 = load i32, i32* %71, align 4
%123 = add i32 %122, %121
%124 = load i64, i64* %sv_8, align 8
%125 = urem i32 %123, 64
%126 = icmp eq i32 %125, 0
%127 = zext i32 %125 to i64
%128 = shl i64 1, %127
%storemerge13 = select i1 %126, i64 1, i64 %128
%129 = add i64 %124, -1
%130 = add i64 %129, %storemerge13
%rdx.4 = lshr i64 %130, %127
%131 = add i64 %3, 136
%132 = inttoptr i64 %131 to i64*
store i64 %rdx.4, i64* %132, align 8
%133 = load i64, i64* %120, align 8
%134 = icmp ult i64 %133, %rdx.4
br i1 %134, label LBL_22, label LBL_9
LBL_9:
%135 = load i64, i64* %sv_5, align 8
%136 = add i64 %3, 32
%137 = inttoptr i64 %136 to i64*
store i64 %135, i64* %137, align 8
%138 = load i64, i64* %120, align 8
%139 = mul i64 %138, 8
%140 = call i64 @FUNC(i64 %139)
%141 = add i64 %3, 40
%142 = inttoptr i64 %141 to i64*
store i64 %140, i64* %142, align 8
%143 = icmp eq i64 %140, 0
br i1 %143, label LBL_22, label LBL_10
LBL_10:
%144 = load i64, i64* %120, align 8
%145 = mul i64 %144, 8
%146 = load i64, i64* %137, align 8
%147 = load i64, i64* %12, align 8
%148 = inttoptr i64 %140 to i64*
%149 = call i64 @FUNC(i64 %147, i64 %146, i64* %148, i64 %145)
%sext = mul i64 %149, 4294967296
%150 = ashr exact i64 %sext, 32
%151 = load i64, i64* %120, align 8
%152 = mul i64 %151, 8
%153 = icmp eq i64 %150, %152
%154 = icmp eq i1 %153, false
br i1 %154, label LBL_22, label LBL_11
LBL_11:
%155 = icmp eq i64 %151, 0
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge1523.reg2mem
br i1 %155, label LBL_13, label LBL_12
LBL_12:
%storemerge1523.reload = load i32, i32* %storemerge1523.reg2mem
%.reload = load i64, i64* %.reg2mem
%156 = load i64, i64* %142, align 8
%157 = mul i64 %.reload, 8
%158 = add i64 %156, %157
%159 = inttoptr i64 %158 to i64*
%160 = call i64 @FUNC(i64* %159)
%161 = add i32 %storemerge1523.reload, 1
%162 = sext i32 %161 to i64
%163 = load i64, i64* %120, align 8
%164 = icmp ugt i64 %163, %162
store i64 %162, i64* %.reg2mem
store i32 %161, i32* %storemerge1523.reg2mem
br i1 %164, label LBL_12, label LBL_13
LBL_13:
%165 = load i32, i32* %75, align 4
%166 = mul i32 %165, 64
%167 = sext i32 %166 to i64
%168 = mul i64 %167, 8
%169 = call i64 @FUNC(i64 %168)
%170 = add i64 %3, 48
%171 = inttoptr i64 %170 to i64*
store i64 %169, i64* %171, align 8
%172 = icmp eq i64 %169, 0
br i1 %172, label LBL_22, label LBL_14
LBL_14:
%173 = load i32, i32* %61, align 4
%174 = sext i32 %173 to i64
%175 = call i64 @FUNC(i64 %174)
%176 = add i64 %3, 56
%177 = inttoptr i64 %176 to i64*
store i64 %175, i64* %177, align 8
%178 = icmp eq i64 %175, 0
br i1 %178, label LBL_22, label LBL_15
LBL_15:
%179 = load i32, i32* %61, align 4
%180 = add i32 %179, 512
%181 = sext i32 %180 to i64
%182 = call i64 @FUNC(i64 %181)
%183 = add i64 %3, 64
%184 = inttoptr i64 %183 to i64*
store i64 %182, i64* %184, align 8
%185 = icmp eq i64 %182, 0
br i1 %185, label LBL_22, label LBL_16
LBL_16:
%186 = add i64 %3, 72
%187 = inttoptr i64 %186 to i32*
store i32 -1, i32* %187, align 4
%188 = call i64 @FUNC(i64 %0)
%189 = trunc i64 %188 to i32
%190 = icmp slt i32 %189, 0
br i1 %190, label LBL_22, label LBL_17
LBL_17:
%191 = load i64, i64* %sv_10, align 8
%192 = icmp eq i64 %191, 0
br i1 %192, label LBL_20, label LBL_18
LBL_18:
%193 = load i32, i32* %sv_9, align 4
%194 = icmp slt i32 %193, 1023
%spec.select = select i1 %194, i32 %193, i32 1023
%195 = sext i32 %spec.select to i64
%196 = add i64 %0, 4
%197 = load i64, i64* %12, align 8
%198 = inttoptr i64 %196 to i64*
%199 = call i64 @FUNC(i64 %197, i64 %191, i64* %198, i64 %195)
%200 = trunc i64 %199 to i32
%201 = icmp eq i32 %spec.select, %200
%202 = icmp eq i1 %201, false
br i1 %202, label LBL_22, label LBL_19
LBL_19:
%203 = add i64 %196, %195
%204 = inttoptr i64 %203 to i8*
store i8 0, i8* %204, align 1
br label LBL_20
LBL_20:
%205 = call i64 @FUNC(i64 %0)
%206 = trunc i64 %205 to i32
%207 = icmp slt i32 %206, 0
br i1 %207, label LBL_22, label LBL_21
LBL_21:
%208 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_23
LBL_22:
%209 = call i64 @FUNC(i64 %0)
%210 = call i64 @FUNC(i64 %0)
%211 = add i64 %3, 40
%212 = inttoptr i64 %211 to i64*
%213 = load i64, i64* %212, align 8
%214 = call i64 @FUNC(i64 %213)
%215 = add i64 %3, 48
%216 = inttoptr i64 %215 to i64*
%217 = load i64, i64* %216, align 8
%218 = call i64 @FUNC(i64 %217)
%219 = add i64 %3, 56
%220 = inttoptr i64 %219 to i64*
%221 = load i64, i64* %220, align 8
%222 = call i64 @FUNC(i64 %221)
%223 = add i64 %3, 64
%224 = inttoptr i64 %223 to i64*
%225 = load i64, i64* %224, align 8
%226 = call i64 @FUNC(i64 %225)
%227 = load i64, i64* %12, align 8
%228 = call i64 @FUNC(i64 %227)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_23
LBL_23:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %151, { 1, 0 }
uselistorder i64 %rdx.4, { 1, 0 }
uselistorder i64* %12, { 2, 0, 1, 3 }
uselistorder i64 %3, { 20, 21, 22, 23, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 24, 25 }
uselistorder i64* %sv_10, { 1, 0 }
uselistorder i64* %sv_8, { 1, 2, 3, 0 }
uselistorder i32* %sv_7, { 1, 0, 2 }
uselistorder i64* %sv_5, { 1, 0 }
uselistorder i64* %sv_3, { 1, 0 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i64 %0, { 6, 5, 1, 2, 0, 3, 4, 7 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge1523.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64)* @qemu_free, { 3, 2, 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 (i64)* @qemu_malloc, { 3, 2, 1, 0 }
uselistorder i32 -1, { 2, 1, 0 }
uselistorder i64 (i64*)* @be64_to_cpus, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64*)* @be32_to_cpus, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i64*, i64)* @bdrv_pread, { 2, 1, 0 }
uselistorder i64 88, { 1, 0 }
uselistorder label LBL_22, { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 10, 12 }
uselistorder label LBL_12, { 1, 0 }
} | 1 |
BinRealVul | fsl_imx6_class_init_2815 | fsl_imx6_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
store i64 4198662, i64* %arg1, align 8
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 ptrtoint ([10 x i8]* @gv_0 to i64), i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i32*
store i32 0, i32* %4, align 4
ret i64 %0
uselistorder i64 %0, { 1, 0, 2 }
} | 0 |
BinRealVul | snd_hda_queue_unsol_event_17513 | snd_hda_queue_unsol_event | 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* %arg1 to i64
%sext2 = mul i64 %arg3, 4294967296
%3 = ashr exact i64 %sext2, 32
%4 = and i64 %3, 4294967295
%5 = and i64 %arg2, 4294967295
%6 = call i64 @FUNC(i64 %2, i64 %5, i64 %4)
%7 = icmp eq i64* %arg1, null
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_1, label LBL_2
LBL_1:
%9 = trunc i64 %1 to i32
%10 = add i32 %9, 1
%11 = urem i32 %10, 128
%12 = bitcast i64* %arg1 to i32*
store i32 %11, i32* %12, align 4
%13 = mul i32 %11, 8
%14 = trunc i64 %arg2 to i32
%15 = zext i32 %13 to i64
%16 = add i64 %2, 4
%17 = add i64 %16, %15
%18 = inttoptr i64 %17 to i32*
store i32 %14, i32* %18, align 4
%19 = or i32 %13, 4
%20 = trunc i64 %3 to i32
%21 = zext i32 %19 to i64
%22 = add i64 %16, %21
%23 = inttoptr i64 %22 to i32*
store i32 %20, i32* %23, align 4
%24 = add i64 %2, 1032
%25 = add i64 %2, 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = call i64 @FUNC(i64 %27, i64 %24)
br label LBL_2
LBL_2:
ret i64 0
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | http_connect_13693 | http_connect | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%storemerge.in.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = add i64 %2, 48
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = add i64 %2, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = icmp eq i32 %11, 0
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %12, label LBL_3, label LBL_21
LBL_3:
%13 = add i64 %2, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = icmp eq i64 %15, 0
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = call i64 @FUNC(i64 %15)
%18 = load i64, i64* %14, align 8
%19 = call i64 @FUNC(i64 %18)
store i64 0, i64* %14, align 8
%20 = bitcast i64* %arg1 to i32*
store i32 0, i32* %20, align 4
br label LBL_5
LBL_5:
%21 = add i64 %2, 16
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = icmp eq i32 %23, 0
%25 = add i64 %2, 32
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = add i64 %2, 24
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
br i1 %24, label LBL_7, label LBL_6
LBL_6:
%31 = call i64 @FUNC(i64 %13, i64 %30, i32 %27)
store i64 %31, i64* %storemerge.in.reg2mem
br label LBL_8
LBL_7:
%32 = call i64 @FUNC(i64 %13, i64 %30, i32 %27)
%33 = load i32, i32* %26, align 4
%34 = load i64, i64* %29, align 8
%35 = call i64 @FUNC(i64 %13, i64 %34, i32 %33)
store i64 %35, i64* %storemerge.in.reg2mem
br label LBL_8
LBL_8:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = trunc i64 %storemerge.in.reload to i32
%36 = icmp slt i32 %storemerge, 0
%37 = icmp eq i1 %36, false
store i32 %storemerge, i32* %rax.0.shrunk.reg2mem
br i1 %37, label LBL_9, label LBL_21
LBL_9:
%38 = load i64, i64* %14, align 8
%39 = call i64 @FUNC(i64 %38)
%40 = trunc i64 %39 to i32
%41 = icmp eq i32 %40, 0
br i1 %41, label LBL_12, label LBL_10
LBL_10:
%42 = load i32, i32* %22, align 4
%43 = icmp eq i32 %42, 0
%44 = icmp eq i1 %43, false
%45 = add i64 %2, 40
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = zext i1 %44 to i64
%51 = call i64 @FUNC(i64 %49, i64 %50, i64* nonnull %sv_2)
%52 = trunc i64 %51 to i32
%53 = icmp eq i32 %52, 0
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_12, label LBL_11
LBL_11:
%55 = load i64, i64* %sv_2, align 8
%56 = load i64, i64* %14, align 8
%57 = call i64 @FUNC(i64 %56, i64 %55)
%58 = trunc i64 %57 to i32
%59 = load i64, i64* %sv_2, align 8
%60 = call i64 @FUNC(i64 %59)
%61 = icmp slt i32 %58, 0
%62 = icmp eq i1 %61, false
store i32 %58, i32* %rax.0.shrunk.reg2mem
br i1 %62, label LBL_12, label LBL_21
LBL_12:
%63 = load i64, i64* %14, align 8
%64 = call i64 @FUNC(i64 %63)
%65 = trunc i64 %64 to i32
%66 = icmp ne i32 %65, 0
%67 = icmp eq i32 %65, -1
%68 = icmp eq i1 %67, false
%or.cond = icmp eq i1 %66, %68
store i32 %65, i32* %sv_0.0.reg2mem
br i1 %or.cond, label LBL_19, label LBL_13
LBL_13:
%69 = add i64 %2, 40
%70 = inttoptr i64 %69 to i64*
%71 = load i64, i64* %70, align 8
%72 = add i64 %71, 8
%73 = inttoptr i64 %72 to i64*
%74 = load i64, i64* %73, align 8
%75 = icmp eq i64 %74, 0
store i32 %65, i32* %sv_0.0.reg2mem
br i1 %75, label LBL_19, label LBL_14
LBL_14:
%76 = load i64, i64* %14, align 8
%77 = call i64 @FUNC(i64 %76)
%78 = trunc i64 %77 to i32
%79 = icmp eq i32 %78, 0
store i32 %65, i32* %sv_0.0.reg2mem
br i1 %79, label LBL_19, label LBL_15
LBL_15:
%80 = load i64, i64* %14, align 8
%81 = bitcast i32* %sv_1 to i64*
%82 = call i64 @FUNC(i64* nonnull %81, i64 %80)
%83 = trunc i64 %82 to i32
%84 = icmp slt i32 %83, 0
%85 = icmp eq i1 %84, false
store i32 %83, i32* %rax.0.shrunk.reg2mem
br i1 %85, label LBL_16, label LBL_21
LBL_16:
%86 = call i64 @FUNC()
%87 = load i32, i32* %sv_1, align 4
%88 = icmp slt i32 %87, 0
%89 = icmp eq i1 %88, false
store i32 %87, i32* %sv_0.0.reg2mem
br i1 %89, label LBL_19, label LBL_17
LBL_17:
%90 = call i64 @FUNC()
%91 = icmp eq i64 %90, 0
%92 = icmp eq i1 %91, false
store i32 %87, i32* %rax.0.shrunk.reg2mem
br i1 %92, label LBL_21, label LBL_18
LBL_18:
%93 = call i64 @FUNC(i64 4294967294, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_0, i64 0, i64 0))
store i32 %87, i32* %rax.0.shrunk.reg2mem
br label LBL_21
LBL_19:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%94 = icmp slt i32 %sv_0.0.reload, 0
%95 = icmp eq i1 %94, false
store i32 %sv_0.0.reload, i32* %rax.0.shrunk.reg2mem
br i1 %95, label LBL_20, label LBL_21
LBL_20:
%96 = bitcast i64* %arg1 to i32*
store i32 1, i32* %96, align 4
store i32 0, i32* %rax.0.shrunk.reg2mem
br label LBL_21
LBL_21:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i32 %87, { 1, 0, 2, 3 }
uselistorder i32 %65, { 1, 2, 0, 3, 4 }
uselistorder i64 %30, { 1, 0 }
uselistorder i32 %27, { 1, 0 }
uselistorder i64* %14, { 3, 4, 5, 2, 6, 0, 1, 7 }
uselistorder i64* %sv_2, { 1, 2, 0 }
uselistorder i64 %2, { 2, 1, 4, 5, 3, 6, 0, 7 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 8, 1, 3, 2, 4, 5, 6, 7 }
uselistorder i1 false, { 1, 2, 3, 4, 0, 5, 6, 7, 8 }
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 0, 14, 15, 16 }
uselistorder label LBL_21, { 7, 0, 2, 1, 3, 4, 5, 6 }
uselistorder label LBL_19, { 1, 2, 3, 0 }
} | 0 |
BinRealVul | helper_done_14547 | helper_done | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = load i64, i64* @gv_0, align 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i64*
store i64 %4, i64* %6, align 8
%7 = load i64, i64* @gv_0, align 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = add i64 %9, 8
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = add i64 %12, 4
%14 = add i64 %7, 24
%15 = inttoptr i64 %14 to i64*
store i64 %13, i64* %15, align 8
%16 = load i64, i64* @gv_0, align 8
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = add i64 %18, 16
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = udiv i64 %21, 4294967296
%23 = add i64 %16, 40
%24 = inttoptr i64 %23 to i64*
store i64 %22, i64* %24, align 8
%25 = load i64, i64* @gv_0, align 8
%26 = inttoptr i64 %25 to i64*
%27 = load i64, i64* %26, align 8
%28 = add i64 %27, 16
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = udiv i64 %30, 16777216
%32 = trunc i64 %31 to i8
%33 = add i64 %25, 32
%34 = inttoptr i64 %33 to i8*
store i8 %32, i8* %34, align 1
%35 = load i64, i64* @gv_0, align 8
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = add i64 %37, 16
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = udiv i64 %40, 256
%42 = and i64 %41, 3903
%43 = call i64 @FUNC(i64 %42)
%44 = load i64, i64* @gv_0, align 8
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = add i64 %46, 16
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = urem i64 %49, 256
%51 = add i64 %44, 48
%52 = inttoptr i64 %51 to i64*
store i64 %50, i64* %52, align 8
%53 = load i64, i64* @gv_0, align 8
%54 = add i64 %53, 8
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = add i32 %56, -1
store i32 %57, i32* %55, align 4
%58 = load i64, i64* @gv_0, align 8
%59 = add i64 %58, 8
%60 = inttoptr i64 %59 to i32*
%61 = load i32, i32* %60, align 4
%62 = urem i32 %61, 256
%63 = mul nuw nsw i32 %62, 24
%narrow = add nuw nsw i32 %63, 48
%64 = zext i32 %narrow to i64
%65 = add i64 %59, %64
%66 = inttoptr i64 %58 to i64*
store i64 %65, i64* %66, align 8
ret i64 %65
uselistorder i64 %65, { 1, 0 }
uselistorder i64 256, { 1, 0 }
} | 1 |
BinRealVul | parse_metadata_ext_1098 | parse_metadata_ext | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = add i32 %2, 1
%9 = add i32 %8, %7
%10 = zext i32 %9 to i64
%11 = call i64 @FUNC(i64 %4, i64 %10)
store i64 %11, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %2, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | snd_usb_mixer_disconnect_12108 | snd_usb_mixer_disconnect | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = call i64 @FUNC(i64 %4)
ret i64 %5
uselistorder i64 (i64)* @usb_kill_urb, { 1, 0 }
} | 1 |
BinRealVul | arch_pick_mmap_layout_11508 | arch_pick_mmap_layout | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = inttoptr i64 %0 to i64*
%2 = load i64, i64* %1, align 8
%3 = urem i64 %2, 2
%4 = icmp eq i64 %3, 0
store i64 0, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC()
store i64 %5, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%6 = ptrtoint i64* %arg1 to i64
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%7 = call i64 @FUNC(i64 %sv_0.0.reload)
store i64 %7, i64* %arg1, align 8
%8 = call i64 @FUNC()
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = add i64 %6, 8
%12 = inttoptr i64 %11 to i64*
store i64 %sv_0.0.reload, i64* %12, align 8
%13 = add i64 %6, 16
%14 = inttoptr i64 %13 to i64*
store i64 4198756, i64* %14, align 8
br label LBL_5
LBL_4:
%15 = call i64 @FUNC(i64 %sv_0.0.reload)
%16 = add i64 %6, 8
%17 = inttoptr i64 %16 to i64*
store i64 %15, i64* %17, align 8
%18 = add i64 %6, 16
%19 = inttoptr i64 %18 to i64*
store i64 4198771, i64* %19, align 8
br label LBL_5
LBL_5:
ret i64 %6
uselistorder i64 %sv_0.0.reload, { 1, 2, 0 }
uselistorder i64 %6, { 0, 3, 4, 1, 2 }
} | 1 |
BinRealVul | r_cons_less_str_18298 | r_cons_less_str | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.1.be.reg2mem = alloca i32
%sv_0.17.reg2mem = alloca i32
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
%0 = inttoptr i64 %arg1 to i8*
%1 = call i8* @strdup(i8* %0)
%2 = ptrtoint i8* %1 to i64
%3 = bitcast i32* %sv_2 to i64*
%4 = call i64 @FUNC(i64 %2, i64* nonnull %3)
%5 = call i64 @FUNC(i64 1)
%6 = call i64 @FUNC(i64 0)
%7 = call i64 @FUNC()
store i32 0, i32* %sv_1, align 4
store i32 0, i32* %sv_0.17.reg2mem
br label LBL_1
LBL_1:
%sv_0.17.reload = load i32, i32* %sv_0.17.reg2mem
%8 = call i64 @FUNC(i32* nonnull %sv_1)
%9 = load i32, i32* %sv_1, align 4
%10 = add i32 %9, %sv_0.17.reload
%11 = load i32, i32* %sv_2, align 4
%12 = sub i32 %10, %11
%13 = xor i32 %10, %11
%14 = xor i32 %12, %10
%15 = and i32 %14, %13
%16 = icmp slt i32 %15, 0
%17 = icmp eq i32 %12, 0
%18 = icmp slt i32 %12, 0
%19 = icmp ne i1 %18, %16
%20 = or i1 %17, %19
%21 = select i1 %20, i32 %10, i32 %11
%22 = add i32 %sv_0.17.reload, 2
%23 = icmp ult i32 %22, %11
%24 = add i32 %11, -3
%spec.select = select i1 %23, i32 %sv_0.17.reload, i32 %24
%25 = call i64 @FUNC(i64 %2, i64 %4, i32 %spec.select, i32 %21)
%26 = call i64 @FUNC()
%27 = and i64 %26, 4294967295
%28 = call i64 @FUNC(i64 %27)
%29 = trunc i64 %28 to i32
%30 = icmp sgt i32 %29, 113
store i32 %spec.select, i32* %sv_0.1.be.reg2mem
br i1 %30, label LBL_2, label LBL_3
LBL_2:
%sv_0.1.be.reload = load i32, i32* %sv_0.1.be.reg2mem
store i32 %sv_0.1.be.reload, i32* %sv_0.17.reg2mem
br label LBL_1
LBL_3:
%31 = icmp sgt i32 %29, 70
br i1 %31, label LBL_7, label LBL_4
LBL_4:
%32 = icmp eq i32 %29, 32
br i1 %32, label LBL_8, label LBL_5
LBL_5:
%33 = icmp sgt i32 %29, 32
store i32 %spec.select, i32* %sv_0.1.be.reg2mem
br i1 %33, label LBL_2, label LBL_6
LBL_6:
store i32 %spec.select, i32* %sv_0.1.be.reg2mem
switch i32 %29, label LBL_2 [
i32 13, label LBL_11
i32 10, label LBL_11
]
LBL_7:
%34 = add i64 %28, 4294967225
%35 = and i64 %34, 4294967295
store i64 %35, i64* @0, align 8
store i32 %spec.select, i32* %sv_0.1.be.reg2mem
switch i32 %29, label LBL_2 [
i32 71, label LBL_10
i32 74, label LBL_12
i32 75, label LBL_14
i32 103, label LBL_9
i32 106, label LBL_11
i32 107, label LBL_13
i32 113, label LBL_15
]
LBL_8:
%36 = load i32, i32* %sv_1, align 4
%37 = add i32 %36, %spec.select
store i32 %37, i32* %sv_0.1.be.reg2mem
br label LBL_2
LBL_9:
store i32 0, i32* %sv_0.1.be.reg2mem
br label LBL_2
LBL_10:
%38 = load i32, i32* %sv_2, align 4
%39 = load i32, i32* %sv_1, align 4
%40 = sub i32 0, %39
%41 = sub i32 %40, 1
%42 = add i32 %38, %41
store i32 %42, i32* %sv_0.1.be.reg2mem
br label LBL_2
LBL_11:
%43 = add i32 %spec.select, 1
store i32 %43, i32* %sv_0.1.be.reg2mem
br label LBL_2
LBL_12:
%44 = load i32, i32* %sv_1, align 4
%45 = add i32 %44, %spec.select
store i32 %45, i32* %sv_0.1.be.reg2mem
br label LBL_2
LBL_13:
%46 = icmp sgt i32 %spec.select, 0
%47 = sext i1 %46 to i32
%spec.select3 = add i32 %spec.select, %47
store i32 %spec.select3, i32* %sv_0.1.be.reg2mem
br label LBL_2
LBL_14:
%48 = load i32, i32* %sv_1, align 4
%49 = zext i32 %48 to i64
%50 = sext i32 %spec.select to i64
%51 = icmp slt i64 %50, %49
%52 = sub i32 %spec.select, %48
%spec.select4 = select i1 %51, i32 0, i32 %52
store i32 %spec.select4, i32* %sv_0.1.be.reg2mem
br label LBL_2
LBL_15:
%53 = inttoptr i64 %4 to i64*
call void @free(i64* %53)
%54 = call i64 @FUNC(i64 0)
%55 = call i64 @FUNC(i64 1)
ret i64 %55
uselistorder i32 %29, { 1, 0, 2, 3, 4, 5 }
uselistorder i32 %spec.select, { 10, 11, 4, 7, 5, 9, 6, 2, 0, 1, 3, 8 }
uselistorder i32 %12, { 1, 2, 0 }
uselistorder i32 %11, { 1, 0, 2, 3, 4 }
uselistorder i32 %10, { 1, 0, 2, 3 }
uselistorder i32* %sv_2, { 1, 0, 2 }
uselistorder i32* %sv_1, { 1, 2, 3, 4, 5, 0, 6 }
uselistorder i32* %sv_0.17.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.1.be.reg2mem, { 7, 1, 6, 9, 5, 8, 4, 10, 2, 3, 0, 11 }
uselistorder i32 32, { 1, 0 }
uselistorder i32 0, { 4, 3, 2, 0, 6, 7, 8, 1, 5, 9 }
uselistorder i64 (i64)* @r_cons_show_cursor, { 1, 0 }
uselistorder i64 (i64)* @r_cons_set_raw, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i32 1, { 11, 8, 9, 10, 5, 4, 12, 3, 7, 6, 2, 1, 0 }
uselistorder label LBL_11, { 2, 0, 1 }
uselistorder label LBL_2, { 8, 10, 7, 4, 6, 5, 3, 2, 9, 1, 0 }
} | 1 |
BinRealVul | fq_flow_idx_7136 | fq_flow_idx | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i32* %arg1 to i64
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = add i64 %1, 4
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = zext i32 %5 to i64
%7 = and i64 %2, 4294967295
%8 = call i64 @FUNC(i64 %7, i64 %6)
ret i64 %8
} | 0 |
BinRealVul | prepenv_10972 | prepenv | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = urem i64 %1, 2
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %3, i8** getelementptr inbounds ([8 x i8*], [8 x i8*]* @gv_0, i64 0, i64 0))
br label LBL_2
LBL_2:
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = inttoptr i64 %10 to i8**
%13 = call i64 @FUNC(i64 %3, i8** %12)
br label LBL_4
LBL_4:
%14 = call i64 @FUNC(i64 %3)
ret i64 %14
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64 (i64, i8**)* @fillenv, { 1, 0 }
} | 1 |
BinRealVul | clamp_mv_17192 | clamp_mv | define i64 @FUNC(i32* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg2 to i64
%4 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = and i64 %1, 4294967295
%9 = and i64 %2, 4294967295
%10 = call i64 @FUNC(i64 %9, i64 %8, i32 %7)
%11 = trunc i64 %10 to i32
%12 = bitcast i64* %arg2 to i32*
store i32 %11, i32* %12, align 4
%13 = add i64 %4, 12
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = add i64 %4, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = ptrtoint i32* %arg3 to i64
%20 = add i64 %19, 4
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = zext i32 %18 to i64
%24 = zext i32 %22 to i64
%25 = call i64 @FUNC(i64 %24, i64 %23, i32 %15)
%26 = trunc i64 %25 to i32
%27 = add i64 %3, 4
%28 = inttoptr i64 %27 to i32*
store i32 %26, i32* %28, align 4
ret i64 %25
uselistorder i64 %25, { 1, 0 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i32)* @av_clip, { 1, 0 }
uselistorder i64 4294967295, { 0, 1, 3, 2 }
} | 1 |
BinRealVul | postprocess_request_17894 | postprocess_request | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC()
%1 = call i64 @FUNC()
%2 = call i64 @FUNC()
%3 = call i64 @FUNC()
ret i64 0
} | 1 |
BinRealVul | replay_save_event_524 | replay_save_event | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = load i32, i32* inttoptr (i64 4210732 to i32*), align 4
%1 = icmp eq i32 %0, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_8, label LBL_1
LBL_1:
%2 = ptrtoint i64* %arg1 to i64
%3 = and i64 %arg2, 4294967295
%4 = call i64 @FUNC(i64 1)
%5 = call i64 @FUNC(i64 %3)
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = load i32, i32* %7, align 4
%12 = icmp eq i32 %11, 5
br i1 %12, label LBL_6, label LBL_2
LBL_2:
%13 = icmp sgt i32 %11, 5
br i1 %13, label LBL_7, label LBL_3
LBL_3:
store i64 4, i64* %rax.0.reg2mem
switch i32 %11, label LBL_7 [
i32 4, label LBL_8
i32 2, label LBL_4
i32 3, label LBL_5
]
LBL_4:
%14 = call i64 @FUNC(i64 %9)
store i64 %14, i64* %rax.0.reg2mem
br label LBL_8
LBL_5:
%15 = add i64 %2, 16
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17)
store i64 %18, i64* %rax.0.reg2mem
br label LBL_8
LBL_6:
%19 = add i64 %2, 16
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = call i64 @FUNC(i64 %21)
store i64 %22, i64* %rax.0.reg2mem
br label LBL_8
LBL_7:
%23 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_0, i64 0, i64 0), i64 %9)
call void @exit(i32 1)
unreachable
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %9, { 1, 0, 2 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3, 5 }
uselistorder i32 5, { 1, 0 }
uselistorder i64 (i64)* @replay_put_byte, { 1, 0 }
uselistorder label LBL_8, { 1, 2, 3, 0, 4 }
} | 0 |
BinRealVul | evdns_getaddrinfo_cancel_9486 | evdns_getaddrinfo_cancel | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %0)
store i64 %6, i64* %storemerge.reg2mem
br label LBL_7
LBL_2:
%7 = add i64 %0, 32
%8 = call i64 @FUNC(i64 %7)
%9 = add i64 %0, 12
%10 = inttoptr i64 %9 to i32*
store i32 1, i32* %10, align 4
%11 = add i64 %0, 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_4, label LBL_3
LBL_3:
%15 = call i64 @FUNC(i64 %7, i64 %13)
br label LBL_4
LBL_4:
%16 = add i64 %0, 24
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 0
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = call i64 @FUNC(i64 %7, i64 %18)
br label LBL_6
LBL_6:
%21 = call i64 @FUNC(i64 %7)
store i64 %21, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %7, { 2, 1, 0, 3 }
uselistorder i64 %0, { 1, 2, 4, 3, 0, 5, 6 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @evdns_cancel_request, { 1, 0 }
uselistorder i64 (i64)* @EVDNS_UNLOCK, { 1, 0 }
} | 0 |
BinRealVul | instantiate_veth_9917 | instantiate_veth | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = bitcast i64* %arg2 to i8*
%1 = inttoptr i64 %arg1 to i8*
%2 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %0, i32 16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i8* %1)
%3 = icmp ult i32 %2, 16
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 ([19 x i8]* @gv_2 to i64*), i32 1, i32 18, %_IO_FILE* %4)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%6 = call i64 @FUNC(i64 %arg1, i64 16)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label LBL_4, label LBL_3
LBL_3:
%9 = sub i32 0, %7
%10 = call i8* @strerror(i32 %9)
%11 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%12 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %11, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_3, i64 0, i64 0), i8* %1, i8* %10, i8* %10)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%13 = call i64 @FUNC(i64 %arg1)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_6, label LBL_5
LBL_5:
%16 = sub i32 0, %14
%17 = call i8* @strerror(i32 %16)
%18 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8
%19 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %18, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @gv_4, i64 0, i64 0), i8* %1, i8* %17)
br label LBL_6
LBL_6:
%20 = call i64 @FUNC(i64 %arg1, i64 1)
store i64 %20, 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 i8* %1, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i8* (i32)* @strerror, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder %_IO_FILE** @gv_1, { 2, 1, 0 }
uselistorder i64 0, { 3, 4, 5, 6, 7, 8, 0, 1, 2, 9 }
} | 0 |
BinRealVul | b43_bcma_probe_17634 | b43_bcma_probe | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp ne i32 %2, 23
%4 = icmp eq i32 %2, 24
%5 = icmp eq i1 %4, false
%or.cond = icmp eq i1 %3, %5
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%6 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%7 = call i32 @fwrite(i64* bitcast ([107 x i8]* @gv_1 to i64*), i32 1, i32 106, %_IO_FILE* %6)
store i64 1, i64* %rax.0.shrunk.reg2mem
br label LBL_6
LBL_2:
%8 = ptrtoint i32* %arg1 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
store i64 2, i64* %rax.0.shrunk.reg2mem
br i1 %11, label LBL_3, label LBL_6
LBL_3:
%12 = call i64 @FUNC(i64 %9)
%13 = icmp ult i64 %12, -1000
store i64 %12, i64* %rax.0.shrunk.reg2mem
br i1 %13, label LBL_4, label LBL_6
LBL_4:
%14 = call i64 @FUNC(i64 %9, i64 %12)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
store i64 %14, i64* %rax.0.shrunk.reg2mem
br i1 %17, label LBL_5, label LBL_6
LBL_5:
%18 = inttoptr i64 %12 to i32*
%19 = load i32, i32* %18, align 4
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %20)
store i64 %14, i64* %rax.0.shrunk.reg2mem
br label LBL_6
LBL_6:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %14, { 1, 0, 2 }
uselistorder i64 %12, { 3, 1, 0, 2 }
uselistorder i32 %2, { 1, 0 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 4, 2, 1, 3, 5 }
uselistorder i32 0, { 1, 0 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder label LBL_6, { 3, 0, 1, 2, 4 }
} | 1 |
BinRealVul | blk_mq_delay_queue_4298 | blk_mq_delay_queue | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i64
%5 = icmp eq i1 %3, false
%6 = icmp eq i1 %5, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %0)
%8 = call i64 @FUNC(i64 %arg2)
%9 = call i64 @FUNC(i64 %0)
%10 = and i64 %9, 4294967295
%11 = call i64 @FUNC(i64 %10, i64 %0, i64 %8)
store i64 %11, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 2, 0, 3 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | probe_13991 | probe | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.111.reg2mem = alloca i32
%storemerge12.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%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 = icmp slt i32 %3, 22
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_22, label LBL_1
LBL_1:
%5 = trunc i64 %0 to i16
%6 = icmp eq i16 %5, 0
%7 = icmp eq i1 %6, false
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_22, label LBL_2
LBL_2:
%8 = add i64 %0, 2
%9 = inttoptr i64 %8 to i16*
%10 = load i16, i16* %9, align 2
%11 = icmp eq i16 %10, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_22
LBL_3:
%12 = add i64 %0, 4
%13 = inttoptr i64 %12 to i16*
%14 = load i16, i16* %13, align 2
%15 = icmp eq i16 %14, 0
%16 = icmp eq i1 %15, false
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_4, label LBL_22
LBL_4:
%17 = zext i16 %14 to i32
%18 = add i64 %0, 18
store i32 0, i32* %storemerge12.reg2mem
store i32 0, i32* %sv_0.111.reg2mem
br label LBL_19
LBL_5:
%19 = or i32 %71, 10
%20 = zext i32 %19 to i64
%21 = add i64 %20, %0
%22 = inttoptr i64 %21 to i16*
%23 = load i16, i16* %22, align 2
%24 = icmp ult i16 %23, 2
br i1 %24, label LBL_7, label LBL_6
LBL_6:
%25 = icmp ult i32 %storemerge12.reload, 25
%26 = select i1 %25, i32 %storemerge12.reload, i32 25
%27 = zext i32 %26 to i64
store i64 %27, i64* %rax.0.reg2mem
br label LBL_22
LBL_7:
%28 = or i32 %71, 13
%29 = zext i32 %28 to i64
%30 = add i64 %29, %0
%31 = inttoptr i64 %30 to i8*
%32 = load i8, i8* %31, align 1
%33 = icmp eq i8 %32, 0
br i1 %33, label LBL_9, label LBL_8
LBL_8:
%34 = icmp ult i32 %storemerge12.reload, 25
%35 = select i1 %34, i32 %storemerge12.reload, i32 25
%36 = zext i32 %35 to i64
store i64 %36, i64* %rax.0.reg2mem
br label LBL_22
LBL_9:
%37 = or i32 %71, 14
%38 = zext i32 %37 to i64
%39 = add i64 %38, %0
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = icmp ult i32 %41, 40
br i1 %42, label LBL_10, label LBL_11
LBL_10:
%43 = icmp ult i32 %storemerge12.reload, 25
%44 = select i1 %43, i32 %storemerge12.reload, i32 25
%45 = zext i32 %44 to i64
store i64 %45, i64* %rax.0.reg2mem
br label LBL_22
LBL_11:
%46 = zext i32 %71 to i64
%47 = add i64 %18, %46
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = icmp ult i32 %49, 22
br i1 %50, label LBL_12, label LBL_13
LBL_12:
%51 = icmp ult i32 %storemerge12.reload, 25
%52 = select i1 %51, i32 %storemerge12.reload, i32 25
%53 = zext i32 %52 to i64
store i64 %53, i64* %rax.0.reg2mem
br label LBL_22
LBL_13:
%54 = add i32 %49, 8
%55 = icmp ugt i32 %54, %3
store i32 %sv_0.111.reload, i32* %sv_0.0.reg2mem
br i1 %55, label LBL_18, label LBL_14
LBL_14:
%56 = zext i32 %49 to i64
%57 = add i64 %56, %0
%58 = inttoptr i64 %57 to i8*
%59 = load i8, i8* %58, align 1
%60 = icmp eq i8 %59, 40
br i1 %60, label LBL_17, label LBL_15
LBL_15:
%61 = inttoptr i64 %57 to i64*
%62 = load i64, i64* %61, align 8
%63 = icmp eq i64 %62, 1196314761
br i1 %63, label LBL_17, label LBL_16
LBL_16:
%64 = icmp ult i32 %storemerge12.reload, 25
%65 = select i1 %64, i32 %storemerge12.reload, i32 25
%66 = zext i32 %65 to i64
store i64 %66, i64* %rax.0.reg2mem
br label LBL_22
LBL_17:
%67 = add i32 %sv_0.111.reload, 1
store i32 %67, i32* %sv_0.0.reg2mem
br label LBL_18
LBL_18:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%68 = add i32 %storemerge12.reload, 1
%69 = icmp ult i32 %68, %17
%70 = icmp eq i1 %69, false
store i32 %68, i32* %storemerge12.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.111.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %70, label LBL_20, label LBL_19
LBL_19:
%sv_0.111.reload = load i32, i32* %sv_0.111.reg2mem
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%71 = mul i32 %storemerge12.reload, 16
%72 = add i32 %71, 22
%73 = icmp ugt i32 %72, %3
store i32 %sv_0.111.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %73, label LBL_20, label LBL_5
LBL_20:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%74 = icmp ult i32 %sv_0.1.lcssa.reload, %17
%75 = icmp eq i1 %74, false
store i64 51, i64* %rax.0.reg2mem
br i1 %75, label LBL_22, label LBL_21
LBL_21:
%76 = icmp eq i32 %sv_0.1.lcssa.reload, 0
%77 = icmp eq i1 %76, false
%78 = select i1 %77, i64 26, i64 25
store i64 %78, i64* %rax.0.reg2mem
br label LBL_22
LBL_22:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %storemerge12.reload, { 11, 2, 1, 4, 3, 10, 9, 8, 7, 6, 5, 0 }
uselistorder i32 %sv_0.111.reload, { 0, 2, 1 }
uselistorder i16 %14, { 1, 0 }
uselistorder i64 %0, { 0, 2, 3, 4, 1, 6, 5, 7, 8 }
uselistorder i32* %storemerge12.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.111.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.1.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 11, 1, 8, 9, 10, 7, 6, 2, 5, 4, 3 }
uselistorder i32 0, { 2, 0, 1 }
uselistorder i32 22, { 1, 0, 2 }
uselistorder label LBL_22, { 10, 0, 5, 6, 7, 8, 9, 1, 4, 3, 2 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_18, { 1, 0 }
} | 1 |
BinRealVul | hbitmap_iter_init_14979 | hbitmap_iter_init | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
store i64 %0, i64* %arg1, align 8
%2 = add i64 %0, 2048
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = urem i32 %4, 64
%6 = zext i32 %5 to i64
%rdx.0 = lshr i64 %arg3, %6
%7 = udiv i64 %rdx.0, 64
%8 = add i64 %1, 8
%9 = inttoptr i64 %8 to i64*
store i64 %7, i64* %9, align 8
%10 = load i32, i32* %3, align 4
%11 = add i64 %1, 16
%12 = inttoptr i64 %11 to i32*
store i32 %10, i32* %12, align 4
%13 = add i64 %1, 24
store i64 3, i64* %indvars.iv.reg2mem
store i64 %rdx.0, i64* %sv_0.02.reg2mem
br label LBL_1
LBL_1:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%14 = udiv i64 %sv_0.02.reload, 64
%15 = mul i64 %indvars.iv.reload, 64
%16 = add nuw nsw i64 %15, %14
%17 = mul i64 %16, 8
%18 = add i64 %17, %0
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = urem i64 %sv_0.02.reload, 64
%22 = shl i64 -1, %21
%23 = and i64 %22, %20
%24 = icmp eq i64 %indvars.iv.reload, 3
store i64 %23, i64* %storemerge.reg2mem
br i1 %24, label LBL_2, label LBL_3
LBL_2:
%25 = mul i64 %indvars.iv.reload, 8
%26 = add i64 %13, %25
%27 = inttoptr i64 %26 to i64*
%storemerge.reload = load i64, i64* %storemerge.reg2mem
store i64 %storemerge.reload, i64* %27, align 8
%indvars.iv.next = add nsw i64 %indvars.iv.reload, -1
%28 = icmp eq i64 %indvars.iv.reload, 0
%29 = icmp eq i1 %28, false
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %14, i64* %sv_0.02.reg2mem
br i1 %29, label LBL_1, label LBL_4
LBL_3:
%30 = trunc i64 %sv_0.02.reload to i32
%31 = urem i32 %30, 64
%32 = icmp eq i32 %31, 0
%33 = zext i32 %31 to i64
%34 = shl i64 -1, %33
%.op = add i64 %34, -1
%35 = select i1 %32, i64 -2, i64 %.op
%36 = and i64 %35, %23
store i64 %36, i64* %storemerge.reg2mem
br label LBL_2
LBL_4:
ret i64 0
uselistorder i32 %31, { 1, 0 }
uselistorder i64 %23, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 2, 0, 4, 1, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.02.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 2, 0, 1 }
uselistorder i64 3, { 1, 0 }
uselistorder i64 64, { 2, 0, 1, 3 }
uselistorder label LBL_2, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | ehci_reset_queue_671 | ehci_reset_queue | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0))
%2 = call i64 @FUNC(i64 %0)
store i64 0, i64* %arg1, align 8
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i32*
store i32 0, i32* %4, align 4
%5 = add i64 %0, 12
%6 = inttoptr i64 %5 to i32*
store i32 0, i32* %6, align 4
%7 = and i64 %2, 4294967295
ret i64 %7
} | 0 |
BinRealVul | bitand_12433 | bitand | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = and i64 %arg2, 4294967295
%1 = call i64 @FUNC(i64 %arg1, i64 %0)
store i64 %1, i64* %storemerge.reg2mem
br label LBL_1
LBL_1:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%2 = call i64 @FUNC(i64 %arg1, i64 38)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %storemerge.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_2:
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 1, 0, 2 }
} | 1 |
BinRealVul | icp_set_cppr_14102 | icp_set_cppr | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = ashr exact i64 %sext, 31
%3 = add nsw i64 %2, %1
%4 = mul i64 %3, 4
%5 = add i64 %4, %0
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = udiv i32 %7, 16777216
%9 = trunc i32 %8 to i8
%10 = urem i32 %7, 16777216
%arg3.tr = trunc i64 %arg3 to i32
%11 = mul i32 %arg3.tr, 16777216
%12 = or i32 %10, %11
store i32 %12, i32* %6, align 4
%13 = trunc i64 %arg3 to i8
%14 = icmp ult i8 %13, %9
%15 = icmp eq i1 %14, false
%16 = zext i32 %12 to i64
%17 = icmp eq i32 %12, 0
br i1 %15, label LBL_4, label LBL_1
LBL_1:
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_6, label LBL_2
LBL_2:
%18 = add i64 %5, 8
%19 = inttoptr i64 %18 to i8*
%20 = load i8, i8* %19, align 1
%21 = zext i8 %20 to i64
%22 = icmp ult i8 %20, %13
store i64 %21, i64* %rax.0.reg2mem
br i1 %22, label LBL_6, label LBL_3
LBL_3:
store i32 0, i32* %6, align 4
%23 = add i64 %5, 4
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = zext i32 %25 to i64
%27 = call i64 @FUNC(i64 %26)
%28 = add i64 %0, 8
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %30, i64 %16)
store i64 %31, i64* %rax.0.reg2mem
br label LBL_6
LBL_4:
%32 = icmp eq i1 %17, false
store i64 %16, i64* %rax.0.reg2mem
br i1 %32, label LBL_6, label LBL_5
LBL_5:
%33 = and i64 %1, 4294967295
%34 = call i64 @FUNC(i64 %0, i64 %33)
store i64 %34, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i1 %17, { 1, 0 }
uselistorder i32 %12, { 1, 0, 2 }
uselistorder i32 %7, { 1, 0 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %0, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 5, 1, 2, 3 }
uselistorder i32 16777216, { 0, 2, 1 }
uselistorder i64 4, { 1, 0 }
uselistorder label LBL_6, { 1, 2, 3, 0, 4 }
} | 1 |
BinRealVul | parse_add_fd_2740 | parse_add_fd | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 4294967295)
%6 = trunc i64 %5 to i32
%7 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i64 4294967295)
%8 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%9 = icmp slt i32 %6, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_3, i64 0, i64 0), i64 4294967295, i64 %3, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_2:
%12 = icmp sgt i32 %6, 2
br i1 %12, label LBL_4, label LBL_3
LBL_3:
%13 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_4, i64 0, i64 0), i64 4294967295, i64 %3, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_4:
%14 = call i32 (i32, i32, ...) @fcntl(i32 %6, i32 1)
%15 = urem i32 %14, 2
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_6, label LBL_5
LBL_5:
%17 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_5, i64 0, i64 0), i64 4294967295, i64 %3, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_6:
%sext = mul i64 %7, 4294967296
%18 = icmp slt i64 %sext, 0
%19 = icmp eq i1 %18, false
br i1 %19, label LBL_8, label LBL_7
LBL_7:
%20 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_6, i64 0, i64 0), i64 4294967295, i64 %3, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_8:
%21 = call i32 (i32, i32, ...) @fcntl(i32 %6, i32 1030)
%22 = icmp eq i32 %21, -1
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_10, label LBL_9
LBL_9:
%24 = call i32* @__errno_location()
%25 = load i32, i32* %24, align 4
%26 = call i8* @strerror(i32 %25)
%27 = ptrtoint i8* %26 to i64
%28 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_7, i64 0, i64 0), i64 %27, i64 %3, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_11
LBL_10:
%29 = ashr exact i64 %sext, 32
%30 = icmp eq i64 %8, 0
%31 = icmp eq i1 %30, false
%32 = zext i1 %31 to i64
%33 = zext i32 %21 to i64
%34 = call i64 @FUNC(i64 %33, i64 1, i64 %29, i64 %32, i64 %8, i64 4199024)
%35 = call i64 @FUNC(i64 %34)
store i64 0, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %8, { 1, 0 }
uselistorder i32 %6, { 0, 2, 1, 3 }
uselistorder i64 %3, { 4, 3, 2, 1, 0 }
uselistorder i64 %2, { 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 4, 3, 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 6, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i32 (i32, i32, ...)* @fcntl, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @qerror_report, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64, i8*, i64)* @qemu_opt_get_number, { 1, 0 }
uselistorder i64 4294967295, { 3, 2, 7, 4, 8, 1, 6, 0, 5, 10, 11, 9 }
} | 0 |
BinRealVul | nand_command_14715 | nand_command | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 255
br i1 %4, label LBL_25, label LBL_1
LBL_1:
%5 = icmp ult i32 %3, 256
br i1 %5, label LBL_2, label LBL_30
LBL_2:
%6 = icmp eq i32 %3, 208
br i1 %6, label LBL_28, label LBL_3
LBL_3:
%7 = icmp ult i32 %3, 209
br i1 %7, label LBL_4, label LBL_30
LBL_4:
%8 = icmp eq i32 %3, 144
br i1 %8, label LBL_18, label LBL_5
LBL_5:
%9 = icmp ult i32 %3, 145
br i1 %9, label LBL_6, label LBL_30
LBL_6:
%10 = icmp eq i32 %3, 128
br i1 %10, label LBL_26, label LBL_7
LBL_7:
%11 = icmp ult i32 %3, 129
br i1 %11, label LBL_8, label LBL_30
LBL_8:
%12 = icmp eq i32 %3, 112
br i1 %12, label LBL_29, label LBL_9
LBL_9:
%13 = icmp ult i32 %3, 113
br i1 %13, label LBL_10, label LBL_30
LBL_10:
%14 = icmp eq i32 %3, 96
store i64 96, i64* %rax.0.reg2mem
br i1 %14, label LBL_31, label LBL_11
LBL_11:
%15 = icmp ult i32 %3, 97
br i1 %15, label LBL_12, label LBL_30
LBL_12:
%16 = icmp eq i32 %3, 53
br i1 %16, label LBL_21, label LBL_13
LBL_13:
%17 = icmp ult i32 %3, 54
br i1 %17, label LBL_14, label LBL_30
LBL_14:
%18 = icmp eq i32 %3, 16
br i1 %18, label LBL_27, label LBL_15
LBL_15:
%19 = icmp ult i32 %3, 17
br i1 %19, label LBL_16, label LBL_30
LBL_16:
switch i32 %3, label LBL_30 [
i32 0, label LBL_17
i32 5, label LBL_21
]
LBL_17:
%20 = add i64 %2, 12
%21 = inttoptr i64 %20 to i32*
store i32 0, i32* %21, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_31
LBL_18:
%22 = add i64 %2, 4
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i64 %2, 8
%26 = inttoptr i64 %25 to i32*
store i32 %24, i32* %26, align 4
%27 = add i64 %2, 12
%28 = inttoptr i64 %27 to i32*
store i32 0, i32* %28, align 4
%29 = add i64 %2, 16
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = zext i32 %31 to i64
%33 = call i64 @FUNC(i64 %2, i64 %32)
%34 = add i64 %2, 20
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = zext i32 %36 to i64
%38 = call i64 @FUNC(i64 %2, i64 %37)
%39 = call i64 @FUNC(i64 %2, i64 81)
%40 = load i32, i32* %35, align 4
%41 = zext i32 %40 to i64
%42 = mul i64 %41, 4
%43 = add i64 %42, ptrtoint (i32** @gv_0 to i64)
%44 = inttoptr i64 %43 to i32*
%45 = load i32, i32* %44, align 4
%46 = urem i32 %45, 2
%47 = icmp eq i32 %46, 0
br i1 %47, label LBL_20, label LBL_19
LBL_19:
%48 = add i64 %2, 56
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = icmp eq i32 %50, 2
%52 = icmp eq i1 %51, false
%. = select i1 %52, i64 21, i64 85
%53 = call i64 @FUNC(i64 %2, i64 %.)
store i64 %53, i64* %rax.0.reg2mem
br label LBL_31
LBL_20:
%54 = call i64 @FUNC(i64 %2, i64 192)
store i64 %54, i64* %rax.0.reg2mem
br label LBL_31
LBL_21:
%55 = add i64 %2, 20
%56 = inttoptr i64 %55 to i32*
%57 = load i32, i32* %56, align 4
%58 = zext i32 %57 to i64
%59 = mul i64 %58, 4
%60 = add i64 %59, ptrtoint (i32** @gv_0 to i64)
%61 = inttoptr i64 %60 to i32*
%62 = load i32, i32* %61, align 4
%63 = urem i32 %62, 2
%64 = icmp eq i32 %63, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %64, label LBL_31, label LBL_22
LBL_22:
%65 = add i64 %2, 28
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = add i64 %2, 32
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = urem i32 %70, 32
%72 = icmp eq i32 %71, 0
%notmask = shl nsw i32 -1, %71
%73 = sub i32 0, %notmask
%phitmp7 = sub i32 %73, 1
%storemerge = select i1 %72, i32 0, i32 %phitmp7
%74 = and i32 %storemerge, %67
%75 = add i64 %2, 52
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = icmp eq i32 %77, 0
%79 = add i64 %2, 36
%80 = inttoptr i64 %79 to i32*
%81 = load i32, i32* %80, align 4
%82 = urem i32 %81, 32
%83 = shl i32 1, %82
br i1 %78, label LBL_24, label LBL_23
LBL_23:
%84 = sub i32 %83, %74
%85 = add i64 %2, 12
%86 = inttoptr i64 %85 to i32*
store i32 %84, i32* %86, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_31
LBL_24:
%87 = add i64 %2, 40
%88 = inttoptr i64 %87 to i32*
%89 = load i32, i32* %88, align 4
%90 = urem i32 %89, 32
%91 = shl i32 1, %90
%92 = sub i32 %83, %74
%93 = add i32 %92, %91
%94 = add i64 %2, 12
%95 = inttoptr i64 %94 to i32*
store i32 %93, i32* %95, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_31
LBL_25:
%96 = add i64 %2, 64
%97 = call i64 @FUNC(i64 %96)
store i64 %97, i64* %rax.0.reg2mem
br label LBL_31
LBL_26:
%98 = add i64 %2, 4
%99 = inttoptr i64 %98 to i32*
%100 = load i32, i32* %99, align 4
%101 = add i64 %2, 8
%102 = inttoptr i64 %101 to i32*
store i32 %100, i32* %102, align 4
%103 = add i64 %2, 12
%104 = inttoptr i64 %103 to i32*
store i32 0, i32* %104, align 4
store i64 %2, i64* %rax.0.reg2mem
br label LBL_31
LBL_27:
%105 = add i64 %2, 48
%106 = inttoptr i64 %105 to i32*
%107 = load i32, i32* %106, align 4
%108 = zext i32 %107 to i64
%109 = icmp eq i32 %107, 0
%spec.select11 = select i1 %109, i64 %108, i64 %2
ret i64 %spec.select11
LBL_28:
%110 = add i64 %2, 28
%111 = inttoptr i64 %110 to i32*
%112 = load i32, i32* %111, align 4
%113 = add i64 %2, 44
%114 = inttoptr i64 %113 to i32*
%115 = load i32, i32* %114, align 4
%.tr = zext i32 %115 to i64
%116 = mul i64 %.tr, 8
%117 = and i64 %116, 56
%118 = icmp eq i64 %117, 0
%119 = shl i64 -1, %117
%phitmp = trunc i64 %119 to i32
%120 = sub i32 0, %phitmp
%121 = sub i32 %120, 1
%storemerge4 = select i1 %118, i32 0, i32 %121
%122 = and i32 %storemerge4, %112
store i32 %122, i32* %111, align 4
%123 = add i64 %2, 20
%124 = inttoptr i64 %123 to i32*
%125 = load i32, i32* %124, align 4
%126 = zext i32 %125 to i64
%127 = mul i64 %126, 4
%128 = add i64 %127, ptrtoint (i32** @gv_0 to i64)
%129 = inttoptr i64 %128 to i32*
%130 = load i32, i32* %129, align 4
%131 = urem i32 %130, 2
%132 = icmp eq i32 %131, 0
%storemerge10.v = select i1 %132, i32 8, i32 16
%storemerge10 = shl i32 %122, %storemerge10.v
store i32 %storemerge10, i32* %111, align 4
%133 = add i64 %2, 48
%134 = inttoptr i64 %133 to i32*
%135 = load i32, i32* %134, align 4
%136 = zext i32 %135 to i64
%137 = icmp eq i32 %135, 0
%spec.select12 = select i1 %137, i64 %136, i64 %2
store i64 %spec.select12, i64* %rax.0.reg2mem
br label LBL_31
LBL_29:
%138 = add i64 %2, 4
%139 = inttoptr i64 %138 to i32*
%140 = load i32, i32* %139, align 4
%141 = add i64 %2, 8
%142 = inttoptr i64 %141 to i32*
store i32 %140, i32* %142, align 4
%143 = add i64 %2, 12
%144 = inttoptr i64 %143 to i32*
store i32 0, i32* %144, align 4
%145 = add i64 %2, 24
%146 = inttoptr i64 %145 to i32*
%147 = load i32, i32* %146, align 4
%148 = zext i32 %147 to i64
%149 = call i64 @FUNC(i64 %2, i64 %148)
store i64 %149, i64* %rax.0.reg2mem
br label LBL_31
LBL_30:
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0), i32 %3)
%151 = sext i32 %150 to i64
store i64 %151, i64* %rax.0.reg2mem
br label LBL_31
LBL_31:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %3, { 0, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64 %2, { 17, 16, 18, 20, 19, 4, 35, 36, 38, 37, 5, 7, 3, 21, 23, 22, 39, 2, 10, 9, 1, 8, 11, 12, 14, 13, 15, 26, 24, 25, 27, 29, 28, 31, 30, 32, 34, 33, 0, 6 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 8, 1, 9, 12, 5, 4, 6, 11, 10, 3, 7 }
uselistorder i32 2, { 0, 1, 3, 2 }
uselistorder i64 ptrtoint (i32** @gv_0 to i64), { 0, 2, 1 }
uselistorder i64 (i64, i64)* @nand_pushio_byte, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 8, { 1, 0, 2, 3 }
uselistorder i64 4, { 3, 0, 4, 1, 2, 5 }
uselistorder i32 0, { 5, 6, 7, 3, 0, 8, 9, 10, 4, 1, 11, 12, 13, 14, 15, 2 }
uselistorder label LBL_31, { 3, 4, 0, 5, 6, 7, 8, 1, 9, 10, 11, 2 }
} | 1 |
BinRealVul | config_input_4543 | config_input | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = add i64 %7, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = trunc i64 %1 to i32
%12 = mul i32 %10, %11
%13 = sdiv i32 %12, 500
%14 = inttoptr i64 %7 to i32*
store i32 %13, i32* %14, align 4
%15 = sext i32 %13 to i64
%16 = call i64 @FUNC(i64 %15, i64 1)
%17 = add i64 %7, 8
%18 = inttoptr i64 %17 to i64*
store i64 %16, i64* %18, align 8
%19 = icmp eq i64 %16, 0
%20 = icmp eq i1 %19, false
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %20, label LBL_1, label LBL_2
LBL_1:
%21 = add i64 %7, 16
%22 = inttoptr i64 %21 to i64*
store i64 %16, i64* %22, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %13, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | gitn_box_del_5928 | gitn_box_del | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.1.lcssa.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%.reg2mem3 = alloca i32
%rdi.11.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%.reg2mem = alloca i32
%0 = icmp eq i64 %arg1, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %0, label LBL_6, label LBL_1
LBL_1:
%1 = add i64 %arg1, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
store i32 %3, i32* %.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
store i64 %arg1, i64* %rdi.11.reg2mem
store i64 %arg1, i64* %rdi.1.lcssa.reg2mem
br i1 %4, label LBL_5, label LBL_2
LBL_2:
%rdi.11.reload = load i64, i64* %rdi.11.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%.reload = load i32, i32* %.reg2mem
%5 = mul i64 %indvars.iv.reload, 8
%6 = add i64 %5, %rdi.11.reload
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
store i32 %.reload, i32* %.reg2mem3
store i64 %rdi.11.reload, i64* %rdi.0.reg2mem
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %8)
%.pre = load i32, i32* %2, align 4
store i32 %.pre, i32* %.reg2mem3
store i64 %8, i64* %rdi.0.reg2mem
br label LBL_4
LBL_4:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%.reload4 = load i32, i32* %.reg2mem3
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%11 = zext i32 %.reload4 to i64
%12 = icmp ult i64 %indvars.iv.next, %11
store i32 %.reload4, i32* %.reg2mem
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %rdi.0.reload, i64* %rdi.11.reg2mem
store i64 %rdi.0.reload, i64* %rdi.1.lcssa.reg2mem
br i1 %12, label LBL_2, label LBL_5
LBL_5:
%rdi.1.lcssa.reload = load i64, i64* %rdi.1.lcssa.reg2mem
%13 = call i64 @FUNC(i64 %rdi.1.lcssa.reload)
%14 = call i64 @FUNC(i64 %arg1)
store i64 %14, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %.reload4, { 1, 0 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i64* %rdi.11.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @gf_free, { 2, 0, 1 }
uselistorder i32 1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 3, 0, 1, 2, 4 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | usbip_stop_eh_18354 | usbip_stop_eh | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0))
ret i64 %2
} | 1 |
BinRealVul | svg_parse_preserveaspectratio_12901 | svg_parse_preserveaspectratio | define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%sv_0.1.ph.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_0.0.ph.reg2mem = alloca i64
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
store i64 %0, i64* %storemerge.reg2mem
br label LBL_1
LBL_1:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%1 = inttoptr i64 %storemerge.reload to i8*
%2 = load i8, i8* %1, align 1
%3 = icmp eq i8 %2, 32
%4 = add i64 %storemerge.reload, 1
store i64 %4, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_2:
%5 = call i8* @strstr(i8* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0))
%6 = icmp eq i8* %5, null
store i64 %0, i64* %sv_0.0.ph.reg2mem
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = bitcast i64* %arg1 to i32*
store i32 1, i32* %7, align 4
%8 = add i64 %storemerge.reload, 4
store i64 %8, i64* %sv_0.0.ph.reg2mem
br label LBL_4
LBL_4:
%9 = ptrtoint i64* %arg1 to i64
%sv_0.0.ph.reload = load i64, i64* %sv_0.0.ph.reg2mem
store i64 %sv_0.0.ph.reload, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%10 = inttoptr i64 %sv_0.0.reload to i8*
%11 = load i8, i8* %10, align 1
%12 = icmp eq i8 %11, 32
%13 = add i64 %sv_0.0.reload, 1
store i64 %13, i64* %sv_0.0.reg2mem
br i1 %12, label LBL_5, label LBL_6
LBL_6:
%14 = call i8* @strstr(i8* %10, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%15 = icmp eq i8* %14, null
br i1 %15, label LBL_8, label LBL_7
LBL_7:
%16 = add i64 %9, 4
%17 = inttoptr i64 %16 to i32*
store i32 0, i32* %17, align 4
%18 = add i64 %sv_0.0.reload, 4
store i64 %18, i64* %sv_0.1.ph.reg2mem
br label LBL_27
LBL_8:
%19 = call i8* @strstr(i8* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0))
%20 = icmp eq i8* %19, null
br i1 %20, label LBL_10, label LBL_9
LBL_9:
%21 = add i64 %9, 4
%22 = inttoptr i64 %21 to i32*
store i32 1, i32* %22, align 4
%23 = add i64 %sv_0.0.reload, 8
store i64 %23, i64* %sv_0.1.ph.reg2mem
br label LBL_27
LBL_10:
%24 = call i8* @strstr(i8* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0))
%25 = icmp eq i8* %24, null
br i1 %25, label LBL_12, label LBL_11
LBL_11:
%26 = add i64 %9, 4
%27 = inttoptr i64 %26 to i32*
store i32 2, i32* %27, align 4
%28 = add i64 %sv_0.0.reload, 8
store i64 %28, i64* %sv_0.1.ph.reg2mem
br label LBL_27
LBL_12:
%29 = call i8* @strstr(i8* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_4, i64 0, i64 0))
%30 = icmp eq i8* %29, null
br i1 %30, label LBL_14, label LBL_13
LBL_13:
%31 = add i64 %9, 4
%32 = inttoptr i64 %31 to i32*
store i32 3, i32* %32, align 4
%33 = add i64 %sv_0.0.reload, 8
store i64 %33, i64* %sv_0.1.ph.reg2mem
br label LBL_27
LBL_14:
%34 = call i8* @strstr(i8* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_5, i64 0, i64 0))
%35 = icmp eq i8* %34, null
br i1 %35, label LBL_16, label LBL_15
LBL_15:
%36 = add i64 %9, 4
%37 = inttoptr i64 %36 to i32*
store i32 4, i32* %37, align 4
%38 = add i64 %sv_0.0.reload, 8
store i64 %38, i64* %sv_0.1.ph.reg2mem
br label LBL_27
LBL_16:
%39 = call i8* @strstr(i8* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_6, i64 0, i64 0))
%40 = icmp eq i8* %39, null
br i1 %40, label LBL_18, label LBL_17
LBL_17:
%41 = add i64 %9, 4
%42 = inttoptr i64 %41 to i32*
store i32 5, i32* %42, align 4
%43 = add i64 %sv_0.0.reload, 8
store i64 %43, i64* %sv_0.1.ph.reg2mem
br label LBL_27
LBL_18:
%44 = call i8* @strstr(i8* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_7, i64 0, i64 0))
%45 = icmp eq i8* %44, null
br i1 %45, label LBL_20, label LBL_19
LBL_19:
%46 = add i64 %9, 4
%47 = inttoptr i64 %46 to i32*
store i32 6, i32* %47, align 4
%48 = add i64 %sv_0.0.reload, 8
store i64 %48, i64* %sv_0.1.ph.reg2mem
br label LBL_27
LBL_20:
%49 = call i8* @strstr(i8* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_8, i64 0, i64 0))
%50 = icmp eq i8* %49, null
br i1 %50, label LBL_22, label LBL_21
LBL_21:
%51 = add i64 %9, 4
%52 = inttoptr i64 %51 to i32*
store i32 7, i32* %52, align 4
%53 = add i64 %sv_0.0.reload, 8
store i64 %53, i64* %sv_0.1.ph.reg2mem
br label LBL_27
LBL_22:
%54 = call i8* @strstr(i8* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_9, i64 0, i64 0))
%55 = icmp eq i8* %54, null
br i1 %55, label LBL_24, label LBL_23
LBL_23:
%56 = add i64 %9, 4
%57 = inttoptr i64 %56 to i32*
store i32 8, i32* %57, align 4
%58 = add i64 %sv_0.0.reload, 8
store i64 %58, i64* %sv_0.1.ph.reg2mem
br label LBL_27
LBL_24:
%59 = call i8* @strstr(i8* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_10, i64 0, i64 0))
%60 = icmp eq i8* %59, null
br i1 %60, label LBL_26, label LBL_25
LBL_25:
%61 = add i64 %9, 4
%62 = inttoptr i64 %61 to i32*
store i32 9, i32* %62, align 4
%63 = add i64 %sv_0.0.reload, 8
store i64 %63, i64* %sv_0.1.ph.reg2mem
br label LBL_27
LBL_26:
store i32 1, i32* %arg3, align 4
store i64 %sv_0.0.reload, i64* %sv_0.1.ph.reg2mem
br label LBL_27
LBL_27:
%sv_0.1.ph.reload = load i64, i64* %sv_0.1.ph.reg2mem
store i64 %sv_0.1.ph.reload, i64* %sv_0.1.reg2mem
br label LBL_29
LBL_28:
%64 = add i64 %sv_0.1.reload, 1
store i64 %64, i64* %sv_0.1.reg2mem
br label LBL_29
LBL_29:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%65 = inttoptr i64 %sv_0.1.reload to i8*
%66 = load i8, i8* %65, align 1
store i64 0, i64* %rax.0.reg2mem
switch i8 %66, label LBL_30 [
i8 32, label LBL_28
i8 0, label LBL_35
]
LBL_30:
%67 = call i8* @strstr(i8* %65, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_11, i64 0, i64 0))
%68 = icmp eq i8* %67, null
br i1 %68, label LBL_32, label LBL_31
LBL_31:
%69 = add i64 %9, 8
%70 = inttoptr i64 %69 to i32*
store i32 0, i32* %70, align 4
store i64 %9, i64* %rax.0.reg2mem
br label LBL_35
LBL_32:
%71 = call i8* @strstr(i8* %65, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_12, i64 0, i64 0))
%72 = icmp eq i8* %71, null
br i1 %72, label LBL_34, label LBL_33
LBL_33:
%73 = add i64 %9, 8
%74 = inttoptr i64 %73 to i32*
store i32 1, i32* %74, align 4
store i64 %9, i64* %rax.0.reg2mem
br label LBL_35
LBL_34:
%75 = ptrtoint i32* %arg3 to i64
store i32 1, i32* %arg3, align 4
store i64 %75, i64* %rax.0.reg2mem
br label LBL_35
LBL_35:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.1.reload, { 1, 0 }
uselistorder i64 %sv_0.0.reload, { 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2 }
uselistorder i64 %9, { 1, 13, 0, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2 }
uselistorder i64 %storemerge.reload, { 2, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i8* null, { 9, 10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12 }
uselistorder i8* (i8*, i8*)* @strstr, { 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32* %arg3, { 1, 0, 2 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_35, { 1, 2, 3, 0 }
uselistorder label LBL_29, { 1, 0 }
uselistorder label LBL_27, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | cipso_v4_optptr_5652 | cipso_v4_optptr | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge.reg2mem = alloca i32
%sv_0.0.in2.reg2mem = alloca i64
%sv_1.03.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = inttoptr i64 %1 to i8*
%4 = load i8, i8* %3, align 1
%5 = mul i8 %4, 4
%6 = and i8 %5, 60
%7 = icmp eq i8 %6, 0
%8 = icmp eq i1 %7, false
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_1, label LBL_7
LBL_1:
%9 = zext i8 %6 to i32
%10 = add nsw i32 %9, -1
%11 = add i64 %2, 1
store i32 %10, i32* %sv_1.03.reg2mem
store i64 %11, i64* %sv_0.0.in2.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.in2.reload = load i64, i64* %sv_0.0.in2.reg2mem
%sv_0.0 = inttoptr i64 %sv_0.0.in2.reload to i8*
%12 = load i8, i8* %sv_0.0, align 1
%13 = icmp eq i8 %12, 108
store i64 %sv_0.0.in2.reload, i64* %rax.0.reg2mem
br i1 %13, label LBL_7, label LBL_3
LBL_3:
%sv_1.03.reload = load i32, i32* %sv_1.03.reg2mem
%14 = icmp ugt i8 %12, 108
br i1 %14, label LBL_5, label LBL_4
LBL_4:
store i32 1, i32* %storemerge.reg2mem
store i64 0, i64* %rax.0.reg2mem
switch i8 %12, label LBL_5 [
i8 0, label LBL_7
i8 1, label LBL_6
]
LBL_5:
%15 = add i64 %sv_0.0.in2.reload, 1
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = zext i8 %17 to i32
store i32 %18, i32* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i32, i32* %storemerge.reg2mem
%19 = sub i32 %sv_1.03.reload, %storemerge.reload
%20 = zext i32 %storemerge.reload to i64
%21 = add i64 %sv_0.0.in2.reload, %20
%22 = icmp eq i32 %19, 0
%23 = icmp slt i32 %19, 0
%24 = icmp eq i1 %23, false
%25 = icmp eq i1 %22, false
%26 = icmp eq i1 %24, %25
store i32 %19, i32* %sv_1.03.reg2mem
store i64 %21, i64* %sv_0.0.in2.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %26, label LBL_2, label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %storemerge.reload, { 1, 0 }
uselistorder i64 %sv_0.0.in2.reload, { 3, 1, 0, 2 }
uselistorder i8 %6, { 1, 0 }
uselistorder i32* %sv_1.03.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.in2.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 (i64)* @ip_hdr, { 1, 0 }
uselistorder label LBL_7, { 2, 1, 0, 3 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.