dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | router_find_exact_exit_enclave_9002 | router_find_exact_exit_enclave | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%0 = call i64 @FUNC()
%1 = bitcast i32* %sv_1 to i64*
%2 = call i64 @FUNC(i64 %arg1, i64* nonnull %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%6 = load i32, i32* %sv_1, align 4
%7 = call i32 @ntohl(i32 %6)
%8 = zext i32 %7 to i64
%9 = call i64 @FUNC(i64* nonnull %sv_0, i64 %8)
br label LBL_2
LBL_2:
ret i64 0
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | parse_user_name_11884 | parse_user_name | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%r12.0.reg2mem = alloca i64
%rbx.0.reg2mem = alloca i64
%.reg2mem = alloca i8
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
store i64 0, i64* %arg2, align 8
%0 = bitcast i64* %sv_0 to i8*
call void @FUNC(i8* nonnull %0, i64 0, i64 32)
store i64 %arg1, i64* %storemerge.reg2mem
br label LBL_2
LBL_1:
%1 = add i64 %storemerge.reload, 1
store i64 %1, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%2 = inttoptr i64 %storemerge.reload to i8*
%3 = load i8, i8* %2, align 1
switch i8 %3, label LBL_3 [
i8 32, label LBL_1
i8 9, label LBL_1
]
LBL_3:
%4 = icmp eq i8 %3, 0
%5 = icmp eq i1 %4, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %5, label LBL_4, label LBL_8
LBL_4:
%6 = ptrtoint i64* %sv_1 to i64
%7 = add i64 %6, -272
store i8 %3, i8* %.reg2mem
store i64 %storemerge.reload, i64* %rbx.0.reg2mem
store i64 0, i64* %r12.0.reg2mem
br label LBL_6
LBL_5:
%rbx.0.reload = load i64, i64* %rbx.0.reg2mem
%sext = mul i64 %r12.0.reload, 4294967296
%8 = ashr exact i64 %sext, 32
%9 = add i64 %7, %8
%10 = inttoptr i64 %9 to i8*
store i8 %.reload, i8* %10, align 1
%11 = add nuw nsw i64 %r12.0.reload, 1
%12 = and i64 %11, 4294967295
%13 = add i64 %rbx.0.reload, 1
%.phi.trans.insert = inttoptr i64 %13 to i8*
%.pre = load i8, i8* %.phi.trans.insert, align 1
store i8 %.pre, i8* %.reg2mem
store i64 %13, i64* %rbx.0.reg2mem
store i64 %12, i64* %r12.0.reg2mem
br label LBL_6
LBL_6:
%r12.0.reload = load i64, i64* %r12.0.reg2mem
%.reload = load i8, i8* %.reg2mem
switch i8 %.reload, label LBL_5 [
i8 32, label LBL_7
i8 9, label LBL_7
i8 0, label LBL_7
]
LBL_7:
%14 = trunc i64 %r12.0.reload to i32
%15 = add i32 %14, 1
%16 = call i64* @malloc(i32 %15)
%17 = ptrtoint i64* %16 to i64
store i64 %17, i64* %arg2, align 8
%18 = call i8* @strcpy(i8* nonnull %0, i8* nonnull %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_8
LBL_8:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %r12.0.reload, { 1, 2, 0 }
uselistorder i8* %0, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i8* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rbx.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %r12.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | sas_init_disc_7273 | sas_init_disc | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = bitcast i64* %arg1 to i32*
store i32 0, i32* %2, align 4
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%3 = mul i64 %indvars.iv.reload, 8
%4 = add i64 %3, ptrtoint (i64* @gv_0 to i64)
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = mul i64 %indvars.iv.reload, 16
%8 = add i64 %7, %1
%9 = add i64 %8, 8
%10 = call i64 @FUNC(i64 %9, i64 %6)
%11 = add i64 %8, 16
%12 = inttoptr i64 %11 to i64*
store i64 %0, i64* %12, align 8
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 4
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_2, label LBL_1
LBL_2:
ret i64 %0
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 8, { 1, 0 }
} | 0 |
BinRealVul | gen_rfe_845 | gen_rfe | define i64 @FUNC(i32* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = zext i32 %arg3 to i64
%3 = call i64 @FUNC(i64 %2, i64 4294967295)
%4 = call i64 @FUNC(i64 %2)
%5 = call i64 @FUNC(i64 %0, i64 15, i32 %1)
store i32 1, i32* %arg1, align 4
ret i64 %0
} | 0 |
BinRealVul | loopback_set_hostname_12072 | loopback_set_hostname | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0))
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%4 = inttoptr i64 %arg1 to i8*
%5 = call i32 @strlen(i8* %4)
%6 = call i32 @sethostname(i8* %4, i32 %5)
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = call i32* @__errno_location()
%10 = load i32, i32* %9, align 4
%11 = sub i32 0, %10
%12 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0), i64 %arg1)
%13 = zext i32 %11 to i64
store i64 %13, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%14 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_2, i64 0, i64 0), i64 %arg1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 0, { 1, 2, 3, 4, 5, 0, 6, 7, 8 }
uselistorder i64 %arg1, { 1, 0, 2, 3 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | dscm1xxxx_attach_2546 | dscm1xxxx_attach | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = add i64 %0, 464
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = add i64 %0, 472
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = mul i32 %7, 256
%9 = or i32 %8, %4
%10 = inttoptr i64 %1 to i32*
store i32 %9, i32* %10, align 4
%11 = add i64 %0, 12
%12 = inttoptr i64 %11 to i32*
store i32 0, i32* %12, align 4
%13 = call i64 @FUNC(i64 %1)
%14 = call i64 @FUNC(i64 %1)
ret i64 0
} | 0 |
BinRealVul | openrisc_cpu_class_init_16640 | openrisc_cpu_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 4198669, i64* %arg1, align 8
store i64 4198676, i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i64*
store i64 4198690, i64* %6, align 8
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i64*
store i64 4198697, i64* %8, align 8
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i64*
store i64 4198704, i64* %10, align 8
%11 = add i64 %0, 48
%12 = inttoptr i64 %11 to i64*
store i64 4198711, i64* %12, align 8
%13 = add i64 %0, 56
%14 = inttoptr i64 %13 to i64*
store i64 4198718, i64* %14, align 8
%15 = add i64 %0, 64
%16 = inttoptr i64 %15 to i64*
store i64 4198725, i64* %16, align 8
%17 = add i64 %0, 80
%18 = inttoptr i64 %17 to i64*
store i64 4198739, i64* %18, align 8
store i64 ptrtoint (i64* @gv_0 to i64), i64* %4, align 8
%19 = add i64 %0, 88
%20 = inttoptr i64 %19 to i32*
store i32 35, i32* %20, align 4
%21 = inttoptr i64 %1 to i8*
store i8 1, i8* %21, align 1
ret i64 %0
} | 1 |
BinRealVul | process_11766 | process | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.1.reg2mem = alloca i64
%rsi.0.reg2mem = alloca i64
%.reg2mem = alloca i8*
%rax.0.lcssa.reg2mem = alloca i64
%rax.07.reg2mem = alloca i64
%rax.0.ph.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%1 = icmp eq i32 %0, 256
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
store i32 ptrtoint (i32* @gv_0 to i32), i32* @gv_1, align 4
store i32 select (i1 icmp eq (i32 and (i32 zext (i8 ptrtoint (i32* @gv_0 to i8) to i32), i32 31), i32 0), i32 0, i32 add (i32 shl (i32 1, i32 and (i32 zext (i8 ptrtoint (i32* @gv_0 to i8) to i32), i32 31)), i32 -1)), i32* @gv_2, align 4
store i32 258, i32* @gv_3, align 4
store i32 -1, i32* @gv_4, align 4
store i64 1, i64* %rax.1.reg2mem
br label LBL_14
LBL_2:
%3 = ptrtoint i64* %arg2 to i64
%4 = load i32, i32* @gv_4, align 4
%5 = icmp eq i32 %4, -1
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_4, label LBL_3
LBL_3:
%7 = add i64 %3, 1
store i64 %7, i64* %arg2, align 8
%sext = mul i64 %arg1, 4294967296
%8 = ashr exact i64 %sext, 32
%9 = add i64 %8, ptrtoint (i8** @gv_5 to i64)
%10 = inttoptr i64 %9 to i8*
%11 = load i8, i8* %10, align 1
%12 = bitcast i64* %arg2 to i8*
store i8 %11, i8* %12, align 1
store i32 %0, i32* @gv_4, align 4
%13 = trunc i64 %arg1 to i8
store i8 %13, i8* inttoptr (i64 4231300 to i8*), align 4
store i64 1, i64* %rax.1.reg2mem
br label LBL_14
LBL_4:
%14 = and i64 %arg1, 4294967295
%15 = load i32, i32* @gv_3, align 4
%16 = zext i32 %15 to i64
%17 = icmp ugt i64 %14, %16
br i1 %17, label LBL_5, label LBL_6
LBL_5:
%18 = load %_IO_FILE*, %_IO_FILE** @gv_6, align 8
%19 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %18, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_7, i64 0, i64 0), i64 %14, i64 %16)
store i64 0, i64* %rax.1.reg2mem
br label LBL_14
LBL_6:
%20 = icmp eq i32 %15, %0
%21 = icmp eq i1 %20, false
store i64 %14, i64* %rax.0.ph.reg2mem
br i1 %21, label LBL_8, label LBL_7
LBL_7:
%22 = load i8*, i8** @gv_8, align 8
%23 = ptrtoint i8* %22 to i64
%24 = add i64 %23, 1
%25 = inttoptr i64 %24 to i8*
store i8* %25, i8** @gv_8, align 8
%26 = load i8, i8* @gv_9, align 1
store i8 %26, i8* %22, align 1
%27 = load i32, i32* @gv_4, align 4
%28 = zext i32 %27 to i64
store i64 %28, i64* %rax.0.ph.reg2mem
br label LBL_8
LBL_8:
%rax.0.ph.reload = load i64, i64* %rax.0.ph.reg2mem
%29 = trunc i64 %rax.0.ph.reload to i32
%30 = icmp sgt i32 %29, 256
store i64 %rax.0.ph.reload, i64* %rax.07.reg2mem
store i64 %rax.0.ph.reload, i64* %rax.0.lcssa.reg2mem
br i1 %30, label LBL_9, label LBL_10
LBL_9:
%rax.07.reload = load i64, i64* %rax.07.reg2mem
%31 = load i8*, i8** @gv_8, align 8
%32 = ptrtoint i8* %31 to i64
%33 = add i64 %32, 1
%34 = inttoptr i64 %33 to i8*
store i8* %34, i8** @gv_8, align 8
%sext4 = mul i64 %rax.07.reload, 4294967296
%35 = ashr exact i64 %sext4, 32
%36 = add i64 %35, ptrtoint (i8** @gv_5 to i64)
%37 = inttoptr i64 %36 to i8*
%38 = load i8, i8* %37, align 1
store i8 %38, i8* %31, align 1
%39 = ashr exact i64 %sext4, 30
%40 = add i64 %39, ptrtoint (i32** @gv_10 to i64)
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = zext i32 %42 to i64
%44 = icmp sgt i32 %42, 256
store i64 %43, i64* %rax.07.reg2mem
store i64 %43, i64* %rax.0.lcssa.reg2mem
br i1 %44, label LBL_9, label LBL_10
LBL_10:
%rax.0.lcssa.reload = load i64, i64* %rax.0.lcssa.reg2mem
%sext3 = mul i64 %rax.0.lcssa.reload, 4294967296
%45 = ashr exact i64 %sext3, 32
%46 = add i64 %45, ptrtoint (i8** @gv_5 to i64)
%47 = inttoptr i64 %46 to i8*
%48 = load i8, i8* %47, align 1
store i8 %48, i8* @gv_9, align 1
%49 = load i8*, i8** @gv_8, align 8
%50 = ptrtoint i8* %49 to i64
%51 = add i64 %50, 1
%52 = inttoptr i64 %51 to i8*
store i8* %52, i8** @gv_8, align 8
store i8 %48, i8* %49, align 1
%53 = load i32, i32* @gv_3, align 4
%54 = load i32, i32* @gv_4, align 4
%55 = sext i32 %53 to i64
%56 = mul i64 %55, 4
%57 = add i64 %56, ptrtoint (i32** @gv_10 to i64)
%58 = inttoptr i64 %57 to i32*
store i32 %54, i32* %58, align 4
%59 = load i32, i32* @gv_3, align 4
%60 = load i8, i8* @gv_9, align 1
%61 = sext i32 %59 to i64
%62 = add nsw i64 %61, 4210784
%63 = inttoptr i64 %62 to i8*
store i8 %60, i8* %63, align 1
store i32 ptrtoint (i32* @gv_11 to i32), i32* @gv_3, align 4
%64 = load i32, i32* @gv_2, align 4
%65 = and i32 %64, ptrtoint (i32* @gv_11 to i32)
%66 = icmp eq i32 %65, 0
%67 = icmp eq i1 %66, false
%or.cond = or i1 %67, icmp sgt (i32 ptrtoint (i32* @gv_11 to i32), i32 4095)
br i1 %or.cond, label LBL_12, label LBL_11
LBL_11:
store i32 ptrtoint (i32* @gv_12 to i32), i32* @gv_1, align 4
%68 = add i32 %64, ptrtoint (i32* @gv_11 to i32)
store i32 %68, i32* @gv_2, align 4
br label LBL_12
LBL_12:
store i32 %0, i32* @gv_4, align 4
%.pre = load i8*, i8** @gv_8, align 8
store i8* %.pre, i8** %.reg2mem
store i64 %3, i64* %rsi.0.reg2mem
br label LBL_13
LBL_13:
%rsi.0.reload = load i64, i64* %rsi.0.reg2mem
%.reload = load i8*, i8** %.reg2mem
%69 = ptrtoint i8* %.reload to i64
%70 = add i64 %69, -1
%71 = inttoptr i64 %70 to i8*
store i8* %71, i8** @gv_8, align 8
%72 = add i64 %rsi.0.reload, 1
store i64 %72, i64* %arg2, align 8
%73 = load i8, i8* %71, align 1
%74 = inttoptr i64 %rsi.0.reload to i8*
store i8 %73, i8* %74, align 1
%75 = load i8*, i8** @gv_8, align 8
%76 = ptrtoint i8* %75 to i64
%77 = load i64, i64* @gv_13, align 8
%78 = icmp ult i64 %77, %76
store i8* %75, i8** %.reg2mem
store i64 %72, i64* %rsi.0.reg2mem
store i64 1, i64* %rax.1.reg2mem
br i1 %78, label LBL_13, label LBL_14
LBL_14:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i64 %rsi.0.reload, { 1, 0 }
uselistorder i64 %sext4, { 1, 0 }
uselistorder i64 %16, { 1, 0 }
uselistorder i32 %0, { 1, 2, 0, 3 }
uselistorder i64* %rax.0.ph.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.07.reg2mem, { 2, 0, 1 }
uselistorder i8** %.reg2mem, { 1, 0, 2 }
uselistorder i64* %rsi.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.1.reg2mem, { 0, 1, 4, 3, 2 }
uselistorder i64 ptrtoint (i32** @gv_10 to i64), { 1, 0 }
uselistorder i8* @gv_9, { 2, 1, 0 }
uselistorder i64 ptrtoint (i8** @gv_5 to i64), { 2, 1, 0 }
uselistorder i64 32, { 1, 0, 2 }
uselistorder i64 1, { 0, 3, 5, 4, 6, 2, 7, 1 }
uselistorder i32* @gv_4, { 5, 4, 3, 2, 1, 0 }
uselistorder i32* @gv_3, { 4, 3, 2, 1, 0 }
uselistorder i32* @gv_2, { 2, 1, 0 }
uselistorder i32 -1, { 0, 2, 1 }
uselistorder i32* @gv_1, { 1, 0 }
uselistorder i32 0, { 9, 0, 1, 2, 3, 4, 5, 6, 7, 8 }
uselistorder i32 256, { 2, 0, 1 }
uselistorder i64 %arg1, { 3, 1, 0, 2 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | test_self_16409 | test_self | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%sv_0 = alloca i64, align 8
%0 = call i64 @FUNC(i64 4198741)
store i64 %0, i64* %sv_0, align 8
%1 = call i64 @FUNC(i64 %0, i64* nonnull %sv_0)
ret i64 %1
uselistorder i32 1, { 1, 0 }
} | 1 |
BinRealVul | pgx_gethdr_17351 | pgx_gethdr | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, -1
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %5, label LBL_16, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %2)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, -1
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %8, label LBL_16, label LBL_2
LBL_2:
%9 = trunc i64 %1 to i32
%10 = mul i32 %4, 256
%11 = and i32 %10, 65280
%12 = urem i32 %7, 256
%13 = or i32 %12, %11
%14 = bitcast i64* %arg2 to i32*
store i32 %13, i32* %14, align 4
%15 = icmp eq i32 %9, 20640
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_16
LBL_4:
%17 = call i64 @FUNC(i64 %2)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, -1
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %19, label LBL_16, label LBL_5
LBL_5:
%20 = call i16** @__ctype_b_loc()
%21 = load i16*, i16** %20, align 8
%22 = ptrtoint i16* %21 to i64
%sext2 = mul i64 %17, 4294967296
%23 = ashr exact i64 %sext2, 31
%24 = add i64 %23, %22
%25 = inttoptr i64 %24 to i16*
%26 = load i16, i16* %25, align 2
%27 = and i16 %26, 8192
%28 = icmp eq i16 %27, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %28, label LBL_16, label LBL_6
LBL_6:
%29 = ptrtoint i64* %arg2 to i64
%30 = add i64 %29, 4
%31 = call i64 @FUNC(i64 %2, i64 %30)
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 0
br i1 %33, label LBL_8, label LBL_7
LBL_7:
%34 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_1, i64 0, i64 0))
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_16
LBL_8:
%35 = add i64 %29, 8
%36 = call i64 @FUNC(i64 %2, i64 %35)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 0
br i1 %38, label LBL_10, label LBL_9
LBL_9:
%39 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_2, i64 0, i64 0))
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_16
LBL_10:
%40 = add i64 %29, 12
%41 = call i64 @FUNC(i64 %2, i64 %40)
%42 = trunc i64 %41 to i32
%43 = icmp eq i32 %42, 0
br i1 %43, label LBL_12, label LBL_11
LBL_11:
%44 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_3, i64 0, i64 0))
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_16
LBL_12:
%45 = add i64 %29, 16
%46 = call i64 @FUNC(i64 %2, i64 %45)
%47 = trunc i64 %46 to i32
%48 = icmp eq i32 %47, 0
br i1 %48, label LBL_14, label LBL_13
LBL_13:
%49 = call i64 @FUNC(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_4, i64 0, i64 0))
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_16
LBL_14:
%50 = add i64 %29, 20
%51 = call i64 @FUNC(i64 %2, i64 %50)
%52 = trunc i64 %51 to i32
%53 = icmp eq i32 %52, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %53, label LBL_16, label LBL_15
LBL_15:
%54 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_5, i64 0, i64 0))
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_16
LBL_16:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 6, 11, 5, 4, 3, 2, 9, 10, 1, 8, 7 }
uselistorder i64 (i64, i64)* @pgx_getuint32, { 2, 1, 0 }
uselistorder i64 (i8*)* @jas_eprintf, { 5, 4, 3, 2, 1, 0 }
uselistorder i32 256, { 1, 0 }
uselistorder i64 4294967295, { 5, 4, 3, 2, 1, 8, 9, 0, 7, 6 }
uselistorder i64 (i64)* @jas_stream_getc, { 2, 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_16, { 5, 10, 4, 3, 2, 1, 8, 9, 0, 7, 6 }
} | 1 |
BinRealVul | gg_change_status_descr_5674 | gg_change_status_descr | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.1.reg2mem = alloca i8*
%sv_2.03.reg2mem = alloca i64
%sv_1.05.reg2mem = alloca i8*
%sv_2.06.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i8* %arg3 to i64
%3 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i32, align 4
%4 = and i64 %arg2, 4294967295
%5 = call i64 @FUNC(i64 %3, i64 1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %4, i64 %2)
%6 = icmp eq i64* %arg1, null
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i32* @__errno_location()
store i32 14, i32* %8, align 4
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_14
LBL_2:
%9 = trunc i64 %1 to i32
%10 = icmp eq i32 %9, 1
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i32* @__errno_location()
store i32 107, i32* %11, align 4
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_14
LBL_4:
%sext = mul i64 %arg2, 4294967296
%12 = ashr exact i64 %sext, 32
%13 = trunc i64 %12 to i32
%14 = add i64 %3, 4
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = icmp eq i8* %arg3, null
store i64 0, i64* %sv_2.03.reg2mem
store i8* bitcast (i8** @gv_1 to i8*), i8** %sv_1.1.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %16, label LBL_9, label LBL_5
LBL_5:
%17 = add i64 %3, 8
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp eq i32 %19, 1
store i64 0, i64* %sv_2.06.reg2mem
store i8* %arg3, i8** %sv_1.05.reg2mem
br i1 %20, label LBL_8, label LBL_6
LBL_6:
%21 = call i64 @FUNC(i64 %2, i64 2, i64 1, i64 4294967295, i64 4294967295)
%22 = icmp eq i64 %21, 0
%23 = icmp eq i1 %22, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %23, label LBL_7, label LBL_14
LBL_7:
%24 = inttoptr i64 %21 to i8*
store i64 %21, i64* %sv_2.06.reg2mem
store i8* %24, i8** %sv_1.05.reg2mem
br label LBL_8
LBL_8:
%sv_1.05.reload = load i8*, i8** %sv_1.05.reg2mem
%sv_2.06.reload = load i64, i64* %sv_2.06.reg2mem
%25 = call i32 @strlen(i8* nonnull %sv_1.05.reload)
%26 = icmp slt i32 %25, 256
%spec.store.select = select i1 %26, i32 %25, i32 256
%phitmp = zext i32 %spec.store.select to i64
store i64 %sv_2.06.reload, i64* %sv_2.03.reg2mem
store i8* %sv_1.05.reload, i8** %sv_1.1.reg2mem
store i64 %phitmp, i64* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.1.reload = load i8*, i8** %sv_1.1.reg2mem
%sv_2.03.reload = load i64, i64* %sv_2.03.reg2mem
%27 = and i64 %12, 4294967295
%28 = call i64 @FUNC(i64 %27)
%29 = trunc i64 %28 to i32
store i32 %29, i32* %sv_3, align 4
%30 = add i64 %3, 12
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = zext i32 %32 to i64
%34 = call i64 @FUNC(i64 %33)
%35 = call i64 @FUNC(i64 %sv_0.0.reload)
%36 = add i64 %3, 16
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = icmp slt i32 %38, 110
br i1 %39, label LBL_11, label LBL_10
LBL_10:
%40 = call i64 @FUNC(i64 20)
br label LBL_11
LBL_11:
%41 = ptrtoint i8* %sv_1.1.reload to i64
%42 = call i64 @FUNC(i64 %3, i64 1, i32* nonnull %sv_3, i64 12, i64 %41, i64 %sv_0.0.reload)
%43 = inttoptr i64 %sv_2.03.reload to i64*
call void @free(i64* %43)
%44 = call i64 @FUNC(i64 %27)
%45 = trunc i64 %44 to i32
%46 = icmp eq i32 %45, 0
br i1 %46, label LBL_13, label LBL_12
LBL_12:
%47 = bitcast i64* %arg1 to i32*
store i32 2, i32* %47, align 4
%48 = add i64 %3, 20
%49 = inttoptr i64 %48 to i32*
store i32 30, i32* %49, align 4
br label LBL_13
LBL_13:
%50 = and i64 %42, 4294967295
store i64 %50, 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 %3, { 1, 2, 3, 4, 0, 5, 7, 6 }
uselistorder i64* %sv_2.06.reg2mem, { 0, 2, 1 }
uselistorder i8** %sv_1.05.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_2.03.reg2mem, { 0, 2, 1 }
uselistorder i8** %sv_1.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder i64 20, { 1, 0 }
uselistorder i64 (i64)* @gg_fix32, { 3, 2, 1, 0 }
uselistorder i32* ()* @__errno_location, { 1, 0 }
uselistorder label LBL_14, { 1, 0, 2, 3 }
uselistorder label LBL_9, { 1, 0 }
} | 0 |
BinRealVul | vmcs_field_to_offset_8713 | vmcs_field_to_offset | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i64 0)
%1 = icmp ult i64 %arg1, 100
br i1 %1, label LBL_1, label LBL_2
LBL_1:
%factor = mul i64 %arg1, 2
%2 = add i64 %factor, ptrtoint (i64* @gv_0 to i64)
%3 = inttoptr i64 %2 to i16*
%4 = load i16, i16* %3, align 2
%5 = icmp eq i16 %4, 0
%6 = icmp eq i1 %5, false
%7 = zext i16 %4 to i64
%spec.select = select i1 %6, i64 %7, i64 4294967294
ret i64 %spec.select
LBL_2:
ret i64 4294967294
} | 0 |
BinRealVul | ff_h264_biweight_WxH_mmx2_2508 | ff_h264_biweight_WxH_mmx2 | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4, i32 %arg5, i32 %arg6, i64 %arg7, i64 %arg8, i64 %arg9, i64 %arg10) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge4.lcssa.reg2mem = alloca i64
%sv_0.07.reg2mem = alloca i64
%sv_1.09.reg2mem = alloca i64
%storemerge411.reg2mem = alloca i32
%storemerge56.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = add i64 %arg7, 1
%3 = add i64 %2, %arg8
%4 = and i64 %3, 4294967294
%5 = or i64 %4, 1
%6 = urem i32 %arg4, 32
%7 = icmp eq i32 %6, 0
%8 = trunc i64 %5 to i32
%9 = shl i32 %8, %6
%10 = zext i32 %9 to i64
%storemerge = select i1 %7, i64 %5, i64 %10
%11 = trunc i64 %storemerge to i32
%12 = add i32 %arg4, 1
%13 = call i64 @FUNC(i32 %arg5)
%14 = call i64 @FUNC(i32 %arg6)
%15 = call i64 @FUNC(i32 %11)
%16 = call i64 @FUNC(i32 %12)
%17 = call i64 @FUNC(i64 %13, i8 0)
%18 = call i64 @FUNC(i64 %14, i8 0)
%19 = call i64 @FUNC(i64 %15, i8 0)
%20 = call i64 @FUNC(i64 %1, i64 %1)
%21 = trunc i64 %arg10 to i32
%22 = icmp sgt i32 %21, 0
store i64 0, i64* %storemerge4.lcssa.reg2mem
br i1 %22, label LBL_1, label LBL_6
LBL_1:
%23 = ptrtoint i64* %arg1 to i64
%24 = ptrtoint i64* %arg2 to i64
%25 = trunc i64 %arg9 to i32
%26 = icmp sgt i32 %25, 0
%27 = sext i32 %arg3 to i64
store i32 0, i32* %storemerge411.reg2mem
store i64 %23, i64* %sv_1.09.reg2mem
store i64 %24, i64* %sv_0.07.reg2mem
br label LBL_4
LBL_2:
%storemerge56.reload = load i32, i32* %storemerge56.reg2mem
%28 = sext i32 %storemerge56.reload to i64
%29 = add i64 %sv_1.09.reload, %28
%30 = add i64 %sv_0.07.reload, %28
%31 = inttoptr i64 %29 to i32*
%32 = load i32, i32* %31, align 4
%33 = call i64 @FUNC(i32 %32)
%34 = inttoptr i64 %30 to i32*
%35 = load i32, i32* %34, align 4
%36 = call i64 @FUNC(i32 %35)
%37 = call i64 @FUNC(i64 %33, i64 %20)
%38 = call i64 @FUNC(i64 %36, i64 %20)
%39 = call i64 @FUNC(i64 %37, i64 %17)
%40 = call i64 @FUNC(i64 %38, i64 %18)
%41 = call i64 @FUNC(i64 %39, i64 %40)
%42 = call i64 @FUNC(i64 %41, i64 %19)
%43 = call i64 @FUNC(i64 %42, i64 %16)
%44 = call i64 @FUNC(i64 %43, i64 %43)
%45 = load i32, i32* %31, align 4
call void @__asm_movd.1(i32 %45, i64 %44)
%46 = add i32 %storemerge56.reload, 4
%47 = icmp slt i32 %46, %25
store i32 %46, i32* %storemerge56.reg2mem
br i1 %47, label LBL_2, label LBL_3
LBL_3:
%48 = add i64 %sv_0.07.reload, %27
%49 = add i64 %sv_1.09.reload, %27
%50 = add nuw nsw i32 %storemerge411.reload, 1
%exitcond = icmp eq i32 %50, %21
store i32 %50, i32* %storemerge411.reg2mem
store i64 %49, i64* %sv_1.09.reg2mem
store i64 %48, i64* %sv_0.07.reg2mem
br i1 %exitcond, label LBL_5, label LBL_4
LBL_4:
%sv_0.07.reload = load i64, i64* %sv_0.07.reg2mem
%sv_1.09.reload = load i64, i64* %sv_1.09.reg2mem
%storemerge411.reload = load i32, i32* %storemerge411.reg2mem
store i32 0, i32* %storemerge56.reg2mem
br i1 %26, label LBL_2, label LBL_3
LBL_5:
%phitmp = and i64 %arg10, 4294967295
store i64 %phitmp, i64* %storemerge4.lcssa.reg2mem
br label LBL_6
LBL_6:
%storemerge4.lcssa.reload = load i64, i64* %storemerge4.lcssa.reg2mem
ret i64 %storemerge4.lcssa.reload
uselistorder i64 %sv_1.09.reload, { 1, 0 }
uselistorder i64 %sv_0.07.reload, { 1, 0 }
uselistorder i64 %43, { 1, 0 }
uselistorder i32 %25, { 1, 0 }
uselistorder i64 %20, { 1, 0 }
uselistorder i32 %6, { 1, 0 }
uselistorder i32* %storemerge56.reg2mem, { 1, 2, 0 }
uselistorder i64* %storemerge4.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32 %arg4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | tvb_raw_text_add_6247 | tvb_raw_text_add | define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%sv_1 = alloca i32, align 4
%3 = call i64 @FUNC(i64 %2)
%4 = ptrtoint i32* %arg2 to i64
%5 = call i64 @FUNC(i64 %4, i64 %2, i64 0, i64 4294967295, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_0, i64 0, i64 0), i64 %1)
%6 = bitcast i32* %sv_1 to i64*
%sext = mul i64 %3, 4294967296
%7 = ashr exact i64 %sext, 32
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%8 = call i64 @FUNC(i64 %2, i32 %sv_0.0.reload, i64 4294967295, i64* nonnull %6, i64 0)
%9 = trunc i64 %8 to i32
%10 = zext i32 %sv_0.0.reload to i64
%11 = call i64 @FUNC(i64 %2, i64 %10, i32 %9)
%12 = and i64 %8, 4294967295
%13 = call i64 @FUNC(i64 %4, i64 %2, i64 %10, i64 %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 %11)
%14 = load i32, i32* %sv_1, align 4
%15 = zext i32 %14 to i64
%16 = icmp sgt i64 %7, %15
br i1 %16, label LBL_2, label LBL_3
LBL_2:
%17 = icmp eq i32 %9, 0
%18 = icmp slt i32 %9, 0
%19 = icmp eq i1 %18, false
%20 = icmp eq i1 %17, false
%21 = icmp eq i1 %19, %20
store i32 %14, i32* %sv_0.0.reg2mem
br i1 %21, label LBL_1, label LBL_3
LBL_3:
ret i64 %15
uselistorder i32 %9, { 1, 0, 2 }
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %2, { 1, 0, 2, 3, 4 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 (i64, i64, i64, i64, i8*, i64)* @proto_tree_add_text, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 3, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | pidfile_write_10977 | pidfile_write | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = inttoptr i64 %arg1 to i8*
%1 = call i32 @creat(i8* %0, i32 420)
%2 = icmp eq i32 %1, -1
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = call %_IO_FILE* @fdopen(i32 %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
%4 = icmp eq %_IO_FILE* %3, null
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_1, i64 0, i64 0), i64 %arg1)
store i64 0, i64* %storemerge.reg2mem
br label LBL_4
LBL_3:
%7 = and i64 %arg2, 4294967295
%8 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i64 %7)
%9 = call i32 @fclose(%_IO_FILE* %3)
store i64 1, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder %_IO_FILE* %3, { 2, 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | mxf_read_generic_descriptor_14083 | mxf_read_generic_descriptor | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = icmp eq i32 %arg3, 16129
br i1 %1, label LBL_21, label LBL_1
LBL_1:
%2 = icmp sgt i32 %arg3, 16129
store i64 0, i64* %rax.0.reg2mem
br i1 %2, label LBL_33, label LBL_2
LBL_2:
%3 = ptrtoint i64* %arg1 to i64
%4 = icmp eq i32 %arg3, 15623
br i1 %4, label LBL_30, label LBL_3
LBL_3:
%5 = icmp sgt i32 %arg3, 15623
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_33, label LBL_4
LBL_4:
%6 = icmp eq i32 %arg3, 15622
br i1 %6, label LBL_29, label LBL_5
LBL_5:
%7 = icmp sgt i32 %arg3, 15622
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_33, label LBL_6
LBL_6:
%8 = icmp eq i32 %arg3, 15619
br i1 %8, label LBL_28, label LBL_7
LBL_7:
%9 = icmp sgt i32 %arg3, 15619
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_33, label LBL_8
LBL_8:
%10 = icmp eq i32 %arg3, 15617
br i1 %10, label LBL_31, label LBL_9
LBL_9:
%11 = icmp sgt i32 %arg3, 15617
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_33, label LBL_10
LBL_10:
%12 = icmp eq i32 %arg3, 13313
br i1 %12, label LBL_32, label LBL_11
LBL_11:
%13 = icmp sgt i32 %arg3, 13313
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_33, label LBL_12
LBL_12:
%14 = icmp eq i32 %arg3, 12814
br i1 %14, label LBL_27, label LBL_13
LBL_13:
%15 = icmp sgt i32 %arg3, 12814
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_33, label LBL_14
LBL_14:
%16 = icmp eq i32 %arg3, 12803
br i1 %16, label LBL_25, label LBL_15
LBL_15:
%17 = icmp sgt i32 %arg3, 12803
store i64 0, i64* %rax.0.reg2mem
br i1 %17, label LBL_33, label LBL_16
LBL_16:
%18 = icmp eq i32 %arg3, 12802
br i1 %18, label LBL_26, label LBL_17
LBL_17:
%19 = icmp sgt i32 %arg3, 12802
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_33, label LBL_18
LBL_18:
%20 = icmp eq i32 %arg3, 12801
br i1 %20, label LBL_24, label LBL_19
LBL_19:
%21 = icmp sgt i32 %arg3, 12801
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_33, label LBL_20
LBL_20:
store i64 0, i64* %rax.0.reg2mem
switch i32 %arg3, label LBL_33 [
i32 12292, label LBL_22
i32 12294, label LBL_23
]
LBL_21:
%22 = call i64 @FUNC(i64 %0)
%23 = trunc i64 %22 to i32
%24 = bitcast i64* %arg1 to i32*
store i32 %23, i32* %24, align 4
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_33
LBL_22:
%25 = add i64 %3, 16
%26 = call i64 @FUNC(i64 %0, i64 %25, i64 16)
store i64 0, i64* %rax.0.reg2mem
br label LBL_33
LBL_23:
%27 = call i64 @FUNC(i64 %0)
%28 = trunc i64 %27 to i32
%29 = add i64 %3, 32
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_33
LBL_24:
%31 = add i64 %3, 36
%32 = call i64 @FUNC(i64 %0, i64 %31, i64 16)
store i64 0, i64* %rax.0.reg2mem
br label LBL_33
LBL_25:
%33 = call i64 @FUNC(i64 %0)
%34 = trunc i64 %33 to i32
%35 = add i64 %3, 52
%36 = inttoptr i64 %35 to i32*
store i32 %34, i32* %36, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_33
LBL_26:
%37 = call i64 @FUNC(i64 %0)
%38 = trunc i64 %37 to i32
%39 = add i64 %3, 56
%40 = inttoptr i64 %39 to i32*
store i32 %38, i32* %40, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_33
LBL_27:
%41 = call i64 @FUNC(i64 %0)
%42 = trunc i64 %41 to i32
%43 = add i64 %3, 60
%44 = inttoptr i64 %43 to i32*
store i32 %42, i32* %44, align 4
%45 = call i64 @FUNC(i64 %0)
%46 = trunc i64 %45 to i32
%47 = add i64 %3, 64
%48 = inttoptr i64 %47 to i32*
store i32 %46, i32* %48, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_33
LBL_28:
%49 = call i64 @FUNC(i64 %0)
%50 = trunc i64 %49 to i32
%51 = add i64 %3, 68
%52 = inttoptr i64 %51 to i32*
store i32 %50, i32* %52, align 4
%53 = call i64 @FUNC(i64 %0)
%54 = trunc i64 %53 to i32
%55 = add i64 %3, 72
%56 = inttoptr i64 %55 to i32*
store i32 %54, i32* %56, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_33
LBL_29:
%57 = add i64 %3, 36
%58 = call i64 @FUNC(i64 %0, i64 %57, i64 16)
store i64 0, i64* %rax.0.reg2mem
br label LBL_33
LBL_30:
%59 = call i64 @FUNC(i64 %0)
%60 = trunc i64 %59 to i32
%61 = add i64 %3, 76
%62 = inttoptr i64 %61 to i32*
store i32 %60, i32* %62, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_33
LBL_31:
%63 = call i64 @FUNC(i64 %0)
%64 = trunc i64 %63 to i32
%65 = add i64 %3, 80
%66 = inttoptr i64 %65 to i32*
store i32 %64, i32* %66, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_33
LBL_32:
%67 = call i64 @FUNC(i64 %0, i64 %3)
store i64 0, i64* %rax.0.reg2mem
br label LBL_33
LBL_33:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %3, { 7, 8, 12, 11, 9, 10, 5, 6, 3, 4, 2, 0, 1 }
uselistorder i64 %0, { 7, 8, 12, 11, 9, 10, 5, 6, 3, 4, 2, 0, 1, 13 }
uselistorder i64* %rax.0.reg2mem, { 0, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 23, 22, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 }
uselistorder i64 (i64, i64, i64)* @get_buffer, { 2, 1, 0 }
uselistorder i64 (i64)* @get_be32, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 12801, { 1, 0 }
uselistorder i32 12802, { 1, 0 }
uselistorder i32 12803, { 1, 0 }
uselistorder i32 12814, { 1, 0 }
uselistorder i32 13313, { 1, 0 }
uselistorder i32 15617, { 1, 0 }
uselistorder i32 15619, { 1, 0 }
uselistorder i32 15622, { 1, 0 }
uselistorder i32 15623, { 1, 0 }
uselistorder label LBL_33, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 22, 21, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 }
} | 1 |
BinRealVul | slurm_load_jobs_4293 | slurm_load_jobs | define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i32*
%1 = alloca i64
%storemerge.reg2mem = alloca i64
%2 = load i64, i64* %1
%3 = load i32*, i32** %0
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
store i32 2, i32* %sv_1, align 4
%4 = bitcast i32* %sv_0 to i64*
%5 = call i64 @FUNC(i32* nonnull %sv_1, i64* nonnull %4)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %8, label LBL_1, label LBL_6
LBL_1:
%9 = load i32, i32* %sv_0, align 4
switch i32 %9, label LBL_5 [
i32 3, label LBL_2
i32 4, label LBL_3
]
LBL_2:
%10 = ptrtoint i32* %3 to i64
store i64 %10, i64* %arg2, align 8
%11 = call i64 @FUNC(i64 %2)
store i64 0, i64* %storemerge.reg2mem
br label LBL_6
LBL_3:
%12 = load i32, i32* %3, align 4
%13 = ptrtoint i32* %3 to i64
%14 = call i64 @FUNC(i64 %13)
%15 = icmp eq i32 %12, 0
store i64 0, i64* %storemerge.reg2mem
br i1 %15, label LBL_6, label LBL_4
LBL_4:
%16 = zext i32 %12 to i64
%17 = call i64 @FUNC(i64 %16)
store i64 0, i64* %storemerge.reg2mem
br label LBL_6
LBL_5:
%18 = call i64 @FUNC(i64 1)
store i64 0, i64* %storemerge.reg2mem
br label LBL_6
LBL_6:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %3, { 1, 2, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 3, 4, 1, 5 }
uselistorder i64 (i64)* @slurm_seterrno_ret, { 1, 0 }
uselistorder label LBL_6, { 1, 2, 3, 0, 4 }
} | 0 |
BinRealVul | dec_rcsr_587 | dec_rcsr | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i32* %arg1 to i64
%6 = add i64 %5, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = zext i32 %8 to i64
%10 = and i64 %3, 4294967295
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i64 %10, i64 %9)
store i64 %5, i64* @0, align 8
switch i64 %5, label LBL_12 [
i64 0, label LBL_1
i64 1, label LBL_2
i64 2, label LBL_3
i64 3, label LBL_4
i64 4, label LBL_5
i64 5, label LBL_6
i64 6, label LBL_7
i64 7, label LBL_8
i64 8, label LBL_9
i64 9, label LBL_10
i64 10, label LBL_11
i64 11, label LBL_11
i64 12, label LBL_11
i64 13, label LBL_11
i64 14, label LBL_11
i64 15, label LBL_11
i64 16, label LBL_11
i64 17, label LBL_11
i64 18, label LBL_11
i64 19, label LBL_11
]
LBL_1:
%12 = load i32, i32* @gv_1, align 4
%sext10 = mul i64 %3, 4294967296
%13 = ashr exact i64 %sext10, 30
%14 = add i64 %13, ptrtoint (i32** @gv_2 to i64)
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = zext i32 %12 to i64
%18 = zext i32 %16 to i64
%19 = call i64 @FUNC(i64 %18, i64 %17)
store i64 %19, i64* %rax.0.reg2mem
br label LBL_13
LBL_2:
%20 = load i32, i32* @gv_3, align 4
%sext9 = mul i64 %3, 4294967296
%21 = ashr exact i64 %sext9, 30
%22 = add i64 %21, ptrtoint (i32** @gv_2 to i64)
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = zext i32 %20 to i64
%26 = zext i32 %24 to i64
%27 = call i64 @FUNC(i64 %26, i64 %25)
store i64 %27, i64* %rax.0.reg2mem
br label LBL_13
LBL_3:
%28 = load i32, i32* @gv_3, align 4
%sext8 = mul i64 %3, 4294967296
%29 = ashr exact i64 %sext8, 30
%30 = add i64 %29, ptrtoint (i32** @gv_2 to i64)
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = zext i32 %28 to i64
%34 = zext i32 %32 to i64
%35 = call i64 @FUNC(i64 %34, i64 %33)
store i64 %35, i64* %rax.0.reg2mem
br label LBL_13
LBL_4:
%36 = load i32, i32* @gv_4, align 4
%sext7 = mul i64 %3, 4294967296
%37 = ashr exact i64 %sext7, 30
%38 = add i64 %37, ptrtoint (i32** @gv_2 to i64)
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = zext i32 %36 to i64
%42 = zext i32 %40 to i64
%43 = call i64 @FUNC(i64 %42, i64 %41)
store i64 %43, i64* %rax.0.reg2mem
br label LBL_13
LBL_5:
%44 = load i32, i32* @gv_5, align 4
%sext6 = mul i64 %3, 4294967296
%45 = ashr exact i64 %sext6, 30
%46 = add i64 %45, ptrtoint (i32** @gv_2 to i64)
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = zext i32 %44 to i64
%50 = zext i32 %48 to i64
%51 = call i64 @FUNC(i64 %50, i64 %49)
store i64 %51, i64* %rax.0.reg2mem
br label LBL_13
LBL_6:
%52 = load i32, i32* @gv_6, align 4
%sext5 = mul i64 %3, 4294967296
%53 = ashr exact i64 %sext5, 30
%54 = add i64 %53, ptrtoint (i32** @gv_2 to i64)
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = zext i32 %52 to i64
%58 = zext i32 %56 to i64
%59 = call i64 @FUNC(i64 %58, i64 %57)
store i64 %59, i64* %rax.0.reg2mem
br label LBL_13
LBL_7:
%60 = load i32, i32* @gv_7, align 4
%sext4 = mul i64 %3, 4294967296
%61 = ashr exact i64 %sext4, 30
%62 = add i64 %61, ptrtoint (i32** @gv_2 to i64)
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = zext i32 %60 to i64
%66 = zext i32 %64 to i64
%67 = call i64 @FUNC(i64 %66, i64 %65)
store i64 %67, i64* %rax.0.reg2mem
br label LBL_13
LBL_8:
%68 = load i32, i32* @gv_8, align 4
%sext3 = mul i64 %3, 4294967296
%69 = ashr exact i64 %sext3, 30
%70 = add i64 %69, ptrtoint (i32** @gv_2 to i64)
%71 = inttoptr i64 %70 to i32*
%72 = load i32, i32* %71, align 4
%73 = zext i32 %68 to i64
%74 = zext i32 %72 to i64
%75 = call i64 @FUNC(i64 %74, i64 %73)
store i64 %75, i64* %rax.0.reg2mem
br label LBL_13
LBL_9:
%76 = load i32, i32* @gv_3, align 4
%sext2 = mul i64 %3, 4294967296
%77 = ashr exact i64 %sext2, 30
%78 = add i64 %77, ptrtoint (i32** @gv_2 to i64)
%79 = inttoptr i64 %78 to i32*
%80 = load i32, i32* %79, align 4
%81 = zext i32 %76 to i64
%82 = zext i32 %80 to i64
%83 = call i64 @FUNC(i64 %82, i64 %81)
store i64 %83, i64* %rax.0.reg2mem
br label LBL_13
LBL_10:
%84 = load i32, i32* @gv_3, align 4
%sext = mul i64 %3, 4294967296
%85 = ashr exact i64 %sext, 30
%86 = add i64 %85, ptrtoint (i32** @gv_2 to i64)
%87 = inttoptr i64 %86 to i32*
%88 = load i32, i32* %87, align 4
%89 = zext i32 %84 to i64
%90 = zext i32 %88 to i64
%91 = call i64 @FUNC(i64 %90, i64 %89)
store i64 %91, i64* %rax.0.reg2mem
br label LBL_13
LBL_11:
%92 = load i32, i32* %7, align 4
%93 = zext i32 %92 to i64
%94 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_9, i64 0, i64 0), i64 %93, i64 %4, i64 %2, i64 %1)
store i64 %94, i64* %rax.0.reg2mem
br label LBL_13
LBL_12:
%95 = load i32, i32* %7, align 4
%96 = zext i32 %95 to i64
%97 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_10, i64 0, i64 0), i64 %96, i64 %4, i64 %2, i64 %1)
store i64 %97, 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* %7, { 1, 0, 2 }
uselistorder i64 %5, { 0, 2, 1 }
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %3, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i32* @gv_3, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @tcg_gen_mov_tl, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 ptrtoint (i32** @gv_2 to i64), { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 30, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_13, { 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }
} | 0 |
BinRealVul | rpmReadPackageFile_17352 | rpmReadPackageFile | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%sv_0.15.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%sv_5 = alloca i64, align 8
%sv_6 = alloca i64, align 8
store i64 0, i64* %sv_6, align 8
store i64 0, i64* %sv_5, align 8
store i64 0, i64* %sv_4, align 8
store i64 0, i64* %sv_3, align 8
store i64 0, i64* %sv_2, align 8
%0 = call i64 @FUNC(i64 %arg1)
%1 = call i64 @FUNC(i64 %arg1, i64 1)
%2 = and i64 %0, 4294967291
%3 = or i64 %2, 4
%4 = call i64 @FUNC(i64 0, i64 %3, i64 %1)
store i64 4198952, i64* %sv_1, align 8
%5 = icmp eq i64 %arg3, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %arg2)
br label LBL_2
LBL_2:
%8 = icmp eq i64* %arg4, null
br i1 %8, label LBL_4, label LBL_3
LBL_3:
store i64 0, i64* %arg4, align 8
br label LBL_4
LBL_4:
%9 = call i64 @FUNC(i64 %4, i64 %arg2, i64* nonnull %sv_2, i64* nonnull %sv_3, i64* nonnull %sv_6)
%10 = trunc i64 %9 to i32
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
store i32 %10, i32* %sv_0.1.reg2mem
br i1 %12, label LBL_10, label LBL_5
LBL_5:
%13 = load i64, i64* @gv_0, align 8
%14 = call i64 @FUNC(i64 %4, i64 1, i64 %13, i64* nonnull %sv_1)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
store i32 1, i32* %sv_0.1.reg2mem
br i1 %17, label LBL_10, label LBL_6
LBL_6:
store i32 0, i32* %sv_0.15.reg2mem
br i1 %8, label LBL_12, label LBL_7
LBL_7:
%18 = load i64, i64* %sv_2, align 8
%19 = call i64 @FUNC(i64 %18, i64 0, i64* nonnull %sv_4, i64* nonnull %sv_6)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
store i32 1, i32* %sv_0.1.reg2mem
br i1 %22, label LBL_10, label LBL_8
LBL_8:
%23 = load i64, i64* %sv_3, align 8
%24 = call i64 @FUNC(i64 %23, i64 0, i64* nonnull %sv_5, i64* nonnull %sv_6)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
store i32 1, i32* %sv_0.1.reg2mem
br i1 %27, label LBL_10, label LBL_9
LBL_9:
%28 = load i64, i64* %sv_4, align 8
%29 = load i64, i64* %sv_5, align 8
%30 = call i64 @FUNC(i64 %29, i64 %28)
%31 = load i64, i64* %sv_5, align 8
%32 = call i64 @FUNC(i64 %31)
%33 = load i64, i64* %sv_5, align 8
%34 = call i64 @FUNC(i64 %33)
store i64 %34, i64* %arg4, align 8
store i32 0, i32* %sv_0.15.reg2mem
br label LBL_12
LBL_10:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%35 = icmp eq i32 %sv_0.1.reload, 0
%36 = load i64, i64* %sv_6, align 8
%37 = icmp eq i64 %36, 0
%or.cond3 = or i1 %35, %37
store i32 %sv_0.1.reload, i32* %sv_0.15.reg2mem
br i1 %or.cond3, label LBL_12, label LBL_11
LBL_11:
%38 = call i64 @FUNC(i64 %arg2)
%39 = call i64 @FUNC(i64 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i64 %38, i64 %36)
store i32 %sv_0.1.reload, i32* %sv_0.15.reg2mem
br label LBL_12
LBL_12:
%sv_0.15.reload = load i32, i32* %sv_0.15.reg2mem
%40 = load i64, i64* %sv_2, align 8
%41 = call i64 @FUNC(i64 %40)
%42 = load i64, i64* %sv_3, align 8
%43 = call i64 @FUNC(i64 %42)
%44 = load i64, i64* %sv_4, align 8
%45 = call i64 @FUNC(i64 %44)
%46 = load i64, i64* %sv_5, align 8
%47 = call i64 @FUNC(i64 %46)
%48 = call i64 @FUNC(i64 %1)
%49 = call i64 @FUNC(i64 %4)
%50 = load i64, i64* %sv_6, align 8
%51 = inttoptr i64 %50 to i64*
call void @free(i64* %51)
%52 = zext i32 %sv_0.15.reload to i64
ret i64 %52
uselistorder i32 %sv_0.1.reload, { 1, 0, 2 }
uselistorder i64 %4, { 1, 0, 2 }
uselistorder i64* %sv_6, { 4, 0, 1, 2, 3, 5 }
uselistorder i64* %sv_5, { 1, 2, 3, 4, 0, 5 }
uselistorder i64* %sv_4, { 1, 2, 0, 3 }
uselistorder i64* %sv_3, { 1, 2, 0, 3 }
uselistorder i64* %sv_2, { 1, 2, 0, 3 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 3, 1, 4 }
uselistorder i32* %sv_0.15.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64 (i64)* @headerFree, { 1, 0 }
uselistorder i64 (i64)* @hdrblobFree, { 1, 0 }
uselistorder i64 (i64, i64, i64*, i64*)* @hdrblobImport, { 1, 0 }
uselistorder i32 0, { 2, 1, 3, 4, 0, 5, 6 }
uselistorder i64 (i64)* @Fdescr, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i64 %arg2, { 1, 2, 0 }
uselistorder label LBL_12, { 2, 3, 1, 0 }
uselistorder label LBL_10, { 1, 2, 0, 3 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | _kfree_skb_defer_8350 | _kfree_skb_defer | 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* nonnull @gv_0)
%2 = call i64 @FUNC(i64 %0)
%3 = add i64 %1, 256
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = add i32 %5, 1
store i32 %6, i32* %4, align 4
%7 = sext i32 %5 to i64
%8 = mul i64 %7, 8
%9 = add i64 %8, %1
%10 = inttoptr i64 %9 to i64*
store i64 %0, i64* %10, align 8
%11 = load i32, i32* %4, align 4
%12 = icmp eq i32 %11, 32
%13 = icmp eq i1 %12, false
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_2, label LBL_1
LBL_1:
%14 = load i64, i64* @gv_1, align 8
%15 = call i64 @FUNC(i64 %14, i64 32, i64 %1)
store i32 0, i32* %4, align 4
store i64 %1, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 0, 2, 1, 3 }
} | 0 |
BinRealVul | bitor_12432 | bitor | 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 124)
%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 | is_special_wait_psw_17059 | is_special_wait_psw | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, inttoptr (i64 4095 to i64*)
%2 = zext i1 %1 to i64
%3 = and i64 %0, -256
%4 = or i64 %3, %2
ret i64 %4
} | 1 |
BinRealVul | ASN1_TYPE_cmp_11756 | ASN1_TYPE_cmp | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = icmp ne i32* %arg1, null
%4 = icmp ne i64* %arg2, null
%5 = trunc i64 %1 to i32
%or.cond.not = icmp eq i1 %3, %4
%6 = trunc i64 %2 to i32
%7 = icmp eq i32 %5, %6
%or.cond4 = icmp eq i1 %or.cond.not, %7
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %or.cond4, label LBL_1, label LBL_5
LBL_1:
%8 = ptrtoint i64* %arg2 to i64
store i64 0, i64* %sv_0.0.reg2mem
switch i32 %5, label LBL_3 [
i32 1, label LBL_2
i32 2, label LBL_4
]
LBL_2:
%9 = add i64 %8, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = ptrtoint i32* %arg1 to i64
%13 = add i64 %12, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %15, i64 %11)
store i64 %16, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_3:
%17 = add i64 %8, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = ptrtoint i32* %arg1 to i64
%21 = add i64 %20, 8
%22 = inttoptr i64 %21 to i64*
%23 = load i64, i64* %22, align 8
%24 = call i64 @FUNC(i64 %23, i64 %19)
store i64 %24, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%25 = and i64 %sv_0.0.reload, 4294967295
store i64 %25, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %5, { 1, 0 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | do_loadvm_14387 | do_loadvm | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%2 = call i64 @FUNC(i64 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%3 = call i64 @FUNC(i64 0)
%4 = call i64 @FUNC(i64 %2)
%5 = trunc i64 %4 to i32
%6 = icmp slt i32 %5, 0
%7 = icmp eq i32 %1, 0
%or.cond = or i1 %7, %6
store i64 %4, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC()
store i64 %8, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 1 |
BinRealVul | qemu_get_buffer_14533 | qemu_get_buffer | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%storemerge1.lcssa.reg2mem = alloca i32
%sv_0.02.reg2mem = alloca i64
%sv_1.03.reg2mem = alloca i32
%storemerge14.reg2mem = alloca i32
%0 = icmp eq i32 %arg3, 0
%1 = icmp slt i32 %arg3, 0
%2 = icmp eq i1 %1, false
%3 = icmp eq i1 %0, false
%4 = icmp eq i1 %2, %3
store i32 0, i32* %storemerge1.lcssa.reg2mem
br i1 %4, label LBL_1, label LBL_4
LBL_1:
%5 = ptrtoint i64* %arg1 to i64
%6 = ptrtoint i64* %arg2 to i64
store i32 0, i32* %storemerge14.reg2mem
store i32 %arg3, i32* %sv_1.03.reg2mem
store i64 %6, i64* %sv_0.02.reg2mem
br label LBL_2
LBL_2:
%sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem
%sv_1.03.reload = load i32, i32* %sv_1.03.reg2mem
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
%7 = call i64 @FUNC(i64 %5, i64 %sv_0.02.reload, i32 %sv_1.03.reload, i64 0)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i32 %storemerge14.reload, i32* %storemerge1.lcssa.reg2mem
br i1 %10, label LBL_3, label LBL_4
LBL_3:
%11 = and i64 %7, 4294967295
%12 = call i64 @FUNC(i64 %5, i64 %11)
%sext = mul i64 %7, 4294967296
%13 = ashr exact i64 %sext, 32
%14 = add i64 %13, %sv_0.02.reload
%15 = sub i32 %sv_1.03.reload, %8
%16 = add i32 %storemerge14.reload, %8
%17 = icmp eq i32 %15, 0
%18 = icmp slt i32 %15, 0
%19 = icmp eq i1 %18, false
%20 = icmp eq i1 %17, false
%21 = icmp eq i1 %19, %20
store i32 %16, i32* %storemerge14.reg2mem
store i32 %15, i32* %sv_1.03.reg2mem
store i64 %14, i64* %sv_0.02.reg2mem
store i32 %16, i32* %storemerge1.lcssa.reg2mem
br i1 %21, label LBL_2, label LBL_4
LBL_4:
%storemerge1.lcssa.reload = load i32, i32* %storemerge1.lcssa.reg2mem
%storemerge = zext i32 %storemerge1.lcssa.reload to i64
ret i64 %storemerge
uselistorder i32 %storemerge14.reload, { 1, 0 }
uselistorder i64 %sv_0.02.reload, { 1, 0 }
uselistorder i32* %storemerge14.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.03.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.02.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 4, 2, 3, 0, 1 }
uselistorder i32 0, { 5, 6, 4, 1, 0, 2, 3 }
uselistorder label LBL_4, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | avformat_free_context_15950 | avformat_free_context | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%storemerge4.reg2mem = alloca i32
%storemerge17.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = icmp eq i64 %arg1, 0
br i1 %2, label LBL_19, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %arg1)
%4 = add i64 %arg1, 56
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label LBL_5, label LBL_2
LBL_2:
%8 = inttoptr i64 %6 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_5, label LBL_3
LBL_3:
%11 = add i64 %arg1, 40
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_5, label LBL_4
LBL_4:
%15 = call i64 @FUNC(i64 %13)
br label LBL_5
LBL_5:
%16 = add i64 %arg1, 64
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = icmp eq i64 %18, 0
br i1 %19, label LBL_9, label LBL_6
LBL_6:
%20 = inttoptr i64 %18 to i64*
%21 = load i64, i64* %20, align 8
%22 = icmp eq i64 %21, 0
br i1 %22, label LBL_9, label LBL_7
LBL_7:
%23 = add i64 %arg1, 40
%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)
br label LBL_9
LBL_9:
%28 = trunc i64 %1 to i32
%storemerge16 = add i32 %28, -1
%29 = icmp slt i32 %storemerge16, 0
%30 = icmp eq i1 %29, false
br i1 %30, label LBL_10, label LBL_12
LBL_10:
%31 = add i64 %arg1, 16
%32 = inttoptr i64 %31 to i64*
store i32 %storemerge16, i32* %storemerge17.reg2mem
br label LBL_11
LBL_11:
%storemerge17.reload = load i32, i32* %storemerge17.reg2mem
%33 = load i64, i64* %32, align 8
%34 = sext i32 %storemerge17.reload to i64
%35 = mul i64 %34, 8
%36 = add i64 %35, %33
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = call i64 @FUNC(i64 %arg1, i64 %38)
%storemerge1 = add i32 %storemerge17.reload, -1
%40 = icmp slt i32 %storemerge1, 0
%41 = icmp eq i1 %40, false
store i32 %storemerge1, i32* %storemerge17.reg2mem
br i1 %41, label LBL_11, label LBL_12
LBL_12:
%42 = add i64 %arg1, 4
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%storemerge3 = add i32 %44, -1
%45 = icmp slt i32 %storemerge3, 0
%46 = icmp eq i1 %45, false
%47 = add i64 %arg1, 24
br i1 %46, label LBL_13, label LBL_15
LBL_13:
%48 = inttoptr i64 %47 to i64*
store i32 %storemerge3, i32* %storemerge4.reg2mem
br label LBL_14
LBL_14:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%49 = load i64, i64* %48, align 8
%50 = sext i32 %storemerge4.reload to i64
%51 = mul i64 %50, 8
%52 = add i64 %51, %49
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = call i64 @FUNC(i64 %54)
%56 = load i64, i64* %48, align 8
%57 = add i64 %56, %51
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = add i64 %59, 8
%61 = call i64 @FUNC(i64 %60)
%62 = load i64, i64* %48, align 8
%63 = add i64 %62, %51
%64 = call i64 @FUNC(i64 %63)
%storemerge = add i32 %storemerge4.reload, -1
%65 = icmp slt i32 %storemerge, 0
%66 = icmp eq i1 %65, false
store i32 %storemerge, i32* %storemerge4.reg2mem
br i1 %66, label LBL_14, label LBL_15
LBL_15:
%67 = call i64 @FUNC(i64 %47)
%68 = add i64 %arg1, 40
%69 = call i64 @FUNC(i64 %68)
%70 = add i64 %arg1, 8
%71 = inttoptr i64 %70 to i32*
%72 = load i32, i32* %71, align 4
%73 = add i32 %72, -1
store i32 %73, i32* %71, align 4
%74 = icmp eq i32 %72, 0
%75 = icmp eq i1 %74, false
%76 = add i64 %arg1, 32
br i1 %75, label LBL_16, label LBL_18
LBL_16:
%77 = inttoptr i64 %76 to i64*
store i32 %73, i32* %.reg2mem
br label LBL_17
LBL_17:
%.reload = load i32, i32* %.reg2mem
%78 = load i64, i64* %77, align 8
%79 = sext i32 %.reload to i64
%80 = mul i64 %79, 8
%81 = add i64 %80, %78
%82 = inttoptr i64 %81 to i64*
%83 = load i64, i64* %82, align 8
%84 = call i64 @FUNC(i64 %83)
%85 = load i64, i64* %77, align 8
%86 = load i32, i32* %71, align 4
%87 = sext i32 %86 to i64
%88 = mul i64 %87, 8
%89 = add i64 %88, %85
%90 = call i64 @FUNC(i64 %89)
%91 = load i32, i32* %71, align 4
%92 = add i32 %91, -1
store i32 %92, i32* %71, align 4
%93 = icmp eq i32 %91, 0
%94 = icmp eq i1 %93, false
store i32 %92, i32* %.reg2mem
br i1 %94, label LBL_17, label LBL_18
LBL_18:
%95 = call i64 @FUNC(i64 %76)
%96 = add i64 %arg1, 48
%97 = call i64 @FUNC(i64 %96)
%98 = add i64 %arg1, 16
%99 = call i64 @FUNC(i64 %98)
%100 = add i64 %arg1, 72
%101 = call i64 @FUNC(i64 %100)
%102 = call i64 @FUNC(i64 %arg1)
store i64 %102, i64* %rax.0.reg2mem
br label LBL_19
LBL_19:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %71, { 3, 4, 2, 0, 1 }
uselistorder i64 %51, { 2, 1, 0 }
uselistorder i32 %storemerge4.reload, { 1, 0 }
uselistorder i32 %storemerge17.reload, { 1, 0 }
uselistorder i32* %storemerge17.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64)* @av_freep, { 6, 5, 4, 7, 1, 0, 3, 2 }
uselistorder i64 (i64)* @av_dict_free, { 1, 2, 0 }
uselistorder i1 false, { 3, 2, 4, 1, 5, 0 }
uselistorder i32 -1, { 5, 2, 4, 1, 3, 0 }
uselistorder i64 (i64)* @av_opt_free, { 2, 1, 0 }
uselistorder i32 1, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 8, 12, 11, 14, 13, 15, 16 }
uselistorder label LBL_19, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
} | 1 |
BinRealVul | ffio_ensure_seekback_14121 | ffio_ensure_seekback | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 32
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
%narrow = select i1 %4, i32 4096, i32 %3
%spec.select = sext i32 %narrow to i64
%5 = add i64 %0, 16
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = sub i64 %7, %0
%9 = add i64 %0, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = sub i64 %arg2, %0
%13 = add i64 %12, %11
%14 = add i64 %13, %spec.select
%sext = mul i64 %8, 4294967296
%15 = ashr exact i64 %sext, 32
%16 = icmp slt i64 %14, %15
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_5, label LBL_1
LBL_1:
%17 = add i64 %0, 36
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_5, label LBL_2
LBL_2:
%22 = add i64 %0, 40
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
store i64 0, i64* %rax.0.reg2mem
br i1 %26, label LBL_3, label LBL_5
LBL_3:
%27 = add i64 %0, 44
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = icmp eq i32 %29, 0
%31 = zext i1 %30 to i64
%32 = call i64 @FUNC(i64 %31)
%33 = call i64 @FUNC(i64 %14)
%34 = icmp eq i64 %33, 0
%35 = icmp eq i1 %34, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %35, label LBL_4, label LBL_5
LBL_4:
%36 = trunc i64 %8 to i32
%37 = inttoptr i64 %33 to i64*
%38 = inttoptr i64 %14 to i64*
%39 = call i64* @memcpy(i64* %37, i64* %38, i32 %36)
%40 = call i64 @FUNC(i64 %33)
store i64 %33, i64* %arg1, align 8
%41 = add i64 %0, 24
%42 = inttoptr i64 %41 to i64*
store i64 %14, i64* %42, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %33, { 0, 2, 1, 3 }
uselistorder i64 %8, { 1, 0 }
uselistorder i64 %0, { 1, 4, 3, 2, 0, 5, 6, 7, 8 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 4, 3, 2 }
uselistorder label LBL_5, { 4, 0, 3, 2, 1 }
} | 1 |
BinRealVul | audio_pp_nb_voices_684 | audio_pp_nb_voices | define i64 @FUNC(i8* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.in.reg2mem = alloca i32
%0 = trunc i64 %arg2 to i32
%1 = icmp eq i32 %0, 2147483647
br i1 %1, label LBL_4, label LBL_1
LBL_1:
%sext = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = trunc i64 %2 to i32
switch i32 %3, label LBL_5 [
i32 0, label LBL_2
i32 1, label LBL_3
]
LBL_2:
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0), i8* %arg1)
store i32 %4, i32* %rax.0.in.reg2mem
br label LBL_6
LBL_3:
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0), i8* %arg1)
store i32 %5, i32* %rax.0.in.reg2mem
br label LBL_6
LBL_4:
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @gv_2, i64 0, i64 0), i8* %arg1)
store i32 %6, i32* %rax.0.in.reg2mem
br label LBL_6
LBL_5:
%7 = and i64 %2, 4294967295
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_3, i64 0, i64 0), i64 %7, i8* %arg1)
store i32 %8, i32* %rax.0.in.reg2mem
br label LBL_6
LBL_6:
%rax.0.in.reload = load i32, i32* %rax.0.in.reg2mem
%rax.0 = sext i32 %rax.0.in.reload to i64
ret i64 %rax.0
uselistorder i32* %rax.0.in.reg2mem, { 0, 1, 4, 2, 3 }
uselistorder i32 (i8*, ...)* @printf, { 2, 3, 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder i8* %arg1, { 1, 3, 0, 2 }
} | 0 |
BinRealVul | usb_uas_unrealize_16610 | usb_uas_unrealize | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = inttoptr i64 %1 to i64*
%3 = load i64, i64* %2, align 8
%4 = call i64 @FUNC(i64 %3)
ret i64 %4
} | 1 |
BinRealVul | t1_check_unusual_charstring_11806 | t1_check_unusual_charstring | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%0 = load [15 x i8]*, [15 x i8]** @gv_0, align 8
%1 = getelementptr inbounds [15 x i8], [15 x i8]* %0, i64 0, i64 0
%2 = call i8* @strstr(i8* bitcast (i8** @gv_1 to i8*), i8* %1)
%3 = ptrtoint i8* %2 to i64
%4 = load [15 x i8]*, [15 x i8]** @gv_0, align 8
%5 = getelementptr inbounds [15 x i8], [15 x i8]* %4, i64 0, i64 0
%6 = call i32 @strlen(i8* %5)
%7 = sext i32 %6 to i64
%8 = add i64 %7, %3
%9 = inttoptr i64 %8 to i8*
%10 = call i32 (i8*, i8*, ...) @sscanf(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_2, i64 0, i64 0), i64* nonnull %sv_0)
%11 = icmp eq i32 %10, 1
store i64 1, i64* %rax.0.reg2mem
br i1 %11, label LBL_2, label LBL_1
LBL_1:
%12 = call i8* @strcpy(i8* bitcast (i8** @gv_3 to i8*), i8* bitcast (i8** @gv_1 to i8*))
%13 = call i64 @FUNC(i64* bitcast (i8** @gv_3 to i64*))
%14 = add i64 %13, -1
%15 = inttoptr i64 %14 to i8*
store i8 32, i8* %15, align 1
%16 = call i64 @FUNC()
%17 = call i8* @strcat(i8* bitcast (i8** @gv_3 to i8*), i8* bitcast (i8** @gv_1 to i8*))
%18 = call i8* @strcpy(i8* bitcast (i8** @gv_1 to i8*), i8* bitcast (i8** @gv_3 to i8*))
%19 = call i64 @FUNC(i64* bitcast (i8** @gv_1 to i64*))
store i64 %19, i64* @gv_4, align 8
store i64 %19, 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 i8* (i8*, i8*)* @strcpy, { 1, 0 }
uselistorder i32 (i8*)* @strlen, { 2, 1, 0 }
uselistorder i32 1, { 1, 2, 0 }
} | 1 |
BinRealVul | vring_set_avail_event_2489 | vring_set_avail_event | 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 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = add i64 %4, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 %9, 4
%11 = trunc i64 %arg2 to i16
%12 = add i64 %4, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %14, i64 %5, i64 %10, i16 %11)
%16 = call i64 @FUNC(i64 %5, i64 %10, i64 2)
store i64 %16, 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 %10, { 1, 0 }
uselistorder i64 %4, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | unzzip_mem_disk_cat_file_6399 | unzzip_mem_disk_cat_file | define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_0 = alloca i64, align 8
%0 = call i64 @FUNC(i64 %arg1, i64 %arg2)
%1 = icmp eq i64 %0, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_5, label LBL_1
LBL_1:
%2 = call i64 @FUNC(i64* nonnull %sv_0, i64 1, i64 1024, i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_4
LBL_2:
%6 = inttoptr i64 %arg3 to %_IO_FILE*
store i32 %3, i32* %.reg2mem
br label LBL_3
LBL_3:
%.reload = load i32, i32* %.reg2mem
%7 = call i32 @fwrite(i64* nonnull %sv_0, i32 1, i32 %.reload, %_IO_FILE* %6)
%8 = call i64 @FUNC(i64* nonnull %sv_0, i64 1, i64 1024, i64 %0)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i32 %9, i32* %.reg2mem
br i1 %11, label LBL_3, label LBL_4
LBL_4:
%12 = call i64 @FUNC(i64 %0)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 2, 0, 3 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 (i64*, i64, i64, i64)* @zzip_mem_disk_fread, { 1, 0 }
uselistorder i64 1024, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 1, { 3, 4, 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | arm_gic_init_15075 | arm_gic_init | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%0 = call i64 @FUNC(i64 16)
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%sext = mul i64 %arg1, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = call i64 @FUNC(i64 4198832, i64 %0, i64 32)
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
store i64 %arg2, i64* %6, align 8
%7 = trunc i64 %3 to i32
%8 = icmp eq i32 %7, -1
store i32 0, i32* %storemerge3.reg2mem
br i1 %8, label LBL_3, label LBL_2
LBL_2:
%9 = load i64, i64* @gv_0, align 8
%10 = load i64, i64* @gv_1, align 8
%11 = call i64 @FUNC(i64 0, i64 %10, i64 %9, i64 %0)
%12 = trunc i64 %11 to i32
%13 = and i64 %3, 4294967295
%14 = call i64 @FUNC(i64 %13, i64 4095, i32 %12)
%15 = load i64, i64* @gv_2, align 8
%16 = load i64, i64* @gv_3, align 8
%17 = call i64 @FUNC(i64 0, i64 %16, i64 %15, i64 %0)
%18 = trunc i64 %17 to i32
%19 = add nsw i64 %3, 4096
%20 = and i64 %19, 4294967295
%21 = call i64 @FUNC(i64 %20, i64 4095, i32 %18)
store i32 %7, i32* %storemerge3.reg2mem
br label LBL_3
LBL_3:
%22 = inttoptr i64 %0 to i32*
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
store i32 %storemerge3.reload, i32* %22, align 4
%23 = call i64 @FUNC(i64 %0)
store i64 %4, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 0, 5, 1, 2, 3, 4, 6 }
uselistorder i32* %storemerge3.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i32)* @cpu_register_physical_memory, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64)* @cpu_register_io_memory, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i32 1, { 3, 2, 1, 0, 4 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | unregister_pernet_operations_6311 | unregister_pernet_operations | 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 = icmp eq i64* %arg1, null
store i64 %0, i64* %rax.0.reg2mem
br i1 %2, label LBL_2, label LBL_1
LBL_1:
%3 = and i64 %0, 4294967295
%4 = call i64 @FUNC(i64* nonnull @gv_0, i64 %3)
store i64 %4, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 1, 0, 2 }
} | 0 |
BinRealVul | block_save_iterate_3026 | block_save_iterate | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.02.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = load i32, i32* @gv_0, align 4
%7 = load i32, i32* @gv_1, align 4
%8 = zext i32 %7 to i64
%9 = call i64 @FUNC(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @gv_2, i64 0, i64 0), i64 %8, i32 %6, i64 %3, i64 %2, i64 %1)
%10 = call i64 @FUNC(i64 %4)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = and i64 %10, 4294967295
store i64 %13, i64* %rax.0.reg2mem
br label LBL_14
LBL_2:
%sext = mul i64 %5, 4294967296
%14 = ashr exact i64 %sext, 32
%15 = call i64 @FUNC()
%16 = call i64 @FUNC()
br label LBL_9
LBL_3:
%17 = call i64 @FUNC()
%18 = load i32, i32* inttoptr (i64 4210764 to i32*), align 4
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_6, label LBL_4
LBL_4:
%21 = call i64 @FUNC(i64 %4)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
store i32 0, i32* %sv_0.02.reg2mem
br i1 %24, label LBL_8, label LBL_5
LBL_5:
store i32 1, i32* bitcast (i64* @gv_3 to i32*), align 8
store i32 0, i32* %sv_0.02.reg2mem
br label LBL_8
LBL_6:
%25 = call i64 @FUNC()
%26 = call i64 @FUNC(i64 %4, i64 1)
%27 = trunc i64 %26 to i32
%28 = call i64 @FUNC()
%29 = icmp slt i32 %27, 0
%30 = icmp eq i1 %29, false
store i32 %27, i32* %sv_0.02.reg2mem
br i1 %30, label LBL_8, label LBL_7
LBL_7:
%31 = and i64 %26, 4294967295
store i64 %31, i64* %rax.0.reg2mem
br label LBL_14
LBL_8:
%sv_0.02.reload = load i32, i32* %sv_0.02.reg2mem
%32 = call i64 @FUNC()
%33 = icmp eq i32 %sv_0.02.reload, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_10, label LBL_9
LBL_9:
%35 = load i32, i32* @gv_1, align 4
%36 = load i32, i32* @gv_4, align 4
%37 = add i32 %36, %35
%38 = mul i32 %37, 512
%39 = zext i32 %38 to i64
%40 = call i64 @FUNC(i64 %4)
%41 = icmp sgt i64 %40, %39
br i1 %41, label LBL_3, label LBL_10
LBL_10:
%42 = call i64 @FUNC()
%43 = call i64 @FUNC(i64 %4)
%44 = trunc i64 %43 to i32
%45 = icmp eq i32 %44, 0
br i1 %45, label LBL_12, label LBL_11
LBL_11:
%46 = and i64 %43, 4294967295
store i64 %46, i64* %rax.0.reg2mem
br label LBL_14
LBL_12:
%47 = call i64 @FUNC(i64 %4, i64 1)
%48 = call i64 @FUNC(i64 %4)
%sext1 = mul i64 %48, 4294967296
%49 = ashr exact i64 %sext1, 32
%50 = sub nsw i64 %49, %14
%51 = icmp slt i64 %50, 1
store i64 1, i64* %rax.0.reg2mem
br i1 %51, label LBL_13, label LBL_14
LBL_13:
%52 = icmp ne i64 %50, 0
%53 = icmp eq i1 %52, false
%. = select i1 %53, i64 0, i64 4294967295
store i64 %., 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 %4, { 2, 1, 3, 5, 4, 0, 6, 7 }
uselistorder i32* %sv_0.02.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 5, 4, 3 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 ()* @blk_mig_unlock, { 1, 0 }
uselistorder i64 ()* @blk_mig_lock, { 1, 0 }
uselistorder i64 (i64)* @flush_blks, { 1, 0 }
uselistorder i32* @gv_1, { 1, 0 }
uselistorder i32 0, { 5, 6, 7, 1, 0, 8, 9, 10, 2, 3, 4 }
uselistorder i64 (i64)* @qemu_ftell, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_8, { 2, 1, 0 }
} | 0 |
BinRealVul | png_filter_row_17396 | png_filter_row | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i64* %arg4, i64* %arg5, i32 %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%indvars.iv30.reg2mem = alloca i64
%indvars.iv26.reg2mem = alloca i64
%sv_0.010.reg2mem = alloca i32
%sv_1.011.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%rsi = alloca i64, align 8
%0 = ptrtoint i64* %arg5 to i64
%1 = ptrtoint i64* %arg4 to i64
%2 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg7, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = zext i32 %arg3 to i64
store i64 %4, i64* @0, align 8
%5 = mul i64 %4, 8
%6 = add i64 %5, ptrtoint (i64* @gv_0 to i64)
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
store i64 %8, i64* %rax.0.reg2mem
switch i32 %arg3, label LBL_19 [
i32 0, label LBL_7
i32 1, label LBL_5
i32 2, label LBL_12
i32 3, label LBL_3
i32 4, label LBL_1
]
LBL_1:
%9 = trunc i64 %3 to i32
%10 = icmp sgt i32 %9, 0
store i32 0, i32* %sv_0.1.reg2mem
br i1 %10, label LBL_2, label LBL_17
LBL_2:
%wide.trip.count32 = and i64 %3, 4294967295
store i64 0, i64* %indvars.iv30.reg2mem
br label LBL_14
LBL_3:
%11 = trunc i64 %3 to i32
%12 = icmp sgt i32 %11, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_4, label LBL_19
LBL_4:
%wide.trip.count28 = and i64 %3, 4294967295
store i64 0, i64* %indvars.iv26.reg2mem
br label LBL_13
LBL_5:
%13 = trunc i64 %3 to i32
%14 = icmp sgt i32 %13, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_6, label LBL_19
LBL_6:
%wide.trip.count = and i64 %3, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_8
LBL_7:
%15 = call i64* @memcpy(i64* %arg2, i64* %arg4, i32 %arg6)
%16 = ptrtoint i64* %15 to i64
store i64 %16, i64* %rax.0.reg2mem
br label LBL_19
LBL_8:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%17 = add i64 %indvars.iv.reload, %1
%18 = add i64 %indvars.iv.reload, %2
%19 = inttoptr i64 %17 to i8*
%20 = load i8, i8* %19, align 1
%21 = inttoptr i64 %18 to i8*
store i8 %20, i8* %21, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_9, label LBL_8
LBL_9:
%22 = icmp eq i32 %13, 4
%23 = icmp slt i32 %13, %arg6
%or.cond35 = icmp eq i1 %22, %23
store i64 %wide.trip.count, i64* %rax.0.reg2mem
br i1 %or.cond35, label LBL_10, label LBL_19
LBL_10:
%24 = bitcast i64* %rsi to i32*
%25 = load i32, i32* %24, align 8
store i32 %25, i32* %sv_1.011.reg2mem
store i32 4, i32* %sv_0.010.reg2mem
br label LBL_11
LBL_11:
%sv_0.010.reload = load i32, i32* %sv_0.010.reg2mem
%sv_1.011.reload = load i32, i32* %sv_1.011.reg2mem
%26 = sext i32 %sv_0.010.reload to i64
%27 = add i64 %26, %1
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = and i32 %29, 2139062143
%31 = and i32 %sv_1.011.reload, 2139062143
%32 = add nuw i32 %30, %31
%33 = xor i32 %29, %sv_1.011.reload
%34 = and i32 %33, -2139062144
%35 = xor i32 %34, %32
%36 = add i64 %26, %2
%37 = inttoptr i64 %36 to i32*
store i32 %35, i32* %37, align 4
%38 = add i32 %sv_0.010.reload, 4
%39 = icmp slt i32 %38, %arg6
store i32 %35, i32* %sv_1.011.reg2mem
store i32 %38, i32* %sv_0.010.reg2mem
br i1 %39, label LBL_11, label LBL_18
LBL_12:
store i64 %2, i64* %rax.0.reg2mem
br label LBL_19
LBL_13:
%indvars.iv26.reload = load i64, i64* %indvars.iv26.reg2mem
%40 = add i64 %indvars.iv26.reload, %0
%41 = inttoptr i64 %40 to i8*
%42 = load i8, i8* %41, align 1
%43 = udiv i8 %42, 2
%44 = add i64 %indvars.iv26.reload, %1
%45 = inttoptr i64 %44 to i8*
%46 = load i8, i8* %45, align 1
%47 = add i64 %indvars.iv26.reload, %2
%48 = add i8 %46, %43
%49 = inttoptr i64 %47 to i8*
store i8 %48, i8* %49, align 1
%indvars.iv.next27 = add nuw nsw i64 %indvars.iv26.reload, 1
%exitcond29 = icmp eq i64 %indvars.iv.next27, %wide.trip.count28
store i64 %indvars.iv.next27, i64* %indvars.iv26.reg2mem
store i64 %wide.trip.count28, i64* %rax.0.reg2mem
br i1 %exitcond29, label LBL_19, label LBL_13
LBL_14:
%indvars.iv30.reload = load i64, i64* %indvars.iv30.reg2mem
%50 = add i64 %indvars.iv30.reload, %0
%51 = inttoptr i64 %50 to i8*
%52 = load i8, i8* %51, align 1
%53 = add i64 %indvars.iv30.reload, %1
%54 = inttoptr i64 %53 to i8*
%55 = load i8, i8* %54, align 1
%56 = add i64 %indvars.iv30.reload, %2
%57 = add i8 %55, %52
%58 = inttoptr i64 %56 to i8*
store i8 %57, i8* %58, align 1
%indvars.iv.next31 = add nuw nsw i64 %indvars.iv30.reload, 1
%exitcond33 = icmp eq i64 %indvars.iv.next31, %wide.trip.count32
store i64 %indvars.iv.next31, i64* %indvars.iv30.reg2mem
br i1 %exitcond33, label LBL_15, label LBL_14
LBL_15:
%59 = trunc i64 %3 to i32
%60 = icmp slt i32 %9, 3
%61 = icmp slt i32 %arg6, 5
%or.cond = or i1 %61, %60
store i32 %59, i32* %sv_0.1.reg2mem
br i1 %or.cond, label LBL_17, label LBL_16
LBL_16:
%62 = icmp eq i32 %9, 4
%63 = add i32 %arg6, -3
%storemerge.in = select i1 %62, i32 %arg6, i32 %63
store i32 %storemerge.in, i32* %sv_0.1.reg2mem
br label LBL_17
LBL_17:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%64 = sub i32 %arg6, %sv_0.1.reload
%65 = sext i32 %sv_0.1.reload to i64
%66 = add i64 %65, %0
%67 = add i64 %65, %1
%68 = add i64 %65, %2
%69 = zext i32 %64 to i64
%70 = call i64 @FUNC(i64 %68, i64 %67, i64 %66, i64 %69, i32 %9)
store i64 %70, i64* %rax.0.reg2mem
br label LBL_19
LBL_18:
%.pre = zext i32 %38 to i64
store i64 %.pre, i64* %rax.0.reg2mem
br label LBL_19
LBL_19:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %indvars.iv30.reload, { 0, 3, 2, 1 }
uselistorder i64 %indvars.iv26.reload, { 0, 3, 2, 1 }
uselistorder i32 %38, { 1, 0, 2 }
uselistorder i32 %sv_1.011.reload, { 1, 0 }
uselistorder i32 %sv_0.010.reload, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i64 %3, { 0, 1, 4, 2, 5, 3, 6 }
uselistorder i64 %2, { 4, 5, 3, 0, 1, 2 }
uselistorder i64 %1, { 3, 4, 2, 0, 1 }
uselistorder i64 %0, { 1, 2, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.011.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.010.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv26.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv30.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 8, 1, 7, 6, 5, 2, 3, 9 }
uselistorder i32 4, { 3, 1, 0, 2, 4 }
uselistorder i32 %arg6, { 3, 5, 6, 4, 2, 0, 1 }
uselistorder i32 %arg3, { 1, 0 }
uselistorder label LBL_19, { 4, 5, 0, 6, 1, 7, 2, 3, 8 }
uselistorder label LBL_17, { 1, 2, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | parse_init_table_4529 | parse_init_table | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%r8.2.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%.lcssa6.reg2mem = alloca i16
%r8.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i8
%.lcssa64.reg2mem = alloca i64
%.lcssa66.reg2mem = alloca i64*
%.lcssa68.reg2mem = alloca i64
%.reg2mem135 = alloca i32
%.reg2mem133 = alloca i16
%sv_1.02084.reg2mem = alloca i64
%r8.11985.reg2mem = alloca i64
%.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = trunc i64 %arg2 to i16
%4 = icmp eq i16 %3, 0
%5 = icmp eq i1 %4, false
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_17
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = trunc i64 %2 to i16
%sv_1.0.in15 = mul i64 %arg2, 281474976710656
%sv_1.016 = ashr exact i64 %sv_1.0.in15, 48
%8 = trunc i64 %sv_1.016 to i16
%9 = icmp ugt i16 %7, %8
%10 = icmp eq i1 %9, false
store i16 %8, i16* %.lcssa6.reg2mem
store i32 0, i32* %sv_0.1.reg2mem
br i1 %10, label LBL_13, label LBL_2
LBL_2:
%11 = add i64 %6, 8
%12 = inttoptr i64 %11 to i64*
%13 = trunc i64 %6 to i32
%14 = and i64 %6, 4294967295
%15 = icmp slt i32 %13, 0
%16 = icmp eq i1 %15, false
%17 = add i64 %6, 16
%18 = inttoptr i64 %17 to i64*
%19 = icmp slt i32 %13, 1
store i32 1, i32* %.reg2mem
store i64 %sv_1.016, i64* %sv_1.02084.reg2mem
store i16 %8, i16* %.reg2mem133
br label LBL_3
LBL_3:
%.reload134 = load i16, i16* %.reg2mem133
%sv_1.02084.reload = load i64, i64* %sv_1.02084.reg2mem
%r8.11985.reload = load i64, i64* %r8.11985.reg2mem
%20 = load i64, i64* %12, align 8
%21 = urem i64 %sv_1.02084.reload, 65536
%22 = add i64 %20, %21
%23 = inttoptr i64 %22 to i8*
%24 = load i8, i8* %23, align 1
%25 = load i64, i64* @gv_0, align 8
%26 = icmp eq i64 %25, 0
br i1 %26, label LBL_7, label LBL_4
LBL_4:
%.reload = load i32, i32* %.reg2mem
%27 = load i8, i8* bitcast (i8** @gv_1 to i8*), align 8
%28 = icmp eq i8 %24, %27
%29 = icmp eq i1 %28, false
store i32 1, i32* %.reg2mem135
store i64 %25, i64* %.lcssa68.reg2mem
store i64* @gv_0, i64** %.lcssa66.reg2mem
store i64 0, i64* %.lcssa64.reg2mem
store i8 %27, i8* %.lcssa.reg2mem
br i1 %29, label LBL_5, label LBL_8
LBL_5:
%.reload136 = load i32, i32* %.reg2mem135
%30 = sext i32 %.reload136 to i64
%31 = mul nsw i64 %30, 24
%32 = add i64 %31, ptrtoint (i64* @gv_0 to i64)
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = icmp eq i64 %34, 0
br i1 %35, label LBL_7, label LBL_6
LBL_6:
%36 = add i64 %31, ptrtoint (i8** @gv_1 to i64)
%37 = inttoptr i64 %36 to i8*
%38 = load i8, i8* %37, align 8
%39 = icmp eq i8 %24, %38
%40 = icmp eq i1 %39, false
%41 = add i32 %.reload136, 1
store i32 %41, i32* %.reg2mem135
store i64 %34, i64* %.lcssa68.reg2mem
store i64* %33, i64** %.lcssa66.reg2mem
store i64 %31, i64* %.lcssa64.reg2mem
store i8 %38, i8* %.lcssa.reg2mem
br i1 %40, label LBL_5, label LBL_8
LBL_7:
%42 = load i64, i64* %18, align 8
%43 = call i64 @FUNC(i64 %42, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_2, i64 0, i64 0), i16 %.reload134, i8 %24, i64 %r8.11985.reload, i64 %1)
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_17
LBL_8:
%.lcssa.reload = load i8, i8* %.lcssa.reg2mem
%.lcssa64.reload = load i64, i64* %.lcssa64.reg2mem
%.lcssa68.reload = load i64, i64* %.lcssa68.reg2mem
%44 = zext i8 %.lcssa.reload to i64
%45 = call i64 @FUNC(i64 %6, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_3, i64 0, i64 0), i16 %.reload134, i64 %44, i64 %.lcssa68.reload, i64 %1)
%46 = add i64 %.lcssa64.reload, ptrtoint (i64* @gv_4 to i64)
%47 = inttoptr i64 %46 to i64*
%48 = load i64, i64* %47, align 8
store i64 %21, i64* %rcx.0.reg2mem
store i64 %48, i64* %r8.0.reg2mem
br i1 %16, label LBL_10, label LBL_9
LBL_9:
%.lcssa66.reload = load i64*, i64** %.lcssa66.reg2mem
%49 = load i64, i64* %.lcssa66.reload, align 8
%50 = load i64, i64* %18, align 8
%51 = trunc i64 %49 to i8
%52 = call i64 @FUNC(i64 %50, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_5, i64 0, i64 0), i16 %.reload134, i8 %51, i64 %14, i64 %1)
store i64 %49, i64* %rcx.0.reg2mem
store i64 %14, i64* %r8.0.reg2mem
br label LBL_10
LBL_10:
%r8.0.reload = load i64, i64* %r8.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
store i16 %.reload134, i16* %.lcssa6.reg2mem
store i32 %.reload, i32* %sv_0.1.reg2mem
store i64 %rcx.0.reload, i64* %rcx.2.reg2mem
store i64 %r8.0.reload, i64* %r8.2.reg2mem
br i1 %19, label LBL_13, label LBL_11
LBL_11:
%53 = add i64 %sv_1.02084.reload, %6
%sv_1.0.in = mul i64 %53, 281474976710656
%sv_1.0 = ashr exact i64 %sv_1.0.in, 48
%54 = trunc i64 %sv_1.0 to i16
%55 = icmp ugt i16 %7, %54
%56 = icmp eq i1 %55, false
store i16 %54, i16* %.lcssa6.reg2mem
store i32 %.reload, i32* %sv_0.1.reg2mem
store i64 %rcx.0.reload, i64* %rcx.2.reg2mem
store i64 %r8.0.reload, i64* %r8.2.reg2mem
br i1 %56, label LBL_13, label LBL_12
LBL_12:
%57 = add nuw nsw i32 %.reload, 1
%58 = icmp ult i32 %.reload, 256
store i32 %57, i32* %.reg2mem
store i64 %r8.0.reload, i64* %r8.11985.reg2mem
store i64 %sv_1.0, i64* %sv_1.02084.reg2mem
store i16 %54, i16* %.reg2mem133
store i16 %54, i16* %.lcssa6.reg2mem
store i32 %57, i32* %sv_0.1.reg2mem
store i64 %rcx.0.reload, i64* %rcx.2.reg2mem
store i64 %r8.0.reload, i64* %r8.2.reg2mem
br i1 %58, label LBL_3, label LBL_13
LBL_13:
%r8.2.reload = load i64, i64* %r8.2.reg2mem
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%.lcssa6.reload = load i16, i16* %.lcssa6.reg2mem
%59 = icmp ult i16 %.lcssa6.reload, %7
br i1 %59, label LBL_15, label LBL_14
LBL_14:
%60 = add i64 %6, 16
%61 = inttoptr i64 %60 to i64*
%62 = load i64, i64* %61, align 8
%63 = call i64 @FUNC(i64 %62, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @gv_6, i64 0, i64 0), i16 %.lcssa6.reload, i64 %rcx.2.reload, i64 %r8.2.reload, i64 %1)
br label LBL_15
LBL_15:
%64 = icmp slt i32 %sv_0.1.reload, 256
store i64 0, i64* %rax.0.reg2mem
br i1 %64, label LBL_17, label LBL_16
LBL_16:
%65 = add i64 %6, 16
%66 = inttoptr i64 %65 to i64*
%67 = load i64, i64* %66, align 8
%68 = call i64 @FUNC(i64 %67, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @gv_7, i64 0, i64 0), i16 256, i64 %rcx.2.reload, i64 %r8.2.reload, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i16 %54, { 1, 2, 0, 3 }
uselistorder i64 %rcx.0.reload, { 1, 0, 2 }
uselistorder i64 %r8.0.reload, { 1, 3, 0, 2 }
uselistorder i32 %.reload136, { 1, 0 }
uselistorder i32 %.reload, { 2, 3, 0, 1 }
uselistorder i8 %24, { 0, 2, 1 }
uselistorder i16 %.reload134, { 0, 2, 1, 3 }
uselistorder i64* %18, { 1, 0 }
uselistorder i16 %8, { 1, 0, 2 }
uselistorder i64 %6, { 7, 6, 0, 4, 1, 3, 2, 5 }
uselistorder i64 %1, { 4, 3, 1, 2, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %r8.11985.reg2mem, { 1, 0 }
uselistorder i64* %sv_1.02084.reg2mem, { 1, 0, 2 }
uselistorder i16* %.reg2mem133, { 1, 0, 2 }
uselistorder i32* %.reg2mem135, { 2, 0, 1 }
uselistorder i16* %.lcssa6.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 1, 3, 4 }
uselistorder i64* %rcx.2.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %r8.2.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i8*, i16, i64, i64, i64)* @NV_WARN, { 1, 0 }
uselistorder i64 (i64, i8*, i16, i8, i64, i64)* @NV_ERROR, { 1, 0 }
uselistorder i8** @gv_1, { 1, 0 }
uselistorder i64* @gv_0, { 2, 0, 1 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 48, { 1, 0 }
uselistorder i1 false, { 4, 3, 0, 2, 1, 5 }
uselistorder label LBL_17, { 1, 0, 3, 2 }
uselistorder label LBL_13, { 1, 2, 0, 3 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | __migrate_swap_task_8746 | __migrate_swap_task | 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
%sext = mul i64 %arg2, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
%5 = ptrtoint i32* %arg1 to i64
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %5)
%7 = and i64 %2, 4294967295
%8 = call i64 @FUNC(i64 %7)
%9 = call i64 @FUNC(i64 %6, i64 %5, i64 0)
%10 = call i64 @FUNC(i64 %5, i64 %7)
%11 = call i64 @FUNC(i64 %8, i64 %5, i64 0)
%12 = call i64 @FUNC(i64 %8, i64 %5, i64 0)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
%13 = trunc i64 %2 to i32
%14 = add i64 %5, 4
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
store i64 %5, 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 %5, { 0, 6, 3, 2, 1, 4, 5 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | openrisc_pic_cpu_handler_16484 | openrisc_pic_cpu_handler | define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %arg2 to i32
%5 = urem i32 %4, 32
%6 = shl i32 1, %5
%storemerge = zext i32 %6 to i64
%7 = icmp ugt i32 %4, 31
store i64 %storemerge, i64* %rax.0.reg2mem
br i1 %7, label LBL_4, label LBL_1
LBL_1:
%8 = trunc i64 %1 to i32
%9 = trunc i64 %arg3 to i32
%10 = icmp eq i32 %9, 0
%11 = or i32 %6, %8
%12 = sub i32 0, %6
%13 = sub i32 %12, 1
%14 = and i32 %8, %13
%storemerge4 = select i1 %10, i32 %14, i32 %11
store i32 %storemerge4, i32* %arg1, align 4
%15 = add i64 %2, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = and i32 %17, %8
%19 = icmp eq i32 %18, 0
br i1 %19, label LBL_3, label LBL_2
LBL_2:
%20 = call i64 @FUNC(i64 %3, i64 1)
store i64 %20, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%21 = call i64 @FUNC(i64 %3, i64 1)
store i32 0, i32* %arg1, align 4
store i64 %2, 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 %8, { 1, 2, 0 }
uselistorder i32 %4, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %arg1, { 1, 0, 2 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 1 |
BinRealVul | read_off_14338 | read_off | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0, i64 %arg2, i64* nonnull %sv_0, i64 8)
%2 = icmp sgt i64 %1, 7
store i64 0, i64* %storemerge.reg2mem
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%3 = load i64, i64* %sv_0, align 8
%4 = call i64 @FUNC(i64 %3)
store i64 %4, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | qxl_exit_vga_mode_14806 | qxl_exit_vga_mode | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp eq i32 %2, 0
%5 = icmp eq i1 %4, false
store i64 %3, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = ptrtoint i32* %arg1 to i64
%7 = add i64 %6, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = zext i32 %9 to i64
%11 = call i64 @FUNC(i64 %10)
%12 = call i64 @FUNC(i64 %6, i64 1)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | print_fatal_signal_13092 | print_fatal_signal | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = load i8*, i8** @gv_0, align 8
%5 = ptrtoint i8* %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = and i64 %6, 4294967295
%8 = load i8*, i8** @gv_0, align 8
%9 = ptrtoint i8* %8 to i64
%10 = and i64 %arg2, 4294967295
%11 = call i64 @FUNC(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_1, i64 0, i64 0), i64 %9, i64 %7, i64 %10, i64 %2, i64 %1)
%12 = call i64 @FUNC(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_2, i64 0, i64 0), i64 %9, i64 %7, i64 %10, i64 %2, i64 %1)
%13 = call i64 @FUNC()
%14 = call i64 @FUNC(i64 %3)
%15 = call i64 @FUNC()
ret i64 %15
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @printk, { 1, 0 }
} | 1 |
BinRealVul | menelaus_rtc_stop_3167 | menelaus_rtc_stop | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = and i64 %1, 4294967295
%3 = call i64 @FUNC(i64 %2)
%4 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8
%5 = zext i32 %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i32
%8 = sub i32 0, %7
%9 = ptrtoint i32* %arg1 to i64
%10 = add i64 %9, 4
%11 = inttoptr i64 %10 to i32*
%12 = zext i32 %8 to i64
%13 = icmp eq i32 %7, 0
%14 = icmp slt i32 %8, 0
%15 = icmp eq i1 %14, false
%16 = icmp eq i1 %13, false
%17 = icmp eq i1 %15, %16
%spec.store.select = select i1 %17, i32 %8, i32 1
store i32 %spec.store.select, i32* %11, align 4
%spec.select = select i1 %17, i64 %12, i64 %9
ret i64 %spec.select
uselistorder i32 %8, { 0, 2, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 1, 0, 2 }
} | 0 |
BinRealVul | ioapic_service_11458 | ioapic_service | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%storemerge4.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i32, align 4
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = ashr exact i64 %sext, 29
%3 = sub 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 = icmp eq i32 %7, 0
store i64 4294967295, i64* %storemerge4.reg2mem
br i1 %8, label LBL_1, label LBL_12
LBL_1:
%9 = add i64 %5, 20
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = add i64 %5, 16
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i64 %5, 12
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = add i64 %5, 8
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i64 %5, 4
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = zext i32 %11 to i64
%25 = zext i32 %14 to i64
%26 = zext i32 %23 to i64
%27 = call i64 @FUNC(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @gv_0, i64 0, i64 0), i64 %26, i32 %20, i32 %17, i64 %25, i64 %24)
%28 = load i32, i32* %22, align 4
store i32 %28, i32* %sv_1, align 4
%29 = load i32, i32* %10, align 4
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_1.LBL_4_crit_edge, label LBL_3
LBL_2:
%.pre = trunc i64 %1 to i32
store i32 %.pre, i32* %.pre-phi.reg2mem
br label LBL_4
LBL_3:
%32 = add i64 %0, 8
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = trunc i64 %1 to i32
%36 = urem i32 %35, 32
%37 = icmp eq i32 %36, 0
%38 = shl i32 -1, %36
%phitmp = add i32 %38, -1
%storemerge = select i1 %37, i32 -2, i32 %phitmp
%39 = and i32 %34, %storemerge
store i32 %39, i32* %33, align 4
store i32 %35, i32* %.pre-phi.reg2mem
br label LBL_4
LBL_4:
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%40 = icmp eq i32 %.pre-phi.reload, 8
%41 = icmp eq i1 %40, false
%42 = trunc i64 %arg3 to i8
%43 = icmp eq i8 %42, 0
%or.cond = or i1 %43, %41
br i1 %or.cond, label LBL_8, label LBL_5
LBL_5:
%44 = add i64 %0, 16
%45 = inttoptr i64 %44 to i32*
%46 = load i32, i32* %45, align 4
%47 = icmp eq i32 %46, 0
br i1 %47, label LBL_7, label LBL_6
LBL_6:
%48 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_1, i64 0, i64 0))
br label LBL_7
LBL_7:
%49 = add i64 %0, 24
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = add i64 %0, 32
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = call i64 @FUNC(i64 %54, i64 0, i32* nonnull %sv_1, i64 %51)
%56 = trunc i64 %55 to i32
store i32 %56, i32* %45, align 4
store i32 %56, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_8:
%57 = add i64 %0, 32
%58 = inttoptr i64 %57 to i64*
%59 = load i64, i64* %58, align 8
%60 = call i64 @FUNC(i64 %59, i64 0, i32* nonnull %sv_1, i64 0)
%61 = trunc i64 %60 to i32
store i32 %61, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%62 = icmp eq i32 %sv_0.0.reload, 0
%63 = icmp eq i32 %29, 1
%64 = icmp eq i1 %63, false
%or.cond7 = or i1 %64, %62
br i1 %or.cond7, label LBL_11, label LBL_10
LBL_10:
%65 = add i64 %5, 24
%66 = inttoptr i64 %65 to i32*
store i32 1, i32* %66, align 4
br label LBL_11
LBL_11:
%67 = zext i32 %sv_0.0.reload to i64
store i64 %67, i64* %storemerge4.reg2mem
br label LBL_12
LBL_12:
%storemerge4.reload = load i64, i64* %storemerge4.reg2mem
ret i64 %storemerge4.reload
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %5, { 0, 1, 3, 2, 5, 4, 6 }
uselistorder i64 %1, { 1, 0, 2 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %0, { 5, 3, 2, 4, 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge4.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64, i32*, i64)* @kvm_irq_delivery_to_apic, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i64 32, { 1, 2, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | jsi_FSChmodProc_10474 | jsi_FSChmodProc | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i8*
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%2 = call i64 @FUNC(i64 %1, i64 %0, i64 0)
%3 = inttoptr i64 %2 to i8*
store i64 0, i64* %sv_1, align 8
%4 = load i8, i8* %3, align 1
%5 = icmp eq i8 %4, 126
%6 = icmp eq i1 %5, false
store i8* %3, i8** %sv_0.0.reg2mem
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %1, i64 %2, i64* nonnull %sv_1)
%8 = inttoptr i64 %7 to i8*
store i8* %8, i8** %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem
%9 = call i32 @chmod(i8* %sv_0.0.reload, i32 %arg3)
%10 = call i64 @FUNC(i64* nonnull %sv_1)
%11 = zext i32 %9 to i64
ret i64 %11
} | 0 |
BinRealVul | do_sigreturn_16076 | do_sigreturn | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge1.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%sv_2 = alloca i64, align 8
%4 = add i64 %1, 104
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %1, i64 %6)
%8 = call i64 @FUNC(i64 0, i64 %3, i64 %6, i64 1)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_4, label LBL_1
LBL_1:
%11 = ptrtoint i64* %sv_2 to i64
%12 = call i64 @FUNC(i64 %2, i64 %3)
%13 = add i64 %11, -288
store i64 1, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%14 = mul i64 %indvars.iv.reload, 8
%15 = add i64 %14, %3
%16 = add i64 %13, %14
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18, i64 %15)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 32
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_3, label LBL_2
LBL_3:
%20 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull %sv_1)
%21 = call i64 @FUNC(i64 2, i64* nonnull %sv_0, i64 0)
%22 = call i64 @FUNC(i64 %3, i64 %1)
%23 = add i64 %1, 120
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = add i64 %1, 112
%27 = inttoptr i64 %26 to i64*
store i64 %25, i64* %27, align 8
%28 = call i64 @FUNC(i64 %3, i64 %6, i64 0)
%29 = add i64 %1, 80
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
store i64 %31, i64* %storemerge1.reg2mem
br label LBL_5
LBL_4:
%32 = call i64 @FUNC(i64 11)
store i64 %32, i64* %storemerge1.reg2mem
br label LBL_5
LBL_5:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
ret i64 %storemerge1.reload
uselistorder i64 %3, { 0, 1, 4, 2, 3 }
uselistorder i64 %1, { 0, 3, 2, 1, 4, 5 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge1.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64)* @__get_user, { 1, 0 }
uselistorder i64 1, { 2, 0, 3, 1 }
} | 1 |
BinRealVul | test_media_insert_738 | test_media_insert | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load [11 x i8]*, [11 x i8]** @gv_0, align 8
%6 = ptrtoint [11 x i8]* %5 to i64
%7 = call i64 @FUNC(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @gv_1, i64 0, i64 0), i64 %6, i64 %3, i64 %4, i64 %2, i64 %1)
%8 = call i64 @FUNC(i8* bitcast (i8** @gv_2 to i8*), i64 %6, i64 %3, i64 %4, i64 %2, i64 %1)
%9 = call i64 @FUNC(i8* bitcast (i8** @gv_2 to i8*), i64 %6, i64 %3, i64 %4, i64 %2, i64 %1)
%10 = call i64 @FUNC(i64 1010)
%11 = urem i64 %10, 256
%12 = call i64 @FUNC(i64 %11, i64 128)
%13 = call i64 @FUNC(i64 1010)
%14 = urem i64 %13, 256
%15 = call i64 @FUNC(i64 %14, i64 128)
%16 = call i64 @FUNC(i64 0)
%17 = call i64 @FUNC(i64 1010)
%18 = urem i64 %17, 256
%19 = call i64 @FUNC(i64 %18, i64 128)
%20 = call i64 @FUNC(i64 1010)
%21 = urem i64 %20, 256
%22 = call i64 @FUNC(i64 %21, i64 128)
%23 = call i64 @FUNC(i64 1)
%24 = call i64 @FUNC(i64 1010)
%25 = urem i64 %24, 256
%26 = call i64 @FUNC(i64 %25, i64 128)
%27 = call i64 @FUNC(i64 1010)
%28 = urem i64 %27, 256
%29 = call i64 @FUNC(i64 %28, i64 128)
ret i64 %29
uselistorder i64 %4, { 1, 2, 0 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @assert_bit_clear, { 1, 0 }
uselistorder i64 (i64)* @send_seek, { 1, 0 }
uselistorder i64 (i64, i64)* @assert_bit_set, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @inb, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @qmp_discard_response, { 2, 1, 0 }
uselistorder i32 1, { 3, 2, 4, 5, 1, 0 }
} | 0 |
BinRealVul | nft_masq_ipv6_eval_17866 | nft_masq_ipv6_eval | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg3 to i64
%1 = ptrtoint i64* %arg2 to i64
%2 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%3 = call i64 @FUNC(i64 %2)
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
store i32 %5, i32* %sv_0, align 4
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %8, i32* nonnull %sv_0, i64 %8)
%10 = trunc i64 %9 to i32
%11 = bitcast i64* %arg2 to i32*
store i32 %10, i32* %11, align 4
ret i64 %1
uselistorder i64 %8, { 1, 0 }
} | 1 |
BinRealVul | gf_avc_change_vui_19280 | gf_avc_change_vui | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rdi.0.be.reg2mem = alloca i64
%.reg2mem7 = alloca i32
%.reg2mem5 = alloca i64
%.reg2mem3 = alloca i32
%.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
%sv_2 = alloca i64, align 8
%sv_3 = alloca i32, align 4
%sv_4 = alloca i64, align 8
%0 = ptrtoint i64* %sv_4 to i64
%1 = call i64* @memset(i64* nonnull %sv_4, i32 0, i32 4)
store i64 -1, i64* %sv_4, align 8
store i32 0, i32* %sv_3, align 4
%2 = call i64 @FUNC(i64 %0, i32* nonnull %sv_3)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_1, label LBL_14
LBL_1:
%5 = ptrtoint i64* %arg2 to i64
%6 = bitcast i32* %sv_1 to i64*
store i64 %2, i64* %.reg2mem
br label LBL_2
LBL_2:
%.reload = load i64, i64* %.reg2mem
store i64 0, i64* %sv_2, align 8
%7 = add i64 %.reload, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = inttoptr i64 %.reload to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11, i32 %9, i64* nonnull %sv_4, i64 0, i64* nonnull %6)
%13 = trunc i64 %12 to i32
%14 = icmp slt i32 %13, 0
%15 = icmp eq i1 %14, false
store i64 %11, i64* %rdi.0.be.reg2mem
br i1 %15, label LBL_3, label LBL_13
LBL_3:
%16 = load i32, i32* %8, align 4
%17 = add i32 %16, -1
%18 = zext i32 %17 to i64
%19 = call i64 @FUNC(i64 %18)
store i64 %19, i64* %sv_2, align 8
%20 = load i32, i32* %8, align 4
%21 = add i32 %20, -1
%22 = zext i32 %21 to i64
%23 = load i64, i64* %10, align 8
%24 = add i64 %23, 1
%25 = call i64 @FUNC(i64 %24, i64 %19, i64 %22)
%26 = trunc i64 %25 to i32
%27 = load i64, i64* %sv_2, align 8
%28 = and i64 %25, 4294967295
%29 = call i64 @FUNC(i64 %27, i64 %28, i64 0)
%30 = load i64, i64* %sv_2, align 8
%31 = call i64 @FUNC(i64 %29, i64 %30, i32 %26)
%32 = call i64 @FUNC(i64 %29, i64 0)
%33 = call i64 @FUNC(i64 0, i64 0, i64 1)
%34 = load i32, i32* %sv_1, align 4
%35 = icmp ult i32 %34, 8
store i32 %34, i32* %.reg2mem3
br i1 %35, label LBL_4, label LBL_6
LBL_4:
call void @__assert_fail(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 142, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0))
br label LBL_5
LBL_5:
%36 = call i64 @FUNC(i64 %29, i64 1)
%37 = trunc i64 %36 to i32
store i32 %37, i32* %sv_0, align 4
%38 = and i64 %36, 4294967295
%39 = call i64 @FUNC(i64 %33, i64 %38, i64 1)
%40 = load i32, i32* %sv_1, align 4
%41 = add i32 %40, -1
store i32 %41, i32* %sv_1, align 4
store i32 %41, i32* %.reg2mem3
br label LBL_6
LBL_6:
%.reload4 = load i32, i32* %.reg2mem3
%42 = icmp eq i32 %.reload4, 8
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_5, label LBL_7
LBL_7:
%44 = call i64 @FUNC(i64 %5, i64 %29, i64 %33, i64 0)
%45 = call i64 @FUNC(i64 %29)
%46 = trunc i64 %45 to i32
%47 = icmp eq i32 %46, 0
%48 = icmp eq i1 %47, false
br i1 %48, label LBL_8, label LBL_9
LBL_8:
%49 = call i64 @FUNC(i64 %29, i64 1)
%50 = trunc i64 %49 to i32
store i32 %50, i32* %sv_0, align 4
%51 = and i64 %49, 4294967295
%52 = call i64 @FUNC(i64 %33, i64 %51, i64 1)
%53 = call i64 @FUNC(i64 %29)
%54 = trunc i64 %53 to i32
%55 = icmp eq i32 %54, 0
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_8, label LBL_9
LBL_9:
%57 = call i64 @FUNC(i64 %29)
%58 = load i64, i64* %sv_2, align 8
%59 = call i64 @FUNC(i64 %58)
%60 = call i64 @FUNC(i64 %33, i64* nonnull %sv_2, i32* nonnull %sv_0)
%61 = load i32, i32* %sv_0, align 4
%62 = load i64, i64* %sv_2, align 8
%63 = zext i32 %61 to i64
%64 = call i64 @FUNC(i64 %62, i64 %63)
%65 = trunc i64 %64 to i32
%66 = load i32, i32* %sv_0, align 4
%67 = add i32 %65, 1
%68 = add i32 %67, %66
%69 = load i32, i32* %8, align 4
%70 = icmp ugt i32 %68, %69
br i1 %70, label LBL_11, label LBL_9.LBL_12_crit_edge
LBL_10:
%.pre2 = load i64, i64* %10, align 8
store i64 %.pre2, i64* %.reg2mem5
store i32 %66, i32* %.reg2mem7
br label LBL_12
LBL_11:
%71 = zext i32 %68 to i64
%72 = load i64, i64* %10, align 8
%73 = call i64 @FUNC(i64 %72, i64 %71)
store i64 %73, i64* %10, align 8
%.pre = load i32, i32* %sv_0, align 4
store i64 %73, i64* %.reg2mem5
store i32 %.pre, i32* %.reg2mem7
br label LBL_12
LBL_12:
%.reload8 = load i32, i32* %.reg2mem7
%.reload6 = load i64, i64* %.reg2mem5
%74 = add i64 %.reload6, 1
%75 = load i64, i64* %sv_2, align 8
%76 = call i64 @FUNC(i64 %75, i64 %74, i32 %.reload8)
%77 = trunc i64 %76 to i32
%78 = add i32 %77, 1
store i32 %78, i32* %8, align 4
%79 = call i64 @FUNC(i64 %33)
%80 = load i64, i64* %sv_2, align 8
%81 = call i64 @FUNC(i64 %80)
store i64 %80, i64* %rdi.0.be.reg2mem
br label LBL_13
LBL_13:
%rdi.0.be.reload = load i64, i64* %rdi.0.be.reg2mem
%82 = call i64 @FUNC(i64 %rdi.0.be.reload, i32* nonnull %sv_3)
%83 = icmp eq i64 %82, 0
%84 = icmp eq i1 %83, false
store i64 %82, i64* %.reg2mem
br i1 %84, label LBL_2, label LBL_14
LBL_14:
ret i64 0
uselistorder i64 %29, { 2, 3, 1, 0, 4, 5, 6, 7 }
uselistorder i64* %10, { 2, 1, 0, 3, 4 }
uselistorder i64 %.reload, { 1, 0 }
uselistorder i64* %sv_4, { 0, 2, 1, 3 }
uselistorder i32* %sv_3, { 1, 0, 2 }
uselistorder i64* %sv_2, { 1, 2, 3, 0, 4, 5, 6, 7, 8 }
uselistorder i32* %sv_1, { 2, 1, 0, 3 }
uselistorder i32* %sv_0, { 0, 2, 3, 1, 4, 5 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %rdi.0.be.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64)* @gf_free, { 1, 0 }
uselistorder i64 (i64)* @gf_bs_del, { 1, 0 }
uselistorder i64 (i64)* @gf_bs_bits_available, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @gf_bs_write_int, { 1, 0 }
uselistorder i64 (i64, i64)* @gf_bs_read_int, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @gf_bs_new, { 1, 0 }
uselistorder i64 1, { 5, 0, 1, 2, 3, 4, 6 }
uselistorder i64 0, { 0, 23, 15, 9, 10, 11, 12, 13, 14, 17, 16, 18, 19, 20, 22, 8, 1, 2, 3, 4, 5, 6, 7, 21 }
uselistorder i64 (i64, i32*)* @gf_list_enum, { 1, 0 }
uselistorder label LBL_12, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | ff_cmap_read_palette_14023 | ff_cmap_read_palette | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = trunc i64 %3 to i32
%6 = icmp slt i32 %5, 9
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = ptrtoint i32* %arg1 to i64
%8 = call i64 @FUNC(i64 %7, i64 0, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%9 = urem i32 %5, 32
%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 = shl i32 3, %9
%15 = icmp ult i32 %13, %14
br i1 %15, label LBL_5, label LBL_3
LBL_3:
%16 = icmp eq i32 %9, 31
store i64 0, i64* %rax.0.reg2mem
br i1 %16, label LBL_7, label LBL_4
LBL_4:
%17 = ptrtoint i64* %arg2 to i64
%18 = shl i32 1, %9
%19 = add i64 %10, 8
%20 = inttoptr i64 %19 to i64*
%21 = sext i32 %18 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_6
LBL_5:
%22 = zext i32 %13 to i64
%23 = call i64 @FUNC(i64 %10, i64 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0), i64 %22, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%24 = load i64, i64* %20, align 8
%sext = mul i64 %indvars.iv.reload, 12884901888
%25 = ashr exact i64 %sext, 32
%26 = add i64 %25, %24
%27 = inttoptr i64 %26 to i8*
%28 = load i8, i8* %27, align 1
%29 = zext i8 %28 to i32
%30 = mul i32 %29, 65536
%31 = add i64 %26, 1
%32 = inttoptr i64 %31 to i8*
%33 = load i8, i8* %32, align 1
%34 = zext i8 %33 to i32
%35 = mul i32 %34, 256
%36 = add i64 %26, 2
%37 = inttoptr i64 %36 to i8*
%38 = load i8, i8* %37, align 1
%39 = zext i8 %38 to i32
%40 = mul i64 %indvars.iv.reload, 4
%41 = add i64 %40, %17
%42 = or i32 %30, %35
%43 = or i32 %42, %39
%44 = or i32 %43, -16777216
%45 = inttoptr i64 %41 to i32*
store i32 %44, i32* %45, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%46 = icmp slt i64 %indvars.iv.next, %21
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %46, label LBL_6, label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i32 %13, { 1, 0 }
uselistorder i64 %10, { 1, 0, 2 }
uselistorder i32 %9, { 0, 2, 1 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 4, 2, 3 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i32* %arg1, { 1, 0 }
uselistorder label LBL_7, { 0, 2, 1, 3 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | skcipher_walk_first_7934 | skcipher_walk_first | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 24
%2 = inttoptr i64 %1 to i64*
store i64 0, i64* %2, align 8
%3 = call i64 @FUNC()
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%7 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %6, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0))
store i64 1, i64* %rax.0.reg2mem
br label LBL_7
LBL_2:
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = icmp eq i64 %10, 0
%12 = icmp eq i1 %11, false
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_3, label LBL_7
LBL_3:
%13 = add i64 %0, 32
%14 = inttoptr i64 %13 to i64*
store i64 0, i64* %14, align 8
%15 = add i64 %0, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = and i64 %17, %0
%19 = icmp eq i64 %18, 0
%20 = icmp eq i1 %19, false
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_6, label LBL_4
LBL_4:
%22 = call i64 @FUNC(i64 %0)
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, 0
br i1 %24, label LBL_6, label LBL_5
LBL_5:
%25 = and i64 %22, 4294967295
store i64 %25, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%26 = add i64 %0, 40
%27 = inttoptr i64 %26 to i64*
store i64 0, i64* %27, align 8
%28 = load i64, i64* %9, align 8
store i64 %28, i64* %2, align 8
%29 = call i64 @FUNC(i64 %0)
store i64 %29, 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 %0, { 1, 2, 4, 0, 3, 6, 5, 7 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2 }
uselistorder i1 false, { 0, 2, 1 }
uselistorder label LBL_7, { 2, 3, 1, 0 }
} | 0 |
BinRealVul | mbfl_filt_conv_big5_wchar_5837 | mbfl_filt_conv_big5_wchar | define i64 @FUNC(i64 %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%storemerge3.lcssa.reg2mem = alloca i32
%storemerge322.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%1 = load i64, i64* %0
%sext = mul i64 %arg1, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = icmp eq i32 %3, 1
store i32 0, i32* %arg2, align 4
br i1 %5, label LBL_7, label LBL_22
LBL_2:
%6 = trunc i64 %2 to i32
%7 = icmp ugt i32 %6, 128
br i1 %7, label LBL_3, label LBL_22
LBL_3:
%8 = ptrtoint i32* %arg2 to i64
%9 = icmp eq i32 %6, 255
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%11 = add i64 %8, 24
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %16, label LBL_22, label LBL_23
LBL_5:
%17 = add i64 %8, 8
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
%. = select i1 %23, i32 160, i32 128
%24 = icmp sge i32 %., %6
%25 = icmp sgt i32 %6, 254
%or.cond10 = or i1 %25, %24
br i1 %or.cond10, label LBL_22, label LBL_6
LBL_6:
store i32 1, i32* %arg2, align 4
%26 = add i64 %8, 4
%27 = inttoptr i64 %26 to i32*
store i32 %6, i32* %27, align 4
br label LBL_22
LBL_7:
%28 = trunc i64 %2 to i32
%.off = add i32 %28, -58
%29 = icmp ult i32 %.off, 69
%.off20 = add i32 %28, -161
%30 = icmp ult i32 %.off20, 94
%31 = or i1 %30, %29
%32 = icmp eq i1 %31, false
br i1 %32, label LBL_22, label LBL_8
LBL_8:
%33 = ptrtoint i32* %arg2 to i64
%34 = add i64 %33, 4
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = icmp sgt i32 %28, 126
%38 = mul i32 %36, 157
%storemerge5.v = select i1 %37, i32 -25375, i32 -25341
%39 = add i32 %storemerge5.v, %28
%storemerge5 = add i32 %39, %38
%40 = icmp slt i32 %storemerge5, 0
store i32 0, i32* %storemerge4.reg2mem
br i1 %40, label LBL_11, label LBL_9
LBL_9:
%41 = load i32, i32* @gv_0, align 4
%42 = zext i32 %41 to i64
%43 = sext i32 %storemerge5 to i64
%44 = icmp slt i64 %43, %42
store i32 0, i32* %storemerge4.reg2mem
br i1 %44, label LBL_10, label LBL_11
LBL_10:
%factor = mul i64 %43, 2
%45 = add i64 %factor, ptrtoint (i64* @gv_1 to i64)
%46 = inttoptr i64 %45 to i16*
%47 = load i16, i16* %46, align 2
%48 = zext i16 %47 to i32
store i32 %48, i32* %storemerge4.reg2mem
br label LBL_11
LBL_11:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%49 = add i64 %33, 8
%50 = inttoptr i64 %49 to i64*
%51 = load i64, i64* %50, align 8
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = or i32 %53, %storemerge4.reload
%55 = icmp eq i32 %54, 0
br i1 %55, label LBL_12, label LBL_22
LBL_12:
%56 = and i64 %2, 4294967295
%57 = zext i32 %36 to i64
%58 = call i64 @FUNC(i64 %57, i64 %56)
%59 = trunc i64 %58 to i32
%60 = icmp eq i32 %59, 0
br i1 %60, label LBL_22, label LBL_13
LBL_13:
%61 = icmp slt i32 %28, 161
%62 = mul i32 %36, 256
%63 = or i32 %62, %28
%64 = sext i32 %63 to i64
store i64 0, i64* %indvars.iv.reg2mem
store i32 0, i32* %storemerge322.reg2mem
br label LBL_14
LBL_14:
%storemerge322.reload = load i32, i32* %storemerge322.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%65 = mul i64 %indvars.iv.reload, 8
%66 = add i64 %65, ptrtoint (i16** @gv_2 to i64)
%67 = inttoptr i64 %66 to i16*
%68 = load i16, i16* %67, align 8
%69 = zext i16 %68 to i64
%70 = icmp slt i64 %64, %69
br i1 %70, label LBL_16, label LBL_15
LBL_15:
%71 = add i64 %65, ptrtoint (i16** @gv_3 to i64)
%72 = inttoptr i64 %71 to i16*
%73 = load i16, i16* %72, align 8
%74 = zext i16 %73 to i64
%75 = icmp sgt i64 %64, %74
br i1 %75, label LBL_16, label LBL_17
LBL_16:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%76 = add nuw nsw i32 %storemerge322.reload, 1
%77 = icmp ult i64 %indvars.iv.next, 256
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %76, i32* %storemerge322.reg2mem
store i32 %76, i32* %storemerge3.lcssa.reg2mem
br i1 %77, label LBL_14, label LBL_18
LBL_17:
%78 = trunc i64 %indvars.iv.reload to i32
store i32 %78, i32* %storemerge3.lcssa.reg2mem
br label LBL_18
LBL_18:
%storemerge3.lcssa.reload = load i32, i32* %storemerge3.lcssa.reg2mem
%79 = sext i32 %storemerge3.lcssa.reload to i64
%80 = mul i64 %79, 8
%81 = add i64 %80, ptrtoint (i16** @gv_2 to i64)
%82 = inttoptr i64 %81 to i16*
%83 = load i16, i16* %82, align 8
%84 = urem i16 %83, 256
%85 = icmp eq i16 %84, 64
%86 = icmp eq i1 %85, false
br i1 %86, label LBL_20, label LBL_19
LBL_19:
%87 = udiv i16 %83, 256
%88 = zext i16 %87 to i32
%89 = sub i32 %36, %88
%90 = mul i32 %89, 157
%.9.neg = select i1 %61, i32 -64, i32 -98
%91 = add i64 %80, ptrtoint (i16** @gv_4 to i64)
%92 = inttoptr i64 %91 to i16*
%93 = load i16, i16* %92, align 8
%94 = zext i16 %93 to i32
%95 = add i32 %.9.neg, %28
%96 = add i32 %95, %90
%97 = add i32 %96, %94
store i32 %97, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_20:
%98 = zext i16 %83 to i32
%99 = sub i32 %63, %98
%100 = add i64 %80, ptrtoint (i16** @gv_4 to i64)
%101 = inttoptr i64 %100 to i16*
%102 = load i16, i16* %101, align 8
%103 = zext i16 %102 to i32
%104 = add i32 %99, %103
store i32 %104, i32* %sv_0.0.reg2mem
br label LBL_21
LBL_21:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%105 = icmp eq i32 %sv_0.0.reload, 0
%106 = icmp slt i32 %sv_0.0.reload, 0
%107 = icmp eq i1 %106, false
%108 = icmp eq i1 %105, false
%109 = icmp ne i1 %107, %108
%or.cond = or i1 %107, %109
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_22, label LBL_23
LBL_22:
%110 = and i64 %2, 4294967295
store i64 %110, 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 i16 %83, { 2, 0, 1 }
uselistorder i64 %80, { 1, 2, 0 }
uselistorder i64 %65, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 1, 0, 2 }
uselistorder i32 %storemerge5, { 1, 0 }
uselistorder i32 %36, { 1, 0, 2, 3 }
uselistorder i32 %28, { 0, 1, 5, 2, 6, 3, 4 }
uselistorder i64 %8, { 1, 2, 0 }
uselistorder i32 %6, { 1, 4, 3, 2, 0 }
uselistorder i32 %3, { 1, 0 }
uselistorder i64 %2, { 2, 0, 1, 3 }
uselistorder i32* %storemerge4.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge322.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge3.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 ptrtoint (i16** @gv_2 to i64), { 1, 0 }
uselistorder i32 157, { 1, 0 }
uselistorder i64 4294967295, { 3, 0, 2, 1 }
uselistorder i1 false, { 2, 1, 3, 0, 6, 4, 5 }
uselistorder i32 128, { 1, 0 }
uselistorder i32* %arg2, { 1, 2, 3, 0 }
uselistorder label LBL_23, { 2, 0, 1 }
uselistorder label LBL_22, { 3, 0, 1, 2, 8, 4, 7, 5, 6 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_11, { 2, 1, 0 }
} | 0 |
BinRealVul | hesiod_init_5913 | hesiod_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64* @malloc(i32 16)
%1 = ptrtoint i64* %0 to i64
%2 = icmp eq i64* %0, null
br i1 %2, label LBL_8, label LBL_1
LBL_1:
store i64 %1, i64* %arg1, align 8
%3 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
%6 = select i1 %5, i64 %3, i64 ptrtoint ([17 x i8]* @gv_1 to i64)
%7 = call i64 @FUNC(i64 %1, i64 %6)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %8, 0
br i1 %9, label LBL_9, label LBL_2
LBL_2:
%10 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %11, label LBL_14, label LBL_3
LBL_3:
%12 = add i64 %1, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %14, 0
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = inttoptr i64 %14 to i64*
call void @free(i64* %16)
br label LBL_5
LBL_5:
%17 = inttoptr i64 %10 to i8*
%18 = call i32 @strlen(i8* %17)
%19 = add i32 %18, 2
%20 = call i64* @malloc(i32 %19)
%21 = ptrtoint i64* %20 to i64
store i64 %21, i64* %13, align 8
%22 = icmp eq i64* %20, null
br i1 %22, label LBL_7, label LBL_6
LBL_6:
%23 = bitcast i64* %20 to i8*
store i8 46, i8* %23, align 1
%24 = load i8, i8* %17, align 1
%25 = icmp eq i8 %24, 46
%26 = zext i1 %25 to i64
%storemerge3 = add i64 %10, %26
%27 = load i64, i64* %13, align 8
%28 = add i64 %27, 1
%29 = inttoptr i64 %28 to i8*
%30 = inttoptr i64 %storemerge3 to i8*
%31 = call i8* @strcpy(i8* %29, i8* %30)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_7:
%32 = call i32* @__errno_location()
store i32 12, i32* %32, align 4
br label LBL_9
LBL_8:
%33 = call i32* @__errno_location()
store i32 12, i32* %33, align 4
br label LBL_9
LBL_9:
%34 = load i64, i64* %0, align 8
%35 = icmp eq i64 %34, 0
br i1 %35, label LBL_11, label LBL_10
LBL_10:
%36 = inttoptr i64 %34 to i64*
call void @free(i64* %36)
br label LBL_11
LBL_11:
%37 = add i64 %1, 8
%38 = inttoptr i64 %37 to i64*
%39 = load i64, i64* %38, align 8
%40 = icmp eq i64 %39, 0
br i1 %40, label LBL_13, label LBL_12
LBL_12:
%41 = inttoptr i64 %39 to i64*
call void @free(i64* %41)
br label LBL_13
LBL_13:
call void @free(i64* nonnull %0)
store i64 4294967295, 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 %1, { 2, 0, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2 }
uselistorder void (i64*)* @free, { 3, 2, 1, 0 }
uselistorder i64 (i8*)* @hesiod_getenv, { 1, 0 }
uselistorder i64* (i32)* @malloc, { 1, 0 }
uselistorder label LBL_14, { 0, 2, 1 }
uselistorder label LBL_13, { 1, 0 }
} | 0 |
BinRealVul | kvm_arch_vcpu_reset_9935 | kvm_arch_vcpu_reset | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i8*
store i8 0, i8* %1, align 1
%2 = add i64 %0, 1
%3 = inttoptr i64 %2 to i8*
store i8 0, i8* %3, align 1
%4 = add i64 %0, 4
%5 = inttoptr i64 %4 to i32*
store i32 0, i32* %5, align 4
%6 = add i64 %0, 8
%7 = inttoptr i64 %6 to i64*
%8 = call i64* @memset(i64* %7, i32 0, i32 32)
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i32*
store i32 -61456, i32* %10, align 4
%11 = add i64 %0, 44
%12 = inttoptr i64 %11 to i32*
store i32 1024, i32* %12, align 4
%13 = call i64 @FUNC(i64 1, i64 %0)
%14 = add i64 %0, 48
%15 = inttoptr i64 %14 to i32*
store i32 0, i32* %15, align 4
%16 = call i64 @FUNC(i64 %0)
%17 = call i64 @FUNC(i64 %0)
%18 = add i64 %0, 52
%19 = inttoptr i64 %18 to i8*
store i8 0, i8* %19, align 1
ret i64 %0
uselistorder i32 0, { 1, 0, 2 }
} | 0 |
BinRealVul | opt_frame_pix_fmt_3394 | opt_frame_pix_fmt | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = inttoptr i64 %arg1 to i8*
%1 = call i32 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%2 = icmp eq i32 %1, 0
br i1 %2, label LBL_3, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %arg1)
%4 = trunc i64 %3 to i32
store i32 %4, i32* inttoptr (i64 4210764 to i32*), align 4
%5 = load i32, i32* @gv_1, align 4
%6 = icmp eq i32 %5, -1
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_4, label LBL_2
LBL_2:
%8 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%9 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %8, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_3, i64 0, i64 0), i8* %0)
%10 = call i64 @FUNC(i64 1)
unreachable
LBL_3:
%11 = call i64 @FUNC(i64 4198838, i64 100)
%12 = call i64 @FUNC(i64 0)
unreachable
LBL_4:
%13 = zext i32 %5 to i64
ret i64 %13
uselistorder i32 %5, { 1, 0 }
uselistorder i64 (i64)* @av_exit, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i32 (i8*, i8*)* @strcmp, { 1, 0 }
} | 0 |
BinRealVul | kvm_deassign_ioeventfd_10494 | kvm_deassign_ioeventfd | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = and i64 %1, 4294967295
%4 = call i64 @FUNC(i64 %3)
%5 = ptrtoint i32* %arg2 to i64
%6 = and i64 %4, 4294967295
%7 = call i64 @FUNC(i64 %2, i64 %6, i64 %5)
%8 = add i64 %5, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_3, label LBL_1
LBL_1:
%13 = trunc i64 %4 to i32
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_3, label LBL_2
LBL_2:
%16 = call i64 @FUNC(i64 %2, i64 1, i64 %5)
br label LBL_3
LBL_3:
%17 = and i64 %7, 4294967295
ret i64 %17
uselistorder i64 %4, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @kvm_deassign_ioeventfd_idx, { 1, 0 }
} | 0 |
BinRealVul | kvm_ioapic_class_init_16104 | kvm_ioapic_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 4198669, i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
store i64 4198676, i64* %4, align 8
store i64 4198683, i64* %arg1, align 8
%5 = load i64, i64* @gv_0, align 8
store i64 %5, i64* %2, align 8
ret i64 %0
} | 1 |
BinRealVul | ff_configure_buffers_for_index_14365 | ff_configure_buffers_for_index | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.4.lcssa.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.08.reg2mem = alloca i32
%sv_1.09.reg2mem = alloca i32
%.reg2mem37 = alloca i64
%sv_0.110.reg2mem = alloca i64
%sv_1.111.reg2mem = alloca i32
%storemerge512.reg2mem = alloca i32
%.reg2mem35 = alloca i64
%sv_0.314.reg2mem = alloca i64
%storemerge415.reg2mem = alloca i32
%.reg2mem33 = alloca i64
%.reg2mem31 = alloca i64
%sv_0.417.reg2mem = alloca i64
%storemerge18.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = add i64 %arg1, 24
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = call i64 @FUNC(i64 %6)
%8 = inttoptr i64 %7 to i8*
%9 = call i32 @strcmp(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%10 = icmp eq i32 %9, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %10, label LBL_19, label LBL_1
LBL_1:
%11 = call i32 @strcmp(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0))
%12 = icmp eq i32 %11, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %12, label LBL_19, label LBL_2
LBL_2:
%13 = call i32 @strcmp(i8* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %14, label LBL_19, label LBL_3
LBL_3:
%15 = trunc i64 %3 to i32
%16 = icmp eq i32 %15, 0
store i64 0, i64* %sv_0.4.lcssa.reg2mem
br i1 %16, label LBL_17, label LBL_4
LBL_4:
%17 = add i64 %arg1, 8
%18 = inttoptr i64 %17 to i64*
%19 = and i64 %3, 4294967295
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge18.reg2mem
store i64 0, i64* %sv_0.417.reg2mem
br label LBL_5
LBL_5:
%sv_0.417.reload = load i64, i64* %sv_0.417.reg2mem
%storemerge18.reload = load i32, i32* %storemerge18.reg2mem
%.reload = load i64, i64* %.reg2mem
%20 = load i64, i64* %18, align 8
%21 = mul i64 %.reload, 8
%22 = add i64 %20, %21
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = inttoptr i64 %24 to i32*
%26 = add i64 %24, 8
%27 = inttoptr i64 %26 to i64*
%28 = add i64 %24, 16
%29 = inttoptr i64 %28 to i32*
store i64 %20, i64* %.reg2mem31
store i64 0, i64* %.reg2mem33
store i32 0, i32* %storemerge415.reg2mem
store i64 %sv_0.417.reload, i64* %sv_0.314.reg2mem
br label LBL_6
LBL_6:
%sv_0.314.reload = load i64, i64* %sv_0.314.reg2mem
%storemerge415.reload = load i32, i32* %storemerge415.reg2mem
%.reload34 = load i64, i64* %.reg2mem33
%.reload32 = load i64, i64* %.reg2mem31
%30 = mul i64 %.reload34, 8
%31 = add i64 %30, %.reload32
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = icmp eq i32 %storemerge18.reload, %storemerge415.reload
store i64 %sv_0.314.reload, i64* %sv_0.2.reg2mem
br i1 %34, label LBL_14, label LBL_7
LBL_7:
%35 = load i32, i32* %25, align 4
%36 = icmp eq i32 %35, 0
store i64 %sv_0.314.reload, i64* %sv_0.2.reg2mem
br i1 %36, label LBL_14, label LBL_8
LBL_8:
%37 = inttoptr i64 %33 to i32*
%38 = add i64 %33, 8
%39 = inttoptr i64 %38 to i64*
%40 = add i64 %33, 16
%41 = inttoptr i64 %40 to i32*
store i64 0, i64* %.reg2mem35
store i32 0, i32* %storemerge512.reg2mem
store i32 0, i32* %sv_1.111.reg2mem
store i64 %sv_0.314.reload, i64* %sv_0.110.reg2mem
br label LBL_9
LBL_9:
%sv_0.110.reload = load i64, i64* %sv_0.110.reg2mem
%sv_1.111.reload = load i32, i32* %sv_1.111.reg2mem
%storemerge512.reload = load i32, i32* %storemerge512.reg2mem
%.reload36 = load i64, i64* %.reg2mem35
%42 = load i64, i64* %27, align 8
%43 = mul i64 %.reload36, 16
%44 = add i64 %42, %43
%45 = load i32, i32* %29, align 4
%46 = inttoptr i64 %44 to i64*
%47 = load i64, i64* %46, align 8
%48 = zext i32 %45 to i64
%49 = call i64 @FUNC(i64 %47, i64 %48, i64 1)
%50 = load i32, i32* %37, align 4
%51 = zext i32 %50 to i64
%52 = sext i32 %sv_1.111.reload to i64
%53 = icmp slt i64 %52, %51
store i64 %52, i64* %.reg2mem37
store i32 %sv_1.111.reload, i32* %sv_1.09.reg2mem
store i32 %sv_1.111.reload, i32* %sv_1.08.reg2mem
store i64 %sv_0.110.reload, i64* %sv_0.0.reg2mem
br i1 %53, label LBL_10, label LBL_13
LBL_10:
%sv_1.09.reload = load i32, i32* %sv_1.09.reg2mem
%.reload38 = load i64, i64* %.reg2mem37
%54 = load i64, i64* %39, align 8
%55 = mul i64 %.reload38, 16
%56 = add i64 %54, %55
%57 = load i32, i32* %41, align 4
%58 = inttoptr i64 %56 to i64*
%59 = load i64, i64* %58, align 8
%60 = zext i32 %57 to i64
%61 = call i64 @FUNC(i64 %59, i64 %60, i64 1)
%62 = sub i64 %61, %49
%63 = icmp slt i64 %62, %arg2
br i1 %63, label LBL_12, label LBL_11
LBL_11:
%64 = add i64 %44, 8
%65 = inttoptr i64 %64 to i64*
%66 = load i64, i64* %65, align 8
%67 = add i64 %56, 8
%68 = inttoptr i64 %67 to i64*
%69 = load i64, i64* %68, align 8
%70 = sub i64 %66, %69
%71 = sub i64 %sv_0.110.reload, %70
%72 = xor i64 %70, %sv_0.110.reload
%73 = xor i64 %71, %sv_0.110.reload
%74 = and i64 %73, %72
%75 = icmp slt i64 %74, 0
%76 = icmp slt i64 %71, 0
%77 = icmp eq i1 %76, %75
%78 = select i1 %77, i64 %sv_0.110.reload, i64 %70
store i32 %sv_1.09.reload, i32* %sv_1.08.reg2mem
store i64 %78, i64* %sv_0.0.reg2mem
br label LBL_13
LBL_12:
%79 = add i32 %sv_1.09.reload, 1
%80 = load i32, i32* %37, align 4
%81 = zext i32 %80 to i64
%82 = sext i32 %79 to i64
%83 = icmp slt i64 %82, %81
store i64 %82, i64* %.reg2mem37
store i32 %79, i32* %sv_1.09.reg2mem
store i32 %79, i32* %sv_1.08.reg2mem
store i64 %sv_0.110.reload, i64* %sv_0.0.reg2mem
br i1 %83, label LBL_10, label LBL_13
LBL_13:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.08.reload = load i32, i32* %sv_1.08.reg2mem
%84 = add i32 %storemerge512.reload, 1
%85 = load i32, i32* %25, align 4
%86 = zext i32 %85 to i64
%87 = sext i32 %84 to i64
%88 = icmp slt i64 %87, %86
store i64 %87, i64* %.reg2mem35
store i32 %84, i32* %storemerge512.reg2mem
store i32 %sv_1.08.reload, i32* %sv_1.111.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.110.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.2.reg2mem
br i1 %88, label LBL_9, label LBL_14
LBL_14:
%sv_0.2.reload = load i64, i64* %sv_0.2.reg2mem
%89 = add i32 %storemerge415.reload, 1
%90 = sext i32 %89 to i64
%91 = icmp sgt i64 %19, %90
br i1 %91, label LBL_14.LBL_6_crit_edge, label LBL_16
LBL_15:
%.pre = load i64, i64* %18, align 8
store i64 %.pre, i64* %.reg2mem31
store i64 %90, i64* %.reg2mem33
store i32 %89, i32* %storemerge415.reg2mem
store i64 %sv_0.2.reload, i64* %sv_0.314.reg2mem
br label LBL_6
LBL_16:
%92 = add i32 %storemerge18.reload, 1
%93 = sext i32 %92 to i64
%94 = icmp sgt i64 %19, %93
store i64 %93, i64* %.reg2mem
store i32 %92, i32* %storemerge18.reg2mem
store i64 %sv_0.2.reload, i64* %sv_0.417.reg2mem
store i64 %sv_0.2.reload, i64* %sv_0.4.lcssa.reg2mem
br i1 %94, label LBL_5, label LBL_17
LBL_17:
%sv_0.4.lcssa.reload = load i64, i64* %sv_0.4.lcssa.reg2mem
%95 = mul i64 %sv_0.4.lcssa.reload, 2
%96 = add i64 %arg1, 16
%97 = inttoptr i64 %96 to i64*
%98 = load i64, i64* %97, align 8
%99 = inttoptr i64 %98 to i32*
%100 = load i32, i32* %99, align 4
%101 = sext i32 %100 to i64
%102 = icmp sle i64 %95, %101
%103 = icmp sgt i64 %95, 16777215
%or.cond = or i1 %103, %102
store i64 %101, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_19, label LBL_18
LBL_18:
%104 = call i64 @FUNC(i64 %arg1, i64 0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_3, i64 0, i64 0), i64 %95, i64 %2, i64 %1)
%105 = load i64, i64* %97, align 8
%106 = call i64 @FUNC(i64 %105, i64 %95)
%107 = ashr exact i64 %95, 1
%108 = load i64, i64* %97, align 8
%109 = add i64 %108, 4
%110 = inttoptr i64 %109 to i32*
%111 = load i32, i32* %110, align 4
%112 = sext i32 %111 to i64
%113 = sub nsw i64 %107, %112
%114 = xor i64 %107, %112
%115 = xor i64 %113, %107
%116 = and i64 %115, %114
%117 = icmp slt i64 %116, 0
%118 = icmp slt i64 %113, 0
%119 = icmp eq i1 %118, %117
%120 = select i1 %119, i64 %107, i64 %112
%121 = trunc i64 %120 to i32
store i32 %121, i32* %110, align 4
store i64 %108, i64* %rax.0.reg2mem
br label LBL_19
LBL_19:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %113, { 1, 0 }
uselistorder i64 %112, { 1, 0, 2 }
uselistorder i64 %107, { 2, 1, 0, 3 }
uselistorder i64 %95, { 4, 3, 1, 2, 0 }
uselistorder i64 %71, { 1, 0 }
uselistorder i64 %70, { 1, 0, 2 }
uselistorder i32 %sv_1.09.reload, { 1, 0 }
uselistorder i64 %sv_0.110.reload, { 0, 3, 5, 4, 2, 1 }
uselistorder i32* %37, { 1, 0 }
uselistorder i64 %sv_0.314.reload, { 2, 0, 1 }
uselistorder i32* %25, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge18.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.417.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem31, { 1, 0, 2 }
uselistorder i64* %.reg2mem33, { 1, 0, 2 }
uselistorder i32* %storemerge415.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.314.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem35, { 1, 0, 2 }
uselistorder i32* %storemerge512.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.111.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.110.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem37, { 2, 0, 1 }
uselistorder i32* %sv_1.09.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.08.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 3, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64)* @av_rescale_q, { 1, 0 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder i32 0, { 0, 1, 4, 2, 3, 5, 6, 7, 8 }
uselistorder i32 (i8*, i8*)* @strcmp, { 2, 1, 0 }
uselistorder label LBL_19, { 4, 3, 2, 1, 0 }
uselistorder label LBL_13, { 0, 2, 1 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | sspi_SecureHandleGetUpperPointer_6531 | sspi_SecureHandleGetUpperPointer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64* %arg1, null
br i1 %0, label LBL_2, label LBL_1
LBL_1:
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
%6 = sub i64 0, %1
%7 = sub i64 %6, 1
%spec.select = select i1 %5, i64 %7, i64 0
ret i64 %spec.select
LBL_2:
ret i64 0
uselistorder i64* %arg1, { 1, 0 }
} | 0 |
BinRealVul | gf_seng_get_base64_iod_6453 | gf_seng_get_base64_iod | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem6 = alloca i64
%.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%sv_2 = alloca i32, align 4
store i32 0, i32* %sv_2, align 4
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
store i64 0, i64* %rax.0.reg2mem
br i1 %1, label LBL_1, label LBL_6
LBL_1:
%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 = call i64 @FUNC(i64 %5, i32* nonnull %sv_2)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 %6, i64* %.reg2mem
store i64 %5, i64* %.reg2mem6
store i64 0, i64* %rax.0.reg2mem
br i1 %8, label LBL_2, label LBL_6
LBL_2:
%.reload7 = load i64, i64* %.reg2mem6
%.reload = load i64, i64* %.reg2mem
%9 = inttoptr i64 %.reload to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 1
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_3, label LBL_4
LBL_3:
%13 = add i64 %.reload7, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = call i64 @FUNC(i64 %15, i32* nonnull %sv_2)
%17 = icmp eq i64 %16, 0
%18 = icmp eq i1 %17, false
store i64 %16, i64* %.reg2mem
store i64 %15, i64* %.reg2mem6
store i64 0, i64* %rax.0.reg2mem
br i1 %18, label LBL_2, label LBL_6
LBL_4:
%19 = add i64 %.reload, 4
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, 2
%23 = icmp eq i1 %22, false
br i1 %23, label LBL_5, label LBL_3
LBL_5:
store i32 0, i32* %sv_1, align 4
%24 = call i64 @FUNC(i64 %.reload7, i64* nonnull %sv_0, i32* nonnull %sv_1)
%25 = load i32, i32* %sv_1, align 4
%26 = mul i32 %25, 2
%27 = add i32 %26, 3
%28 = zext i32 %27 to i64
%29 = call i64 @FUNC(i64 %28)
%30 = load i32, i32* %sv_1, align 4
%31 = load i64, i64* %sv_0, align 8
%32 = call i64 @FUNC(i64 %31, i32 %30, i64 %29, i32 %27)
%33 = and i64 %32, 4294967295
%34 = add i64 %33, %29
%35 = inttoptr i64 %34 to i8*
store i8 0, i8* %35, align 1
%36 = load i64, i64* %sv_0, align 8
%37 = call i64 @FUNC(i64 %36)
store i64 %29, 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 %.reload7, { 1, 0 }
uselistorder i32* %sv_2, { 1, 0, 2 }
uselistorder i32* %sv_1, { 1, 2, 0, 3 }
uselistorder i64* %sv_0, { 1, 2, 0 }
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem6, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 (i64, i32*)* @gf_list_enum, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i1 false, { 1, 3, 2, 0, 4 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_6, { 3, 0, 1, 2 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | stringin_12397 | stringin | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge2.lcssa.reg2mem = alloca i32
%storemerge24.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = icmp sgt i32 %1, 0
store i32 0, i32* %storemerge24.reg2mem
store i32 0, i32* %storemerge2.lcssa.reg2mem
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%storemerge24.reload = load i32, i32* %storemerge24.reg2mem
%3 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%4 = sext i32 %storemerge24.reload to i64
%5 = add i64 %4, %0
%6 = inttoptr i64 %5 to i64*
%7 = call i32 @fread(i64* %6, i32 1, i32 1, %_IO_FILE* %3)
%8 = icmp eq i32 %7, 1
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %8, label LBL_2, label LBL_5
LBL_2:
%9 = inttoptr i64 %5 to i8*
%10 = load i8, i8* %9, align 1
%11 = icmp eq i8 %10, 0
store i32 %storemerge24.reload, i32* %storemerge2.lcssa.reg2mem
br i1 %11, label LBL_4, label LBL_3
LBL_3:
%12 = add nuw i32 %storemerge24.reload, 1
%13 = icmp slt i32 %12, %1
store i32 %12, i32* %storemerge24.reg2mem
store i32 %12, i32* %storemerge2.lcssa.reg2mem
br i1 %13, label LBL_1, label LBL_4
LBL_4:
%storemerge2.lcssa.reload = load i32, i32* %storemerge2.lcssa.reg2mem
%14 = zext i32 %storemerge2.lcssa.reload to i64
store i64 %14, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %storemerge24.reload, { 1, 0, 2 }
uselistorder i32 %1, { 1, 0 }
uselistorder i32* %storemerge24.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge2.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i8 0, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | search_memslots_19118 | search_memslots | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.03.reg2mem = alloca i32
%sv_1.04.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 16
%4 = call i64 @FUNC(i64 %3)
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%sext = mul i64 %4, 4294967296
%8 = ashr exact i64 %sext, 28
%9 = add i64 %8, %7
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = icmp ugt i64 %11, %arg2
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = add i64 %9, 8
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = sext i32 %15 to i64
%17 = add i64 %11, %16
%18 = icmp ugt i64 %17, %arg2
%19 = icmp eq i1 %18, false
store i64 %9, i64* %rax.0.reg2mem
br i1 %19, label LBL_2, label LBL_7
LBL_2:
%20 = trunc i64 %1 to i32
%21 = icmp sgt i32 %20, 0
store i32 %20, i32* %sv_1.04.reg2mem
store i32 0, i32* %sv_0.03.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %21, label LBL_3, label LBL_4
LBL_3:
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%sv_1.04.reload = load i32, i32* %sv_1.04.reg2mem
%22 = sub i32 %sv_1.04.reload, %sv_0.03.reload
%23 = icmp slt i32 %22, 0
%24 = zext i1 %23 to i32
%25 = add i32 %22, %24
%26 = ashr i32 %25, 1
%27 = add i32 %26, %sv_0.03.reload
%28 = sext i32 %27 to i64
%29 = mul i64 %28, 16
%30 = add i64 %29, %7
%31 = inttoptr i64 %30 to i64*
%32 = load i64, i64* %31, align 8
%33 = icmp ugt i64 %32, %arg2
%34 = add i32 %27, 1
%spec.select = select i1 %33, i32 %34, i32 %sv_0.03.reload
%spec.select2 = select i1 %33, i32 %sv_1.04.reload, i32 %27
%35 = icmp sgt i32 %spec.select2, %spec.select
store i32 %spec.select2, i32* %sv_1.04.reg2mem
store i32 %spec.select, i32* %sv_0.03.reg2mem
store i32 %spec.select, i32* %sv_0.0.lcssa.reg2mem
br i1 %35, label LBL_3, label LBL_4
LBL_4:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%36 = sext i32 %sv_0.0.lcssa.reload to i64
%37 = mul i64 %36, 16
%38 = add i64 %37, %7
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = icmp ugt i64 %40, %arg2
store i64 0, i64* %rax.0.reg2mem
br i1 %41, label LBL_7, label LBL_5
LBL_5:
%42 = add i64 %38, 8
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = sext i32 %44 to i64
%46 = add i64 %40, %45
%47 = icmp ugt i64 %46, %arg2
%48 = icmp eq i1 %47, false
store i64 0, i64* %rax.0.reg2mem
br i1 %48, label LBL_7, label LBL_6
LBL_6:
%49 = zext i32 %sv_0.0.lcssa.reload to i64
%50 = call i64 @FUNC(i64 %3, i64 %49)
store i64 %38, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.0.lcssa.reload, { 1, 0 }
uselistorder i32 %sv_0.03.reload, { 0, 2, 1 }
uselistorder i32* %sv_1.04.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3 }
uselistorder i32 0, { 2, 0, 1, 3 }
uselistorder i64 %arg2, { 1, 2, 0, 3, 4 }
uselistorder label LBL_7, { 3, 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | rdgsshadow_5907 | rdgsshadow | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i64 @FUNC()
%3 = and i64 %2, 32
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC()
%6 = call i64 @FUNC()
%7 = call i64 @FUNC()
store i64 %6, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_2:
%8 = call i64 @FUNC(i64 3221225730, i64 %1)
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64 ()* @__asm_swapgs, { 1, 0 }
uselistorder i32 1, { 2, 1, 0 }
} | 0 |
BinRealVul | br_multicast_disable_port_10591 | br_multicast_disable_port | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 32
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
store i64 %4, i64* %storemerge1.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%6 = inttoptr i64 %storemerge1.reload to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %0, i64 %storemerge1.reload)
%9 = icmp eq i64 %7, 0
store i64 %7, i64* %storemerge1.reg2mem
br i1 %9, label LBL_2, label LBL_1
LBL_2:
%10 = add i64 %0, 8
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = call i64 @FUNC(i64 %10)
br label LBL_4
LBL_4:
%16 = add i64 %0, 24
%17 = call i64 @FUNC(i64 %16)
%18 = add i64 %0, 28
%19 = call i64 @FUNC(i64 %18)
%20 = call i64 @FUNC(i64 %0)
ret i64 %20
uselistorder i64 %0, { 1, 3, 2, 4, 0, 5, 6 }
uselistorder i64* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @del_timer, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | socket_create_11782 | socket_create | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
store i32 1, i32* %sv_1, align 4
%0 = call i32 @socket(i32 2, i32 1, i32 6)
%1 = icmp slt i32 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_2, label LBL_1
LBL_1:
call void @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_2:
%3 = bitcast i32* %sv_1 to i64*
%4 = call i32 @setsockopt(i32 %0, i32 1, i32 2, i64* nonnull %3, i32 4)
%5 = icmp eq i32 %4, -1
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_4, label LBL_3
LBL_3:
call void @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0))
%7 = zext i32 %0 to i64
%8 = call i64 @FUNC(i64 %7)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_4:
%9 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 16)
store i64 2, i64* %sv_0, align 8
%10 = call i32 @htonl(i32 0)
%11 = trunc i64 %arg1 to i16
%12 = call i16 @htons(i16 %11)
%13 = bitcast i64* %sv_0 to %sockaddr*
%14 = call i32 @bind(i32 %0, %sockaddr* nonnull %13, i32 16)
%15 = icmp slt i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_6, label LBL_5
LBL_5:
call void @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
%17 = zext i32 %0 to i64
%18 = call i64 @FUNC(i64 %17)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_6:
%19 = call i32 @listen(i32 %0, i32 1)
%20 = icmp eq i32 %19, -1
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_8, label LBL_7
LBL_7:
call void @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0))
%22 = zext i32 %0 to i64
%23 = call i64 @FUNC(i64 %22)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_9
LBL_8:
%24 = zext i32 %0 to i64
store i64 %24, 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 %0, { 3, 2, 4, 1, 5, 0, 6, 7 }
uselistorder i64* %sv_0, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 2, 1 }
uselistorder void (i8*)* @perror, { 3, 0, 1, 2 }
} | 1 |
BinRealVul | irtty_chars_in_buffer_13068 | irtty_chars_in_buffer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64* %arg1, null
%3 = icmp eq i1 %2, false
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 305419896
%or.cond = icmp eq i1 %3, %5
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_2
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
store i64 %9, i64* %rax.0.reg2mem
br label LBL_2
LBL_2:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | format_sax_error_12300 | format_sax_error | define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3, i8* %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%storemerge.reg2mem = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = load i128, i128* %0
%5 = load i128, i128* %0
%6 = load i128, i128* %0
%7 = load i128, i128* %0
%8 = load i128, i128* %0
%9 = load i128, i128* %0
%10 = load i128, i128* %0
%sv_0 = alloca i64, align 8
%sv_1 = alloca i32, align 4
%11 = trunc i64 %2 to i8
%12 = icmp eq i8 %11, 0
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = call i64 @FUNC(i128 %10)
%14 = call i64 @FUNC(i128 %9)
%15 = call i64 @FUNC(i128 %8)
%16 = call i64 @FUNC(i128 %7)
%17 = call i64 @FUNC(i128 %6)
%18 = call i64 @FUNC(i128 %5)
%19 = call i64 @FUNC(i128 %4)
%20 = call i64 @FUNC(i128 %3)
br label LBL_2
LBL_2:
%21 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%22 = ashr exact i64 %sext, 32
store i32 24, i32* %sv_1, align 4
%23 = ptrtoint i32* %sv_1 to i64
%24 = bitcast i64* %arg1 to i8*
%25 = call i32 @vsprintf(i8* %24, i8* %arg3, i64 %23)
%26 = add i64 %21, 516
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = add i32 %28, 1
%30 = zext i32 %29 to i64
%31 = bitcast i64* %sv_0 to i8*
%32 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %31, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i64 %30)
%33 = call i8* @strcat(i8* %24, i8* nonnull %31)
%34 = call i32 @strlen(i8* %24)
%35 = trunc i64 %22 to i32
%36 = icmp eq i32 %35, 0
br i1 %36, label LBL_4, label LBL_3
LBL_3:
%37 = and i64 %22, 4294967295
store i64 %37, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%38 = add i64 %21, 512
%39 = inttoptr i64 %38 to i32*
%40 = load i32, i32* %39, align 4
%41 = zext i32 %40 to i64
store i64 %41, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%42 = add i64 %21, 256
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%43 = add i64 %42, %storemerge.reload
%44 = zext i32 %34 to i64
%45 = add i64 %44, %21
%46 = inttoptr i64 %45 to i8*
%47 = inttoptr i64 %43 to i8*
%48 = call i8* @strncpy(i8* %46, i8* %47, i32 10)
%49 = add i32 %34, 10
%50 = zext i32 %49 to i64
%51 = add i64 %50, %21
%52 = inttoptr i64 %51 to i8*
store i8 0, i8* %52, align 1
%53 = add i64 %21, 520
%54 = inttoptr i64 %53 to i32*
store i32 1, i32* %54, align 4
ret i64 %21
uselistorder i32 %34, { 1, 0 }
uselistorder i64 %22, { 1, 0 }
uselistorder i64 %21, { 2, 3, 0, 1, 5, 4, 6 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 }
} | 1 |
BinRealVul | m68k_cpu_class_init_1406 | m68k_cpu_class_init | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i64*
store i64 4198669, i64* %arg1, align 8
store i64 4198676, i64* %2, align 8
%3 = add i64 %0, 16
%4 = inttoptr i64 %3 to i64*
%5 = add i64 %0, 24
%6 = inttoptr i64 %5 to i64*
store i64 4198690, i64* %6, align 8
%7 = add i64 %0, 32
%8 = inttoptr i64 %7 to i64*
store i64 4198697, i64* %8, align 8
%9 = add i64 %0, 40
%10 = inttoptr i64 %9 to i64*
store i64 4198704, i64* %10, align 8
%11 = add i64 %0, 48
%12 = inttoptr i64 %11 to i64*
store i64 4198711, i64* %12, align 8
%13 = add i64 %0, 56
%14 = inttoptr i64 %13 to i64*
store i64 4198718, i64* %14, align 8
%15 = add i64 %0, 64
%16 = inttoptr i64 %15 to i64*
store i64 4198725, i64* %16, align 8
%17 = add i64 %0, 80
%18 = inttoptr i64 %17 to i64*
store i64 4198739, i64* %18, align 8
%19 = add i64 %0, 88
%20 = inttoptr i64 %19 to i64*
store i64 4198746, i64* %20, align 8
%21 = add i64 %0, 96
%22 = inttoptr i64 %21 to i64*
store i64 4198753, i64* %22, align 8
store i64 ptrtoint (i64* @gv_0 to i64), i64* %4, align 8
%23 = add i64 %0, 104
%24 = inttoptr i64 %23 to i32*
store i32 18, i32* %24, align 4
%25 = add i64 %0, 112
%26 = inttoptr i64 %25 to i64*
store i64 ptrtoint ([12 x i8]* @gv_1 to i64), i64* %26, align 8
%27 = inttoptr i64 %1 to i8*
store i8 1, i8* %27, align 1
ret i64 %0
} | 0 |
BinRealVul | sami_paragraph_to_ass_28 | sami_paragraph_to_ass | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.ph20.reg2mem = alloca i32
%rcx.2.ph21.reg2mem = alloca i64
%.reg2mem81 = alloca i8*
%.reg2mem79 = alloca i8
%rdx.1.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%.reg2mem77 = alloca i8*
%.reg2mem75 = alloca i8
%storemerge.in.in.in.reg2mem = alloca i8*
%.reg2mem73 = alloca i8*
%.reg2mem71 = alloca i8
%.lcssa.reg2mem = alloca i8*
%.reg2mem69 = alloca i8*
%sv_2.0.ph.reg2mem = alloca i64
%.reg2mem67 = alloca i64
%rcx.0.ph24.reg2mem = alloca i64
%rdx.0.ph625.reg2mem = alloca i64
%.reg2mem65 = alloca i64
%rdx.0.ph.reg2mem = alloca i64
%rcx.2.ph.lcssa.reg2mem = alloca i64
%.reg2mem = alloca i8*
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i8*, align 8
%sv_4 = alloca i8*, align 8
%4 = call i64 @FUNC(i64 %arg2)
%5 = inttoptr i64 %4 to i8*
store i8* %5, i8** %sv_4, align 8
%6 = add i64 %3, 32
%7 = call i64 @FUNC(i64 %3)
%8 = add i64 %3, 16
%9 = call i64 @FUNC(i64 %8)
%10 = call i64 @FUNC(i64 %6)
store i8* null, i8** %sv_3, align 8
%11 = load i8*, i8** %sv_4, align 8
%12 = ptrtoint i8* %11 to i64
%13 = call i64 @FUNC(i64 %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0))
%14 = inttoptr i64 %13 to i8*
store i8* %14, i8** %sv_4, align 8
%15 = icmp eq i64 %13, 0
br i1 %15, label LBL_35, label LBL_1
LBL_1:
%16 = add i64 %3, 24
%17 = inttoptr i64 %16 to i32*
%18 = bitcast i8** %sv_3 to i64*
%19 = bitcast i8** %sv_4 to i64*
%20 = add i64 %3, 48
store i64 %13, i64* %.reg2mem65
br label LBL_4
LBL_2:
%.pre34 = load i8*, i8** %sv_4, align 8
store i8* %.pre34, i8** %.reg2mem
store i64 %rcx.2.ph21.reload, i64* %rcx.2.ph.lcssa.reg2mem
store i64 2, i64* %rdx.0.ph.reg2mem
br label LBL_3
LBL_3:
%rdx.0.ph.reload = load i64, i64* %rdx.0.ph.reg2mem
%rcx.2.ph.lcssa.reload = load i64, i64* %rcx.2.ph.lcssa.reg2mem
%.reload = load i8*, i8** %.reg2mem
store i8* null, i8** %sv_3, align 8
%21 = ptrtoint i8* %.reload to i64
%22 = call i64 @FUNC(i64 %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0))
%23 = inttoptr i64 %22 to i8*
store i8* %23, i8** %sv_4, align 8
%24 = icmp eq i64 %22, 0
store i64 %22, i64* %.reg2mem65
store i64 %rdx.0.ph.reload, i64* %rdx.0.ph625.reg2mem
store i64 %rcx.2.ph.lcssa.reload, i64* %rcx.0.ph24.reg2mem
br i1 %24, label LBL_35, label LBL_4
LBL_4:
%rcx.0.ph24.reload = load i64, i64* %rcx.0.ph24.reg2mem
%rdx.0.ph625.reload = load i64, i64* %rdx.0.ph625.reg2mem
%.reload66 = load i64, i64* %.reg2mem65
store i64 %.reload66, i64* %.reg2mem67
br label LBL_5
LBL_5:
%.reload68 = load i64, i64* %.reg2mem67
%25 = add i64 %.reload68, 2
%26 = inttoptr i64 %25 to i8*
%27 = load i8, i8* %26, align 1
%28 = icmp eq i8 %27, 62
br i1 %28, label LBL_8, label LBL_6
LBL_6:
%29 = sext i8 %27 to i64
%30 = and i64 %29, 4294967295
%31 = call i64 @FUNC(i64 %30)
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_8, label LBL_7
LBL_7:
%35 = load i8*, i8** %sv_4, align 8
%36 = ptrtoint i8* %35 to i64
%37 = add i64 %36, 1
%38 = inttoptr i64 %37 to i8*
store i8* %38, i8** %sv_4, align 8
store i8* null, i8** %sv_3, align 8
%39 = call i64 @FUNC(i64 %37, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0))
%40 = inttoptr i64 %39 to i8*
store i8* %40, i8** %sv_4, align 8
%41 = icmp eq i64 %39, 0
store i64 %39, i64* %.reg2mem67
br i1 %41, label LBL_35, label LBL_5
LBL_8:
%42 = load i32, i32* %17, align 4
%43 = icmp eq i32 %42, 0
br i1 %43, label LBL_10, label LBL_9
LBL_9:
%44 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 %rdx.0.ph625.reload, i64 %rcx.0.ph24.reload, i64 %2, i64 %1)
br label LBL_10
LBL_10:
%45 = load i8*, i8** %sv_4, align 8
%46 = ptrtoint i8* %45 to i64
%47 = call i64 @FUNC(i64 %46, i64* nonnull @gv_2, i64* nonnull %18)
%48 = icmp eq i64 %47, 0
%49 = load i8*, i8** %sv_3, align 8
%50 = icmp eq i8* %49, null
%or.cond = or i1 %48, %50
br i1 %or.cond, label LBL_35, label LBL_11
LBL_11:
%51 = ptrtoint i8* %49 to i64
store i64 %51, i64* %19, align 8
%52 = call i64 @FUNC(i64 %47, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_3, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_13, label LBL_12
LBL_12:
%55 = call i64 @FUNC(i64 %47, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_4, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
store i64 %8, i64* %sv_2.0.ph.reg2mem
br i1 %56, label LBL_14, label LBL_13
LBL_13:
%57 = call i64 @FUNC(i64 %20)
store i64 %20, i64* %sv_2.0.ph.reg2mem
br label LBL_14
LBL_14:
%sv_2.0.ph.reload = load i64, i64* %sv_2.0.ph.reg2mem
%58 = load i8*, i8** %sv_4, align 8
%59 = load i8, i8* %58, align 1
%60 = sext i8 %59 to i64
%61 = and i64 %60, 4294967295
%62 = call i64 @FUNC(i64 %61)
%63 = trunc i64 %62 to i32
%64 = icmp eq i32 %63, 0
%65 = icmp eq i1 %64, false
%66 = load i8*, i8** %sv_4, align 8
store i8* %66, i8** %.reg2mem69
store i8* %66, i8** %.lcssa.reg2mem
br i1 %65, label LBL_15, label LBL_16
LBL_15:
%.reload70 = load i8*, i8** %.reg2mem69
%67 = ptrtoint i8* %.reload70 to i64
%68 = add i64 %67, 1
%69 = inttoptr i64 %68 to i8*
store i8* %69, i8** %sv_4, align 8
%70 = load i8, i8* %69, align 1
%71 = sext i8 %70 to i64
%72 = and i64 %71, 4294967295
%73 = call i64 @FUNC(i64 %72)
%74 = trunc i64 %73 to i32
%75 = icmp eq i32 %74, 0
%76 = icmp eq i1 %75, false
%77 = load i8*, i8** %sv_4, align 8
store i8* %77, i8** %.reg2mem69
store i8* %77, i8** %.lcssa.reg2mem
br i1 %76, label LBL_15, label LBL_16
LBL_16:
%.lcssa.reload = load i8*, i8** %.lcssa.reg2mem
%78 = call i32 @strncmp(i8* %.lcssa.reload, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_5, i64 0, i64 0), i32 6)
%79 = icmp eq i32 %78, 0
%80 = icmp eq i1 %79, false
store i64 4294967295, i64* %sv_0.0.reg2mem
br i1 %80, label LBL_17, label LBL_40
LBL_17:
%81 = load i8*, i8** %sv_4, align 8
%82 = load i8, i8* %81, align 1
%83 = icmp eq i8 %82, 0
%84 = icmp eq i1 %83, false
store i8* %81, i8** %.reg2mem
store i64 %rcx.0.ph24.reload, i64* %rcx.2.ph.lcssa.reg2mem
store i64 6, i64* %rdx.0.ph.reg2mem
store i8 %82, i8* %.reg2mem79
store i8* %81, i8** %.reg2mem81
store i64 %rcx.0.ph24.reload, i64* %rcx.2.ph21.reg2mem
store i32 0, i32* %sv_1.0.ph20.reg2mem
br i1 %84, label LBL_18.lr.ph, label LBL_3
LBL_18:
%.reload72 = load i8, i8* %.reg2mem71
%85 = icmp eq i8 %.reload72, 60
%86 = icmp eq i1 %85, false
br i1 %86, label LBL_22, label LBL_19
LBL_19:
%.reload74 = load i8*, i8** %.reg2mem73
%87 = ptrtoint i8* %.reload74 to i64
%88 = call i64 @FUNC(i64 %87, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 2)
%89 = trunc i64 %88 to i32
%90 = icmp eq i32 %89, 0
%91 = icmp eq i1 %90, false
br i1 %91, label LBL_22, label LBL_20
LBL_20:
%92 = load i8*, i8** %sv_4, align 8
%93 = ptrtoint i8* %92 to i64
%94 = add i64 %93, 2
%95 = inttoptr i64 %94 to i8*
%96 = load i8, i8* %95, align 1
%97 = icmp eq i8 %96, 62
store i8* %92, i8** %.reg2mem
store i64 %rcx.2.ph21.reload, i64* %rcx.2.ph.lcssa.reg2mem
store i64 2, i64* %rdx.0.ph.reg2mem
br i1 %97, label LBL_3, label LBL_21
LBL_21:
%98 = sext i8 %96 to i64
%99 = and i64 %98, 4294967295
%100 = call i64 @FUNC(i64 %99)
%101 = trunc i64 %100 to i32
%102 = icmp eq i32 %101, 0
%103 = icmp eq i1 %102, false
br i1 %103, label LBL_2, label LBL_22
LBL_22:
%104 = load i8*, i8** %sv_4, align 8
%105 = ptrtoint i8* %104 to i64
%106 = call i64 @FUNC(i64 %105, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_6, i64 0, i64 0), i64 3)
%107 = trunc i64 %106 to i32
%108 = icmp eq i32 %107, 0
%109 = icmp eq i1 %108, false
br i1 %109, label LBL_29, label LBL_23
LBL_23:
%110 = call i64 @FUNC(i64 %sv_2.0.ph.reload, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 3, i64 %rcx.2.ph21.reload, i64 %2, i64 %1)
%storemerge.in.in.in.pre = load i8*, i8** %sv_4, align 8
store i8* %storemerge.in.in.in.pre, i8** %storemerge.in.in.in.reg2mem
br label LBL_24
LBL_24:
%storemerge.in.in.in.reload = load i8*, i8** %storemerge.in.in.in.reg2mem
%storemerge.in.in = ptrtoint i8* %storemerge.in.in.in.reload to i64
%storemerge.in = add i64 %storemerge.in.in, 1
%storemerge = inttoptr i64 %storemerge.in to i8*
store i8* %storemerge, i8** %sv_4, align 8
%111 = load i8, i8* %storemerge, align 1
%112 = icmp ne i8 %111, 0
%113 = icmp eq i8 %111, 62
%114 = icmp eq i1 %113, false
%or.cond5 = icmp eq i1 %112, %114
store i8* %storemerge, i8** %storemerge.in.in.in.reg2mem
br i1 %or.cond5, label LBL_24, label LBL_25
LBL_25:
%115 = icmp eq i8 %111, 0
store i8* %storemerge, i8** %.reg2mem
store i64 %rcx.2.ph21.reload, i64* %rcx.2.ph.lcssa.reg2mem
store i64 3, i64* %rdx.0.ph.reg2mem
br i1 %115, label LBL_3, label LBL_26
LBL_26:
store i8 %111, i8* %.reg2mem75
store i8* %storemerge, i8** %.reg2mem77
br i1 %114, label LBL_27, label LBL_28
LBL_27:
%.reload78 = load i8*, i8** %.reg2mem77
%.reload76 = load i8, i8* %.reg2mem75
%116 = icmp eq i8 %.reload76, 0
%117 = icmp eq i1 %116, false
store i8* %.reload78, i8** %.reg2mem
store i64 %rcx.2.ph21.reload, i64* %rcx.2.ph.lcssa.reg2mem
store i64 3, i64* %rdx.0.ph.reg2mem
store i8 %.reload76, i8* %.reg2mem71
store i8* %.reload78, i8** %.reg2mem73
br i1 %117, label LBL_18, label LBL_3
LBL_28:
%118 = add i64 %storemerge.in.in, 2
%119 = inttoptr i64 %118 to i8*
store i8* %119, i8** %sv_4, align 8
%.pre = load i8, i8* %119, align 1
store i8 %.pre, i8* %.reg2mem75
store i8* %119, i8** %.reg2mem77
br label LBL_27
LBL_29:
%120 = load i8*, i8** %sv_4, align 8
%121 = load i8, i8* %120, align 1
%122 = sext i8 %121 to i64
%123 = and i64 %122, 4294967295
%124 = call i64 @FUNC(i64 %123)
%125 = trunc i64 %124 to i32
%126 = icmp eq i32 %125, 0
%127 = icmp eq i1 %126, false
br i1 %127, label LBL_31, label LBL_30
LBL_30:
%128 = load i8*, i8** %sv_4, align 8
%129 = load i8, i8* %128, align 1
%130 = sext i8 %129 to i64
%131 = and i64 %130, 4294967295
%132 = call i64 @FUNC(i64 %sv_2.0.ph.reload, i64 %131, i64 1)
store i64 %130, i64* %rcx.1.reg2mem
store i64 1, i64* %rdx.1.reg2mem
br label LBL_33
LBL_31:
%133 = icmp eq i32 %sv_1.0.ph20.reload, 0
%134 = icmp eq i1 %133, false
store i64 %rcx.2.ph21.reload, i64* %rcx.1.reg2mem
store i64 3, i64* %rdx.1.reg2mem
br i1 %134, label LBL_33, label LBL_32
LBL_32:
%135 = call i64 @FUNC(i64 %sv_2.0.ph.reload, i64 32, i64 1)
store i64 %rcx.2.ph21.reload, i64* %rcx.1.reg2mem
store i64 1, i64* %rdx.1.reg2mem
br label LBL_33
LBL_33:
%rdx.1.reload = load i64, i64* %rdx.1.reg2mem
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%136 = load i8*, i8** %sv_4, align 8
%137 = load i8, i8* %136, align 1
%138 = sext i8 %137 to i64
%139 = and i64 %138, 4294967295
%140 = call i64 @FUNC(i64 %139)
%141 = trunc i64 %140 to i32
%142 = load i8*, i8** %sv_4, align 8
%143 = ptrtoint i8* %142 to i64
%144 = add i64 %143, 1
%145 = inttoptr i64 %144 to i8*
store i8* %145, i8** %sv_4, align 8
%146 = load i8, i8* %145, align 1
%147 = icmp eq i8 %146, 0
%148 = icmp eq i1 %147, false
store i8* %145, i8** %.reg2mem
store i64 %rcx.1.reload, i64* %rcx.2.ph.lcssa.reg2mem
store i64 %rdx.1.reload, i64* %rdx.0.ph.reg2mem
store i8 %146, i8* %.reg2mem79
store i8* %145, i8** %.reg2mem81
store i64 %rcx.1.reload, i64* %rcx.2.ph21.reg2mem
store i32 %141, i32* %sv_1.0.ph20.reg2mem
br i1 %148, label LBL_18.lr.ph, label LBL_3
LBL_34:
%sv_1.0.ph20.reload = load i32, i32* %sv_1.0.ph20.reg2mem
%rcx.2.ph21.reload = load i64, i64* %rcx.2.ph21.reg2mem
%.reload82 = load i8*, i8** %.reg2mem81
%.reload80 = load i8, i8* %.reg2mem79
store i8 %.reload80, i8* %.reg2mem71
store i8* %.reload82, i8** %.reg2mem73
br label LBL_18
LBL_35:
%149 = add i64 %3, 64
%150 = call i64 @FUNC(i64 %149)
%151 = add i64 %3, 56
%152 = inttoptr i64 %151 to i32*
%153 = load i32, i32* %152, align 4
%154 = icmp eq i32 %153, 0
%155 = icmp eq i1 %154, false
br i1 %155, label LBL_36, label LBL_38
LBL_36:
%156 = add i64 %3, 48
%157 = inttoptr i64 %156 to i64*
%158 = load i64, i64* %157, align 8
%159 = call i64 @FUNC(i64 %3, i64 %6, i64 %158)
%160 = trunc i64 %159 to i32
%161 = icmp slt i32 %160, 0
store i64 %159, i64* %sv_0.0.reg2mem
br i1 %161, label LBL_40, label LBL_37
LBL_37:
%162 = inttoptr i64 %6 to i64*
%163 = load i64, i64* %162, align 8
%164 = call i64 @FUNC(i64 %149, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_7, i64 0, i64 0), i64 %163, i64 %149, i64 %2, i64 %1)
br label LBL_38
LBL_38:
%165 = inttoptr i64 %8 to i64*
%166 = load i64, i64* %165, align 8
%167 = call i64 @FUNC(i64 %3, i64 %3, i64 %166)
%168 = trunc i64 %167 to i32
%169 = icmp slt i32 %168, 0
store i64 %167, i64* %sv_0.0.reg2mem
br i1 %169, label LBL_40, label LBL_39
LBL_39:
%170 = call i64 @FUNC(i64 %149, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_8, i64 0, i64 0), i64 %3, i64 %149, i64 %2, i64 %1)
store i64 %167, i64* %sv_0.0.reg2mem
br label LBL_40
LBL_40:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%171 = call i64 @FUNC(i64 %4)
%172 = and i64 %sv_0.0.reload, 4294967295
ret i64 %172
uselistorder i64 %rcx.2.ph21.reload, { 1, 2, 0, 4, 3, 5, 6 }
uselistorder i8 %.reload76, { 1, 0 }
uselistorder i8* %.reload78, { 1, 0 }
uselistorder i1 %114, { 1, 0 }
uselistorder i8* %storemerge, { 0, 2, 1, 3, 4 }
uselistorder i64 %sv_2.0.ph.reload, { 2, 1, 0 }
uselistorder i64 %39, { 0, 2, 1 }
uselistorder i64 %rcx.0.ph24.reload, { 0, 2, 1 }
uselistorder i64 %8, { 1, 0, 2, 3 }
uselistorder i8** %sv_4, { 24, 23, 22, 21, 20, 19, 8, 1, 18, 17, 4, 15, 16, 5, 6, 14, 11, 13, 12, 7, 0, 9, 2, 3, 10 }
uselistorder i8** %sv_3, { 2, 3, 1, 4, 0 }
uselistorder i64 %3, { 2, 4, 3, 5, 6, 8, 7, 1, 0, 9, 10, 11 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 3, 2, 1, 0 }
uselistorder i8** %.reg2mem, { 1, 3, 2, 4, 5, 0, 6 }
uselistorder i64* %rcx.2.ph.lcssa.reg2mem, { 1, 3, 2, 4, 5, 0, 6 }
uselistorder i64* %rdx.0.ph.reg2mem, { 1, 3, 2, 4, 5, 0, 6 }
uselistorder i64* %.reg2mem67, { 1, 0, 2 }
uselistorder i8** %.reg2mem69, { 2, 0, 1 }
uselistorder i8* %.reg2mem71, { 2, 1, 0 }
uselistorder i8** %.reg2mem73, { 2, 1, 0 }
uselistorder i8** %storemerge.in.in.in.reg2mem, { 2, 0, 1 }
uselistorder i8* %.reg2mem75, { 1, 0, 2 }
uselistorder i8** %.reg2mem77, { 1, 0, 2 }
uselistorder i64* %rcx.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i64* %rdx.1.reg2mem, { 0, 2, 3, 1 }
uselistorder i8* %.reg2mem79, { 0, 2, 1 }
uselistorder i8** %.reg2mem81, { 0, 2, 1 }
uselistorder i64* %rcx.2.ph21.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.ph20.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 4, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @ff_htmlmarkup_to_ass, { 1, 0 }
uselistorder i64 (i64, i64, i64)* @av_bprint_chars, { 1, 0 }
uselistorder i64 3, { 0, 2, 1, 3, 4 }
uselistorder i64 (i64, i8*, i64)* @av_strncasecmp, { 1, 0 }
uselistorder i8 0, { 1, 4, 2, 3, 0, 5 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @av_bprintf, { 3, 2, 1, 0 }
uselistorder i64 1, { 6, 1, 4, 0, 5, 3, 7, 8, 2 }
uselistorder i1 false, { 4, 1, 5, 6, 11, 3, 7, 8, 9, 10, 0, 12, 13, 2, 14, 15 }
uselistorder i32 0, { 2, 3, 4, 5, 6, 7, 8, 9, 0, 10, 11, 1, 12, 13, 14 }
uselistorder i64 (i64)* @av_isspace, { 5, 4, 3, 2, 0, 1 }
uselistorder i64 2, { 2, 0, 4, 3, 5, 1 }
uselistorder i64 (i64, i8*)* @av_stristr, { 4, 3, 2, 1, 0 }
uselistorder i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), { 2, 3, 1, 0 }
uselistorder i8* null, { 2, 3, 1, 0 }
uselistorder i64 (i64)* @av_bprint_clear, { 4, 3, 2, 1, 0 }
uselistorder label LBL_40, { 3, 1, 2, 0 }
uselistorder label LBL_38, { 1, 0 }
uselistorder label LBL_35, { 0, 2, 1, 3 }
uselistorder label LBL_18.lr.ph, { 1, 0 }
uselistorder label LBL_27, { 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_3, { 0, 2, 3, 1, 4, 5 }
} | 1 |
BinRealVul | tpm_register_model_1390 | tpm_register_model | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge23.reg2mem = alloca i32
store i32 0, i32* %storemerge23.reg2mem
br label LBL_1
LBL_1:
%storemerge23.reload = load i32, i32* %storemerge23.reg2mem
%0 = sext i32 %storemerge23.reload to i64
%1 = mul i64 %0, 4
%2 = add i64 %1, ptrtoint (i32** @gv_0 to i64)
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = icmp eq i32 %4, 2
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_3, label LBL_2
LBL_2:
%7 = trunc i64 %arg1 to i32
store i32 %7, i32* %3, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_3:
%8 = add nuw i32 %storemerge23.reload, 1
%9 = icmp ult i32 %8, 10
store i32 %8, i32* %storemerge23.reg2mem
br i1 %9, label LBL_1, label LBL_4
LBL_4:
%10 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0))
store i64 1, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32* %storemerge23.reg2mem, { 1, 0, 2 }
uselistorder i32 1, { 2, 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | ras_validate_13628 | ras_validate | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i8
%rax.0.reg2mem = alloca i64
%storemerge.in.reg2mem = alloca i32
%1 = ptrtoint i64* %arg1 to i64
%2 = load i8, i8* %0
%3 = load i8, i8* %0
%4 = load i8, i8* %0
%sv_0 = alloca i8, align 1
%sv_1 = alloca i64, align 8
%5 = bitcast i8* %sv_0 to i64*
%6 = call i64 @FUNC(i64 %1, i64* nonnull %5, i64 4)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %9, label LBL_1, label LBL_6
LBL_1:
%10 = ptrtoint i64* %sv_1 to i64
%11 = add i64 %10, -20
store i32 %7, i32* %storemerge.in.reg2mem
br label LBL_3
LBL_2:
%12 = sext i32 %storemerge to i64
%13 = add i64 %11, %12
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = zext i8 %15 to i64
%17 = call i64 @FUNC(i64 %1, i64 %16)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, -1
%20 = icmp eq i1 %19, false
store i32 %storemerge, i32* %storemerge.in.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %20, label LBL_3, label LBL_6
LBL_3:
%storemerge.in.reload = load i32, i32* %storemerge.in.reg2mem
%storemerge = add i32 %storemerge.in.reload, -1
%21 = icmp slt i32 %storemerge, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_2, label LBL_4
LBL_4:
%23 = icmp sgt i32 %7, 3
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %23, label LBL_5, label LBL_6
LBL_5:
%24 = load i8, i8* %sv_0, align 1
%25 = zext i8 %24 to i64
%26 = mul i64 %25, 16777216
%27 = zext i8 %4 to i64
%28 = mul i64 %27, 65536
%29 = zext i8 %3 to i64
%30 = mul i64 %29, 256
%31 = zext i8 %2 to i64
%32 = or i64 %30, %31
%33 = or i64 %32, %28
%34 = or i64 %33, %26
%35 = icmp eq i64 %34, 1504078485
%. = select i1 %35, i64 0, i64 4294967295
store i64 %., 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 %storemerge, { 2, 1, 0 }
uselistorder i32 %7, { 1, 0, 2 }
uselistorder i32* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1, 4 }
uselistorder i8* %0, { 2, 1, 0 }
uselistorder label LBL_6, { 1, 2, 0, 3 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | cmv_process_header_15925 | cmv_process_header | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.03.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%rdi = alloca i64, align 8
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg3 to i64
%5 = ptrtoint i64* %arg2 to i64
%6 = ptrtoint i64* %arg1 to i64
store i64 %6, i64* %rdi, align 8
%7 = add i64 %5, 16
%8 = icmp ult i64 %7, %4
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = call i64 @FUNC(i64 %6, i64 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_0, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_9
LBL_2:
%10 = add i64 %5, 4
%11 = call i64 @FUNC(i64 %10)
%12 = trunc i64 %11 to i32
%13 = urem i32 %12, 65536
%14 = add i64 %6, 1032
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = add i64 %5, 6
store i64 %16, i64* %rdi, align 8
%17 = call i64 @FUNC(i64 %16)
%18 = trunc i64 %17 to i32
%19 = urem i32 %18, 65536
%20 = add i64 %6, 1036
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
%22 = bitcast i64* %rdi to i32*
%23 = load i32, i32* %22, align 8
%24 = load i32, i32* %15, align 4
%25 = icmp eq i32 %23, %24
%26 = icmp eq i1 %25, false
%.pre = load i64, i64* %rdi, align 8
br i1 %26, label LBL_4, label LBL_3
LBL_3:
%27 = add i64 %.pre, 4
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = icmp eq i32 %29, %19
br i1 %30, label LBL_5, label LBL_4
LBL_4:
%31 = zext i32 %24 to i64
%32 = call i64 @FUNC(i64 %.pre, i64 %31, i32 %19)
br label LBL_5
LBL_5:
%33 = add i64 %.pre, 8
%34 = inttoptr i64 %33 to i32*
store i32 1, i32* %34, align 4
%35 = add i64 %5, 10
%36 = call i64 @FUNC(i64 %35)
%37 = trunc i64 %36 to i32
%38 = urem i32 %37, 65536
%39 = add i64 %5, 22
%40 = inttoptr i64 %39 to i32*
store i32 %38, i32* %40, align 4
%41 = add i64 %5, 12
%42 = call i64 @FUNC(i64 %41)
%43 = trunc i64 %42 to i32
%44 = urem i32 %43, 65536
%45 = add i64 %5, 14
%46 = call i64 @FUNC(i64 %45)
%47 = trunc i64 %46 to i32
%48 = urem i32 %47, 65536
%49 = add nuw nsw i32 %48, %44
%50 = zext i32 %49 to i64
%51 = icmp eq i32 %48, 0
%52 = icmp ugt i32 %44, 255
%or.cond2 = or i1 %52, %51
store i64 %50, i64* %rax.0.reg2mem
br i1 %or.cond2, label LBL_9, label LBL_6
LBL_6:
%53 = zext i32 %44 to i64
%54 = add i64 %6, 8
store i64 %53, i64* %indvars.iv.reg2mem
store i64 %7, i64* %sv_0.03.reg2mem
br label LBL_8
LBL_7:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%55 = call i64 @FUNC(i64 %sv_0.03.reload)
%56 = trunc i64 %55 to i32
%57 = mul i64 %indvars.iv.reload, 4
%58 = add i64 %54, %57
%59 = inttoptr i64 %58 to i32*
store i32 %56, i32* %59, align 4
%60 = add i64 %sv_0.03.reload, 3
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%61 = icmp uge i64 %indvars.iv.next, %50
%62 = icmp ugt i64 %indvars.iv.reload, 254
%or.cond = or i1 %62, %61
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %60, i64* %sv_0.03.reg2mem
store i64 %50, i64* %rax.0.reg2mem
br i1 %or.cond, label LBL_9, label LBL_8
LBL_8:
%sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem
%63 = add i64 %sv_0.03.reload, 2
%64 = icmp ult i64 %63, %4
store i64 %63, i64* %rax.0.reg2mem
br i1 %64, label LBL_7, label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %sv_0.03.reload, { 2, 1, 0 }
uselistorder i64 %indvars.iv.reload, { 1, 0, 2 }
uselistorder i64 %50, { 0, 2, 1 }
uselistorder i32 %19, { 2, 1, 0 }
uselistorder i64 %6, { 1, 2, 3, 0, 4 }
uselistorder i64 %5, { 1, 0, 3, 2, 4, 5, 6 }
uselistorder i64* %rdi, { 0, 2, 1, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64)* @AV_RL16, { 4, 3, 2, 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | drxj_dap_scu_atomic_read_reg16_18202 | drxj_dap_scu_atomic_read_reg16 | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%storemerge.reg2mem = alloca i64
%1 = load i32, i32* %0
%sv_0 = alloca i32, align 4
%2 = icmp eq i64* %arg3, null
%3 = icmp eq i1 %2, false
store i64 4294967294, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = trunc i64 %arg2 to i32
%6 = bitcast i32* %sv_0 to i64*
%7 = call i64 @FUNC(i64 %4, i32 %5, i64 2, i64* nonnull %6, i64 1)
%8 = load i32, i32* %sv_0, align 4
%9 = mul i32 %1, 256
%10 = urem i32 %8, 256
%11 = or i32 %10, %9
%12 = trunc i32 %11 to i16
%13 = bitcast i64* %arg3 to i16*
store i16 %12, i16* %13, align 2
%14 = and i64 %7, 4294967295
store i64 %14, 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 i32 256, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | tb_gen_code_18668 | tb_gen_code | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i32, align 4
%1 = call i64 @FUNC(i64 %0, i64 %arg2)
%2 = call i64 @FUNC(i64 %arg2)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 %2, i64* %sv_1.0.reg2mem
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i64 %0)
%6 = call i64 @FUNC(i64 %arg2)
store i64 %6, i64* %sv_1.0.reg2mem
br label LBL_2
LBL_2:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%7 = load i64, i64* @gv_0, align 8
%8 = inttoptr i64 %sv_1.0.reload to i64*
store i64 %7, i64* %8, align 8
%9 = add i64 %sv_1.0.reload, 8
%10 = inttoptr i64 %9 to i64*
store i64 %arg3, i64* %10, align 8
%11 = trunc i64 %arg4 to i32
%12 = add i64 %sv_1.0.reload, 16
%13 = inttoptr i64 %12 to i32*
store i32 %11, i32* %13, align 4
%14 = trunc i64 %arg5 to i32
%15 = add i64 %sv_1.0.reload, 20
%16 = inttoptr i64 %15 to i32*
store i32 %14, i32* %16, align 4
%17 = bitcast i32* %sv_2 to i64*
%18 = call i64 @FUNC(i64 %0, i64 %sv_1.0.reload, i64 1024, i64* nonnull %17)
%19 = load i32, i32* %sv_2, align 4
%20 = sext i32 %19 to i64
%21 = load i64, i64* @gv_0, align 8
%22 = add nsw i64 %20, 15
%23 = add i64 %22, %21
%24 = and i64 %23, -16
store i64 %24, i64* @gv_0, align 8
%25 = add i64 %sv_1.0.reload, 24
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = trunc i64 %arg2 to i32
%29 = add i32 %28, -1
%30 = add i32 %29, %27
%31 = and i32 %30, -4096
%32 = zext i32 %31 to i64
%33 = and i64 %arg2, 4294963200
%34 = icmp eq i64 %33, %32
store i64 -1, i64* %sv_0.0.reg2mem
br i1 %34, label LBL_4, label LBL_3
LBL_3:
%35 = call i64 @FUNC(i64 %0, i64 %32)
store i64 %35, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%36 = call i64 @FUNC(i64 %sv_1.0.reload, i64 %1, i64 %sv_0.0.reload)
ret i64 %36
uselistorder i64 %sv_1.0.reload, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %0, { 1, 2, 0, 3 }
uselistorder i64 (i64)* @tb_alloc, { 1, 0 }
uselistorder i64 (i64, i64)* @get_phys_addr_code, { 1, 0 }
uselistorder i64 %arg2, { 1, 2, 0, 3, 4 }
} | 1 |
BinRealVul | io_uring_task_cancel_12471 | io_uring_task_cancel | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.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 = icmp eq i64 %2, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %3, label LBL_3, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %2)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 %4, i64* %rax.0.reg2mem
br i1 %7, label LBL_3, label LBL_2
LBL_2:
%8 = call i64 @FUNC()
store i64 %8, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
} | 1 |
BinRealVul | mov_read_ftyp_16793 | mov_read_ftyp | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%sv_0 = alloca i32*, align 8
%sv_1 = alloca i64, align 8
%sv_2 = alloca i32, align 4
store i32 0, i32* %sv_2, align 4
%3 = call i64 @FUNC(i64 %arg2, i32* nonnull %sv_2, i64 4)
%4 = bitcast i32* %sv_2 to i8*
%5 = call i32 @strcmp(i8* nonnull %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0))
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg1 to i64
%8 = add i64 %7, 8
%9 = inttoptr i64 %8 to i32*
store i32 1, i32* %9, align 4
br label LBL_2
LBL_2:
%10 = ptrtoint i32* %sv_2 to i64
%11 = call i64 @FUNC(i64 %10, i64 0, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), i32* nonnull %sv_2, i64 %2, i64 %1)
%12 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_2, i64 0, i64 0), i32* nonnull %sv_2, i64 0)
%13 = call i64 @FUNC(i64 %arg2)
%14 = trunc i64 %13 to i32
%15 = ptrtoint i64* %sv_1 to i64
%16 = bitcast i64* %sv_1 to i8*
%17 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %16, i32 11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_3, i64 0, i64 0), i32 %14)
%18 = bitcast i64* %sv_1 to i32*
%19 = call i64 @FUNC(i64 %15, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_4, i64 0, i64 0), i32* nonnull %18, i64 0)
%20 = add i32 %arg3, -8
%21 = icmp slt i32 %20, 0
%22 = icmp eq i1 %21, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %22, label LBL_3, label LBL_5
LBL_3:
%23 = add i32 %arg3, -7
%24 = sext i32 %23 to i64
%25 = call i64 @FUNC(i64 %24)
%26 = inttoptr i64 %25 to i32*
store i32* %26, i32** %sv_0, align 8
%27 = icmp eq i64 %25, 0
%28 = icmp eq i1 %27, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %28, label LBL_4, label LBL_5
LBL_4:
%29 = zext i32 %20 to i64
%30 = call i64 @FUNC(i64 %arg2, i32* %26, i64 %29)
%31 = sext i32 %20 to i64
%32 = add i64 %25, %31
%33 = inttoptr i64 %32 to i8*
store i8 0, i8* %33, align 1
%34 = load i32*, i32** %sv_0, align 8
%35 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_5, i64 0, i64 0), i32* %34, i64 0)
%36 = bitcast i32** %sv_0 to i64*
%37 = call i64 @FUNC(i64* nonnull %36)
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %20, { 1, 0, 2 }
uselistorder i64 %10, { 1, 0 }
uselistorder i32* %sv_2, { 0, 1, 4, 2, 3, 5 }
uselistorder i32** %sv_0, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i8*, i32*, i64)* @av_dict_set, { 2, 1, 0 }
uselistorder i64 (i64, i32*, i64)* @avio_read, { 1, 0 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 %arg2, { 1, 0, 2, 3 }
uselistorder label LBL_5, { 2, 0, 1 }
} | 1 |
BinRealVul | klv_decode_ber_length_10493 | klv_decode_ber_length | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.03.reg2mem = alloca i32
%storemerge24.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = urem i64 %1, 256
%3 = trunc i64 %1 to i8
%4 = icmp sgt i8 %3, -1
store i64 %2, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_4, label LBL_1
LBL_1:
%5 = trunc i64 %1 to i32
%6 = urem i32 %5, 128
%7 = icmp ult i32 %6, 9
store i64 -1, i64* %storemerge.reg2mem
br i1 %7, label LBL_2, label LBL_5
LBL_2:
%8 = icmp eq i32 %6, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %storemerge24.reg2mem
store i32 %6, i32* %sv_1.03.reg2mem
store i64 0, i64* %sv_0.0.reg2mem
br i1 %9, label LBL_3, label LBL_4
LBL_3:
%sv_1.03.reload = load i32, i32* %sv_1.03.reg2mem
%storemerge24.reload = load i64, i64* %storemerge24.reg2mem
%10 = add i32 %sv_1.03.reload, -1
%sext5 = mul i64 %storemerge24.reload, 4294967296
%11 = ashr exact i64 %sext5, 24
%12 = call i64 @FUNC(i64 %0)
%13 = urem i64 %12, 256
%14 = or i64 %13, %11
%15 = icmp eq i32 %10, 0
%16 = icmp eq i1 %15, false
store i64 %14, i64* %storemerge24.reg2mem
store i32 %10, i32* %sv_1.03.reg2mem
store i64 %14, i64* %sv_0.0.reg2mem
br i1 %16, label LBL_3, label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sext = mul i64 %sv_0.0.reload, 4294967296
%17 = ashr exact i64 %sext, 32
store i64 %17, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %6, { 0, 2, 1 }
uselistorder i64 %1, { 1, 2, 0 }
uselistorder i64* %storemerge24.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.03.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 0, 2 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 (i64)* @avio_r8, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | hci_inquiry_cache_update_17567 | hci_inquiry_cache_update | define i64 @FUNC(i64* %arg1, i32* %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%.pre4.pre-phi.reg2mem = alloca i32*
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg2 to i64
%3 = add i64 %2, 5
%4 = inttoptr i64 %3 to i64*
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64* %arg1, i64* %4)
%6 = icmp eq i64* %arg4, null
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = add i64 %2, 4
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = bitcast i64* %arg4 to i8*
store i8 %9, i8* %10, align 1
br label LBL_2
LBL_2:
%11 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg3, 72057594037927936
%12 = ashr exact i64 %sext, 56
%13 = call i64 @FUNC(i64 %11, i64 %3)
%14 = icmp eq i64 %13, 0
br i1 %14, label LBL_8, label LBL_3
LBL_3:
%15 = add i64 %13, 4
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = icmp eq i8 %17, 0
%or.cond = or i1 %6, %18
br i1 %or.cond, label LBL_5, label LBL_4
LBL_4:
%19 = bitcast i64* %arg4 to i8*
store i8 1, i8* %19, align 1
br label LBL_5
LBL_5:
%20 = add i64 %13, 12
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 4
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
store i32* %21, i32** %.pre4.pre-phi.reg2mem
store i64 %13, i64* %sv_0.0.reg2mem
br i1 %24, label LBL_12, label LBL_6
LBL_6:
%25 = trunc i64 %1 to i32
%26 = inttoptr i64 %13 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp eq i32 %27, %25
store i32* %21, i32** %.pre4.pre-phi.reg2mem
store i64 %13, i64* %sv_0.0.reg2mem
br i1 %28, label LBL_12, label LBL_7
LBL_7:
store i32 %25, i32* %26, align 4
%29 = call i64 @FUNC(i64 %11, i64 %13)
store i32* %21, i32** %.pre4.pre-phi.reg2mem
store i64 %13, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_8:
%30 = call i64 @FUNC(i64 40, i64 0)
%31 = icmp eq i64 %30, 0
%32 = icmp eq i1 %31, false
store i64 0, i64* %rax.0.reg2mem
br i1 %32, label LBL_9, label LBL_16
LBL_9:
%33 = add i64 %30, 24
%34 = call i64 @FUNC(i64 %33, i64 %11)
%35 = trunc i64 %12 to i8
%36 = icmp eq i8 %35, 0
%37 = add i64 %30, 12
%38 = inttoptr i64 %37 to i32*
br i1 %36, label LBL_11, label LBL_10
LBL_10:
store i32 1, i32* %38, align 4
store i32* %38, i32** %.pre4.pre-phi.reg2mem
store i64 %30, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_11:
store i32 2, i32* %38, align 4
%39 = add i64 %11, 8
%40 = add i64 %30, 16
%41 = call i64 @FUNC(i64 %40, i64 %39)
store i32* %38, i32** %.pre4.pre-phi.reg2mem
store i64 %30, i64* %sv_0.0.reg2mem
br label LBL_12
LBL_12:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%.pre4.pre-phi.reload = load i32*, i32** %.pre4.pre-phi.reg2mem
%42 = trunc i64 %12 to i8
%43 = icmp eq i8 %42, 0
br i1 %43, label LBL_15, label LBL_13
LBL_13:
%44 = load i32, i32* %.pre4.pre-phi.reload, align 4
switch i32 %44, label LBL_14 [
i32 1, label LBL_15
i32 3, label LBL_15
]
LBL_14:
store i32 1, i32* %.pre4.pre-phi.reload, align 4
%45 = add i64 %sv_0.0.reload, 16
%46 = call i64 @FUNC(i64 %45)
br label LBL_15
LBL_15:
%47 = inttoptr i64 %sv_0.0.reload to i64*
%48 = bitcast i32* %arg2 to i64*
%49 = call i64* @memcpy(i64* %47, i64* %48, i32 12)
%50 = add i64 %sv_0.0.reload, 32
%51 = inttoptr i64 %50 to i64*
store i64 0, i64* %51, align 8
%52 = add i64 %11, 16
%53 = inttoptr i64 %52 to i64*
store i64 0, i64* %53, align 8
%54 = load i32, i32* %.pre4.pre-phi.reload, align 4
%55 = icmp eq i32 %54, 2
%56 = icmp eq i1 %55, false
%. = zext i1 %56 to i64
store i64 %., i64* %rax.0.reg2mem
br label LBL_16
LBL_16:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %.pre4.pre-phi.reload, { 0, 2, 1 }
uselistorder i32* %38, { 1, 3, 0, 2 }
uselistorder i64 %30, { 1, 2, 0, 3, 4, 5 }
uselistorder i32 %25, { 1, 0 }
uselistorder i64 %13, { 0, 3, 1, 5, 2, 4, 6, 7 }
uselistorder i64 %11, { 1, 2, 3, 0, 4 }
uselistorder i32** %.pre4.pre-phi.reg2mem, { 0, 2, 1, 3, 4, 5 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3, 4, 5 }
uselistorder i64 (i64, i64)* @list_add, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_15, { 3, 1, 2, 0 }
uselistorder label LBL_12, { 3, 4, 2, 1, 0 }
} | 1 |
BinRealVul | mpeg4_decode_video_packet_header_14 | mpeg4_decode_video_packet_header | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%storemerge1.lcssa.reg2mem = alloca i32
%storemerge12.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %3, 4294967295
%7 = and i64 %6, 4294967295
%8 = call i64 @FUNC(i64 %7)
%9 = add i64 %8, 1
%10 = add i64 %5, 56
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = add i32 %12, -19
%14 = zext i32 %13 to i64
%15 = call i64 @FUNC(i64 %10)
%16 = icmp slt i64 %15, %14
store i32 0, i32* %storemerge12.reg2mem
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %16, label LBL_1, label LBL_26
LBL_1:
%storemerge12.reload = load i32, i32* %storemerge12.reg2mem
%17 = call i64 @FUNC(i64 %10)
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, 0
%20 = icmp eq i1 %19, false
store i32 %storemerge12.reload, i32* %storemerge1.lcssa.reg2mem
br i1 %20, label LBL_3, label LBL_2
LBL_2:
%21 = add nuw nsw i32 %storemerge12.reload, 1
%22 = icmp ult i32 %21, 32
store i32 %21, i32* %storemerge12.reg2mem
store i32 32, i32* %storemerge1.lcssa.reg2mem
br i1 %22, label LBL_1, label LBL_3
LBL_3:
%storemerge1.lcssa.reload = load i32, i32* %storemerge1.lcssa.reg2mem
%23 = call i64 @FUNC(i64 %5)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %storemerge1.lcssa.reload, %24
br i1 %25, label LBL_5, label LBL_4
LBL_4:
%26 = add i64 %5, 48
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27, align 8
%29 = call i64 @FUNC(i64 %28, i64 0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_26
LBL_5:
%30 = add i64 %5, 8
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = icmp eq i32 %32, 1
store i32 0, i32* %sv_0.0.reg2mem
br i1 %33, label LBL_7, label LBL_6
LBL_6:
%34 = call i64 @FUNC(i64 %10)
%35 = trunc i64 %34 to i32
store i32 %35, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%36 = and i64 %9, 4294967295
%37 = call i64 @FUNC(i64 %10, i64 %36)
%38 = and i64 %3, 4294967295
%sext = mul i64 %37, 4294967296
%39 = ashr exact i64 %sext, 32
%40 = icmp slt i64 %39, %38
br i1 %40, label LBL_9, label LBL_8
LBL_8:
%41 = add i64 %5, 48
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = and i64 %37, 4294967295
%45 = call i64 @FUNC(i64 %43, i64 0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_1, i64 0, i64 0), i64 %44, i64 %38, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_26
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%46 = trunc i64 %37 to i32
%47 = add i64 %5, 4
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = zext i32 %49 to i64
%51 = ashr i32 %46, 31
%52 = and i64 %37, 4294967295
%53 = zext i32 %51 to i64
%54 = mul i64 %53, 4294967296
%55 = or i64 %54, %52
%56 = srem i64 %55, %50
%57 = trunc i64 %56 to i32
%58 = add i64 %5, 28
%59 = inttoptr i64 %58 to i32*
store i32 %57, i32* %59, align 4
%60 = load i32, i32* %48, align 4
%61 = zext i32 %60 to i64
%62 = sdiv i64 %55, %61
%63 = trunc i64 %62 to i32
%64 = add i64 %5, 32
%65 = inttoptr i64 %64 to i32*
store i32 %63, i32* %65, align 4
%66 = load i32, i32* %31, align 4
%67 = icmp eq i32 %66, 2
br i1 %67, label LBL_12, label LBL_10
LBL_10:
%68 = add i64 %5, 12
%69 = inttoptr i64 %68 to i32*
%70 = load i32, i32* %69, align 4
%71 = zext i32 %70 to i64
%72 = call i64 @FUNC(i64 %10, i64 %71)
%73 = trunc i64 %72 to i32
%74 = icmp eq i32 %73, 0
br i1 %74, label LBL_12, label LBL_11
LBL_11:
%75 = add i64 %5, 36
%76 = inttoptr i64 %75 to i32*
store i32 %73, i32* %76, align 4
%77 = add i64 %5, 40
%78 = inttoptr i64 %77 to i32*
store i32 %73, i32* %78, align 4
br label LBL_12
LBL_12:
%79 = load i32, i32* %31, align 4
%80 = icmp eq i32 %79, 1
%81 = icmp eq i1 %80, false
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br i1 %81, label LBL_14, label LBL_13
LBL_13:
%82 = call i64 @FUNC(i64 %10)
%83 = trunc i64 %82 to i32
store i32 %83, i32* %sv_0.1.reg2mem
br label LBL_14
LBL_14:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%84 = icmp eq i32 %sv_0.1.reload, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %84, label LBL_26, label LBL_15
LBL_15:
%85 = call i64 @FUNC(i64 %10)
%86 = trunc i64 %85 to i32
%87 = icmp eq i32 %86, 0
%88 = icmp eq i1 %87, false
br i1 %88, label LBL_15, label LBL_16
LBL_16:
%89 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_2, i64 0, i64 0))
%90 = add i64 %5, 24
%91 = inttoptr i64 %90 to i32*
%92 = load i32, i32* %91, align 4
%93 = zext i32 %92 to i64
%94 = call i64 @FUNC(i64 %10, i64 %93)
%95 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_3, i64 0, i64 0))
%96 = call i64 @FUNC(i64 %10, i64 2)
%97 = load i32, i32* %31, align 4
%98 = icmp eq i32 %97, 2
store i64 0, i64* %rax.0.reg2mem
br i1 %98, label LBL_26, label LBL_17
LBL_17:
%99 = call i64 @FUNC(i64 %10, i64 3)
%100 = add i64 %5, 16
%101 = inttoptr i64 %100 to i32*
%102 = load i32, i32* %101, align 4
%103 = icmp eq i32 %102, 5
%104 = icmp eq i1 %103, false
store i32 %102, i32* %.reg2mem
br i1 %104, label LBL_20, label LBL_18
LBL_18:
%105 = add i64 %5, 20
%106 = inttoptr i64 %105 to i32*
%107 = load i32, i32* %106, align 4
%108 = icmp eq i32 %107, 6
%109 = icmp eq i1 %108, false
store i32 %102, i32* %.reg2mem
br i1 %109, label LBL_20, label LBL_19
LBL_19:
%110 = call i64 @FUNC(i64 %5, i64 %10)
%111 = add i64 %5, 48
%112 = inttoptr i64 %111 to i64*
%113 = load i64, i64* %112, align 8
%114 = call i64 @FUNC(i64 %113, i64 0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_4, i64 0, i64 0), i64 %50, i64 %2, i64 %1)
%.pr.pre = load i32, i32* %101, align 4
store i32 %.pr.pre, i32* %.reg2mem
br label LBL_20
LBL_20:
%.reload = load i32, i32* %.reg2mem
%115 = icmp eq i32 %.reload, 3
br i1 %115, label LBL_23, label LBL_21
LBL_21:
%116 = call i64 @FUNC(i64 %10, i64 3)
%117 = trunc i64 %116 to i32
%118 = icmp eq i32 %117, 0
%119 = icmp eq i1 %118, false
br i1 %119, label LBL_23, label LBL_22
LBL_22:
%120 = add i64 %5, 48
%121 = inttoptr i64 %120 to i64*
%122 = load i64, i64* %121, align 8
%123 = call i64 @FUNC(i64 %122, i64 0, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_5, i64 0, i64 0), i64 %50, i64 %2, i64 %1)
br label LBL_23
LBL_23:
%124 = load i32, i32* %101, align 4
%125 = icmp eq i32 %124, 4
%126 = icmp eq i1 %125, false
store i64 0, i64* %rax.0.reg2mem
br i1 %126, label LBL_26, label LBL_24
LBL_24:
%127 = call i64 @FUNC(i64 %10, i64 3)
%128 = trunc i64 %127 to i32
%129 = icmp eq i32 %128, 0
%130 = icmp eq i1 %129, false
store i64 0, i64* %rax.0.reg2mem
br i1 %130, label LBL_26, label LBL_25
LBL_25:
%131 = add i64 %5, 48
%132 = inttoptr i64 %131 to i64*
%133 = load i64, i64* %132, align 8
%134 = call i64 @FUNC(i64 %133, i64 0, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_6, i64 0, i64 0), i64 %50, i64 %2, i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_26
LBL_26:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %101, { 1, 0, 2 }
uselistorder i64 %50, { 2, 1, 0, 3 }
uselistorder i64 %38, { 1, 0 }
uselistorder i64 %37, { 1, 3, 2, 0 }
uselistorder i32 %storemerge12.reload, { 1, 0 }
uselistorder i64 %10, { 5, 4, 3, 6, 7, 8, 9, 10, 11, 2, 1, 12, 0, 13, 14, 15 }
uselistorder i64 %5, { 5, 4, 3, 8, 7, 6, 9, 1, 2, 10, 11, 12, 13, 0, 14, 15, 16, 17 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 3, 2, 1, 0 }
uselistorder i64 %1, { 4, 3, 2, 1, 0 }
uselistorder i32* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 2, 1, 8, 7, 6 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64)* @skip_bits, { 2, 1, 0 }
uselistorder i64 (i64, i8*)* @check_marker, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 (i64, i64)* @get_bits, { 3, 2, 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @get_bits1, { 3, 2, 1, 0 }
uselistorder i32 0, { 2, 3, 4, 5, 6, 0, 7, 1 }
uselistorder label LBL_26, { 4, 3, 2, 1, 0, 6, 7, 5 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | btsdio_remove_6876 | btsdio_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(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0), i64 %0)
%3 = add i64 %1, 8
%4 = call i64 @FUNC(i64 %3)
%5 = icmp eq i64 %1, 0
store i64 %4, i64* %rax.0.reg2mem
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %3)
%7 = inttoptr i64 %1 to i64*
%8 = load i64, i64* %7, align 8
%9 = call i64 @FUNC(i64 %0, i64 0)
%10 = call i64 @FUNC(i64 %8)
%11 = call i64 @FUNC(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 %1, { 0, 2, 1 }
uselistorder i64 (i64)* @cancel_work_sync, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | update_context_from_thread_985 | update_context_from_thread | 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* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = icmp eq i64* %arg1, %arg2
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = trunc i64 %1 to i32
%6 = bitcast i64* %arg1 to i32*
store i32 %5, i32* %6, align 4
%7 = add i64 %2, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %3, 4
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 4
%12 = add i64 %2, 8
%13 = inttoptr i64 %12 to i32*
%14 = load i32, i32* %13, align 4
%15 = add i64 %3, 8
%16 = inttoptr i64 %15 to i32*
store i32 %14, i32* %16, align 4
%17 = add i64 %2, 12
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = add i64 %3, 12
%21 = inttoptr i64 %20 to i32*
store i32 %19, i32* %21, align 4
%22 = add i64 %2, 16
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i64 %3, 16
%26 = inttoptr i64 %25 to i32*
store i32 %24, i32* %26, align 4
%27 = add i64 %2, 20
%28 = inttoptr i64 %27 to i32*
%29 = load i32, i32* %28, align 4
%30 = add i64 %3, 20
%31 = inttoptr i64 %30 to i32*
store i32 %29, i32* %31, align 4
%32 = add i64 %2, 24
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = add i64 %3, 24
%36 = inttoptr i64 %35 to i32*
store i32 %34, i32* %36, align 4
%37 = add i64 %2, 28
%38 = inttoptr i64 %37 to i32*
%39 = load i32, i32* %38, align 4
%40 = add i64 %3, 28
%41 = inttoptr i64 %40 to i32*
store i32 %39, i32* %41, align 4
%42 = add i64 %2, 32
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = add i64 %3, 32
%46 = inttoptr i64 %45 to i32*
store i32 %44, i32* %46, align 4
%47 = add i64 %2, 36
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48, align 4
%50 = add i64 %3, 36
%51 = inttoptr i64 %50 to i32*
store i32 %49, i32* %51, align 4
%52 = add i64 %2, 40
%53 = inttoptr i64 %52 to i32*
%54 = load i32, i32* %53, align 4
%55 = add i64 %3, 40
%56 = inttoptr i64 %55 to i32*
store i32 %54, i32* %56, align 4
%57 = add i64 %2, 44
%58 = inttoptr i64 %57 to i32*
%59 = load i32, i32* %58, align 4
%60 = add i64 %3, 44
%61 = inttoptr i64 %60 to i32*
store i32 %59, i32* %61, align 4
%62 = add i64 %2, 48
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = add i64 %3, 48
%66 = inttoptr i64 %65 to i32*
store i32 %64, i32* %66, align 4
%67 = add i64 %2, 52
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = add i64 %3, 52
%71 = inttoptr i64 %70 to i32*
store i32 %69, i32* %71, align 4
%72 = add i64 %2, 56
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = add i64 %3, 56
%76 = inttoptr i64 %75 to i32*
store i32 %74, i32* %76, align 4
%77 = add i64 %2, 60
%78 = inttoptr i64 %77 to i32*
%79 = load i32, i32* %78, align 4
%80 = add i64 %3, 60
%81 = inttoptr i64 %80 to i32*
store i32 %79, i32* %81, align 4
%82 = add i64 %2, 64
%83 = inttoptr i64 %82 to i32*
%84 = load i32, i32* %83, align 4
%85 = add i64 %3, 64
%86 = inttoptr i64 %85 to i32*
store i32 %84, i32* %86, align 4
%87 = add i64 %2, 68
%88 = inttoptr i64 %87 to i32*
%89 = load i32, i32* %88, align 4
%90 = add i64 %3, 68
%91 = inttoptr i64 %90 to i32*
store i32 %89, i32* %91, align 4
%92 = add i64 %2, 72
%93 = inttoptr i64 %92 to i32*
%94 = load i32, i32* %93, align 4
%95 = add i64 %3, 72
%96 = inttoptr i64 %95 to i32*
store i32 %94, i32* %96, align 4
%97 = add i64 %2, 76
%98 = inttoptr i64 %97 to i32*
%99 = load i32, i32* %98, align 4
%100 = add i64 %3, 76
%101 = inttoptr i64 %100 to i32*
store i32 %99, i32* %101, align 4
%102 = add i64 %2, 80
%103 = inttoptr i64 %102 to i32*
%104 = load i32, i32* %103, align 4
%105 = add i64 %3, 80
%106 = inttoptr i64 %105 to i32*
store i32 %104, i32* %106, align 4
%107 = add i64 %2, 84
%108 = inttoptr i64 %107 to i32*
%109 = load i32, i32* %108, align 4
%110 = add i64 %3, 84
%111 = inttoptr i64 %110 to i32*
store i32 %109, i32* %111, align 4
br label LBL_2
LBL_2:
%112 = trunc i64 %arg3 to i32
%113 = icmp eq i32 %112, 0
br i1 %113, label LBL_4, label LBL_3
LBL_3:
%114 = add i64 %2, 88
%115 = inttoptr i64 %114 to i64*
%116 = load i64, i64* %115, align 8
%117 = add i64 %3, 88
%118 = inttoptr i64 %117 to i64*
store i64 %116, i64* %118, align 8
ret i64 0
LBL_4:
%119 = add i64 %3, 96
%120 = inttoptr i64 %119 to i64*
%121 = load i64, i64* %120, align 8
%122 = inttoptr i64 %121 to i64*
%123 = load i64, i64* %122, align 8
%124 = icmp eq i64 %123, 0
%125 = and i64 %3, 4294967295
%spec.select = select i1 %124, i64 0, i64 %125
ret i64 %spec.select
uselistorder i64 %3, { 23, 22, 21, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 }
uselistorder i64 %2, { 21, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 }
} | 0 |
BinRealVul | ne2000_receive_7753 | ne2000_receive | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_1.112.reg2mem = alloca i64
%sv_2.113.reg2mem = alloca i64
%sv_0.214.reg2mem = alloca i32
%.reg2mem15 = alloca i32
%.reg2mem = alloca i32
%sv_3.0.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_4 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %2)
%4 = and i64 %arg3, 4294967295
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 %4)
%6 = inttoptr i64 %3 to i32*
%7 = load i32, i32* %6, align 4
%8 = urem i32 %7, 2
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 -1, i64* %rax.0.reg2mem
br i1 %10, label LBL_26, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 %3)
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 0
store i64 -1, i64* %rax.0.reg2mem
br i1 %13, label LBL_2, label LBL_26
LBL_2:
%14 = ptrtoint i64* %arg2 to i64
%sext = mul i64 %arg3, 4294967296
%15 = ashr exact i64 %sext, 32
%16 = add i64 %3, 4
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = and i32 %18, 16
%20 = icmp eq i32 %19, 0
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_14, label LBL_3
LBL_3:
%22 = call i32 @memcmp(i64* %arg2, i64* inttoptr (i64 4202550 to i64*), i32 6)
%23 = icmp eq i32 %22, 0
%24 = icmp eq i1 %23, false
br i1 %24, label LBL_5, label LBL_4
LBL_4:
%25 = load i32, i32* %17, align 4
%26 = and i32 %25, 4
%27 = icmp eq i32 %26, 0
%28 = icmp eq i1 %27, false
store i64 %15, i64* %rax.0.reg2mem
br i1 %28, label LBL_14, label LBL_26
LBL_5:
%29 = trunc i64 %1 to i8
%30 = urem i8 %29, 2
%31 = icmp eq i8 %30, 0
br i1 %31, label LBL_8, label LBL_6
LBL_6:
%32 = load i32, i32* %17, align 4
%33 = and i32 %32, 8
%34 = icmp eq i32 %33, 0
%35 = icmp eq i1 %34, false
store i64 %15, i64* %rax.0.reg2mem
br i1 %35, label LBL_7, label LBL_26
LBL_7:
%36 = call i64 @FUNC(i64 %14)
%37 = trunc i64 %36 to i32
%38 = udiv i64 %36, 8
%39 = urem i64 %38, 536870912
%40 = add i64 %3, 4120
%41 = add i64 %40, %39
%42 = inttoptr i64 %41 to i8*
%43 = load i8, i8* %42, align 1
%44 = zext i8 %43 to i32
%45 = urem i32 %37, 8
%46 = shl i32 1, %45
%47 = and i32 %46, %44
%48 = icmp eq i32 %47, 0
%49 = icmp eq i1 %48, false
store i64 %15, i64* %rax.0.reg2mem
br i1 %49, label LBL_14, label LBL_26
LBL_8:
%50 = add i64 %3, 8
%51 = inttoptr i64 %50 to i8*
%52 = load i8, i8* %51, align 1
%53 = icmp eq i8 %52, %29
%54 = icmp eq i1 %53, false
store i64 %15, i64* %rax.0.reg2mem
br i1 %54, label LBL_26, label LBL_9
LBL_9:
%55 = add i64 %3, 10
%56 = inttoptr i64 %55 to i8*
%57 = load i8, i8* %56, align 1
%58 = add i64 %14, 1
%59 = inttoptr i64 %58 to i8*
%60 = load i8, i8* %59, align 1
%61 = icmp eq i8 %57, %60
%62 = icmp eq i1 %61, false
store i64 %15, i64* %rax.0.reg2mem
br i1 %62, label LBL_26, label LBL_10
LBL_10:
%63 = add i64 %3, 12
%64 = inttoptr i64 %63 to i8*
%65 = load i8, i8* %64, align 1
%66 = add i64 %14, 2
%67 = inttoptr i64 %66 to i8*
%68 = load i8, i8* %67, align 1
%69 = icmp eq i8 %65, %68
%70 = icmp eq i1 %69, false
store i64 %15, i64* %rax.0.reg2mem
br i1 %70, label LBL_26, label LBL_11
LBL_11:
%71 = add i64 %3, 14
%72 = inttoptr i64 %71 to i8*
%73 = load i8, i8* %72, align 1
%74 = add i64 %14, 3
%75 = inttoptr i64 %74 to i8*
%76 = load i8, i8* %75, align 1
%77 = icmp eq i8 %73, %76
%78 = icmp eq i1 %77, false
store i64 %15, i64* %rax.0.reg2mem
br i1 %78, label LBL_26, label LBL_12
LBL_12:
%79 = add i64 %3, 16
%80 = inttoptr i64 %79 to i8*
%81 = load i8, i8* %80, align 1
%82 = add i64 %14, 4
%83 = inttoptr i64 %82 to i8*
%84 = load i8, i8* %83, align 1
%85 = icmp eq i8 %81, %84
%86 = icmp eq i1 %85, false
store i64 %15, i64* %rax.0.reg2mem
br i1 %86, label LBL_26, label LBL_13
LBL_13:
%87 = add i64 %3, 18
%88 = inttoptr i64 %87 to i8*
%89 = load i8, i8* %88, align 1
%90 = add i64 %14, 5
%91 = inttoptr i64 %90 to i8*
%92 = load i8, i8* %91, align 1
%93 = icmp eq i8 %89, %92
store i64 %15, i64* %rax.0.reg2mem
br i1 %93, label LBL_14, label LBL_26
LBL_14:
%94 = trunc i64 %15 to i32
%95 = icmp sgt i32 %94, 59
store i64 %14, i64* %sv_1.0.reg2mem
store i64 %15, i64* %sv_2.0.reg2mem
br i1 %95, label LBL_16, label LBL_15
LBL_15:
%96 = call i64* @memcpy(i64* nonnull %sv_4, i64* %arg2, i32 %94)
%97 = sub i32 60, %94
%98 = ptrtoint i64* %sv_4 to i64
%99 = add i64 %15, %98
%100 = inttoptr i64 %99 to i64*
%101 = call i64* @memset(i64* %100, i32 0, i32 %97)
store i64 %98, i64* %sv_1.0.reg2mem
store i64 60, i64* %sv_2.0.reg2mem
br label LBL_16
LBL_16:
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%102 = add i64 %3, 4104
%103 = inttoptr i64 %102 to i32*
%104 = load i32, i32* %103, align 4
%105 = mul i32 %104, 256
%106 = icmp ult i32 %105, 4095
store i32 %105, i32* %sv_0.0.reg2mem
br i1 %106, label LBL_18, label LBL_17
LBL_17:
%107 = add i64 %3, 4108
%108 = inttoptr i64 %107 to i32*
%109 = load i32, i32* %108, align 4
store i32 %109, i32* %sv_0.0.reg2mem
br label LBL_18
LBL_18:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%110 = trunc i64 %sv_2.0.reload to i32
%111 = add i32 %110, 263
%112 = and i32 %111, -256
%113 = add i32 %sv_0.0.reload, %112
%114 = add i64 %3, 4112
%115 = inttoptr i64 %114 to i32*
%116 = load i32, i32* %115, align 4
%117 = icmp ult i32 %113, %116
store i32 %113, i32* %sv_3.0.reg2mem
br i1 %117, label LBL_20, label LBL_19
LBL_19:
%118 = add i64 %3, 4108
%119 = inttoptr i64 %118 to i32*
%120 = load i32, i32* %119, align 4
%121 = sub i32 %113, %116
%122 = add i32 %121, %120
store i32 %122, i32* %sv_3.0.reg2mem
br label LBL_20
LBL_20:
%123 = add i32 %110, 4
%sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem
%124 = add i64 %3, 8
%125 = zext i32 %sv_0.0.reload to i64
%126 = add i64 %124, %125
%127 = inttoptr i64 %126 to i8*
%128 = add i64 %3, 4128
%129 = inttoptr i64 %128 to i8*
store i8 1, i8* %129, align 1
%130 = inttoptr i64 %sv_1.0.reload to i8*
%131 = load i8, i8* %130, align 1
%132 = urem i8 %131, 2
%133 = icmp eq i8 %132, 0
%spec.store.select = select i1 %133, i8 1, i8 3
store i8 %spec.store.select, i8* %129, align 1
store i8 %spec.store.select, i8* %127, align 1
%134 = udiv i32 %sv_3.0.reload, 256
%135 = add i64 %126, 1
%136 = trunc i32 %134 to i8
%137 = inttoptr i64 %135 to i8*
store i8 %136, i8* %137, align 1
%138 = add i64 %126, 2
%139 = trunc i32 %123 to i8
%140 = inttoptr i64 %138 to i8*
store i8 %139, i8* %140, align 1
%141 = udiv i32 %123, 256
%142 = add i64 %126, 3
%143 = trunc i32 %141 to i8
%144 = inttoptr i64 %142 to i8*
store i8 %143, i8* %144, align 1
%145 = icmp eq i32 %110, 0
%146 = icmp slt i32 %110, 0
%147 = icmp eq i1 %146, false
%148 = icmp eq i1 %145, false
%149 = icmp eq i1 %147, %148
br i1 %149, label LBL_21, label LBL_25
LBL_21:
%150 = add i32 %sv_0.0.reload, 4
%151 = add i64 %3, 4108
%152 = inttoptr i64 %151 to i32*
%.pre = load i32, i32* %115, align 4
store i32 %.pre, i32* %.reg2mem
store i32 %110, i32* %.reg2mem15
store i32 %150, i32* %sv_0.214.reg2mem
store i64 %sv_2.0.reload, i64* %sv_2.113.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.112.reg2mem
br label LBL_22
LBL_22:
%sv_1.112.reload = load i64, i64* %sv_1.112.reg2mem
%sv_2.113.reload = load i64, i64* %sv_2.113.reg2mem
%sv_0.214.reload = load i32, i32* %sv_0.214.reg2mem
%.reload16 = load i32, i32* %.reg2mem15
%.reload = load i32, i32* %.reg2mem
%153 = icmp ult i32 %.reload, %sv_0.214.reload
%154 = select i1 %153, i32 %sv_0.214.reload, i32 %.reload
%155 = sub i32 %154, %sv_0.214.reload
%156 = icmp ult i32 %155, %.reload16
%157 = sext i32 %155 to i64
%sv_5.0 = select i1 %156, i64 %157, i64 %sv_2.113.reload
%158 = trunc i64 %sv_5.0 to i32
%159 = zext i32 %sv_0.214.reload to i64
%160 = add i64 %124, %159
%161 = inttoptr i64 %160 to i64*
%162 = inttoptr i64 %sv_1.112.reload to i64*
%163 = call i64* @memcpy(i64* %161, i64* %162, i32 %158)
%164 = add i32 %sv_0.214.reload, %158
%165 = load i32, i32* %115, align 4
%166 = icmp eq i32 %164, %165
%167 = icmp eq i1 %166, false
store i32 %164, i32* %sv_0.1.reg2mem
br i1 %167, label LBL_24, label LBL_23
LBL_23:
%168 = load i32, i32* %152, align 4
store i32 %168, i32* %sv_0.1.reg2mem
br label LBL_24
LBL_24:
%169 = and i64 %sv_5.0, 4294967295
%170 = add i64 %169, %sv_1.112.reload
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%171 = sub nsw i64 %sv_2.113.reload, %sv_5.0
%sext7 = mul i64 %171, 4294967296
%172 = ashr exact i64 %sext7, 32
%173 = trunc i64 %172 to i32
%174 = icmp eq i32 %173, 0
%175 = icmp slt i32 %173, 0
%176 = icmp eq i1 %175, false
%177 = icmp eq i1 %174, false
%178 = icmp eq i1 %176, %177
store i32 %165, i32* %.reg2mem
store i32 %173, i32* %.reg2mem15
store i32 %sv_0.1.reload, i32* %sv_0.214.reg2mem
store i64 %172, i64* %sv_2.113.reg2mem
store i64 %170, i64* %sv_1.112.reg2mem
br i1 %178, label LBL_22, label LBL_25
LBL_25:
store i32 %134, i32* %103, align 4
%179 = add i64 %3, 4116
%180 = inttoptr i64 %179 to i32*
%181 = load i32, i32* %180, align 4
%182 = or i32 %181, 1
store i32 %182, i32* %180, align 4
%183 = call i64 @FUNC(i64 %3)
store i64 %arg3, i64* %rax.0.reg2mem
br label LBL_26
LBL_26:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %173, { 0, 2, 1 }
uselistorder i64 %sv_5.0, { 2, 1, 0 }
uselistorder i32 %sv_0.214.reload, { 4, 3, 1, 0, 2 }
uselistorder i64 %sv_2.113.reload, { 1, 0 }
uselistorder i64 %sv_1.112.reload, { 1, 0 }
uselistorder i32 %134, { 1, 0 }
uselistorder i32* %115, { 1, 0, 2 }
uselistorder i32 %113, { 1, 0, 2 }
uselistorder i32 %110, { 0, 2, 1, 4, 3 }
uselistorder i32 %sv_0.0.reload, { 1, 0, 2 }
uselistorder i8 %29, { 1, 0 }
uselistorder i32* %17, { 1, 0, 2 }
uselistorder i64 %15, { 10, 9, 11, 5, 4, 3, 2, 1, 0, 6, 7, 8 }
uselistorder i64 %14, { 0, 6, 5, 4, 3, 2, 1 }
uselistorder i64 %3, { 8, 9, 10, 11, 12, 14, 13, 7, 15, 6, 5, 4, 3, 2, 1, 0, 16, 17, 18 }
uselistorder i64* %sv_4, { 1, 0 }
uselistorder i32* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %.reg2mem15, { 1, 0, 2 }
uselistorder i32* %sv_0.214.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.113.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.112.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 12, 6, 5, 4, 3, 2, 1, 7, 8, 9, 11, 10 }
uselistorder i32 256, { 1, 2, 0 }
uselistorder i64 8, { 1, 2, 0 }
uselistorder i8 0, { 1, 0 }
uselistorder i64 -1, { 1, 0 }
uselistorder i1 false, { 4, 2, 3, 0, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }
uselistorder i32 0, { 3, 4, 0, 1, 2, 5, 6, 7, 8, 9, 10, 11 }
uselistorder label LBL_26, { 11, 5, 4, 3, 2, 1, 0, 6, 7, 8, 10, 9 }
uselistorder label LBL_22, { 1, 0 }
} | 1 |
BinRealVul | netif_rx_8292 | netif_rx | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%4 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %0)
br label LBL_3
LBL_3:
%7 = call i64 @FUNC(i64 %0)
%8 = call i64 @FUNC()
%9 = and i64 %8, 4294967295
%10 = call i64 @FUNC(i64 %0, i64 %9, i64* nonnull %sv_0)
%11 = call i64 @FUNC()
%12 = and i64 %10, 4294967295
store i64 %12, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 2, 1, 0, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | mono_handle_stack_free_4048 | mono_handle_stack_free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
store i64 %arg1, i64* %storemerge1.reg2mem
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%1 = inttoptr i64 %storemerge1.reload to i64*
%2 = load i64, i64* %1, align 8
%3 = call i64 @FUNC(i64 %storemerge1.reload)
%4 = icmp eq i64 %2, 0
%5 = icmp eq i1 %4, false
store i64 %2, i64* %storemerge1.reg2mem
br i1 %5, label LBL_1, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %2)
%7 = call i64 @FUNC(i64 %arg1)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64 %storemerge1.reload, { 1, 0 }
uselistorder i64* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @g_free, { 1, 0, 2 }
uselistorder i32 1, { 1, 0 }
uselistorder i64 %arg1, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | filter_slice_3662 | filter_slice | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr {
LBL_0:
%storemerge7.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%storemerge9.in.reg2mem = alloca i32
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%2 = trunc i64 %arg3 to i32
%sext = mul i64 %arg3, 4294967296
%3 = trunc i64 %arg4 to i32
%4 = add i64 %1, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = add i64 %0, 8
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = sext i32 %11 to i64
%13 = mul i64 %12, 4
%14 = add i64 %13, %8
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = add i64 %1, 32
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = add i64 %21, %13
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = add i64 %0, 12
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = ashr i32 %27, 31
%29 = zext i32 %27 to i64
%30 = zext i32 %28 to i64
%31 = mul i64 %30, 4294967296
%32 = or i64 %31, %29
%33 = and i64 %arg4, 4294967295
%34 = sdiv i64 %32, %33
%35 = add i32 %3, -1
%36 = icmp eq i32 %35, %2
%37 = icmp eq i1 %36, false
store i32 %27, i32* %storemerge9.in.reg2mem
br i1 %37, label LBL_1, label LBL_2
LBL_1:
%38 = trunc i64 %34 to i32
%sext8 = add i64 %sext, 4294967296
%39 = udiv i64 %sext8, 4294967296
%40 = trunc i64 %39 to i32
%41 = mul i32 %38, %40
store i32 %41, i32* %storemerge9.in.reg2mem
br label LBL_2
LBL_2:
%42 = ashr exact i64 %sext, 32
%sext3 = mul i64 %34, 4294967296
%43 = ashr exact i64 %sext3, 32
%44 = mul nsw i64 %43, %42
%45 = trunc i64 %44 to i32
%storemerge9.in.reload = load i32, i32* %storemerge9.in.reg2mem
%46 = icmp sgt i32 %storemerge9.in.reload, %45
br i1 %46, label LBL_3, label LBL_11
LBL_3:
%47 = ptrtoint i64* %sv_0 to i64
%48 = sdiv i32 %24, 32768
%49 = add i64 %0, 20
%50 = inttoptr i64 %49 to i32*
%51 = add i64 %1, 24
%52 = inttoptr i64 %51 to i32*
%53 = add i64 %0, 24
%54 = inttoptr i64 %53 to i32*
%55 = sub i32 0, %16
%56 = add i64 %47, -16
%57 = inttoptr i64 %56 to i64*
%58 = add i64 %47, -24
%59 = inttoptr i64 %58 to i64*
%60 = add i64 %47, -32
%61 = inttoptr i64 %60 to i64*
%62 = add i64 %0, 16
%63 = inttoptr i64 %62 to i32*
%sext17 = mul i64 %44, 4294967296
%64 = ashr exact i64 %sext17, 32
%wide.trip.count = sext i32 %storemerge9.in.reload to i64
store i64 %64, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%65 = load i32, i32* %50, align 4
%66 = trunc i64 %indvars.iv.reload to i32
%67 = xor i32 %65, %66
%68 = urem i32 %67, 2
%69 = icmp eq i32 %68, 0
br i1 %69, label LBL_9, label LBL_5
LBL_5:
%70 = icmp eq i64 %indvars.iv.reload, 1
store i32 2, i32* %storemerge7.reg2mem
br i1 %70, label LBL_8, label LBL_6
LBL_6:
%71 = add i32 %66, 2
%72 = load i32, i32* %26, align 4
%73 = icmp eq i32 %71, %72
store i32 2, i32* %storemerge7.reg2mem
br i1 %73, label LBL_8, label LBL_7
LBL_7:
%74 = load i32, i32* %52, align 4
store i32 %74, i32* %storemerge7.reg2mem
br label LBL_8
LBL_8:
%storemerge7.reload = load i32, i32* %storemerge7.reg2mem
%75 = load i32, i32* %54, align 4
%76 = xor i32 %75, %65
%77 = zext i32 %76 to i64
%78 = icmp eq i64 %indvars.iv.reload, 0
%storemerge6.in = select i1 %78, i32 %16, i32 %55
%storemerge6 = zext i32 %storemerge6.in to i64
%79 = zext i32 %storemerge7.reload to i64
store i64 %79, i64* %57, align 8
store i64 %77, i64* %59, align 8
store i64 %storemerge6, i64* %61, align 8
%80 = load i32, i32* %50, align 4
%81 = load i32, i32* %54, align 4
%82 = xor i32 %81, %80
%83 = zext i32 %82 to i64
store i64 %79, i64* %57, align 8
store i64 %83, i64* %59, align 8
store i64 %storemerge6, i64* %61, align 8
br label LBL_10
LBL_9:
%84 = load i32, i32* %63, align 4
%85 = mul i32 %84, %48
%86 = load i64, i64* %5, align 8
%87 = add i64 %86, 8
%88 = inttoptr i64 %87 to i64*
%89 = load i64, i64* %88, align 8
%90 = load i32, i32* %10, align 4
%91 = sext i32 %90 to i64
%92 = mul i64 %91, 8
%93 = add i64 %92, %89
%94 = inttoptr i64 %93 to i64*
%95 = load i64, i64* %94, align 8
%96 = mul i32 %16, %66
%97 = sext i32 %96 to i64
%98 = add i64 %95, %97
%99 = add i64 %98, 8
%100 = inttoptr i64 %99 to i64*
%101 = load i64, i64* %100, align 8
%102 = add i64 %92, %101
%103 = inttoptr i64 %102 to i64*
%104 = load i64, i64* %103, align 8
%105 = mul i64 %91, 4
%106 = add i64 %105, %98
%107 = inttoptr i64 %106 to i32*
%108 = load i32, i32* %107, align 4
%109 = mul i32 %108, %66
%110 = sext i32 %109 to i64
%111 = add i64 %104, %110
%112 = inttoptr i64 %111 to i64*
%113 = inttoptr i64 %98 to i64*
%114 = call i64* @memcpy(i64* %112, i64* %113, i32 %85)
br label LBL_10
LBL_10:
%indvars.iv.next = add nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_11, label LBL_4
LBL_11:
ret i64 0
uselistorder i64 %98, { 2, 0, 1 }
uselistorder i32 %66, { 1, 0, 2, 3 }
uselistorder i64 %indvars.iv.reload, { 0, 3, 2, 1 }
uselistorder i32 %storemerge9.in.reload, { 1, 0 }
uselistorder i32 %16, { 0, 2, 1 }
uselistorder i64 %13, { 1, 0 }
uselistorder i64 %0, { 2, 0, 1, 3, 4 }
uselistorder i32* %storemerge9.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge7.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 2, { 1, 3, 0, 2 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 8, { 1, 0, 2, 3, 4 }
uselistorder i64 4294967296, { 0, 1, 4, 5, 2, 3 }
uselistorder label LBL_8, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | ehci_init_transfer_2600 | ehci_init_transfer | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%sv_0.12.reg2mem = alloca i32
%sv_1.03.reg2mem = alloca i32
%sv_2.14.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = and i64 %1, 4294967295
%4 = call i64 @FUNC(i64 %3, i64 255)
%5 = call i64 @FUNC(i64 %3, i64 65280)
%6 = trunc i64 %5 to i32
%7 = add i64 %2, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i64 %2, 24
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = add i64 %14, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = inttoptr i64 %14 to i64*
%19 = load i64, i64* %18, align 8
%20 = add i64 %2, 32
%21 = call i64 @FUNC(i64 %20, i64 %19, i64 5, i64 %17)
%22 = icmp eq i32 %6, 0
%23 = icmp eq i1 %22, false
store i64 0, i64* %storemerge.reg2mem
br i1 %23, label LBL_1, label LBL_5
LBL_1:
%24 = urem i32 %9, 256
%25 = trunc i64 %4 to i32
store i32 %24, i32* %sv_2.14.reg2mem
store i32 %6, i32* %sv_1.03.reg2mem
store i32 %25, i32* %sv_0.12.reg2mem
br label LBL_2
LBL_2:
%sv_0.12.reload = load i32, i32* %sv_0.12.reg2mem
%26 = icmp ult i32 %sv_0.12.reload, 5
br i1 %26, label LBL_4, label LBL_3
LBL_3:
%27 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%28 = zext i32 %sv_0.12.reload to i64
%29 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %27, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %28)
%30 = call i64 @FUNC(i64 %20)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%sv_1.03.reload = load i32, i32* %sv_1.03.reg2mem
%sv_2.14.reload = load i32, i32* %sv_2.14.reg2mem
%31 = zext i32 %sv_0.12.reload to i64
%32 = mul i64 %31, 4
%33 = add i64 %32, %7
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = and i32 %35, -256
%37 = zext i32 %36 to i64
%38 = zext i32 %sv_2.14.reload to i64
%39 = add nuw nsw i64 %37, %38
%40 = sub i32 4096, %sv_2.14.reload
%41 = icmp ugt i32 %sv_1.03.reload, %40
%42 = zext i1 %41 to i32
%sv_0.0 = add i32 %sv_0.12.reload, %42
%sv_2.0 = select i1 %41, i32 0, i32 %sv_2.14.reload
%sv_3.0 = select i1 %41, i32 %40, i32 %sv_1.03.reload
%43 = call i64 @FUNC(i64 %20, i64 %39, i32 %sv_3.0)
%44 = sub i32 %sv_1.03.reload, %sv_3.0
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
store i32 %sv_2.0, i32* %sv_2.14.reg2mem
store i32 %44, i32* %sv_1.03.reg2mem
store i32 %sv_0.0, i32* %sv_0.12.reg2mem
store i64 0, i64* %storemerge.reg2mem
br i1 %46, label LBL_2, label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i1 %41, { 1, 2, 0 }
uselistorder i32 %sv_2.14.reload, { 0, 2, 1 }
uselistorder i32 %sv_1.03.reload, { 1, 0, 2 }
uselistorder i32 %sv_0.12.reload, { 2, 1, 3, 0 }
uselistorder i64 %20, { 1, 0, 2 }
uselistorder i64 %3, { 1, 0 }
uselistorder i32* %sv_2.14.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.03.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.12.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 }
uselistorder i64 0, { 0, 2, 3, 1, 4 }
uselistorder i1 false, { 1, 0 }
uselistorder i32 0, { 2, 1, 0 }
uselistorder i64 (i64, i64)* @get_field, { 1, 0 }
uselistorder label LBL_5, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | helper_rdhwr_cc_18670 | helper_rdhwr_cc | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i32* %arg1 to i64
%3 = call i64 @FUNC(i64 %2, i64 2)
%4 = and i64 %1, 4294967295
ret i64 %4
} | 1 |
BinRealVul | usb_cache_string_8099 | usb_cache_string | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp eq i32 %0, 0
%2 = icmp slt i32 %0, 0
%3 = icmp eq i1 %2, false
%4 = icmp eq i1 %1, false
%5 = icmp eq i1 %3, %4
store i64 0, i64* %rax.0.reg2mem
br i1 %5, label LBL_1, label LBL_6
LBL_1:
%6 = call i64 @FUNC(i64 256, i64 0)
%7 = icmp eq i64 %6, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_6, label LBL_2
LBL_2:
%8 = ptrtoint i32* %arg1 to i64
%9 = call i64 @FUNC(i64 %8, i32 %0, i64 %6, i64 256)
%10 = trunc i64 %9 to i32
%11 = icmp slt i32 %10, 1
store i64 0, i64* %sv_0.0.reg2mem
br i1 %11, label LBL_5, label LBL_3
LBL_3:
%12 = add i32 %10, 1
%13 = sext i32 %12 to i64
%14 = call i64 @FUNC(i64 %13, i64 0)
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
store i64 %6, i64* %rax.0.reg2mem
br i1 %16, label LBL_4, label LBL_6
LBL_4:
%17 = inttoptr i64 %14 to i64*
%18 = inttoptr i64 %6 to i64*
%19 = call i64* @memcpy(i64* %17, i64* %18, i32 %12)
store i64 %14, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%20 = call i64 @FUNC(i64 %6)
store i64 %sv_0.0.reload, 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 %6, { 2, 1, 0, 3, 4 }
uselistorder i32 %0, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 2, 4 }
uselistorder i64 (i64, i64)* @kmalloc, { 1, 0 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder label LBL_6, { 1, 2, 0, 3 }
} | 0 |
BinRealVul | smc_wr_tx_wait_no_pending_sends_7107 | smc_wr_tx_wait_no_pending_sends | define i64 @FUNC(i8* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i8* %arg1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = urem i64 %3, 256
%5 = icmp eq i64 %4, 0
%6 = zext i1 %5 to i64
%7 = urem i64 %1, 256
%8 = call i64 @FUNC(i64 %7, i64 %6)
ret i64 %8
} | 0 |
BinRealVul | sctp_destroy_sock_17482 | sctp_destroy_sock | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0), i64 %arg1)
%1 = call i64 @FUNC(i64 %arg1)
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
store i32 0, i32* %2, align 4
%5 = add i64 %1, 8
%6 = call i64 @FUNC(i64 %5)
br label LBL_2
LBL_2:
%7 = add i64 %1, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i64 @FUNC(i64 %9)
%11 = call i64 @FUNC()
%12 = call i64 @FUNC(i64* nonnull @gv_1)
%13 = call i64 @FUNC(i64 %arg1)
%14 = call i64 @FUNC(i64 %13, i64 ptrtoint (i64* @gv_1 to i64), i64 4294967295)
%15 = call i64 @FUNC()
ret i64 %15
uselistorder i64* @gv_1, { 1, 0 }
} | 1 |
BinRealVul | qcow2_alloc_bytes_1912 | qcow2_alloc_bytes | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.210.reg2mem = alloca i32
%sv_0.1.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%sv_1 = alloca i64, align 8
%2 = trunc i64 %arg2 to i32
%sext = mul i64 %arg2, 4294967296
%3 = ashr exact i64 %sext, 32
%4 = icmp slt i32 %2, 1
%5 = and i64 %1, 4294967295
%6 = icmp sgt i64 %3, %5
%or.cond22 = or i1 %4, %6
br i1 %or.cond22, label LBL_1, label LBL_2
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 52, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%7 = ptrtoint i64* %arg1 to i64
%8 = add i64 %7, 4
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = icmp eq i32 %10, 0
store i32 0, i32* %sv_0.0.reg2mem
br i1 %11, label LBL_9, label LBL_3
LBL_3:
%12 = zext i32 %10 to i64
%13 = call i64 @FUNC(i64 %7, i64 %12)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_5, label LBL_4
LBL_4:
call void @__assert_fail(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 53, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0))
br label LBL_5
LBL_5:
%.pr = load i32, i32* %9, align 4
%17 = icmp eq i32 %.pr, 0
store i32 0, i32* %sv_0.0.reg2mem
br i1 %17, label LBL_9, label LBL_6
LBL_6:
%18 = add i64 %7, 12
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = sext i32 %.pr to i64
%22 = urem i32 %20, 64
%23 = zext i32 %22 to i64
%storemerge = ashr i64 %21, %23
%24 = and i64 %storemerge, 4294967295
%25 = call i64 @FUNC(i64 %7, i64 %24, i64* nonnull %sv_1)
%26 = trunc i64 %25 to i32
%27 = icmp slt i32 %26, 0
%28 = icmp eq i1 %27, false
br i1 %28, label LBL_8, label LBL_7
LBL_7:
%sext6 = mul i64 %25, 4294967296
%29 = ashr exact i64 %sext6, 32
store i64 %29, i64* %rax.0.reg2mem
br label LBL_22
LBL_8:
%30 = add i64 %7, 8
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = sext i32 %32 to i64
%34 = load i64, i64* %sv_1, align 8
%35 = icmp eq i64 %34, %33
%36 = icmp eq i1 %35, false
%spec.select = select i1 %36, i32 %.pr, i32 0
store i32 %spec.select, i32* %sv_0.0.reg2mem
br label LBL_9
LBL_9:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%37 = zext i32 %sv_0.0.reload to i64
%38 = call i64 @FUNC(i64 %7, i64 %37)
%39 = sub i64 %1, %38
%sext19 = mul i64 %39, 4294967296
%40 = ashr exact i64 %sext19, 32
%41 = icmp ugt i64 %3, %40
%42 = icmp eq i1 %41, false
%43 = trunc i64 %3 to i32
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_10
LBL_10:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%44 = icmp eq i32 %sv_0.1.reload, 0
%.not = icmp ne i1 %44, true
%or.cond = icmp eq i1 %42, %.not
store i32 %sv_0.1.reload, i32* %sv_0.210.reg2mem
br i1 %or.cond, label LBL_17, label LBL_11
LBL_11:
%45 = call i64 @FUNC(i64 %7, i64 %5)
%46 = icmp slt i64 %45, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_13, label LBL_12
LBL_12:
%sext7 = mul i64 %45, 4294967296
%48 = ashr exact i64 %sext7, 32
store i64 %48, i64* %rax.0.reg2mem
br label LBL_22
LBL_13:
br i1 %44, label LBL_15, label LBL_14
LBL_14:
%sext8.mask = and i64 %45, 4294967295
%49 = icmp eq i64 %sext8.mask, 0
store i32 %sv_0.1.reload, i32* %sv_0.210.reg2mem
br i1 %49, label LBL_17, label LBL_15
LBL_15:
%50 = trunc i64 %45 to i32
%51 = icmp eq i32 %50, 0
%52 = icmp eq i1 %51, false
store i32 %50, i32* %sv_0.210.reg2mem
br i1 %52, label LBL_17, label LBL_16
LBL_16:
call void @__assert_fail(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_1, i64 0, i64 0), i32 70, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_2, i64 0, i64 0))
store i32 %50, i32* %sv_0.210.reg2mem
br label LBL_17
LBL_17:
%sv_0.210.reload = load i32, i32* %sv_0.210.reg2mem
%53 = sext i32 %sv_0.210.reload to i64
%54 = call i64 @FUNC(i64 %7, i64 %53, i32 %43, i64 1, i64 0, i64 0)
%55 = trunc i64 %54 to i32
%56 = icmp eq i32 %55, -11
store i32 %sv_0.210.reload, i32* %sv_0.1.reg2mem
br i1 %56, label LBL_10, label LBL_18
LBL_18:
%57 = icmp slt i32 %55, 0
%58 = icmp eq i1 %57, false
br i1 %58, label LBL_20, label LBL_19
LBL_19:
%sext9 = mul i64 %54, 4294967296
%59 = ashr exact i64 %sext9, 32
store i64 %59, i64* %rax.0.reg2mem
br label LBL_22
LBL_20:
%60 = add i64 %7, 24
%61 = inttoptr i64 %60 to i64*
%62 = load i64, i64* %61, align 8
%63 = add i64 %7, 16
%64 = inttoptr i64 %63 to i64*
%65 = load i64, i64* %64, align 8
%66 = call i64 @FUNC(i64 %7, i64 %65, i64 %62)
%67 = add i32 %sv_0.210.reload, %43
store i32 %67, i32* %9, align 4
%68 = zext i32 %67 to i64
%69 = call i64 @FUNC(i64 %7, i64 %68)
%70 = trunc i64 %69 to i32
%71 = icmp eq i32 %70, 0
%72 = icmp eq i1 %71, false
store i64 %53, i64* %rax.0.reg2mem
br i1 %72, label LBL_22, label LBL_21
LBL_21:
store i32 0, i32* %9, align 4
store i64 %53, 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 %53, { 1, 0, 2 }
uselistorder i32 %sv_0.210.reload, { 1, 2, 0 }
uselistorder i32 %50, { 1, 0, 2 }
uselistorder i64 %45, { 2, 1, 0, 3 }
uselistorder i1 %44, { 1, 0 }
uselistorder i32 %sv_0.1.reload, { 1, 0, 2 }
uselistorder i32 %.pr, { 1, 2, 0 }
uselistorder i32* %9, { 1, 2, 0, 3 }
uselistorder i64 %7, { 3, 4, 6, 5, 7, 8, 9, 0, 1, 2, 11, 10 }
uselistorder i64 %3, { 2, 1, 0 }
uselistorder i64* %sv_1, { 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.210.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 5, 4, 3 }
uselistorder i1 false, { 1, 2, 3, 4, 0, 5, 6, 7 }
uselistorder i64 (i64, i64)* @offset_into_cluster, { 2, 1, 0 }
uselistorder i32 0, { 6, 7, 8, 3, 4, 2, 9, 1, 5, 10, 0, 11 }
uselistorder i64 4294967295, { 0, 3, 1, 4, 2, 5 }
uselistorder i64 32, { 1, 2, 0, 3, 4 }
uselistorder label LBL_22, { 1, 0, 2, 3, 4 }
uselistorder label LBL_17, { 2, 3, 1, 0 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_9, { 1, 2, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | arch_dup_task_struct_11773 | arch_dup_task_struct | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = ptrtoint i32* %arg2 to i64
%4 = call i64 @FUNC(i64 %3)
%5 = call i64 @FUNC(i64 %3)
%6 = call i64 @FUNC(i64 %3)
%7 = call i64 @FUNC(i64 %3)
%8 = trunc i64 %1 to i32
%9 = bitcast i64* %arg1 to i32*
store i32 %8, i32* %9, align 4
%10 = call i64 @FUNC(i64 %2)
ret i64 0
} | 1 |
BinRealVul | sunkbd_enable_6828 | sunkbd_enable | 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 %arg2 to i8
%2 = call i64 @FUNC(i64 %0)
%3 = add i64 %0, 8
%4 = inttoptr i64 %3 to i8*
store i8 %1, i8* %4, align 1
%5 = call i64 @FUNC(i64 %0)
%6 = urem i64 %arg2, 256
%7 = icmp eq i64 %6, 1
store i64 0, i64* %rax.0.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = add i64 %0, 16
%9 = call i64 @FUNC(i64 %8)
%10 = add i64 %0, 24
%11 = call i64 @FUNC(i64 %10)
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, 0, 2, 3, 4 }
} | 0 |
BinRealVul | get_procfile_size_8749 | get_procfile_size | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i64, align 8
%sv_2 = alloca i64, align 8
%0 = inttoptr i64 %arg1 to i8*
%1 = call %_IO_FILE* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_0, i64 0, i64 0))
store i64 0, i64* %sv_2, align 8
store i64 0, i64* %sv_1, align 8
%2 = icmp eq %_IO_FILE* %1, null
%3 = icmp eq i1 %2, false
store i64 0, i64* %storemerge.reg2mem
br i1 %3, label LBL_1, label LBL_4
LBL_1:
%4 = bitcast i64* %sv_2 to i8**
%5 = bitcast i64* %sv_1 to i32*
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%6 = call i32 @getline(i8** nonnull %4, i32* nonnull %5, %_IO_FILE* %1)
%7 = icmp eq i32 %6, -1
%8 = icmp eq i1 %7, false
%9 = sext i32 %6 to i64
%10 = add i64 %sv_0.0.reload, %9
store i64 %10, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_2, label LBL_3
LBL_3:
%11 = call i32 @fclose(%_IO_FILE* %1)
%12 = load i64, i64* %sv_2, align 8
%13 = inttoptr i64 %12 to i64*
call void @free(i64* %13)
store i64 %sv_0.0.reload, i64* %storemerge.reg2mem
br label LBL_4
LBL_4:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %6, { 1, 0 }
uselistorder i64* %sv_2, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | qht_bucket_reset__locked_550 | qht_bucket_reset__locked | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge2.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i64
%0 = add i64 %arg1, 128
%1 = call i64 @FUNC(i64 %0)
store i64 %arg1, i64* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%2 = add i64 %sv_0.0.reload, 8
%3 = add i64 %sv_0.0.reload, 88
store i32 0, i32* %storemerge2.reg2mem
br label LBL_2
LBL_2:
%storemerge2.reload = load i32, i32* %storemerge2.reg2mem
%4 = sext i32 %storemerge2.reload to i64
%5 = mul i64 %4, 8
%6 = add i64 %2, %5
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
br i1 %9, label LBL_5, label LBL_3
LBL_3:
%10 = mul i64 %4, 4
%11 = add i64 %3, %10
%12 = call i64 @FUNC(i64 %11, i64 0)
%13 = call i64 @FUNC(i64 %6, i64 0)
%14 = add nuw i32 %storemerge2.reload, 1
%15 = icmp ult i32 %14, 10
store i32 %14, i32* %storemerge2.reg2mem
br i1 %15, label LBL_2, label LBL_4
LBL_4:
%16 = inttoptr i64 %sv_0.0.reload 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* %sv_0.0.reg2mem
br i1 %19, label LBL_1, label LBL_5
LBL_5:
%20 = call i64 @FUNC(i64 %0)
ret i64 %20
uselistorder i64 %sv_0.0.reload, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 }
uselistorder i64 (i64, i64)* @atomic_set, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | sock_queue_err_skb_8971 | sock_queue_err_skb | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i32* %arg1 to i64
%4 = add i64 %3, 4
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = add i64 %2, 4
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = add i32 %9, %6
%11 = trunc i64 %1 to i32
%12 = icmp ult i32 %10, %11
store i64 4294967284, i64* %storemerge.reg2mem
br i1 %12, label LBL_1, label LBL_2
LBL_1:
%13 = call i64 @FUNC(i64 %2)
%14 = add i64 %2, 8
%15 = inttoptr i64 %14 to i64*
store i64 %3, i64* %15, align 8
%16 = add i64 %2, 16
%17 = inttoptr i64 %16 to i64*
store i64 4198705, i64* %17, align 8
%18 = load i32, i32* %8, align 4
%19 = zext i32 %18 to i64
%20 = call i64 @FUNC(i64 %19, i64 %4)
%21 = call i64 @FUNC(i64 %2)
%22 = add i64 %3, 8
%23 = call i64 @FUNC(i64 %22, i64 %2)
%24 = call i64 @FUNC(i64 %3, i64 1)
store i64 0, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %3, { 1, 0, 2, 3 }
uselistorder i64 %2, { 0, 1, 2, 4, 3, 5 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
reposvul_c_test | extract_sockaddr_236 | extract_sockaddr | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%rdi.0.in.reg2mem = alloca i64*
%.pre-phi.reg2mem = alloca i8*
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i32
%sv_2.0.reg2mem = alloca i8*
%storemerge.in.reg2mem = alloca i8*
%sv_3 = alloca i64, align 8
%sv_4 = alloca i64, align 8
%0 = inttoptr i64 %arg2 to i8*
%1 = call i8* @strstr(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0))
%2 = ptrtoint i8* %1 to i64
%3 = icmp eq i8* %1, null
%4 = icmp eq i1 %3, false
%5 = add i64 %2, 2
%storemerge3 = select i1 %4, i64 %5, i64 %arg2
%6 = inttoptr i64 %storemerge3 to i8*
%7 = call i8* @strchr(i8* %6, i32 91)
%8 = call i8* @strchr(i8* %6, i32 93)
%9 = icmp ne i8* %7, null
%10 = icmp ult i8* %7, %8
%or.cond5 = icmp eq i1 %9, %10
br i1 %or.cond5, label LBL_1, label LBL_2
LBL_1:
%11 = call i8* @strchr(i8* %8, i32 58)
store i8* %11, i8** %storemerge.in.reg2mem
br label LBL_3
LBL_2:
%12 = call i8* @strchr(i8* %6, i32 58)
store i8* %12, i8** %storemerge.in.reg2mem
br label LBL_3
LBL_3:
%storemerge.in.reload = load i8*, i8** %storemerge.in.reg2mem
%13 = icmp eq i8* %storemerge.in.reload, null
br i1 %13, label LBL_6, label LBL_4
LBL_4:
%storemerge = ptrtoint i8* %storemerge.in.reload to i64
%14 = sub i64 %storemerge, %storemerge3
%15 = trunc i64 %14 to i32
%16 = call i32 @strlen(i8* %6)
%17 = sub i32 0, %15
%18 = sub i32 %17, 1
%19 = add i32 %16, %18
%20 = icmp eq i32 %19, 0
%21 = icmp slt i32 %19, 0
%22 = icmp eq i1 %21, false
%23 = icmp eq i1 %20, false
%24 = icmp eq i1 %22, %23
store i64 0, i64* %rax.0.reg2mem
br i1 %24, label LBL_5, label LBL_12
LBL_5:
%25 = add i64 %storemerge, 1
%26 = inttoptr i64 %25 to i8*
store i8* %26, i8** %sv_2.0.reg2mem
store i32 %19, i32* %sv_1.0.reg2mem
store i32 %15, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_6:
%27 = call i32 @strlen(i8* %6)
store i8* null, i8** %sv_2.0.reg2mem
store i32 0, i32* %sv_1.0.reg2mem
store i32 %27, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%28 = icmp eq i32 %sv_0.0.reload, 0
%29 = icmp slt i32 %sv_0.0.reload, 0
%30 = icmp eq i1 %29, false
%31 = icmp eq i1 %28, false
%32 = icmp eq i1 %30, %31
store i64 0, i64* %rax.0.reg2mem
br i1 %32, label LBL_8, label LBL_12
LBL_8:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%33 = zext i32 %sv_0.0.reload to i64
%34 = bitcast i64* %sv_4 to i8*
%35 = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull %34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i64 %33, i8* %6)
%36 = icmp eq i32 %sv_1.0.reload, 0
br i1 %36, label LBL_10, label LBL_9
LBL_9:
%sv_2.0.reload = load i8*, i8** %sv_2.0.reg2mem
%37 = zext i32 %sv_1.0.reload to i64
%38 = bitcast i64* %sv_3 to i8*
%39 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %38, i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i64 %37, i8* %sv_2.0.reload)
store i8* %38, i8** %.pre-phi.reg2mem
store i64* %sv_3, i64** %rdi.0.in.reg2mem
br label LBL_11
LBL_10:
store i64 12344, i64* %sv_3, align 8
%.pre = bitcast i64* %sv_3 to i8*
store i8* %.pre, i8** %.pre-phi.reg2mem
store i64* %sv_4, i64** %rdi.0.in.reg2mem
br label LBL_11
LBL_11:
%40 = ptrtoint i64* %arg1 to i64
%rdi.0.in.reload = load i64*, i64** %rdi.0.in.reg2mem
%.pre-phi.reload = load i8*, i8** %.pre-phi.reg2mem
call void @free(i64* nonnull %rdi.0.in.reload)
%41 = call i8* @strdup(i8* nonnull %.pre-phi.reload)
%42 = ptrtoint i8* %41 to i64
store i64 %42, i64* %arg1, align 8
%43 = add i64 %40, 8
%44 = inttoptr i64 %43 to i64*
%45 = load i64, i64* %44, align 8
%46 = inttoptr i64 %45 to i64*
call void @free(i64* %46)
%47 = call i8* @strdup(i8* nonnull %34)
%48 = ptrtoint i8* %47 to i64
store i64 %48, i64* %44, align 8
store i64 1, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %19, { 0, 2, 1 }
uselistorder i8* %8, { 1, 0 }
uselistorder i8* %6, { 2, 3, 1, 0, 4, 5 }
uselistorder i64* %sv_3, { 1, 3, 0, 2 }
uselistorder i8** %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i8** %sv_2.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1 }
uselistorder i8** %.pre-phi.reg2mem, { 0, 2, 1 }
uselistorder i64** %rdi.0.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i8* (i8*)* @strdup, { 1, 0 }
uselistorder i32 0, { 2, 3, 4, 0, 5, 6, 1 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i8* (i8*, i32)* @strchr, { 3, 2, 1, 0 }
uselistorder i1 false, { 2, 0, 3, 1, 4 }
uselistorder label LBL_12, { 2, 0, 1 }
} | 1 |
BinRealVul | manager_free_18401 | manager_free | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = icmp eq i64 %arg1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_1, label LBL_6
LBL_1:
%4 = trunc i64 %1 to i32
%5 = call i64 @FUNC(i64 %arg1)
%6 = icmp eq i32 %4, 1
%7 = icmp eq i1 %6, false
%8 = zext i1 %7 to i64
%9 = call i64 @FUNC(i64 %arg1, i64 %8)
%10 = call i64 @FUNC(i64 %arg1)
%11 = call i64 @FUNC(i64 %arg1)
%12 = add i64 %arg1, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = call i64 @FUNC(i64 %14)
%16 = add i64 %arg1, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = call i64 @FUNC(i64 %18)
%20 = add i64 %arg1, 24
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %22)
%24 = add i64 %arg1, 32
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = call i64 @FUNC(i64 %26)
%28 = add i64 %arg1, 40
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %30)
%32 = add i64 %arg1, 48
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34)
%36 = add i64 %arg1, 56
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = call i64 @FUNC(i64 %38)
%40 = add i64 %arg1, 64
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = call i64 @FUNC(i64 %42)
%44 = add i64 %arg1, 72
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = call i64 @FUNC(i64 %46)
%48 = add i64 %arg1, 80
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = call i64 @FUNC(i64 %50)
%52 = add i64 %arg1, 88
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = call i64 @FUNC(i64 %54)
%56 = add i64 %arg1, 96
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = call i64 @FUNC(i64 %58)
%60 = add i64 %arg1, 104
%61 = inttoptr i64 %60 to i32*
%62 = load i32, i32* %61, align 4
%63 = zext i32 %62 to i64
%64 = call i64 @FUNC(i64 %63)
%65 = add i64 %arg1, 108
%66 = inttoptr i64 %65 to i32*
%67 = load i32, i32* %66, align 4
%68 = zext i32 %67 to i64
%69 = call i64 @FUNC(i64 %68)
%70 = add i64 %arg1, 112
%71 = inttoptr i64 %70 to i32*
%72 = load i32, i32* %71, align 4
%73 = zext i32 %72 to i64
%74 = call i64 @FUNC(i64 %73)
%75 = add i64 %arg1, 116
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = zext i32 %77 to i64
%79 = call i64 @FUNC(i64 %78)
%80 = call i64 @FUNC(i64 %arg1)
%81 = call i64 @FUNC(i64 %arg1)
%82 = add i64 %arg1, 120
%83 = inttoptr i64 %82 to i64*
%84 = load i64, i64* %83, align 8
%85 = call i64 @FUNC(i64 %84)
%86 = add i64 %arg1, 128
%87 = inttoptr i64 %86 to i64*
%88 = load i64, i64* %87, align 8
%89 = call i64 @FUNC(i64 %88)
%90 = add i64 %arg1, 136
%91 = inttoptr i64 %90 to i64*
%92 = load i64, i64* %91, align 8
%93 = inttoptr i64 %92 to i64*
call void @free(i64* %93)
%94 = add i64 %arg1, 144
%95 = call i64 @FUNC(i64 %94)
%96 = add i64 %arg1, 152
%97 = inttoptr i64 %96 to i64*
%98 = load i64, i64* %97, align 8
%99 = call i64 @FUNC(i64 %98)
%100 = add i64 %arg1, 160
%101 = inttoptr i64 %100 to i64*
%102 = load i64, i64* %101, align 8
%103 = call i64 @FUNC(i64 %102)
%104 = add i64 %arg1, 168
%105 = inttoptr i64 %104 to i64*
%106 = load i64, i64* %105, align 8
%107 = call i64 @FUNC(i64 %106)
%108 = add i64 %arg1, 176
%109 = inttoptr i64 %108 to i64*
%110 = load i64, i64* %109, align 8
%111 = call i64 @FUNC(i64 %110)
%112 = add i64 %arg1, 184
%113 = inttoptr i64 %112 to i64*
%114 = load i64, i64* %113, align 8
%115 = inttoptr i64 %114 to i64*
call void @free(i64* %115)
%116 = add i64 %arg1, 192
%117 = inttoptr i64 %116 to i64*
%118 = load i64, i64* %117, align 8
%119 = inttoptr i64 %118 to i64*
call void @free(i64* %119)
%120 = add i64 %arg1, 200
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%121 = mul i64 %indvars.iv.reload, 8
%122 = add i64 %120, %121
%123 = inttoptr i64 %122 to i64*
%124 = load i64, i64* %123, align 8
%125 = inttoptr i64 %124 to i64*
call void @free(i64* %125)
%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_3, label LBL_2
LBL_3:
%126 = add i64 %arg1, 280
%127 = inttoptr i64 %126 to i64*
%128 = load i64, i64* %127, align 8
%129 = call i64 @FUNC(i64 %128)
%130 = trunc i64 %129 to i32
%131 = icmp eq i32 %130, 0
%132 = icmp eq i1 %131, false
br i1 %132, label LBL_5, label LBL_4
LBL_4:
call void @__assert_fail(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @gv_1, i64 0, i64 0), i32 111, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0))
br label LBL_5
LBL_5:
%133 = load i64, i64* %127, align 8
%134 = call i64 @FUNC(i64 %133)
%135 = inttoptr i64 %arg1 to i64*
call void @free(i64* %135)
br label LBL_6
LBL_6:
ret i64 0
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 1, { 1, 0 }
uselistorder void (i64*)* @free, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @safe_close, { 3, 2, 1, 0 }
uselistorder i64 (i64)* @sd_event_source_unref, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @set_free, { 1, 0 }
uselistorder i64 (i64)* @hashmap_free, { 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 1, { 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 1, 2, 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35 }
uselistorder label LBL_6, { 1, 0 }
} | 1 |
BinRealVul | gif_fill_rect_15366 | gif_fill_rect | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr {
LBL_0:
%sv_0.0.lcssa.reg2mem = alloca i64
%sv_1.0.in11.reg2mem = alloca i64
%sv_0.012.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = ashr i32 %3, 2
%5 = trunc i64 %arg4 to i32
%6 = mul i32 %4, %5
%7 = sext i32 %6 to i64
%8 = mul i64 %7, 4
%9 = add i64 %8, %0
%10 = add i64 %arg6, %arg4
%11 = trunc i64 %10 to i32
%12 = mul i32 %4, %11
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 4
%15 = add i64 %9, %14
%16 = icmp ult i64 %9, %15
store i64 %9, i64* %sv_0.0.lcssa.reg2mem
br i1 %16, label LBL_1, label LBL_5
LBL_1:
%sext6 = mul i64 %arg5, 4294967296
%sext5 = mul i64 %arg3, 4294967296
%17 = ashr exact i64 %sext5, 30
%18 = ashr exact i64 %sext6, 30
%19 = trunc i64 %arg2 to i32
%20 = sext i32 %4 to i64
%21 = mul i64 %20, 4
store i64 %9, i64* %sv_0.012.reg2mem
br label LBL_2
LBL_2:
%sv_0.012.reload = load i64, i64* %sv_0.012.reg2mem
%22 = add i64 %sv_0.012.reload, %17
%23 = add i64 %22, %18
%24 = icmp ugt i64 %23, %22
store i64 %22, i64* %sv_1.0.in11.reg2mem
br i1 %24, label LBL_3, label LBL_4
LBL_3:
%sv_1.0.in11.reload = load i64, i64* %sv_1.0.in11.reg2mem
%sv_1.0 = inttoptr i64 %sv_1.0.in11.reload to i32*
store i32 %19, i32* %sv_1.0, align 4
%25 = add i64 %sv_1.0.in11.reload, 4
%26 = icmp ugt i64 %23, %25
store i64 %25, i64* %sv_1.0.in11.reg2mem
br i1 %26, label LBL_3, label LBL_4
LBL_4:
%27 = add i64 %sv_0.012.reload, %21
%28 = icmp ult i64 %27, %15
store i64 %27, i64* %sv_0.012.reg2mem
store i64 %27, i64* %sv_0.0.lcssa.reg2mem
br i1 %28, label LBL_2, label LBL_5
LBL_5:
%sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem
ret i64 %sv_0.0.lcssa.reload
uselistorder i64 %23, { 1, 0 }
uselistorder i64 %22, { 0, 2, 1 }
uselistorder i64 %sv_0.012.reload, { 1, 0 }
uselistorder i64 %15, { 1, 0 }
uselistorder i64 %9, { 1, 0, 3, 2 }
uselistorder i32 %4, { 2, 0, 1 }
uselistorder i64* %sv_0.012.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.in11.reg2mem, { 2, 0, 1 }
uselistorder i64 4, { 3, 0, 1, 2 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | hyp_get_page_state_7249 | hyp_get_page_state | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = call i64 @FUNC(i64 %arg1)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %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 = call i64 @FUNC(i64 %arg1)
%5 = and i64 %4, 4294967295
%6 = call i64 @FUNC(i64 %5)
store i64 %6, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
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.