dataset stringclasses 3 values | file stringlengths 7 83 | fun_name stringlengths 2 83 | llvm_ir_function stringlengths 61 121k | label stringclasses 2 values |
|---|---|---|---|---|
BinRealVul | archive_read_support_format_iso9660_8269 | archive_read_support_format_iso9660 | define i64 @FUNC(i64* %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 = ptrtoint i64* %arg1 to i64
%4 = call i64 @FUNC(i64 %3, i64 1, i64 2, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_0, i64 0, i64 0))
%5 = call i64* @calloc(i32 1, i32 48)
%6 = icmp eq i64* %5, null
%7 = icmp eq i1 %6, false
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 %3, i64 12, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_1, i64 0, i64 0), i64 ptrtoint ([36 x i8]* @gv_0 to i64), i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%9 = ptrtoint i64* %5 to i64
%10 = bitcast i64* %5 to i32*
store i32 1, i32* %10, align 4
%11 = add i64 %9, 8
%12 = inttoptr i64 %11 to i64*
store i64 0, i64* %12, align 8
%13 = add i64 %9, 16
%14 = inttoptr i64 %13 to i64*
store i64 %11, i64* %14, align 8
%15 = add i64 %9, 24
%16 = inttoptr i64 %15 to i64*
store i64 0, i64* %16, align 8
%17 = add i64 %9, 32
%18 = inttoptr i64 %17 to i64*
store i64 %15, i64* %18, align 8
%19 = add i64 %9, 40
%20 = inttoptr i64 %19 to i32*
store i32 1, i32* %20, align 4
%21 = add i64 %9, 44
%22 = inttoptr i64 %21 to i32*
store i32 1, i32* %22, align 4
%23 = call i64 @FUNC(i64 %3, i64 %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_2, i64 0, i64 0), i64 4198854, i64 4198869, i64 4198888)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %25, label LBL_4, label LBL_3
LBL_3:
call void @free(i64* nonnull %5)
%26 = and i64 %23, 4294967295
store i64 %26, 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* %5, { 0, 1, 3, 2 }
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder [36 x i8]* @gv_0, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 0 |
BinRealVul | bnxt_set_features_4641 | bnxt_set_features | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = urem i64 %arg2, 2
%3 = icmp eq i64 %2, 0
store i32 0, i32* %sv_0.0.reg2mem
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %1)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
%spec.select = select i1 %7, i32 0, i32 16
store i32 %spec.select, i32* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%8 = inttoptr i64 %1 to i32*
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%9 = trunc i64 %arg2 to i32
%10 = mul i32 %9, 16
%11 = and i32 %10, 32
%12 = load i32, i32* %8, align 4
%13 = mul i32 %9, 64
%14 = and i32 %13, 256
%15 = and i32 %13, 512
%16 = or i32 %14, %11
%17 = or i32 %16, %15
%18 = or i32 %17, %sv_0.0.reload
%19 = icmp eq i32 %18, %12
store i64 0, i64* %rax.0.reg2mem
br i1 %19, label LBL_10, label LBL_3
LBL_3:
%20 = trunc i32 %12 to i8
%21 = icmp slt i8 %20, 0
store i32 %18, i32* %8, align 4
%22 = add i64 %1, 4
%23 = call i64 @FUNC(i64 1024, i64 %22)
%24 = trunc i64 %23 to i8
%25 = icmp eq i8 %24, 1
%26 = icmp eq i1 %21, false
br i1 %25, label LBL_6, label LBL_4
LBL_4:
store i64 0, i64* %rax.0.reg2mem
br i1 %26, label LBL_10, label LBL_5
LBL_5:
%27 = call i64 @FUNC(i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_10
LBL_6:
%.masked = and i32 %12, -129
%28 = icmp eq i32 %18, %.masked
%29 = icmp eq i1 %28, %26
store i64 0, i64* %rax.0.reg2mem
br i1 %29, label LBL_10, label LBL_7
LBL_7:
%30 = call i64 @FUNC(i64 %1, i64 0, i64 0)
br i1 %26, label LBL_9, label LBL_8
LBL_8:
%31 = call i64 @FUNC(i64 %1)
br label LBL_9
LBL_9:
%32 = call i64 @FUNC(i64 %1, i64 0, i64 0)
store i64 %32, i64* %rax.0.reg2mem
br label LBL_10
LBL_10:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i1 %26, { 2, 0, 1 }
uselistorder i32 %13, { 1, 0 }
uselistorder i32 %12, { 1, 2, 0 }
uselistorder i64 %1, { 0, 1, 2, 3, 4, 6, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 2, 4, 3, 1 }
uselistorder i64 (i64)* @bnxt_set_ring_params, { 1, 0 }
uselistorder i32 0, { 1, 2, 0, 3 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder label LBL_10, { 4, 1, 3, 2, 0 }
} | 0 |
BinRealVul | fd_execute_sync_cache_4161 | fd_execute_sync_cache | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 12
%2 = inttoptr i64 %1 to i32*
%3 = load i32, i32* %2, align 4
%4 = and i32 %3, 2
%5 = icmp eq i32 %4, 0
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = call i64 @FUNC(i64 %0, i64 0)
br label LBL_2
LBL_2:
%7 = add i64 %0, 16
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%.pre = add i64 %0, 20
%.pre1 = inttoptr i64 %.pre to i32*
%.pr = load i32, i32* %.pre1, align 4
%10 = or i32 %.pr, %9
%11 = icmp eq i32 %10, 0
store i64 0, i64* %sv_1.0.reg2mem
store i64 9223372036854775807, i64* %sv_0.0.reg2mem
br i1 %11, label LBL_5, label LBL_3
LBL_3:
%12 = trunc i64 %0 to i32
%13 = mul i32 %9, %12
%14 = sext i32 %13 to i64
%15 = icmp eq i32 %.pr, 0
store i64 %14, i64* %sv_1.0.reg2mem
store i64 9223372036854775807, i64* %sv_0.0.reg2mem
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = sext i32 %.pr to i64
%17 = add nsw i64 %16, -1
%18 = add nsw i64 %17, %14
store i64 %14, i64* %sv_1.0.reg2mem
store i64 %18, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%19 = call i64 @FUNC(i64 %0, i64 %sv_1.0.reload, i64 %sv_0.0.reload, i64 1)
%20 = trunc i64 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_7, label LBL_6
LBL_6:
%22 = and i64 %19, 4294967295
%23 = call i64 @FUNC(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i64 %22)
br label LBL_7
LBL_7:
br i1 %5, label LBL_8, label LBL_11
LBL_8:
br i1 %21, label LBL_10, label LBL_9
LBL_9:
%24 = call i64 @FUNC(i64 %0, i64 1)
br label LBL_11
LBL_10:
%25 = call i64 @FUNC(i64 %0, i64 0)
br label LBL_11
LBL_11:
ret i64 0
uselistorder i64 %14, { 1, 2, 0 }
uselistorder i32 %.pr, { 1, 2, 0 }
uselistorder i64 %0, { 4, 5, 1, 2, 0, 6, 3, 7 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 9223372036854775807, { 1, 0 }
uselistorder i64 (i64, i64)* @target_complete_cmd, { 2, 1, 0 }
uselistorder i32 0, { 1, 2, 0, 3 }
uselistorder label LBL_11, { 1, 0, 2 }
uselistorder label LBL_5, { 2, 1, 0 }
} | 0 |
BinRealVul | got_ip_5445 | got_ip | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdx.2.reg2mem = alloca i64
%rcx.2.reg2mem = alloca i64
%rdx.1.reg2mem = alloca i64
%rcx.1.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
%4 = ptrtoint i64* %sv_1 to i64
%5 = add i64 %3, 32
%6 = inttoptr i64 %5 to i64*
%7 = add i64 %4, -28
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%8 = add nuw nsw i64 %indvars.iv.reload, 22
%9 = add i64 %8, %3
%10 = inttoptr i64 %9 to i8*
%11 = load i8, i8* %10, align 1
%12 = load i64, i64* %6, align 8
%13 = add i64 %12, %8
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14, align 1
%16 = xor i8 %15, %11
%17 = add nuw nsw i64 %7, %indvars.iv.reload
%18 = inttoptr i64 %17 to i8*
store i8 %16, i8* %18, align 1
%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:
%19 = add i64 %3, 8
%20 = inttoptr i64 %19 to i64*
%21 = load i64, i64* %20, align 8
%22 = icmp eq i64 %21, 0
br i1 %22, label LBL_4, label LBL_3
LBL_3:
call void @__assert_fail(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_1, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
br label LBL_4
LBL_4:
%23 = call i64* @malloc(i32 16)
%24 = ptrtoint i64* %23 to i64
store i64 %24, i64* %20, align 8
%25 = icmp eq i64* %23, null
%26 = icmp eq i1 %25, false
br i1 %26, label LBL_6, label LBL_5
LBL_5:
call void @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_3, i64 0, i64 0))
call void @exit(i32 1)
unreachable
LBL_6:
%27 = bitcast i64* %sv_0 to i32*
%28 = call i64* @memset(i64* %23, i32 0, i32 16)
%29 = load i32, i32* %27, align 8
%30 = insertvalue %in_addr undef, i32 %29, 0
%31 = call i8* @inet_ntoa(%in_addr %30)
%32 = ptrtoint i8* %31 to i64
%33 = load i64, i64* %20, align 8
%34 = inttoptr i64 %33 to i8*
%35 = call i8* @strncpy(i8* %34, i8* %31, i32 15)
%36 = load i64, i64* %20, align 8
%37 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_4, i64 0, i64 0), i64 %36, i64 15, i64 %32, i64 %2, i64 %1)
%38 = add i64 %3, 16
%39 = inttoptr i64 %38 to i64*
%40 = call i64* @memset(i64* %39, i32 0, i32 16)
%41 = load i64, i64* %20, align 8
%42 = inttoptr i64 %38 to i8*
%43 = inttoptr i64 %41 to i8*
%44 = call i8* @strncpy(i8* %42, i8* %43, i32 15)
%45 = call i8* @strchr(i8* %42, i32 46)
%46 = icmp eq i8* %45, null
%47 = icmp eq i1 %46, false
store i64 %38, i64* %rcx.0.reg2mem
store i64 15, i64* %rdx.0.reg2mem
br i1 %47, label LBL_8, label LBL_7
LBL_7:
call void @__assert_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_1, i64 0, i64 0), i32 48, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([7 x i8]* @gv_2 to i64), i64* %rcx.0.reg2mem
store i64 48, i64* %rdx.0.reg2mem
br label LBL_8
LBL_8:
%48 = ptrtoint i8* %45 to i64
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%49 = add i64 %48, 1
%50 = inttoptr i64 %49 to i8*
%51 = call i8* @strchr(i8* %50, i32 46)
%52 = icmp eq i8* %51, null
%53 = icmp eq i1 %52, false
store i64 %rcx.0.reload, i64* %rcx.1.reg2mem
store i64 %rdx.0.reload, i64* %rdx.1.reg2mem
br i1 %53, label LBL_10, label LBL_9
LBL_9:
call void @__assert_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_1, i64 0, i64 0), i32 50, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([7 x i8]* @gv_2 to i64), i64* %rcx.1.reg2mem
store i64 50, i64* %rdx.1.reg2mem
br label LBL_10
LBL_10:
%54 = ptrtoint i8* %51 to i64
%rdx.1.reload = load i64, i64* %rdx.1.reg2mem
%rcx.1.reload = load i64, i64* %rcx.1.reg2mem
%55 = add i64 %54, 1
%56 = inttoptr i64 %55 to i8*
%57 = call i8* @strchr(i8* %56, i32 46)
%58 = icmp eq i8* %57, null
%59 = icmp eq i1 %58, false
store i64 %rcx.1.reload, i64* %rcx.2.reg2mem
store i64 %rdx.1.reload, i64* %rdx.2.reg2mem
br i1 %59, label LBL_12, label LBL_11
LBL_11:
call void @__assert_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_1, i64 0, i64 0), i32 52, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint ([7 x i8]* @gv_2 to i64), i64* %rcx.2.reg2mem
store i64 52, i64* %rdx.2.reg2mem
br label LBL_12
LBL_12:
%60 = ptrtoint i8* %57 to i64
%rdx.2.reload = load i64, i64* %rdx.2.reg2mem
%rcx.2.reload = load i64, i64* %rcx.2.reg2mem
%61 = add i64 %60, 1
%62 = inttoptr i64 %61 to i16*
store i16 12849, i16* %62, align 2
%63 = add i64 %60, 3
%64 = inttoptr i64 %63 to i8*
store i8 51, i8* %64, align 1
%65 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_6, i64 0, i64 0), i64 %38, i64 %rdx.2.reload, i64 %rcx.2.reload, i64 %2, i64 %1)
%66 = load i64, i64* %6, align 8
%67 = inttoptr i64 %66 to i64*
call void @free(i64* %67)
call void @free(i64* %67)
store i64 0, i64* %arg1, align 8
%68 = add i64 %3, 40
%69 = inttoptr i64 %68 to i32*
store i32 0, i32* %69, align 4
%70 = call i64* @memset(i64* nonnull %6, i32 0, i32 8)
%71 = ptrtoint i64* %70 to i64
ret i64 %71
uselistorder i64 %60, { 1, 0 }
uselistorder i8* %57, { 1, 0 }
uselistorder i8* %51, { 1, 0 }
uselistorder i8* %45, { 1, 0 }
uselistorder i64 %38, { 1, 0, 2, 3 }
uselistorder i64* %23, { 1, 0, 2 }
uselistorder i64* %20, { 0, 2, 1, 3, 4 }
uselistorder i64* %6, { 1, 0, 2 }
uselistorder i64 %3, { 1, 2, 3, 0, 4 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 1, 0 }
uselistorder i8* (i8*, i32)* @strchr, { 2, 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @time_print, { 1, 0 }
uselistorder i8* (i8*, i8*, i32)* @strncpy, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 3, 2, 1, 0 }
uselistorder [7 x i8]* @gv_2, { 1, 0 }
} | 0 |
BinRealVul | mipsdsp_add_i16_2522 | mipsdsp_add_i16 | define i64 @FUNC(i64 %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = trunc i64 %arg1 to i16
%1 = trunc i64 %arg2 to i16
%sext3 = mul i64 %arg2, 281474976710656
%2 = ashr exact i64 %sext3, 48
%3 = add i16 %1, %0
%4 = icmp slt i16 %0, 1
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = trunc i64 %2 to i16
%6 = icmp sgt i16 %5, 0
%7 = icmp slt i16 %3, 0
%or.cond = icmp eq i1 %7, %6
br i1 %or.cond, label LBL_4, label LBL_5
LBL_2:
%8 = icmp ne i16 %0, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_5, label LBL_3
LBL_3:
%10 = trunc i64 %2 to i16
%11 = icmp slt i16 %10, 0
%12 = icmp eq i1 %11, false
%13 = icmp slt i16 %3, 1
%or.cond6 = or i1 %13, %12
br i1 %or.cond6, label LBL_5, label LBL_4
LBL_4:
%14 = ptrtoint i64* %arg3 to i64
%15 = call i64 @FUNC(i64 1, i64 20, i64 %14)
br label LBL_5
LBL_5:
%16 = zext i16 %3 to i64
ret i64 %16
uselistorder i16 %3, { 1, 0, 2 }
uselistorder i64 %2, { 1, 0 }
uselistorder i16 %0, { 1, 2, 0 }
uselistorder i16 0, { 3, 0, 2, 1 }
uselistorder label LBL_5, { 1, 2, 3, 0 }
} | 0 |
BinRealVul | vgic_v2_to_sgi_6283 | vgic_v2_to_sgi | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = trunc i64 %arg2 to i32
%2 = urem i32 %1, 256
%3 = urem i64 %arg2, 256
%4 = call i64 @FUNC(i64 %0, i64 %arg2, i32 0, i32 %2, i64 %3)
ret i64 %4
uselistorder i64 %arg2, { 1, 0, 2 }
} | 0 |
BinRealVul | cnt_recv_prep_18993 | cnt_recv_prep | define i64 @FUNC(i64* %arg1, i8* %arg2) 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 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
%6 = trunc i64 %3 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_5, label LBL_1
LBL_1:
%9 = add i64 %5, 8
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = call i64 @FUNC(i64 %11, i64 1)
%13 = load i64, i64* %10, align 8
%14 = call i64 @FUNC(i64 %13, i64 1, i64* nonnull %sv_0)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 0
%17 = load i64, i64* %10, align 8
br i1 %16, label LBL_3, label LBL_2
LBL_2:
%18 = call i64 @FUNC(i64 %17, i64 1)
%19 = load i64, i64* %sv_0, align 8
%20 = load i64, i64* %10, align 8
%21 = ptrtoint i8* %arg2 to i64
%22 = call i64 @FUNC(i64 %20, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %19, i64 %21, i64 %2, i64 %1)
br label LBL_4
LBL_3:
%23 = ptrtoint i8* %arg2 to i64
%24 = call i64 @FUNC(i64 %17, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_1, i64 0, i64 0), i64 %23, i64 %4, i64 %2, i64 %1)
br label LBL_4
LBL_4:
%25 = load i64, i64* %10, align 8
%26 = call i64 @FUNC(i64 %25, i64 2)
%27 = add i64 %5, 16
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 %29)
%31 = add i64 %5, 32
%32 = inttoptr i64 %31 to i64*
store i64 %30, i64* %32, align 8
%33 = add i64 %5, 40
%34 = inttoptr i64 %33 to i32*
store i32 -1, i32* %34, align 4
%35 = add i64 %5, 44
%36 = inttoptr i64 %35 to i32*
store i32 -1, i32* %36, align 4
%37 = add i64 %5, 48
%38 = inttoptr i64 %37 to i32*
store i32 0, i32* %38, align 4
%39 = add i64 %5, 52
%40 = inttoptr i64 %39 to i32*
store i32 0, i32* %40, align 4
%41 = add i64 %5, 56
%42 = inttoptr i64 %41 to i32*
store i32 0, i32* %42, align 4
%43 = add i64 %5, 64
%44 = inttoptr i64 %43 to i64*
store i64 0, i64* %44, align 8
%45 = add i64 %5, 72
%46 = inttoptr i64 %45 to i64*
store i64 0, i64* %46, align 8
br label LBL_5
LBL_5:
%47 = add i64 %5, 24
%48 = inttoptr i64 %47 to i64*
%49 = load i64, i64* %48, align 8
%50 = inttoptr i64 %49 to i32*
store i32 0, i32* %50, align 4
%51 = add i64 %5, 80
%52 = inttoptr i64 %51 to i32*
store i32 0, i32* %52, align 4
%53 = add i64 %5, 84
%54 = inttoptr i64 %53 to i32*
store i32 0, i32* %54, align 4
%55 = add i64 %5, 88
%56 = inttoptr i64 %55 to i32*
store i32 0, i32* %56, align 4
ret i64 %5
uselistorder i64 %17, { 1, 0 }
uselistorder i64* %10, { 1, 0, 2, 3, 4 }
uselistorder i64* %sv_0, { 1, 0 }
uselistorder i64 %5, { 10, 11, 12, 13, 14, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @http_PrintfHeader, { 1, 0 }
uselistorder i64 (i64, i64)* @http_CollectHdr, { 1, 0 }
uselistorder i8* %arg2, { 1, 0 }
} | 1 |
BinRealVul | htmlCtxtReset_8435 | htmlCtxtReset | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_12, label LBL_1
LBL_1:
%1 = call i64 @FUNC()
%2 = call i64 @FUNC(i64 %arg1)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
store i64 %2, i64* %.reg2mem
br i1 %4, label LBL_2, label LBL_3
LBL_2:
%.reload = load i64, i64* %.reg2mem
%5 = call i64 @FUNC(i64 %.reload)
%6 = call i64 @FUNC(i64 %arg1)
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 %6, i64* %.reg2mem
br i1 %8, label LBL_2, label LBL_3
LBL_3:
%9 = add i64 %arg1, 8
%10 = inttoptr i64 %9 to i32*
store i32 0, i32* %10, align 4
%11 = inttoptr i64 %arg1 to i64*
store i64 0, i64* %11, align 8
%12 = add i64 %arg1, 12
%13 = inttoptr i64 %12 to i32*
store i32 0, i32* %13, align 4
%14 = add i64 %arg1, 16
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = icmp eq i64 %16, 0
br i1 %17, label LBL_5, label LBL_4
LBL_4:
%18 = inttoptr i64 %16 to i32*
store i32 -1, i32* %18, align 4
%19 = load i64, i64* %15, align 8
%20 = add i64 %arg1, 24
%21 = inttoptr i64 %20 to i64*
store i64 %19, i64* %21, align 8
br label LBL_6
LBL_5:
%22 = add i64 %arg1, 24
%23 = inttoptr i64 %22 to i64*
store i64 0, i64* %23, align 8
br label LBL_6
LBL_6:
%24 = add i64 %arg1, 32
%25 = inttoptr i64 %24 to i32*
store i32 0, i32* %25, align 4
%26 = add i64 %arg1, 40
%27 = inttoptr i64 %26 to i64*
store i64 0, i64* %27, align 8
%28 = add i64 %arg1, 48
%29 = inttoptr i64 %28 to i32*
store i32 0, i32* %29, align 4
%30 = add i64 %arg1, 56
%31 = inttoptr i64 %30 to i64*
store i64 0, i64* %31, align 8
%32 = add i64 %arg1, 64
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = inttoptr i64 %34 to i64*
call void @free(i64* %35)
store i64 0, i64* %33, align 8
%36 = add i64 %arg1, 72
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = inttoptr i64 %38 to i64*
call void @free(i64* %39)
store i64 0, i64* %37, align 8
%40 = add i64 %arg1, 80
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = inttoptr i64 %42 to i64*
call void @free(i64* %43)
store i64 0, i64* %41, align 8
%44 = add i64 %arg1, 88
%45 = inttoptr i64 %44 to i64*
%46 = load i64, i64* %45, align 8
%47 = inttoptr i64 %46 to i64*
call void @free(i64* %47)
store i64 0, i64* %45, align 8
%48 = add i64 %arg1, 96
%49 = inttoptr i64 %48 to i64*
%50 = load i64, i64* %49, align 8
%51 = inttoptr i64 %50 to i64*
call void @free(i64* %51)
store i64 0, i64* %49, align 8
%52 = add i64 %arg1, 104
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = icmp eq i64 %54, 0
br i1 %55, label LBL_8, label LBL_7
LBL_7:
%56 = call i64 @FUNC(i64 %54)
br label LBL_8
LBL_8:
store i64 0, i64* %53, align 8
%57 = add i64 %arg1, 112
%58 = inttoptr i64 %57 to i32*
store i32 -1, i32* %58, align 4
%59 = add i64 %arg1, 116
%60 = inttoptr i64 %59 to i32*
store i32 0, i32* %60, align 4
%61 = add i64 %arg1, 120
%62 = inttoptr i64 %61 to i32*
store i32 0, i32* %62, align 4
%63 = add i64 %arg1, 124
%64 = inttoptr i64 %63 to i32*
store i32 1, i32* %64, align 4
%65 = add i64 %arg1, 128
%66 = inttoptr i64 %65 to i32*
store i32 0, i32* %66, align 4
%67 = add i64 %arg1, 132
%68 = inttoptr i64 %67 to i32*
store i32 0, i32* %68, align 4
%69 = add i64 %arg1, 136
%70 = inttoptr i64 %69 to i32*
store i32 0, i32* %70, align 4
%71 = add i64 %arg1, 140
%72 = inttoptr i64 %71 to i32*
store i32 1, i32* %72, align 4
%73 = add i64 %arg1, 144
%74 = inttoptr i64 %73 to i32*
store i32 1, i32* %74, align 4
%75 = add i64 %arg1, 148
%76 = inttoptr i64 %75 to i32*
store i32 0, i32* %76, align 4
%77 = add i64 %arg1, 152
%78 = inttoptr i64 %77 to i32*
store i32 1, i32* %78, align 4
%79 = add i64 %arg1, 176
%80 = inttoptr i64 %79 to i64*
store i64 %arg1, i64* %80, align 8
%81 = add i64 %arg1, 184
%82 = inttoptr i64 %81 to i64*
store i64 4198765, i64* %82, align 8
%83 = add i64 %arg1, 192
%84 = inttoptr i64 %83 to i64*
store i64 4198772, i64* %84, align 8
%85 = add i64 %arg1, 200
%86 = inttoptr i64 %85 to i32*
store i32 0, i32* %86, align 4
%87 = add i64 %arg1, 204
%88 = inttoptr i64 %87 to i32*
store i32 0, i32* %88, align 4
%89 = add i64 %arg1, 208
%90 = inttoptr i64 %89 to i32*
store i32 0, i32* %90, align 4
%91 = add i64 %arg1, 212
%92 = inttoptr i64 %91 to i32*
store i32 0, i32* %92, align 4
%93 = add i64 %arg1, 156
%94 = inttoptr i64 %93 to i32*
store i32 0, i32* %94, align 4
%95 = add i64 %arg1, 160
%96 = inttoptr i64 %95 to i32*
store i32 0, i32* %96, align 4
%97 = add i64 %arg1, 164
%98 = inttoptr i64 %97 to i32*
store i32 0, i32* %98, align 4
%99 = add i64 %arg1, 168
%100 = inttoptr i64 %99 to i64*
store i64 0, i64* %100, align 8
%101 = add i64 %arg1, 216
%102 = call i64 @FUNC(i64 %101)
%103 = add i64 %arg1, 224
%104 = inttoptr i64 %103 to i64*
%105 = load i64, i64* %104, align 8
%106 = icmp eq i64 %105, 0
br i1 %106, label LBL_10, label LBL_9
LBL_9:
%107 = call i64 @FUNC(i64 %105, i64 4198794)
store i64 0, i64* %104, align 8
br label LBL_10
LBL_10:
%108 = add i64 %arg1, 232
%109 = inttoptr i64 %108 to i64*
%110 = load i64, i64* %109, align 8
%111 = icmp eq i64 %110, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %111, label LBL_12, label LBL_11
LBL_11:
%112 = call i64 @FUNC(i64 %110, i64 0)
store i64 0, i64* %109, align 8
store i64 %arg1, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64, i64)* @xmlHashFree, { 1, 0 }
uselistorder i1 false, { 1, 0 }
uselistorder i64 (i64)* @inputPop, { 1, 0 }
uselistorder i32 1, { 7, 8, 9, 10, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 40, 2, 39, 41, 42, 43, 44, 1, 45 }
uselistorder label LBL_12, { 1, 2, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | avi_read_nikon_14326 | avi_read_nikon | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%.lcssa.reg2mem = alloca i64
%rdi.2.ph26.reg2mem = alloca i64
%rdi.1.lcssa.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%sv_0.0.ph.reg2mem = alloca i8*
%sv_1.0.in.in.reg2mem = alloca i32
%rdi.120.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i64, align 8
%1 = call i64 @FUNC(i64 %0)
%2 = icmp ult i64 %1, %arg2
store i64 %1, i64* %.lcssa.reg2mem
br i1 %2, label LBL_1, label LBL_15
LBL_1:
%3 = add i64 %0, 8
store i64 %0, i64* %rdi.2.ph26.reg2mem
br label LBL_2.lr.ph
LBL_2:
%4 = call i64 @FUNC(i64 %rdi.2.ph26.reload)
%5 = trunc i64 %4 to i32
%6 = call i64 @FUNC(i64 %rdi.2.ph26.reload)
%7 = icmp eq i32 %5, 1852011623
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_12, label LBL_3
LBL_3:
%9 = trunc i64 %6 to i32
%10 = call i64 @FUNC(i64 %rdi.2.ph26.reload)
%11 = trunc i64 %10 to i32
%12 = add i32 %11, %9
%13 = call i64 @FUNC(i64 %rdi.2.ph26.reload)
%14 = sext i32 %12 to i64
%15 = icmp ult i64 %13, %14
store i64 %rdi.2.ph26.reload, i64* %rdi.120.reg2mem
store i64 %rdi.2.ph26.reload, i64* %rdi.1.lcssa.reg2mem
br i1 %15, label LBL_4, label LBL_13
LBL_4:
%rdi.120.reload = load i64, i64* %rdi.120.reg2mem
%16 = call i64 @FUNC(i64 %rdi.120.reload)
%17 = call i64 @FUNC(i64 %rdi.120.reload)
%18 = trunc i64 %17 to i32
store i64 0, i64* %sv_2, align 8
%19 = call i64 @FUNC(i64 %rdi.120.reload)
%20 = urem i64 %17, 65536
%21 = add i64 %19, %20
%22 = icmp ugt i64 %21, %14
%23 = icmp eq i1 %22, false
store i32 %18, i32* %sv_1.0.in.in.reg2mem
br i1 %23, label LBL_6, label LBL_5
LBL_5:
%24 = call i64 @FUNC(i64 %rdi.120.reload)
%25 = trunc i64 %24 to i32
%26 = sub i32 %12, %25
store i32 %26, i32* %sv_1.0.in.in.reg2mem
br label LBL_6
LBL_6:
%27 = trunc i64 %16 to i32
%28 = urem i32 %27, 65536
%sv_1.0.in.in.reload = load i32, i32* %sv_1.0.in.in.reg2mem
%sv_1.0.in = mul i32 %sv_1.0.in.in.reload, 65536
%sv_1.0 = ashr exact i32 %sv_1.0.in, 16
%29 = trunc i32 %sv_1.0 to i16
%30 = icmp ult i16 %29, 64
%31 = urem i32 %sv_1.0, 65536
%.op = zext i32 %31 to i64
%32 = select i1 %30, i64 %.op, i64 63
%33 = call i64 @FUNC(i64 %rdi.120.reload, i64* nonnull %sv_2, i64 %32)
%34 = icmp eq i32 %28, 19
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i8** %sv_0.0.ph.reg2mem
br i1 %34, label LBL_10, label LBL_7
LBL_7:
%35 = icmp ugt i32 %28, 19
store i64 %rdi.120.reload, i64* %rdi.0.reg2mem
br i1 %35, label LBL_11, label LBL_8
LBL_8:
%trunc = trunc i64 %16 to i16
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_1, i64 0, i64 0), i8** %sv_0.0.ph.reg2mem
store i64 %rdi.120.reload, i64* %rdi.0.reg2mem
switch i16 %trunc, label LBL_11 [
i16 3, label LBL_10
i16 4, label LBL_9
]
LBL_9:
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0), i8** %sv_0.0.ph.reg2mem
br label LBL_10
LBL_10:
%sv_0.0.ph.reload = load i8*, i8** %sv_0.0.ph.reg2mem
%36 = ptrtoint i8* %sv_0.0.ph.reload to i64
%37 = call i64 @FUNC(i64 %3, i64 %36, i64* nonnull %sv_2, i64 0)
store i64 %3, i64* %rdi.0.reg2mem
br label LBL_11
LBL_11:
%38 = trunc i64 %33 to i32
%39 = sub i32 %sv_1.0, %38
%40 = urem i32 %39, 65536
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%41 = zext i32 %40 to i64
%42 = call i64 @FUNC(i64 %rdi.0.reload, i64 %41)
%43 = call i64 @FUNC(i64 %rdi.0.reload)
%44 = icmp ult i64 %43, %14
store i64 %rdi.0.reload, i64* %rdi.120.reg2mem
store i64 %rdi.0.reload, i64* %rdi.1.lcssa.reg2mem
br i1 %44, label LBL_4, label LBL_13
LBL_12:
%45 = and i64 %6, 4294967295
%46 = call i64 @FUNC(i64 %rdi.2.ph26.reload, i64 %45)
%47 = call i64 @FUNC(i64 %rdi.2.ph26.reload)
%48 = icmp ult i64 %47, %arg2
store i64 %47, i64* %.lcssa.reg2mem
br i1 %48, label LBL_2, label LBL_15
LBL_13:
%rdi.1.lcssa.reload = load i64, i64* %rdi.1.lcssa.reg2mem
%49 = call i64 @FUNC(i64 %rdi.1.lcssa.reload)
%50 = icmp ult i64 %49, %arg2
store i64 %rdi.1.lcssa.reload, i64* %rdi.2.ph26.reg2mem
store i64 %49, i64* %.lcssa.reg2mem
br i1 %50, label LBL_2.lr.ph, label LBL_15
LBL_14:
%rdi.2.ph26.reload = load i64, i64* %rdi.2.ph26.reg2mem
br label LBL_2
LBL_15:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i64 %rdi.2.ph26.reload, { 3, 2, 4, 0, 6, 7, 5, 1 }
uselistorder i64 %rdi.0.reload, { 0, 3, 2, 1 }
uselistorder i32 %sv_1.0, { 2, 0, 1 }
uselistorder i32 %28, { 1, 0 }
uselistorder i64 %rdi.120.reload, { 0, 1, 3, 2, 6, 5, 4 }
uselistorder i64 %14, { 2, 1, 0 }
uselistorder i64 %6, { 1, 0 }
uselistorder i64 %0, { 0, 2, 1 }
uselistorder i64* %rdi.120.reg2mem, { 2, 0, 1 }
uselistorder i8** %sv_0.0.ph.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %rdi.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64, i64)* @avio_skip, { 1, 0 }
uselistorder i32 65536, { 1, 2, 0, 3 }
uselistorder i64 (i64)* @avio_rl16, { 1, 0 }
uselistorder i64 (i64)* @avio_rl32, { 1, 0 }
uselistorder i64 (i64)* @avio_tell, { 2, 3, 5, 7, 6, 1, 4, 0 }
uselistorder i64 %arg2, { 1, 2, 0 }
uselistorder label LBL_2.lr.ph, { 1, 0 }
uselistorder label LBL_11, { 2, 1, 0 }
uselistorder label LBL_10, { 2, 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | cmplog_exec_child_6435 | cmplog_exec_child | define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.pre-phi.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = call i32 @setenv(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0), i32 1)
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i32 @setenv(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_1, i64 0, i64 0), i32 0)
%.pre = ptrtoint i32* %arg1 to i64
store i64 %.pre, i64* %.pre-phi.reg2mem
br label LBL_5
LBL_2:
%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 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
store i64 %6, i64* %.pre-phi.reg2mem
br i1 %11, label LBL_5, label LBL_3
LBL_3:
%12 = add i64 %6, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %14, ptrtoint ([2 x i8]* @gv_1 to i64)
store i64 %6, i64* %.pre-phi.reg2mem
br i1 %15, label LBL_5, label LBL_4
LBL_4:
%16 = inttoptr i64 %arg2 to i64*
store i64 %14, i64* %16, align 8
store i64 %6, i64* %.pre-phi.reg2mem
br label LBL_5
LBL_5:
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
%17 = add i64 %.pre-phi.reload, 16
%18 = inttoptr i64 %17 to i64*
%19 = load i64, i64* %18, align 8
%20 = inttoptr i64 %19 to i8*
%21 = inttoptr i64 %arg2 to i8*
%22 = insertvalue [1 x i8*] undef, i8* %21, 0
%23 = call i32 @execv(i8* %20, [1 x i8*] %22)
%24 = sext i32 %23 to i64
ret i64 %24
uselistorder i64 %14, { 1, 0 }
uselistorder i64 %6, { 2, 1, 3, 0, 4 }
uselistorder i64* %.pre-phi.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder [2 x i8]* @gv_1, { 1, 0 }
uselistorder i64 %arg2, { 1, 0 }
uselistorder i32* %arg1, { 1, 0 }
uselistorder label LBL_5, { 1, 2, 3, 0 }
} | 0 |
BinRealVul | scm_check_creds_6082 | scm_check_creds | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC()
%4 = add i64 %3, 24
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
%7 = and i64 %1, 4294967295
%8 = call i64 @FUNC(i64 %6, i64 %7)
%9 = add i64 %2, 4
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* %10, align 4
%12 = load i64, i64* %5, align 8
%13 = zext i32 %11 to i64
%14 = call i64 @FUNC(i64 %12, i64 %13)
%15 = and i64 %8, 4294967295
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %18, label LBL_13, label LBL_1
LBL_1:
%19 = and i64 %14, 4294967295
%20 = call i64 @FUNC(i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %23, label LBL_2, label LBL_13
LBL_2:
%24 = add i64 %2, 8
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = load i64, i64* @gv_0, align 8
%28 = call i64 @FUNC(i64 %27)
%29 = trunc i64 %28 to i32
%30 = icmp eq i32 %26, %29
br i1 %30, label LBL_4, label LBL_3
LBL_3:
%31 = load i64, i64* @gv_0, align 8
%32 = inttoptr i64 %31 to i64*
%33 = load i64, i64* %32, align 8
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = call i64 @FUNC(i64 %37, i64 1)
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label LBL_12, label LBL_4
LBL_4:
%41 = inttoptr i64 %3 to i32*
%42 = load i32, i32* %41, align 4
%43 = zext i32 %42 to i64
%44 = call i64 @FUNC(i64 %15, i64 %43)
%45 = trunc i64 %44 to i32
%46 = icmp eq i32 %45, 0
%47 = icmp eq i1 %46, false
br i1 %47, label LBL_8, label LBL_5
LBL_5:
%48 = add i64 %3, 4
%49 = inttoptr i64 %48 to i32*
%50 = load i32, i32* %49, align 4
%51 = zext i32 %50 to i64
%52 = call i64 @FUNC(i64 %15, i64 %51)
%53 = trunc i64 %52 to i32
%54 = icmp eq i32 %53, 0
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_8, label LBL_6
LBL_6:
%56 = add i64 %3, 8
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = zext i32 %58 to i64
%60 = call i64 @FUNC(i64 %15, i64 %59)
%61 = trunc i64 %60 to i32
%62 = icmp eq i32 %61, 0
%63 = icmp eq i1 %62, false
br i1 %63, label LBL_8, label LBL_7
LBL_7:
%64 = call i64 @FUNC(i64 2)
%65 = trunc i64 %64 to i32
%66 = icmp eq i32 %65, 0
br i1 %66, label LBL_12, label LBL_8
LBL_8:
%67 = add i64 %3, 12
%68 = inttoptr i64 %67 to i32*
%69 = load i32, i32* %68, align 4
%70 = zext i32 %69 to i64
%71 = call i64 @FUNC(i64 %19, i64 %70)
%72 = trunc i64 %71 to i32
%73 = icmp eq i32 %72, 0
%74 = icmp eq i1 %73, false
store i64 0, i64* %rax.0.reg2mem
br i1 %74, label LBL_13, label LBL_9
LBL_9:
%75 = add i64 %3, 16
%76 = inttoptr i64 %75 to i32*
%77 = load i32, i32* %76, align 4
%78 = zext i32 %77 to i64
%79 = call i64 @FUNC(i64 %19, i64 %78)
%80 = trunc i64 %79 to i32
%81 = icmp eq i32 %80, 0
%82 = icmp eq i1 %81, false
store i64 0, i64* %rax.0.reg2mem
br i1 %82, label LBL_13, label LBL_10
LBL_10:
%83 = add i64 %3, 20
%84 = inttoptr i64 %83 to i32*
%85 = load i32, i32* %84, align 4
%86 = zext i32 %85 to i64
%87 = call i64 @FUNC(i64 %19, i64 %86)
%88 = trunc i64 %87 to i32
%89 = icmp eq i32 %88, 0
%90 = icmp eq i1 %89, false
store i64 0, i64* %rax.0.reg2mem
br i1 %90, label LBL_13, label LBL_11
LBL_11:
%91 = call i64 @FUNC(i64 3)
%92 = trunc i64 %91 to i32
%93 = icmp eq i32 %92, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %93, label LBL_12, label LBL_13
LBL_12:
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_13
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 7, 4, 3, 2, 1, 6, 5 }
uselistorder i64 (i64, i64)* @gid_eq, { 2, 1, 0 }
uselistorder i64 (i64)* @nsown_capable, { 1, 0 }
uselistorder i64 (i64, i64)* @uid_eq, { 2, 1, 0 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder i64 4294967274, { 1, 0 }
uselistorder label LBL_13, { 6, 3, 2, 1, 0, 5, 4 }
} | 0 |
BinRealVul | uio_get_minor_10400 | uio_get_minor | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64* nonnull @gv_0)
%2 = call i64 @FUNC(i64* nonnull @gv_1, i64 %0, i64 0, i64 256, i64 0)
%3 = trunc i64 %2 to i32
%4 = icmp slt i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = bitcast i64* %arg1 to i32*
store i32 %3, i32* %5, align 4
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_2:
%6 = icmp eq i32 %3, -28
%7 = icmp eq i1 %6, false
store i64 %2, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_4, label LBL_3
LBL_3:
%8 = add i64 %0, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_2, i64 0, i64 0))
store i64 4294967274, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%12 = call i64 @FUNC(i64* nonnull @gv_0)
%13 = and i64 %sv_0.0.reload, 4294967295
ret i64 %13
uselistorder i32 %3, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 1 }
uselistorder i32 0, { 1, 0 }
} | 0 |
BinRealVul | slhc_init_18970 | slhc_init | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge9.reg2mem = alloca i64
%.reg2mem13 = alloca i16
%storemerge12.reg2mem = alloca i64
%.reg2mem = alloca i16
%0 = call i64 @FUNC(i64 32, i64 0)
%1 = icmp eq i64 %0, 0
store i64 0, i64* %storemerge9.reg2mem
br i1 %1, label LBL_15, label LBL_1
LBL_1:
%sext = mul i64 %arg1, 4294967296
%2 = ashr exact i64 %sext, 32
%3 = trunc i64 %2 to i32
%.off = add i32 %3, -1
%4 = icmp ugt i32 %.off, 254
br i1 %4, label LBL_4, label LBL_2
LBL_2:
%5 = ashr exact i64 %sext, 28
%6 = call i64 @FUNC(i64 %5, i64 0)
%7 = inttoptr i64 %0 to i64*
store i64 %6, i64* %7, align 8
%8 = icmp eq i64 %6, 0
br i1 %8, label LBL_14, label LBL_3
LBL_3:
%9 = trunc i64 %2 to i16
%10 = add i16 %9, -1
%11 = add i64 %0, 16
%12 = inttoptr i64 %11 to i16*
store i16 %10, i16* %12, align 2
br label LBL_4
LBL_4:
%sext3 = mul i64 %arg2, 4294967296
%13 = ashr exact i64 %sext3, 32
%14 = trunc i64 %13 to i32
%.off11 = add i32 %14, -1
%15 = icmp ugt i32 %.off11, 254
br i1 %15, label LBL_7, label LBL_5
LBL_5:
%16 = ashr exact i64 %sext3, 28
%17 = call i64 @FUNC(i64 %16, i64 0)
%18 = add i64 %0, 8
%19 = inttoptr i64 %18 to i64*
store i64 %17, i64* %19, align 8
%20 = icmp eq i64 %17, 0
br i1 %20, label LBL_13, label LBL_6
LBL_6:
%21 = trunc i64 %13 to i16
%22 = add i16 %21, -1
%23 = add i64 %0, 18
%24 = inttoptr i64 %23 to i16*
store i16 %22, i16* %24, align 2
br label LBL_7
LBL_7:
%25 = icmp slt i32 %14, 1
%26 = add i64 %0, 20
%27 = inttoptr i64 %26 to i8*
store i8 0, i8* %27, align 1
%28 = add i64 %0, 21
%29 = inttoptr i64 %28 to i8*
store i8 -1, i8* %29, align 1
%30 = add i64 %0, 22
%31 = inttoptr i64 %30 to i8*
store i8 -1, i8* %31, align 1
%32 = add i64 %0, 24
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = or i32 %34, 1
store i32 %35, i32* %33, align 4
store i64 %0, i64* %storemerge9.reg2mem
br i1 %25, label LBL_15, label LBL_8
LBL_8:
%36 = add i64 %0, 8
%37 = inttoptr i64 %36 to i64*
%38 = load i64, i64* %37, align 8
%39 = add i64 %0, 18
%40 = inttoptr i64 %39 to i16*
%41 = load i16, i16* %40, align 2
%42 = icmp eq i16 %41, 0
%43 = icmp slt i16 %41, 0
%44 = icmp eq i1 %43, false
%45 = icmp eq i1 %42, false
%46 = icmp eq i1 %44, %45
store i16 %41, i16* %.reg2mem13
br i1 %46, label LBL_9, label LBL_12
LBL_9:
%47 = zext i16 %41 to i64
store i16 %41, i16* %.reg2mem
store i64 %47, i64* %storemerge12.reg2mem
br label LBL_10
LBL_10:
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%.reload = load i16, i16* %.reg2mem
%sext6 = mul i64 %storemerge12.reload, 281474976710656
%48 = ashr exact i64 %sext6, 44
%49 = add i64 %48, %38
%50 = inttoptr i64 %49 to i16*
store i16 %.reload, i16* %50, align 2
%51 = add i64 %49, -16
%52 = add i64 %49, 8
%53 = inttoptr i64 %52 to i64*
store i64 %51, i64* %53, align 8
%54 = add nuw nsw i64 %storemerge12.reload, 4294967295
%55 = and i64 %54, 4294967295
%56 = trunc i64 %54 to i16
%57 = icmp eq i16 %56, 0
%58 = icmp slt i16 %56, 0
%59 = icmp eq i1 %58, false
%60 = icmp eq i1 %57, false
%61 = icmp eq i1 %59, %60
store i16 %56, i16* %.reg2mem
store i64 %55, i64* %storemerge12.reg2mem
br i1 %61, label LBL_10, label LBL_11
LBL_11:
%.pre = load i16, i16* %40, align 2
store i16 %.pre, i16* %.reg2mem13
br label LBL_12
LBL_12:
%.reload14 = load i16, i16* %.reg2mem13
%62 = sext i16 %.reload14 to i64
%63 = mul i64 %62, 16
%64 = add i64 %63, %38
%65 = add i64 %38, 8
%66 = inttoptr i64 %65 to i64*
store i64 %64, i64* %66, align 8
%67 = inttoptr i64 %38 to i16*
store i16 0, i16* %67, align 2
store i64 %0, i64* %storemerge9.reg2mem
br label LBL_15
LBL_13:
%68 = inttoptr i64 %0 to i64*
%69 = load i64, i64* %68, align 8
%70 = call i64 @FUNC(i64 %69)
br label LBL_14
LBL_14:
%71 = call i64 @FUNC(i64 %0)
store i64 0, i64* %storemerge9.reg2mem
br label LBL_15
LBL_15:
%storemerge9.reload = load i64, i64* %storemerge9.reg2mem
ret i64 %storemerge9.reload
uselistorder i16 %56, { 0, 2, 1 }
uselistorder i64 %49, { 1, 0, 2 }
uselistorder i16 %41, { 1, 4, 0, 2, 3 }
uselistorder i64 %38, { 2, 3, 0, 1 }
uselistorder i32 %14, { 1, 0 }
uselistorder i64 %sext3, { 1, 0 }
uselistorder i64 %sext, { 1, 0 }
uselistorder i64 %0, { 4, 5, 1, 9, 8, 0, 10, 11, 12, 13, 6, 7, 2, 3, 14 }
uselistorder i16* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge12.reg2mem, { 1, 0, 2 }
uselistorder i16* %.reg2mem13, { 0, 2, 1 }
uselistorder i64* %storemerge9.reg2mem, { 0, 3, 2, 1, 4 }
uselistorder i1 false, { 3, 2, 0, 1 }
uselistorder i16 0, { 2, 3, 4, 0, 1 }
uselistorder i64 (i64, i64)* @kzalloc, { 2, 1, 0 }
uselistorder i32 1, { 6, 4, 3, 2, 1, 0, 5 }
uselistorder label LBL_15, { 2, 1, 0, 3 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
} | 1 |
BinRealVul | mpeg1_encode_init_15573 | mpeg1_encode_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge39.reg2mem = alloca i32
%storemerge210.reg2mem = alloca i32
%indvars.iv15.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%storemerge512.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%rdi = alloca i64, align 8
%0 = load i32, i32* inttoptr (i64 4220164 to i32*), align 4
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_13, label LBL_1
LBL_1:
store i32 1, i32* bitcast (i64* @gv_0 to i32*), align 8
%3 = bitcast i64* %rdi to i32*
store i64 1, i64* %indvars.iv15.reg2mem
br label LBL_9
LBL_2:
%storemerge512.reload = load i32, i32* %storemerge512.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%4 = icmp eq i64 %indvars.iv.reload, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_4, label LBL_3
LBL_3:
%6 = load i32, i32* bitcast (i32** @gv_1 to i32*), align 8
store i32 %6, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_4:
%7 = load i32, i32* %3, align 8
%8 = add i32 %7, 31
%9 = icmp slt i64 %indvars.iv.reload, 0
%10 = icmp eq i1 %9, false
%11 = sub nsw i32 0, %storemerge512.reload
%12 = trunc i64 %indvars.iv.reload to i32
%spec.select = select i1 %10, i32 %12, i32 %11
%13 = add i32 %spec.select, -1
%14 = urem i32 %8, 32
%15 = ashr i32 %13, %14
%16 = add i32 %15, 1
%17 = icmp sgt i32 %16, 16
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%18 = sext i32 %16 to i64
%19 = mul i64 %18, 8
%20 = add i64 %19, ptrtoint (i32** @gv_1 to i64)
%21 = inttoptr i64 %20 to i32*
%22 = load i32, i32* %21, align 8
%23 = add i32 %22, %7
store i32 %23, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_6:
%24 = add i32 %7, add (i32 ptrtoint (i32* @gv_2 to i32), i32 -1)
store i32 %24, i32* %sv_0.0.reg2mem
br label LBL_7
LBL_7:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%25 = add nsw i64 %31, %indvars.iv.reload
%26 = mul i64 %25, 4
%27 = add i64 %26, ptrtoint (i32** @gv_3 to i64)
%28 = inttoptr i64 %27 to i32*
store i32 %sv_0.0.reload, i32* %28, align 4
%indvars.iv.next = add nsw i64 %indvars.iv.reload, 1
%29 = add nsw i32 %storemerge512.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 17
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i32 %29, i32* %storemerge512.reg2mem
br i1 %exitcond, label LBL_8, label LBL_2
LBL_8:
%indvars.iv.next16 = add nuw nsw i64 %indvars.iv15.reload, 1
%exitcond17 = icmp eq i64 %indvars.iv.next16, 8
store i64 %indvars.iv.next16, i64* %indvars.iv15.reg2mem
store i32 7, i32* %storemerge210.reg2mem
br i1 %exitcond17, label LBL_10, label LBL_9
LBL_9:
%indvars.iv15.reload = load i64, i64* %indvars.iv15.reg2mem
%30 = mul nuw nsw i64 %indvars.iv15.reload, 33
%31 = add nuw nsw i64 %30, 16
store i64 -16, i64* %indvars.iv.reg2mem
store i32 -16, i32* %storemerge512.reg2mem
br label LBL_2
LBL_10:
%storemerge210.reload = load i32, i32* %storemerge210.reg2mem
%32 = shl i32 -8, %storemerge210.reload
%33 = shl i32 8, %storemerge210.reload
%storemerge1 = zext i32 %33 to i64
%34 = sext i32 %32 to i64
%35 = icmp sgt i64 %storemerge1, %34
store i32 %32, i32* %storemerge39.reg2mem
br i1 %35, label LBL_11, label LBL_12
LBL_11:
%storemerge39.reload = load i32, i32* %storemerge39.reg2mem
%36 = add i32 %storemerge39.reload, 16
%37 = sext i32 %36 to i64
%38 = mul i64 %37, 4
%39 = add i64 %38, ptrtoint (i32** @gv_4 to i64)
%40 = inttoptr i64 %39 to i32*
store i32 %storemerge210.reload, i32* %40, align 4
%41 = add i32 %storemerge39.reload, 1
%42 = sext i32 %41 to i64
%43 = icmp sgt i64 %storemerge1, %42
store i32 %41, i32* %storemerge39.reg2mem
br i1 %43, label LBL_11, label LBL_12
LBL_12:
%44 = add nsw i32 %storemerge210.reload, -1
%45 = icmp eq i32 %44, 0
%46 = icmp eq i1 %45, false
store i32 %44, i32* %storemerge210.reg2mem
br i1 %46, label LBL_10, label LBL_13
LBL_13:
%47 = ptrtoint i64* %arg1 to i64
%48 = add i64 %47, 8
%49 = inttoptr i64 %48 to i64*
store i64 ptrtoint (i32** @gv_3 to i64), i64* %49, align 8
%50 = add i64 %47, 16
%51 = inttoptr i64 %50 to i64*
store i64 ptrtoint (i32** @gv_4 to i64), i64* %51, align 8
ret i64 %47
uselistorder i64 %storemerge1, { 1, 0 }
uselistorder i32 %storemerge210.reload, { 1, 0, 2, 3 }
uselistorder i64 %indvars.iv15.reload, { 1, 0 }
uselistorder i32 %7, { 1, 0, 2 }
uselistorder i64 %indvars.iv.reload, { 0, 4, 1, 2, 3 }
uselistorder i32 %storemerge512.reload, { 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 }
uselistorder i32* %storemerge512.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %storemerge210.reg2mem, { 2, 0, 1 }
uselistorder i32* %storemerge39.reg2mem, { 2, 0, 1 }
uselistorder i64 ptrtoint (i32** @gv_4 to i64), { 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i64 ptrtoint (i32** @gv_3 to i64), { 1, 0 }
uselistorder i64 8, { 2, 1, 0 }
uselistorder i32 16, { 1, 0 }
uselistorder i32 -1, { 2, 0, 1 }
uselistorder i32** @gv_1, { 1, 0 }
uselistorder i32 0, { 1, 2, 3, 0 }
uselistorder label LBL_11, { 1, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | _on_regack_5900 | _on_regack | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = add i64 %1, 8
%3 = call i64 @FUNC(i64 %2)
%4 = call i64 @FUNC(i64 %1, i64 %arg3, i64 7, i64 %0, i64 0)
%5 = icmp eq i64 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = call i64 @FUNC(i64 %2)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_6
LBL_2:
%8 = add i64 %0, 6
%9 = inttoptr i64 %8 to i8*
%10 = load i8, i8* %9, align 1
%11 = icmp eq i8 %10, 1
%12 = icmp eq i1 %11, false
br i1 %12, label LBL_5, label LBL_3
LBL_3:
%13 = inttoptr i64 %4 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %14, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %15, label LBL_6, label LBL_4
LBL_4:
%16 = inttoptr i64 %14 to i16*
%17 = add i64 %0, 2
%18 = call i64 @FUNC(i64 %17)
%19 = trunc i64 %18 to i16
store i16 %19, i16* %16, align 2
%20 = add i64 %14, 8
%21 = inttoptr i64 %20 to i64*
store i64 %1, i64* %21, align 8
br label LBL_5
LBL_5:
%22 = add i64 %4, 8
%23 = call i64 @FUNC(i64 %22)
%24 = call i64 @FUNC(i64 %2)
store i64 %4, 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 %2, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64)* @mutex_unlock, { 2, 1, 0 }
uselistorder label LBL_6, { 1, 0, 2 }
} | 0 |
BinRealVul | install_thread_keyring_12709 | install_thread_keyring | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC()
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %2, label LBL_1, label LBL_6
LBL_1:
%3 = inttoptr i64 %0 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%7 = call i32 @fwrite(i64* bitcast ([23 x i8]* @gv_1 to i64*), i32 1, i32 22, %_IO_FILE* %6)
call void @exit(i32 1)
unreachable
LBL_3:
%8 = call i64 @FUNC(i64 %0)
%9 = trunc i64 %8 to i32
%10 = icmp slt i32 %9, 0
%11 = icmp eq i1 %10, false
br i1 %11, label LBL_5, label LBL_4
LBL_4:
%12 = call i64 @FUNC(i64 %0)
%13 = and i64 %8, 4294967295
store i64 %13, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%14 = call i64 @FUNC(i64 %0)
store i64 %14, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 1, { 1, 2, 0 }
uselistorder label LBL_6, { 1, 2, 0 }
} | 1 |
BinRealVul | kvm_irqchip_add_adapter_route_14525 | kvm_irqchip_add_adapter_route | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i64
%sv_0 = alloca i32, align 4
%0 = call i64 @FUNC()
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp eq i1 %2, false
store i64 4294967258, i64* %rax.0.shrunk.reg2mem
br i1 %3, label LBL_1, label LBL_3
LBL_1:
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = trunc i64 %5 to i32
%7 = icmp slt i32 %6, 0
%8 = icmp eq i1 %7, false
store i64 %5, i64* %rax.0.shrunk.reg2mem
br i1 %8, label LBL_2, label LBL_3
LBL_2:
store i32 %6, i32* %sv_0, align 4
%9 = call i64 @FUNC(i64 %4, i32* nonnull %sv_0)
%10 = call i64 @FUNC(i64 %4)
store i64 %5, i64* %rax.0.shrunk.reg2mem
br label LBL_3
LBL_3:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64 %4, { 1, 0, 2 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 1 |
BinRealVul | block_job_sleep_ns_3355 | block_job_sleep_ns | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i8
%3 = icmp eq i8 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
call void @__assert_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_1, i64 0, i64 0), i32 40, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0))
br label LBL_2
LBL_2:
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %6 to i8
%8 = icmp eq i8 %7, 0
%9 = icmp eq i1 %8, false
store i64 %6, i64* %rax.0.reg2mem
br i1 %9, label LBL_6, label LBL_3
LBL_3:
%10 = bitcast i64* %arg1 to i8*
store i8 0, i8* %10, align 1
%11 = call i64 @FUNC(i64 %5)
%12 = trunc i64 %11 to i8
%13 = icmp eq i8 %12, 1
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = and i64 %arg2, 4294967295
%15 = add i64 %5, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = call i64 @FUNC(i64 %17)
%19 = call i64 @FUNC(i64 %18, i64 %14, i64 %arg3)
br label LBL_5
LBL_5:
store i8 1, i8* %10, align 1
%20 = call i64 @FUNC(i64 %5)
store i64 %20, 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 %5, { 1, 0, 2, 3 }
uselistorder i8 1, { 1, 0 }
uselistorder label LBL_6, { 1, 0 }
} | 0 |
BinRealVul | double_lock_hb_8334 | double_lock_hb | define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp ugt i32* %arg1, %arg2
br i1 %0, label LBL_3, label LBL_1
LBL_1:
%1 = ptrtoint i32* %arg1 to i64
%2 = call i64 @FUNC(i64 %1)
%3 = icmp ult i32* %arg1, %arg2
%4 = icmp eq i1 %3, false
store i64 %1, i64* %rax.0.reg2mem
br i1 %4, label LBL_4, label LBL_2
LBL_2:
%5 = ptrtoint i32* %arg2 to i64
%6 = call i64 @FUNC(i64 %5, i64 1)
store i64 %6, i64* %rax.0.reg2mem
br label LBL_4
LBL_3:
%7 = ptrtoint i32* %arg2 to i64
%8 = call i64 @FUNC(i64 %7)
%9 = ptrtoint i32* %arg1 to i64
%10 = call i64 @FUNC(i64 %9, i64 1)
store i64 %10, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i64, i64)* @spin_lock_nested, { 1, 0 }
uselistorder i64 (i64)* @spin_lock, { 1, 0 }
uselistorder i32* %arg2, { 2, 1, 0, 3 }
uselistorder i32* %arg1, { 2, 1, 0, 3 }
} | 0 |
BinRealVul | check_pointer_type_change_5551 | check_pointer_type_change | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = call i64 @FUNC()
%4 = trunc i64 %3 to i32
%5 = call i64 @FUNC(i64 %2, i64 1)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = trunc i64 %1 to i32
%9 = icmp eq i32 %8, %4
%or.cond = or i1 %9, %7
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %2, i64 0)
%11 = call i64 @FUNC(i64 %2, i64 1)
%12 = add i64 %2, 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = call i64 @FUNC(i64 %16)
%18 = load i64, i64* %13, align 8
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = call i64 @FUNC(i64 %20)
%22 = and i64 %17, 4294967295
%23 = and i64 %21, 4294967295
%24 = call i64 @FUNC(i64 %2, i32 %4, i64 0, i64 %23, i64 %22, i64 2)
%25 = call i64 @FUNC(i64 %2)
%26 = call i64 @FUNC(i64 %2)
%27 = call i64 @FUNC(i64 %2)
%28 = call i64 @FUNC(i64 %2)
br label LBL_2
LBL_2:
%29 = bitcast i64* %arg1 to i32*
store i32 %4, i32* %29, align 4
ret i64 %2
uselistorder i32 %4, { 2, 1, 0 }
uselistorder i64 %2, { 8, 0, 4, 3, 2, 1, 7, 6, 5, 9 }
uselistorder i64 (i64)* @vnc_flush, { 1, 0 }
uselistorder i64 (i64)* @vnc_unlock_output, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
} | 0 |
BinRealVul | x25_negotiate_facilities_7728 | x25_negotiate_facilities | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%1 = ptrtoint i64* %arg4 to i64
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i64* %arg1 to i64
%4 = load i32, i32* %0
%5 = load i32, i32* %0
%6 = load i32, i32* %0
%7 = load i32, i32* %0
%8 = load i32, i32* %0
%sv_0 = alloca i64, align 8
%9 = call i64 @FUNC(i64 %2)
%10 = call i64* @memset(i64* nonnull %sv_0, i32 0, i32 24)
%11 = inttoptr i64 %9 to i64*
%12 = call i64* @memcpy(i64* %arg3, i64* %11, i32 24)
%13 = add i64 %9, 24
%14 = call i64 @FUNC(i64 %3, i64* nonnull %sv_0, i64 %1, i64 %13)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_2, label LBL_1
LBL_1:
%18 = and i64 %14, 4294967295
store i64 %18, i64* %rax.0.reg2mem
br label LBL_21
LBL_2:
%19 = load i64, i64* %sv_0, align 8
%20 = urem i64 %19, 2
%21 = icmp eq i64 %20, 0
br i1 %21, label LBL_5, label LBL_3
LBL_3:
%22 = inttoptr i64 %9 to i32*
%23 = load i32, i32* %22, align 4
%24 = urem i32 %23, 2
%25 = icmp eq i32 %24, 0
br i1 %25, label LBL_5, label LBL_4
LBL_4:
%26 = call i32 @puts(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_21
LBL_5:
%27 = ptrtoint i64* %arg3 to i64
%28 = trunc i64 %19 to i32
%29 = bitcast i64* %arg3 to i32*
store i32 %28, i32* %29, align 4
%30 = icmp eq i32 %8, 0
br i1 %30, label LBL_10, label LBL_6
LBL_6:
%31 = urem i32 %8, 16
%32 = add i64 %9, 4
%33 = inttoptr i64 %32 to i32*
%34 = load i32, i32* %33, align 4
%35 = urem i32 %34, 16
%36 = add nsw i32 %35, -1
%37 = icmp ult i32 %36, %31
br i1 %37, label LBL_8, label LBL_7
LBL_7:
%38 = call i32 @puts(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_1, i64 0, i64 0))
%39 = add i64 %27, 4
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = and i32 %41, 240
%43 = or i32 %42, %31
store i32 %43, i32* %40, align 4
br label LBL_8
LBL_8:
%44 = and i32 %8, 240
%45 = and i32 %34, 240
%46 = add nsw i32 %45, -1
%47 = icmp ult i32 %46, %44
br i1 %47, label LBL_10, label LBL_9
LBL_9:
%48 = call i32 @puts(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_2, i64 0, i64 0))
%49 = add i64 %27, 4
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = urem i32 %51, 16
%53 = or i32 %52, %44
store i32 %53, i32* %50, align 4
br label LBL_10
LBL_10:
%54 = icmp eq i32 %7, 0
%55 = icmp eq i32 %6, 0
%or.cond = or i1 %55, %54
br i1 %or.cond, label LBL_15, label LBL_11
LBL_11:
%56 = add i64 %9, 8
%57 = inttoptr i64 %56 to i32*
%58 = load i32, i32* %57, align 4
%59 = icmp ult i32 %7, %58
br i1 %59, label LBL_12, label LBL_13
LBL_12:
%60 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_3, i64 0, i64 0))
%61 = add i64 %27, 8
%62 = inttoptr i64 %61 to i32*
br label LBL_13
LBL_13:
%63 = add i64 %9, 12
%64 = inttoptr i64 %63 to i32*
%65 = load i32, i32* %64, align 4
%66 = icmp ult i32 %6, %65
br i1 %66, label LBL_14, label LBL_15
LBL_14:
%67 = call i32 @puts(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_4, i64 0, i64 0))
%68 = add i64 %27, 12
%69 = inttoptr i64 %68 to i32*
br label LBL_15
LBL_15:
%70 = icmp eq i32 %5, 0
%71 = icmp eq i32 %4, 0
%or.cond4 = or i1 %71, %70
br i1 %or.cond4, label LBL_20, label LBL_16
LBL_16:
%72 = add i64 %9, 16
%73 = inttoptr i64 %72 to i32*
%74 = load i32, i32* %73, align 4
%75 = icmp ult i32 %5, %74
br i1 %75, label LBL_17, label LBL_18
LBL_17:
%76 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_5, i64 0, i64 0))
%77 = add i64 %27, 16
%78 = inttoptr i64 %77 to i32*
br label LBL_18
LBL_18:
%79 = add i64 %9, 20
%80 = inttoptr i64 %79 to i32*
%81 = load i32, i32* %80, align 4
%82 = icmp ult i32 %4, %81
br i1 %82, label LBL_19, label LBL_20
LBL_19:
%83 = call i32 @puts(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_6, i64 0, i64 0))
%84 = add i64 %27, 20
%85 = inttoptr i64 %84 to i32*
br label LBL_20
LBL_20:
%86 = and i64 %14, 4294967295
store i64 %86, i64* %rax.0.reg2mem
br label LBL_21
LBL_21:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %34, { 1, 0 }
uselistorder i32 %31, { 1, 0 }
uselistorder i64 %27, { 4, 5, 2, 3, 0, 1 }
uselistorder i64 %19, { 1, 0 }
uselistorder i64* %sv_0, { 2, 0, 1 }
uselistorder i32 %8, { 0, 2, 1 }
uselistorder i32 %6, { 1, 0 }
uselistorder i32 %4, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %0, { 4, 3, 2, 1, 0 }
uselistorder i32 240, { 1, 2, 0 }
uselistorder i32 (i8*)* @puts, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %arg3, { 0, 2, 1 }
uselistorder label LBL_20, { 1, 0, 2 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_15, { 1, 0, 2 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_10, { 1, 0, 2 }
uselistorder label LBL_8, { 1, 0 }
} | 1 |
BinRealVul | qemu_blockalign_16551 | qemu_blockalign | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
%storemerge = select i1 %1, i64 512, i64 %0
%2 = call i64 @FUNC(i64 %storemerge, i64 %arg2)
ret i64 %2
} | 1 |
BinRealVul | vb2_mmap_5413 | vb2_mmap | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.shrunk.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = load i64, i64* %0
%5 = load i64, i64* %0
%sv_0 = alloca i32, align 4
%sv_1 = alloca i32, align 4
store i32 0, i32* %sv_1, align 4
store i32 0, i32* %sv_0, align 4
%6 = trunc i64 %3 to i32
%7 = icmp eq i32 %6, 1
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %5, i64 %2, i64 %1)
store i64 1, i64* %rax.0.shrunk.reg2mem
br label LBL_16
LBL_2:
%9 = ptrtoint i64* %arg2 to i64
%10 = add i64 %9, 24
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* %11, align 4
%13 = urem i32 %12, 2
%14 = icmp eq i32 %13, 0
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_4, label LBL_3
LBL_3:
%16 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_1, i64 0, i64 0), i64 %4, i64 %5, i64 %2, i64 %1)
store i64 1, i64* %rax.0.shrunk.reg2mem
br label LBL_16
LBL_4:
%17 = ptrtoint i32* %arg1 to i64
%18 = add i64 %17, 4
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, 1
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_7, label LBL_5
LBL_5:
%23 = and i32 %12, 2
%24 = icmp eq i32 %23, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_9, label LBL_6
LBL_6:
%26 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_2, i64 0, i64 0), i64 %4, i64 %5, i64 %2, i64 %1)
store i64 1, i64* %rax.0.shrunk.reg2mem
br label LBL_16
LBL_7:
%27 = and i32 %12, 4
%28 = icmp eq i32 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_9, label LBL_8
LBL_8:
%30 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_3, i64 0, i64 0), i64 %4, i64 %5, i64 %2, i64 %1)
store i64 1, i64* %rax.0.shrunk.reg2mem
br label LBL_16
LBL_9:
%31 = call i64 @FUNC(i64 %17)
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 0
br i1 %33, label LBL_11, label LBL_10
LBL_10:
%34 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_4, i64 0, i64 0), i64 %4, i64 %5, i64 %2, i64 %1)
store i64 2, i64* %rax.0.shrunk.reg2mem
br label LBL_16
LBL_11:
%35 = mul i64 %9, 4096
%36 = call i64 @FUNC(i64 %17, i64 %35, i32* nonnull %sv_1, i32* nonnull %sv_0)
%37 = trunc i64 %36 to i32
%38 = icmp eq i32 %37, 0
store i64 %36, i64* %rax.0.shrunk.reg2mem
br i1 %38, label LBL_12, label LBL_16
LBL_12:
%39 = add i64 %17, 8
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = load i32, i32* %sv_1, align 4
%43 = zext i32 %42 to i64
%44 = mul i64 %43, 8
%45 = add i64 %44, %41
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = load i32, i32* %sv_0, align 4
%49 = zext i32 %48 to i64
%50 = mul i64 %49, 8
%51 = add i64 %50, %47
%52 = inttoptr i64 %51 to i64*
%53 = load i64, i64* %52, align 8
%54 = add i64 %53, 4095
%55 = and i64 %54, -4096
%56 = add i64 %9, 16
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = add i64 %9, 8
%60 = inttoptr i64 %59 to i64*
%61 = load i64, i64* %60, align 8
%62 = sub i64 %58, %61
%63 = icmp ult i64 %55, %62
%64 = icmp eq i1 %63, false
br i1 %64, label LBL_14, label LBL_13
LBL_13:
%65 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_5, i64 0, i64 0), i64 %58, i64 %61, i64 %2, i64 %1)
store i64 1, i64* %rax.0.shrunk.reg2mem
br label LBL_16
LBL_14:
%66 = add i64 %51, 8
%67 = inttoptr i64 %66 to i64*
%68 = load i64, i64* %67, align 8
%69 = call i64 @FUNC(i64 %47, i64 4198464, i64 %68, i64 %9)
%70 = trunc i64 %69 to i32
%71 = icmp eq i32 %70, 0
store i64 %69, i64* %rax.0.shrunk.reg2mem
br i1 %71, label LBL_15, label LBL_16
LBL_15:
%72 = load i32, i32* %sv_0, align 4
%73 = load i32, i32* %sv_1, align 4
%74 = zext i32 %72 to i64
%75 = zext i32 %73 to i64
%76 = call i64 @FUNC(i64 3, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @gv_6, i64 0, i64 0), i64 %75, i64 %74, i64 %2, i64 %1)
store i64 0, i64* %rax.0.shrunk.reg2mem
br label LBL_16
LBL_16:
%rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem
%rax.0 = and i64 %rax.0.shrunk.reload, 4294967295
ret i64 %rax.0
uselistorder i64 %47, { 1, 0 }
uselistorder i32 %12, { 1, 2, 0 }
uselistorder i64 %9, { 1, 3, 2, 0, 4 }
uselistorder i32* %sv_1, { 1, 2, 0, 3 }
uselistorder i32* %sv_0, { 1, 2, 0, 3 }
uselistorder i64 %2, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 %1, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 9, 1, 8, 2, 7, 6, 5, 4, 3 }
uselistorder i64* %0, { 4, 3, 2, 1, 0 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @dprintk, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 1, { 4, 5, 6, 3, 7, 2, 8, 1, 9, 0, 10 }
uselistorder i32 0, { 2, 3, 4, 5, 6, 7, 0, 1, 8, 9 }
uselistorder label LBL_16, { 2, 0, 3, 1, 4, 5, 6, 7, 8 }
} | 0 |
BinRealVul | skipSpaces_11926 | skipSpaces | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.2.reg2mem = alloca i32
%sv_1.1.reg2mem = alloca i64
%sv_2.4.reg2mem = alloca i64
%sv_2.3.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_2.2.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i8
%.lcssa6.reg2mem = alloca i64
%sv_2.1.lcssa.reg2mem = alloca i64
%sv_2.114.reg2mem = alloca i64
%.reg2mem47 = alloca i64
%.reg2mem = alloca i8
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%1 = ashr exact i64 %sext, 32
store i64 %0, i64* %sv_2.0.reg2mem
store i64 %1, i64* %sv_1.0.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%2 = add i64 %sv_2.0.reload, -1
%3 = trunc i64 %sv_1.0.reload to i32
%4 = icmp eq i32 %3, 1
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_12, label LBL_2
LBL_2:
%6 = inttoptr i64 %sv_2.0.reload to i8*
%7 = load i8, i8* %6, align 1
%8 = sext i8 %7 to i64
%9 = and i64 %8, 4294967295
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
store i8 %7, i8* %.reg2mem
store i64 %sv_2.0.reload, i64* %.reg2mem47
store i64 %2, i64* %sv_2.114.reg2mem
store i64 %2, i64* %sv_2.1.lcssa.reg2mem
store i64 %sv_2.0.reload, i64* %.lcssa6.reg2mem
store i8 %7, i8* %.lcssa.reg2mem
br i1 %12, label LBL_7, label LBL_3
LBL_3:
%.reload48 = load i64, i64* %.reg2mem47
%.reload = load i8, i8* %.reg2mem
%13 = icmp eq i8 %.reload, 45
%14 = icmp eq i1 %13, false
br i1 %14, label LBL_4, label LBL_5
LBL_4:
%15 = add i64 %.reload48, 1
%16 = inttoptr i64 %15 to i8*
%17 = load i8, i8* %16, align 1
%18 = sext i8 %17 to i64
%19 = and i64 %18, 4294967295
%20 = call i64 @FUNC(i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
store i8 %17, i8* %.reg2mem
store i64 %15, i64* %.reg2mem47
store i64 %.reload48, i64* %sv_2.114.reg2mem
store i64 %.reload48, i64* %sv_2.1.lcssa.reg2mem
store i64 %15, i64* %.lcssa6.reg2mem
store i8 %17, i8* %.lcssa.reg2mem
br i1 %22, label LBL_7, label LBL_3
LBL_5:
%sv_2.114.reload = load i64, i64* %sv_2.114.reg2mem
%23 = add i64 %sv_2.114.reload, 2
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = icmp eq i8 %25, 45
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_4, label LBL_6
LBL_6:
%28 = add i64 %sv_2.114.reload, 3
%29 = inttoptr i64 %28 to i8*
%30 = load i8, i8* %29, align 1
%31 = icmp eq i8 %30, 62
%32 = icmp eq i1 %31, false
store i64 %sv_2.114.reload, i64* %sv_2.1.lcssa.reg2mem
store i64 %.reload48, i64* %.lcssa6.reg2mem
store i8 %.reload, i8* %.lcssa.reg2mem
br i1 %32, label LBL_4, label LBL_7
LBL_7:
%.lcssa.reload = load i8, i8* %.lcssa.reg2mem
%.lcssa6.reload = load i64, i64* %.lcssa6.reg2mem
%33 = icmp eq i8 %.lcssa.reload, 45
%34 = icmp eq i1 %33, false
store i64 %.lcssa6.reload, i64* %sv_2.4.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
br i1 %34, label LBL_25, label LBL_8
LBL_8:
%sv_2.1.lcssa.reload = load i64, i64* %sv_2.1.lcssa.reg2mem
%35 = add i64 %sv_2.1.lcssa.reload, 2
%36 = inttoptr i64 %35 to i8*
%37 = load i8, i8* %36, align 1
%38 = icmp eq i8 %37, 45
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_10, label LBL_9
LBL_9:
%40 = add i64 %sv_2.1.lcssa.reload, 3
%41 = inttoptr i64 %40 to i8*
%42 = load i8, i8* %41, align 1
%43 = icmp eq i8 %42, 62
br i1 %43, label LBL_11, label LBL_10
LBL_10:
call void @__assert_fail(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_1, i64 0, i64 0), i32 34, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0))
br label LBL_11
LBL_11:
%44 = add i64 %sv_2.1.lcssa.reload, 4
store i64 %44, i64* %sv_2.4.reg2mem
store i64 0, i64* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
br label LBL_25
LBL_12:
%45 = icmp eq i32 %3, 2
%46 = icmp eq i1 %45, false
store i64 %2, i64* %sv_2.2.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
store i64 %2, i64* %sv_2.3.reg2mem
br i1 %46, label LBL_15, label LBL_13
LBL_13:
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_2.2.reload = load i64, i64* %sv_2.2.reg2mem
%47 = add i64 %sv_2.2.reload, 1
%48 = inttoptr i64 %47 to i8*
%49 = load i8, i8* %48, align 1
%50 = icmp eq i8 %49, 60
%51 = zext i1 %50 to i32
%52 = add i32 %sv_0.1.reload, %51
%53 = icmp eq i8 %49, 62
%.neg = sext i1 %53 to i32
%54 = add i32 %52, %.neg
%55 = icmp slt i32 %54, 0
%56 = icmp eq i1 %55, false
store i64 %47, i64* %storemerge.reg2mem
br i1 %56, label LBL_14, label LBL_28
LBL_14:
%57 = sext i8 %49 to i64
%58 = and i64 %57, 4294967295
%59 = call i64 @FUNC(i64 %58)
%60 = trunc i64 %59 to i32
%61 = icmp eq i32 %60, 0
%62 = icmp eq i1 %61, false
store i64 %47, i64* %sv_2.2.reg2mem
store i32 %54, i32* %sv_0.1.reg2mem
store i64 %47, i64* %sv_2.4.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
store i32 %54, i32* %sv_0.2.reg2mem
br i1 %62, label LBL_13, label LBL_25
LBL_15:
%sv_2.3.reload = load i64, i64* %sv_2.3.reg2mem
%63 = add i64 %sv_2.3.reload, 1
%64 = inttoptr i64 %63 to i8*
%65 = load i8, i8* %64, align 1
switch i8 %65, label LBL_17 [
i8 32, label LBL_15.backedge
i8 9, label LBL_15.backedge
]
LBL_16:
store i64 %63, i64* %sv_2.3.reg2mem
br label LBL_15
LBL_17:
%66 = icmp eq i8 %65, 60
%67 = icmp eq i1 %66, false
br i1 %67, label LBL_24, label LBL_18
LBL_18:
%68 = add i64 %sv_2.3.reload, 2
%69 = inttoptr i64 %68 to i8*
%70 = load i8, i8* %69, align 1
%71 = icmp eq i8 %70, 33
%72 = icmp eq i1 %71, false
br i1 %72, label LBL_24, label LBL_19
LBL_19:
%73 = add i64 %sv_2.3.reload, 3
%74 = inttoptr i64 %73 to i8*
%75 = load i8, i8* %74, align 1
%76 = icmp eq i8 %75, 45
%77 = icmp eq i1 %76, false
br i1 %77, label LBL_24, label LBL_20
LBL_20:
%78 = add i64 %sv_2.3.reload, 4
%79 = inttoptr i64 %78 to i8*
%80 = load i8, i8* %79, align 1
%81 = icmp eq i8 %80, 45
%82 = icmp eq i1 %81, false
br i1 %82, label LBL_24, label LBL_21
LBL_21:
%83 = icmp eq i32 %3, 0
br i1 %83, label LBL_23, label LBL_22
LBL_22:
%84 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_3, i64 0, i64 0))
br label LBL_23
LBL_23:
%85 = add i64 %sv_2.3.reload, 5
store i64 %85, i64* %sv_2.4.reg2mem
store i64 1, i64* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
br label LBL_25
LBL_24:
%86 = sext i8 %65 to i64
%87 = and i64 %86, 4294967295
%88 = call i64 @FUNC(i64 %87)
%89 = trunc i64 %88 to i32
%90 = icmp eq i32 %89, 0
%91 = icmp eq i1 %90, false
store i64 %63, i64* %sv_2.4.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.1.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.2.reg2mem
store i64 %63, i64* %storemerge.reg2mem
br i1 %91, label LBL_28, label LBL_25
LBL_25:
%sv_0.2.reload = load i32, i32* %sv_0.2.reg2mem
%sv_1.1.reload = load i64, i64* %sv_1.1.reg2mem
%sv_2.4.reload = load i64, i64* %sv_2.4.reg2mem
%92 = inttoptr i64 %sv_2.4.reload to i8*
%93 = load i8, i8* %92, align 1
%94 = sext i8 %93 to i64
%95 = and i64 %94, 4294967295
%96 = call i64 @FUNC(i64 %95)
%97 = trunc i64 %96 to i32
%98 = icmp eq i32 %97, 0
%99 = icmp eq i1 %98, false
store i64 %sv_2.4.reload, i64* %sv_2.0.reg2mem
store i64 %sv_1.1.reload, i64* %sv_1.0.reg2mem
store i32 %sv_0.2.reload, i32* %sv_0.0.reg2mem
br i1 %99, label LBL_1, label LBL_26
LBL_26:
%100 = load i8, i8* %92, align 1
store i64 0, i64* %storemerge.reg2mem
store i64 0, i64* %storemerge.reg2mem
store i64 0, i64* %storemerge.reg2mem
switch i8 %100, label LBL_27 [
i8 0, label LBL_28
i8 10, label LBL_28
i8 13, label LBL_28
]
LBL_27:
%101 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_4, i64 0, i64 0))
store i64 0, i64* %storemerge.reg2mem
br label LBL_28
LBL_28:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %sv_2.4.reload, { 1, 0 }
uselistorder i64 %sv_2.3.reload, { 4, 3, 2, 1, 0 }
uselistorder i64 %47, { 1, 2, 0, 3 }
uselistorder i64 %sv_2.0.reload, { 0, 1, 3, 2 }
uselistorder i64 %sv_1.0.reload, { 2, 0, 1, 3 }
uselistorder i32 %sv_0.0.reload, { 3, 2, 4, 0, 1 }
uselistorder i64* %sv_2.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i8* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem47, { 2, 0, 1 }
uselistorder i64* %sv_2.114.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_2.2.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.1.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.3.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.4.reg2mem, { 0, 5, 4, 1, 2, 3 }
uselistorder i64* %sv_1.1.reg2mem, { 0, 5, 4, 1, 2, 3 }
uselistorder i32* %sv_0.2.reg2mem, { 0, 5, 4, 1, 2, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 4, 5, 6, 1, 2 }
uselistorder i64 (i64)* @cv_isprint, { 1, 0 }
uselistorder i64 (i8*)* @CV_PARSE_ERROR_CPP, { 1, 0 }
uselistorder i64 1, { 0, 2, 3, 4, 1 }
uselistorder i64 (i64)* @cv_isprint_or_tab, { 2, 1, 0 }
uselistorder i64 4294967295, { 3, 1, 2, 4, 0 }
uselistorder i1 false, { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0 }
uselistorder i32 0, { 2, 3, 4, 5, 6, 7, 1, 0 }
uselistorder label LBL_28, { 5, 2, 3, 4, 0, 1 }
uselistorder label LBL_25, { 1, 2, 0, 3, 4 }
uselistorder label LBL_15, { 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_7, { 1, 0, 2 }
uselistorder label LBL_4, { 2, 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | kobject_get_path_12838 | kobject_get_path | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
%4 = icmp eq i1 %3, false
store i64 0, i64* %rax.0.reg2mem
br i1 %4, label LBL_1, label LBL_3
LBL_1:
%5 = and i64 %arg2, 4294967295
%sext2 = mul i64 %1, 4294967296
%6 = ashr exact i64 %sext2, 32
%7 = call i64 @FUNC(i64 %6, i64 %5)
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_3
LBL_2:
%10 = call i64 @FUNC(i64 %0, i64 %7, i32 %2)
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* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder label LBL_3, { 2, 0, 1 }
} | 1 |
BinRealVul | saa7134_video_fini_13222 | saa7134_video_fini | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = add i64 %0, 8
%2 = call i64 @FUNC(i64 %0, i64 %1)
%3 = add i64 %0, 16
%4 = call i64 @FUNC(i64 %0, i64 %3)
%5 = add i64 %0, 24
%6 = call i64 @FUNC(i64 %5)
%7 = call i64 @FUNC(i64 %0)
%8 = trunc i64 %7 to i32
%9 = icmp eq i32 %8, 0
store i64 %7, i64* %rax.0.reg2mem
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = add i64 %0, 32
%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, { 0, 1, 2, 5, 3, 6, 4 }
uselistorder i64 (i64)* @v4l2_ctrl_handler_free, { 1, 0 }
uselistorder i64 (i64, i64)* @saa7134_pgtable_free, { 1, 0 }
} | 1 |
BinRealVul | parseCertFields_18861 | parseCertFields | define i64 @FUNC(i64* %arg1, i8* %arg2, i8* %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%sv_0.1.reg2mem = alloca i64
%.pre-phi.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_2 = alloca i64, align 8
%2 = ptrtoint i8* %arg3 to i64
%3 = ptrtoint i8* %arg2 to i64
store i64 %0, i64* %sv_1.0.reg2mem
store i64 %0, i64* %sv_0.0.reg2mem
br label LBL_1
LBL_1:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%4 = inttoptr i64 %sv_1.0.reload to i8*
%5 = load i8, i8* %4, align 1
%6 = icmp ne i8 %5, 47
%7 = icmp eq i8 %5, 0
%8 = icmp eq i1 %7, false
%or.cond = icmp eq i1 %6, %8
br i1 %or.cond, label LBL_1.LBL_4_crit_edge, label LBL_3
LBL_2:
%.pre = add i64 %sv_1.0.reload, 1
store i64 %.pre, i64* %.pre-phi.reg2mem
store i64 %sv_0.0.reload, i64* %sv_0.1.reg2mem
br label LBL_4
LBL_3:
store i8 0, i8* %4, align 1
%9 = call i64 @FUNC(i64 %sv_0.0.reload, i64* nonnull @gv_0, i64* nonnull %sv_2)
%10 = call i64 @FUNC(i64 %9, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0))
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = load i64, i64* %sv_2, align 8
%14 = select i1 %12, i64 %9, i64 ptrtoint ([6 x i8]* @gv_2 to i64)
%15 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_3, i64 0, i64 0), i64 %3, i64 %2, i64 %14, i64 %13)
%16 = add i64 %sv_1.0.reload, 1
store i8 %5, i8* %4, align 1
store i64 %16, i64* %.pre-phi.reg2mem
store i64 %16, i64* %sv_0.1.reg2mem
br label LBL_4
LBL_4:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem
store i64 %.pre-phi.reload, i64* %sv_1.0.reg2mem
store i64 %sv_0.1.reload, i64* %sv_0.0.reg2mem
br i1 %8, label LBL_1, label LBL_5
LBL_5:
%17 = zext i8 %5 to i64
ret i64 %17
uselistorder i1 %8, { 1, 0 }
uselistorder i8 %5, { 0, 2, 1, 3 }
uselistorder i64 %sv_1.0.reload, { 1, 2, 0 }
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64* %sv_2, { 1, 0 }
uselistorder i64* %sv_1.0.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_0.0.reg2mem, { 1, 0, 2 }
uselistorder i32 0, { 1, 2, 0 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i8 0, { 1, 0, 2, 3, 4 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | ossl_a2ucompare_12068 | ossl_a2ucompare | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0 = alloca i64, align 8
%sv_1 = alloca i64, align 8
store i64 256, i64* %sv_1, align 8
%0 = call i64 @FUNC(i64 %arg1, i64* nonnull %sv_0, i64* nonnull %sv_1)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
%3 = icmp slt i32 %1, 0
%4 = icmp eq i1 %3, false
%5 = icmp eq i1 %2, false
%6 = icmp eq i1 %4, %5
store i64 4294967295, i64* %storemerge.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%7 = bitcast i64* %sv_0 to i8*
%8 = inttoptr i64 %arg2 to i8*
%9 = call i32 @strcmp(i8* nonnull %7, i8* %8)
%10 = icmp eq i32 %9, 0
%11 = icmp eq i1 %10, false
%12 = zext i1 %11 to i64
store i64 %12, i64* %storemerge.reg2mem
br label LBL_2
LBL_2:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i32 %1, { 1, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 2, 0 }
uselistorder i32 1, { 3, 2, 0, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | red_channel_client_pre_create_validate_8844 | red_channel_client_pre_create_validate | define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i32* %arg1 to i64
%5 = add i64 %4, 4
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* %6, align 4
%8 = ptrtoint i32* %arg2 to i64
%9 = and i64 %3, 4294967295
%10 = call i64 @FUNC(i64 %8, i64 %9, i32 %7)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %12, label LBL_2, label LBL_1
LBL_1:
%13 = trunc i64 %3 to i32
%14 = load i32, i32* %6, align 4
%15 = call i64 @FUNC(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @gv_0, i64 0, i64 0), i64 %8, i32 %13, i32 %14, i64 %2, 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* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | um_new_card_3902 | um_new_card | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i8*
%rax.0.reg2mem = alloca i64
%1 = load i8*, i8** %0
%sv_0 = alloca i32, align 4
%2 = call i64 @FUNC(i64 0, i64 32)
%3 = icmp eq i64 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = call i64 @FUNC(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0))
store i64 %5, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%6 = ptrtoint i64* %arg1 to i64
%7 = inttoptr i64 %2 to i64*
store i64 0, i64* %7, align 8
store i32 0, i32* %sv_0, align 4
%8 = ptrtoint i8* %1 to i64
%9 = trunc i64 %8 to i32
%10 = add i64 %2, 8
%11 = inttoptr i64 %10 to i32*
store i32 %9, i32* %11, align 4
%12 = and i64 %8, 4294967295
%13 = call i64 @FUNC(i64 %6, 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_4, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64* nonnull @gv_1, i32* nonnull %sv_0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0))
%18 = add i64 %2, 16
%19 = call i64 @FUNC(i64 %18, i64* nonnull @gv_3)
%20 = call i64 @FUNC(i64* nonnull @gv_1, i32* nonnull %sv_0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0))
store i64 %20, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%21 = call i64 @FUNC(i8* %1)
%22 = call i64 @FUNC(i64 0, i64 %2)
store i64 %22, 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 %2, { 1, 0, 2, 3, 4 }
uselistorder i8* %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 (i8*)* @DBG_ERR, { 1, 0 }
} | 0 |
BinRealVul | do_POWER_divo_14439 | do_POWER_divo | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = load i32, i32* @gv_0, align 4
%1 = icmp ne i32 %0, -2147483648
%2 = load i32, i32* bitcast (i128* @gv_1 to i32*), align 8
%3 = icmp ne i32 %2, -1
%or.cond.not = or i1 %1, %3
%4 = icmp eq i32 %2, 0
%5 = icmp eq i1 %4, false
%or.cond5 = icmp eq i1 %or.cond.not, %5
%6 = load i64, i64* @gv_2, align 8
br i1 %or.cond5, label LBL_2, label LBL_1
LBL_1:
%7 = ashr i64 %6, 31
%8 = sub nsw i64 0, %7
store i64 %8, i64* @gv_2, align 8
%9 = load i64, i64* @gv_3, align 8
%10 = inttoptr i64 %9 to i64*
store i64 0, i64* %10, align 8
store i32 1, i32* bitcast (i64* @gv_4 to i32*), align 8
store i32 1, i32* inttoptr (i64 4210780 to i32*), align 4
store i64 %9, i64* %rax.0.reg2mem
br label LBL_6
LBL_2:
%11 = mul i64 %6, 4294967296
%12 = load i64, i64* @gv_3, align 8
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = or i64 %14, %11
%16 = load i32, i32* bitcast (i128* @gv_5 to i32*), align 8
%17 = sext i32 %16 to i64
%18 = urem i64 %15, %17
store i64 %18, i64* %13, align 8
%19 = load i32, i32* bitcast (i128* @gv_1 to i32*), align 8
%20 = sext i32 %19 to i64
%21 = udiv i64 %15, %20
%.off = add i64 %21, 2147483648
%22 = icmp ult i64 %.off, 4294967296
br i1 %22, label LBL_4, label LBL_3
LBL_3:
store i32 1, i32* bitcast (i64* @gv_4 to i32*), align 8
store i32 1, i32* bitcast (i64* @gv_6 to i32*), align 8
br label LBL_5
LBL_4:
store i32 0, i32* bitcast (i64* @gv_4 to i32*), align 8
br label LBL_5
LBL_5:
store i64 %21, i64* @gv_2, align 8
store i64 %21, 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 %21, { 0, 2, 1 }
uselistorder i64 4294967296, { 1, 0 }
} | 1 |
BinRealVul | get_video_clock_17180 | get_video_clock | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i128
%1 = alloca i64
%rax.0.reg2mem = alloca i64
%2 = load i64, i64* %1
%3 = load i128, i128* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = trunc i64 %2 to i32
%6 = icmp eq i32 %5, 0
%7 = add i64 %4, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = call i128 @FUNC(i64 %9)
store i64 %4, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_2
LBL_1:
%11 = call i64 @__asm_movsd.1(i128 %10)
%12 = call i64 @FUNC()
%13 = add i64 %4, 16
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = sub i64 %12, %15
%17 = call i128 @FUNC(i128 %3, i128 %3)
%18 = call i128 @FUNC(i64 %16)
%19 = call i128 @FUNC(i64 4696837146684686336)
%20 = call i128 @FUNC(i128 %18, i128 %19)
%21 = call i128 @FUNC(i128 %20, i64 %11)
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 %4, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | qeth_free_qdio_buffers_4900 | qeth_free_qdio_buffers | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.lcssa.reg2mem = alloca i64
%storemerge4.reg2mem = alloca i32
%.reg2mem16 = alloca i64
%.reg2mem14 = alloca i64
%.reg2mem12 = alloca i64
%indvars.iv.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0, i64 0)
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 0
store i64 %1, i64* %rax.0.reg2mem
br i1 %3, label LBL_9, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i64 %0)
%5 = add i64 %0, 32
%6 = call i64 @FUNC(i64 %5)
%7 = add i64 %0, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
store i64 %9, i64* %.reg2mem
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_2
LBL_2:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%.reload = load i64, i64* %.reg2mem
%10 = mul i64 %indvars.iv.reload, 8
%11 = add i64 %10, %.reload
%12 = inttoptr i64 %11 to i64*
%13 = load i64, i64* %12, align 8
%14 = icmp eq i64 %13, 0
store i64 %.reload, i64* %.reg2mem12
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%15 = call i64 @FUNC(i64 %13)
%.pre = load i64, i64* %8, align 8
store i64 %.pre, i64* %.reg2mem12
br label LBL_4
LBL_4:
%.reload13 = load i64, i64* %.reg2mem12
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 128
store i64 %.reload13, i64* %.reg2mem
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_5, label LBL_2
LBL_5:
%16 = call i64 @FUNC(i64 %.reload13)
store i64 0, i64* %8, align 8
%17 = call i64 @FUNC(i64 %0)
%18 = add i64 %0, 16
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = icmp eq i64 %20, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %21, label LBL_9, label LBL_6
LBL_6:
%22 = add i64 %0, 24
%23 = inttoptr i64 %22 to i32*
%24 = load i32, i32* %23, align 4
%25 = icmp eq i32 %24, 0
store i64 %20, i64* %.reg2mem14
store i64 0, i64* %.reg2mem16
store i32 0, i32* %storemerge4.reg2mem
store i64 %20, i64* %.lcssa.reg2mem
br i1 %25, label LBL_8, label LBL_7
LBL_7:
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%.reload17 = load i64, i64* %.reg2mem16
%.reload15 = load i64, i64* %.reg2mem14
%26 = mul i64 %.reload17, 8
%27 = add i64 %26, %.reload15
%28 = inttoptr i64 %27 to i64*
%29 = load i64, i64* %28, align 8
%30 = call i64 @FUNC(i64 %29, i64 1)
%31 = load i64, i64* %19, align 8
%32 = add i64 %31, %26
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34)
%36 = add i32 %storemerge4.reload, 1
%37 = load i32, i32* %23, align 4
%38 = zext i32 %37 to i64
%39 = sext i32 %36 to i64
%40 = icmp slt i64 %39, %38
%41 = load i64, i64* %19, align 8
store i64 %41, i64* %.reg2mem14
store i64 %39, i64* %.reg2mem16
store i32 %36, i32* %storemerge4.reg2mem
store i64 %41, i64* %.lcssa.reg2mem
br i1 %40, label LBL_7, label LBL_8
LBL_8:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%42 = call i64 @FUNC(i64 %.lcssa.reload)
store i64 0, i64* %19, align 8
store i64 %0, i64* %rax.0.reg2mem
br label LBL_9
LBL_9:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %26, { 1, 0 }
uselistorder i32* %23, { 1, 0 }
uselistorder i64* %19, { 2, 1, 0, 3 }
uselistorder i64* %8, { 1, 0, 2 }
uselistorder i64 %0, { 0, 1, 3, 2, 4, 6, 5, 7 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem12, { 0, 2, 1 }
uselistorder i64* %.reg2mem14, { 2, 0, 1 }
uselistorder i64* %.reg2mem16, { 2, 0, 1 }
uselistorder i32* %storemerge4.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64)* @kfree, { 1, 2, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder label LBL_9, { 1, 2, 0 }
uselistorder label LBL_7, { 1, 0 }
} | 0 |
BinRealVul | audio_sample_entry_Write_9052 | audio_sample_entry_Write | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = ptrtoint i64* %arg1 to i64
%2 = call i64 @FUNC(i64 %1, i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = and i64 %2, 4294967295
store i64 %5, i64* %rax.0.reg2mem
br label LBL_12
LBL_2:
%6 = call i64 @FUNC(i64 %1, i64 %0)
%7 = icmp eq i64* %arg1, null
br i1 %7, label LBL_5, label LBL_3
LBL_3:
%8 = call i64 @FUNC(i64 %1, i64 %0)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_5, label LBL_4
LBL_4:
%11 = and i64 %8, 4294967295
store i64 %11, i64* %rax.0.reg2mem
br label LBL_12
LBL_5:
%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_8, label LBL_6
LBL_6:
%16 = call i64 @FUNC(i64 %14, i64 %0)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
br i1 %18, label LBL_8, label LBL_7
LBL_7:
%19 = and i64 %16, 4294967295
store i64 %19, i64* %rax.0.reg2mem
br label LBL_12
LBL_8:
%20 = add i64 %1, 16
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = icmp eq i64 %22, 0
br i1 %23, label LBL_11, label LBL_9
LBL_9:
%24 = call i64 @FUNC(i64 %22, i64 %0)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
br i1 %26, label LBL_11, label LBL_10
LBL_10:
%27 = and i64 %24, 4294967295
store i64 %27, i64* %rax.0.reg2mem
br label LBL_12
LBL_11:
%28 = add i64 %1, 24
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %1, i64 %30, i64 %0)
store i64 %31, i64* %rax.0.reg2mem
br label LBL_12
LBL_12:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 1, 2, 3, 4, 0, 5, 6 }
uselistorder i64 %0, { 3, 2, 1, 0, 4, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 5, 4, 3, 2, 1 }
uselistorder i64 (i64, i64)* @gf_isom_box_write, { 2, 1, 0 }
} | 0 |
BinRealVul | set_next_tick_14428 | set_next_tick | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = call i64 @FUNC(i64 %5)
%7 = trunc i64 %1 to i32
%8 = add i32 %7, 1
%9 = udiv i32 1000, %8
%10 = load i64, i64* @gv_0, align 8
%11 = call i64 @FUNC(i64 %10)
%12 = load i32, i32* inttoptr (i64 4210716 to i32*), align 4
%13 = udiv i32 %12, %9
%14 = trunc i64 %11 to i32
%15 = add i32 %13, %14
%16 = add i64 %2, 16
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = zext i32 %15 to i64
%20 = call i64 @FUNC(i64 %18, i64 %19)
ret i64 %20
} | 1 |
BinRealVul | sysbus_get_fw_dev_path_1959 | sysbus_get_fw_dev_path | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %2)
%9 = inttoptr i64 %8 to i8*
%10 = trunc i64 %7 to i32
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i8* %9, i32 %10)
%12 = sext i32 %11 to i64
store i64 %12, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%13 = add i64 %2, 16
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label LBL_4, label LBL_3
LBL_3:
%17 = add i64 %2, 20
%18 = inttoptr i64 %17 to i16*
%19 = load i16, i16* %18, align 2
%20 = call i64 @FUNC(i64 %2)
%21 = zext i16 %19 to i32
%22 = inttoptr i64 %20 to i8*
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_1, i64 0, i64 0), i8* %22, i32 %21)
%24 = sext i32 %23 to i64
store i64 %24, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%25 = call i64 @FUNC(i64 %2)
%26 = inttoptr i64 %25 to i8*
%27 = call i8* @strdup(i8* %26)
%28 = ptrtoint i8* %27 to i64
store i64 %28, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 2, 1, 3, 4, 0, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64)* @qdev_fw_name, { 2, 1, 0 }
} | 0 |
BinRealVul | addrrange_intersects_14941 | addrrange_intersects | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%storemerge.reg2mem = alloca i64
%1 = load i32, i32* %0
%2 = load i32, i32* %0
%3 = and i64 %arg1, 4294967295
%4 = and i64 %arg2, 4294967295
%5 = icmp ult i64 %3, %4
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = trunc i64 %arg2 to i32
%7 = add i32 %2, %6
%8 = zext i32 %7 to i64
%9 = icmp ult i64 %3, %8
store i64 1, i64* %storemerge.reg2mem
br i1 %9, label LBL_5, label LBL_2
LBL_2:
%10 = icmp ult i64 %4, %3
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = trunc i64 %arg1 to i32
%12 = add i32 %1, %11
%13 = zext i32 %12 to i64
%14 = icmp ult i64 %4, %13
store i64 1, i64* %storemerge.reg2mem
br i1 %14, label LBL_5, label LBL_4
LBL_4:
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %4, { 1, 0, 2 }
uselistorder i64 %3, { 1, 0, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %0, { 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_5, { 2, 1, 0 }
} | 1 |
BinRealVul | do_cvttq_526 | do_cvttq | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.1.reg2mem = alloca i32
%sv_1.3.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%sv_1.2.reg2mem = alloca i64
%sv_1.19.reg2mem = alloca i64
%storemerge310.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = lshr i64 %arg2, 63
%3 = udiv i64 %arg2, 4503599627370496
%4 = trunc i64 %3 to i32
%5 = urem i32 %4, 2048
%6 = and i64 %arg2, 4503599627370495
%7 = icmp eq i32 %5, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_2, label LBL_1
LBL_1:
%9 = trunc i64 %1 to i32
%10 = icmp eq i64 %6, 0
%11 = icmp eq i1 %10, false
%12 = icmp eq i32 %9, 0
%13 = icmp eq i1 %11, %12
store i64 1, i64* %storemerge310.reg2mem
store i64 0, i64* %sv_1.19.reg2mem
store i64 0, i64* %sv_1.3.reg2mem
store i32 0, i32* %sv_0.1.reg2mem
br i1 %13, label LBL_9, label LBL_18
LBL_2:
%14 = icmp eq i32 %5, 2047
%15 = icmp eq i1 %14, false
store i64 0, i64* %sv_1.3.reg2mem
store i32 1, i32* %sv_0.1.reg2mem
br i1 %15, label LBL_3, label LBL_18
LBL_3:
%16 = or i64 %6, 4503599627370496
%17 = add nsw i32 %5, -1075
%18 = icmp slt i32 %17, 0
br i1 %18, label LBL_7, label LBL_4
LBL_4:
%19 = icmp sgt i32 %17, 63
store i64 0, i64* %sv_1.0.reg2mem
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = urem i32 %17, 64
%21 = zext i32 %20 to i64
%storemerge = shl i64 %16, %21
store i64 %storemerge, i64* %sv_1.0.reg2mem
br label LBL_6
LBL_6:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%22 = icmp slt i32 %17, 11
%23 = icmp eq i64 %arg2, -4332462841530417152
%or.cond = or i1 %23, %22
%spec.select = select i1 %or.cond, i32 0, i32 6
store i64 %sv_1.0.reload, i64* %sv_1.2.reg2mem
store i32 %spec.select, i32* %sv_0.0.reg2mem
br label LBL_17
LBL_7:
%24 = sub nsw i32 1075, %5
%25 = icmp sgt i32 %24, 62
store i64 1, i64* %storemerge310.reg2mem
store i64 0, i64* %sv_1.19.reg2mem
br i1 %25, label LBL_9, label LBL_8
LBL_8:
%26 = urem i32 %24, 64
%27 = zext i32 %26 to i64
%storemerge1 = lshr i64 %16, %27
%28 = sub nsw i32 0, %24
%29 = urem i32 %28, 64
%30 = zext i32 %29 to i64
%storemerge2 = shl i64 %16, %30
%31 = icmp eq i64 %storemerge2, 0
store i64 %storemerge2, i64* %storemerge310.reg2mem
store i64 %storemerge1, i64* %sv_1.19.reg2mem
store i64 %storemerge1, i64* %sv_1.2.reg2mem
store i32 0, i32* %sv_0.0.reg2mem
br i1 %31, label LBL_17, label LBL_9
LBL_9:
%sv_1.19.reload = load i64, i64* %sv_1.19.reg2mem
%32 = icmp eq i32 %arg3, 3
br i1 %32, label LBL_16, label LBL_10
LBL_10:
%33 = icmp sgt i32 %arg3, 3
store i64 %sv_1.19.reload, i64* %sv_1.2.reg2mem
store i32 4, i32* %sv_0.0.reg2mem
br i1 %33, label LBL_17, label LBL_11
LBL_11:
store i64 %sv_1.19.reload, i64* %sv_1.2.reg2mem
store i32 4, i32* %sv_0.0.reg2mem
switch i32 %arg3, label LBL_17 [
i32 2, label LBL_15
i32 0, label LBL_12
]
LBL_12:
%storemerge310.reload = load i64, i64* %storemerge310.reg2mem
%34 = icmp eq i64 %storemerge310.reload, -9223372036854775808
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_14, label LBL_13
LBL_13:
%36 = add i64 %sv_1.19.reload, 1
%37 = and i64 %36, -2
store i64 %37, i64* %sv_1.2.reg2mem
store i32 4, i32* %sv_0.0.reg2mem
br label LBL_17
LBL_14:
%38 = icmp slt i64 %storemerge310.reload, 0
%39 = zext i1 %38 to i64
%spec.select7 = add i64 %sv_1.19.reload, %39
store i64 %spec.select7, i64* %sv_1.2.reg2mem
store i32 4, i32* %sv_0.0.reg2mem
br label LBL_17
LBL_15:
%40 = xor i64 %2, 1
%41 = add i64 %sv_1.19.reload, %40
store i64 %41, i64* %sv_1.2.reg2mem
store i32 4, i32* %sv_0.0.reg2mem
br label LBL_17
LBL_16:
%42 = add i64 %sv_1.19.reload, %2
store i64 %42, i64* %sv_1.2.reg2mem
store i32 4, i32* %sv_0.0.reg2mem
br label LBL_17
LBL_17:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.2.reload = load i64, i64* %sv_1.2.reg2mem
%43 = icmp eq i64 %2, 0
%44 = sub i64 0, %sv_1.2.reload
%spec.select8 = select i1 %43, i64 %sv_1.2.reload, i64 %44
store i64 %spec.select8, i64* %sv_1.3.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem
br label LBL_18
LBL_18:
%45 = ptrtoint i64* %arg1 to i64
%sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem
%sv_1.3.reload = load i64, i64* %sv_1.3.reg2mem
%46 = add i64 %45, 4
%47 = inttoptr i64 %46 to i32*
store i32 %sv_0.1.reload, i32* %47, align 4
ret i64 %sv_1.3.reload
uselistorder i64 %sv_1.2.reload, { 1, 0 }
uselistorder i64 %storemerge310.reload, { 1, 0 }
uselistorder i64 %sv_1.19.reload, { 4, 3, 5, 2, 0, 1 }
uselistorder i32 %24, { 2, 0, 1 }
uselistorder i32 %17, { 1, 0, 2, 3 }
uselistorder i64 %6, { 1, 0 }
uselistorder i32 %5, { 3, 2, 1, 0 }
uselistorder i64 %2, { 1, 0, 2 }
uselistorder i64* %storemerge310.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_1.19.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_1.2.reg2mem, { 0, 7, 5, 1, 4, 2, 6, 8, 3 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 7, 5, 1, 4, 2, 6, 8, 3 }
uselistorder i32 4, { 5, 3, 0, 2, 1, 4 }
uselistorder i32 3, { 1, 0 }
uselistorder i64 1, { 2, 3, 1, 0 }
uselistorder i64 4503599627370496, { 1, 0 }
uselistorder i32 %arg3, { 0, 2, 1 }
uselistorder i64 %arg2, { 1, 2, 0, 3 }
uselistorder label LBL_18, { 1, 2, 0 }
uselistorder label LBL_17, { 4, 5, 0, 3, 2, 6, 7, 1 }
uselistorder label LBL_9, { 2, 1, 0 }
} | 0 |
BinRealVul | cib_ha_peer_callback_18004 | cib_ha_peer_callback | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 0, i64 %0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_0, i64 0, i64 0))
%2 = call i64 @FUNC(i64 %1, i64 %arg2)
ret i64 %2
} | 1 |
BinRealVul | set_max_drc_9819 | set_max_drc | 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 = call i64 @FUNC()
%5 = udiv i64 %4, 1024
%6 = mul i64 %5, 4096
store i64 %6, i64* @gv_0, align 8
store i64 0, i64* @gv_1, align 8
%7 = call i64 @FUNC(i64* nonnull @gv_2)
%8 = load i64, i64* @gv_0, align 8
%9 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_4, i64 0, i64 0), i64 %8, i64 %3, i64 %2, i64 %1)
ret i64 %9
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 1024, { 1, 0 }
uselistorder i32 1, { 3, 4, 2, 0, 1 }
} | 0 |
BinRealVul | ff_simple_idct84_add_14446 | ff_simple_idct84_add | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%indvars.iv.reg2mem = alloca i64
%indvars.iv5.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
store i64 0, i64* %indvars.iv5.reg2mem
br label LBL_1
LBL_1:
%indvars.iv5.reload = load i64, i64* %indvars.iv5.reg2mem
%1 = mul i64 %indvars.iv5.reload, 16
%2 = add i64 %1, %0
%3 = call i64 @FUNC(i64 %2)
%indvars.iv.next6 = add nuw nsw i64 %indvars.iv5.reload, 1
%exitcond7 = icmp eq i64 %indvars.iv.next6, 4
store i64 %indvars.iv.next6, i64* %indvars.iv5.reg2mem
br i1 %exitcond7, label LBL_2, label LBL_1
LBL_2:
%4 = ptrtoint i64* %arg1 to i64
%5 = and i64 %arg2, 4294967295
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%6 = mul i64 %indvars.iv.reload, 2
%7 = add i64 %6, %0
%8 = add i64 %indvars.iv.reload, %4
%9 = call i64 @FUNC(i64 %8, i64 %5, i64 %7)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 8
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_4, label LBL_3
LBL_4:
ret i64 %9
uselistorder i64* %indvars.iv5.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 1, { 1, 0 }
} | 1 |
BinRealVul | ntlm_print_negotiate_flags_12812 | ntlm_print_negotiate_flags | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%sext = mul i64 %arg1, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i32 %0)
%3 = trunc i64 %1 to i32
store i64 31, i64* %indvars.iv.reg2mem
br label LBL_1
LBL_1:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%4 = icmp eq i64 %indvars.iv.reload, 0
%5 = trunc i64 %indvars.iv.reload to i32
%6 = lshr i32 %3, %5
%7 = zext i32 %6 to i64
%storemerge = select i1 %4, i64 %1, i64 %7
%8 = urem i64 %storemerge, 2
%9 = icmp eq i64 %8, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%10 = sub nuw nsw i64 31, %indvars.iv.reload
%11 = mul i64 %10, 8
%12 = add i64 %11, ptrtoint ([33 x i8*]* @gv_1 to i64)
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = inttoptr i64 %14 to i8*
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0), i8* %15, i64 %10)
%17 = sext i32 %16 to i64
store i64 %17, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.next = add nsw i64 %indvars.iv.reload, -1
%18 = icmp eq i64 %indvars.iv.reload, 0
%19 = icmp eq i1 %18, false
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %19, label LBL_1, label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %10, { 1, 0 }
uselistorder i64 %indvars.iv.reload, { 4, 0, 1, 2, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64 31, { 1, 0 }
uselistorder i32 (i8*, ...)* @printf, { 1, 0 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | server_request_free_answers_18561 | server_request_free_answers | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge12.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%storemerge3.reg2mem = alloca i32
%0 = ptrtoint i64* %arg1 to i64
store i32 0, i32* %storemerge3.reg2mem
br label LBL_1
LBL_1:
%storemerge3.reload = load i32, i32* %storemerge3.reg2mem
%1 = icmp eq i32 %storemerge3.reload, 0
%2 = icmp eq i1 %1, false
store i64 %0, i64* %sv_0.0.reg2mem
br i1 %2, label LBL_2, label LBL_3
LBL_2:
%3 = icmp eq i32 %storemerge3.reload, 1
%4 = icmp eq i1 %3, false
%spec.select.v = select i1 %4, i64 16, i64 8
%spec.select = add i64 %spec.select.v, %0
store i64 %spec.select, i64* %sv_0.0.reg2mem
br label LBL_3
LBL_3:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%5 = inttoptr i64 %sv_0.0.reload to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
store i64 %6, i64* %storemerge12.reg2mem
br i1 %8, label LBL_4, label LBL_7
LBL_4:
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%9 = add i64 %storemerge12.reload, 16
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %storemerge12.reload to i64*
%13 = load i64, i64* %12, align 8
%14 = inttoptr i64 %13 to i64*
call void @free(i64* %14)
%15 = add i64 %storemerge12.reload, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = icmp eq i64 %17, 0
br i1 %18, label LBL_6, label LBL_5
LBL_5:
%19 = inttoptr i64 %17 to i64*
call void @free(i64* %19)
br label LBL_6
LBL_6:
%20 = icmp eq i64 %11, 0
%21 = icmp eq i1 %20, false
store i64 %11, i64* %storemerge12.reg2mem
br i1 %21, label LBL_4, label LBL_7
LBL_7:
store i64 0, i64* %5, align 8
%22 = add nuw nsw i32 %storemerge3.reload, 1
%exitcond = icmp eq i32 %22, 3
store i32 %22, i32* %storemerge3.reg2mem
br i1 %exitcond, label LBL_8, label LBL_1
LBL_8:
ret i64 %sv_0.0.reload
uselistorder i64 %storemerge12.reload, { 0, 2, 1 }
uselistorder i64 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %0, { 1, 0 }
uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 16, { 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 1 |
BinRealVul | nfs4_create_server_11451 | nfs4_create_server | define i64 @FUNC(i64* %arg1, i8* %arg2, i64* %arg3, i8* %arg4, i8* %arg5, i64 %arg6, i32* %arg7) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%rcx.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i8* %arg5 to i64
%3 = ptrtoint i8* %arg4 to i64
%4 = ptrtoint i64* %arg3 to i64
%5 = ptrtoint i8* %arg2 to i64
%sv_1 = alloca i64, align 8
%6 = call i64 @FUNC(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_0, i64 0, i64 0), i64 %5, i64 %4, i64 %3, i64 %2, i64 %arg6)
%7 = call i64 @FUNC()
store i64 %7, i64* %sv_1, align 8
%8 = icmp eq i64 %7, 0
%9 = icmp eq i1 %8, false
store i64 -12, i64* %rax.0.reg2mem
br i1 %9, label LBL_1, label LBL_20
LBL_1:
%sext = mul i64 %arg6, 4294967296
%10 = ashr exact i64 %sext, 32
%11 = trunc i64 %1 to i32
%12 = and i64 %1, 4294967295
%13 = and i64 %10, 4294967295
%14 = call i64 @FUNC(i64 %7, i64 %5, i64 %4, i64 %2, i64 %13, i32 %11)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %15, 0
store i64 %7, i64* %.reg2mem
store i32 %15, i32* %sv_0.0.reg2mem
store i64 %2, i64* %rcx.0.reg2mem
store i64 %4, i64* %rdx.0.reg2mem
br i1 %16, label LBL_19, label LBL_2
LBL_2:
%17 = ptrtoint i64* %arg1 to i64
%18 = trunc i64 %10 to i32
%19 = call i64 @FUNC(i64 %7, i64 %17, i32 %18)
%20 = trunc i64 %19 to i32
%21 = icmp slt i32 %20, 0
store i64 %7, i64* %.reg2mem
store i32 %20, i32* %sv_0.0.reg2mem
store i64 %17, i64* %rcx.0.reg2mem
store i64 %13, i64* %rdx.0.reg2mem
br i1 %21, label LBL_19, label LBL_3
LBL_3:
%22 = inttoptr i64 %7 to i64*
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_5, label LBL_4
LBL_4:
call void @abort()
unreachable
LBL_5:
%26 = inttoptr i64 %23 to i64*
%27 = load i64, i64* %26, align 8
%28 = icmp eq i64 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_7, label LBL_6
LBL_6:
call void @abort()
unreachable
LBL_7:
%30 = inttoptr i64 %27 to i64*
%31 = load i64, i64* %30, align 8
%32 = icmp eq i64 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_9, label LBL_8
LBL_8:
call void @abort()
unreachable
LBL_9:
%34 = ptrtoint i32* %arg7 to i64
%35 = call i64 @FUNC(i64 %7, i64 %34, i64 %3)
%36 = trunc i64 %35 to i32
%37 = icmp slt i32 %36, 0
store i64 %7, i64* %.reg2mem
store i32 %36, i32* %sv_0.0.reg2mem
store i64 %17, i64* %rcx.0.reg2mem
store i64 %3, i64* %rdx.0.reg2mem
br i1 %37, label LBL_19, label LBL_10
LBL_10:
%38 = add i64 %7, 16
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = add i64 %7, 8
%42 = inttoptr i64 %41 to i64*
%43 = load i64, i64* %42, align 8
%44 = call i64 @FUNC(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_1, i64 0, i64 0), i64 %43, i64 %40, i64 %17, i64 %13, i64 %12)
%45 = load i32, i32* %arg7, align 4
%46 = zext i32 %45 to i64
%47 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_2, i64 0, i64 0), i64 %46, i64 %40, i64 %17, i64 %13, i64 %12)
%48 = call i64 @FUNC(i64 %7, i64 %34, i64* nonnull %sv_1)
%49 = trunc i64 %48 to i32
%50 = icmp slt i32 %49, 0
br i1 %50, label LBL_10.LBL_19_crit_edge, label LBL_12
LBL_11:
%51 = ptrtoint i64* %sv_1 to i64
%.pre = load i64, i64* %sv_1, align 8
store i64 %.pre, i64* %.reg2mem
store i32 %49, i32* %sv_0.0.reg2mem
store i64 %17, i64* %rcx.0.reg2mem
store i64 %51, i64* %rdx.0.reg2mem
br label LBL_19
LBL_12:
%52 = load i64, i64* %sv_1, align 8
%53 = inttoptr i64 %52 to i64*
%54 = load i64, i64* %53, align 8
%55 = icmp eq i64 %54, 0
%56 = icmp eq i1 %55, false
br i1 %56, label LBL_14, label LBL_13
LBL_13:
call void @abort()
unreachable
LBL_14:
%57 = inttoptr i64 %54 to i64*
%58 = load i64, i64* %57, align 8
%59 = icmp eq i64 %58, 0
%60 = icmp eq i1 %59, false
br i1 %60, label LBL_16, label LBL_15
LBL_15:
call void @abort()
unreachable
LBL_16:
%61 = inttoptr i64 %58 to i64*
%62 = load i64, i64* %61, align 8
%63 = icmp eq i64 %62, 0
%64 = icmp eq i1 %63, false
br i1 %64, label LBL_18, label LBL_17
LBL_17:
call void @abort()
unreachable
LBL_18:
%65 = call i64 @FUNC(i64* nonnull @gv_3)
%66 = call i64 @FUNC(i64* nonnull @gv_3)
%67 = load i32, i32* @gv_4, align 4
%68 = zext i32 %67 to i64
%69 = load i64, i64* %sv_1, align 8
%70 = add i64 %69, 24
%71 = inttoptr i64 %70 to i32*
store i32 %67, i32* %71, align 4
%72 = load i64, i64* %sv_1, align 8
%73 = call i64 @FUNC(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @gv_5, i64 0, i64 0), i64 %72, i64 %68, i64 %17, i64 %13, i64 %12)
%74 = load i64, i64* %sv_1, align 8
store i64 %74, i64* %rax.0.reg2mem
br label LBL_20
LBL_19:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%rcx.0.reload = load i64, i64* %rcx.0.reg2mem
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%.reload = load i64, i64* %.reg2mem
%75 = call i64 @FUNC(i64 %.reload)
%76 = zext i32 %sv_0.0.reload to i64
%77 = call i64 @FUNC(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_6, i64 0, i64 0), i64 %76, i64 %rdx.0.reload, i64 %rcx.0.reload, i64 %13, i64 %12)
%78 = sext i32 %sv_0.0.reload to i64
store i64 %78, i64* %rax.0.reg2mem
br label LBL_20
LBL_20:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %40, { 1, 0 }
uselistorder i64 %17, { 3, 0, 4, 5, 1, 2, 6 }
uselistorder i64 %13, { 4, 1, 2, 3, 0, 5 }
uselistorder i64 %12, { 0, 3, 2, 1 }
uselistorder i64 %7, { 3, 5, 4, 0, 7, 6, 1, 8, 2, 9, 10, 11 }
uselistorder i64* %sv_1, { 2, 3, 4, 5, 0, 6, 1, 7 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 16, { 1, 0 }
uselistorder void ()* @abort, { 2, 3, 4, 5, 0, 1 }
uselistorder i64 4294967295, { 1, 0 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @dprintk, { 4, 3, 2, 1, 0 }
uselistorder label LBL_20, { 1, 2, 0 }
} | 1 |
BinRealVul | get_native_type_cdr_length_12468 | get_native_type_cdr_length | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
store i64 %arg1, i64* @0, align 8
store i64 1, i64* %sv_0.0.reg2mem
store i64 1, i64* %sv_0.0.reg2mem
store i64 1, i64* %sv_0.0.reg2mem
switch i64 %arg1, label LBL_10 [
i64 0, label LBL_11
i64 1, label LBL_11
i64 2, label LBL_11
i64 3, label LBL_1
i64 4, label LBL_2
i64 5, label LBL_3
i64 6, label LBL_3
i64 7, label LBL_4
i64 8, label LBL_5
i64 9, label LBL_6
i64 10, label LBL_7
i64 11, label LBL_8
i64 12, label LBL_9
]
LBL_1:
store i64 2, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_2:
store i64 2, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_3:
store i64 4, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_4:
store i64 4, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_5:
store i64 8, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_6:
store i64 8, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_7:
store i64 4, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_8:
store i64 8, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_9:
store i64 16, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_10:
store i64 4294967295, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_11:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i64* %sv_0.0.reg2mem, { 0, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 1, 2, 3 }
uselistorder i64 8, { 2, 1, 0, 3 }
uselistorder i64 4, { 2, 1, 0, 3 }
uselistorder i64 2, { 1, 0, 2 }
uselistorder i64 1, { 3, 0, 1, 2 }
uselistorder i64 %arg1, { 1, 0 }
uselistorder label LBL_11, { 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 1, 0, 2 }
} | 1 |
BinRealVul | vnc_display_close_1107 | vnc_display_close | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.pre-phi15.reg2mem = alloca i64*
%.pre-phi19.reg2mem = alloca i64*
%storemerge3.reg2mem = alloca i64
%.pre-phi7.reg2mem = alloca i64*
%.pre-phi11.reg2mem = alloca i64*
%storemerge14.reg2mem = alloca i64
%0 = icmp eq i64 %arg1, 0
br i1 %0, label LBL_17, label LBL_1
LBL_1:
%1 = inttoptr i64 %arg1 to i8*
store i8 0, i8* %1, align 1
%2 = add i64 %arg1, 8
%3 = inttoptr i64 %2 to i64*
%4 = load i64, i64* %3, align 8
%5 = icmp eq i64 %4, 0
br i1 %5, label LBL_1.LBL_7_crit_edge, label LBL_3
LBL_2:
%.pre = add i64 %arg1, 24
%.pre6 = inttoptr i64 %.pre to i64*
%.pre8 = add i64 %arg1, 40
%.pre10 = inttoptr i64 %.pre8 to i64*
store i64* %.pre10, i64** %.pre-phi11.reg2mem
store i64* %.pre6, i64** %.pre-phi7.reg2mem
br label LBL_7
LBL_3:
%6 = add i64 %arg1, 40
%7 = inttoptr i64 %6 to i64*
%8 = add i64 %arg1, 24
%9 = inttoptr i64 %8 to i64*
store i64 0, i64* %storemerge14.reg2mem
br label LBL_4
LBL_4:
%storemerge14.reload = load i64, i64* %storemerge14.reg2mem
%10 = load i64, i64* %7, align 8
%11 = mul i64 %storemerge14.reload, 8
%12 = add i64 %10, %11
%13 = inttoptr i64 %12 to i64*
%14 = load i64, i64* %13, align 8
%15 = icmp eq i64 %14, 0
br i1 %15, label LBL_6, label LBL_5
LBL_5:
%16 = call i64 @FUNC(i64 %14)
br label LBL_6
LBL_6:
%17 = load i64, i64* %9, align 8
%18 = add i64 %17, %11
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = call i64 @FUNC(i64 %20)
%22 = add nuw i64 %storemerge14.reload, 1
%23 = load i64, i64* %3, align 8
%24 = icmp ult i64 %22, %23
store i64 %22, i64* %storemerge14.reg2mem
store i64* %7, i64** %.pre-phi11.reg2mem
store i64* %9, i64** %.pre-phi7.reg2mem
br i1 %24, label LBL_4, label LBL_7
LBL_7:
%.pre-phi7.reload = load i64*, i64** %.pre-phi7.reg2mem
%.pre-phi11.reload = load i64*, i64** %.pre-phi11.reg2mem
%25 = load i64, i64* %.pre-phi7.reload, align 8
%26 = call i64 @FUNC(i64 %25)
%27 = load i64, i64* %.pre-phi11.reload, align 8
%28 = call i64 @FUNC(i64 %27)
store i64 0, i64* %.pre-phi7.reload, align 8
store i64 0, i64* %.pre-phi11.reload, align 8
store i64 0, i64* %3, align 8
%29 = add i64 %arg1, 16
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = icmp eq i64 %31, 0
br i1 %32, label LBL_7.LBL_13_crit_edge, label LBL_9
LBL_8:
%.pre12 = add i64 %arg1, 32
%.pre14 = inttoptr i64 %.pre12 to i64*
%.pre16 = add i64 %arg1, 48
%.pre18 = inttoptr i64 %.pre16 to i64*
store i64* %.pre18, i64** %.pre-phi19.reg2mem
store i64* %.pre14, i64** %.pre-phi15.reg2mem
br label LBL_13
LBL_9:
%33 = add i64 %arg1, 48
%34 = inttoptr i64 %33 to i64*
%35 = add i64 %arg1, 32
%36 = inttoptr i64 %35 to i64*
store i64 0, i64* %storemerge3.reg2mem
br label LBL_10
LBL_10:
%storemerge3.reload = load i64, i64* %storemerge3.reg2mem
%37 = load i64, i64* %34, align 8
%38 = mul i64 %storemerge3.reload, 8
%39 = add i64 %37, %38
%40 = inttoptr i64 %39 to i64*
%41 = load i64, i64* %40, align 8
%42 = icmp eq i64 %41, 0
br i1 %42, label LBL_12, label LBL_11
LBL_11:
%43 = call i64 @FUNC(i64 %41)
br label LBL_12
LBL_12:
%44 = load i64, i64* %36, align 8
%45 = add i64 %44, %38
%46 = inttoptr i64 %45 to i64*
%47 = load i64, i64* %46, align 8
%48 = call i64 @FUNC(i64 %47)
%49 = add nuw i64 %storemerge3.reload, 1
%50 = load i64, i64* %30, align 8
%51 = icmp ult i64 %49, %50
store i64 %49, i64* %storemerge3.reg2mem
store i64* %34, i64** %.pre-phi19.reg2mem
store i64* %36, i64** %.pre-phi15.reg2mem
br i1 %51, label LBL_10, label LBL_13
LBL_13:
%.pre-phi15.reload = load i64*, i64** %.pre-phi15.reg2mem
%.pre-phi19.reload = load i64*, i64** %.pre-phi19.reg2mem
%52 = load i64, i64* %.pre-phi15.reload, align 8
%53 = call i64 @FUNC(i64 %52)
%54 = load i64, i64* %.pre-phi19.reload, align 8
%55 = call i64 @FUNC(i64 %54)
store i64 0, i64* %.pre-phi15.reload, align 8
store i64 0, i64* %.pre-phi19.reload, align 8
store i64 0, i64* %30, align 8
%56 = add i64 %arg1, 56
%57 = inttoptr i64 %56 to i32*
store i32 -1, i32* %57, align 4
%58 = add i64 %arg1, 60
%59 = inttoptr i64 %58 to i32*
store i32 -1, i32* %59, align 4
%60 = add i64 %arg1, 64
%61 = inttoptr i64 %60 to i64*
%62 = load i64, i64* %61, align 8
%63 = icmp eq i64 %62, 0
br i1 %63, label LBL_15, label LBL_14
LBL_14:
%64 = call i64 @FUNC(i64 %62)
store i64 0, i64* %61, align 8
br label LBL_15
LBL_15:
%65 = add i64 %arg1, 72
%66 = inttoptr i64 %65 to i64*
%67 = load i64, i64* %66, align 8
%68 = call i64 @FUNC(i64 %67)
store i64 0, i64* %66, align 8
%69 = add i64 %arg1, 88
%70 = inttoptr i64 %69 to i8*
%71 = load i8, i8* %70, align 1
%72 = icmp eq i8 %71, 0
store i64 0, i64* %rax.0.reg2mem
br i1 %72, label LBL_17, label LBL_16
LBL_16:
%73 = add i64 %arg1, 80
%74 = inttoptr i64 %73 to i64*
%75 = load i64, i64* %74, align 8
%76 = call i64 @FUNC(i64 %75)
store i64 0, i64* %74, align 8
store i64 %arg1, i64* %rax.0.reg2mem
br label LBL_17
LBL_17:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %38, { 1, 0 }
uselistorder i64* %30, { 0, 2, 1 }
uselistorder i64 %11, { 1, 0 }
uselistorder i64* %3, { 0, 2, 1 }
uselistorder i64* %storemerge14.reg2mem, { 1, 0, 2 }
uselistorder i64* %storemerge3.reg2mem, { 1, 0, 2 }
uselistorder i64 48, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i64 (i64)* @g_free, { 4, 3, 2, 1, 0 }
uselistorder i64 (i64)* @object_unref, { 1, 0 }
uselistorder i64 (i64)* @g_source_remove, { 1, 0 }
uselistorder i64 40, { 1, 0 }
uselistorder i64 24, { 1, 0 }
uselistorder i64 %arg1, { 0, 5, 6, 7, 8, 9, 10, 11, 13, 1, 2, 12, 14, 16, 3, 4, 15, 17, 18 }
uselistorder label LBL_17, { 1, 2, 0 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
} | 0 |
BinRealVul | con_font_op_7184 | con_font_op | define i64 @FUNC(i64* %arg1, i32* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = icmp eq i32 %2, 4
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %3, label LBL_6, label LBL_1
LBL_1:
%4 = icmp sgt i32 %2, 4
store i64 4294967258, i64* %rax.0.reg2mem
br i1 %4, label LBL_6, label LBL_2
LBL_2:
%5 = ptrtoint i64* %arg1 to i64
store i64 4294967258, i64* %rax.0.reg2mem
switch i32 %2, label LBL_6 [
i32 3, label LBL_5
i32 1, label LBL_3
i32 2, label LBL_4
]
LBL_3:
%6 = ptrtoint i32* %arg2 to i64
%7 = call i64 @FUNC(i64 %5, i64 %6)
store i64 %7, i64* %rax.0.reg2mem
br label LBL_6
LBL_4:
%8 = ptrtoint i32* %arg2 to i64
%9 = call i64 @FUNC(i64 %5, i64 %8)
store i64 %9, i64* %rax.0.reg2mem
br label LBL_6
LBL_5:
%10 = ptrtoint i32* %arg2 to i64
%11 = call i64 @FUNC(i64 %5, i64 %10)
store i64 %11, 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 %5, { 2, 0, 1 }
uselistorder i32 %2, { 2, 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 6, 4, 5, 1, 2, 3 }
uselistorder i32 4, { 1, 0 }
uselistorder i32* %arg2, { 2, 0, 1 }
uselistorder label LBL_6, { 3, 4, 5, 0, 1, 2 }
} | 0 |
BinRealVul | jiffies_64_to_clock_t_8288 | jiffies_64_to_clock_t | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
ret i64 %arg1
} | 0 |
BinRealVul | init_excp_601_5124 | init_excp_601 | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = bitcast i64* %arg1 to i32*
store i32 256, i32* %1, align 4
%2 = add i64 %0, 4
%3 = inttoptr i64 %2 to i32*
store i32 512, i32* %3, align 4
%4 = add i64 %0, 8
%5 = inttoptr i64 %4 to i32*
store i32 768, i32* %5, align 4
%6 = add i64 %0, 12
%7 = inttoptr i64 %6 to i32*
store i32 1024, i32* %7, align 4
%8 = add i64 %0, 16
%9 = inttoptr i64 %8 to i32*
store i32 1280, i32* %9, align 4
%10 = add i64 %0, 20
%11 = inttoptr i64 %10 to i32*
store i32 1536, i32* %11, align 4
%12 = add i64 %0, 24
%13 = inttoptr i64 %12 to i32*
store i32 1792, i32* %13, align 4
%14 = add i64 %0, 28
%15 = inttoptr i64 %14 to i32*
store i32 2048, i32* %15, align 4
%16 = add i64 %0, 32
%17 = inttoptr i64 %16 to i32*
store i32 2304, i32* %17, align 4
%18 = add i64 %0, 36
%19 = inttoptr i64 %18 to i32*
store i32 2560, i32* %19, align 4
%20 = add i64 %0, 40
%21 = inttoptr i64 %20 to i32*
store i32 3072, i32* %21, align 4
%22 = add i64 %0, 44
%23 = inttoptr i64 %22 to i32*
store i32 8192, i32* %23, align 4
%24 = add i64 %0, 48
%25 = inttoptr i64 %24 to i32*
store i32 -1048576, i32* %25, align 4
%26 = add i64 %0, 52
%27 = inttoptr i64 %26 to i32*
store i32 256, i32* %27, align 4
ret i64 %0
uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }
} | 0 |
BinRealVul | ghash_final_9992 | ghash_final | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %2, i64 %1)
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
%6 = icmp eq i1 %5, false
br i1 %6, label LBL_2, label LBL_1
LBL_1:
%7 = ptrtoint i64* %arg2 to i64
%8 = add i64 %2, 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = inttoptr i64 %2 to i64*
%12 = load i64, i64* %11, align 8
store i64 %12, i64* %arg2, align 8
%13 = add i64 %7, 8
%14 = inttoptr i64 %13 to i64*
store i64 %10, i64* %14, align 8
br label LBL_2
LBL_2:
%15 = and i64 %3, 4294967295
ret i64 %15
} | 0 |
BinRealVul | qemu_realloc_14033 | qemu_realloc | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = icmp eq i64 %arg2, 0
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_3, label LBL_1
LBL_1:
%2 = call i64 @FUNC()
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_3, label LBL_2
LBL_2:
call void @abort()
unreachable
LBL_3:
%phitmp = trunc i64 %arg2 to i32
%storemerge = select i1 %0, i32 1, i32 %phitmp
%6 = inttoptr i64 %arg1 to i64*
%7 = call i64* @realloc(i64* %6, i32 %storemerge)
%8 = ptrtoint i64* %7 to i64
%9 = call i64 @FUNC(i64 %8)
ret i64 %9
} | 1 |
BinRealVul | ff_id3v2_free_extra_meta_1400 | ff_id3v2_free_extra_meta | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.lcssa.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i64, align 8
store i64 %0, i64* %sv_0, align 8
%1 = icmp eq i64* %arg1, null
%2 = icmp eq i1 %1, false
store i64 %0, i64* %storemerge1.reg2mem
store i64 %0, i64* %storemerge.lcssa.reg2mem
br i1 %2, label LBL_1, label LBL_2
LBL_1:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%3 = add i64 %storemerge1.reload, 16
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* %4, align 4
%6 = zext i32 %5 to i64
%7 = call i64 @FUNC(i64 %6, i64 1)
%8 = load i64, i64* %sv_0, align 8
%9 = inttoptr i64 %8 to i64*
%10 = load i64, i64* %9, align 8
%11 = call i64 @FUNC(i64* nonnull %sv_0)
store i64 %10, i64* %sv_0, align 8
%12 = icmp eq i64 %10, 0
%13 = icmp eq i1 %12, false
store i64 %10, i64* %storemerge1.reg2mem
store i64 %10, i64* %storemerge.lcssa.reg2mem
br i1 %13, label LBL_1, label LBL_2
LBL_2:
%storemerge.lcssa.reload = load i64, i64* %storemerge.lcssa.reg2mem
ret i64 %storemerge.lcssa.reload
uselistorder i64 %10, { 0, 1, 3, 2 }
uselistorder i64* %sv_0, { 1, 2, 3, 0 }
uselistorder i64* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | allocate_buffers_6031 | allocate_buffers | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%.pre-phi18.reg2mem = alloca i32*
%.lcssa.reg2mem = alloca i64
%.lcssa4.reg2mem = alloca i32
%storemerge18.reg2mem = alloca i32
%.reg2mem31 = alloca i64
%.reg2mem29 = alloca i64
%rcx.010.reg2mem = alloca i64
%storemerge11.reg2mem = alloca i32
%.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* %arg1 to i64
%5 = trunc i64 %3 to i32
%6 = icmp eq i32 %5, 0
br i1 %6, label LBL_0.LBL_12_crit_edge, label LBL_2
LBL_1:
%.pre = add i64 %4, 12
%.pre17 = inttoptr i64 %.pre to i32*
store i32* %.pre17, i32** %.pre-phi18.reg2mem
br label LBL_12
LBL_2:
%7 = bitcast i64* %rdi to i32*
%8 = add i64 %4, 4
%9 = inttoptr i64 %8 to i32*
%10 = add i64 %4, 8
%11 = inttoptr i64 %10 to i32*
%12 = add i64 %4, 12
%13 = inttoptr i64 %12 to i32*
%14 = add i64 %4, 16
%15 = inttoptr i64 %14 to i64*
%16 = add i64 %4, 24
%17 = inttoptr i64 %16 to i64*
%18 = add i64 %4, 32
%19 = inttoptr i64 %18 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge11.reg2mem
br label LBL_3
LBL_3:
%rcx.010.reload = load i64, i64* %rcx.010.reg2mem
%20 = load i32, i32* %9, align 4
%21 = icmp slt i32 %20, 1
%22 = icmp ult i32 %20, 1073741823
%or.cond = or i1 %21, %22
br i1 %or.cond, label LBL_5, label LBL_4
LBL_4:
%23 = add i64 %4, 48
%24 = inttoptr i64 %23 to i64*
%25 = load i64, i64* %24, align 8
%26 = call i64 @FUNC(i64 %25, i64 16, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64 %rcx.010.reload, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_14
LBL_5:
%27 = load i32, i32* %11, align 4
%28 = load i32, i32* %13, align 4
%29 = add i32 %28, %27
%30 = icmp ult i32 %29, 1073741823
%31 = icmp ugt i32 %29, %28
%or.cond3 = icmp eq i1 %30, %31
br i1 %or.cond3, label LBL_7, label LBL_6
LBL_6:
%32 = add i64 %4, 48
%33 = inttoptr i64 %32 to i64*
%34 = load i64, i64* %33, align 8
%35 = call i64 @FUNC(i64 %34, i64 16, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_1, i64 0, i64 0), i64 %rcx.010.reload, i64 %2, i64 %1)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_14
LBL_7:
%.reload = load i64, i64* %.reg2mem
%36 = sext i32 %20 to i64
%37 = mul i64 %36, 4
%storemerge2 = select i1 %21, i64 4, i64 %37
%38 = load i64, i64* %15, align 8
%39 = mul i64 %.reload, 8
%40 = add i64 %38, %39
%41 = inttoptr i64 %40 to i64*
%42 = load i64, i64* %41, align 8
%43 = call i64 @FUNC(i64 %42, i64 %storemerge2)
%44 = icmp eq i64 %43, 0
%45 = icmp eq i1 %44, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %45, label LBL_8, label LBL_14
LBL_8:
%46 = load i64, i64* %15, align 8
%47 = add i64 %46, %39
%48 = inttoptr i64 %47 to i64*
store i64 %43, i64* %48, align 8
%49 = load i32, i32* %11, align 4
%50 = load i32, i32* %13, align 4
%51 = add i32 %50, %49
%52 = sext i32 %51 to i64
%53 = mul i64 %52, 4
%54 = load i64, i64* %17, align 8
%55 = add i64 %54, %39
%56 = inttoptr i64 %55 to i64*
%57 = load i64, i64* %56, align 8
%58 = call i64 @FUNC(i64 %57, i64 %53)
%59 = icmp eq i64 %58, 0
%60 = icmp eq i1 %59, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %60, label LBL_9, label LBL_14
LBL_9:
%storemerge11.reload = load i32, i32* %storemerge11.reg2mem
%61 = load i64, i64* %17, align 8
%62 = add i64 %61, %39
%63 = inttoptr i64 %62 to i64*
store i64 %58, i64* %63, align 8
%64 = load i32, i32* %13, align 4
%65 = icmp eq i32 %64, 0
%66 = load i64, i64* %17, align 8
%67 = add i64 %66, %39
%68 = inttoptr i64 %67 to i64*
%69 = load i64, i64* %68, align 8
store i64 %69, i64* %.reg2mem29
store i64 0, i64* %.reg2mem31
store i32 0, i32* %storemerge18.reg2mem
store i32 0, i32* %.lcssa4.reg2mem
store i64 %69, i64* %.lcssa.reg2mem
br i1 %65, label LBL_11, label LBL_10
LBL_10:
%storemerge18.reload = load i32, i32* %storemerge18.reg2mem
%.reload32 = load i64, i64* %.reg2mem31
%.reload30 = load i64, i64* %.reg2mem29
%70 = mul i64 %.reload32, 4
%71 = add i64 %70, %.reload30
%72 = inttoptr i64 %71 to i32*
store i32 0, i32* %72, align 4
%73 = add i32 %storemerge18.reload, 1
%74 = load i32, i32* %13, align 4
%75 = zext i32 %74 to i64
%76 = sext i32 %73 to i64
%77 = icmp slt i64 %76, %75
%78 = load i64, i64* %17, align 8
%79 = add i64 %78, %39
%80 = inttoptr i64 %79 to i64*
%81 = load i64, i64* %80, align 8
store i64 %81, i64* %.reg2mem29
store i64 %76, i64* %.reg2mem31
store i32 %73, i32* %storemerge18.reg2mem
store i32 %74, i32* %.lcssa4.reg2mem
store i64 %81, i64* %.lcssa.reg2mem
br i1 %77, label LBL_10, label LBL_11
LBL_11:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
%.lcssa4.reload = load i32, i32* %.lcssa4.reg2mem
%82 = sext i32 %.lcssa4.reload to i64
%83 = mul i64 %82, 4
%84 = load i64, i64* %19, align 8
%85 = add i64 %84, %39
%86 = add i64 %83, %.lcssa.reload
%87 = inttoptr i64 %85 to i64*
store i64 %86, i64* %87, align 8
%88 = add i32 %storemerge11.reload, 1
%89 = load i32, i32* %7, align 8
%90 = zext i32 %89 to i64
%91 = sext i32 %88 to i64
%92 = icmp slt i64 %91, %90
store i64 %91, i64* %.reg2mem
store i32 %88, i32* %storemerge11.reg2mem
store i64 %84, i64* %rcx.010.reg2mem
store i32* %13, i32** %.pre-phi18.reg2mem
br i1 %92, label LBL_3, label LBL_12
LBL_12:
%.pre-phi18.reload = load i32*, i32** %.pre-phi18.reg2mem
%93 = load i32, i32* %.pre-phi18.reload, align 4
%94 = sext i32 %93 to i64
%95 = add i64 %4, 40
%96 = inttoptr i64 %95 to i64*
%97 = load i64, i64* %96, align 8
%98 = call i64 @FUNC(i64 %97, i64 %94)
%99 = icmp eq i64 %98, 0
%100 = icmp eq i1 %99, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %100, label LBL_13, label LBL_14
LBL_13:
store i64 %98, i64* %96, align 8
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %39, { 6, 5, 4, 3, 2, 1, 0 }
uselistorder i32 %28, { 1, 0 }
uselistorder i64 %rcx.010.reload, { 1, 0 }
uselistorder i64* %17, { 1, 0, 2, 3 }
uselistorder i32* %13, { 0, 2, 1, 3, 4 }
uselistorder i64 %4, { 8, 1, 9, 2, 3, 4, 6, 5, 7, 0 }
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge11.reg2mem, { 1, 0, 2 }
uselistorder i64* %rcx.010.reg2mem, { 1, 0 }
uselistorder i64* %.reg2mem29, { 2, 0, 1 }
uselistorder i64* %.reg2mem31, { 2, 0, 1 }
uselistorder i32* %storemerge18.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 1, 2, 6, 5 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 4294967284, { 2, 0, 1 }
uselistorder i1 false, { 2, 0, 1 }
uselistorder i64 (i64, i64)* @av_realloc, { 0, 2, 1 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i32 1073741823, { 1, 0 }
uselistorder i64 4, { 0, 1, 2, 4, 3, 5 }
uselistorder i64 12, { 1, 0 }
uselistorder label LBL_14, { 3, 2, 0, 1, 4, 5 }
uselistorder label LBL_10, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
BinRealVul | fpm_child_init_6487 | fpm_child_init | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = trunc i64 %1 to i32
store i32 %3, i32* bitcast (i64* @gv_0 to i32*), align 8
%4 = add i64 %2, 8
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5, align 4
%7 = call i32 @dup(i32 %6)
store i32 %7, i32* inttoptr (i64 4210772 to i32*), align 4
%8 = call i64 @FUNC(i64 %2)
%9 = trunc i64 %8 to i32
%10 = icmp slt i32 %9, 0
br i1 %10, label LBL_7, label LBL_1
LBL_1:
%11 = call i64 @FUNC(i64 %2)
%12 = trunc i64 %11 to i32
%13 = icmp slt i32 %12, 0
br i1 %13, label LBL_7, label LBL_2
LBL_2:
%14 = call i64 @FUNC(i64 %2)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %15, 0
br i1 %16, label LBL_7, label LBL_3
LBL_3:
%17 = call i64 @FUNC(i64 %2)
%18 = trunc i64 %17 to i32
%19 = icmp slt i32 %18, 0
br i1 %19, label LBL_7, label LBL_4
LBL_4:
%20 = call i64 @FUNC()
%21 = trunc i64 %20 to i32
%22 = icmp slt i32 %21, 0
br i1 %22, label LBL_7, label LBL_5
LBL_5:
%23 = call i64 @FUNC(i64 %2)
%24 = trunc i64 %23 to i32
%25 = icmp slt i32 %24, 0
br i1 %25, label LBL_7, label LBL_6
LBL_6:
%26 = call i64 @FUNC(i64 %2)
%27 = trunc i64 %26 to i32
%28 = icmp slt i32 %27, 0
%29 = icmp eq i1 %28, false
br i1 %29, label LBL_8, label LBL_7
LBL_7:
%30 = inttoptr i64 %4 to i64*
%31 = load i64, i64* %30, align 8
%32 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_1, i64 0, i64 0), i64 %31)
call void @exit(i32 1)
unreachable
LBL_8:
ret i64 %26
} | 0 |
BinRealVul | seedsize_11671 | seedsize | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
%storemerge.in.in.in.v = select i1 %1, i64 16, i64 8
%storemerge.in.in.in = add i64 %storemerge.in.in.in.v, %0
%storemerge.in.in = inttoptr i64 %storemerge.in.in.in to i32*
%storemerge.in = load i32, i32* %storemerge.in.in, align 4
%storemerge = zext i32 %storemerge.in to i64
ret i64 %storemerge
} | 1 |
BinRealVul | s_server_init_8228 | s_server_init | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
store i32 -1, i32* bitcast (i64* @gv_0 to i32*), align 8
store i32 0, i32* bitcast (i64* @gv_1 to i32*), align 8
store i32 0, i32* bitcast (i64* @gv_2 to i32*), align 8
store i64 0, i64* @gv_3, align 8
store i64 0, i64* @gv_4, align 8
store i64 0, i64* @gv_5, align 8
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_6, i64 0, i64 0), i8** @gv_7, align 8
store i64 0, i64* @gv_8, align 8
store i64 0, i64* @gv_9, align 8
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_10, i64 0, i64 0), i8** @gv_11, align 8
store i64 0, i64* @gv_12, align 8
store i64 0, i64* @gv_13, align 8
store i32 0, i32* bitcast (i64* @gv_14 to i32*), align 8
store i32 0, i32* bitcast (i64* @gv_15 to i32*), align 8
store i64 0, i64* @gv_16, align 8
store i32 0, i32* bitcast (i64* @gv_17 to i32*), align 8
store i64 0, i64* @gv_18, align 8
store i32 0, i32* bitcast (i64* @gv_19 to i32*), align 8
store i32 0, i32* bitcast (i64* @gv_20 to i32*), align 8
store i32 0, i32* bitcast (i64* @gv_21 to i32*), align 8
store i32 0, i32* bitcast (i64* @gv_22 to i32*), align 8
store i32 0, i32* bitcast (i64* @gv_23 to i32*), align 8
store i64 0, i64* @gv_24, align 8
ret i64 %1
} | 0 |
BinRealVul | snd_ctl_add_12188 | snd_ctl_add | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i32
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.02.reg2mem = alloca i32
%storemerge.reg2mem = alloca i64
%sv_2 = alloca i64, align 8
%1 = load i32, i32* %0
%sv_3 = alloca i64, align 8
%2 = icmp eq i64* %arg2, null
%3 = icmp eq i1 %2, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_11
LBL_1:
%4 = ptrtoint i64* %arg2 to i64
%5 = icmp eq i64* %arg1, null
store i64 1, i64* %storemerge.reg2mem
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = add i64 %4, 96
%7 = inttoptr i64 %6 to i64*
%8 = load i64, i64* %7, align 8
%9 = icmp eq i64 %8, 0
%spec.select = zext i1 %9 to i64
store i64 %spec.select, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
%10 = call i64 @FUNC(i64 %storemerge.reload)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, 0
%13 = icmp eq i1 %12, false
store i64 4294967274, i64* %sv_0.0.reg2mem
br i1 %13, label LBL_10, label LBL_4
LBL_4:
%14 = ptrtoint i64* %arg1 to i64
%15 = add i64 %4, 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
store i64 %4, i64* %sv_3, align 8
%18 = add i64 %14, 16
%19 = call i64 @FUNC(i64 %18)
%20 = call i64 @FUNC(i64 %14, i64* nonnull %sv_3)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
br i1 %22, label LBL_6, label LBL_5
LBL_5:
%23 = call i64 @FUNC(i64 %18)
%24 = and i64 %17, 4294967295
%25 = load i64, i64* %sv_3, align 8
%26 = and i64 %25, 4294967295
%27 = call i64 @FUNC(i64 %18, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_0, i64 0, i64 0), i64 %26, i32 %1, i64 %24, i64* nonnull %sv_2)
store i64 4294967280, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_6:
%28 = add i64 %4, 84
%29 = inttoptr i64 %28 to i32*
%30 = load i32, i32* %29, align 4
%31 = zext i32 %30 to i64
%32 = call i64 @FUNC(i64 %14, i64 %31)
%33 = trunc i64 %32 to i32
%34 = icmp slt i32 %33, 0
%35 = icmp eq i1 %34, false
br i1 %35, label LBL_8, label LBL_7
LBL_7:
%36 = call i64 @FUNC(i64 %18)
store i64 4294967284, i64* %sv_0.0.reg2mem
br label LBL_10
LBL_8:
%37 = add i64 %14, 24
%38 = add i64 %4, 88
%39 = call i64 @FUNC(i64 %38, i64 %37)
%40 = add i64 %14, 8
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = load i32, i32* %29, align 4
%44 = add i32 %43, %42
store i32 %44, i32* %41, align 4
%45 = add i64 %14, 12
%46 = inttoptr i64 %45 to i32*
%47 = load i32, i32* %46, align 4
%48 = add i32 %47, 1
%49 = add i64 %4, 80
%50 = inttoptr i64 %49 to i32*
store i32 %48, i32* %50, align 4
%51 = load i32, i32* %46, align 4
%52 = load i32, i32* %29, align 4
%53 = add i32 %52, %51
store i32 %53, i32* %46, align 4
%54 = call i64 @FUNC(i64 %18)
%55 = load i32, i32* %29, align 4
%56 = icmp eq i32 %55, 0
store i32 0, i32* %sv_1.02.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %56, label LBL_11, label LBL_9
LBL_9:
%sv_1.02.reload = load i32, i32* %sv_1.02.reg2mem
%57 = call i64 @FUNC(i64 %14, i64 1, i64* nonnull %sv_3)
%58 = add nuw i32 %sv_1.02.reload, 1
%59 = load i32, i32* %29, align 4
%60 = icmp ult i32 %58, %59
store i32 %58, i32* %sv_1.02.reg2mem
store i64 0, i64* %rax.0.reg2mem
br i1 %60, label LBL_9, label LBL_11
LBL_10:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%61 = call i64 @FUNC(i64 %4)
store i64 %sv_0.0.reload, i64* %rax.0.reg2mem
br label LBL_11
LBL_11:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32* %46, { 1, 0, 2 }
uselistorder i32* %29, { 1, 0, 2, 3, 4 }
uselistorder i64 %18, { 3, 2, 1, 0, 4 }
uselistorder i64 %14, { 0, 1, 3, 2, 4, 6, 5 }
uselistorder i64 %4, { 6, 1, 2, 3, 4, 5, 0 }
uselistorder i64* %sv_3, { 0, 2, 1, 3 }
uselistorder i32* %sv_1.02.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i64 (i64)* @up_write, { 2, 1, 0 }
uselistorder i64 1, { 1, 0 }
uselistorder i64 4294967274, { 1, 0 }
uselistorder i64* %arg2, { 1, 0 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_11, { 3, 0, 1, 2 }
uselistorder label LBL_10, { 1, 2, 0 }
uselistorder label LBL_9, { 1, 0 }
} | 1 |
BinRealVul | kvm_remove_all_breakpoints_14469 | kvm_remove_all_breakpoints | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%sv_0.14.reg2mem = alloca i64
%storemerge5.reg2mem = alloca i64
%storemerge1.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
store i64 %0, i64* %storemerge5.reg2mem
store i64 %0, i64* %sv_0.14.reg2mem
br i1 %1, label LBL_6, label LBL_5
LBL_1:
%2 = icmp eq i64 %storemerge5.reload, %6
%3 = icmp eq i1 %2, false
store i64 %6, i64* %storemerge1.reg2mem
br i1 %3, label LBL_3, label LBL_2
LBL_2:
%4 = load i64, i64* %11, align 8
store i64 %4, i64* %5, align 8
br label LBL_4
LBL_3:
%storemerge1.reload = load i64, i64* %storemerge1.reg2mem
%5 = inttoptr i64 %storemerge1.reload to i64*
%6 = load i64, i64* %5, align 8
%7 = icmp eq i64 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_1, label LBL_4
LBL_4:
%9 = call i64 @FUNC(i64 %storemerge5.reload)
%10 = icmp eq i64 %12, 0
store i64 %12, i64* %storemerge5.reg2mem
store i64 %sv_0.0, i64* %sv_0.14.reg2mem
br i1 %10, label LBL_6, label LBL_5
LBL_5:
%sv_0.14.reload = load i64, i64* %sv_0.14.reg2mem
%storemerge5.reload = load i64, i64* %storemerge5.reg2mem
%11 = inttoptr i64 %storemerge5.reload to i64*
%12 = load i64, i64* %11, align 8
%13 = call i64 @FUNC(i64 %sv_0.14.reload, i64 %storemerge5.reload)
%14 = trunc i64 %13 to i32
%15 = icmp eq i32 %14, 0
%sv_0.0 = select i1 %15, i64 %sv_0.14.reload, i64 0
store i64 %0, i64* %storemerge1.reg2mem
br label LBL_3
LBL_6:
%16 = call i64 @FUNC()
ret i64 %16
uselistorder i64 %12, { 1, 0 }
uselistorder i64* %11, { 1, 0 }
uselistorder i64 %storemerge5.reload, { 3, 2, 1, 0 }
uselistorder i64 %6, { 2, 1, 0 }
uselistorder i64* %5, { 1, 0 }
uselistorder i64 %0, { 2, 0, 1 }
uselistorder i64* %storemerge1.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge5.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.14.reg2mem, { 0, 2, 1 }
uselistorder i1 false, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | read_uint32_1128 | read_uint32 | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_0 = alloca i32, align 4
%1 = bitcast i32* %sv_0 to i64*
%2 = call i64 @FUNC(i64 %0, i64 %arg2, i64* nonnull %1, i64 4)
%3 = trunc i64 %2 to i32
%4 = icmp slt i32 %3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_2, label LBL_1
LBL_1:
%6 = and i64 %2, 4294967295
store i64 %6, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%7 = load i32, i32* %sv_0, align 4
%8 = zext i32 %7 to i64
%9 = call i64 @FUNC(i64 %8)
%10 = trunc i64 %9 to i32
%11 = bitcast i64* %arg3 to i32*
store i32 %10, i32* %11, align 4
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 0 |
BinRealVul | ff_hevc_cu_qp_delta_abs_14624 | ff_hevc_cu_qp_delta_abs | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.12.reg2mem = alloca i32
%.in.reg2mem = alloca i32
%storemerge1.lcssa.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.03.reg2mem = alloca i32
%storemerge14.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg1 to i64
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i64*
store i32 0, i32* %storemerge14.reg2mem
store i32 0, i32* %sv_0.03.reg2mem
br label LBL_2
LBL_1:
%6 = shl i32 1, %storemerge14.reload
%7 = add i32 %6, %sv_0.03.reload
%8 = add nuw nsw i32 %storemerge14.reload, 1
%9 = icmp ugt i32 %storemerge14.reload, 6
store i32 %8, i32* %storemerge14.reg2mem
store i32 %7, i32* %sv_0.03.reg2mem
store i32 %7, i32* %sv_0.0.lcssa.reg2mem
store i32 %8, i32* %storemerge1.lcssa.reg2mem
br i1 %9, label LBL_3, label LBL_2
LBL_2:
%sv_0.03.reload = load i32, i32* %sv_0.03.reg2mem
%storemerge14.reload = load i32, i32* %storemerge14.reg2mem
%10 = load i64, i64* %5, align 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
store i32 %sv_0.03.reload, i32* %sv_0.0.lcssa.reg2mem
store i32 %storemerge14.reload, i32* %storemerge1.lcssa.reg2mem
br i1 %14, label LBL_1, label LBL_3
LBL_3:
%storemerge1.lcssa.reload = load i32, i32* %storemerge1.lcssa.reg2mem
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%15 = icmp eq i32 %storemerge1.lcssa.reload, 8
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_5, label LBL_4
LBL_4:
%17 = zext i32 %storemerge1.lcssa.reload to i64
%18 = call i64 @FUNC(i64 %10, i64 0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %17, i64 %2, i64 %1)
br label LBL_5
LBL_5:
%19 = icmp eq i32 %storemerge1.lcssa.reload, 0
%20 = icmp eq i1 %19, false
store i32 %storemerge1.lcssa.reload, i32* %.in.reg2mem
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.12.reg2mem
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %20, label LBL_6, label LBL_7
LBL_6:
%sv_0.12.reload = load i32, i32* %sv_0.12.reg2mem
%.in.reload = load i32, i32* %.in.reg2mem
%21 = add i32 %.in.reload, -1
%22 = load i64, i64* %5, align 8
%23 = call i64 @FUNC(i64 %22)
%24 = urem i32 %21, 32
%25 = icmp eq i32 %24, 0
%26 = trunc i64 %23 to i32
%27 = shl i32 %26, %24
%28 = zext i32 %27 to i64
%rdx.0 = select i1 %25, i64 %23, i64 %28
%29 = trunc i64 %rdx.0 to i32
%30 = add i32 %sv_0.12.reload, %29
%31 = icmp eq i32 %21, 0
%32 = icmp eq i1 %31, false
store i32 %21, i32* %.in.reg2mem
store i32 %30, i32* %sv_0.12.reg2mem
store i32 %30, i32* %sv_0.1.lcssa.reg2mem
br i1 %32, label LBL_6, label LBL_7
LBL_7:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%33 = add i32 %sv_0.1.lcssa.reload, 5
%34 = zext i32 %33 to i64
ret i64 %34
uselistorder i32 %24, { 1, 0 }
uselistorder i32 %21, { 0, 2, 1 }
uselistorder i32 %storemerge1.lcssa.reload, { 0, 3, 2, 1 }
uselistorder i32 %storemerge14.reload, { 0, 2, 1, 3 }
uselistorder i32* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32* %storemerge1.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32* %.in.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.12.reg2mem, { 2, 0, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder i1 false, { 1, 0, 2, 3 }
uselistorder i64 (i64)* @get_cabac_bypass, { 1, 0 }
uselistorder i32 0, { 4, 3, 2, 5, 0, 1 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | qemu_calculate_timeout_3270 | qemu_calculate_timeout | define i64 @FUNC() local_unnamed_addr {
LBL_0:
%0 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4
%1 = icmp eq i32 %0, 0
%2 = icmp eq i1 %1, false
br i1 %2, label LBL_1, label LBL_4
LBL_1:
%3 = call i64 @FUNC()
%4 = trunc i64 %3 to i32
%5 = icmp slt i32 %4, 1
br i1 %5, label LBL_3, label LBL_2
LBL_2:
br label LBL_4
LBL_3:
%6 = call i64 @FUNC()
%7 = icmp slt i64 %6, 10000000
%spec.select = select i1 %7, i64 %6, i64 10000000
%8 = call i64 @FUNC(i64 %spec.select)
%9 = load i32, i32* @gv_0, align 4
%10 = trunc i64 %8 to i32
%11 = add i32 %9, %10
store i32 %11, i32* @gv_0, align 4
br label LBL_4
LBL_4:
ret i64 5000
uselistorder i32* @gv_0, { 1, 0 }
uselistorder i32 0, { 1, 0 }
uselistorder label LBL_4, { 1, 2, 0 }
} | 0 |
BinRealVul | ff_thread_get_buffer_18848 | ff_thread_get_buffer | define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i32
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%3 = ptrtoint i32* %arg1 to i64
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i64*
%6 = load i64, i64* %5, align 8
store i64 %3, i64* %arg2, align 8
%7 = call i64 @FUNC(i64 %3, i64 %2)
%8 = urem i64 %1, 2
%9 = icmp eq i64 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_2, label LBL_1
LBL_1:
%11 = add i64 %2, 8
%12 = inttoptr i64 %11 to i64*
store i64 0, i64* %12, align 8
store i64 %3, i64* %rax.0.reg2mem
br label LBL_19
LBL_2:
%13 = inttoptr i64 %6 to i32*
%14 = load i32, i32* %13, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label LBL_7, label LBL_3
LBL_3:
%16 = add i64 %3, 24
%17 = inttoptr i64 %16 to i64*
%18 = load i64, i64* %17, align 8
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, 0
%22 = icmp eq i1 %21, false
br i1 %22, label LBL_6, label LBL_4
LBL_4:
%23 = add i64 %3, 32
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
br i1 %27, label LBL_7, label LBL_5
LBL_5:
%28 = add i64 %3, 16
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = icmp eq i64 %30, 4198942
br i1 %31, label LBL_7, label LBL_6
LBL_6:
%32 = call i64 @FUNC(i64 %3, i64 0, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @gv_0, i64 0, i64 0))
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_19
LBL_7:
%33 = add i64 %6, 8
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = add i64 %35, 40
%37 = inttoptr i64 %36 to i64*
%38 = call i32 @pthread_mutex_lock(i64* %37)
%39 = call i64 @FUNC(i64 %6)
%40 = add i64 %2, 8
%41 = inttoptr i64 %40 to i64*
store i64 %39, i64* %41, align 8
%42 = icmp eq i64 %39, 0
%43 = icmp eq i1 %42, false
br i1 %43, label LBL_9, label LBL_8
LBL_8:
%44 = load i64, i64* %34, align 8
%45 = add i64 %44, 40
%46 = inttoptr i64 %45 to i64*
%47 = call i32 @pthread_mutex_unlock(i64* %46)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_19
LBL_9:
%48 = inttoptr i64 %39 to i32*
%49 = add i64 %39, 4
%50 = inttoptr i64 %49 to i32*
store i32 -1, i32* %50, align 4
store i32 -1, i32* %48, align 4
%51 = add i64 %3, 32
%52 = inttoptr i64 %51 to i32*
%53 = load i32, i32* %52, align 4
%54 = icmp eq i32 %53, 0
%55 = icmp eq i1 %54, false
br i1 %55, label LBL_11, label LBL_10
LBL_10:
%56 = add i64 %3, 16
%57 = inttoptr i64 %56 to i64*
%58 = load i64, i64* %57, align 8
%59 = icmp eq i64 %58, 4198942
%60 = icmp eq i1 %59, false
br i1 %60, label LBL_12, label LBL_11
LBL_11:
%61 = trunc i64 %3 to i32
store i32 %61, i32* %sv_0.0.reg2mem
br label LBL_16
LBL_12:
%62 = add i64 %6, 16
%63 = inttoptr i64 %62 to i64*
store i64 %2, i64* %63, align 8
store i32 1, i32* %13, align 4
%64 = add i64 %6, 32
%65 = inttoptr i64 %64 to i64*
%66 = call i32 @pthread_mutex_lock(i64* %65)
%67 = add i64 %6, 72
%68 = inttoptr i64 %67 to i64*
%69 = call i32 @pthread_cond_broadcast(i64* %68)
%70 = load i32, i32* %13, align 4
%71 = icmp eq i32 %70, 0
%72 = icmp eq i1 %71, false
br i1 %72, label LBL_13, label LBL_14
LBL_13:
%73 = call i32 @pthread_cond_wait(i64* %68, i64* %65)
%74 = load i32, i32* %13, align 4
%75 = icmp eq i32 %74, 0
%76 = icmp eq i1 %75, false
br i1 %76, label LBL_13, label LBL_14
LBL_14:
%77 = add i64 %6, 24
%78 = inttoptr i64 %77 to i32*
%79 = load i32, i32* %78, align 4
%80 = call i32 @pthread_mutex_unlock(i64* %65)
%81 = add i64 %3, 24
%82 = inttoptr i64 %81 to i64*
%83 = load i64, i64* %82, align 8
%84 = inttoptr i64 %83 to i32*
%85 = load i32, i32* %84, align 4
%86 = icmp eq i32 %85, 0
%87 = icmp eq i1 %86, false
store i32 %79, i32* %sv_0.0.reg2mem
br i1 %87, label LBL_16, label LBL_15
LBL_15:
%88 = call i64 @FUNC(i64 %3)
store i32 %79, i32* %sv_0.0.reg2mem
br label LBL_16
LBL_16:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%89 = icmp eq i32 %sv_0.0.reload, 0
br i1 %89, label LBL_18, label LBL_17
LBL_17:
%90 = call i64 @FUNC(i64 %2)
store i64 0, i64* %41, align 8
br label LBL_18
LBL_18:
%91 = load i64, i64* %34, align 8
%92 = add i64 %91, 40
%93 = inttoptr i64 %92 to i64*
%94 = call i32 @pthread_mutex_unlock(i64* %93)
%95 = zext i32 %sv_0.0.reload to i64
store i64 %95, 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 %sv_0.0.reload, { 1, 0 }
uselistorder i64 %39, { 0, 1, 3, 2 }
uselistorder i64* %34, { 1, 0, 2 }
uselistorder i32* %13, { 1, 0, 2, 3 }
uselistorder i64 %3, { 6, 5, 7, 9, 8, 1, 4, 3, 2, 0, 10, 11, 12 }
uselistorder i64 %2, { 2, 1, 3, 0, 4 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 3, 2, 1 }
uselistorder i32 (i64*)* @pthread_mutex_unlock, { 2, 1, 0 }
uselistorder i32 (i64*)* @pthread_mutex_lock, { 1, 0 }
uselistorder i1 false, { 1, 2, 0, 3, 4, 5, 6, 7, 8, 9 }
uselistorder label LBL_13, { 1, 0 }
} | 1 |
BinRealVul | napi_complete_done_9786 | napi_complete_done | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi.0.reg2mem = alloca i64
%rdi.0.ph.reg2mem = alloca i64
%1 = ptrtoint i64* %arg1 to i64
%2 = load i64, i64* %0
%3 = urem i64 %1, 4
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
%6 = icmp eq i1 %5, false
store i64 0, i64* %rax.0.reg2mem
br i1 %6, label LBL_1, label LBL_14
LBL_1:
%7 = add i64 %1, 16
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
br i1 %10, label LBL_6, label LBL_2
LBL_2:
%11 = trunc i64 %arg2 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label LBL_5, label LBL_3
LBL_3:
%13 = add i64 %1, 8
%14 = inttoptr i64 %13 to i64*
%15 = load i64, i64* %14, align 8
%16 = inttoptr i64 %15 to i64*
%17 = load i64, i64* %16, align 8
%18 = icmp eq i64 %17, 0
br i1 %18, label LBL_5, label LBL_4
LBL_4:
%19 = call i64 @FUNC(i64 %17)
%20 = add i64 %1, 32
%21 = call i64 @FUNC(i64 %20, i64 %19, i64 0)
br label LBL_6
LBL_5:
%22 = call i64 @FUNC(i64 %1, i64 0)
br label LBL_6
LBL_6:
%23 = add i64 %1, 24
%24 = call i64 @FUNC(i64 %23)
%25 = trunc i64 %24 to i32
%26 = icmp eq i32 %25, 0
%27 = icmp eq i1 %26, false
store i64 %23, i64* %rdi.0.ph.reg2mem
br i1 %27, label LBL_8, label LBL_7
LBL_7:
%28 = call i64 @FUNC(i64 %2)
%29 = call i64 @FUNC(i64 %23)
%30 = call i64 @FUNC(i64 %2)
br label LBL_8
LBL_8:
%rdi.0.ph.reload = load i64, i64* %rdi.0.ph.reg2mem
store i64 %rdi.0.ph.reload, i64* %rdi.0.reg2mem
br label LBL_9
LBL_9:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%31 = call i64 @FUNC(i64 %rdi.0.reload)
%32 = and i64 %31, 4
%33 = icmp eq i64 %32, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_11, label LBL_10
LBL_10:
%35 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%36 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_1 to i64*), i32 1, i32 26, %_IO_FILE* %35)
br label LBL_11
LBL_11:
%37 = mul i64 %31, 4294967296
%sext3 = ashr exact i64 %37, 32
%38 = and i64 %sext3, -13
%39 = udiv i64 %31, 2
%40 = and i64 %39, 4
%41 = or i64 %38, %40
%42 = call i64 @FUNC(i64 %1, i64 %sext3, i64 %41)
%43 = icmp eq i64 %42, %sext3
%44 = icmp eq i1 %43, false
store i64 %1, i64* %rdi.0.reg2mem
br i1 %44, label LBL_9, label LBL_12
LBL_12:
%45 = and i64 %31, 8
%46 = icmp eq i64 %45, 0
%47 = icmp eq i1 %46, false
%48 = icmp eq i1 %47, false
store i64 1, i64* %rax.0.reg2mem
br i1 %48, label LBL_14, label LBL_13
LBL_13:
%49 = call i64 @FUNC(i64 %1)
store i64 0, i64* %rax.0.reg2mem
br label LBL_14
LBL_14:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %31, { 2, 1, 0, 3 }
uselistorder i64 %23, { 1, 0, 2 }
uselistorder i64 %17, { 1, 0 }
uselistorder i64 %1, { 5, 0, 6, 7, 4, 3, 2, 8, 1 }
uselistorder i64* %rdi.0.reg2mem, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i1 false, { 0, 3, 4, 5, 1, 2, 6, 7 }
uselistorder i64 4, { 1, 2, 0 }
uselistorder label LBL_14, { 2, 0, 1 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 0 |
BinRealVul | bcm2835_audio_write_18440 | bcm2835_audio_write | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_0, i64 0, i64 0))
%1 = call i64 @FUNC(i64 32, i64 0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i1 %2, false
br i1 %3, label LBL_2, label LBL_1
LBL_1:
%4 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_1, i64 0, i64 0))
store i64 4294967294, i64* %rax.0.reg2mem
br label LBL_4
LBL_2:
%5 = ptrtoint i64* %arg1 to i64
%6 = call i64 @FUNC(i64 %1, i64 4198845)
%7 = add i64 %1, 8
%8 = inttoptr i64 %7 to i64*
store i64 %5, i64* %8, align 8
%9 = add i64 %1, 28
%10 = inttoptr i64 %9 to i32*
store i32 3, i32* %10, align 4
%11 = add i64 %1, 16
%12 = inttoptr i64 %11 to i64*
store i64 %arg3, i64* %12, align 8
%13 = trunc i64 %arg2 to i32
%14 = add i64 %1, 24
%15 = inttoptr i64 %14 to i32*
store i32 %13, i32* %15, align 4
%16 = call i64 @FUNC(i64 %1, i64 %1)
%17 = trunc i64 %16 to i32
%18 = icmp eq i32 %17, 0
%19 = icmp eq i1 %18, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %19, label LBL_3, label LBL_4
LBL_3:
%20 = call i64 @FUNC(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_2, i64 0, i64 0))
store i64 0, i64* %rax.0.reg2mem
br label LBL_4
LBL_4:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 0, 5, 1, 2, 3, 6, 4, 7 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 }
uselistorder i64 (i8*)* @LOG_DBG, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
} | 1 |
BinRealVul | adx_encode_14141 | adx_encode | define i64 @FUNC(i64* %arg1, i64* %arg2, i16* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.1.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%sv_0.113.reg2mem = alloca i128
%sv_1.1.off014.reg2mem = alloca i32
%sv_2.015.reg2mem = alloca i32
%sv_3.016.reg2mem = alloca i32
%indvars.iv19.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i16* %arg3 to i64
%3 = ptrtoint i64* %arg2 to i64
%sv_4 = alloca i64, align 8
%4 = ptrtoint i64* %sv_4 to i64
%5 = trunc i64 %1 to i32
%sext = mul i32 %5, 65536
%6 = ashr exact i32 %sext, 16
%7 = add i64 %2, 2
%8 = inttoptr i64 %7 to i16*
%9 = load i16, i16* %8, align 2
%10 = sext i16 %9 to i32
%11 = add i64 %4, -160
store i64 0, i64* %indvars.iv19.reg2mem
store i32 %10, i32* %sv_3.016.reg2mem
store i32 %6, i32* %sv_2.015.reg2mem
store i32 0, i32* %sv_1.1.off014.reg2mem
store i128 0, i128* %sv_0.113.reg2mem
br label LBL_1
LBL_1:
%sv_0.113.reload = load i128, i128* %sv_0.113.reg2mem
%sv_1.1.off014.reload = load i32, i32* %sv_1.1.off014.reg2mem
%sv_2.015.reload = load i32, i32* %sv_2.015.reg2mem
%sv_3.016.reload = load i32, i32* %sv_3.016.reg2mem
%indvars.iv19.reload = load i64, i64* %indvars.iv19.reg2mem
%12 = mul i64 %indvars.iv19.reload, 2
%13 = add i64 %12, %3
%14 = inttoptr i64 %13 to i16*
%15 = load i16, i16* %14, align 2
%16 = sext i16 %15 to i32
%17 = mul i32 %16, 16384
%18 = sub nsw i32 %17, %sv_2.015.reload
%19 = add nsw i32 %18, %sv_3.016.reload
%20 = mul i64 %indvars.iv19.reload, 4
%21 = add i64 %20, %11
%22 = inttoptr i64 %21 to i32*
store i32 %19, i32* %22, align 4
%23 = trunc i128 %sv_0.113.reload to i32
%24 = icmp sgt i32 %19, %23
%25 = sext i32 %19 to i128
%spec.select10 = select i1 %24, i128 %25, i128 %sv_0.113.reload
%26 = icmp sgt i32 %sv_1.1.off014.reload, %19
%sv_1.0.off0 = select i1 %26, i32 %19, i32 %sv_1.1.off014.reload
%indvars.iv.next20 = add nuw nsw i64 %indvars.iv19.reload, 1
%exitcond21 = icmp eq i64 %indvars.iv.next20, 32
store i64 %indvars.iv.next20, i64* %indvars.iv19.reg2mem
store i32 %sv_2.015.reload, i32* %sv_3.016.reg2mem
store i32 %16, i32* %sv_2.015.reg2mem
store i32 %sv_1.0.off0, i32* %sv_1.1.off014.reg2mem
store i128 %spec.select10, i128* %sv_0.113.reg2mem
br i1 %exitcond21, label LBL_2, label LBL_1
LBL_2:
store i16 %15, i16* %arg3, align 2
%27 = trunc i32 %sv_2.015.reload to i16
store i16 %27, i16* %8, align 2
%28 = trunc i128 %spec.select10 to i32
%29 = or i32 %sv_1.0.off0, %28
%30 = icmp eq i32 %29, 0
br i1 %30, label LBL_3, label LBL_4
LBL_3:
%31 = call i64* @memset(i64* %arg1, i32 0, i32 18)
%32 = ptrtoint i64* %31 to i64
store i64 %32, i64* %rax.1.reg2mem
br label LBL_6
LBL_4:
%33 = ptrtoint i64* %arg1 to i64
%34 = ashr i32 %28, 2
%35 = ashr i32 %28, 31
%36 = sub nsw i32 %34, %35
%37 = sdiv i32 %sv_1.0.off0, -128
%38 = icmp ugt i32 %36, %37
%. = select i1 %38, i32 %36, i32 %37
%39 = icmp eq i32 %., 0
%40 = icmp eq i1 %39, false
%spec.select = select i1 %40, i32 %., i32 1
%41 = udiv i32 %spec.select, 256
%42 = trunc i32 %41 to i8
%43 = bitcast i64* %arg1 to i8*
store i8 %42, i8* %43, align 1
%44 = add i64 %33, 1
%45 = trunc i32 %spec.select to i8
%46 = inttoptr i64 %44 to i8*
store i8 %45, i8* %46, align 1
%47 = zext i32 %spec.select to i64
%48 = add i64 %33, 2
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_5
LBL_5:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%49 = mul i64 %indvars.iv.reload, 8
%50 = add i64 %49, %11
%51 = inttoptr i64 %50 to i32*
%52 = load i32, i32* %51, align 8
%53 = ashr i32 %52, 31
%54 = zext i32 %52 to i64
%55 = zext i32 %53 to i64
%56 = mul i64 %55, 4294967296
%57 = or i64 %56, %54
%58 = sdiv i64 %57, %47
%59 = trunc i64 %58 to i8
%60 = mul i8 %59, 16
%61 = or i64 %49, 4
%62 = add i64 %61, %11
%63 = inttoptr i64 %62 to i32*
%64 = load i32, i32* %63, align 4
%65 = ashr i32 %64, 31
%66 = zext i32 %64 to i64
%67 = zext i32 %65 to i64
%68 = mul i64 %67, 4294967296
%69 = or i64 %68, %66
%70 = sdiv i64 %69, %47
%71 = trunc i64 %70 to i8
%72 = urem i8 %71, 16
%73 = or i8 %72, %60
%74 = add i64 %48, %indvars.iv.reload
%75 = inttoptr i64 %74 to i8*
store i8 %73, i8* %75, align 1
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, 16
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %74, i64* %rax.1.reg2mem
br i1 %exitcond, label LBL_6, label LBL_5
LBL_6:
%rax.1.reload = load i64, i64* %rax.1.reg2mem
ret i64 %rax.1.reload
uselistorder i32 %spec.select, { 1, 2, 0 }
uselistorder i32 %., { 1, 0 }
uselistorder i32 %37, { 1, 0 }
uselistorder i32 %28, { 2, 0, 1 }
uselistorder i32 %sv_1.0.off0, { 1, 2, 0 }
uselistorder i128 %spec.select10, { 1, 0 }
uselistorder i32 %19, { 0, 2, 1, 3, 4 }
uselistorder i64 %indvars.iv19.reload, { 0, 2, 1 }
uselistorder i32 %sv_2.015.reload, { 1, 2, 0 }
uselistorder i64* %indvars.iv19.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.016.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.015.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.1.off014.reg2mem, { 1, 0, 2 }
uselistorder i128* %sv_0.113.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i8 16, { 1, 0 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i32 0, { 3, 2, 1, 0 }
uselistorder i64 2, { 1, 0, 2 }
uselistorder i64* %arg1, { 0, 2, 1 }
} | 1 |
BinRealVul | unescape_and_tvbuffify_telnet_option_5342 | unescape_and_tvbuffify_telnet_option | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3, i32 %arg4) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.ph.lcssa.reg2mem = alloca i32
%sv_1.013.reg2mem = alloca i32
%sv_2.015.in.reg2mem = alloca i64
%sv_3.017.in.reg2mem = alloca i64
%sv_0.0.ph23.reg2mem = alloca i32
%sv_1.0.ph24.reg2mem = alloca i32
%sv_2.0725.in.reg2mem = alloca i64
%sv_3.0826.in.reg2mem = alloca i64
%0 = icmp slt i32 %arg4, 1024
store i64 0, i64* %storemerge.reg2mem
br i1 %0, label LBL_1, label LBL_8
LBL_1:
%1 = ptrtoint i64* %arg2 to i64
%2 = zext i32 %arg3 to i64
%3 = call i64 @FUNC(i64 %1, i64 %2, i32 %arg4)
%4 = sext i32 %arg4 to i64
%5 = call i64 @FUNC(i64 %4)
%6 = icmp eq i32 %arg4, 0
%7 = icmp slt i32 %arg4, 0
%8 = icmp eq i1 %7, false
%9 = icmp eq i1 %6, false
%10 = icmp eq i1 %8, %9
store i64 %3, i64* %sv_3.0826.in.reg2mem
store i64 %5, i64* %sv_2.0725.in.reg2mem
store i32 %arg4, i32* %sv_1.0.ph24.reg2mem
store i32 0, i32* %sv_0.0.ph23.reg2mem
store i32 0, i32* %sv_0.0.ph.lcssa.reg2mem
br i1 %10, label LBL_2, label LBL_7
LBL_2:
%sv_0.0.ph23.reload = load i32, i32* %sv_0.0.ph23.reg2mem
%sv_1.0.ph24.reload = load i32, i32* %sv_1.0.ph24.reg2mem
%sv_2.0725.in.reload = load i64, i64* %sv_2.0725.in.reg2mem
%sv_3.0826.in.reload = load i64, i64* %sv_3.0826.in.reg2mem
store i64 %sv_3.0826.in.reload, i64* %sv_3.017.in.reg2mem
store i64 %sv_2.0725.in.reload, i64* %sv_2.015.in.reg2mem
store i32 %sv_1.0.ph24.reload, i32* %sv_1.013.reg2mem
br label LBL_3
LBL_3:
%sv_1.013.reload = load i32, i32* %sv_1.013.reg2mem
%sv_2.015.in.reload = load i64, i64* %sv_2.015.in.reg2mem
%sv_3.017.in.reload = load i64, i64* %sv_3.017.in.reg2mem
%sv_2.015 = inttoptr i64 %sv_2.015.in.reload to i8*
%sv_3.017 = inttoptr i64 %sv_3.017.in.reload to i8*
%11 = load i8, i8* %sv_3.017, align 1
%12 = icmp eq i8 %11, -1
%13 = icmp eq i1 %12, false
%.pre = add i64 %sv_3.017.in.reload, 1
br i1 %13, label LBL_6, label LBL_4
LBL_4:
%14 = inttoptr i64 %.pre to i8*
%15 = load i8, i8* %14, align 1
%16 = icmp eq i8 %15, -1
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_6, label LBL_5
LBL_5:
%18 = add i32 %sv_0.0.ph23.reload, 1
%19 = add i32 %sv_1.013.reload, -2
%20 = add i64 %sv_2.015.in.reload, 1
store i8 -1, i8* %sv_2.015, align 1
%21 = add i64 %sv_3.017.in.reload, 2
%22 = icmp eq i32 %19, 0
%23 = icmp slt i32 %19, 0
%24 = icmp eq i1 %23, false
%25 = icmp eq i1 %22, false
%26 = icmp eq i1 %24, %25
store i64 %21, i64* %sv_3.0826.in.reg2mem
store i64 %20, i64* %sv_2.0725.in.reg2mem
store i32 %19, i32* %sv_1.0.ph24.reg2mem
store i32 %18, i32* %sv_0.0.ph23.reg2mem
store i32 %18, i32* %sv_0.0.ph.lcssa.reg2mem
br i1 %26, label LBL_2, label LBL_7
LBL_6:
%27 = add i64 %sv_2.015.in.reload, 1
store i8 %11, i8* %sv_2.015, align 1
%28 = add i32 %sv_1.013.reload, -1
%29 = icmp eq i32 %28, 0
%30 = icmp slt i32 %28, 0
%31 = icmp eq i1 %30, false
%32 = icmp eq i1 %29, false
%33 = icmp eq i1 %31, %32
store i64 %.pre, i64* %sv_3.017.in.reg2mem
store i64 %27, i64* %sv_2.015.in.reg2mem
store i32 %28, i32* %sv_1.013.reg2mem
store i32 %sv_0.0.ph23.reload, i32* %sv_0.0.ph.lcssa.reg2mem
br i1 %33, label LBL_3, label LBL_7
LBL_7:
%34 = ptrtoint i64* %arg1 to i64
%sv_0.0.ph.lcssa.reload = load i32, i32* %sv_0.0.ph.lcssa.reg2mem
%35 = sub i32 %arg4, %sv_0.0.ph.lcssa.reload
%36 = zext i32 %35 to i64
%37 = call i64 @FUNC(i64 %5, i64 %36, i64 %36)
%38 = call i64 @FUNC(i64 %37, i64 4198838)
%39 = call i64 @FUNC(i64 %1, i64 %37)
%40 = call i64 @FUNC(i64 %34, i64 %37, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_0, i64 0, i64 0))
store i64 %37, i64* %storemerge.reg2mem
br label LBL_8
LBL_8:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %36, { 1, 0 }
uselistorder i32 %19, { 0, 2, 1 }
uselistorder i8* %sv_2.015, { 1, 0 }
uselistorder i64 %sv_3.017.in.reload, { 2, 1, 0 }
uselistorder i64 %sv_2.015.in.reload, { 1, 2, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64* %sv_3.0826.in.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_2.0725.in.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.0.ph24.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.0.ph23.reg2mem, { 2, 0, 1 }
uselistorder i64* %sv_3.017.in.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.015.in.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.013.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.0.ph.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 1, { 1, 2, 0 }
uselistorder i8 -1, { 2, 0, 1 }
uselistorder i1 false, { 7, 4, 2, 3, 5, 6, 0, 1 }
uselistorder i32 %arg4, { 3, 0, 1, 2, 4, 5, 6 }
uselistorder label LBL_8, { 1, 0 }
uselistorder label LBL_7, { 1, 0, 2 }
uselistorder label LBL_6, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | page_chain_del_17535 | page_chain_del | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.1.reg2mem = alloca i64
%storemerge2.lcssa.reg2mem = alloca i64
%.reg2mem19 = alloca i64
%.reg2mem = alloca i32
%0 = trunc i64 %arg2 to i32
%1 = icmp eq i32 %0, 0
%2 = zext i1 %1 to i64
%3 = call i64 @FUNC(i64 %2)
%4 = icmp eq i64* %arg1, null
%5 = zext i1 %4 to i64
%6 = call i64 @FUNC(i64 %5)
%7 = icmp eq i1 %4, false
%8 = icmp eq i1 %7, false
store i64 %5, i64* %storemerge2.lcssa.reg2mem
br i1 %8, label LBL_1, label LBL_4
LBL_1:
%9 = call i64 @FUNC(i64 %5)
%10 = add i32 %0, -1
%11 = icmp eq i32 %10, 0
store i32 %10, i32* %.reg2mem
store i64 %9, i64* %.reg2mem19
store i64 %5, i64* %storemerge2.lcssa.reg2mem
store i64 %9, i64* %sv_0.1.reg2mem
br i1 %11, label LBL_4, label LBL_3
LBL_2:
%.reload = load i32, i32* %.reg2mem
%12 = call i64 @FUNC(i64 %.reload20)
%13 = add i32 %.reload, -1
%14 = icmp eq i32 %13, 0
store i32 %13, i32* %.reg2mem
store i64 %12, i64* %.reg2mem19
store i64 %.reload20, i64* %storemerge2.lcssa.reg2mem
store i64 %12, i64* %sv_0.1.reg2mem
br i1 %14, label LBL_4, label LBL_3
LBL_3:
%.reload20 = load i64, i64* %.reg2mem19
%15 = icmp eq i64 %.reload20, 0
%16 = icmp eq i1 %15, false
store i64 0, i64* %storemerge.reg2mem
br i1 %16, label LBL_2, label LBL_5
LBL_4:
%sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem
%storemerge2.lcssa.reload = load i64, i64* %storemerge2.lcssa.reg2mem
%17 = call i64 @FUNC(i64 %storemerge2.lcssa.reload, i64 0)
store i64 %sv_0.1.reload, i64* %arg1, align 8
store i64 %storemerge2.lcssa.reload, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %.reload20, { 1, 2, 0 }
uselistorder i64 %5, { 0, 2, 1, 3 }
uselistorder i32* %.reg2mem, { 2, 0, 1 }
uselistorder i64* %.reg2mem19, { 0, 2, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i32 -1, { 1, 0 }
uselistorder i64 (i64)* @page_chain_next, { 1, 0 }
uselistorder i1 false, { 2, 1, 0 }
uselistorder i64 (i64)* @BUG_ON, { 1, 0 }
uselistorder i32 0, { 1, 0, 2, 3 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_4, { 1, 0, 2 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | ccw_dstream_init_2617 | ccw_dstream_init | define i64 @FUNC(i64* %arg1, i32* %arg2, i32* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i32* %arg3 to i64
%4 = ptrtoint i32* %arg2 to i64
%5 = ptrtoint i64* %arg1 to i64
%6 = add i64 %3, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = urem i32 %8, 2
%10 = icmp eq i32 %9, 0
%11 = zext i1 %10 to i64
%12 = call i64 @FUNC(i64 %11)
%13 = trunc i64 %2 to i32
%14 = mul i32 %13, 16
%15 = and i32 %14, 224
%16 = trunc i64 %1 to i32
%17 = mul i32 %16, 16
%18 = and i32 %17, 256
%19 = or i32 %15, %18
%20 = bitcast i64* %arg1 to i32*
store i32 %19, i32* %20, align 4
%21 = add i64 %4, 4
%22 = inttoptr i64 %21 to i32*
%23 = load i32, i32* %22, align 4
%24 = add i64 %5, 4
%25 = inttoptr i64 %24 to i32*
store i32 %23, i32* %25, align 4
%26 = add i64 %4, 8
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = add i64 %5, 8
%30 = inttoptr i64 %29 to i32*
store i32 %28, i32* %30, align 4
%31 = call i64 @FUNC(i64 %5)
%32 = bitcast i64* %rdi to i32*
%33 = load i32, i32* %32, align 8
%34 = and i32 %33, 256
%35 = icmp eq i32 %34, 0
%36 = icmp eq i1 %35, false
br i1 %36, label LBL_2, label LBL_1
LBL_1:
%37 = add i64 %5, 16
%38 = inttoptr i64 %37 to i64*
store i64 4198705, i64* %38, align 8
store i64 %5, i64* %rax.0.reg2mem
br label LBL_3
LBL_2:
call void @__assert_fail(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_1, i64 0, i64 0), i32 56, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_2, i64 0, i64 0))
store i64 ptrtoint (i32* @0 to i64), 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* %rax.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 1, 0 }
uselistorder void (i8*, i8*, i32, i8*)* @__assert_fail, { 1, 0 }
} | 0 |
BinRealVul | init_proc_970FX_18631 | init_proc_970FX | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = call i64 @FUNC(i64 %0)
%4 = call i64 @FUNC(i64 %0, i64 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%5 = call i64 @FUNC(i64 %0, i64 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%6 = call i64 @FUNC(i64 %0, i64 2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_2, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%7 = call i64 @FUNC(i64 %0, i64 3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_3, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%8 = call i64 @FUNC(i64 %0, i64 4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%9 = call i64 @FUNC(i64 %0)
%10 = call i64 @FUNC(i64 %0, i64 5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_5, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%11 = call i64 @FUNC(i64 %0, i64 6, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_6, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%12 = call i64 @FUNC(i64 %0, i64 7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_7, i64 0, i64 0), i64 0, i64 0, i64 4198745)
%13 = call i64 @FUNC(i64 %0, i64 8, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_8, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%14 = call i64 @FUNC(i64 %0, i64 9, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_9, i64 0, i64 0), i64 0, i64 0, i64 4198724)
%15 = call i64 @FUNC(i64 %0, i64 10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_10, i64 0, i64 0), i64 4198724, i64 4198731, i64 4198724)
%16 = bitcast i64* %arg1 to i32*
store i32 64, i32* %16, align 4
%17 = call i64 @FUNC(i64 %0)
%18 = add i64 %0, 4
%19 = inttoptr i64 %18 to i32*
store i32 128, i32* %19, align 4
%20 = add i64 %0, 8
%21 = inttoptr i64 %20 to i32*
store i32 128, i32* %21, align 4
%22 = call i64 @FUNC(i64 %0)
%23 = call i64 @FUNC(i64 %0, i64 65536)
ret i64 %23
uselistorder i64 %0, { 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 19 }
uselistorder i64 8, { 1, 0 }
uselistorder i64 4, { 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @spr_register, { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }
uselistorder i64 4198724, { 1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10 }
} | 1 |
BinRealVul | set_evtchn_to_irq_10987 | set_evtchn_to_irq | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%1 = call i64 @FUNC()
%2 = trunc i64 %1 to i32
%3 = icmp ult i32 %0, %2
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %3, label LBL_1, label LBL_6
LBL_1:
%4 = udiv i32 %0, 16
%5 = mul i32 %4, 8
%6 = zext i32 %5 to i64
%7 = add i64 %6, ptrtoint (i64* @gv_0 to i64)
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
%.pre4 = trunc i64 %arg2 to i32
store i64 %9, i64* %.reg2mem
br i1 %11, label LBL_5, label LBL_2
LBL_2:
%12 = icmp eq i32 %.pre4, -1
%13 = icmp eq i1 %12, false
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_3, label LBL_6
LBL_3:
%14 = call i64 @FUNC(i64 0)
store i64 %14, i64* %8, align 8
%15 = icmp eq i64 %14, 0
%16 = icmp eq i1 %15, false
store i64 4294967284, i64* %rax.0.reg2mem
br i1 %16, label LBL_4, label LBL_6
LBL_4:
%17 = zext i32 %4 to i64
%18 = call i64 @FUNC(i64 %17)
%.pre = load i64, i64* %8, align 8
store i64 %.pre, i64* %.reg2mem
br label LBL_5
LBL_5:
%.reload = load i64, i64* %.reg2mem
%19 = mul i64 %arg1, 4
%20 = and i64 %19, 60
%21 = add i64 %.reload, %20
%22 = inttoptr i64 %21 to i32*
store i32 %.pre4, i32* %22, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %4, { 1, 0 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 }
uselistorder i32 1, { 1, 0, 2, 3 }
uselistorder label LBL_6, { 3, 0, 1, 2 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | gf_m2ts_sync_11920 | gf_m2ts_sync | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i32
%sv_0.05.in.reg2mem = alloca i64
%sv_0.05.pre-phi.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%0 = trunc i64 %arg2 to i32
%1 = icmp eq i32 %0, 0
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = bitcast i64* %arg1 to i32*
%3 = load i32, i32* %2, align 4
%4 = icmp eq i32 %3, 71
%5 = icmp eq i1 %4, false
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %5, label LBL_2, label LBL_13
LBL_2:
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i32*
%9 = load i32, i32* %8, align 4
%10 = icmp eq i32 %9, 0
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %10, label LBL_13, label LBL_3
LBL_3:
%11 = zext i32 %9 to i64
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_4
LBL_4:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%12 = trunc i64 %indvars.iv.reload to i32
%13 = add i32 %12, 188
%14 = icmp ugt i32 %13, %9
store i32 %9, i32* %rax.0.shrunk.reg2mem
br i1 %14, label LBL_13, label LBL_5
LBL_5:
%15 = mul i64 %indvars.iv.reload, 4
%16 = add i64 %15, %6
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %17, align 4
%19 = icmp eq i32 %18, 71
%20 = icmp eq i1 %19, false
br i1 %20, label LBL_9, label LBL_6
LBL_6:
%21 = zext i32 %13 to i64
%22 = mul i64 %21, 4
%23 = add i64 %22, %6
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = icmp eq i32 %25, 71
store i32 %12, i32* %sv_0.05.pre-phi.reg2mem
store i64 %indvars.iv.reload, i64* %sv_0.05.in.reg2mem
br i1 %26, label LBL_11, label LBL_7
LBL_7:
%27 = add nuw nsw i64 %15, 768
%28 = and i64 %27, 17179869180
%29 = add i64 %28, %6
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = icmp eq i32 %31, 71
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_9, label LBL_8
LBL_8:
%34 = add i64 %6, 12
%35 = inttoptr i64 %34 to i32*
store i32 1, i32* %35, align 4
store i32 %12, i32* %sv_0.05.pre-phi.reg2mem
store i64 %indvars.iv.reload, i64* %sv_0.05.in.reg2mem
br label LBL_11
LBL_9:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%36 = icmp ult i64 %indvars.iv.next, %11
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %36, label LBL_4, label LBL_10
LBL_10:
%.pre = trunc i64 %indvars.iv.next to i32
store i32 %.pre, i32* %sv_0.05.pre-phi.reg2mem
store i64 %indvars.iv.next, i64* %sv_0.05.in.reg2mem
br label LBL_11
LBL_11:
%sv_0.05.pre-phi.reload = load i32, i32* %sv_0.05.pre-phi.reg2mem
%37 = icmp eq i32 %sv_0.05.pre-phi.reload, 0
store i32 0, i32* %rax.0.shrunk.reg2mem
br i1 %37, label LBL_13, label LBL_12
LBL_12:
%sv_0.05.in.reload = load i64, i64* %sv_0.05.in.reg2mem
%38 = and i64 %sv_0.05.in.reload, 4294967295
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @gv_0, i64 0, i64 0), i64 %38)
store i32 %sv_0.05.pre-phi.reload, i32* %rax.0.shrunk.reg2mem
br label LBL_13
LBL_13:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i64 %indvars.iv.next, { 0, 2, 1, 3 }
uselistorder i32 %12, { 1, 0, 2 }
uselistorder i64 %indvars.iv.reload, { 2, 1, 0, 4, 3 }
uselistorder i64 %6, { 3, 0, 1, 2, 4 }
uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.05.pre-phi.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %sv_0.05.in.reg2mem, { 0, 3, 2, 1 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 4, 3, 1, 2, 5 }
uselistorder i64* %arg1, { 1, 0 }
uselistorder label LBL_13, { 3, 2, 0, 1, 4 }
uselistorder label LBL_11, { 1, 2, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_4, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | evutil_make_socket_nonblocking_8488 | evutil_make_socket_nonblocking | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = trunc i64 %arg1 to i32
%sext = mul i64 %arg1, 4294967296
%1 = ashr exact i64 %sext, 32
%2 = call i32 (i32, i32, ...) @fcntl(i32 %0, i32 3)
%3 = icmp slt i32 %2, 0
%4 = icmp eq i1 %3, false
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = and i64 %1, 4294967295
%6 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_0, i64 0, i64 0), i64 %5)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%7 = and i32 %2, 2048
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %rax.0.reg2mem
br i1 %9, label LBL_5, label LBL_3
LBL_3:
%10 = trunc i64 %1 to i32
%11 = call i32 (i32, i32, ...) @fcntl(i32 %10, i32 4)
%12 = icmp eq i32 %11, -1
%13 = icmp eq i1 %12, false
store i64 0, i64* %rax.0.reg2mem
br i1 %13, label LBL_5, label LBL_4
LBL_4:
%14 = and i64 %1, 4294967295
%15 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0), i64 %14)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %1, { 1, 2, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 4, 2, 1, 3 }
uselistorder i64 (i8*, i64)* @event_warn, { 1, 0 }
uselistorder i64 4294967295, { 1, 2, 0, 3 }
uselistorder label LBL_5, { 2, 1, 0, 3 }
} | 0 |
BinRealVul | add_tree_18895 | add_tree | define i64 @FUNC(i8* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.shrunk.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_1.0.lcssa.reg2mem = alloca i64
%storemerge7.reg2mem = alloca i64
%.reg2mem = alloca i64
%0 = load i64, i64* @gv_0, align 8
%1 = icmp eq i64 %0, 0
%2 = icmp eq i1 %1, false
store i64 %0, i64* %.reg2mem
br i1 %2, label LBL_3, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 8)
store i64 %3, i64* @gv_0, align 8
%4 = icmp eq i64 %3, 0
%5 = icmp eq i1 %4, false
store i64 %3, i64* %.reg2mem
br i1 %5, label LBL_3, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0))
store i32 -1, i32* %rax.0.shrunk.reg2mem
br label LBL_17
LBL_3:
%sext = mul i64 %arg2, 4294967296
%7 = ashr exact i64 %sext, 32
%.reload = load i64, i64* %.reg2mem
%storemerge.in5 = inttoptr i64 %.reload to i64*
%storemerge6 = load i64, i64* %storemerge.in5, align 8
%8 = icmp eq i64 %storemerge6, 0
%9 = icmp eq i1 %8, false
store i64 0, i64* %sv_1.0.lcssa.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %9, label LBL_4, label LBL_8
LBL_4:
%10 = trunc i64 %7 to i32
store i64 %storemerge6, i64* %storemerge7.reg2mem
br label LBL_5
LBL_5:
%storemerge7.reload = load i64, i64* %storemerge7.reg2mem
%11 = add i64 %storemerge7.reload, 20
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = icmp eq i32 %13, %10
%15 = icmp eq i1 %14, false
br i1 %15, label LBL_6, label LBL_16
LBL_6:
%16 = add i64 %storemerge7.reload, 24
%storemerge.in = inttoptr i64 %16 to i64*
%storemerge = load i64, i64* %storemerge.in, align 8
%17 = icmp eq i64 %storemerge, 0
%18 = icmp eq i1 %17, false
store i64 %storemerge, i64* %storemerge7.reg2mem
br i1 %18, label LBL_5, label LBL_7
LBL_7:
%19 = add i64 %storemerge7.reload, 16
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = add i32 %21, 1
store i64 %storemerge7.reload, i64* %sv_1.0.lcssa.reg2mem
store i32 %22, i32* %sv_0.0.lcssa.reg2mem
br label LBL_8
LBL_8:
%23 = call i64 @FUNC(i64 32)
%24 = icmp eq i64 %23, 0
%25 = icmp eq i1 %24, false
br i1 %25, label LBL_10, label LBL_9
LBL_9:
%26 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0))
store i32 -1, i32* %rax.0.shrunk.reg2mem
br label LBL_17
LBL_10:
%sv_1.0.lcssa.reload = load i64, i64* %sv_1.0.lcssa.reg2mem
%27 = inttoptr i64 %23 to i64*
%28 = call i64* @memset(i64* %27, i32 0, i32 32)
%29 = call i32 @strlen(i8* %arg1)
%30 = sext i32 %29 to i64
%31 = add nsw i64 %30, 1
%32 = call i64 @FUNC(i64 %31)
store i64 %32, i64* %27, align 8
%33 = icmp eq i64 %32, 0
%34 = icmp eq i1 %33, false
br i1 %34, label LBL_12, label LBL_11
LBL_11:
%35 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0))
%36 = call i64 @FUNC(i64 %23)
store i32 -1, i32* %rax.0.shrunk.reg2mem
br label LBL_17
LBL_12:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
%37 = inttoptr i64 %32 to i8*
%38 = call i8* @strcpy(i8* %37, i8* %arg1)
%39 = load i64, i64* %27, align 8
%40 = inttoptr i64 %39 to i8*
%41 = call i32 @strlen(i8* %40)
%42 = sext i32 %41 to i64
%43 = add i64 %23, 8
%44 = inttoptr i64 %43 to i64*
store i64 %42, i64* %44, align 8
%45 = add i64 %23, 16
%46 = inttoptr i64 %45 to i32*
store i32 %sv_0.0.lcssa.reload, i32* %46, align 4
%47 = trunc i64 %7 to i32
%48 = add i64 %23, 20
%49 = inttoptr i64 %48 to i32*
store i32 %47, i32* %49, align 4
%50 = icmp eq i64 %sv_1.0.lcssa.reload, 0
%51 = icmp eq i1 %50, false
br i1 %51, label LBL_14, label LBL_13
LBL_13:
%52 = load i64, i64* @gv_0, align 8
%53 = inttoptr i64 %52 to i64*
store i64 %23, i64* %53, align 8
br label LBL_15
LBL_14:
%54 = add i64 %sv_1.0.lcssa.reload, 24
%55 = inttoptr i64 %54 to i64*
store i64 %23, i64* %55, align 8
br label LBL_15
LBL_15:
%56 = ptrtoint i8* %arg1 to i64
%57 = call i64 @FUNC(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_2, i64 0, i64 0), i64 %56, i32 %sv_0.0.lcssa.reload)
store i32 %sv_0.0.lcssa.reload, i32* %rax.0.shrunk.reg2mem
br label LBL_17
LBL_16:
%58 = add i64 %storemerge7.reload, 16
%59 = inttoptr i64 %58 to i32*
%60 = load i32, i32* %59, align 4
store i32 %60, i32* %rax.0.shrunk.reg2mem
br label LBL_17
LBL_17:
%rax.0.shrunk.reload = load i32, i32* %rax.0.shrunk.reg2mem
%rax.0 = zext i32 %rax.0.shrunk.reload to i64
ret i64 %rax.0
uselistorder i64 %32, { 1, 0, 2 }
uselistorder i64 %sv_1.0.lcssa.reload, { 1, 0 }
uselistorder i64 %23, { 2, 1, 3, 4, 5, 0, 6, 7 }
uselistorder i64 %storemerge7.reload, { 3, 0, 4, 1, 2 }
uselistorder i64* %.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge7.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32* %sv_0.0.lcssa.reg2mem, { 0, 2, 1 }
uselistorder i32* %rax.0.shrunk.reg2mem, { 0, 1, 5, 4, 3, 2 }
uselistorder i32 (i8*)* @strlen, { 1, 0 }
uselistorder i64 16, { 0, 2, 1 }
uselistorder i32 0, { 1, 0 }
uselistorder i64 32, { 1, 0 }
uselistorder i32 -1, { 2, 1, 0 }
uselistorder i64 (i8*)* @LM_ERR, { 2, 1, 0 }
uselistorder i64 (i64)* @shm_malloc, { 2, 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder i1 false, { 1, 2, 4, 5, 3, 0, 6, 7 }
uselistorder i32 1, { 5, 4, 3, 2, 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | tee_shm_free_13024 | tee_shm_free | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = urem i64 %1, 2
%4 = icmp eq i64 %3, 0
br i1 %4, label LBL_2, label LBL_1
LBL_1:
%5 = add i64 %2, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7)
store i64 %8, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%9 = call i64 @FUNC(i64 %2)
store i64 %9, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
} | 1 |
BinRealVul | gen_rsr_16336 | gen_rsr | define i64 @FUNC(i32* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = zext i32 %arg3 to i64
%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
%9 = icmp eq i64 %8, 0
br i1 %9, label LBL_4, label LBL_1
LBL_1:
%10 = add i64 %5, ptrtoint (i64* @gv_1 to i64)
%11 = inttoptr i64 %10 to i64*
%12 = load i64, i64* %11, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label LBL_3, label LBL_2
LBL_2:
%14 = ptrtoint i32* %arg1 to i64
store i64 %14, i64* %rax.0.reg2mem
br label LBL_5
LBL_3:
%15 = and i64 %arg2, 4294967295
%16 = mul i64 %4, 4
%17 = add i64 %16, ptrtoint (i32** @gv_2 to i64)
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = zext i32 %19 to i64
%21 = call i64 @FUNC(i64 %15, i64 %20)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%22 = sext i32 %arg3 to i64
%23 = call i64 @FUNC(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_3, i64 0, i64 0), i64 %4, i64 %22, i64 %3, i64 %2, i64 %1)
store i64 %23, 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 %5, { 1, 0 }
uselistorder i64 %4, { 2, 0, 1 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i32 %arg3, { 1, 0 }
} | 1 |
BinRealVul | usb_net_init_1301 | usb_net_init | define i64 @FUNC(i32* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i32* %arg1 to i64
%1 = call i64 @FUNC(i64 376)
%2 = inttoptr i64 %1 to i32*
store i32 1, i32* %2, align 4
%3 = add i64 %1, 8
%4 = inttoptr i64 %3 to i64*
store i64 4198805, i64* %4, align 8
%5 = add i64 %1, 16
%6 = inttoptr i64 %5 to i64*
store i64 4198812, i64* %6, align 8
%7 = add i64 %1, 24
%8 = inttoptr i64 %7 to i64*
store i64 4198819, i64* %8, align 8
%9 = add i64 %1, 32
%10 = inttoptr i64 %9 to i64*
store i64 4198826, i64* %10, align 8
%11 = add i64 %1, 40
%12 = inttoptr i64 %11 to i64*
store i64 4198833, i64* %12, align 8
%13 = add i64 %1, 304
%14 = inttoptr i64 %13 to i32*
store i32 1, i32* %14, align 4
%15 = add i64 %1, 308
%16 = inttoptr i64 %15 to i32*
store i32 0, i32* %16, align 4
%17 = add i64 %1, 312
%18 = inttoptr i64 %17 to i32*
store i32 0, i32* %18, align 4
%19 = add i64 %1, 316
%20 = inttoptr i64 %19 to i32*
store i32 1000000, i32* %20, align 4
%21 = add i64 %1, 320
%22 = inttoptr i64 %21 to i32*
store i32 0, i32* %22, align 4
%23 = add i64 %1, 324
%24 = inttoptr i64 %23 to i32*
store i32 0, i32* %24, align 4
%25 = add i64 %1, 328
%26 = inttoptr i64 %25 to i32*
store i32 4660, i32* %26, align 4
%27 = add i64 %1, 332
%28 = inttoptr i64 %27 to i64*
%29 = bitcast i32* %arg1 to i64*
%30 = call i64* @memcpy(i64* %28, i64* %29, i32 6)
%31 = add i64 %1, 368
%32 = call i64 @FUNC(i64 %31)
%33 = add i64 %1, 48
%34 = call i64 @FUNC(i64 %33, i64 256, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_0, i64 0, i64 0))
%35 = add i64 %0, 24
%36 = inttoptr i64 %35 to i64*
%37 = load i64, i64* %36, align 8
%38 = add i64 %0, 16
%39 = inttoptr i64 %38 to i64*
%40 = load i64, i64* %39, align 8
%41 = add i64 %0, 8
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = zext i32 %43 to i64
%45 = call i64 @FUNC(i64 %44, i64 %40, i64 %37, i64 4198840, i64 4198847, i64 4198858)
%46 = add i64 %1, 360
%47 = inttoptr i64 %46 to i64*
store i64 %45, i64* %47, align 8
%48 = call i64 @FUNC(i64 %45, i64 %27)
%49 = add i64 %1, 337
%50 = inttoptr i64 %49 to i8*
%51 = load i8, i8* %50, align 1
%52 = add i64 %1, 336
%53 = inttoptr i64 %52 to i8*
%54 = load i8, i8* %53, align 1
%55 = add i64 %1, 335
%56 = inttoptr i64 %55 to i8*
%57 = load i8, i8* %56, align 1
%58 = add i64 %1, 334
%59 = inttoptr i64 %58 to i8*
%60 = load i8, i8* %59, align 1
%61 = add i64 %1, 333
%62 = inttoptr i64 %61 to i8*
%63 = load i8, i8* %62, align 1
%64 = add i64 %1, 338
%65 = zext i8 %51 to i32
%66 = zext i8 %54 to i32
%67 = zext i8 %57 to i32
%68 = zext i8 %60 to i32
%69 = zext i8 %63 to i32
%70 = inttoptr i64 %64 to i8*
%71 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %70, i32 18, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i32 64, i32 %69, i32 %68, i32 %67, i32 %66, i32 %65)
%72 = load i8, i8* %50, align 1
%73 = load i8, i8* %53, align 1
%74 = load i8, i8* %56, align 1
%75 = load i8, i8* %59, align 1
%76 = load i8, i8* %62, align 1
%77 = inttoptr i64 %27 to i8*
%78 = load i8, i8* %77, align 1
%79 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%80 = zext i8 %72 to i32
%81 = zext i8 %73 to i32
%82 = zext i8 %78 to i32
%83 = zext i8 %76 to i32
%84 = zext i8 %75 to i32
%85 = zext i8 %74 to i32
%86 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %79, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @gv_3, i64 0, i64 0), i32 %82, i32 %83, i32 %84, i32 %85, i32 %81, i32 %80)
ret i64 %1
} | 0 |
BinRealVul | mlx4_register_mac_10866 | mlx4_register_mac | define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64* %arg4) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i32
%sv_1.16.reg2mem = alloca i32
%.reg2mem = alloca i1
%indvars.iv.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = ptrtoint i64* %arg4 to i64
%4 = ptrtoint i64* %arg1 to i64
%5 = urem i64 %arg2, 256
%6 = call i64 @FUNC(i64 %4)
%narrow = mul nuw nsw i64 %5, 3088
%7 = add i64 %6, %narrow
%8 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_0, i64 0, i64 0), i64 %arg3, i64 %3, i64 %2, i64 %1)
%9 = add i64 %7, 3080
%10 = call i64 @FUNC(i64 %9)
%11 = add i64 %7, 1024
store i64 0, i64* %indvars.iv.reg2mem
store i1 false, i1* %.reg2mem
store i32 -1, i32* %sv_1.16.reg2mem
br label LBL_1
LBL_1:
%sv_1.16.reload = load i32, i32* %sv_1.16.reg2mem
%.reload = load i1, i1* %.reg2mem
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
br i1 %.reload, label LBL_3, label LBL_2
LBL_2:
%12 = mul i64 %indvars.iv.reload, 4
%13 = add i64 %12, %7
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %14, align 4
%16 = icmp eq i32 %15, 0
%17 = icmp eq i1 %16, false
%18 = trunc i64 %indvars.iv.reload to i32
store i32 %18, i32* %sv_1.0.reg2mem
br i1 %17, label LBL_3, label LBL_5
LBL_3:
%19 = mul i64 %indvars.iv.reload, 8
%20 = add i64 %19, %11
%21 = inttoptr i64 %20 to i64*
%22 = load i64, i64* %21, align 8
%23 = call i64 @FUNC(i64 %22)
%24 = and i64 %23, 281474976710655
%25 = icmp eq i64 %24, %arg3
%26 = icmp eq i1 %25, false
store i32 %sv_1.16.reload, i32* %sv_1.0.reg2mem
br i1 %26, label LBL_5, label LBL_4
LBL_4:
%27 = trunc i64 %indvars.iv.reload to i32
%28 = bitcast i64* %arg4 to i32*
store i32 %27, i32* %28, align 4
%29 = mul i64 %indvars.iv.reload, 4
%30 = add i64 %29, %7
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* %31, align 4
%33 = add i32 %32, 1
store i32 %33, i32* %31, align 4
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_5:
%sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%34 = icmp ult i64 %indvars.iv.next, 255
%35 = icmp slt i32 %sv_1.0.reload, 0
%36 = icmp eq i1 %35, false
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i1 %36, i1* %.reg2mem
store i32 %sv_1.0.reload, i32* %sv_1.16.reg2mem
br i1 %34, label LBL_1, label LBL_6
LBL_6:
store i64 4294967284, i64* %sv_0.0.reg2mem
br i1 %36, label LBL_7, label LBL_11
LBL_7:
%37 = zext i32 %sv_1.0.reload to i64
%38 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_1, i64 0, i64 0), i64 %37, i64 %3, i64 %2, i64 %1)
%39 = add i64 %7, 3072
%40 = inttoptr i64 %39 to i32*
%41 = load i32, i32* %40, align 4
%42 = add i64 %7, 3076
%43 = inttoptr i64 %42 to i32*
%44 = load i32, i32* %43, align 4
%45 = icmp eq i32 %41, %44
%46 = icmp eq i1 %45, false
store i64 4294967268, i64* %sv_0.0.reg2mem
br i1 %46, label LBL_8, label LBL_11
LBL_8:
%47 = sext i32 %sv_1.0.reload to i64
%48 = mul i64 %47, 4
%49 = add i64 %48, %7
%50 = inttoptr i64 %49 to i32*
store i32 1, i32* %50, align 4
%51 = or i64 %arg3, -9223372036854775808
%52 = call i64 @FUNC(i64 %51)
%53 = mul i64 %47, 8
%54 = add i64 %53, %11
%55 = inttoptr i64 %54 to i64*
store i64 %52, i64* %55, align 8
%56 = call i64 @FUNC(i64 %4, i64 %5, i64 %11)
%57 = and i64 %56, 4294967295
%58 = call i64 @FUNC(i64 %57)
%59 = trunc i64 %58 to i32
%60 = icmp eq i32 %59, 0
br i1 %60, label LBL_10, label LBL_9
LBL_9:
%61 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_2, i64 0, i64 0), i64 %arg3, i64 %5, i64 %2, i64 %1)
store i32 0, i32* %50, align 4
store i64 0, i64* %55, align 8
store i64 %56, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_10:
%62 = bitcast i64* %arg4 to i32*
store i32 %sv_1.0.reload, i32* %62, align 4
%63 = load i32, i32* %40, align 4
%64 = add i32 %63, 1
store i32 %64, i32* %40, align 4
store i64 %56, i64* %sv_0.0.reg2mem
br label LBL_11
LBL_11:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%65 = call i64 @FUNC(i64 %9)
%66 = and i64 %sv_0.0.reload, 4294967295
ret i64 %66
uselistorder i64 %56, { 1, 0, 2 }
uselistorder i32* %40, { 1, 0, 2 }
uselistorder i1 %36, { 1, 0 }
uselistorder i32 %sv_1.0.reload, { 3, 2, 1, 4, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 5, 2, 4, 1, 3 }
uselistorder i64 %11, { 2, 0, 1 }
uselistorder i64 %7, { 0, 5, 4, 1, 2, 3, 6 }
uselistorder i64 %5, { 1, 0, 2 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i1* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.16.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.0.reg2mem, { 0, 2, 1 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 4, 3, 1, 2, 5 }
uselistorder i64* %0, { 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @mlx4_dbg, { 1, 0 }
uselistorder i64* %arg4, { 1, 0, 2 }
uselistorder i64 %arg3, { 1, 2, 0, 3 }
uselistorder label LBL_11, { 2, 3, 0, 1, 4 }
uselistorder label LBL_5, { 1, 0 }
uselistorder label LBL_1, { 1, 0 }
} | 0 |
BinRealVul | hard_if_event_4894 | hard_if_event | define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg3 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = icmp eq i64 %1, 0
%3 = icmp eq i64 %arg2, 1
%4 = icmp eq i1 %3, %2
store i64 %1, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_1, label LBL_2
LBL_1:
%5 = call i64 @FUNC(i64 %0)
store i64 %5, i64* %sv_0.0.reg2mem
br label LBL_2
LBL_2:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%6 = icmp eq i64 %sv_0.0.reload, 0
br i1 %6, label LBL_13, label LBL_3
LBL_3:
store i64 %arg2, i64* @0, align 8
switch i64 %arg2, label LBL_12 [
i64 2, label LBL_4
i64 3, label LBL_5
i64 4, label LBL_5
i64 5, label LBL_6
i64 6, label LBL_7
i64 7, label LBL_9
]
LBL_4:
%7 = call i64 @FUNC(i64 %sv_0.0.reload)
br label LBL_12
LBL_5:
%8 = call i64 @FUNC(i64 %sv_0.0.reload)
br label LBL_12
LBL_6:
%9 = call i64 @FUNC(i64* nonnull @gv_0)
%10 = add i64 %sv_0.0.reload, 24
%11 = call i64 @FUNC(i64 %10)
%12 = call i64 @FUNC(i64* nonnull @gv_0)
%13 = call i64 @FUNC(i64 %sv_0.0.reload)
br label LBL_12
LBL_7:
%14 = inttoptr i64 %sv_0.0.reload to i64*
%15 = load i64, i64* %14, align 8
%16 = icmp eq i64 %15, 0
br i1 %16, label LBL_12, label LBL_8
LBL_8:
%17 = call i64 @FUNC(i64 %15)
br label LBL_12
LBL_9:
%18 = add i64 %sv_0.0.reload, 16
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = icmp eq i32 %20, 0
br i1 %21, label LBL_12, label LBL_10
LBL_10:
%22 = add i64 %sv_0.0.reload, 8
%23 = inttoptr i64 %22 to i64*
%24 = load i64, i64* %23, align 8
%25 = call i64 @FUNC(i64 %24)
%26 = call i64 @FUNC(i64 %sv_0.0.reload)
%27 = inttoptr i64 %sv_0.0.reload to i64*
%28 = load i64, i64* %27, align 8
%29 = call i64 @FUNC(i64 %28)
%30 = inttoptr i64 %29 to i64*
%31 = load i64, i64* %30, align 8
%32 = icmp eq i64 %sv_0.0.reload, %31
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_12, label LBL_11
LBL_11:
%34 = call i64 @FUNC(i64 %29)
br label LBL_12
LBL_12:
%35 = call i64 @FUNC(i64 %sv_0.0.reload)
br label LBL_13
LBL_13:
ret i64 0
uselistorder i64 %sv_0.0.reload, { 1, 6, 4, 3, 2, 5, 7, 8, 9, 10, 11, 0 }
uselistorder i64 %arg2, { 2, 1, 0 }
uselistorder label LBL_13, { 1, 0 }
uselistorder label LBL_12, { 1, 0, 2, 4, 3, 6, 7, 8, 5 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | sclp_service_call_15369 | sclp_service_call | define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%sv_0.0.reg2mem = alloca i64
%sv_1 = alloca i32, align 4
%0 = call i64 @FUNC(i64 %arg1)
%1 = trunc i64 %0 to i32
%2 = icmp eq i32 %1, 0
store i64 1, i64* %sv_0.0.reg2mem
br i1 %2, label LBL_1, label LBL_5
LBL_1:
%3 = and i64 %arg1, -2147483641
%4 = icmp eq i64 %3, 0
store i64 2, i64* %sv_0.0.reg2mem
br i1 %4, label LBL_2, label LBL_5
LBL_2:
%5 = bitcast i32* %sv_1 to i64*
%6 = call i64 @FUNC(i64 %arg1, i64* nonnull %5, i64 2)
%7 = load i32, i32* %sv_1, align 4
%8 = urem i32 %7, 65536
%9 = zext i32 %8 to i64
%10 = call i64 @FUNC(i64 %9)
%11 = trunc i64 %10 to i16
%12 = icmp ult i16 %11, 2
store i64 2, i64* %sv_0.0.reg2mem
br i1 %12, label LBL_5, label LBL_3
LBL_3:
%13 = load i32, i32* %sv_1, align 4
%14 = urem i32 %13, 65536
%15 = zext i32 %14 to i64
%16 = call i64 @FUNC(i64 %15)
%17 = trunc i64 %16 to i16
%18 = icmp ult i16 %17, 257
store i64 2, i64* %sv_0.0.reg2mem
br i1 %18, label LBL_4, label LBL_5
LBL_4:
%19 = and i64 %arg2, 4294967295
%20 = call i64 @FUNC(i64* nonnull %5, i64 %19)
%21 = load i32, i32* %sv_1, align 4
%22 = urem i32 %21, 65536
%23 = zext i32 %22 to i64
%24 = call i64 @FUNC(i64 %23)
%25 = urem i64 %24, 65536
%26 = call i64 @FUNC(i64 %arg1, i64* nonnull %5, i64 %25)
%27 = call i64 @FUNC(i64 %arg1)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_5
LBL_5:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
ret i64 %sv_0.0.reload
uselistorder i32* %sv_1, { 2, 1, 0, 3 }
uselistorder i64* %sv_0.0.reg2mem, { 0, 5, 2, 1, 3, 4 }
uselistorder i64 (i64)* @be16_to_cpu, { 2, 1, 0 }
uselistorder i64 2, { 1, 0, 3, 2 }
uselistorder i32 1, { 5, 4, 3, 2, 1, 0 }
uselistorder i64 %arg1, { 1, 0, 3, 2, 4 }
uselistorder label LBL_5, { 4, 1, 0, 2, 3 }
} | 1 |
BinRealVul | stl_update_connects_remove_1_19184 | stl_update_connects_remove_1 | 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 = 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_7, label LBL_1
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%sext = mul i64 %arg2, 4294967296
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
%9 = load i64, i64* %8, align 8
%10 = ashr exact i64 %sext, 32
%11 = ashr exact i64 %sext, 31
%12 = add nsw i64 %11, %10
%13 = mul i64 %12, 4
%14 = add i64 %9, %13
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %15, align 4
%17 = icmp eq i32 %16, -1
%18 = zext i1 %17 to i64
%19 = add i64 %14, 4
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* %20, align 4
%22 = icmp eq i32 %21, -1
%23 = zext i1 %22 to i64
%24 = add nuw nsw i64 %23, %18
%25 = add i64 %14, 8
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = icmp eq i32 %27, -1
%29 = zext i1 %28 to i64
%30 = add nuw nsw i64 %24, %29
%31 = trunc i64 %30 to i32
%32 = icmp eq i32 %31, 0
%33 = icmp eq i1 %32, false
br i1 %33, label LBL_3, label LBL_2
LBL_2:
%34 = add i64 %6, 16
%35 = inttoptr i64 %34 to i32*
%36 = load i32, i32* %35, align 4
%37 = add i32 %36, -1
store i32 %37, i32* %35, align 4
store i64 %6, i64* %rax.0.reg2mem
br label LBL_7
LBL_3:
%38 = icmp eq i32 %31, 1
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_5, label LBL_4
LBL_4:
%40 = add i64 %6, 20
%41 = inttoptr i64 %40 to i32*
%42 = load i32, i32* %41, align 4
%43 = add i32 %42, -1
store i32 %43, i32* %41, align 4
store i64 %6, i64* %rax.0.reg2mem
br label LBL_7
LBL_5:
%44 = icmp eq i32 %31, 2
%45 = icmp eq i1 %44, false
store i64 %30, i64* %rax.0.reg2mem
br i1 %45, label LBL_7, label LBL_6
LBL_6:
%46 = add i64 %6, 24
%47 = inttoptr i64 %46 to i32*
%48 = load i32, i32* %47, align 4
%49 = add i32 %48, -1
store i32 %49, i32* %47, align 4
store i64 %6, 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 %6, { 2, 5, 1, 4, 0, 3, 6 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1, 5 }
uselistorder label LBL_7, { 1, 2, 3, 4, 0 }
} | 1 |
BinRealVul | _zval_internal_ptr_dtor_10241 | _zval_internal_ptr_dtor | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = trunc i64 %1 to i32
%3 = and i64 %1, 4294967295
%4 = icmp slt i32 %2, 1
store i64 %3, i64* %rax.0.reg2mem
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = bitcast i64* %rdi to i32*
%6 = add i32 %2, -1
%7 = inttoptr i64 %arg1 to i32*
store i32 %6, i32* %7, align 4
%8 = load i32, i32* %5, align 8
%9 = zext i32 %8 to i64
%10 = icmp eq i32 %8, 0
%11 = icmp eq i1 %10, false
store i64 %9, i64* %rax.0.reg2mem
br i1 %11, label LBL_3, label LBL_2
LBL_2:
%12 = call i64 @FUNC(i64 %arg1)
store i64 %12, i64* %rax.0.reg2mem
br label LBL_3
LBL_3:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i32 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
} | 0 |
BinRealVul | dwt_decode97_float_15682 | dwt_decode97_float | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%.lcssa.reg2mem = alloca i64
%storemerge120.reg2mem = alloca i32
%indvars.iv30.reg2mem = alloca i64
%sv_0.117.reg2mem = alloca i32
%sv_1.118.reg2mem = alloca i32
%sv_0.0.lcssa.reg2mem = alloca i32
%sv_0.014.reg2mem = alloca i32
%sv_1.015.reg2mem = alloca i32
%storemerge310.reg2mem = alloca i32
%indvars.iv.reg2mem = alloca i64
%sv_2.17.reg2mem = alloca i32
%sv_3.18.reg2mem = alloca i32
%sv_2.0.lcssa.reg2mem = alloca i32
%sv_2.05.reg2mem = alloca i32
%sv_3.06.reg2mem = alloca i32
%storemerge24.reg2mem = alloca i32
%.reg2mem41 = alloca i64
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%3 = add i64 %2, 8
%4 = inttoptr i64 %3 to i64*
%5 = load i64, i64* %4, align 8
%6 = trunc i64 %1 to i32
%sext = mul i64 %1, 4294967296
%7 = ashr exact i64 %sext, 29
%8 = add nsw i64 %7, -8
%9 = add i64 %8, %5
%10 = inttoptr i64 %9 to i64*
%11 = load i64, i64* %10, align 8
%12 = inttoptr i64 %11 to i32*
%13 = load i32, i32* %12, align 4
%14 = add i64 %2, 24
%15 = inttoptr i64 %14 to i64*
%16 = load i64, i64* %15, align 8
%17 = and i64 %1, 4294967295
%18 = icmp eq i32 %6, 0
store i64 %17, i64* %.lcssa.reg2mem
br i1 %18, label LBL_25, label LBL_1
LBL_1:
%19 = bitcast i64* %rdi to i32*
%20 = add i64 %16, 20
%21 = add i64 %2, 16
%22 = inttoptr i64 %21 to i64*
store i64 %5, i64* %.reg2mem
store i64 0, i64* %.reg2mem41
store i32 0, i32* %storemerge24.reg2mem
br label LBL_2
LBL_2:
%storemerge24.reload = load i32, i32* %storemerge24.reg2mem
%.reload42 = load i64, i64* %.reg2mem41
%.reload = load i64, i64* %.reg2mem
%23 = mul i64 %.reload42, 8
%24 = add i64 %23, %.reload
%25 = inttoptr i64 %24 to i64*
%26 = load i64, i64* %25, align 8
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = add i64 %26, 4
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* %30, align 4
%32 = load i64, i64* %22, align 8
%33 = add i64 %32, %23
%34 = inttoptr i64 %33 to i64*
%35 = load i64, i64* %34, align 8
%36 = add i64 %35, 4
%37 = inttoptr i64 %36 to i32*
%38 = load i32, i32* %37, align 4
%39 = icmp sgt i32 %31, 0
br i1 %39, label LBL_3, label LBL_14
LBL_3:
%40 = inttoptr i64 %35 to i32*
%41 = load i32, i32* %40, align 4
%42 = sext i32 %41 to i64
%43 = mul i64 %42, 4
%44 = add i64 %43, %20
%45 = icmp slt i32 %41, %28
%46 = sub i32 1, %41
%47 = icmp slt i32 %46, %28
%48 = add i32 %41, %28
%49 = zext i32 %41 to i64
%50 = icmp sgt i32 %28, 0
%wide.trip.count = zext i32 %28 to i64
store i32 0, i32* %storemerge310.reg2mem
br label LBL_12
LBL_4:
%sv_2.05.reload = load i32, i32* %sv_2.05.reg2mem
%sv_3.06.reload = load i32, i32* %sv_3.06.reg2mem
%51 = add i32 %sv_2.05.reload, %103
%52 = sext i32 %51 to i64
%53 = mul i64 %52, 4
%54 = add i64 %53, %arg2
%55 = inttoptr i64 %54 to i32*
%56 = load i32, i32* %55, align 4
%57 = call i128 @FUNC(i32 %56)
%58 = sext i32 %sv_3.06.reload to i64
%59 = mul i64 %58, 4
%60 = add i64 %59, %44
%61 = load i32, i32* inttoptr (i64 4202512 to i32*), align 16
%62 = call i128 @FUNC(i32 %61)
%63 = call i128 @FUNC(i128 %62, i128 %57)
%64 = call i64 @__asm_movss.1(i128 %63)
%65 = trunc i64 %64 to i32
%66 = inttoptr i64 %60 to i32*
store i32 %65, i32* %66, align 4
%67 = add i32 %sv_3.06.reload, 2
%68 = add i32 %sv_2.05.reload, 1
%69 = icmp slt i32 %67, %28
store i32 %67, i32* %sv_3.06.reg2mem
store i32 %68, i32* %sv_2.05.reg2mem
store i32 %68, i32* %sv_2.0.lcssa.reg2mem
br i1 %69, label LBL_4, label LBL_5
LBL_5:
br i1 %47, label LBL_6, label LBL_8
LBL_6:
%sv_2.0.lcssa.reload = load i32, i32* %sv_2.0.lcssa.reg2mem
%70 = mul i32 %storemerge310.reload, %13
store i32 %46, i32* %sv_3.18.reg2mem
store i32 %sv_2.0.lcssa.reload, i32* %sv_2.17.reg2mem
br label LBL_7
LBL_7:
%sv_2.17.reload = load i32, i32* %sv_2.17.reg2mem
%sv_3.18.reload = load i32, i32* %sv_3.18.reg2mem
%71 = add i32 %sv_2.17.reload, %70
%72 = sext i32 %71 to i64
%73 = mul i64 %72, 4
%74 = add i64 %73, %arg2
%75 = sext i32 %sv_3.18.reload to i64
%76 = mul i64 %75, 4
%77 = add i64 %76, %44
%78 = inttoptr i64 %74 to i32*
%79 = load i32, i32* %78, align 4
%80 = call i128 @FUNC(i32 %79)
%81 = call i64 @__asm_movss.1(i128 %80)
%82 = trunc i64 %81 to i32
%83 = inttoptr i64 %77 to i32*
store i32 %82, i32* %83, align 4
%84 = add i32 %sv_3.18.reload, 2
%85 = add i32 %sv_2.17.reload, 1
%86 = icmp slt i32 %84, %28
store i32 %84, i32* %sv_3.18.reg2mem
store i32 %85, i32* %sv_2.17.reg2mem
br i1 %86, label LBL_7, label LBL_8
LBL_8:
%87 = call i64 @FUNC(i64 %20, i64 %49, i32 %48)
br i1 %50, label LBL_9, label LBL_11
LBL_9:
%88 = mul i32 %storemerge310.reload, %13
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_10
LBL_10:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%89 = mul i64 %indvars.iv.reload, 4
%90 = add i64 %89, %44
%91 = trunc i64 %indvars.iv.reload to i32
%92 = add i32 %88, %91
%93 = sext i32 %92 to i64
%94 = mul i64 %93, 4
%95 = add i64 %94, %arg2
%96 = inttoptr i64 %90 to i32*
%97 = load i32, i32* %96, align 4
%98 = call i128 @FUNC(i32 %97)
%99 = call i64 @__asm_movss.1(i128 %98)
%100 = trunc i64 %99 to i32
%101 = inttoptr i64 %95 to i32*
store i32 %100, i32* %101, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %exitcond, label LBL_11, label LBL_10
LBL_11:
%102 = add nuw nsw i32 %storemerge310.reload, 1
%exitcond29 = icmp eq i32 %102, %31
store i32 %102, i32* %storemerge310.reg2mem
br i1 %exitcond29, label LBL_14, label LBL_12
LBL_12:
%storemerge310.reload = load i32, i32* %storemerge310.reg2mem
store i32 0, i32* %sv_2.0.lcssa.reg2mem
br i1 %45, label LBL_4.lr.ph, label LBL_5
LBL_13:
%103 = mul i32 %storemerge310.reload, %13
store i32 %41, i32* %sv_3.06.reg2mem
store i32 0, i32* %sv_2.05.reg2mem
br label LBL_4
LBL_14:
%104 = icmp sgt i32 %28, 0
br i1 %104, label LBL_15, label LBL_23
LBL_15:
%105 = sext i32 %38 to i64
%106 = mul i64 %105, 4
%107 = add i64 %106, %20
%108 = icmp slt i32 %38, %31
%109 = sub i32 1, %38
%110 = icmp slt i32 %109, %31
%111 = add i32 %38, %31
%112 = zext i32 %38 to i64
%wide.trip.count32 = zext i32 %31 to i64
store i32 0, i32* %storemerge120.reg2mem
br label LBL_22
LBL_16:
%sv_0.014.reload = load i32, i32* %sv_0.014.reg2mem
%sv_1.015.reload = load i32, i32* %sv_1.015.reg2mem
%113 = mul i32 %sv_0.014.reload, %13
%114 = add i32 %113, %storemerge120.reload
%115 = sext i32 %114 to i64
%116 = mul i64 %115, 4
%117 = add i64 %116, %arg2
%118 = inttoptr i64 %117 to i32*
%119 = load i32, i32* %118, align 4
%120 = call i128 @FUNC(i32 %119)
%121 = sext i32 %sv_1.015.reload to i64
%122 = mul i64 %121, 4
%123 = add i64 %122, %107
%124 = call i128 @FUNC(i32 1056964608)
%125 = call i128 @FUNC(i128 %124, i128 %120)
%126 = call i64 @__asm_movss.1(i128 %125)
%127 = trunc i64 %126 to i32
%128 = inttoptr i64 %123 to i32*
store i32 %127, i32* %128, align 4
%129 = add i32 %sv_1.015.reload, 2
%130 = add i32 %sv_0.014.reload, 1
%131 = icmp slt i32 %129, %31
store i32 %129, i32* %sv_1.015.reg2mem
store i32 %130, i32* %sv_0.014.reg2mem
store i32 %130, i32* %sv_0.0.lcssa.reg2mem
br i1 %131, label LBL_16, label LBL_17
LBL_17:
%sv_0.0.lcssa.reload = load i32, i32* %sv_0.0.lcssa.reg2mem
store i32 %109, i32* %sv_1.118.reg2mem
store i32 %sv_0.0.lcssa.reload, i32* %sv_0.117.reg2mem
br i1 %110, label LBL_18, label LBL_19
LBL_18:
%sv_0.117.reload = load i32, i32* %sv_0.117.reg2mem
%sv_1.118.reload = load i32, i32* %sv_1.118.reg2mem
%132 = mul i32 %sv_0.117.reload, %13
%133 = add i32 %132, %storemerge120.reload
%134 = sext i32 %133 to i64
%135 = mul i64 %134, 4
%136 = add i64 %135, %arg2
%137 = sext i32 %sv_1.118.reload to i64
%138 = mul i64 %137, 4
%139 = add i64 %138, %107
%140 = inttoptr i64 %136 to i32*
%141 = load i32, i32* %140, align 4
%142 = call i128 @FUNC(i32 %141)
%143 = call i64 @__asm_movss.1(i128 %142)
%144 = trunc i64 %143 to i32
%145 = inttoptr i64 %139 to i32*
store i32 %144, i32* %145, align 4
%146 = add i32 %sv_1.118.reload, 2
%147 = add i32 %sv_0.117.reload, 1
%148 = icmp slt i32 %146, %31
store i32 %146, i32* %sv_1.118.reg2mem
store i32 %147, i32* %sv_0.117.reg2mem
br i1 %148, label LBL_18, label LBL_19
LBL_19:
%149 = call i64 @FUNC(i64 %20, i64 %112, i32 %111)
store i64 0, i64* %indvars.iv30.reg2mem
br i1 %39, label LBL_20, label LBL_21
LBL_20:
%indvars.iv30.reload = load i64, i64* %indvars.iv30.reg2mem
%150 = mul i64 %indvars.iv30.reload, 4
%151 = add i64 %150, %107
%152 = trunc i64 %indvars.iv30.reload to i32
%153 = mul i32 %13, %152
%154 = add i32 %153, %storemerge120.reload
%155 = sext i32 %154 to i64
%156 = mul i64 %155, 4
%157 = add i64 %156, %arg2
%158 = inttoptr i64 %151 to i32*
%159 = load i32, i32* %158, align 4
%160 = call i128 @FUNC(i32 %159)
%161 = call i64 @__asm_movss.1(i128 %160)
%162 = trunc i64 %161 to i32
%163 = inttoptr i64 %157 to i32*
store i32 %162, i32* %163, align 4
%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_21, label LBL_20
LBL_21:
%164 = add nuw nsw i32 %storemerge120.reload, 1
%exitcond34 = icmp eq i32 %164, %28
store i32 %164, i32* %storemerge120.reg2mem
br i1 %exitcond34, label LBL_23, label LBL_22
LBL_22:
%storemerge120.reload = load i32, i32* %storemerge120.reg2mem
store i32 %38, i32* %sv_1.015.reg2mem
store i32 0, i32* %sv_0.014.reg2mem
store i32 0, i32* %sv_0.0.lcssa.reg2mem
br i1 %108, label LBL_16, label LBL_17
LBL_23:
%165 = add i32 %storemerge24.reload, 1
%166 = load i32, i32* %19, align 8
%167 = zext i32 %166 to i64
%168 = sext i32 %165 to i64
%169 = icmp slt i64 %168, %167
store i64 %167, i64* %.lcssa.reg2mem
br i1 %169, label LBL_23.LBL_2_crit_edge, label LBL_25
LBL_24:
%.pre = load i64, i64* %4, align 8
store i64 %.pre, i64* %.reg2mem
store i64 %168, i64* %.reg2mem41
store i32 %165, i32* %storemerge24.reg2mem
br label LBL_2
LBL_25:
%.lcssa.reload = load i64, i64* %.lcssa.reg2mem
ret i64 %.lcssa.reload
uselistorder i32 %storemerge120.reload, { 1, 2, 3, 0 }
uselistorder i32 %storemerge310.reload, { 1, 2, 3, 0 }
uselistorder i32 %41, { 0, 3, 1, 4, 2, 5 }
uselistorder i32 %38, { 0, 3, 1, 4, 2, 5 }
uselistorder i64 %35, { 1, 0 }
uselistorder i32 %31, { 6, 7, 1, 0, 4, 5, 2, 3 }
uselistorder i32 %28, { 1, 4, 7, 8, 2, 3, 0, 5, 6 }
uselistorder i64 %23, { 1, 0 }
uselistorder i64 %20, { 2, 0, 3, 1 }
uselistorder i32 %13, { 0, 1, 2, 5, 3, 4 }
uselistorder i64 %1, { 1, 2, 0 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i64* %.reg2mem41, { 1, 0, 2 }
uselistorder i32* %storemerge24.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_3.06.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_2.05.reg2mem, { 2, 1, 0 }
uselistorder i32* %sv_2.0.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_3.18.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_2.17.reg2mem, { 1, 0, 2 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_1.015.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_0.014.reg2mem, { 1, 2, 0 }
uselistorder i32* %sv_0.0.lcssa.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_1.118.reg2mem, { 2, 0, 1 }
uselistorder i32* %sv_0.117.reg2mem, { 2, 0, 1 }
uselistorder i64* %indvars.iv30.reg2mem, { 2, 0, 1 }
uselistorder i64 (i64, i64, i32)* @sr_1d97_float, { 1, 0 }
uselistorder i32 0, { 1, 2, 0, 8, 5, 4, 3, 7, 9, 6, 10 }
uselistorder label LBL_20, { 1, 0 }
uselistorder label LBL_18, { 1, 0 }
uselistorder label LBL_17, { 1, 0 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_5, { 1, 0 }
} | 1 |
BinRealVul | ff_mpeg_flush_16375 | ff_mpeg_flush | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = icmp eq i64* %arg1, null
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = add i64 %0, 176
%3 = inttoptr i64 %2 to i64*
store i64 0, i64* %3, align 8
%4 = add i64 %0, 168
%5 = inttoptr i64 %4 to i64*
store i64 0, i64* %5, align 8
%6 = add i64 %0, 160
%7 = inttoptr i64 %6 to i64*
store i64 0, i64* %7, align 8
%8 = add i64 %0, 188
%9 = inttoptr i64 %8 to i32*
store i32 0, i32* %9, align 4
%10 = add i64 %0, 184
%11 = inttoptr i64 %10 to i32*
store i32 0, i32* %11, align 4
%12 = add i64 %0, 192
%13 = inttoptr i64 %12 to i32*
store i32 -1, i32* %13, align 4
%14 = add i64 %0, 196
%15 = inttoptr i64 %14 to i32*
store i32 0, i32* %15, align 4
%16 = add i64 %0, 200
%17 = inttoptr i64 %16 to i32*
store i32 0, i32* %17, align 4
%18 = add i64 %0, 204
%19 = inttoptr i64 %18 to i32*
store i32 0, i32* %19, align 4
%20 = add i64 %0, 208
%21 = inttoptr i64 %20 to i32*
store i32 0, i32* %21, align 4
%22 = add i64 %0, 212
%23 = inttoptr i64 %22 to i32*
store i32 0, i32* %23, align 4
%24 = add i64 %0, 216
%25 = inttoptr i64 %24 to i32*
store i32 0, i32* %25, align 4
br label LBL_2
LBL_2:
ret i64 %0
uselistorder i32 0, { 1, 2, 3, 4, 5, 6, 0, 7 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | gen_wsr_ccount_15677 | gen_wsr_ccount | define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = urem i64 %1, 2
%3 = icmp eq i64 %2, 0
br i1 %3, label LBL_1, label LBL_2
LBL_1:
%4 = load i64, i64* @gv_0, align 8
%5 = zext i32 %arg3 to i64
%6 = call i64 @FUNC(i64 %4, i64 %5)
store i64 0, i64* %storemerge.reg2mem
br label LBL_3
LBL_2:
%7 = ptrtoint i64* %arg1 to i64
%8 = call i64 @FUNC()
%9 = load i64, i64* @gv_0, align 8
%10 = zext i32 %arg3 to i64
%11 = call i64 @FUNC(i64 %9, i64 %10)
%12 = call i64 @FUNC()
%13 = call i64 @FUNC(i64 %7, i64 0)
store i64 1, i64* %storemerge.reg2mem
br label LBL_3
LBL_3:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64 (i64, i64)* @gen_helper_wsr_ccount, { 1, 0 }
uselistorder i64* @gv_0, { 1, 0 }
uselistorder i32 %arg3, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | __reg_combine_64_into_32_12883 | __reg_combine_64_into_32 | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = call i64 @FUNC(i64 %0)
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label LBL_3, label LBL_1
LBL_1:
%5 = add i64 %0, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7)
%9 = trunc i64 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label LBL_3, label LBL_2
LBL_2:
%11 = trunc i64 %7 to i32
%12 = add i64 %0, 32
%13 = inttoptr i64 %12 to i32*
store i32 %11, i32* %13, align 4
%14 = load i64, i64* %6, align 8
%15 = trunc i64 %14 to i32
%16 = add i64 %0, 36
%17 = inttoptr i64 %16 to i32*
store i32 %15, i32* %17, align 4
br label LBL_3
LBL_3:
%18 = add i64 %0, 16
%19 = inttoptr i64 %18 to i64*
%20 = load i64, i64* %19, align 8
%21 = call i64 @FUNC(i64 %20)
%22 = trunc i64 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label LBL_5, label LBL_4
LBL_4:
%24 = load i64, i64* %19, align 8
%25 = trunc i64 %24 to i32
%26 = add i64 %0, 40
%27 = inttoptr i64 %26 to i32*
store i32 %25, i32* %27, align 4
br label LBL_5
LBL_5:
%28 = add i64 %0, 24
%29 = inttoptr i64 %28 to i64*
%30 = load i64, i64* %29, align 8
%31 = call i64 @FUNC(i64 %30)
%32 = trunc i64 %31 to i32
%33 = icmp eq i32 %32, 0
br i1 %33, label LBL_7, label LBL_6
LBL_6:
%34 = load i64, i64* %29, align 8
%35 = trunc i64 %34 to i32
%36 = add i64 %0, 44
%37 = inttoptr i64 %36 to i32*
store i32 %35, i32* %37, align 4
br label LBL_7
LBL_7:
%38 = call i64 @FUNC(i64 %0)
%39 = call i64 @FUNC(i64 %0)
%40 = call i64 @FUNC(i64 %0)
ret i64 %40
uselistorder i64 %0, { 7, 6, 5, 4, 8, 3, 9, 0, 1, 2, 11, 10 }
uselistorder i64 (i64)* @__reg64_bound_u32, { 1, 0 }
uselistorder i64 (i64)* @__reg64_bound_s32, { 1, 0 }
} | 1 |
BinRealVul | muscle_list_files_6722 | muscle_list_files | define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%sv_0.1.lcssa.reg2mem = alloca i32
%sv_0.0.reg2mem = alloca i32
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i64
%sv_2.11.reg2mem = alloca i64
%sv_1.12.reg2mem = alloca i64
%sv_0.13.reg2mem = alloca i32
%storemerge4.reg2mem = alloca i32
%.reg2mem = alloca i64
%rdi = alloca i64, align 8
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i64, align 8
%3 = call i64 @FUNC(i64 %2)
%4 = trunc i64 %1 to i32
%5 = icmp eq i32 %4, 0
store i32 0, i32* %sv_0.1.lcssa.reg2mem
br i1 %5, label LBL_7, label LBL_1
LBL_1:
%6 = add i64 %2, 8
%7 = inttoptr i64 %6 to i64*
%8 = bitcast i64* %rdi to i32*
%9 = ptrtoint i64* %sv_3 to i64
%10 = ptrtoint i64* %arg2 to i64
%11 = add i64 %9, -16
%12 = inttoptr i64 %11 to i64*
%13 = add i64 %2, 16
%14 = inttoptr i64 %13 to i64*
store i64 0, i64* %.reg2mem
store i32 0, i32* %storemerge4.reg2mem
store i32 0, i32* %sv_0.13.reg2mem
store i64 %arg3, i64* %sv_1.12.reg2mem
store i64 %10, i64* %sv_2.11.reg2mem
br label LBL_2
LBL_2:
%sv_1.12.reload = load i64, i64* %sv_1.12.reg2mem
%sv_0.13.reload = load i32, i32* %sv_0.13.reg2mem
%15 = icmp ult i64 %sv_1.12.reload, 2
store i32 %sv_0.13.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %15, label LBL_7, label LBL_3
LBL_3:
%sv_2.11.reload = load i64, i64* %sv_2.11.reg2mem
%storemerge4.reload = load i32, i32* %storemerge4.reg2mem
%.reload = load i64, i64* %.reg2mem
%16 = load i64, i64* %7, align 8
%17 = mul i64 %.reload, 4
%18 = add i64 %16, %17
%19 = add i64 %18, 3
%20 = inttoptr i64 %19 to i8*
%21 = load i8, i8* %20, align 1
%22 = zext i8 %21 to i64
%23 = add i64 %18, 2
%24 = inttoptr i64 %23 to i8*
%25 = load i8, i8* %24, align 1
%26 = zext i8 %25 to i64
%27 = add i64 %18, 1
%28 = inttoptr i64 %27 to i8*
%29 = load i8, i8* %28, align 1
%30 = inttoptr i64 %18 to i8*
%31 = load i8, i8* %30, align 1
store i64 %22, i64* %12, align 8
%32 = zext i8 %29 to i64
%33 = zext i8 %31 to i64
%34 = call i64 @FUNC(i64 %26, i64 1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_0, i64 0, i64 0), i64 %33, i64 %32, i64 %26)
%35 = inttoptr i64 %18 to i64*
%36 = call i32 @memcmp(i64* %14, i64* %35, i32 2)
%37 = icmp eq i32 %36, 0
%38 = icmp eq i1 %37, false
store i64 %sv_2.11.reload, i64* %sv_2.0.reg2mem
store i64 %sv_1.12.reload, i64* %sv_1.0.reg2mem
store i32 %sv_0.13.reload, i32* %sv_0.0.reg2mem
br i1 %38, label LBL_6, label LBL_4
LBL_4:
%39 = load i8, i8* %24, align 1
%40 = inttoptr i64 %sv_2.11.reload to i8*
store i8 %39, i8* %40, align 1
%41 = add i64 %sv_2.11.reload, 1
%42 = load i8, i8* %20, align 1
%43 = inttoptr i64 %41 to i8*
store i8 %42, i8* %43, align 1
%44 = load i8, i8* %40, align 1
%45 = or i8 %44, %42
%46 = icmp eq i8 %45, 0
store i64 %sv_2.11.reload, i64* %sv_2.0.reg2mem
store i64 %sv_1.12.reload, i64* %sv_1.0.reg2mem
store i32 %sv_0.13.reload, i32* %sv_0.0.reg2mem
br i1 %46, label LBL_6, label LBL_5
LBL_5:
%47 = add i64 %sv_2.11.reload, 2
%48 = add i32 %sv_0.13.reload, 2
%49 = add i64 %sv_1.12.reload, -2
store i64 %47, i64* %sv_2.0.reg2mem
store i64 %49, i64* %sv_1.0.reg2mem
store i32 %48, i32* %sv_0.0.reg2mem
br label LBL_6
LBL_6:
%sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_2.0.reload = load i64, i64* %sv_2.0.reg2mem
%50 = add i32 %storemerge4.reload, 1
%51 = load i32, i32* %8, align 8
%52 = zext i32 %51 to i64
%53 = sext i32 %50 to i64
%54 = icmp slt i64 %53, %52
store i64 %53, i64* %.reg2mem
store i32 %50, i32* %storemerge4.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.13.reg2mem
store i64 %sv_1.0.reload, i64* %sv_1.12.reg2mem
store i64 %sv_2.0.reload, i64* %sv_2.11.reg2mem
store i32 %sv_0.0.reload, i32* %sv_0.1.lcssa.reg2mem
br i1 %54, label LBL_2, label LBL_7
LBL_7:
%sv_0.1.lcssa.reload = load i32, i32* %sv_0.1.lcssa.reg2mem
%55 = zext i32 %sv_0.1.lcssa.reload to i64
ret i64 %55
uselistorder i64 %18, { 0, 2, 1, 4, 3 }
uselistorder i64 %sv_2.11.reload, { 2, 0, 3, 4, 1 }
uselistorder i32 %sv_0.13.reload, { 3, 1, 2, 0 }
uselistorder i64 %sv_1.12.reload, { 2, 0, 1, 3 }
uselistorder i64* %.reg2mem, { 1, 0, 2 }
uselistorder i32* %storemerge4.reg2mem, { 1, 0, 2 }
uselistorder i32* %sv_0.13.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_1.12.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.11.reg2mem, { 1, 0, 2 }
uselistorder i64* %sv_2.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %sv_0.0.reg2mem, { 0, 2, 1, 3 }
uselistorder i32* %sv_0.1.lcssa.reg2mem, { 0, 2, 1, 3 }
uselistorder i32 2, { 1, 0 }
uselistorder i64 1, { 1, 0, 2 }
uselistorder i64 2, { 1, 2, 0 }
uselistorder i32 0, { 4, 1, 2, 0, 3 }
uselistorder label LBL_6, { 1, 0, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | fdctrl_handle_drive_specification_command_15486 | fdctrl_handle_drive_specification_command | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%1 = call i64 @FUNC(i64 %0)
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 %5, 4
%7 = add i64 %0, -4
%8 = add i64 %7, %6
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9, align 4
%11 = trunc i32 %10 to i8
%12 = icmp sgt i8 %11, -1
br i1 %12, label LBL_4, label LBL_1
LBL_1:
%13 = and i32 %10, 64
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%15 = add i64 %0, 4
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* %16, align 4
%18 = bitcast i64* %arg1 to i32*
store i32 %17, i32* %18, align 4
store i32 0, i32* %3, align 4
%19 = add i64 %0, 12
%20 = inttoptr i64 %19 to i32*
store i32 0, i32* %20, align 4
%21 = call i64 @FUNC(i64 %0, i64 4)
store i64 %21, i64* %rax.0.reg2mem
br label LBL_6
LBL_3:
%22 = call i64 @FUNC(i64 %0)
store i64 %22, i64* %rax.0.reg2mem
br label LBL_6
LBL_4:
%23 = add i64 %0, 12
%24 = inttoptr i64 %23 to i32*
%25 = load i32, i32* %24, align 4
%26 = zext i32 %25 to i64
%27 = icmp slt i32 %25, 8
store i64 %26, i64* %rax.0.reg2mem
br i1 %27, label LBL_6, label LBL_5
LBL_5:
%28 = inttoptr i64 %1 to i32*
%29 = load i32, i32* %28, align 4
%30 = mul i32 %29, 4
%31 = or i32 %30, 128
%32 = bitcast i64* %arg1 to i32*
store i32 %31, i32* %32, align 4
%33 = call i64 @FUNC(i64 %0, i64 1)
store i64 %33, i64* %rax.0.reg2mem
br label LBL_6
LBL_6:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 5, 6, 3, 1, 2, 4, 0, 7, 8 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1 }
uselistorder i64 (i64, i64)* @fdctrl_set_fifo, { 1, 0 }
uselistorder i64 4, { 1, 2, 0 }
} | 1 |
BinRealVul | reftype_box_dump_12057 | reftype_box_dump | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rdx.0.lcssa.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 = ptrtoint i64* %arg1 to i64
%6 = add i64 %5, 4
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7, align 4
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
br i1 %10, label LBL_1, label LBL_7
LBL_1:
%11 = trunc i64 %3 to i32
%12 = bitcast i64* %arg1 to i32*
%13 = icmp eq i32 %11, 0
%14 = icmp eq i1 %13, false
%spec.store.select = select i1 %14, i32 %8, i32 1969974903
store i32 %spec.store.select, i32* %12, align 4
%15 = call i64 @FUNC(i64 %5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %arg2)
%16 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 %arg2, i64 %4, i64 %2, i64 %1)
%17 = add i64 %5, 8
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* %18, align 4
%20 = icmp eq i32 %19, 0
store i64 %arg2, i64* %rdx.0.lcssa.reg2mem
br i1 %20, label LBL_4, label LBL_2
LBL_2:
%21 = add i64 %5, 16
%22 = inttoptr i64 %21 to i64*
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_3
LBL_3:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%23 = load i64, i64* %22, align 8
%24 = mul i64 %indvars.iv.reload, 4
%25 = add i64 %23, %24
%26 = inttoptr i64 %25 to i32*
%27 = load i32, i32* %26, align 4
%28 = zext i32 %27 to i64
%29 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_2, i64 0, i64 0), i64 %28, i64 %4, i64 %2, i64 %1)
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%30 = load i32, i32* %18, align 4
%31 = zext i32 %30 to i64
%32 = icmp ult i64 %indvars.iv.next, %31
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
store i64 %28, i64* %rdx.0.lcssa.reg2mem
br i1 %32, label LBL_3, label LBL_4
LBL_4:
%33 = add i64 %5, 24
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %34, align 4
%36 = icmp eq i32 %35, 0
%37 = icmp eq i1 %36, false
br i1 %37, label LBL_6, label LBL_5
LBL_5:
%rdx.0.lcssa.reload = load i64, i64* %rdx.0.lcssa.reg2mem
%38 = call i64 @FUNC(i64 %arg2, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_3, i64 0, i64 0), i64 %rdx.0.lcssa.reload, i64 %4, i64 %2, i64 %1)
br label LBL_6
LBL_6:
%39 = call i64 @FUNC(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0), i64 %5, i64 %arg2)
store i32 1, i32* %12, align 4
br label LBL_7
LBL_7:
ret i64 0
uselistorder i32* %18, { 1, 0 }
uselistorder i32* %12, { 1, 0 }
uselistorder i64 %5, { 0, 2, 3, 1, 4, 5 }
uselistorder i64 %4, { 2, 1, 0 }
uselistorder i64 %2, { 2, 1, 0 }
uselistorder i64 %1, { 2, 1, 0 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @gf_fprintf, { 1, 2, 0 }
uselistorder i32 0, { 1, 0, 2, 3 }
uselistorder i64 %arg2, { 2, 1, 3, 0, 4, 6, 5 }
uselistorder label LBL_7, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 1 |
BinRealVul | handle_ud_6723 | handle_ud | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg1 to i64
%sv_1 = alloca i64, align 8
%1 = load i32, i32* inttoptr (i64 4210732 to i32*), align 4
%2 = icmp eq i32 %1, 0
store i64 1, i64* %sv_0.0.reg2mem
br i1 %2, label LBL_4, label LBL_1
LBL_1:
%3 = call i64 @FUNC(i64 %0)
%4 = call i64 @FUNC(i64 %0, i64 %3, i64* nonnull %sv_1, i64 5, i64* nonnull %sv_1)
%5 = trunc i64 %4 to i32
%6 = icmp eq i32 %5, 0
%7 = icmp eq i1 %6, false
store i64 1, i64* %sv_0.0.reg2mem
br i1 %7, label LBL_4, label LBL_2
LBL_2:
%8 = call i32 @memcmp(i64* nonnull %sv_1, i64* nonnull @gv_0, i32 5)
%9 = icmp eq i32 %8, 0
%10 = icmp eq i1 %9, false
store i64 1, i64* %sv_0.0.reg2mem
br i1 %10, label LBL_4, label LBL_3
LBL_3:
%11 = call i64 @FUNC(i64 %0)
%12 = add i64 %11, 5
%13 = call i64 @FUNC(i64 %0, i64 %12)
store i64 0, i64* %sv_0.0.reg2mem
br label LBL_4
LBL_4:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%14 = call i64 @FUNC(i64 %0, i64 %sv_0.0.reload)
%15 = trunc i64 %14 to i32
%16 = icmp eq i32 %15, 1
%17 = icmp eq i1 %16, false
store i64 0, i64* %storemerge.reg2mem
br i1 %17, label LBL_5, label LBL_7
LBL_5:
%18 = icmp eq i32 %15, 0
store i64 1, i64* %storemerge.reg2mem
br i1 %18, label LBL_7, label LBL_6
LBL_6:
%19 = call i64 @FUNC(i64 %0, i64 6)
store i64 1, i64* %storemerge.reg2mem
br label LBL_7
LBL_7:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %0, { 4, 5, 1, 0, 3, 2 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1, 3 }
uselistorder i64 5, { 1, 0 }
uselistorder i64 1, { 1, 0, 2, 3, 4 }
uselistorder label LBL_7, { 1, 0, 2 }
} | 0 |
BinRealVul | rtsp_cmd_options_10779 | rtsp_cmd_options | define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = load i64, i64* %0
%3 = load i64, i64* %0
%4 = ptrtoint i64* %arg1 to i64
%5 = add i64 %4, 8
%6 = inttoptr i64 %5 to i64*
%7 = load i64, i64* %6, align 8
%8 = call i64 @FUNC(i64 %7, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_0, i64 0, i64 0), i64 200, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 %2, i64 %1)
%9 = and i64 %3, 4294967295
%10 = load i64, i64* %6, align 8
%11 = call i64 @FUNC(i64 %10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0), i64 %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 %2, i64 %1)
%12 = load i64, i64* %6, align 8
%13 = call i64 @FUNC(i64 %12, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_3, i64 0, i64 0), i64 ptrtoint ([48 x i8]* @gv_4 to i64), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 %2, i64 %1)
%14 = load i64, i64* %6, align 8
%15 = call i64 @FUNC(i64 %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_5, i64 0, i64 0), i64 ptrtoint ([48 x i8]* @gv_4 to i64), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_1, i64 0, i64 0), i64 %2, i64 %1)
ret i64 %15
uselistorder i64 %2, { 3, 1, 2, 0 }
uselistorder i64 %1, { 3, 1, 2, 0 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 ptrtoint ([48 x i8]* @gv_4 to i64), { 1, 0 }
uselistorder i64 (i64, i8*, i64, i8*, i64, i64)* @avio_printf, { 3, 2, 1, 0 }
} | 0 |
BinRealVul | ipsec_xmit_sanity_check_dev_17587 | ipsec_xmit_sanity_check_dev | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = icmp eq i64* %arg1, null
%1 = icmp eq i1 %0, false
br i1 %1, label LBL_2, label LBL_1
LBL_1:
%2 = load i32, i32* inttoptr (i64 4210724 to i32*), align 4
%3 = urem i32 %2, 2
%4 = zext i32 %3 to i64
%5 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @gv_0, i64 0, i64 0))
store i64 1, i64* %rax.0.reg2mem
br label LBL_5
LBL_2:
%6 = ptrtoint i64* %arg1 to i64
%7 = add i64 %6, 8
%8 = inttoptr i64 %7 to i64*
store i64 %6, i64* %8, align 8
%9 = load i64, i64* %arg1, align 8
%10 = add i64 %6, 16
%11 = inttoptr i64 %10 to i64*
store i64 %9, i64* %11, align 8
%12 = icmp eq i64 %9, 0
%13 = icmp eq i1 %12, false
br i1 %13, label LBL_4, label LBL_3
LBL_3:
%14 = load i32, i32* @gv_1, align 4
%15 = urem i32 %14, 2
%16 = zext i32 %15 to i64
%17 = call i64 @FUNC(i64 %16, i8* getelementptr inbounds ([85 x i8], [85 x i8]* @gv_2, i64 0, i64 0))
store i64 3, i64* %rax.0.reg2mem
br label LBL_5
LBL_4:
%18 = add i64 %9, 8
%19 = inttoptr i64 %18 to i32*
%20 = load i32, i32* %19, align 4
%21 = add i64 %6, 24
%22 = inttoptr i64 %21 to i32*
store i32 %20, i32* %22, align 4
%23 = load i64, i64* %11, align 8
%24 = add i64 %23, 8
%25 = inttoptr i64 %24 to i32*
%26 = load i32, i32* %25, align 4
%27 = add i64 %6, 28
%28 = inttoptr i64 %27 to i32*
store i32 %26, i32* %28, align 4
%29 = load i64, i64* %8, align 8
%30 = add i64 %29, 8
%31 = add i64 %6, 32
%32 = inttoptr i64 %31 to i64*
store i64 %30, i64* %32, 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 %9, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 }
uselistorder i64 (i64, i8*)* @KLIPS_PRINT, { 1, 0 }
uselistorder i64* %arg1, { 0, 2, 1 }
} | 1 |
BinRealVul | client_x11_display_valid_11747 | client_x11_display_valid | define i64 @FUNC(i64 %arg1) local_unnamed_addr {
LBL_0:
%storemerge.reg2mem = alloca i64
%storemerge12.reg2mem = alloca i64
%0 = inttoptr i64 %arg1 to i8*
%1 = call i32 @strlen(i8* %0)
%2 = sext i32 %1 to i64
%3 = icmp eq i32 %1, 0
store i64 0, i64* %storemerge12.reg2mem
store i64 1, i64* %storemerge.reg2mem
br i1 %3, label LBL_5, label LBL_1
LBL_1:
%storemerge12.reload = load i64, i64* %storemerge12.reg2mem
%4 = call i16** @__ctype_b_loc()
%5 = load i16*, i16** %4, align 8
%6 = ptrtoint i16* %5 to i64
%7 = add i64 %storemerge12.reload, %arg1
%8 = inttoptr i64 %7 to i8*
%9 = load i8, i8* %8, align 1
%10 = zext i8 %9 to i64
%11 = mul i64 %10, 2
%12 = add i64 %11, %6
%13 = inttoptr i64 %12 to i16*
%14 = load i16, i16* %13, align 2
%15 = and i16 %14, 8
%16 = icmp eq i16 %15, 0
%17 = icmp eq i1 %16, false
br i1 %17, label LBL_4, label LBL_2
LBL_2:
%18 = sext i8 %9 to i32
%19 = call i8* @strchr(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i32 %18)
%20 = icmp eq i8* %19, null
%21 = icmp eq i1 %20, false
br i1 %21, label LBL_4, label LBL_3
LBL_3:
%22 = load i8, i8* %8, align 1
%23 = sext i8 %22 to i64
%24 = and i64 %23, 4294967295
%25 = call i64 @FUNC(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_1, i64 0, i64 0), i64 %24)
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%26 = add nuw i64 %storemerge12.reload, 1
%27 = icmp ult i64 %26, %2
store i64 %26, i64* %storemerge12.reg2mem
store i64 1, i64* %storemerge.reg2mem
br i1 %27, label LBL_1, label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64* %storemerge12.reg2mem, { 2, 0, 1 }
uselistorder i64* %storemerge.reg2mem, { 0, 1, 3, 2 }
uselistorder i64 1, { 0, 2, 1 }
uselistorder i32 1, { 1, 0 }
uselistorder label LBL_5, { 0, 2, 1 }
uselistorder label LBL_1, { 1, 0 }
} | 1 |
BinRealVul | r_trie_free_13328 | r_trie_free | define i64 @FUNC(i64* %arg1) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%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)
call void @free(i64* nonnull %arg1)
store i64 0, i64* %arg1, align 8
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 void (i64*)* @free, { 1, 0 }
uselistorder i64* %arg1, { 0, 1, 3, 2 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | mem_resize_6628 | mem_resize | define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%storemerge.reg2mem = alloca i64
%rdi.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 = call i64 @FUNC(i64 100, i64 %arg2, i64 %3, i64 %4, i64 %2, i64 %1)
%6 = icmp eq i64 %arg2, 0
%7 = icmp eq i1 %6, false
store i64 100, i64* %rdi.0.reg2mem
br i1 %7, label LBL_2, label LBL_1
LBL_1:
%8 = call i64 @FUNC(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @gv_0, i64 0, i64 0), i64 %arg2, i64 %3, i64 %4, i64 %2, i64 %1)
store i64 ptrtoint ([84 x i8]* @gv_0 to i64), i64* %rdi.0.reg2mem
br label LBL_2
LBL_2:
%rdi.0.reload = load i64, i64* %rdi.0.reg2mem
%9 = call i64 @FUNC(i64 %rdi.0.reload, i64 %arg2, i64 1)
%10 = icmp eq i64 %9, 0
%11 = icmp eq i1 %10, false
%or.cond = or i1 %6, %11
br i1 %or.cond, label LBL_4, label LBL_3
LBL_3:
%12 = call i64 @FUNC(i64 100, i64 ptrtoint ([27 x i8]* @gv_1 to i64), i64 1, i64 %arg2, i64 %2, i64 %1)
store i64 4294967295, i64* %storemerge.reg2mem
br label LBL_5
LBL_4:
%13 = ptrtoint i64* %arg1 to i64
%14 = call i64 @FUNC(i64 100, i64 ptrtoint ([30 x i8]* @gv_2 to i64), i64 1, i64 %arg2, i64 %2, i64 %1)
store i64 %9, i64* %arg1, align 8
%15 = add i64 %13, 8
%16 = inttoptr i64 %15 to i64*
store i64 %arg2, i64* %16, align 8
store i64 0, i64* %storemerge.reg2mem
br label LBL_5
LBL_5:
%storemerge.reload = load i64, i64* %storemerge.reg2mem
ret i64 %storemerge.reload
uselistorder i64 %4, { 1, 0 }
uselistorder i64 %3, { 1, 0 }
uselistorder i64 %2, { 2, 1, 3, 0 }
uselistorder i64 %1, { 2, 1, 3, 0 }
uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 }
uselistorder i64* %0, { 3, 2, 1, 0 }
uselistorder [84 x i8]* @gv_0, { 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64, i64)* @JAS_DBGLOG, { 2, 1, 0 }
uselistorder i64 100, { 1, 2, 0, 3 }
uselistorder i64 %arg2, { 1, 2, 3, 4, 0, 5, 6 }
} | 0 |
BinRealVul | check_entry_size_and_hooks_13612 | check_entry_size_and_hooks | define i64 @FUNC(i32* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i64* %arg5, i64* %arg6, i64 %arg7) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%indvars.iv.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg6 to i64
%3 = ptrtoint i64* %arg5 to i64
%4 = ptrtoint i64* %arg4 to i64
%5 = ptrtoint i64* %arg3 to i64
%6 = ptrtoint i32* %arg1 to i64
%7 = urem i64 %6, 8
%8 = icmp eq i64 %7, 0
%9 = add i64 %6, 40
%10 = icmp ult i64 %9, %4
%or.cond = icmp eq i1 %8, %10
store i64 %5, i64* %rdx.0.reg2mem
br i1 %or.cond, label LBL_1, label LBL_2
LBL_1:
%11 = and i64 %1, 4294967295
%12 = add i64 %11, %6
%13 = icmp ugt i64 %12, %4
%14 = icmp eq i1 %13, false
store i64 %11, i64* %rdx.0.reg2mem
br i1 %14, label LBL_3, label LBL_2
LBL_2:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
%15 = call i64 @FUNC(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_0, i64 0, i64 0), i64 %6, i64 %rdx.0.reload, i64 %4, i64 %3, i64 %2)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_18
LBL_3:
%16 = trunc i64 %1 to i32
%17 = icmp ult i32 %16, 40
br i1 %17, label LBL_4, label LBL_5
LBL_4:
%18 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_1, i64 0, i64 0), i64 %6, i64 %11, i64 %4, i64 %3, i64 %2)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_18
LBL_5:
%19 = add i64 %6, 4
%20 = call i64 @FUNC(i64 %19)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
%23 = icmp eq i1 %22, false
store i64 4294967274, i64* %rax.0.reg2mem
br i1 %23, label LBL_6, label LBL_18
LBL_6:
%24 = inttoptr i64 %19 to i32*
%25 = load i32, i32* %24, align 4
%26 = add i64 %6, 8
%27 = inttoptr i64 %26 to i32*
%28 = load i32, i32* %27, align 4
%29 = call i64 @FUNC(i64 %6, i32 %28, i32 %25, i32 %16)
%30 = trunc i64 %29 to i32
%31 = icmp eq i32 %30, 0
br i1 %31, label LBL_7, label LBL_8
LBL_7:
%32 = ptrtoint i64* %arg2 to i64
%33 = zext i32 %28 to i64
%34 = sub i64 %6, %5
store i64 0, i64* %indvars.iv.reg2mem
br label LBL_9
LBL_8:
%35 = and i64 %29, 4294967295
store i64 %35, i64* %rax.0.reg2mem
br label LBL_18
LBL_9:
%indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem
%36 = trunc i64 %indvars.iv.reload to i32
%37 = shl i32 1, %36
%storemerge = zext i32 %37 to i64
%38 = and i64 %storemerge, %arg7
%39 = icmp eq i64 %38, 0
br i1 %39, label LBL_16, label LBL_10
LBL_10:
%40 = mul i64 %indvars.iv.reload, 4
%41 = add i64 %40, %3
%42 = inttoptr i64 %41 to i32*
%43 = load i32, i32* %42, align 4
%44 = zext i32 %43 to i64
%45 = icmp eq i64 %34, %44
%46 = icmp eq i1 %45, false
br i1 %46, label LBL_12, label LBL_11
LBL_11:
%47 = add i64 %40, %32
%48 = inttoptr i64 %47 to i32*
store i32 %43, i32* %48, align 4
br label LBL_12
LBL_12:
%49 = add i64 %40, %2
%50 = inttoptr i64 %49 to i32*
%51 = load i32, i32* %50, align 4
%52 = zext i32 %51 to i64
%53 = icmp eq i64 %34, %52
%54 = icmp eq i1 %53, false
br i1 %54, label LBL_16, label LBL_13
LBL_13:
%55 = call i64 @FUNC(i64 %6)
%56 = trunc i64 %55 to i32
%57 = icmp eq i32 %56, 0
%58 = icmp eq i1 %57, false
br i1 %58, label LBL_15, label LBL_14
LBL_14:
%59 = call i64 @FUNC(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @gv_2, i64 0, i64 0), i64 %33, i64 %52, i64 %40, i64 %3, i64 %2)
store i64 4294967274, i64* %rax.0.reg2mem
br label LBL_18
LBL_15:
%60 = load i32, i32* %50, align 4
%61 = add i64 %40, %32
%62 = add i64 %61, 20
%63 = inttoptr i64 %62 to i32*
store i32 %60, i32* %63, align 4
br label LBL_16
LBL_16:
%indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1
%64 = icmp ult i64 %indvars.iv.next, 5
store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem
br i1 %64, label LBL_9, label LBL_17
LBL_17:
%65 = add i64 %6, 16
%66 = inttoptr i64 %65 to i64*
store i64 0, i64* %66, align 8
%67 = add i64 %6, 24
%68 = inttoptr i64 %67 to i64*
store i64 0, i64* %68, align 8
%69 = add i64 %6, 32
%70 = inttoptr i64 %69 to i32*
store i32 0, i32* %70, align 4
store i64 0, i64* %rax.0.reg2mem
br label LBL_18
LBL_18:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %40, { 3, 4, 2, 1, 0 }
uselistorder i64 %indvars.iv.reload, { 0, 2, 1 }
uselistorder i32 %28, { 1, 0 }
uselistorder i64 %11, { 2, 0, 1 }
uselistorder i64 %6, { 3, 4, 5, 6, 7, 8, 9, 11, 10, 12, 1, 2, 0 }
uselistorder i64 %5, { 1, 0 }
uselistorder i64 %4, { 2, 3, 1, 0 }
uselistorder i64 %3, { 1, 0, 2, 3 }
uselistorder i64 %2, { 1, 0, 2, 3 }
uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 }
uselistorder i64* %rax.0.reg2mem, { 0, 3, 4, 2, 1, 5, 6 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder i32 0, { 1, 0, 2, 3 }
uselistorder i64 4294967274, { 1, 0, 2, 3 }
uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @duprintf, { 1, 0 }
uselistorder i64 8, { 1, 0 }
uselistorder label LBL_18, { 2, 1, 3, 0, 4, 5 }
uselistorder label LBL_16, { 1, 2, 0 }
uselistorder label LBL_9, { 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 0 |
BinRealVul | eject_device_15775 | eject_device | define i64 @FUNC(i64* %arg1, i64* %arg2, i32 %arg3) local_unnamed_addr {
LBL_0:
%rax.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg2 to i64
%1 = call i64 @FUNC(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_7, label LBL_1
LBL_1:
%4 = icmp eq i32 %arg3, 0
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_6, label LBL_2
LBL_2:
%6 = call i64 @FUNC(i64 %0)
%7 = trunc i64 %6 to i32
%8 = icmp eq i32 %7, 0
%9 = icmp eq i1 %8, false
br i1 %9, label LBL_4, label LBL_3
LBL_3:
%10 = call i64 @FUNC(i64 %0)
%11 = call i64 @FUNC(i64 1, i64 %10)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_7
LBL_4:
%12 = call i64 @FUNC(i64 %0)
%13 = trunc i64 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label LBL_6, label LBL_5
LBL_5:
%15 = call i64 @FUNC(i64 %0)
%16 = call i64 @FUNC(i64 2, i64 %15)
store i64 4294967295, i64* %rax.0.reg2mem
br label LBL_7
LBL_6:
%17 = call i64 @FUNC(i64 %0)
store i64 0, i64* %rax.0.reg2mem
br label LBL_7
LBL_7:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %0, { 4, 0, 1, 2, 3, 5 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 4, 3, 1 }
uselistorder i64 (i64, i64)* @qerror_report, { 1, 0 }
uselistorder i64 1, { 2, 0, 1 }
uselistorder i64 (i64)* @bdrv_get_device_name, { 1, 0 }
uselistorder label LBL_7, { 1, 2, 3, 0 }
} | 1 |
BinRealVul | cosine_open_9780 | cosine_open | define i64 @FUNC(i64* %arg1, i32* %arg2, i64* %arg3) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%rax.0.reg2mem = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg3 to i64
%3 = ptrtoint i32* %arg2 to i64
%4 = ptrtoint i64* %arg1 to i64
%5 = call i64 @FUNC(i64 %4, i64 %3, i64 %2)
%6 = trunc i64 %5 to i32
%7 = icmp eq i32 %6, 0
%8 = icmp eq i1 %7, false
br i1 %8, label LBL_3, label LBL_1
LBL_1:
%9 = trunc i64 %1 to i32
store i64 4294967295, i64* %rax.0.reg2mem
switch i32 %9, label LBL_5 [
i32 0, label LBL_2
i32 2, label LBL_2
]
LBL_2:
store i64 0, i64* %rax.0.reg2mem
br label LBL_5
LBL_3:
%10 = call i64 @FUNC(i64 %4, i64 0, i64 0, i64 %3)
%11 = trunc i64 %10 to i32
%12 = icmp eq i32 %11, -1
%13 = icmp eq i1 %12, false
store i64 4294967295, i64* %rax.0.reg2mem
br i1 %13, label LBL_4, label LBL_5
LBL_4:
%14 = add i64 %4, 8
%15 = inttoptr i64 %14 to i32*
store i32 3, i32* %15, align 4
%16 = add i64 %4, 12
%17 = inttoptr i64 %16 to i32*
store i32 4, i32* %17, align 4
%18 = add i64 %4, 16
%19 = inttoptr i64 %18 to i32*
store i32 0, i32* %19, align 4
%20 = add i64 %4, 24
%21 = inttoptr i64 %20 to i64*
store i64 4198812, i64* %21, align 8
%22 = add i64 %4, 32
%23 = inttoptr i64 %22 to i64*
store i64 4198819, i64* %23, align 8
%24 = add i64 %4, 40
%25 = inttoptr i64 %24 to i32*
store i32 5, i32* %25, align 4
store i64 1, i64* %rax.0.reg2mem
br label LBL_5
LBL_5:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 3, 2 }
uselistorder label LBL_5, { 2, 0, 3, 1 }
} | 0 |
BinRealVul | assert_file_overwrite_17146 | assert_file_overwrite | define i64 @FUNC(i64 %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 i32, i32* @gv_0, align 4
%5 = icmp eq i32 %4, 0
%6 = load i32, i32* @gv_1, align 4
%7 = icmp eq i32 %6, 0
%or.cond = or i1 %5, %7
br i1 %or.cond, label LBL_2, label LBL_1
LBL_1:
%8 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%9 = call i32 @fwrite(i64* bitcast ([42 x i8]* @gv_3 to i64*), i32 1, i32 41, %_IO_FILE* %8)
%10 = call i64 @FUNC(i64 1)
unreachable
LBL_2:
%11 = zext i32 %4 to i64
%12 = icmp eq i1 %5, false
store i64 %11, i64* %rax.0.reg2mem
br i1 %12, label LBL_13, label LBL_3
LBL_3:
%13 = inttoptr i64 %arg1 to i8*
%14 = call i8* @strchr(i8* %13, i32 58)
%15 = icmp eq i8* %14, null
br i1 %15, label LBL_6, label LBL_4
LBL_4:
%16 = add i64 %arg1, 1
%17 = inttoptr i64 %16 to i8*
%18 = load i8, i8* %17, align 1
%19 = icmp eq i8 %18, 58
br i1 %19, label LBL_6, label LBL_5
LBL_5:
%20 = call i64 @FUNC(i64 %arg1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_4, i64 0, i64 0), i64 0)
%21 = trunc i64 %20 to i32
%22 = icmp eq i32 %21, 0
store i64 %20, i64* %rax.0.reg2mem
br i1 %22, label LBL_13, label LBL_6
LBL_6:
%23 = call i64 @FUNC(i64 %arg1, i64 0)
%24 = trunc i64 %23 to i32
%25 = icmp eq i32 %24, 0
%26 = icmp eq i1 %25, false
store i64 %23, i64* %rax.0.reg2mem
br i1 %26, label LBL_13, label LBL_7
LBL_7:
%27 = load i32, i32* inttoptr (i64 4210796 to i32*), align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label LBL_12, label LBL_8
LBL_8:
%29 = load i32, i32* @gv_1, align 4
%30 = icmp eq i32 %29, 0
%31 = icmp eq i1 %30, false
br i1 %31, label LBL_12, label LBL_9
LBL_9:
%32 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%33 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %32, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @gv_5, i64 0, i64 0), i8* %13)
%34 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8
%35 = call i32 @fflush(%_IO_FILE* %34)
%36 = call i64 @FUNC()
%37 = call void (i32)* @signal(i32 2, void (i32)* null)
%38 = call i64 @FUNC()
%39 = trunc i64 %38 to i32
%40 = icmp eq i32 %39, 0
%41 = icmp eq i1 %40, false
br i1 %41, label LBL_11, label LBL_10
LBL_10:
%42 = call i64 @FUNC(i64 0, i64 16, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @gv_6, i64 0, i64 0), i64 %3, i64 %2, i64 %1)
%43 = call i64 @FUNC(i64 1)
unreachable
LBL_11:
%44 = call i64 @FUNC()
store i64 %44, i64* %rax.0.reg2mem
br label LBL_13
LBL_12:
%45 = call i64 @FUNC(i64 0, i64 16, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @gv_7, i64 0, i64 0), i64 %arg1, i64 %2, i64 %1)
%46 = call i64 @FUNC(i64 1)
unreachable
LBL_13:
%rax.0.reload = load i64, i64* %rax.0.reg2mem
ret i64 %rax.0.reload
uselistorder i64 %2, { 1, 0 }
uselistorder i64 %1, { 1, 0 }
uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1, 4 }
uselistorder i64* %0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i8*, i64, i64, i64)* @av_log, { 1, 0 }
uselistorder i64 (i64)* @exit_program, { 2, 1, 0 }
uselistorder i64 1, { 4, 5, 7, 6, 1, 0, 2, 3 }
uselistorder %_IO_FILE** @gv_2, { 3, 2, 1, 0 }
uselistorder i32* @gv_1, { 1, 0 }
uselistorder i32 0, { 3, 4, 5, 6, 7, 0, 8, 9, 1, 2 }
uselistorder i32 1, { 7, 5, 4, 6, 9, 3, 0, 8, 2, 1 }
uselistorder i64 %arg1, { 2, 3, 1, 0, 4 }
} | 1 |
BinRealVul | Jsi_ValueToNumber_11976 | Jsi_ValueToNumber | define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr {
LBL_0:
%0 = alloca i64
%1 = load i64, i64* %0
%2 = ptrtoint i64* %arg2 to i64
%sv_0 = alloca i64, align 8
store i64 %2, i64* %sv_0, align 8
%3 = trunc i64 %1 to i32
%4 = icmp eq i32 %3, 1
%5 = icmp eq i1 %4, false
br i1 %5, label LBL_1, label LBL_2
LBL_1:
%6 = ptrtoint i64* %arg1 to i64
%7 = call i128 @FUNC(i64 %6, i64 %2, i64 0)
%8 = call i64 @FUNC(i128 %7)
%9 = call i64 @FUNC(i64 %6, i64* nonnull %sv_0)
%10 = call i128 @__asm_movq.2(i64 %8)
%11 = call i64 @FUNC(i64 %6, i64* nonnull %sv_0)
br label LBL_2
LBL_2:
ret i64 0
uselistorder i64 %6, { 2, 1, 0 }
uselistorder label LBL_2, { 1, 0 }
} | 1 |
BinRealVul | ocfs2_prepare_page_for_write_13814 | ocfs2_prepare_page_for_write | define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3, i64* %arg4, i64 %arg5, i64 %arg6, i64 %arg7, i64 %arg8) local_unnamed_addr {
LBL_0:
%.pre-phi10.reg2mem = alloca i64
%sv_0.0.reg2mem = alloca i64
%sv_1.0.reg2mem = alloca i64
%sv_2.0.reg2mem = alloca i32
%.pre-phi.reg2mem = alloca i32
%storemerge.in.reg2mem = alloca i64
%storemerge9.reg2mem = alloca i64
%rdx.1.reg2mem = alloca i64
%rdx.0.reg2mem = alloca i64
%0 = ptrtoint i64* %arg4 to i64
%1 = ptrtoint i64* %arg1 to i64
%sv_3 = alloca i32, align 4
%sv_4 = alloca i32, align 4
%2 = trunc i64 %arg5 to i32
%3 = ptrtoint i32* %sv_3 to i64
%4 = bitcast i32* %sv_3 to i64*
%5 = bitcast i32* %sv_4 to i64*
%6 = call i64 @FUNC(i64 %1, i32 %2, i64* nonnull %4, i64* nonnull %5)
%7 = call i64 @FUNC(i64 %1)
%8 = call i64 @FUNC(i64 %0)
%9 = icmp ugt i64 %7, %8
store i64 %3, i64* %rdx.0.reg2mem
br i1 %9, label LBL_2, label LBL_1
LBL_1:
%10 = call i64 @FUNC(i64 %0)
%11 = icmp ugt i64 %10, %arg6
store i64 %arg6, i64* %rdx.0.reg2mem
store i64 %arg6, i64* %rdx.1.reg2mem
store i64 4294967296, i64* %storemerge9.reg2mem
br i1 %11, label LBL_2, label LBL_3
LBL_2:
%rdx.0.reload = load i64, i64* %rdx.0.reg2mem
store i64 %rdx.0.reload, i64* %rdx.1.reg2mem
store i64 0, i64* %storemerge9.reg2mem
br label LBL_3
LBL_3:
%12 = ptrtoint i64* %arg2 to i64
%sext6 = mul i64 %arg8, 4294967296
%storemerge9.reload = load i64, i64* %storemerge9.reg2mem
%rdx.1.reload = load i64, i64* %rdx.1.reg2mem
%13 = or i64 %storemerge9.reload, %sext6
%14 = ashr exact i64 %13, 32
%15 = icmp eq i64 %rdx.1.reload, %0
%16 = icmp eq i1 %15, false
br i1 %16, label LBL_10, label LBL_4
LBL_4:
%17 = trunc i64 %arg6 to i32
%18 = urem i32 %17, 4096
%19 = trunc i64 %arg7 to i32
%20 = add i32 %18, %19
%21 = trunc i64 %14 to i32
%22 = icmp eq i32 %21, 0
br i1 %22, label LBL_6, label LBL_5
LBL_5:
%23 = load i32, i32* %sv_4, align 4
%24 = load i32, i32* %sv_3, align 4
%25 = zext i32 %24 to i64
%26 = and i64 %14, 4294967295
%27 = zext i32 %23 to i64
%28 = call i64 @FUNC(i64 %0, i64 %12, i64 %1, i64 %25, i64 %27, i64 %26)
store i64 %28, i64* %storemerge.in.reg2mem
br label LBL_7
LBL_6:
%29 = zext i32 %18 to i64
%30 = and i64 %14, 4294967295
%31 = zext i32 %20 to i64
%32 = call i64 @FUNC(i64 %0, i64 %12, i64 %1, i64 %29, i64 %31, i64 %30)
store i64 %32, i64* %storemerge.in.reg2mem
br label LBL_7
LBL_7:
%storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem
%storemerge = trunc i64 %storemerge.in.reload to i32
%33 = icmp eq i32 %storemerge, 0
br i1 %33, label LBL_9, label LBL_8
LBL_8:
%34 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%35 = and i64 %storemerge.in.reload, 4294967295
%36 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %34, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0), i64 %35)
store i64 %35, i64* %.pre-phi10.reg2mem
br label LBL_18
LBL_9:
%phitmp = zext i32 %20 to i64
store i32 %21, i32* %.pre-phi.reg2mem
store i32 %18, i32* %sv_2.0.reg2mem
store i64 %phitmp, i64* %sv_1.0.reg2mem
store i64 %storemerge.in.reload, i64* %sv_0.0.reg2mem
br label LBL_14
LBL_10:
%37 = trunc i64 %14 to i32
%38 = icmp eq i32 %37, 0
%39 = icmp eq i1 %38, false
br i1 %39, label LBL_12, label LBL_11
LBL_11:
%40 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%41 = call i32 @fwrite(i64* bitcast ([23 x i8]* @gv_2 to i64*), i32 1, i32 22, %_IO_FILE* %40)
call void @exit(i32 1)
unreachable
LBL_12:
%42 = load i32, i32* %sv_4, align 4
%43 = load i32, i32* %sv_3, align 4
%44 = zext i32 %43 to i64
%45 = and i64 %14, 4294967295
%46 = zext i32 %42 to i64
%47 = call i64 @FUNC(i64 %0, i64 %12, i64 %1, i64 %44, i64 %46, i64 %45)
%48 = trunc i64 %47 to i32
%49 = icmp eq i32 %48, 0
store i32 %37, i32* %.pre-phi.reg2mem
store i32 0, i32* %sv_2.0.reg2mem
store i64 0, i64* %sv_1.0.reg2mem
store i64 %47, i64* %sv_0.0.reg2mem
br i1 %49, label LBL_14, label LBL_13
LBL_13:
%50 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8
%51 = and i64 %47, 4294967295
%52 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %50, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0), i64 %51)
store i64 %51, i64* %.pre-phi10.reg2mem
br label LBL_18
LBL_14:
%sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem
%.pre-phi.reload = load i32, i32* %.pre-phi.reg2mem
%53 = icmp eq i32 %.pre-phi.reload, 0
br i1 %53, label LBL_17, label LBL_15
LBL_15:
%54 = call i64 @FUNC(i64 %0)
%55 = trunc i64 %54 to i32
%56 = icmp eq i32 %55, 0
%57 = icmp eq i1 %56, false
br i1 %57, label LBL_17, label LBL_16
LBL_16:
%sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem
%sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem
%58 = call i64 @FUNC(i64 %0, i64 %0, i32 %2, i32 %sv_2.0.reload, i64 %sv_1.0.reload)
br label LBL_17
LBL_17:
%59 = call i64 @FUNC(i64 %0)
%.pre = and i64 %sv_0.0.reload, 4294967295
store i64 %.pre, i64* %.pre-phi10.reg2mem
br label LBL_18
LBL_18:
%.pre-phi10.reload = load i64, i64* %.pre-phi10.reg2mem
ret i64 %.pre-phi10.reload
uselistorder i64 %47, { 1, 0, 2 }
uselistorder i64 %storemerge.in.reload, { 0, 2, 1 }
uselistorder i32 %18, { 0, 2, 1 }
uselistorder i64 %14, { 3, 4, 1, 2, 0 }
uselistorder i64 %12, { 2, 1, 0 }
uselistorder i32* %sv_4, { 1, 0, 2 }
uselistorder i32* %sv_3, { 2, 1, 3, 0 }
uselistorder i64 %1, { 2, 1, 0, 3, 4 }
uselistorder i64 %0, { 7, 5, 4, 6, 8, 3, 2, 0, 1, 9 }
uselistorder i64* %rdx.1.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge9.reg2mem, { 0, 2, 1 }
uselistorder i64* %storemerge.in.reg2mem, { 0, 2, 1 }
uselistorder i64* %.pre-phi10.reg2mem, { 0, 3, 2, 1 }
uselistorder %_IO_FILE** @gv_0, { 2, 1, 0 }
uselistorder i64 (i64, i64, i64, i64, i64, i64)* @ocfs2_map_page_blocks, { 2, 1, 0 }
uselistorder i32 0, { 1, 2, 0, 3, 4, 5, 6 }
uselistorder i64 4294967296, { 1, 0 }
uselistorder i64 (i64)* @page_offset, { 1, 0 }
uselistorder i64 %arg6, { 3, 0, 1, 2 }
uselistorder label LBL_14, { 1, 0 }
uselistorder label LBL_3, { 1, 0 }
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.