dataset
stringclasses
3 values
file
stringlengths
7
83
fun_name
stringlengths
2
83
llvm_ir_function
stringlengths
61
121k
label
stringclasses
2 values
BinRealVul
tcp_close_3517
tcp_close
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.1.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_0, i64 0, i64 0)) %3 = trunc i64 %1 to i32 %4 = icmp eq i32 %3, -1 store i32 0, i32* %sv_0.1.reg2mem br i1 %4, label LBL_4, label LBL_1 LBL_1: %5 = call i32 @close(i32 %3) %6 = icmp slt i32 %5, 0 %7 = icmp eq i1 %6, false store i32 0, i32* %sv_0.0.reg2mem br i1 %7, label LBL_3, label LBL_2 LBL_2: %8 = call i32* @__errno_location() %9 = load i32, i32* %8, align 4 %10 = sub i32 0, %9 store i32 %10, i32* %sv_0.0.reg2mem br label LBL_3 LBL_3: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem store i32 -1, i32* %arg1, align 4 store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br label LBL_4 LBL_4: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %11 = zext i32 %sv_0.1.reload to i64 ret i64 %11 uselistorder i32 %3, { 1, 0 } uselistorder i32 0, { 2, 1, 3, 0 } uselistorder i32 -1, { 1, 0 } }
0
BinRealVul
m_free_16061
m_free
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = call i64 @FUNC(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0)) %3 = call i64 @FUNC(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_1, i64 0, i64 0), i64 %arg1) %4 = icmp eq i64 %arg1, 0 store i64 %3, i64* %rax.0.reg2mem br i1 %4, label LBL_9, label LBL_1 LBL_1: %5 = trunc i64 %1 to i32 %6 = urem i32 %5, 2 %7 = icmp eq i32 %6, 0 br i1 %7, label LBL_3, label LBL_2 LBL_2: %8 = call i64 @FUNC(i64 %arg1) br label LBL_3 LBL_3: %9 = and i32 %5, 2 %10 = icmp eq i32 %9, 0 br i1 %10, label LBL_5, label LBL_4 LBL_4: %11 = add i64 %arg1, 16 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = inttoptr i64 %13 to i64* call void @free(i64* %14) br label LBL_5 LBL_5: %15 = and i32 %5, 4 %16 = icmp eq i32 %15, 0 br i1 %16, label LBL_7, label LBL_6 LBL_6: %17 = inttoptr i64 %arg1 to i64* call void @free(i64* %17) %18 = add i64 %arg1, 8 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = inttoptr i64 %20 to i32* %22 = load i32, i32* %21, align 4 %23 = add i32 %22, -1 store i32 %23, i32* %21, align 4 store i64 %20, i64* %rax.0.reg2mem br label LBL_9 LBL_7: %24 = and i32 %5, 8 %25 = zext i32 %24 to i64 %26 = icmp eq i32 %24, 0 %27 = icmp eq i1 %26, false store i64 %25, i64* %rax.0.reg2mem br i1 %27, label LBL_9, label LBL_8 LBL_8: %28 = add i64 %arg1, 8 %29 = inttoptr i64 %28 to i64* %30 = load i64, i64* %29, align 8 %31 = add i64 %30, 8 %32 = call i64 @FUNC(i64 %arg1, i64 %31) %33 = inttoptr i64 %arg1 to i32* store i32 8, i32* %33, align 4 store i64 %arg1, i64* %rax.0.reg2mem br label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %5, { 1, 2, 3, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1, 4 } uselistorder i32 2, { 1, 0 } uselistorder i32 1, { 5, 4, 3, 2, 1, 0 } uselistorder i64 %arg1, { 0, 7, 6, 5, 4, 3, 2, 1, 9, 8 } }
1
BinRealVul
vrend_renderer_context_create_10326
vrend_renderer_context_create
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = trunc i64 %arg1 to i32 %1 = icmp ult i32 %0, 10 store i64 22, i64* %rax.0.reg2mem br i1 %1, label LBL_1, label LBL_3 LBL_1: %sext = mul i64 %arg1, 4294967296 %2 = ashr exact i64 %sext, 32 %3 = trunc i64 %2 to i32 %4 = icmp eq i32 %3, 0 %5 = icmp eq i1 %4, false store i64 22, i64* %rax.0.reg2mem br i1 %5, label LBL_2, label LBL_3 LBL_2: %6 = and i64 %arg2, 4294967295 %7 = and i64 %2, 4294967295 %8 = call i64 @FUNC(i64 %7, i64 %6, i64 %arg3) store i64 0, i64* %rax.0.reg2mem br label LBL_3 LBL_3: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %2, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i32 1, { 1, 0 } uselistorder label LBL_3, { 2, 0, 1 } }
0
BinRealVul
close_all_connections_5648
close_all_connections
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %storemerge1.lcssa.reg2mem = alloca i64 %storemerge12.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %1 = call i64 @FUNC(i64 %0) %2 = icmp eq i64 %1, 0 %3 = icmp eq i1 %2, false store i64 %1, i64* %storemerge1.lcssa.reg2mem br i1 %3, label LBL_1, label LBL_3 LBL_1: %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i64* store i64 %1, i64* %storemerge12.reg2mem br label LBL_2 LBL_2: %storemerge12.reload = load i64, i64* %storemerge12.reg2mem %6 = load i64, i64* %5, align 8 %7 = inttoptr i64 %storemerge12.reload to i64* store i64 %6, i64* %7, align 8 %8 = call i64 @FUNC(i64 %6, i64* nonnull %sv_0) %9 = load i64, i64* %7, align 8 %10 = inttoptr i64 %9 to i64* store i64 0, i64* %10, align 8 %11 = call i64 @FUNC(i64 %storemerge12.reload, i64 0) %12 = call i64 @FUNC(i64* nonnull %sv_0) %13 = call i64 @FUNC(i64 %0) %14 = icmp eq i64 %13, 0 %15 = icmp eq i1 %14, false store i64 %13, i64* %storemerge12.reg2mem store i64 %13, i64* %storemerge1.lcssa.reg2mem br i1 %15, label LBL_2, label LBL_3 LBL_3: %storemerge1.lcssa.reload = load i64, i64* %storemerge1.lcssa.reg2mem ret i64 %storemerge1.lcssa.reload uselistorder i64 %1, { 1, 0, 2 } uselistorder i64* %storemerge12.reg2mem, { 1, 0, 2 } uselistorder i1 false, { 1, 0 } uselistorder i64 (i64)* @Curl_conncache_find_first_connection, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
get_nb10_13341
get_nb10
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = call i64* @memcpy(i64* %arg2, i64* %arg1, i32 16) %3 = add i64 %1, 16 %4 = inttoptr i64 %3 to i8* %5 = call i8* @strdup(i8* %4) %6 = ptrtoint i8* %5 to i64 store i64 %6, i64* %arg2, align 8 ret i64 %0 }
1
BinRealVul
cirrus_do_copy_2056
cirrus_do_copy
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %0 = alloca i32 %storemerge.reg2mem = alloca i64 %.pre-phi21.reg2mem = alloca i32* %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %sv_2.0.reg2mem = alloca i32 %sv_3.0.reg2mem = alloca i32 %1 = ptrtoint i64* %arg1 to i64 %2 = load i32, i32* %0 %3 = load i32, i32* %0 %4 = load i32, i32* bitcast (i64* @gv_0 to i32*), align 8 %5 = sext i32 %4 to i64 %6 = icmp eq i64 %1, %5 br i1 %6, label LBL_3, label LBL_1 LBL_1: %7 = load i32, i32* inttoptr (i64 4210732 to i32*), align 4 %8 = sext i32 %7 to i64 %9 = icmp eq i64 %1, %8 %10 = icmp eq i1 %9, false br i1 %10, label LBL_1.LBL_10_crit_edge, label LBL_3 LBL_2: %.pre = add i64 %1, 12 %.pre20 = inttoptr i64 %.pre to i32* store i32* %.pre20, i32** %.pre-phi21.reg2mem br label LBL_10 LBL_3: %11 = add i64 %1, 40 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = trunc i64 %13 to i32 %.off = add i32 %14, 127 %15 = icmp ult i32 %.off, 255 %16 = icmp eq i1 %15, false store i64 0, i64* %storemerge.reg2mem br i1 %16, label LBL_4, label LBL_11 LBL_4: %sext = mul i64 %arg2, 4294967296 %17 = ashr exact i64 %sext, 32 %sext7 = mul i64 %arg3, 4294967296 %18 = ashr exact i64 %sext7, 32 %19 = sdiv i32 %14, 128 %20 = add i64 %1, 8 %21 = inttoptr i64 %20 to i32* %22 = load i32, i32* %21, align 4 %23 = zext i32 %22 to i64 %24 = call i64 @FUNC(i64 %23) %25 = trunc i64 %18 to i32 %26 = ashr i32 %25, 31 %27 = and i64 %18, 4294967295 %28 = zext i32 %26 to i64 %29 = mul i64 %28, 4294967296 %30 = or i64 %29, %27 %31 = and i64 %24, 4294967295 %32 = srem i64 %30, %31 %33 = trunc i64 %32 to i32 %34 = ashr i32 %33, 31 %35 = and i64 %32, 4294967295 %36 = zext i32 %34 to i64 %37 = mul i64 %36, 4294967296 %38 = or i64 %37, %35 %39 = zext i32 %19 to i64 %40 = sdiv i64 %38, %39 %41 = trunc i64 %40 to i32 %42 = load i32, i32* %21, align 4 %43 = zext i32 %42 to i64 %44 = call i64 @FUNC(i64 %43) %45 = and i64 %44, 4294967295 %46 = sdiv i64 %30, %45 %47 = trunc i64 %46 to i32 %48 = add i64 %1, 12 %49 = inttoptr i64 %48 to i32* %50 = load i32, i32* %49, align 4 %51 = zext i32 %50 to i64 %52 = call i64 @FUNC(i64 %51) %53 = trunc i64 %17 to i32 %54 = ashr i32 %53, 31 %55 = and i64 %17, 4294967295 %56 = zext i32 %54 to i64 %57 = mul i64 %56, 4294967296 %58 = or i64 %57, %55 %59 = and i64 %52, 4294967295 %60 = srem i64 %58, %59 %61 = trunc i64 %60 to i32 %62 = ashr i32 %61, 31 %63 = and i64 %60, 4294967295 %64 = zext i32 %62 to i64 %65 = mul i64 %64, 4294967296 %66 = or i64 %65, %63 %67 = sdiv i64 %66, %39 %68 = trunc i64 %67 to i32 %69 = load i32, i32* %49, align 4 %70 = zext i32 %69 to i64 %71 = call i64 @FUNC(i64 %70) %72 = and i64 %71, 4294967295 %73 = sdiv i64 %58, %72 %74 = trunc i64 %73 to i32 %75 = load i32, i32* %49, align 4 %76 = icmp slt i32 %75, 0 %77 = icmp eq i1 %76, false store i32 %41, i32* %sv_3.0.reg2mem store i32 %47, i32* %sv_2.0.reg2mem store i32 %68, i32* %sv_1.0.reg2mem store i32 %74, i32* %sv_0.0.reg2mem br i1 %77, label LBL_6, label LBL_5 LBL_5: %78 = add i64 %1, 16 %79 = inttoptr i64 %78 to i32* %80 = load i32, i32* %79, align 4 %81 = ashr i32 %80, 31 %82 = zext i32 %80 to i64 %83 = zext i32 %81 to i64 %84 = mul i64 %83, 4294967296 %85 = or i64 %84, %82 %86 = sdiv i64 %85, %39 %87 = trunc i64 %86 to i32 %88 = add i32 %87, -1 %89 = sub i32 %41, %88 %90 = sub i32 %68, %88 %91 = add i64 %1, 20 %92 = inttoptr i64 %91 to i32* %93 = load i32, i32* %92, align 4 %94 = add i32 %93, -1 %95 = sub i32 %47, %94 %96 = sub i32 %74, %94 store i32 %89, i32* %sv_3.0.reg2mem store i32 %95, i32* %sv_2.0.reg2mem store i32 %90, i32* %sv_1.0.reg2mem store i32 %96, 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 i32, i32* %sv_1.0.reg2mem %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %sv_3.0.reload = load i32, i32* %sv_3.0.reg2mem %97 = icmp slt i32 %sv_3.0.reload, 0 %98 = icmp slt i32 %sv_2.0.reload, 0 %or.cond = or i1 %97, %98 %99 = icmp slt i32 %sv_1.0.reload, 0 %or.cond13 = or i1 %or.cond, %99 %100 = icmp slt i32 %sv_0.0.reload, 0 %or.cond15 = or i1 %or.cond13, %100 store i32* %49, i32** %.pre-phi21.reg2mem br i1 %or.cond15, label LBL_10, label LBL_7 LBL_7: %sext8 = mul i64 %arg4, 4294967296 %101 = ashr exact i64 %sext8, 32 %102 = trunc i64 %101 to i32 %103 = ashr i32 %102, 31 %104 = and i64 %101, 4294967295 %105 = zext i32 %103 to i64 %106 = mul i64 %105, 4294967296 %107 = or i64 %106, %104 %108 = sdiv i64 %107, %39 %109 = trunc i64 %108 to i32 %110 = add i32 %sv_3.0.reload, %109 %111 = icmp ugt i32 %110, %2 store i32* %49, i32** %.pre-phi21.reg2mem br i1 %111, label LBL_10, label LBL_8 LBL_8: %112 = trunc i64 %arg5 to i32 %113 = add i32 %sv_2.0.reload, %112 %114 = icmp ugt i32 %113, %3 %115 = add i32 %sv_1.0.reload, %109 %116 = icmp ugt i32 %115, %2 %or.cond17 = or i1 %114, %116 %117 = add i32 %sv_0.0.reload, %112 %118 = icmp ugt i32 %117, %3 %or.cond19 = or i1 %or.cond17, %118 store i32* %49, i32** %.pre-phi21.reg2mem br i1 %or.cond19, label LBL_10, label LBL_9 LBL_9: %119 = add i64 %1, 20 %120 = inttoptr i64 %119 to i32* %121 = load i32, i32* %120, align 4 %122 = add i64 %1, 16 %123 = inttoptr i64 %122 to i32* %124 = load i32, i32* %123, align 4 %125 = ashr i32 %124, 31 %126 = zext i32 %124 to i64 %127 = zext i32 %125 to i64 %128 = mul i64 %127, 4294967296 %129 = or i64 %128, %126 %130 = sdiv i64 %129, %39 %131 = add i64 %1, 56 %132 = inttoptr i64 %131 to i64* %133 = load i64, i64* %132, align 8 %134 = zext i32 %121 to i64 %135 = and i64 %130, 4294967295 %136 = call i64 @FUNC(i64 %133, i32 %sv_1.0.reload, i32 %sv_0.0.reload, i64 %135, i64 %134) store i32* %49, i32** %.pre-phi21.reg2mem br label LBL_10 LBL_10: %.pre-phi21.reload = load i32*, i32** %.pre-phi21.reg2mem %137 = add i64 %1, 20 %138 = inttoptr i64 %137 to i32* %139 = load i32, i32* %138, align 4 %140 = add i64 %1, 16 %141 = inttoptr i64 %140 to i32* %142 = load i32, i32* %141, align 4 %143 = load i32, i32* %.pre-phi21.reload, align 4 %144 = add i64 %1, 28 %145 = inttoptr i64 %144 to i32* %146 = load i32, i32* %145, align 4 %147 = zext i32 %139 to i64 %148 = call i64 @FUNC(i64 %1, i32 %146, i32 %143, i32 %142, i64 %147) store i64 1, i64* %storemerge.reg2mem br label LBL_11 LBL_11: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %101, { 1, 0 } uselistorder i32 %sv_3.0.reload, { 1, 0 } uselistorder i32 %sv_2.0.reload, { 1, 0 } uselistorder i32 %sv_1.0.reload, { 1, 2, 0 } uselistorder i32 %sv_0.0.reload, { 1, 2, 0 } uselistorder i32 %74, { 1, 0 } uselistorder i32 %68, { 1, 0 } uselistorder i32* %49, { 1, 0, 3, 2, 4, 5, 6 } uselistorder i32 %47, { 1, 0 } uselistorder i32 %41, { 1, 0 } uselistorder i64 %39, { 0, 2, 1, 3, 4 } uselistorder i64 %18, { 1, 0 } uselistorder i64 %17, { 1, 0 } uselistorder i32 %14, { 1, 0 } uselistorder i32 %3, { 1, 0 } uselistorder i32 %2, { 1, 0 } uselistorder i64 %1, { 9, 8, 7, 6, 5, 4, 3, 2, 10, 11, 12, 13, 0, 1, 14 } uselistorder i32** %.pre-phi21.reg2mem, { 0, 2, 1, 4, 3, 5 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32* %0, { 1, 0 } uselistorder i32 31, { 0, 2, 1, 3, 4, 5, 6 } uselistorder i64 (i64)* @ABS, { 3, 2, 1, 0 } uselistorder i64 4294967296, { 0, 2, 7, 1, 3, 4, 5, 6, 8, 9 } uselistorder i64 12, { 1, 0 } uselistorder label LBL_11, { 1, 0 } uselistorder label LBL_10, { 3, 4, 1, 2, 0 } }
0
BinRealVul
yield_to_task_fair_9698
yield_to_task_fair
define i64 @FUNC(i64* %arg1, i8* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = trunc i64 %1 to i8 %3 = icmp eq i8 %2, 1 %4 = icmp eq i1 %3, false store i64 0, i64* %storemerge.reg2mem br i1 %4, label LBL_3, label LBL_1 LBL_1: %5 = ptrtoint i8* %arg2 to i64 %6 = call i64 @FUNC(i64 %5) %7 = call i64 @FUNC(i64 %6) %8 = trunc i64 %7 to i8 %9 = icmp eq i8 %8, 0 store i64 0, i64* %storemerge.reg2mem br i1 %9, label LBL_2, label LBL_3 LBL_2: %10 = ptrtoint i64* %arg1 to i64 %11 = call i64 @FUNC(i64 %5) %12 = call i64 @FUNC(i64 %10) 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, 3, 2, 1 } uselistorder label LBL_3, { 2, 1, 0 } }
0
BinRealVul
MPV_common_end_181
MPV_common_end
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %indvars.iv.reg2mem = alloca i64 %0 = icmp eq i64 %arg1, 0 br i1 %0, label LBL_2, label LBL_1 LBL_1: %1 = inttoptr i64 %arg1 to i64* call void @free(i64* %1) br label LBL_2 LBL_2: %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_4, label LBL_3 LBL_3: %6 = add i64 %arg1, 16 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = inttoptr i64 %8 to i64* call void @free(i64* %9) %10 = add i64 %arg1, 24 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = inttoptr i64 %12 to i64* call void @free(i64* %13) %14 = add i64 %arg1, 32 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = inttoptr i64 %16 to i64* call void @free(i64* %17) %18 = add i64 %arg1, 40 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = inttoptr i64 %20 to i64* call void @free(i64* %21) store i64 0, i64* %19, align 8 br label LBL_4 LBL_4: %22 = add i64 %arg1, 48 %23 = inttoptr i64 %22 to i64* %24 = load i64, i64* %23, align 8 %25 = icmp eq i64 %24, 0 br i1 %25, label LBL_6, label LBL_5 LBL_5: %26 = inttoptr i64 %24 to i64* call void @free(i64* %26) br label LBL_6 LBL_6: %27 = add i64 %arg1, 128 %28 = inttoptr i64 %27 to i32* store i64 0, i64* %indvars.iv.reg2mem br label LBL_7 LBL_7: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %29 = mul i64 %indvars.iv.reload, 8 %30 = add i64 %29, %arg1 %31 = add i64 %30, 56 %32 = inttoptr i64 %31 to i64* %33 = load i64, i64* %32, align 8 %34 = inttoptr i64 %33 to i64* call void @free(i64* %34) %35 = add i64 %30, 80 %36 = inttoptr i64 %35 to i64* %37 = load i64, i64* %36, align 8 %38 = inttoptr i64 %37 to i64* call void @free(i64* %38) %39 = load i32, i32* %28, align 4 %40 = icmp eq i32 %39, 0 br i1 %40, label LBL_9, label LBL_8 LBL_8: %41 = add i64 %30, 104 %42 = inttoptr i64 %41 to i64* %43 = load i64, i64* %42, align 8 %44 = inttoptr i64 %43 to i64* call void @free(i64* %44) br label LBL_9 LBL_9: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 3 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_10, label LBL_7 LBL_10: %45 = add i64 %arg1, 132 %46 = inttoptr i64 %45 to i32* store i32 0, i32* %46, align 4 ret i64 %arg1 uselistorder i64 %30, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64 %arg1, { 6, 5, 0, 4, 7, 3, 2, 9, 10, 8, 1, 11 } }
0
BinRealVul
nfs4_open_recover_helper_10119
nfs4_open_recover_helper
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = trunc i64 %arg2 to i32 %2 = bitcast i64* %arg1 to i32* store i32 0, i32* %2, align 4 %3 = add i64 %0, 4 %4 = inttoptr i64 %3 to i32* store i32 %1, i32* %4, align 4 %5 = call i64 @FUNC(i64 %0) %6 = call i64 @FUNC(i64 %0) %7 = trunc i64 %6 to i32 %8 = icmp eq i32 %7, 0 br i1 %8, label LBL_2, label LBL_1 LBL_1: %9 = and i64 %6, 4294967295 store i64 %9, i64* %rax.0.reg2mem br label LBL_4 LBL_2: %10 = call i64 @FUNC(i64 %0) %11 = icmp ult i64 %10, -1000 store i64 %10, i64* %rax.0.reg2mem br i1 %11, label LBL_3, label LBL_4 LBL_3: %12 = and i64 %arg2, 4294967295 %13 = call i64 @FUNC(i64 %10, i64 %12) store i64 %10, i64* %arg3, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %10, { 2, 1, 0, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i32 0, { 1, 2, 0 } uselistorder label LBL_4, { 1, 0, 2 } }
0
BinRealVul
avformat_alloc_context_1173
avformat_alloc_context
define i64 @FUNC() local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 16) %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false store i64 %0, i64* %rax.0.reg2mem br i1 %2, label LBL_1, label LBL_3 LBL_1: %3 = inttoptr i64 %0 to i32* %4 = call i64 @FUNC(i64 %0) store i32 0, i32* %3, align 4 %5 = call i64 @FUNC(i64 1) %6 = add i64 %0, 8 %7 = inttoptr i64 %6 to i64* store i64 %5, i64* %7, align 8 %8 = icmp eq i64 %5, 0 %9 = icmp eq i1 %8, false store i64 %0, i64* %rax.0.reg2mem br i1 %9, label LBL_3, label LBL_2 LBL_2: %10 = call i64 @FUNC(i64 %0) store i64 0, 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 %0, { 2, 0, 3, 4, 5, 1, 6 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 1, 2 } uselistorder i32 0, { 1, 0 } uselistorder i32 1, { 1, 0 } uselistorder label LBL_3, { 2, 0, 1 } }
0
BinRealVul
nfs3svc_decode_symlinkargs_18145
nfs3svc_decode_symlinkargs
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i1 %sv_0.1.lcssa.reg2mem = alloca i8* %sv_1.115.reg2mem = alloca i32 %sv_0.116.reg2mem = alloca i8* %sv_2.117.reg2mem = alloca i8* %sv_3.018.reg2mem = alloca i32 %sv_3.0.ph.reg2mem = alloca i32 %sv_2.1.ph.reg2mem = alloca i8* %sv_1.0.lcssa66.reg2mem = alloca i32 %sv_0.0.lcssa67.reg2mem = alloca i8* %.lcssa12.reg2mem = alloca i1 %.lcssa13.reg2mem = alloca i1 %sv_0.0.lcssa.reg2mem = alloca i8* %sv_2.0.lcssa.reg2mem = alloca i8* %storemerge3.lcssa.reg2mem = alloca i32 %sv_1.0.lcssa.reg2mem = alloca i32 %sv_1.025.reg2mem = alloca i32 %sv_0.0.in26.reg2mem = alloca i64 %sv_2.0.in27.reg2mem = alloca i64 %storemerge328.reg2mem = alloca i32 %sv_2.029.reg2mem = alloca i8* %sv_0.030.reg2mem = alloca i8* %0 = ptrtoint i64* %arg3 to i64 %1 = call i64 @FUNC(i64 %arg2, i64 %0) %2 = icmp eq i64 %1, 0 store i64 0, i64* %rax.0.reg2mem br i1 %2, label LBL_14, label LBL_1 LBL_1: %3 = add i64 %0, 8 %4 = call i64 @FUNC(i64 %1, i64 %0, i64 %3) %5 = icmp eq i64 %4, 0 %6 = icmp eq i1 %5, false store i64 0, i64* %rax.0.reg2mem br i1 %6, label LBL_2, label LBL_14 LBL_2: %7 = add i64 %0, 28 %8 = call i64 @FUNC(i64 %4, i64 %7) %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = call i32 @ntohl(i32 %10) %.off = add i32 %11, -1 %12 = icmp ult i32 %.off, 1024 store i64 0, i64* %rax.0.reg2mem br i1 %12, label LBL_3, label LBL_14 LBL_3: %13 = ptrtoint i64* %arg1 to i64 %14 = add i64 %8, 4 %15 = add i64 %13, 24 %16 = inttoptr i64 %15 to i64* %17 = load i64, i64* %16, align 8 %18 = add i64 %13, 32 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 %21 = add i32 %20, 1 store i32 %21, i32* %19, align 4 %22 = sext i32 %20 to i64 %23 = mul i64 %22, 8 %24 = add i64 %23, %17 %25 = inttoptr i64 %24 to i64* %26 = load i64, i64* %25, align 8 %27 = call i64 @FUNC(i64 %26) %28 = add i64 %0, 16 %29 = inttoptr i64 %28 to i64* store i64 %27, i64* %29, align 8 %30 = add i64 %0, 24 %31 = inttoptr i64 %30 to i32* store i32 %11, i32* %31, align 4 %32 = add i64 %26, 8 %33 = inttoptr i64 %32 to i64* %34 = load i64, i64* %33, align 8 %35 = trunc i64 %34 to i32 %36 = sub i64 %14, %26 %37 = trunc i64 %36 to i32 %38 = sub i32 %35, %37 %sv_2.022 = inttoptr i64 %14 to i8* %sv_0.023 = inttoptr i64 %27 to i8* %39 = icmp eq i32 %38, 0 store i8* %sv_0.023, i8** %sv_0.030.reg2mem store i8* %sv_2.022, i8** %sv_2.029.reg2mem store i32 %38, i32* %storemerge328.reg2mem store i64 %14, i64* %sv_2.0.in27.reg2mem store i64 %27, i64* %sv_0.0.in26.reg2mem store i32 %11, i32* %sv_1.025.reg2mem store i32 %11, i32* %sv_1.0.lcssa.reg2mem store i32 0, i32* %storemerge3.lcssa.reg2mem store i8* %sv_2.022, i8** %sv_2.0.lcssa.reg2mem store i8* %sv_0.023, i8** %sv_0.0.lcssa.reg2mem store i1 false, i1* %.lcssa13.reg2mem store i1 false, i1* %.lcssa12.reg2mem br i1 %39, label LBL_7, label LBL_5 LBL_4: %sv_0.0.in26.reload = load i64, i64* %sv_0.0.in26.reg2mem %sv_2.0.in27.reload = load i64, i64* %sv_2.0.in27.reg2mem %40 = add i64 %sv_2.0.in27.reload, 1 %41 = add i64 %sv_0.0.in26.reload, 1 store i8 %46, i8* %sv_0.030.reload, align 1 %42 = add i32 %sv_1.025.reload, -1 %43 = add i32 %storemerge328.reload, -1 %sv_2.0 = inttoptr i64 %40 to i8* %sv_0.0 = inttoptr i64 %41 to i8* %44 = icmp eq i32 %42, 0 %45 = icmp eq i32 %43, 0 %or.cond8 = or i1 %45, %44 store i8* %sv_0.0, i8** %sv_0.030.reg2mem store i8* %sv_2.0, i8** %sv_2.029.reg2mem store i32 %43, i32* %storemerge328.reg2mem store i64 %40, i64* %sv_2.0.in27.reg2mem store i64 %41, i64* %sv_0.0.in26.reg2mem store i32 %42, i32* %sv_1.025.reg2mem br i1 %or.cond8, label LBL_6, label LBL_5 LBL_5: %sv_1.025.reload = load i32, i32* %sv_1.025.reg2mem %storemerge328.reload = load i32, i32* %storemerge328.reg2mem %sv_2.029.reload = load i8*, i8** %sv_2.029.reg2mem %sv_0.030.reload = load i8*, i8** %sv_0.030.reg2mem %46 = load i8, i8* %sv_2.029.reload, align 1 %47 = icmp eq i8 %46, 0 %48 = icmp eq i1 %47, false store i8* %sv_0.030.reload, i8** %sv_0.0.lcssa67.reg2mem store i32 %sv_1.025.reload, i32* %sv_1.0.lcssa66.reg2mem store i8* %sv_2.029.reload, i8** %sv_2.1.ph.reg2mem store i32 %storemerge328.reload, i32* %sv_3.0.ph.reg2mem br i1 %48, label LBL_4, label LBL_10 LBL_6: %phitmp = icmp eq i1 %45, false store i32 %42, i32* %sv_1.0.lcssa.reg2mem store i32 %43, i32* %storemerge3.lcssa.reg2mem store i8* %sv_2.0, i8** %sv_2.0.lcssa.reg2mem store i8* %sv_0.0, i8** %sv_0.0.lcssa.reg2mem store i1 %44, i1* %.lcssa13.reg2mem store i1 %phitmp, i1* %.lcssa12.reg2mem br label LBL_7 LBL_7: %.lcssa12.reload = load i1, i1* %.lcssa12.reg2mem %.lcssa13.reload = load i1, i1* %.lcssa13.reg2mem %sv_0.0.lcssa.reload = load i8*, i8** %sv_0.0.lcssa.reg2mem %sv_2.0.lcssa.reload = load i8*, i8** %sv_2.0.lcssa.reg2mem %storemerge3.lcssa.reload = load i32, i32* %storemerge3.lcssa.reg2mem %sv_1.0.lcssa.reload = load i32, i32* %sv_1.0.lcssa.reg2mem %or.cond = or i1 %.lcssa13.reload, %.lcssa12.reload store i8* %sv_0.0.lcssa.reload, i8** %sv_0.0.lcssa67.reg2mem store i32 %sv_1.0.lcssa.reload, i32* %sv_1.0.lcssa66.reg2mem store i8* %sv_2.0.lcssa.reload, i8** %sv_2.1.ph.reg2mem store i32 %storemerge3.lcssa.reload, i32* %sv_3.0.ph.reg2mem br i1 %or.cond, label LBL_10, label LBL_8 LBL_8: %49 = add i64 %13, 8 %50 = inttoptr i64 %49 to i32* %51 = load i32, i32* %50, align 4 %52 = icmp eq i32 %51, 0 store i8* %sv_0.0.lcssa.reload, i8** %sv_0.0.lcssa67.reg2mem store i32 %sv_1.0.lcssa.reload, i32* %sv_1.0.lcssa66.reg2mem store i8* %sv_2.0.lcssa.reload, i8** %sv_2.1.ph.reg2mem store i32 %storemerge3.lcssa.reload, i32* %sv_3.0.ph.reg2mem br i1 %52, label LBL_10, label LBL_9 LBL_9: %53 = icmp slt i32 %51, 4096 %spec.select = select i1 %53, i32 %51, i32 4096 %54 = add i64 %13, 16 %55 = inttoptr i64 %54 to i64* %56 = load i64, i64* %55, align 8 %57 = inttoptr i64 %56 to i64* %58 = load i64, i64* %57, align 8 %59 = call i64 @FUNC(i64 %58) %60 = inttoptr i64 %59 to i8* store i8* %sv_0.0.lcssa.reload, i8** %sv_0.0.lcssa67.reg2mem store i32 %sv_1.0.lcssa.reload, i32* %sv_1.0.lcssa66.reg2mem store i8* %60, i8** %sv_2.1.ph.reg2mem store i32 %spec.select, i32* %sv_3.0.ph.reg2mem br label LBL_10 LBL_10: %sv_3.0.ph.reload = load i32, i32* %sv_3.0.ph.reg2mem %sv_2.1.ph.reload = load i8*, i8** %sv_2.1.ph.reg2mem %sv_1.0.lcssa66.reload = load i32, i32* %sv_1.0.lcssa66.reg2mem %sv_0.0.lcssa67.reload = load i8*, i8** %sv_0.0.lcssa67.reg2mem %61 = icmp eq i32 %sv_1.0.lcssa66.reload, 0 %62 = icmp eq i32 %sv_3.0.ph.reload, 0 %or.cond1014 = or i1 %61, %62 store i32 %sv_3.0.ph.reload, i32* %sv_3.018.reg2mem store i8* %sv_2.1.ph.reload, i8** %sv_2.117.reg2mem store i8* %sv_0.0.lcssa67.reload, i8** %sv_0.116.reg2mem store i32 %sv_1.0.lcssa66.reload, i32* %sv_1.115.reg2mem store i8* %sv_0.0.lcssa67.reload, i8** %sv_0.1.lcssa.reg2mem store i1 %61, i1* %.lcssa.reg2mem br i1 %or.cond1014, label LBL_13, label LBL_12 LBL_11: %sv_1.115.reload = load i32, i32* %sv_1.115.reg2mem %sv_3.018.reload = load i32, i32* %sv_3.018.reg2mem %63 = ptrtoint i8* %sv_2.117.reload to i64 %64 = add i64 %63, 1 %65 = inttoptr i64 %64 to i8* %66 = ptrtoint i8* %sv_0.116.reload to i64 %67 = add i64 %66, 1 %68 = inttoptr i64 %67 to i8* store i8 %73, i8* %sv_0.116.reload, align 1 %69 = add i32 %sv_1.115.reload, -1 %70 = add i32 %sv_3.018.reload, -1 %71 = icmp eq i32 %69, 0 %72 = icmp eq i32 %70, 0 %or.cond10 = or i1 %72, %71 store i32 %70, i32* %sv_3.018.reg2mem store i8* %65, i8** %sv_2.117.reg2mem store i8* %68, i8** %sv_0.116.reg2mem store i32 %69, i32* %sv_1.115.reg2mem store i8* %68, i8** %sv_0.1.lcssa.reg2mem store i1 %71, i1* %.lcssa.reg2mem br i1 %or.cond10, label LBL_13, label LBL_12 LBL_12: %sv_0.116.reload = load i8*, i8** %sv_0.116.reg2mem %sv_2.117.reload = load i8*, i8** %sv_2.117.reg2mem %73 = load i8, i8* %sv_2.117.reload, align 1 %74 = icmp eq i8 %73, 0 %75 = icmp eq i1 %74, false store i8* %sv_0.116.reload, i8** %sv_0.1.lcssa.reg2mem store i1 false, i1* %.lcssa.reg2mem br i1 %75, label LBL_11, label LBL_13 LBL_13: %.lcssa.reload = load i1, i1* %.lcssa.reg2mem %sv_0.1.lcssa.reload = load i8*, i8** %sv_0.1.lcssa.reg2mem store i8 0, i8* %sv_0.1.lcssa.reload, align 1 %. = zext i1 %.lcssa.reload to i64 store i64 %., i64* %rax.0.reg2mem br label LBL_14 LBL_14: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i8 %73, { 1, 0 } uselistorder i32 %sv_1.0.lcssa.reload, { 2, 1, 0 } uselistorder i32 %storemerge3.lcssa.reload, { 1, 0 } uselistorder i8* %sv_2.0.lcssa.reload, { 1, 0 } uselistorder i8* %sv_0.0.lcssa.reload, { 2, 1, 0 } uselistorder i8 %46, { 1, 0 } uselistorder i64 %13, { 0, 1, 3, 2 } uselistorder i32 %11, { 0, 1, 3, 2 } uselistorder i64 %0, { 0, 1, 2, 4, 3, 5 } uselistorder i8** %sv_0.030.reg2mem, { 0, 2, 1 } uselistorder i8** %sv_2.029.reg2mem, { 0, 2, 1 } uselistorder i32* %storemerge328.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_2.0.in27.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.0.in26.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_1.025.reg2mem, { 0, 2, 1 } uselistorder i8** %sv_0.0.lcssa67.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i32* %sv_1.0.lcssa66.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i8** %sv_2.1.ph.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i32* %sv_3.0.ph.reg2mem, { 0, 4, 3, 2, 1 } uselistorder i32* %sv_3.018.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_2.117.reg2mem, { 0, 2, 1 } uselistorder i8** %sv_0.116.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_1.115.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_0.1.lcssa.reg2mem, { 0, 2, 1, 3 } uselistorder i1* %.lcssa.reg2mem, { 0, 2, 1, 3 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 4, 3 } uselistorder i32 0, { 4, 6, 2, 3, 7, 5, 8, 0, 1 } uselistorder i64 (i64)* @page_address, { 1, 0 } uselistorder i32 -1, { 3, 4, 1, 2, 0 } uselistorder i1 false, { 0, 4, 3, 5, 1, 2, 6 } uselistorder i64 8, { 1, 2, 0, 3 } uselistorder label LBL_14, { 0, 1, 3, 2 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_10, { 3, 2, 1, 0 } uselistorder label LBL_5, { 1, 0 } }
1
BinRealVul
parse_numa_16540
parse_numa
define i64 @FUNC(i64 %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %.reg2mem = alloca i64 %0 = ptrtoint i64* %arg2 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i32*, align 8 store i32* null, i32** %sv_1, align 8 store i64 0, i64* %sv_0, align 8 %1 = call i64 @FUNC(i64 %0) %2 = bitcast i32** %sv_1 to i64* %3 = call i64 @FUNC(i64 %1, i64 0, i64* nonnull %2, i64* nonnull %sv_0) %4 = call i64 @FUNC(i64 %1) %5 = load i64, i64* %sv_0, align 8 %6 = icmp eq i64 %5, 0 %7 = icmp eq i1 %6, false store i64 %5, i64* %.reg2mem br i1 %7, label LBL_5, label LBL_1 LBL_1: %8 = load i32*, i32** %sv_1, align 8 %9 = load i32, i32* %8, align 4 %10 = icmp eq i32 %9, 0 %11 = icmp eq i1 %10, false br i1 %11, label LBL_4, label LBL_2 LBL_2: %12 = ptrtoint i32* %8 to i64 %13 = add i64 %12, 8 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = call i64 @FUNC(i64 %15, i64 %0, i64* nonnull %sv_0) %17 = load i64, i64* %sv_0, align 8 %18 = icmp eq i64 %17, 0 %19 = icmp eq i1 %18, false store i64 %17, i64* %.reg2mem br i1 %19, label LBL_5, label LBL_3 LBL_3: store i32 ptrtoint (i32* @gv_0 to i32), i32* bitcast (i64* @gv_1 to i32*), align 8 store i64 0, i64* %storemerge.reg2mem br label LBL_6 LBL_4: call void @abort() unreachable LBL_5: %.reload = load i64, i64* %.reg2mem %20 = call i64 @FUNC(i64 %.reload) %21 = load i32*, i32** %sv_1, align 8 %22 = ptrtoint i32* %21 to i64 %23 = call i64 @FUNC(i64 %22) store i64 4294967295, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32** %sv_1, { 2, 1, 3, 0 } uselistorder i64* %sv_0, { 2, 0, 3, 1, 4 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32 0, { 2, 3, 0, 1 } }
1
BinRealVul
stszin_19092
stszin
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.02.reg2mem = alloca i32 %storemerge3.reg2mem = alloca i32 %0 = call i64 @FUNC() %1 = call i64 @FUNC() %2 = call i64 @FUNC() %3 = trunc i64 %2 to i32 store i32 %3, i32* @gv_0, align 4 %4 = call i64* @malloc(i32 trunc (i64 shl (i64 zext (i32 ptrtoint (i32* @gv_1 to i32) to i64), i64 2) to i32)) %5 = ptrtoint i64* %4 to i64 store i64 %5, i64* @gv_2, align 8 %6 = icmp eq i64* %4, null %7 = icmp eq i1 %6, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %7, label LBL_1, label LBL_6 LBL_1: %8 = and i64 %arg1, 4294967295 %9 = bitcast i64* %4 to i32* store i32 0, i32* %9, align 4 %10 = load i32, i32* @gv_0, align 4 %11 = icmp eq i32 %10, 0 store i32 0, i32* %storemerge3.reg2mem store i32 0, i32* %sv_0.02.reg2mem store i64 %8, i64* %rax.0.reg2mem br i1 %11, label LBL_6, label LBL_2 LBL_2: %sv_0.02.reload = load i32, i32* %sv_0.02.reg2mem %storemerge3.reload = load i32, i32* %storemerge3.reg2mem %12 = call i64 @FUNC() %13 = trunc i64 %12 to i32 %14 = load i32, i32* @gv_3, align 4 %15 = icmp ult i32 %14, %13 br i1 %15, label LBL_3, label LBL_4 LBL_3: store i32 %13, i32* @gv_3, align 4 br label LBL_4 LBL_4: %16 = add i32 %sv_0.02.reload, %13 %17 = load i64, i64* @gv_2, align 8 %18 = sext i32 %storemerge3.reload to i64 %19 = mul i64 %18, 4 %20 = add nsw i64 %19, 4 %21 = add i64 %20, %17 %22 = inttoptr i64 %21 to i32* store i32 %16, i32* %22, align 4 %23 = load i64, i64* @gv_2, align 8 %24 = add i64 %23, %19 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = icmp ult i32 %16, %26 %28 = icmp eq i1 %27, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %28, label LBL_5, label LBL_6 LBL_5: %29 = add i32 %storemerge3.reload, 1 %30 = load i32, i32* @gv_0, align 4 %31 = icmp ugt i32 %30, %29 store i32 %29, i32* %storemerge3.reg2mem store i32 %16, i32* %sv_0.02.reg2mem store i64 %8, i64* %rax.0.reg2mem br i1 %31, label LBL_2, label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %19, { 1, 0 } uselistorder i32* %storemerge3.reg2mem, { 2, 0, 1 } uselistorder i32* %sv_0.02.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i64 4, { 1, 0 } uselistorder i32* @gv_3, { 1, 0 } uselistorder i32* @gv_0, { 2, 0, 1 } uselistorder i64 ()* @u32in, { 3, 2, 1, 0 } uselistorder i32 1, { 3, 2, 1, 0 } uselistorder label LBL_6, { 1, 0, 2, 3 } uselistorder label LBL_4, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
parse_content_range_12858
parse_content_range
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = inttoptr i64 %arg2 to i8* %2 = call i32 @strncmp(i8* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i32 6) %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_4, label LBL_1 LBL_1: %5 = add i64 %arg2, 6 %6 = inttoptr i64 %5 to i8* %7 = call i64 @strtoll(i8* %6, i8** null, i32 10) store i64 %7, i64* %arg1, align 8 %8 = call i8* @strchr(i8* %6, i32 47) %9 = icmp eq i8* %8, null br i1 %9, label LBL_4, label LBL_2 LBL_2: %10 = load i8, i8* %8, align 1 %11 = icmp eq i8 %10, 0 br i1 %11, label LBL_4, label LBL_3 LBL_3: %12 = ptrtoint i8* %8 to i64 %13 = add i64 %12, 1 %14 = inttoptr i64 %13 to i8* %15 = call i64 @strtoll(i8* %14, i8** null, i32 10) %16 = add i64 %0, 8 %17 = inttoptr i64 %16 to i64* store i64 %15, i64* %17, align 8 br label LBL_4 LBL_4: %18 = add i64 %0, 16 %19 = inttoptr i64 %18 to i32* %20 = load i32, i32* %19, align 4 %21 = zext i32 %20 to i64 %22 = icmp eq i32 %20, -1 %23 = icmp eq i1 %22, false store i64 %21, i64* %rax.0.reg2mem br i1 %23, label LBL_8, label LBL_5 LBL_5: %24 = add i64 %0, 20 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = icmp eq i32 %26, 0 %.pre = add i64 %0, 8 br i1 %27, label LBL_7, label LBL_6 LBL_6: %28 = inttoptr i64 %.pre to i64* %29 = load i64, i64* %28, align 8 %30 = icmp eq i64 %29, 2147483647 store i64 2147483647, i64* %rax.0.reg2mem br i1 %30, label LBL_8, label LBL_7 LBL_7: %31 = inttoptr i64 %.pre to i32* store i32 0, i32* %31, align 4 store i64 %0, i64* %rax.0.reg2mem br label LBL_8 LBL_8: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %0, { 0, 1, 3, 4, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 } uselistorder i64 (i8*, i8**, i32)* @strtoll, { 1, 0 } uselistorder label LBL_7, { 1, 0 } }
1
BinRealVul
x86_assign_hw_event_11293
x86_assign_hw_event
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %rdi = alloca i64, align 8 %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg3, 4294967296 %2 = ashr exact i64 %sext, 30 %3 = add i64 %2, %0 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = bitcast i64* %arg1 to i32* store i32 %5, i32* %6, align 4 %7 = call i64 @FUNC() %8 = trunc i64 %7 to i32 %9 = add i64 %1, 4 %10 = inttoptr i64 %9 to i32* store i32 %8, i32* %10, align 4 %11 = add i64 %0, 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = add i64 %13, %2 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = add i32 %16, 1 store i32 %17, i32* %15, align 4 %18 = add i64 %1, 8 %19 = inttoptr i64 %18 to i32* store i32 %17, i32* %19, align 4 %20 = bitcast i64* %rdi to i32* %21 = load i32, i32* %20, align 8 %22 = icmp eq i32 %21, 0 %23 = icmp eq i1 %22, false br i1 %23, label LBL_2, label LBL_1 LBL_1: %24 = add i64 %1, 12 %25 = inttoptr i64 %24 to i32* store i32 0, i32* %25, align 4 %26 = add i64 %1, 16 %27 = inttoptr i64 %26 to i32* store i32 0, i32* %27, align 4 store i64 %1, i64* %rax.0.reg2mem br label LBL_5 LBL_2: %28 = icmp slt i32 %21, 1 br i1 %28, label LBL_4, label LBL_3 LBL_3: %29 = add i64 %1, 12 %30 = inttoptr i64 %29 to i32* store i32 2, i32* %30, align 4 %31 = add i64 %1, 16 %32 = inttoptr i64 %31 to i32* store i32 3, i32* %32, align 4 store i64 %1, i64* %rax.0.reg2mem br label LBL_5 LBL_4: %33 = zext i32 %21 to i64 %34 = call i64 @FUNC(i64 %33) %35 = trunc i64 %34 to i32 %36 = add i64 %1, 12 %37 = inttoptr i64 %36 to i32* store i32 %35, i32* %37, align 4 %38 = load i32, i32* %20, align 8 %39 = zext i32 %38 to i64 %40 = call i64 @FUNC(i64 %39) %41 = trunc i64 %40 to i32 %42 = add i64 %1, 16 %43 = inttoptr i64 %42 to i32* store i32 %41, i32* %43, align 4 store i64 %40, 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, { 6, 7, 1, 4, 5, 0, 2, 3, 8, 9 } uselistorder i64 %0, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } }
1
BinRealVul
gen_shift_10285
gen_shift
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sext4 = mul i64 %arg3, 4294967296 %0 = ashr exact i64 %sext4, 32 %sext6 = mul i64 %arg5, 4294967296 %1 = ashr exact i64 %sext6, 32 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 br i1 %3, label LBL_2, label LBL_1 LBL_1: %4 = and i64 %1, 4294967295 %5 = and i64 %0, 4294967295 %6 = call i64 @FUNC(i64 %5, i64 1, i64 %4) br label LBL_2 LBL_2: %7 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %8 = ashr exact i64 %sext, 32 %sext5 = mul i64 %arg4, 4294967296 %9 = ashr exact i64 %sext5, 32 %10 = and i64 %8, 4294967295 store i64 %10, i64* @0, align 8 %11 = mul i64 %10, 8 %12 = add i64 %11, ptrtoint (i64* @gv_0 to i64) %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %trunc = trunc i64 %8 to i32 store i64 %14, i64* %rax.0.reg2mem switch i32 %trunc, label LBL_10 [ i32 0, label LBL_3 i32 1, label LBL_4 i32 2, label LBL_5 i32 3, label LBL_5 i32 4, label LBL_6 i32 5, label LBL_7 i32 6, label LBL_8 i32 7, label LBL_9 ] LBL_3: %15 = trunc i64 %9 to i32 %16 = trunc i64 %0 to i32 %17 = call i64 @FUNC(i64 %7, i32 %16, i32 %15, i64 0) store i64 %17, i64* %rax.0.reg2mem br label LBL_10 LBL_4: %18 = trunc i64 %9 to i32 %19 = trunc i64 %0 to i32 %20 = call i64 @FUNC(i64 %7, i32 %19, i32 %18, i64 1) store i64 %20, i64* %rax.0.reg2mem br label LBL_10 LBL_5: %21 = trunc i64 %9 to i32 %22 = trunc i64 %0 to i32 %23 = call i64 @FUNC(i64 %7, i32 %22, i32 %21, i64 0, i64 0) store i64 %23, i64* %rax.0.reg2mem br label LBL_10 LBL_6: %24 = trunc i64 %9 to i32 %25 = trunc i64 %0 to i32 %26 = call i64 @FUNC(i64 %7, i32 %25, i32 %24, i64 1, i64 0) store i64 %26, i64* %rax.0.reg2mem br label LBL_10 LBL_7: %27 = trunc i64 %9 to i32 %28 = trunc i64 %0 to i32 %29 = call i64 @FUNC(i64 %7, i32 %28, i32 %27, i64 1, i64 1) store i64 %29, i64* %rax.0.reg2mem br label LBL_10 LBL_8: %30 = trunc i64 %9 to i32 %31 = trunc i64 %0 to i32 %32 = call i64 @FUNC(i64 %7, i32 %31, i32 %30, i64 0) store i64 %32, i64* %rax.0.reg2mem br label LBL_10 LBL_9: %33 = trunc i64 %9 to i32 %34 = trunc i64 %0 to i32 %35 = call i64 @FUNC(i64 %7, i32 %34, i32 %33, i64 1) store i64 %35, i64* %rax.0.reg2mem br label LBL_10 LBL_10: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %9, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 %8, { 1, 0 } uselistorder i64 %7, { 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 %0, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 7, 6, 5, 4, 3, 2, 1, 8 } uselistorder i64 (i64, i32, i32, i64)* @gen_rotc_rm_T1, { 1, 0 } uselistorder i64 (i64, i32, i32, i64, i64)* @gen_shift_rm_T1, { 2, 1, 0 } uselistorder i64 (i64, i32, i32, i64)* @gen_rot_rm_T1, { 1, 0 } uselistorder i64 32, { 1, 3, 0, 2 } uselistorder i64 4294967296, { 1, 3, 0, 2 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
__evtchn_fifo_handle_events_19292
__evtchn_fifo_handle_events
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.lcssa.reg2mem = alloca i64 %sv_0 = alloca i64, align 8 %0 = and i64 %arg1, 4294967295 %1 = urem i64 %arg2, 256 %2 = call i64 @FUNC(i64* nonnull @gv_0, i64 %0) %3 = call i64 @FUNC(i64 %2, i64 0) store i64 %3, i64* %sv_0, align 8 %4 = icmp eq i64 %3, 0 %5 = icmp eq i1 %4, false store i64 %3, i64* %storemerge.lcssa.reg2mem br i1 %5, label LBL_1, label LBL_2 LBL_1: %6 = call i64 @FUNC(i64* nonnull %sv_0, i64 32) %7 = trunc i64 %6 to i32 %8 = call i64 @FUNC(i64 %0, i64 %2, i32 %7, i64* nonnull %sv_0, i64 %1) %9 = call i64 @FUNC(i64 %2, i64 0) %10 = load i64, i64* %sv_0, align 8 %11 = or i64 %10, %9 store i64 %11, i64* %sv_0, align 8 %12 = icmp eq i64 %11, 0 %13 = icmp eq i1 %12, false store i64 %11, 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 %11, { 0, 2, 1 } uselistorder i64 %2, { 1, 0, 2 } uselistorder i64 %0, { 1, 0 } uselistorder i64* %sv_0, { 1, 4, 2, 3, 0 } uselistorder i64 32, { 1, 0 } uselistorder i1 false, { 1, 0 } uselistorder i64 (i64, i64)* @xchg, { 1, 0 } uselistorder i32 1, { 3, 0, 4, 2, 1 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
msmpeg4v34_decode_mb_7716
msmpeg4v34_decode_mb
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i32 %.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %sv_0.019.reg2mem = alloca i32 %indvars.iv23.reg2mem = alloca i64 %indvars.iv25.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %sv_2 = alloca i32, align 4 %sv_3 = alloca i32, align 4 %sv_4 = alloca i8*, align 8 %3 = add i64 %2, 88 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = add i64 %2, 12 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = add i64 %2, 16 %10 = inttoptr i64 %9 to i32* %11 = load i32, i32* %10, align 4 %12 = add i64 %2, 20 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = mul i32 %14, %11 %16 = add i32 %15, %8 %17 = sext i32 %16 to i64 %18 = mul i64 %17, 4 %19 = add i64 %18, %5 %20 = inttoptr i64 %19 to i32* %21 = trunc i64 %1 to i32 %22 = icmp eq i32 %21, 1 %23 = icmp eq i1 %22, false br i1 %23, label LBL_8, label LBL_1 LBL_1: %24 = add i64 %2, 4 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = icmp eq i32 %26, 0 %.pre = add i64 %2, 96 br i1 %27, label LBL_6, label LBL_2 LBL_2: %28 = call i64 @FUNC(i64 %.pre) %29 = trunc i64 %28 to i32 %30 = icmp eq i32 %29, 0 br i1 %30, label LBL_6, label LBL_3 LBL_3: %31 = add i64 %2, 8 %32 = inttoptr i64 %31 to i32* store i32 0, i32* %32, align 4 %33 = add i64 %2, 44 store i64 0, i64* %indvars.iv25.reg2mem br label LBL_4 LBL_4: %indvars.iv25.reload = load i64, i64* %indvars.iv25.reg2mem %34 = mul i64 %indvars.iv25.reload, 4 %35 = add i64 %33, %34 %36 = inttoptr i64 %35 to i32* store i32 -1, i32* %36, align 4 %indvars.iv.next26 = add nuw nsw i64 %indvars.iv25.reload, 1 %exitcond27 = icmp eq i64 %indvars.iv.next26, 6 store i64 %indvars.iv.next26, i64* %indvars.iv25.reg2mem br i1 %exitcond27, label LBL_5, label LBL_4 LBL_5: %37 = add i64 %2, 28 %38 = inttoptr i64 %37 to i32* store i32 0, i32* %38, align 4 %39 = add i64 %2, 32 %40 = inttoptr i64 %39 to i32* store i32 1, i32* %40, align 4 %41 = add i64 %2, 36 %42 = inttoptr i64 %41 to i32* store i32 0, i32* %42, align 4 %43 = add i64 %2, 40 %44 = inttoptr i64 %43 to i32* store i32 0, i32* %44, align 4 %45 = add i64 %2, 24 %46 = inttoptr i64 %45 to i32* store i32 1, i32* %46, align 4 store i32 14, i32* %20, align 4 store i64 0, i64* %rax.0.reg2mem br label LBL_27 LBL_6: %47 = load i64, i64* @gv_0, align 8 %48 = call i64 @FUNC(i64 %.pre, i64 %47, i64 10, i64 3) %49 = trunc i64 %48 to i32 %50 = icmp slt i32 %49, 0 %51 = icmp eq i1 %50, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %51, label LBL_7, label LBL_27 LBL_7: %52 = udiv i32 %49, 64 %53 = urem i32 %52, 2 %54 = xor i32 %53, 1 %55 = add i64 %2, 8 %56 = inttoptr i64 %55 to i32* store i32 %54, i32* %56, align 4 %57 = urem i32 %49, 64 store i32 %54, i32* %.reg2mem store i32 %57, i32* %sv_0.1.reg2mem br label LBL_14 LBL_8: %58 = add i64 %2, 8 %59 = inttoptr i64 %58 to i32* store i32 1, i32* %59, align 4 %60 = load i64, i64* @gv_1, align 8 %61 = add i64 %2, 96 %62 = call i64 @FUNC(i64 %61, i64 %60, i64 10, i64 2) %63 = trunc i64 %62 to i32 %64 = icmp slt i32 %63, 0 %65 = icmp eq i1 %64, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %65, label LBL_9, label LBL_27 LBL_9: %66 = bitcast i8** %sv_4 to i64* store i64 0, i64* %indvars.iv23.reg2mem store i32 0, i32* %sv_0.019.reg2mem br label LBL_10 LBL_10: %sv_0.019.reload = load i32, i32* %sv_0.019.reg2mem %indvars.iv23.reload = load i64, i64* %indvars.iv23.reg2mem %67 = trunc i64 %indvars.iv23.reload to i32 %68 = sub i32 5, %67 %69 = lshr i32 %63, %68 %70 = urem i32 %69, 2 %71 = icmp ugt i64 %indvars.iv23.reload, 3 store i32 %70, i32* %sv_1.0.reg2mem br i1 %71, label LBL_12, label LBL_11 LBL_11: %72 = call i64 @FUNC(i64 %2, i64 %indvars.iv23.reload, i64* nonnull %66) %73 = trunc i64 %72 to i32 %74 = xor i32 %70, %73 %75 = load i8*, i8** %sv_4, align 8 %76 = trunc i32 %74 to i8 store i8 %76, i8* %75, align 1 store i32 %74, i32* %sv_1.0.reg2mem br label LBL_12 LBL_12: %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %77 = shl i32 %sv_1.0.reload, %68 %78 = or i32 %77, %sv_0.019.reload %indvars.iv.next24 = add nuw nsw i64 %indvars.iv23.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next24, 6 store i64 %indvars.iv.next24, i64* %indvars.iv23.reg2mem store i32 %78, i32* %sv_0.019.reg2mem br i1 %exitcond, label LBL_13, label LBL_10 LBL_13: %.pre32 = load i32, i32* %59, align 4 store i32 %.pre32, i32* %.reg2mem store i32 %78, i32* %sv_0.1.reg2mem br label LBL_14 LBL_14: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem %.reload = load i32, i32* %.reg2mem %79 = icmp eq i32 %.reload, 0 %80 = icmp eq i1 %79, false br i1 %80, label LBL_19, label LBL_15 LBL_15: %81 = add i64 %2, 168 %82 = inttoptr i64 %81 to i64* %83 = load i64, i64* %82, align 8 %84 = icmp eq i64 %83, 0 %85 = icmp eq i32 %sv_0.1.reload, 0 %or.cond = or i1 %85, %84 br i1 %or.cond, label LBL_17, label LBL_16 LBL_16: %86 = add i64 %2, 96 %87 = call i64 @FUNC(i64 %86) %88 = trunc i64 %87 to i32 %89 = add i64 %2, 68 %90 = inttoptr i64 %89 to i32* store i32 %88, i32* %90, align 4 %91 = add i64 %2, 72 %92 = inttoptr i64 %91 to i32* store i32 %88, i32* %92, align 4 br label LBL_17 LBL_17: %93 = bitcast i32* %sv_2 to i64* %94 = bitcast i32* %sv_3 to i64* %95 = call i64 @FUNC(i64 %2, i64 0, i64 0, i64* nonnull %93, i64* nonnull %94) %96 = call i64 @FUNC(i64 %2, i64* nonnull %93, i64* nonnull %94) %97 = trunc i64 %96 to i32 %98 = icmp slt i32 %97, 0 %99 = icmp eq i1 %98, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %99, label LBL_18, label LBL_27 LBL_18: %100 = add i64 %2, 28 %101 = inttoptr i64 %100 to i32* store i32 0, i32* %101, align 4 %102 = add i64 %2, 32 %103 = inttoptr i64 %102 to i32* store i32 1, i32* %103, align 4 %104 = load i32, i32* %sv_2, align 4 %105 = add i64 %2, 36 %106 = inttoptr i64 %105 to i32* store i32 %104, i32* %106, align 4 %107 = load i32, i32* %sv_3, align 4 %108 = add i64 %2, 40 %109 = inttoptr i64 %108 to i32* store i32 %107, i32* %109, align 4 store i32 12, i32* %20, align 4 br label LBL_23 LBL_19: %110 = add i64 %2, 96 %111 = call i64 @FUNC(i64 %110, i64 24) %112 = and i64 %111, 4294967295 %113 = urem i32 %sv_0.1.reload, 4 %114 = icmp eq i32 %113, 0 %115 = icmp eq i1 %114, false %116 = zext i1 %115 to i64 %117 = and i32 %sv_0.1.reload, 60 %118 = icmp eq i32 %117, 0 %. = select i1 %118, i64 0, i64 2 %119 = or i64 %., %116 %120 = load i32, i32* %10, align 4 %121 = load i32, i32* %7, align 4 %122 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0), i32 %121, i32 %120, i64 %119, i64 %112) %123 = call i64 @FUNC(i64 %110) %124 = trunc i64 %123 to i32 %125 = add i64 %2, 76 %126 = inttoptr i64 %125 to i32* store i32 %124, i32* %126, align 4 store i32 16, i32* %20, align 4 %127 = add i64 %2, 176 %128 = inttoptr i64 %127 to i64* %129 = load i64, i64* %128, align 8 %130 = icmp eq i64 %129, 0 br i1 %130, label LBL_21, label LBL_20 LBL_20: %131 = load i64, i64* @gv_3, align 8 %132 = call i64 @FUNC(i64 %110, i64 %131, i64 10, i64 1) %133 = trunc i64 %132 to i32 %134 = add i64 %2, 80 %135 = inttoptr i64 %134 to i32* store i32 %133, i32* %135, align 4 %136 = load i32, i32* %10, align 4 %137 = load i32, i32* %7, align 4 %138 = load i32, i32* %126, align 4 %139 = zext i32 %136 to i64 %140 = zext i32 %137 to i64 %141 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_4, i64 0, i64 0), i32 %138, i32 %133, i64 %140, i64 %139) br label LBL_21 LBL_21: %142 = add i64 %2, 168 %143 = inttoptr i64 %142 to i64* %144 = load i64, i64* %143, align 8 %145 = icmp eq i64 %144, 0 %146 = icmp eq i32 %sv_0.1.reload, 0 %or.cond15 = or i1 %146, %145 br i1 %or.cond15, label LBL_23, label LBL_22 LBL_22: %147 = call i64 @FUNC(i64 %110) %148 = trunc i64 %147 to i32 %149 = add i64 %2, 68 %150 = inttoptr i64 %149 to i32* store i32 %148, i32* %150, align 4 %151 = add i64 %2, 72 %152 = inttoptr i64 %151 to i32* store i32 %148, i32* %152, align 4 br label LBL_23 LBL_23: %153 = ptrtoint i64* %arg2 to i64 store i64 0, i64* %indvars.iv.reg2mem br label LBL_24 LBL_24: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %154 = trunc i64 %indvars.iv.reload to i32 %155 = sub i32 5, %154 %156 = lshr i32 %sv_0.1.reload, %155 %157 = urem i32 %156, 2 %158 = zext i32 %157 to i64 %159 = mul i64 %indvars.iv.reload, 128 %160 = add i64 %159, %153 %161 = call i64 @FUNC(i64 %2, i64 %160, i32 %154, i64 %158, i64 0) %162 = trunc i64 %161 to i32 %163 = icmp slt i32 %162, 0 %164 = icmp eq i1 %163, false br i1 %164, label LBL_26, label LBL_25 LBL_25: %165 = load i32, i32* %10, align 4 %166 = load i32, i32* %7, align 4 %167 = add i64 %2, 104 %168 = inttoptr i64 %167 to i64* %169 = load i64, i64* %168, align 8 %170 = and i64 %indvars.iv.reload, 4294967295 %171 = zext i32 %165 to i64 %172 = zext i32 %166 to i64 %173 = call i64 @FUNC(i64 %169, i64 0, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_5, i64 0, i64 0), i64 %172, i64 %171, i64 %170) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_27 LBL_26: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %174 = icmp ult i64 %indvars.iv.next, 6 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %174, label LBL_24, label LBL_27 LBL_27: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %indvars.iv.reload, { 0, 2, 3, 1 } uselistorder i64 %110, { 1, 0, 2, 3 } uselistorder i32 %sv_0.1.reload, { 3, 1, 0, 4, 2 } uselistorder i32 %70, { 1, 0 } uselistorder i32 %68, { 1, 0 } uselistorder i64 %indvars.iv23.reload, { 0, 2, 1, 3 } uselistorder i32 %49, { 1, 0, 2 } uselistorder i32* %20, { 2, 1, 0 } uselistorder i64 %2, { 17, 18, 21, 22, 23, 19, 20, 24, 25, 26, 28, 11, 12, 13, 14, 15, 16, 9, 10, 29, 27, 30, 31, 32, 8, 2, 3, 4, 5, 6, 1, 7, 0, 33, 34, 35, 36, 37 } uselistorder i64* %indvars.iv25.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv23.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.019.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 6, 2, 3, 4, 5 } uselistorder i64 (i64, i8*, i32, i32, i64, i64)* @av_dlog, { 1, 0 } uselistorder i64 (i64)* @decode012, { 1, 0 } uselistorder i32 5, { 1, 0 } uselistorder i32 64, { 1, 0 } uselistorder i64 4294967295, { 3, 4, 5, 0, 1, 2 } uselistorder i64 (i64, i64, i64, i64)* @get_vlc2, { 2, 1, 0 } uselistorder i64 6, { 2, 1, 0 } uselistorder i64 1, { 2, 3, 1, 0 } uselistorder i64 (i64)* @get_bits1, { 1, 0 } uselistorder i32 0, { 3, 1, 4, 5, 6, 7, 2, 8, 0, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 } uselistorder i64 4, { 0, 2, 1 } uselistorder label LBL_27, { 0, 4, 1, 2, 3, 5 } uselistorder label LBL_24, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
1
BinRealVul
do_cp_12280
do_cp
define i64 @FUNC(i32* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i32* %arg1 to i64 %1 = call i64 @FUNC(i64 %0, i64 %arg2) %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = call i64 @FUNC(i64 %0, i64 %arg2) store i64 %5, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %6 = call i64 @FUNC(i64 %0) store i64 %6, 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
itc_tag_read_2182
itc_tag_read
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = icmp ult i64 %arg2, 8184 %.mask = and i64 %arg2, -8 %1 = icmp eq i64 %.mask, 8184 %2 = or i1 %0, %1 br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 %arg2) store i64 0, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %4 = ptrtoint i64* %arg1 to i64 %5 = add i64 %.mask, %4 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 store i64 %7, 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 %arg2, { 1, 0, 2 } }
0
BinRealVul
pxa2xx_pic_init_16743
pxa2xx_pic_init
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 40) %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false store i64 0, i64* %storemerge.reg2mem br i1 %2, label LBL_1, label LBL_2 LBL_1: %3 = inttoptr i64 %0 to i64* store i64 %arg2, i64* %3, align 8 %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i64* store i64 %arg1, i64* %5, align 8 %6 = add i64 %0, 16 %7 = inttoptr i64 %6 to i32* store i32 0, i32* %7, align 4 %8 = add i64 %0, 20 %9 = inttoptr i64 %8 to i32* store i32 0, i32* %9, align 4 %10 = add i64 %0, 24 %11 = inttoptr i64 %10 to i32* store i32 0, i32* %11, align 4 %12 = add i64 %0, 28 %13 = inttoptr i64 %12 to i32* store i32 0, i32* %13, align 4 %14 = add i64 %0, 32 %15 = inttoptr i64 %14 to i32* store i32 0, i32* %15, align 4 %16 = add i64 %0, 36 %17 = inttoptr i64 %16 to i32* store i32 0, i32* %17, align 4 %18 = call i64 @FUNC(i64 4198905, i64 %0, i64 2) %19 = call i64 @FUNC(i64 0, i64 4198912, i64 4198923, i64 %0) %20 = trunc i64 %19 to i32 %21 = call i64 @FUNC(i64 %arg1, i64 1048575, i32 %20) %22 = call i64 @FUNC(i64 %arg2, i64 6, i64 4198934, i64 4198945, i64 %0) %23 = call i64 @FUNC(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 0, i64 0, i64 4198956, i64 4198967, i64 %0) store i64 %18, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %0, { 0, 3, 2, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32 1, { 3, 2, 1, 0, 4 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
vhost_dev_log_resize_15108
vhost_dev_log_resize
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = icmp eq i64 %arg2, 0 store i64 0, i64* %storemerge.reg2mem br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64 @FUNC(i64 0) store i64 %3, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %4 = trunc i64 %1 to i32 %storemerge.reload = load i64, i64* %storemerge.reg2mem %5 = call i32 (i32, i32, ...) @ioctl(i32 %4, i32 1074310656) %6 = icmp slt i32 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_4, label LBL_3 LBL_3: call void @__assert_fail(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @gv_1, i64 0, i64 0), i32 44, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_2, i64 0, i64 0)) br label LBL_4 LBL_4: %8 = ptrtoint i64* %arg1 to i64 %9 = add i64 %8, 24 %10 = call i64 @FUNC(i64 %9, i64 0, i64 -1) %11 = add i64 %8, 8 %12 = inttoptr i64 %11 to i64* %13 = load i64, i64* %12, align 8 %14 = icmp eq i64 %13, 0 br i1 %14, label LBL_6, label LBL_5 LBL_5: %15 = call i64 @FUNC(i64 %13) br label LBL_6 LBL_6: store i64 %storemerge.reload, i64* %12, align 8 %16 = add i64 %8, 16 %17 = inttoptr i64 %16 to i64* store i64 %arg2, i64* %17, align 8 ret i64 %8 uselistorder i64 %8, { 0, 1, 3, 2 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
cifs_sync_mid_result_8246
cifs_sync_mid_result
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.in.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = add i64 %2, 16 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = add i64 %2, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = urem i64 %1, 65536 %10 = call i64 @FUNC(i64 %9) %11 = zext i32 %5 to i64 %12 = urem i64 %10, 65536 %13 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0), i64 %12, i64 %8, i64 %11) %14 = call i64 @FUNC(i64* nonnull @gv_2) %15 = load i32, i32* %4, align 4 %16 = icmp eq i32 %15, 3 store i64 4294967184, i64* %sv_0.0.reg2mem br i1 %16, label LBL_6, label LBL_1 LBL_1: %17 = icmp sgt i32 %15, 3 br i1 %17, label LBL_4, label LBL_2 LBL_2: store i64 4294967291, i64* %sv_0.0.reg2mem switch i32 %15, label LBL_4 [ i32 2, label LBL_6 i32 0, label LBL_3 i32 1, label LBL_5 ] LBL_3: %18 = call i64 @FUNC(i64* nonnull @gv_2) store i64 0, i64* %storemerge.in.reg2mem br label LBL_7 LBL_4: %19 = add i64 %2, 24 %20 = call i64 @FUNC(i64 %19) %21 = load i32, i32* %4, align 4 %22 = load i64, i64* %7, align 8 %23 = zext i32 %21 to i64 %24 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0), i64 %22, i64 %23, i64 %11) store i64 4294967291, i64* %sv_0.0.reg2mem br label LBL_6 LBL_5: store i64 4294967285, i64* %sv_0.0.reg2mem br label LBL_6 LBL_6: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %25 = call i64 @FUNC(i64* nonnull @gv_2) %26 = call i64 @FUNC(i64 %2) store i64 %sv_0.0.reload, i64* %storemerge.in.reg2mem br label LBL_7 LBL_7: %storemerge.in.reload = load i64, i64* %storemerge.in.reg2mem %storemerge = and i64 %storemerge.in.reload, 4294967295 ret i64 %storemerge uselistorder i64 %2, { 1, 0, 2, 3 } uselistorder i64* %sv_0.0.reg2mem, { 0, 1, 4, 3, 2 } uselistorder i64 (i64*)* @spin_unlock, { 1, 0 } uselistorder i64 4294967291, { 1, 0 } uselistorder i32 3, { 1, 0 } uselistorder i64* @gv_2, { 1, 0, 2 } uselistorder label LBL_6, { 1, 3, 0, 2 } }
0
BinRealVul
fli_write_copy_9342
fli_write_copy
define i64 @FUNC(i64 %arg1, i16* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i16* %arg2 to i64 %3 = inttoptr i64 %arg1 to %_IO_FILE* %4 = call i32 @ftell(%_IO_FILE* %3) %5 = sext i32 %4 to i64 %6 = add i32 %4, 6 %7 = call i32 @fseek(%_IO_FILE* %3, i32 %6, i32 0) %8 = add i64 %2, 2 %9 = inttoptr i64 %8 to i16* %10 = load i16, i16* %9, align 2 %11 = trunc i64 %1 to i32 %12 = inttoptr i64 %arg3 to i64* %13 = urem i32 %11, 65536 %14 = zext i16 %10 to i32 %15 = call i32 @fwrite(i64* %12, i32 %13, i32 %14, %_IO_FILE* %3) %16 = call i32 @ftell(%_IO_FILE* %3) %17 = sext i32 %16 to i64 %18 = sub nsw i64 %17, %5 %19 = call i32 @fseek(%_IO_FILE* %3, i32 %4, i32 0) %20 = call i64 @FUNC(i64 %arg1, i64 %18) %21 = call i64 @FUNC(i64 %arg1, i64 61946) %22 = urem i64 %18, 2 %23 = icmp ne i64 %22, 0 %24 = zext i1 %23 to i64 %spec.select = add nsw i64 %18, %24 %25 = trunc i64 %spec.select to i32 %26 = add i32 %4, %25 %27 = call i32 @fseek(%_IO_FILE* %3, i32 %26, i32 0) %28 = sext i32 %27 to i64 ret i64 %28 uselistorder i64 %18, { 1, 0, 2 } uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 2, 1, 0 } uselistorder i32 (%_IO_FILE*, i32, i32)* @fseek, { 2, 1, 0 } uselistorder i32 (%_IO_FILE*)* @ftell, { 1, 0 } }
0
BinRealVul
moduleLoad_18086
moduleLoad
define i64 @FUNC(i64 %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = inttoptr i64 %arg1 to i8* %5 = call i64* @dlopen(i8* %4, i32 2) %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 i8* @dlerror() %9 = ptrtoint i8* %8 to i64 %10 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i64 %arg1, i64 %9, i64 %2, i64 %1) br label LBL_5 LBL_2: %11 = call i64* @dlsym(i64* %5, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @gv_1, i64 0, i64 0)) %12 = icmp eq i64* %11, null %13 = icmp eq i1 %12, false br i1 %13, label LBL_4, label LBL_3 LBL_3: %14 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @gv_2, i64 0, i64 0), i64 %arg1, i64 %3, i64 %2, i64 %1) br label LBL_5 LBL_4: call void @llvm.trap() unreachable LBL_5: ret i64 4294967295 uselistorder i64 %1, { 1, 0 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @serverLog, { 1, 0 } uselistorder i64 %arg1, { 1, 0, 2 } }
1
BinRealVul
e1000e_macreg_read_13915
e1000e_macreg_read
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = and i64 %arg2, 4294967295 %5 = add i64 %3, %4 %6 = call i64 @FUNC(i64 %0, i64 %5) ret i64 %6 }
1
BinRealVul
net_tap_fd_init_17206
net_tap_fd_init
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 16) %1 = icmp eq i64 %0, 0 %2 = icmp eq i1 %1, false store i64 0, i64* %storemerge.reg2mem br i1 %2, label LBL_1, label LBL_2 LBL_1: %sext = mul i64 %arg2, 4294967296 %3 = ashr exact i64 %sext, 32 %4 = inttoptr i64 %0 to i32* %5 = ptrtoint i64* %arg1 to i64 %6 = trunc i64 %3 to i32 store i32 %6, i32* %4, align 4 %7 = call i64 @FUNC(i64 %5, i64 4198835, i64 %0) %8 = add i64 %0, 8 %9 = inttoptr i64 %8 to i64* store i64 %7, i64* %9, align 8 %10 = load i32, i32* %4, align 4 %11 = zext i32 %10 to i64 %12 = call i64 @FUNC(i64 %11, i64 4198842, i64 0, i64 %0) %13 = load i64, i64* %9, align 8 %14 = and i64 %3, 4294967295 %15 = inttoptr i64 %13 to i8* %16 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %15, i32 256, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_0, i64 0, i64 0), i64 %14) store i64 %0, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
cortex_a15_initfn_16480
cortex_a15_initfn
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 %1, i64 1) %3 = call i64 @FUNC(i64 %1, i64 2) %4 = call i64 @FUNC(i64 %1, i64 3) %5 = call i64 @FUNC(i64 %1, i64 4) %6 = call i64 @FUNC(i64 %1, i64 5) %7 = call i64 @FUNC(i64 %1, i64 6) %8 = call i64 @FUNC(i64 %1, i64 7) %9 = call i64 @FUNC(i64 %1, i64 8) %10 = call i64 @FUNC(i64 %1, i64 9) %11 = add i64 %1, 4 %12 = inttoptr i64 %11 to i32* store i32 1093648625, i32* %12, align 4 %13 = add i64 %1, 8 %14 = inttoptr i64 %13 to i32* store i32 1090793712, i32* %14, align 4 %15 = add i64 %1, 12 %16 = inttoptr i64 %15 to i32* store i32 269550114, i32* %16, align 4 %17 = add i64 %1, 16 %18 = inttoptr i64 %17 to i32* store i32 286331153, i32* %18, align 4 %19 = add i64 %1, 20 %20 = inttoptr i64 %19 to i32* store i32 -2075869180, i32* %20, align 4 %21 = add i64 %1, 24 %22 = inttoptr i64 %21 to i32* store i32 12910712, i32* %22, align 4 %23 = add i64 %1, 28 %24 = inttoptr i64 %23 to i32* store i32 4401, i32* %24, align 4 %25 = add i64 %1, 32 %26 = inttoptr i64 %25 to i32* store i32 69649, i32* %26, align 4 %27 = add i64 %1, 36 %28 = inttoptr i64 %27 to i32* store i32 33621333, i32* %28, align 4 %29 = add i64 %1, 40 %30 = inttoptr i64 %29 to i32* store i32 0, i32* %30, align 4 %31 = add i64 %1, 44 %32 = inttoptr i64 %31 to i32* store i32 270536965, i32* %32, align 4 %33 = add i64 %1, 48 %34 = inttoptr i64 %33 to i32* store i32 536870912, i32* %34, align 4 %35 = add i64 %1, 52 %36 = inttoptr i64 %35 to i32* store i32 19136512, i32* %36, align 4 %37 = add i64 %1, 56 %38 = inttoptr i64 %37 to i32* store i32 34611729, i32* %38, align 4 %39 = add i64 %1, 60 %40 = inttoptr i64 %39 to i32* store i32 34607376, i32* %40, align 4 %41 = add i64 %1, 64 %42 = inttoptr i64 %41 to i32* store i32 319889681, i32* %42, align 4 %43 = add i64 %1, 68 %44 = inttoptr i64 %43 to i32* store i32 555950145, i32* %44, align 4 %45 = add i64 %1, 72 %46 = inttoptr i64 %45 to i32* store i32 286335281, i32* %46, align 4 %47 = add i64 %1, 76 %48 = inttoptr i64 %47 to i32* store i32 268505410, i32* %48, align 4 %49 = add i64 %1, 80 %50 = inttoptr i64 %49 to i32* store i32 169869347, i32* %50, align 4 %51 = add i64 %1, 84 %52 = inttoptr i64 %51 to i32* store i32 1881137162, i32* %52, align 4 %53 = add i64 %1, 88 %54 = inttoptr i64 %53 to i32* store i32 538959882, i32* %54, align 4 %55 = add i64 %1, 92 %56 = inttoptr i64 %55 to i32* store i32 1897914490, i32* %56, align 4 %57 = load i64, i64* @gv_0, align 8 %58 = call i64 @FUNC(i64 %1, i64 %57) ret i64 %58 uselistorder i64 8, { 1, 0 } uselistorder i64 4, { 1, 0 } uselistorder i64 (i64, i64)* @set_feature, { 8, 7, 6, 5, 4, 3, 2, 1, 0 } }
1
BinRealVul
vmxnet3_get_command_status_1622
vmxnet3_get_command_status
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = and i64 %1, 4294967295 store i64 %4, i64* @0, align 8 store i64 0, i64* %sv_0.0.reg2mem store i64 0, i64* %sv_0.0.reg2mem store i64 0, i64* %sv_0.0.reg2mem store i64 0, i64* %sv_0.0.reg2mem switch i32 %3, label LBL_6 [ i32 1, label LBL_1 i32 2, label LBL_7 i32 3, label LBL_7 i32 4, label LBL_7 i32 5, label LBL_2 i32 6, label LBL_3 i32 7, label LBL_4 i32 8, label LBL_5 i32 9, label LBL_7 ] LBL_1: %5 = add i64 %2, 4 %6 = inttoptr i64 %5 to i32* %7 = load i32, i32* %6, align 4 %8 = icmp eq i32 %7, 0 %9 = zext i1 %8 to i64 %10 = zext i1 %8 to i32 %11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i32 %10) store i64 %9, i64* %sv_0.0.reg2mem br label LBL_7 LBL_2: %12 = add i64 %2, 8 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = trunc i64 %14 to i32 %16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @gv_1, i64 0, i64 0), i32 %15) store i64 %14, i64* %sv_0.0.reg2mem br label LBL_7 LBL_3: %17 = add i64 %2, 16 %18 = call i64 @FUNC(i64 %17) store i64 %18, i64* %sv_0.0.reg2mem br label LBL_7 LBL_4: %19 = add i64 %2, 16 %20 = call i64 @FUNC(i64 %19) store i64 %20, i64* %sv_0.0.reg2mem br label LBL_7 LBL_5: %21 = call i64 @FUNC(i64 %2) store i64 %21, i64* %sv_0.0.reg2mem br label LBL_7 LBL_6: %22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_2, i64 0, i64 0), i32 %3) store i64 -1, i64* %sv_0.0.reg2mem br label LBL_7 LBL_7: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem ret i64 %sv_0.0.reload uselistorder i64 %2, { 4, 3, 2, 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %sv_0.0.reg2mem, { 0, 10, 9, 8, 7, 6, 5, 1, 2, 3, 4 } uselistorder label LBL_7, { 9, 4, 5, 6, 7, 8, 0, 3, 2, 1 } }
0
BinRealVul
get_dnode_of_data_7604
get_dnode_of_data
define i64 @FUNC(i64* %arg1, i64 %arg2, i32 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i32 %sv_0.0.reg2mem = alloca i32 %.pre-phi.reg2mem = alloca i64 %.pre-phi53.reg2mem = alloca i64* %.pre-phi55.reg2mem = alloca i64 %.pre-phi57.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %.pre-phi59.reg2mem = alloca i32 %sv_2.0.reg2mem = alloca i8 %sv_1.126.reg2mem = alloca i64 %storemerge29.reg2mem = alloca i32 %sv_3.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_4 = alloca i64, align 8 %sv_5 = alloca i32, align 4 %sv_6 = alloca i64, align 8 %sv_7 = alloca i64, align 8 %1 = bitcast i32* %sv_5 to i64* %2 = call i64 @FUNC(i64 0, i64 %arg2, i64* nonnull %1, i64* nonnull %sv_6) store i64 0, i64* %sv_4, align 8 %3 = add i64 %0, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = icmp eq i64 %5, 0 %7 = icmp eq i1 %6, false store i64 %5, i64* %sv_3.0.reg2mem br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = call i64 @FUNC(i64 0, i64 0) %9 = icmp ult i64 %8, -1000 store i64 %8, i64* %sv_3.0.reg2mem store i64 %8, i64* %rax.0.reg2mem br i1 %9, label LBL_2, label LBL_32 LBL_2: %sv_3.0.reload = load i64, i64* %sv_3.0.reg2mem %10 = call i64 @FUNC(i64 0) %11 = trunc i64 %10 to i32 %12 = icmp eq i32 %11, 0 %13 = icmp eq i64 %arg2, 0 %or.cond = or i1 %13, %12 br i1 %or.cond, label LBL_4, label LBL_3 LBL_3: %14 = call i64 @FUNC(i64 %sv_3.0.reload, i64 1) store i32 -22, i32* %sv_0.1.reg2mem br label LBL_31 LBL_4: %15 = ptrtoint i64* %sv_7 to i64 %16 = trunc i64 %2 to i32 %17 = icmp eq i32 %16, 0 br i1 %17, label LBL_5, label LBL_6 LBL_5: store i64 %sv_3.0.reload, i64* %4, align 8 %18 = add i64 %0, 16 %19 = inttoptr i64 %18 to i32* store i32 1, i32* %19, align 4 br label LBL_6.LBL_28_crit_edge LBL_6: %20 = load i32, i32* %sv_5, align 4 %21 = zext i32 %20 to i64 %22 = call i64 @FUNC(i64 %sv_3.0.reload, i64 %21, i64 1) store i64 %sv_3.0.reload, i64* %4, align 8 %23 = add i64 %0, 16 %24 = inttoptr i64 %23 to i32* store i32 1, i32* %24, align 4 %25 = icmp slt i32 %16, 1 br i1 %25, label LBL_6.LBL_28_crit_edge, label LBL_8 LBL_7: %.pre = add i64 %15, -160 %.pre50 = add i64 %0, 24 %.pre52 = inttoptr i64 %.pre50 to i64* %.pre54 = add i64 %15, -112 %.pre56 = add i64 %15, -96 store i64 %.pre56, i64* %.pre-phi57.reg2mem store i64 %.pre54, i64* %.pre-phi55.reg2mem store i64* %.pre52, i64** %.pre-phi53.reg2mem store i64 %.pre, i64* %.pre-phi.reg2mem br label LBL_28 LBL_8: %26 = add i64 %15, -160 %27 = icmp eq i32 %arg3, 1 %28 = icmp eq i32 %arg3, 2 %29 = icmp eq i1 %28, false %30 = icmp eq i32 %16, 1 %31 = add i64 %15, -112 %32 = add i64 %15, -96 %33 = ptrtoint i64* %sv_4 to i64 %34 = add i64 %0, 24 %35 = inttoptr i64 %34 to i64* %36 = add i64 %15, -128 store i32 1, i32* %storemerge29.reg2mem store i64 %sv_3.0.reload, i64* %sv_1.126.reg2mem br label LBL_9 LBL_9: %sv_1.126.reload = load i64, i64* %sv_1.126.reg2mem %storemerge29.reload = load i32, i32* %storemerge29.reg2mem %37 = sext i32 %storemerge29.reload to i64 %38 = mul i64 %37, 8 %39 = add i64 %38, %26 %40 = inttoptr i64 %39 to i64* %41 = load i64, i64* %40, align 8 %42 = icmp eq i64 %41, 0 %43 = icmp eq i1 %27, %42 br i1 %43, label LBL_10, label LBL_14 LBL_10: %44 = add i64 %38, %33 %45 = call i64 @FUNC(i64 0, i64 %44) %46 = trunc i64 %45 to i8 %47 = icmp eq i8 %46, 1 store i32 -28, i32* %sv_0.0.reg2mem br i1 %47, label LBL_11, label LBL_29 LBL_11: %48 = load i64, i64* %40, align 8 store i64 %48, i64* %35, align 8 %49 = mul i64 %37, 4 %50 = add i64 %36, %49 %51 = inttoptr i64 %50 to i32* %52 = load i32, i32* %51, align 4 %53 = zext i32 %52 to i64 %54 = call i64 @FUNC(i64 %0, i64 %53, i64 0) %55 = add i64 %38, %32 %56 = inttoptr i64 %55 to i64* store i64 %54, i64* %56, align 8 %57 = icmp ult i64 %54, -1000 br i1 %57, label LBL_13, label LBL_12 LBL_12: %58 = load i64, i64* %40, align 8 %59 = call i64 @FUNC(i64 0, i64 %58) %60 = load i64, i64* %56, align 8 %61 = trunc i64 %60 to i32 store i32 %61, i32* %sv_0.0.reg2mem br label LBL_29 LBL_13: %62 = icmp eq i32 %storemerge29.reload, 1 %63 = zext i1 %62 to i64 %64 = load i64, i64* %40, align 8 %65 = add i32 %storemerge29.reload, -1 %66 = sext i32 %65 to i64 %67 = mul i64 %66, 4 %68 = add i64 %67, %31 %69 = inttoptr i64 %68 to i32* %70 = load i32, i32* %69, align 4 %71 = call i64 @FUNC(i64 %sv_1.126.reload, i32 %70, i64 %64, i64 %63) %72 = load i64, i64* %40, align 8 %73 = call i64 @FUNC(i64 0, i64 %72) store i8 1, i8* %sv_2.0.reg2mem br label LBL_18 LBL_14: store i8 0, i8* %sv_2.0.reg2mem br i1 %29, label LBL_18, label LBL_15 LBL_15: %74 = icmp eq i32 %storemerge29.reload, %16 %75 = icmp eq i1 %74, false %or.cond5 = or i1 %30, %75 store i8 0, i8* %sv_2.0.reg2mem br i1 %or.cond5, label LBL_18, label LBL_16 LBL_16: %76 = add i32 %storemerge29.reload, -1 %77 = sext i32 %76 to i64 %78 = mul i64 %77, 4 %79 = add i64 %78, %31 %80 = inttoptr i64 %79 to i32* %81 = load i32, i32* %80, align 4 %82 = zext i32 %81 to i64 %83 = call i64 @FUNC(i64 %sv_1.126.reload, i64 %82) %84 = add i64 %38, %32 %85 = inttoptr i64 %84 to i64* store i64 %83, i64* %85, align 8 %86 = icmp ult i64 %83, -1000 store i8 1, i8* %sv_2.0.reg2mem br i1 %86, label LBL_18, label LBL_17 LBL_17: %87 = trunc i64 %83 to i32 store i32 %87, i32* %sv_0.0.reg2mem br label LBL_29 LBL_18: %sv_2.0.reload = load i8, i8* %sv_2.0.reg2mem %88 = icmp eq i32 %storemerge29.reload, 1 %89 = icmp eq i1 %88, false br i1 %89, label LBL_20, label LBL_19 LBL_19: store i32 0, i32* %24, align 4 %90 = call i64 @FUNC(i64 %sv_1.126.reload) br label LBL_21 LBL_20: %91 = call i64 @FUNC(i64 %sv_1.126.reload, i64 1) br label LBL_21 LBL_21: %92 = icmp eq i8 %sv_2.0.reload, 1 br i1 %92, label LBL_24, label LBL_22 LBL_22: %93 = load i64, i64* %40, align 8 %94 = call i64 @FUNC(i64 0, i64 %93) %95 = add i64 %38, %32 %96 = inttoptr i64 %95 to i64* store i64 %94, i64* %96, align 8 %97 = icmp ult i64 %94, -1000 br i1 %97, label LBL_24, label LBL_23 LBL_23: %98 = trunc i64 %94 to i32 %99 = call i64 @FUNC(i64 %sv_3.0.reload, i64 0) store i32 %98, i32* %sv_0.1.reg2mem br label LBL_31 LBL_24: %100 = icmp slt i32 %storemerge29.reload, %16 br i1 %100, label LBL_26, label LBL_24.LBL_27_crit_edge LBL_25: %.pre58 = add i32 %storemerge29.reload, 1 store i32 %.pre58, i32* %.pre-phi59.reg2mem store i64 %sv_1.126.reload, i64* %sv_1.0.reg2mem br label LBL_27 LBL_26: %101 = add i64 %38, %32 %102 = inttoptr i64 %101 to i64* %103 = load i64, i64* %102, align 8 %104 = mul i64 %37, 4 %105 = add i64 %104, %31 %106 = inttoptr i64 %105 to i32* %107 = load i32, i32* %106, align 4 %108 = add i32 %storemerge29.reload, 1 %109 = zext i32 %107 to i64 %110 = call i64 @FUNC(i64 %103, i64 %109, i64 0) %111 = sext i32 %108 to i64 %112 = mul i64 %111, 8 %113 = add i64 %112, %26 %114 = inttoptr i64 %113 to i64* store i64 %110, i64* %114, align 8 store i32 %108, i32* %.pre-phi59.reg2mem store i64 %103, i64* %sv_1.0.reg2mem br label LBL_27 LBL_27: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %.pre-phi59.reload = load i32, i32* %.pre-phi59.reg2mem %115 = icmp sgt i32 %.pre-phi59.reload, %16 store i32 %.pre-phi59.reload, i32* %storemerge29.reg2mem store i64 %sv_1.0.reload, i64* %sv_1.126.reg2mem store i64 %32, i64* %.pre-phi57.reg2mem store i64 %31, i64* %.pre-phi55.reg2mem store i64* %35, i64** %.pre-phi53.reg2mem store i64 %26, i64* %.pre-phi.reg2mem br i1 %115, label LBL_28, label LBL_9 LBL_28: %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %.pre-phi53.reload = load i64*, i64** %.pre-phi53.reg2mem %.pre-phi55.reload = load i64, i64* %.pre-phi55.reg2mem %.pre-phi57.reload = load i64, i64* %.pre-phi57.reg2mem %sext = mul i64 %2, 4294967296 %116 = ashr exact i64 %sext, 29 %117 = add i64 %.pre-phi.reload, %116 %118 = inttoptr i64 %117 to i64* %119 = load i64, i64* %118, align 8 store i64 %119, i64* %.pre-phi53.reload, align 8 %120 = ashr exact i64 %sext, 30 %121 = add i64 %.pre-phi55.reload, %120 %122 = inttoptr i64 %121 to i32* %123 = load i32, i32* %122, align 4 %124 = add i64 %0, 32 %125 = inttoptr i64 %124 to i32* store i32 %123, i32* %125, align 4 %126 = add i64 %.pre-phi57.reload, %116 %127 = inttoptr i64 %126 to i64* %128 = load i64, i64* %127, align 8 %129 = add i64 %0, 40 %130 = inttoptr i64 %129 to i64* store i64 %128, i64* %130, align 8 %131 = load i32, i32* %125, align 4 %132 = zext i32 %131 to i64 %133 = call i64 @FUNC(i64 %128, i64 %132) %134 = add i64 %0, 48 %135 = inttoptr i64 %134 to i64* store i64 %133, i64* %135, align 8 store i64 0, i64* %rax.0.reg2mem br label LBL_32 LBL_29: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %136 = call i64 @FUNC(i64 %sv_1.126.reload, i64 1) %137 = icmp slt i32 %storemerge29.reload, 2 store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br i1 %137, label LBL_31, label LBL_30 LBL_30: %138 = call i64 @FUNC(i64 %sv_3.0.reload, i64 0) store i32 %sv_0.0.reload, i32* %sv_0.1.reg2mem br label LBL_31 LBL_31: %sv_0.1.reload = load i32, i32* %sv_0.1.reg2mem store i64 0, i64* %4, align 8 %139 = add i64 %0, 40 %140 = inttoptr i64 %139 to i64* store i64 0, i64* %140, align 8 %141 = zext i32 %sv_0.1.reload to i64 store i64 %141, i64* %rax.0.reg2mem br label LBL_32 LBL_32: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %sext, { 1, 0 } uselistorder i32 %.pre-phi59.reload, { 1, 0 } uselistorder i64* %40, { 4, 1, 2, 0, 3, 5 } uselistorder i64 %38, { 5, 4, 1, 3, 2, 0 } uselistorder i32 %storemerge29.reload, { 9, 7, 8, 6, 4, 3, 2, 1, 0, 5 } uselistorder i64 %sv_1.126.reload, { 5, 0, 3, 4, 2, 1 } uselistorder i64 %32, { 0, 1, 2, 4, 3 } uselistorder i64 %31, { 0, 1, 3, 2 } uselistorder i32 %16, { 4, 3, 2, 0, 1, 5 } uselistorder i64 %15, { 3, 4, 5, 6, 0, 1, 2 } uselistorder i64 %sv_3.0.reload, { 4, 3, 0, 2, 1, 6, 5 } uselistorder i64* %4, { 1, 2, 0, 3 } uselistorder i64 %0, { 4, 5, 6, 7, 2, 3, 1, 8, 0, 9 } uselistorder i32* %storemerge29.reg2mem, { 1, 0, 2 } uselistorder i64* %sv_1.126.reg2mem, { 1, 0, 2 } uselistorder i8* %sv_2.0.reg2mem, { 0, 1, 3, 4, 2 } uselistorder i32* %sv_0.0.reg2mem, { 0, 3, 2, 1 } uselistorder i32* %sv_0.1.reg2mem, { 0, 2, 3, 4, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 } uselistorder i8 1, { 2, 0, 1, 3 } uselistorder i32 2, { 1, 0 } uselistorder i64 -96, { 1, 0 } uselistorder i64 -112, { 1, 0 } uselistorder i64 24, { 1, 0 } uselistorder i64 -160, { 1, 0 } uselistorder i64 (i64, i64, i64)* @get_nid, { 1, 0 } uselistorder i64 16, { 1, 0 } uselistorder i64 (i64, i64)* @f2fs_put_page, { 4, 3, 2, 1, 0 } uselistorder i64 1, { 1, 2, 3, 4, 0 } uselistorder i64 -1000, { 1, 0, 2, 3 } uselistorder i64 (i64, i64)* @get_node_page, { 1, 0 } uselistorder i32 %arg3, { 1, 0 } uselistorder label LBL_32, { 1, 2, 0 } uselistorder label LBL_31, { 1, 0, 2, 3 } uselistorder label LBL_29, { 1, 2, 0 } uselistorder label LBL_27, { 1, 0 } uselistorder label LBL_9, { 1, 0 } uselistorder label LBL_6.LBL_28_crit_edge, { 1, 0 } }
1
BinRealVul
ext4_valid_extent_3936
ext4_valid_extent
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 = ptrtoint i32* %arg2 to i64 %3 = call i64 @FUNC(i64 %2) %4 = call i64 @FUNC(i64 %2) %5 = trunc i64 %4 to i32 %6 = icmp eq i32 %5, 0 %7 = icmp eq i1 %6, false store i64 0, i64* %storemerge.reg2mem br i1 %7, label LBL_1, label LBL_2 LBL_1: %8 = and i64 %1, 4294967295 %9 = call i64 @FUNC(i64 %8) %10 = and i64 %3, 4294967295 %11 = and i64 %9, 4294967295 %12 = call i64 @FUNC(i64 %11, i64 %10, i32 %5) store i64 %12, i64* %storemerge.reg2mem br label LBL_2 LBL_2: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
initializeControlStream_13105
initializeControlStream
define i64 @FUNC() local_unnamed_addr { LBL_0: store i32 0, i32* bitcast (i64* @gv_0 to i32*), align 8 %0 = call i64 @FUNC(i64* nonnull @gv_1) %1 = call i64 @FUNC(i64* nonnull @gv_2, i64 20) %2 = load i32, i32* inttoptr (i64 4210716 to i32*), align 4 %3 = icmp eq i32 %2, 3 %4 = icmp eq i1 %3, false br i1 %4, label LBL_2, label LBL_1 LBL_1: %5 = load i64, i64* @gv_3, align 8 store i64 %5, i64* @gv_4, align 8 %6 = load i64, i64* @gv_5, align 8 store i64 %6, i64* @gv_6, align 8 %7 = load i64, i64* @gv_7, align 8 store i64 %7, i64* @gv_8, align 8 br label LBL_7 LBL_2: %8 = load i32, i32* @gv_9, align 4 %9 = icmp eq i32 %8, 4 %10 = icmp eq i1 %9, false br i1 %10, label LBL_4, label LBL_3 LBL_3: %11 = load i64, i64* @gv_10, align 8 store i64 %11, i64* @gv_4, align 8 %12 = load i64, i64* @gv_11, align 8 store i64 %12, i64* @gv_6, align 8 %13 = load i64, i64* @gv_12, align 8 store i64 %13, i64* @gv_8, align 8 br label LBL_7 LBL_4: %14 = icmp eq i32 %8, 5 %15 = icmp eq i1 %14, false br i1 %15, label LBL_6, label LBL_5 LBL_5: %16 = load i64, i64* @gv_13, align 8 store i64 %16, i64* @gv_4, align 8 %17 = load i64, i64* @gv_14, align 8 store i64 %17, i64* @gv_6, align 8 %18 = load i64, i64* @gv_15, align 8 store i64 %18, i64* @gv_8, align 8 br label LBL_7 LBL_6: %19 = load i64, i64* @gv_16, align 8 store i64 %19, i64* @gv_4, align 8 %20 = load i64, i64* @gv_17, align 8 store i64 %20, i64* @gv_6, align 8 %21 = load i64, i64* @gv_18, align 8 store i64 %21, i64* @gv_8, align 8 br label LBL_7 LBL_7: 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* inttoptr (i64 4210884 to i32*), align 4 ret i64 0 }
1
BinRealVul
readUInt32_6373
readUInt32
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC(i64 %arg1) %1 = urem i64 %0, 256 %2 = call i64 @FUNC(i64 %arg1) %3 = mul i64 %2, 256 %4 = and i64 %3, 65280 %5 = or i64 %4, %1 %6 = call i64 @FUNC(i64 %arg1) %7 = mul i64 %6, 65536 %8 = and i64 %7, 16711680 %9 = or i64 %5, %8 %10 = call i64 @FUNC(i64 %arg1) %11 = mul i64 %10, 16777216 %12 = and i64 %11, 4278190080 %13 = or i64 %9, %12 ret i64 %13 uselistorder i64 (i64)* @readUInt8, { 3, 2, 1, 0 } }
0
BinRealVul
ppc_find_by_name_2470
ppc_find_by_name
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 store i64 0, i64* %arg2, align 8 %0 = inttoptr i64 %arg1 to i8* store i64 0, i64* %indvars.iv.reg2mem br label LBL_1 LBL_1: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %1 = mul i64 %indvars.iv.reload, 8 %2 = add i64 %1, ptrtoint ([3 x i8*]* @gv_0 to i64) %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = inttoptr i64 %4 to i8* %6 = call i32 @strcasecmp(i8* %0, i8* %5) %7 = icmp eq i32 %6, 0 %8 = icmp eq i1 %7, false br i1 %8, label LBL_3, label LBL_2 LBL_2: store i64 %2, i64* %arg2, align 8 store i64 0, i64* %sv_0.0.reg2mem br label LBL_4 LBL_3: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %9 = icmp ult i64 %indvars.iv.next, 3 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 4294967295, i64* %sv_0.0.reg2mem br i1 %9, label LBL_1, label LBL_4 LBL_4: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem ret i64 %sv_0.0.reload uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder label LBL_1, { 1, 0 } }
0
BinRealVul
strieq_10777
strieq
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %0 = or i64 %arg2, %arg1 %1 = icmp eq i64 %0, 0 store i64 1, i64* %rax.0.reg2mem br i1 %1, label LBL_6, label LBL_1 LBL_1: %2 = icmp eq i64 %arg2, 0 %3 = icmp eq i1 %2, false %4 = icmp ne i64 %arg1, 0 %or.cond3 = icmp eq i1 %4, %3 store i64 0, i64* %rax.0.reg2mem br i1 %or.cond3, label LBL_2, label LBL_6 LBL_2: %5 = inttoptr i64 %arg1 to i8* %6 = call i32 @strlen(i8* %5) %7 = inttoptr i64 %arg2 to i8* %8 = call i32 @strlen(i8* %7) %9 = icmp eq i32 %6, %8 store i64 %arg2, i64* %sv_1.0.reg2mem store i64 %arg1, i64* %sv_0.0.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %9, label LBL_4, label LBL_6 LBL_3: %10 = add i64 %sv_0.0.reload, 1 %11 = add i64 %sv_1.0.reload, 1 %12 = inttoptr i64 %sv_1.0.reload to i8* %13 = load i8, i8* %12, align 1 %14 = sext i8 %24 to i64 %15 = and i64 %14, 4294967295 %16 = call i64 @FUNC(i64 %15) %17 = sext i8 %13 to i64 %18 = and i64 %17, 4294967295 %19 = call i64 @FUNC(i64 %18) %20 = trunc i64 %16 to i8 %21 = trunc i64 %19 to i8 %22 = icmp eq i8 %20, %21 store i64 %11, i64* %sv_1.0.reg2mem store i64 %10, i64* %sv_0.0.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %22, label LBL_4, label LBL_6 LBL_4: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %23 = inttoptr i64 %sv_0.0.reload to i8* %24 = load i8, i8* %23, align 1 %25 = icmp eq i8 %24, 0 %26 = icmp eq i1 %25, false br i1 %26, label LBL_3, label LBL_5 LBL_5: %27 = inttoptr i64 %sv_1.0.reload to i8* %28 = load i8, i8* %27, align 1 %29 = icmp eq i8 %28, 0 %. = zext i1 %29 to i64 store i64 %., i64* %rax.0.reg2mem br label LBL_6 LBL_6: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i8 %24, { 1, 0 } uselistorder i64 %sv_1.0.reload, { 2, 0, 1 } uselistorder i64 %sv_0.0.reload, { 1, 0 } uselistorder i64* %sv_1.0.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4, 5 } uselistorder i64 (i64)* @my_toupper, { 1, 0 } uselistorder i32 (i8*)* @strlen, { 1, 0 } uselistorder i1 false, { 1, 0 } uselistorder i64 1, { 1, 2, 0 } uselistorder i32 1, { 2, 1, 0 } uselistorder i64 %arg2, { 0, 3, 2, 1 } uselistorder i64 %arg1, { 0, 3, 2, 1 } uselistorder label LBL_6, { 2, 0, 3, 4, 1 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
is_bit_set_2757
is_bit_set
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i32, align 4 %1 = sdiv i64 %arg2, 128 %2 = bitcast i32* %sv_0 to i64* %3 = call i64 @FUNC(i64 %0, i64 %1, i64* nonnull %2, i64 1) %4 = trunc i64 %3 to i32 %5 = icmp slt i32 %4, 0 %6 = icmp eq i1 %5, false br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = and i64 %3, 4294967295 store i64 %7, i64* %storemerge.reg2mem br label LBL_3 LBL_2: %8 = load i32, i32* %sv_0, align 4 %9 = trunc i64 %arg2 to i32 %10 = urem i32 %9, 8 %11 = shl i32 1, %10 %12 = urem i32 %11, 256 %13 = and i32 %12, %8 %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false %16 = zext i1 %15 to i64 store i64 %16, 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 %arg2, { 1, 0 } }
0
BinRealVul
vp9_alloc_context_buffers_10961
vp9_alloc_context_buffers
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = and i64 %arg3, 4294967295 %4 = and i64 %arg2, 4294967295 %5 = call i64 @FUNC(i64 %2, i64 %4, i64 %3) %6 = add i64 %2, 4 %7 = inttoptr i64 %6 to i32* %8 = load i32, i32* %7, align 4 %9 = zext i32 %8 to i64 %10 = call i64 @FUNC(i64 %9) %11 = add i64 %2, 12 %12 = inttoptr i64 %11 to i32* %13 = load i32, i32* %12, align 4 %14 = zext i32 %13 to i64 %15 = mul i64 %1, 4294967296 %sext = mul i64 %15, %10 %16 = ashr exact i64 %sext, 32 %17 = icmp sgt i64 %16, %14 br i1 %17, label LBL_1, label LBL_2 LBL_1: %18 = trunc i64 %2 to i32 %19 = icmp eq i32 %18, 0 %20 = icmp eq i1 %19, false br i1 %20, label LBL_9, label LBL_2 LBL_2: %21 = add i64 %2, 16 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = load i32, i32* %7, align 4 %25 = add i64 %2, 8 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = mul i32 %27, %24 %29 = icmp ult i32 %23, %28 store i32 %27, i32* %.reg2mem br i1 %29, label LBL_3, label LBL_5 LBL_3: %30 = call i64 @FUNC(i64 %2) %31 = load i32, i32* %7, align 4 %32 = load i32, i32* %26, align 4 %33 = mul i32 %32, %31 %34 = zext i32 %33 to i64 %35 = call i64 @FUNC(i64 %2, i64 %34) %36 = trunc i64 %35 to i32 %37 = icmp eq i32 %36, 0 %38 = icmp eq i1 %37, false br i1 %38, label LBL_9, label LBL_3.LBL_5_crit_edge LBL_4: %.pre = load i32, i32* %26, align 4 store i32 %.pre, i32* %.reg2mem br label LBL_5 LBL_5: %.reload = load i32, i32* %.reg2mem %39 = add i64 %2, 20 %40 = inttoptr i64 %39 to i32* %41 = load i32, i32* %40, align 4 %42 = icmp ult i32 %41, %.reload store i64 0, i64* %storemerge.reg2mem br i1 %42, label LBL_6, label LBL_10 LBL_6: %43 = add i64 %2, 40 %44 = inttoptr i64 %43 to i64* %45 = load i64, i64* %44, align 8 %46 = call i64 @FUNC(i64 %45) %47 = load i32, i32* %26, align 4 %48 = zext i32 %47 to i64 %49 = call i64 @FUNC(i64 %48) %sext2 = mul i64 %49, 25769803776 %50 = ashr exact i64 %sext2, 32 %51 = call i64 @FUNC(i64 %50, i64 1) store i64 %51, i64* %44, align 8 %52 = icmp eq i64 %51, 0 br i1 %52, label LBL_9, label LBL_7 LBL_7: %53 = add i64 %2, 48 %54 = inttoptr i64 %53 to i64* %55 = load i64, i64* %54, align 8 %56 = call i64 @FUNC(i64 %55) %57 = load i32, i32* %26, align 4 %58 = zext i32 %57 to i64 %59 = call i64 @FUNC(i64 %58) %sext3 = mul i64 %59, 4294967296 %60 = ashr exact i64 %sext3, 32 %61 = call i64 @FUNC(i64 %60, i64 1) store i64 %61, i64* %54, align 8 %62 = icmp eq i64 %61, 0 br i1 %62, label LBL_9, label LBL_8 LBL_8: %63 = load i32, i32* %26, align 4 store i32 %63, i32* %40, align 4 store i64 0, i64* %storemerge.reg2mem br label LBL_10 LBL_9: %64 = call i64 @FUNC(i64 %2) store i64 1, i64* %storemerge.reg2mem br label LBL_10 LBL_10: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32* %26, { 1, 2, 3, 0, 4, 5 } uselistorder i32* %7, { 1, 0, 2 } uselistorder i64 %2, { 7, 0, 2, 1, 3, 6, 5, 4, 8, 9, 10, 11 } uselistorder i32* %.reg2mem, { 0, 2, 1 } uselistorder i64* %storemerge.reg2mem, { 0, 3, 1, 2 } uselistorder i64 (i64, i64)* @vpx_calloc, { 1, 0 } uselistorder i64 (i64)* @mi_cols_aligned_to_sb, { 1, 0 } uselistorder i64 (i64)* @vpx_free, { 1, 0 } uselistorder i64 32, { 1, 2, 0 } uselistorder label LBL_10, { 2, 0, 1 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
vring_need_event_9857
vring_need_event
define i64 @FUNC(i64 %arg1, i64 %arg2, i16 %arg3) local_unnamed_addr { LBL_0: %0 = sub i64 %arg2, %arg1 %1 = trunc i64 %0 to i16 %2 = add i16 %1, -1 %3 = trunc i64 %arg2 to i16 %4 = sub i16 %3, %arg3 %5 = icmp ult i16 %2, %4 %6 = zext i1 %5 to i64 ret i64 %6 }
0
BinRealVul
pid_file_read_3890
pid_file_read
define i64 @FUNC(i64 %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %storemerge1.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %rsi = alloca i64, align 8 %3 = load i64, i64* %0 %4 = load i64, i64* %0 %sv_0 = alloca i64, align 8 %sv_1 = alloca i32, align 4 %sv_2 = alloca i64, align 8 %5 = bitcast i64* %arg2 to i32* store i32 -1, i32* %5, align 4 %6 = inttoptr i64 %arg1 to i8* %7 = call i32 (i8*, i32, ...) @open(i8* %6, i32 0) store i32 %7, i32* %sv_1, align 4 %8 = icmp eq i32 %7, -1 %9 = icmp eq i1 %8, false br i1 %9, label LBL_3, label LBL_1 LBL_1: %10 = call i32* @__errno_location() %11 = load i32, i32* %10, align 4 %12 = icmp eq i32 %11, 2 %13 = icmp eq i1 %12, false store i64 0, i64* %storemerge.reg2mem br i1 %13, label LBL_2, label LBL_12 LBL_2: %14 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_0, i64 0, i64 0), i64 %arg1, i64 %3, i64 %4, i64 %2, i64 %1) unreachable LBL_3: %15 = ptrtoint i64* %sv_0 to i64 %16 = call i32 @read(i32 %7, i64* nonnull %sv_0, i32 31) %17 = icmp eq i32 %16, 0 %18 = icmp slt i32 %16, 0 %19 = icmp eq i1 %18, false %20 = icmp eq i1 %17, false %21 = icmp eq i1 %19, %20 br i1 %21, label LBL_7, label LBL_4 LBL_4: br i1 %20, label LBL_6, label LBL_5 LBL_5: %22 = call i64 @FUNC(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_1, i64 0, i64 0), i64 %arg1, i64 31, i64 %15, i64 %2, i64 %1) store i64 0, i64* %storemerge1.reg2mem br label LBL_11 LBL_6: %23 = call i64 @FUNC(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @gv_2, i64 0, i64 0), i64 %arg1, i64 31, i64 %15, i64 %2, i64 %1) unreachable LBL_7: %24 = ptrtoint i64* %sv_2 to i64 %25 = sext i32 %16 to i64 %26 = add i64 %24, -65 %27 = add i64 %26, %25 %28 = inttoptr i64 %27 to i8* %29 = load i8, i8* %28, align 1 %30 = icmp eq i8 %29, 10 %31 = sext i1 %30 to i64 %spec.select = add i64 %25, %15 %32 = add i64 %spec.select, %31 %33 = inttoptr i64 %32 to i8* store i8 0, i8* %33, align 1 %34 = bitcast i64* %sv_0 to i8* %35 = call i32 @atoi(i8* nonnull %34) store i32 %35, i32* %5, align 4 %36 = bitcast i64* %rsi to i32* %37 = load i32, i32* %36, align 8 %38 = call i32 @getpid() %39 = icmp eq i32 %37, %38 br i1 %39, label LBL_10, label LBL_8 LBL_8: %40 = call i32 @kill(i32 %37, i32 0) %41 = icmp slt i32 %40, 0 %42 = icmp eq i1 %41, false store i64 1, i64* %storemerge1.reg2mem br i1 %42, label LBL_11, label LBL_9 LBL_9: %43 = call i32* @__errno_location() %44 = load i32, i32* %43, align 4 %45 = icmp eq i32 %44, 3 store i64 1, i64* %storemerge1.reg2mem br i1 %45, label LBL_10, label LBL_11 LBL_10: store i64 0, i64* %storemerge1.reg2mem br label LBL_11 LBL_11: %storemerge1.reload = load i64, i64* %storemerge1.reg2mem %46 = call i64 @FUNC(i32* nonnull %sv_1) store i64 %storemerge1.reload, i64* %storemerge.reg2mem br label LBL_12 LBL_12: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i32 %16, { 2, 0, 1 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i64* %storemerge1.reg2mem, { 0, 3, 2, 1, 4 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64* %0, { 3, 2, 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @i_fatal, { 1, 0 } uselistorder i1 false, { 1, 2, 0, 3, 4 } uselistorder i32 0, { 4, 2, 0, 1, 3, 5 } uselistorder i64 %arg1, { 1, 2, 0, 3 } uselistorder label LBL_12, { 1, 0 } }
0
BinRealVul
xc_dom_parse_zimage64_kernel_6119
xc_dom_parse_zimage64_kernel
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = mul i64 %0, 4096 %2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0)) %3 = add i64 %0, 8 %4 = inttoptr i64 %3 to i64* %5 = load i64, i64* %4, align 8 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = sub i64 0, %1 %9 = sub i64 %8, 1 %10 = icmp ugt i64 %7, %9 br i1 %10, label LBL_1, label LBL_2 LBL_1: %11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0)) store i64 4294967274, i64* %rax.0.reg2mem br label LBL_5 LBL_2: %12 = add i64 %7, %1 %13 = add i64 %0, 16 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = sub i64 0, %12 %17 = sub i64 %16, 1 %18 = icmp ugt i64 %15, %17 br i1 %18, label LBL_3, label LBL_4 LBL_3: %19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0)) store i64 4294967274, i64* %rax.0.reg2mem br label LBL_5 LBL_4: %20 = add i64 %15, %12 %21 = add i64 %0, 24 %22 = inttoptr i64 %21 to i64* store i64 %12, i64* %22, align 8 %23 = add i64 %0, 32 %24 = inttoptr i64 %23 to i64* store i64 %20, i64* %24, align 8 %25 = add i64 %0, 40 %26 = inttoptr i64 %25 to i64* store i64 %12, i64* %26, align 8 %27 = add i64 %0, 48 %28 = inttoptr i64 %27 to i64* store i64 %1, i64* %28, align 8 %29 = add i64 %0, 56 %30 = inttoptr i64 %29 to i64* store i64 ptrtoint ([16 x i8]* @gv_4 to i64), i64* %30, align 8 %31 = load i64, i64* %24, align 8 %32 = load i64, i64* %22, align 8 %33 = trunc i64 %32 to i32 %34 = trunc i64 %31 to i32 %35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_5, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_4, i64 0, i64 0), i32 %33, i32 %34) 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 %12, { 2, 3, 1, 0 } uselistorder i64 %0, { 1, 2, 3, 4, 6, 5, 7, 0 } }
0
BinRealVul
format_sax_error_6265
format_sax_error
define i64 @FUNC(i64* %arg1, i64 %arg2, i8* %arg3, i8* %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr { LBL_0: %0 = alloca i128 %1 = alloca i64 %storemerge.reg2mem = alloca i64 %2 = load i64, i64* %1 %3 = load i128, i128* %0 %4 = load i128, i128* %0 %5 = load i128, i128* %0 %6 = load i128, i128* %0 %7 = load i128, i128* %0 %8 = load i128, i128* %0 %9 = load i128, i128* %0 %10 = load i128, i128* %0 %sv_0 = alloca i64, align 8 %sv_1 = alloca i32, align 4 %11 = trunc i64 %2 to i8 %12 = icmp eq i8 %11, 0 br i1 %12, label LBL_2, label LBL_1 LBL_1: %13 = call i64 @FUNC(i128 %10) %14 = call i64 @FUNC(i128 %9) %15 = call i64 @FUNC(i128 %8) %16 = call i64 @FUNC(i128 %7) %17 = call i64 @FUNC(i128 %6) %18 = call i64 @FUNC(i128 %5) %19 = call i64 @FUNC(i128 %4) %20 = call i64 @FUNC(i128 %3) br label LBL_2 LBL_2: %21 = ptrtoint i64* %arg1 to i64 store i32 24, i32* %sv_1, align 4 %22 = ptrtoint i32* %sv_1 to i64 %23 = bitcast i64* %arg1 to i8* %24 = call i32 @vsnprintf(i8* %23, i32 100, i8* %arg3, i64 %22) %25 = call i32 @strlen(i8* %23) %26 = sext i32 %25 to i64 %27 = add nsw i64 %26, 30 %28 = icmp ult i64 %27, 99 %29 = icmp eq i32 %25, 69 %30 = or i1 %29, %28 br i1 %30, label LBL_3, label LBL_7 LBL_3: %sext = mul i64 %arg2, 4294967296 %31 = ashr exact i64 %sext, 32 %32 = add i64 %21, 100 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = add i32 %34, 1 %36 = zext i32 %35 to i64 %37 = bitcast i64* %sv_0 to i8* %38 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %37, i32 20, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_0, i64 0, i64 0), i64 %36) %39 = call i8* @strcat(i8* %23, i8* nonnull %37) %40 = call i32 @strlen(i8* %23) %41 = trunc i64 %31 to i32 %42 = icmp eq i32 %41, 0 br i1 %42, label LBL_5, label LBL_4 LBL_4: %43 = and i64 %31, 4294967295 store i64 %43, i64* %storemerge.reg2mem br label LBL_6 LBL_5: %44 = add i64 %21, 104 %45 = inttoptr i64 %44 to i32* %46 = load i32, i32* %45, align 4 %47 = zext i32 %46 to i64 store i64 %47, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %48 = add i64 %21, 108 %storemerge.reload = load i64, i64* %storemerge.reg2mem %49 = add i64 %48, %storemerge.reload %50 = zext i32 %40 to i64 %51 = add i64 %50, %21 %52 = inttoptr i64 %51 to i8* %53 = inttoptr i64 %49 to i8* %54 = call i8* @strncpy(i8* %52, i8* %53, i32 10) %55 = add i32 %40, 10 %56 = zext i32 %55 to i64 %57 = add i64 %56, %21 %58 = inttoptr i64 %57 to i8* store i8 0, i8* %58, align 1 br label LBL_7 LBL_7: %59 = add i64 %21, 208 %60 = inttoptr i64 %59 to i32* store i32 1, i32* %60, align 4 ret i64 %21 uselistorder i32 %40, { 1, 0 } uselistorder i64 %31, { 1, 0 } uselistorder i8* %23, { 0, 1, 3, 2 } uselistorder i64 %21, { 2, 3, 0, 1, 5, 4, 6 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i128* %0, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i32 (i8*)* @strlen, { 1, 0 } uselistorder label LBL_7, { 1, 0 } }
0
BinRealVul
imdct_and_windowing_7446
imdct_and_windowing
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i128 %1 = alloca i64 %rax.0.in.reg2mem = alloca i64* %indvars.iv.reg2mem = alloca i64 %indvars.iv17.reg2mem = alloca i64 %indvars.iv20.reg2mem = alloca i64 %indvars.iv23.reg2mem = alloca i64 %2 = load i64, i64* %1 %3 = load i64, i64* %1 %4 = load i64, i64* %1 %5 = load i128, i128* %0 %6 = ptrtoint i64* %arg2 to i64 %7 = ptrtoint i64* %arg1 to i64 %8 = call i64 @FUNC(i128 %5) %9 = add i64 %6, 24 %10 = add i64 %6, 8 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = add i64 %6, 16 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = add i64 %7, 8 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = inttoptr i64 %9 to i64* %20 = load i64, i64* %19, align 8 %21 = inttoptr i64 %20 to i32* %22 = load i32, i32* %21, align 4 %23 = icmp eq i32 %22, 0 %24 = icmp eq i1 %23, false br i1 %24, label LBL_5, label LBL_1 LBL_1: %25 = add i64 %20, 4 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = icmp ne i32 %27, 1 %29 = icmp eq i32 %27, 2 %30 = icmp eq i1 %29, false %or.cond = icmp eq i1 %28, %30 br i1 %or.cond, label LBL_3, label LBL_2 LBL_2: %31 = add i64 %7, 24 %32 = inttoptr i64 %31 to i64* %33 = load i64, i64* %32, align 8 %34 = call i64 @FUNC(i64 %33, i64 1, i8* getelementptr inbounds ([165 x i8], [165 x i8]* @gv_0, i64 0, i64 0), i64 %4, i64 %3, i64 %2) br label LBL_3 LBL_3: %35 = add i64 %7, 32 store i64 0, i64* %indvars.iv23.reg2mem br label LBL_4 LBL_4: %indvars.iv23.reload = load i64, i64* %indvars.iv23.reg2mem %36 = mul i64 %indvars.iv23.reload, 4 %37 = add i64 %36, %6 %38 = add i64 %36, %7 %39 = call i64 @FUNC(i64 %35, i64 %38, i64 %37) %indvars.iv.next24 = add nuw nsw i64 %indvars.iv23.reload, 128 %40 = icmp ult i64 %indvars.iv.next24, 1024 store i64 %indvars.iv.next24, i64* %indvars.iv23.reg2mem br i1 %40, label LBL_4, label LBL_6 LBL_5: %41 = add i64 %7, 40 %42 = call i64 @FUNC(i64 %41, i64 %7, i64 %6) br label LBL_6 LBL_6: %43 = trunc i64 %8 to i32 %44 = load i64, i64* %19, align 8 %45 = add i64 %44, 4 %46 = inttoptr i64 %45 to i32* %47 = load i32, i32* %46, align 4 %48 = icmp ne i32 %47, 1 %49 = icmp eq i32 %47, 2 %50 = icmp eq i1 %49, false %or.cond10 = icmp eq i1 %48, %50 br i1 %or.cond10, label LBL_9, label LBL_7 LBL_7: %51 = inttoptr i64 %44 to i32* %52 = load i32, i32* %51, align 4 %53 = icmp ne i32 %52, 1 %54 = icmp eq i32 %52, 3 %55 = icmp eq i1 %54, false %or.cond12 = icmp eq i1 %53, %55 br i1 %or.cond12, label LBL_9, label LBL_8 LBL_8: %56 = call i128 @FUNC(i32 %43) br label LBL_15 LBL_9: store i64 0, i64* %indvars.iv20.reg2mem br label LBL_10 LBL_10: %indvars.iv20.reload = load i64, i64* %indvars.iv20.reg2mem %57 = mul i64 %indvars.iv20.reload, 4 %58 = add i64 %57, %15 %59 = inttoptr i64 %58 to i32* %60 = load i32, i32* %59, align 4 %61 = call i128 @__asm_movss.1(i32 %60) %62 = add i64 %57, %12 %63 = call i128 @FUNC(i128 %61, i32 %43) %64 = call i64 @FUNC(i128 %63) %65 = trunc i64 %64 to i32 %66 = inttoptr i64 %62 to i32* store i32 %65, i32* %66, align 4 %indvars.iv.next21 = add nuw nsw i64 %indvars.iv20.reload, 1 %exitcond22 = icmp eq i64 %indvars.iv.next21, 448 store i64 %indvars.iv.next21, i64* %indvars.iv20.reg2mem br i1 %exitcond22, label LBL_11, label LBL_10 LBL_11: %67 = load i64, i64* %19, align 8 %68 = inttoptr i64 %67 to i32* %69 = load i32, i32* %68, align 4 %70 = icmp eq i32 %69, 0 %71 = icmp eq i1 %70, false %72 = call i128 @FUNC(i32 %43) br i1 %71, label LBL_12, label LBL_13 LBL_12: %73 = add i64 %7, -2048 store i64 576, i64* %indvars.iv17.reg2mem br label LBL_14 LBL_13: %74 = call i128 @FUNC(i32 %43) %75 = call i128 @FUNC(i32 %43) %76 = call i128 @FUNC(i32 %43) %77 = call i128 @FUNC(i32 %43) %78 = add i64 %12, 3840 %79 = inttoptr i64 %78 to i64* %80 = inttoptr i64 %18 to i64* %81 = call i64* @memcpy(i64* %79, i64* %80, i32 256) br label LBL_15 LBL_14: %indvars.iv17.reload = load i64, i64* %indvars.iv17.reg2mem %82 = mul i64 %indvars.iv17.reload, 4 %83 = add i64 %73, %82 %84 = inttoptr i64 %83 to i32* %85 = load i32, i32* %84, align 4 %86 = call i128 @__asm_movss.1(i32 %85) %87 = add i64 %82, %12 %88 = call i128 @FUNC(i128 %86, i32 %43) %89 = call i64 @FUNC(i128 %88) %90 = trunc i64 %89 to i32 %91 = inttoptr i64 %87 to i32* store i32 %90, i32* %91, align 4 %indvars.iv.next18 = add nuw nsw i64 %indvars.iv17.reload, 1 %exitcond19 = icmp eq i64 %indvars.iv.next18, 1024 store i64 %indvars.iv.next18, i64* %indvars.iv17.reg2mem br i1 %exitcond19, label LBL_15, label LBL_14 LBL_15: %92 = load i64, i64* %19, align 8 %93 = inttoptr i64 %92 to i32* %94 = load i32, i32* %93, align 4 %95 = icmp eq i32 %94, 0 %96 = icmp eq i1 %95, false br i1 %96, label LBL_19, label LBL_16 LBL_16: %97 = add i64 %18, 256 store i64 0, i64* %indvars.iv.reg2mem br label LBL_17 LBL_17: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %98 = mul i64 %indvars.iv.reload, 4 %99 = add i64 %97, %98 %100 = inttoptr i64 %99 to i32* %101 = load i32, i32* %100, align 4 %102 = call i128 @__asm_movss.1(i32 %101) %103 = add i64 %98, %15 %104 = call i128 @FUNC(i128 %102, i32 %43) %105 = call i64 @FUNC(i128 %104) %106 = trunc i64 %105 to i32 %107 = inttoptr i64 %103 to i32* store i32 %106, i32* %107, align 4 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 64 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_18, label LBL_17 LBL_18: %108 = load i32, i32* inttoptr (i64 4211912 to i32*), align 8 %109 = call i128 @FUNC(i32 %108) %110 = call i128 @FUNC(i32 0) %111 = call i128 @FUNC(i32 0) %112 = add i64 %7, 3840 %113 = add i64 %15, 1792 %114 = inttoptr i64 %113 to i64* %115 = inttoptr i64 %112 to i64* %116 = call i64* @memcpy(i64* %114, i64* %115, i32 256) store i64* %116, i64** %rax.0.in.reg2mem br label LBL_22 LBL_19: %117 = icmp eq i32 %94, 3 %118 = icmp eq i1 %117, false %119 = add i64 %7, 2048 %120 = inttoptr i64 %15 to i64* %121 = inttoptr i64 %119 to i64* br i1 %118, label LBL_21, label LBL_20 LBL_20: %122 = call i64* @memcpy(i64* %120, i64* %121, i32 1792) %123 = add i64 %7, 3840 %124 = add i64 %15, 1792 %125 = inttoptr i64 %124 to i64* %126 = inttoptr i64 %123 to i64* %127 = call i64* @memcpy(i64* %125, i64* %126, i32 256) store i64* %127, i64** %rax.0.in.reg2mem br label LBL_22 LBL_21: %128 = call i64* @memcpy(i64* %120, i64* %121, i32 2048) store i64* %128, i64** %rax.0.in.reg2mem br label LBL_22 LBL_22: %rax.0.in.reload = load i64*, i64** %rax.0.in.reg2mem %rax.0 = ptrtoint i64* %rax.0.in.reload to i64 ret i64 %rax.0 uselistorder i64* %121, { 1, 0 } uselistorder i64* %120, { 1, 0 } uselistorder i64 %82, { 1, 0 } uselistorder i64 %57, { 1, 0 } uselistorder i32 %43, { 7, 0, 2, 3, 4, 5, 1, 6, 8 } uselistorder i64 %36, { 1, 0 } uselistorder i64 %15, { 4, 3, 2, 0, 1 } uselistorder i64 %12, { 0, 2, 1 } uselistorder i64 %7, { 6, 5, 4, 1, 7, 8, 0, 2, 3, 9 } uselistorder i64 %6, { 1, 0, 2, 3, 4 } uselistorder i64* %indvars.iv23.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv20.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv17.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 2, 0, 1 } uselistorder i64** %rax.0.in.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %1, { 2, 1, 0 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 2, 1, 0, 4, 3 } uselistorder i32 256, { 1, 2, 0 } uselistorder i32 3, { 1, 0 } uselistorder i64 1024, { 1, 0 } uselistorder i64 (i64, i64, i64)* @ff_imdct_half, { 1, 0 } uselistorder i64 1, { 2, 1, 0, 3 } uselistorder i64 4, { 0, 1, 2, 4, 3, 5 } uselistorder i1 false, { 3, 4, 5, 0, 1, 2, 6 } uselistorder i32 0, { 0, 1, 3, 4, 5, 2 } uselistorder label LBL_17, { 1, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_4, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
megasas_complete_frame_16392
megasas_complete_frame
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = trunc i64 %1 to i32 %4 = add i32 %3, -1 %5 = bitcast i64* %arg1 to i32* store i32 %4, i32* %5, align 4 %6 = add i64 %2, 8 %7 = inttoptr i64 %6 to i64* %8 = load i64, i64* %7, align 8 %9 = icmp eq i64 %8, 0 br i1 %9, label LBL_5, label LBL_1 LBL_1: %10 = add i64 %2, 16 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = call i64 @FUNC(i64 %2) %14 = trunc i64 %13 to i32 %15 = icmp eq i32 %14, 0 br i1 %15, label LBL_3, label LBL_2 LBL_2: %16 = mul i32 %12, 8 %17 = load i64, i64* %7, align 8 %18 = sext i32 %16 to i64 %19 = add i64 %17, %18 %20 = call i64 @FUNC(i64* nonnull @gv_0, i64 %19, i64 %arg2) br label LBL_4 LBL_3: %21 = mul i32 %12, 4 %22 = and i64 %arg2, 4294967295 %23 = load i64, i64* %7, align 8 %24 = sext i32 %21 to i64 %25 = add i64 %23, %24 %26 = call i64 @FUNC(i64* nonnull @gv_0, i64 %25, i64 %22) br label LBL_4 LBL_4: %27 = bitcast i64* %rdi to i32* %28 = add i64 %2, 24 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = zext i32 %12 to i64 %32 = call i64 @FUNC(i64 %2, i64 %31, i32 %30) %33 = trunc i64 %32 to i32 store i32 %33, i32* %11, align 4 %34 = add i64 %2, 32 %35 = inttoptr i64 %34 to i64* %36 = load i64, i64* %35, align 8 %37 = call i64 @FUNC(i64* nonnull @gv_0, i64 %36) %38 = trunc i64 %37 to i32 %39 = add i64 %2, 20 %40 = inttoptr i64 %39 to i32* store i32 %38, i32* %40, align 4 %41 = add i64 %2, 40 %42 = inttoptr i64 %41 to i32* %43 = load i32, i32* %42, align 4 %44 = load i32, i32* %27, align 8 %45 = load i32, i32* %11, align 4 %46 = zext i32 %43 to i64 %47 = call i64 @FUNC(i64 %arg2, i32 %45, i32 %38, i32 %44, i64 %46) br label LBL_5 LBL_5: %48 = call i64 @FUNC(i64 %2) %49 = trunc i64 %48 to i32 %50 = icmp eq i32 %49, 0 br i1 %50, label LBL_12, label LBL_6 LBL_6: %51 = add i64 %2, 40 %52 = inttoptr i64 %51 to i32* %53 = load i32, i32* %52, align 4 %54 = add i32 %53, 1 store i32 %54, i32* %52, align 4 %55 = zext i32 %54 to i64 %56 = icmp eq i32 %53, 0 %57 = icmp eq i1 %56, false store i64 %55, i64* %rax.0.reg2mem br i1 %57, label LBL_13, label LBL_7 LBL_7: %58 = call i64 @FUNC(i64 %2) %59 = trunc i64 %58 to i32 %60 = icmp eq i32 %59, 0 br i1 %60, label LBL_9, label LBL_8 LBL_8: %61 = call i64 @FUNC(i64 0) %62 = call i64 @FUNC(i64 %2, i64 0) store i64 %62, i64* %rax.0.reg2mem br label LBL_13 LBL_9: %63 = call i64 @FUNC(i64 %2) %64 = trunc i64 %63 to i32 %65 = icmp eq i32 %64, 0 br i1 %65, label LBL_11, label LBL_10 LBL_10: %66 = call i64 @FUNC(i64 0) %67 = call i64 @FUNC(i64 %2, i64 0) store i64 %67, i64* %rax.0.reg2mem br label LBL_13 LBL_11: %68 = call i64 @FUNC() %69 = call i64 @FUNC(i64 %2) store i64 %69, i64* %rax.0.reg2mem br label LBL_13 LBL_12: %70 = call i64 @FUNC(i64 %arg2) store i64 %70, i64* %rax.0.reg2mem br label LBL_13 LBL_13: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %12, { 2, 0, 1 } uselistorder i64* %7, { 1, 0, 2 } uselistorder i64 %2, { 9, 8, 10, 7, 11, 12, 13, 0, 2, 1, 4, 3, 6, 5, 14 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 3, 2, 1, 4 } uselistorder i64* @gv_0, { 1, 0, 2 } uselistorder i32 0, { 1, 2, 0, 3, 4 } uselistorder i64 %arg2, { 3, 1, 2, 0 } }
1
BinRealVul
bdrv_check_15953
bdrv_check
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = icmp eq i64* %arg1, null %2 = icmp eq i1 %1, false %storemerge = select i1 %2, i64 %0, i64 4294967201 ret i64 %storemerge }
1
BinRealVul
ff_set_systematic_pal_16022
ff_set_systematic_pal
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i32 %sv_2.0.reg2mem = alloca i32 %sv_2.14.reg2mem = alloca i32 %sv_1.15.reg2mem = alloca i32 %sv_0.16.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %1 = ashr exact i64 %sext, 32 %2 = and i64 %1, 4294967295 %trunc = trunc i64 %1 to i32 store i64 0, i64* %indvars.iv.reg2mem br label LBL_1 LBL_1: %sv_2.14.reload = load i32, i32* %sv_2.14.reg2mem %sv_1.15.reload = load i32, i32* %sv_1.15.reg2mem %sv_0.16.reload = load i32, i32* %sv_0.16.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem store i64 %2, i64* @0, align 8 store i32 %sv_2.14.reload, i32* %sv_2.0.reg2mem store i32 %sv_1.15.reload, i32* %sv_1.0.reg2mem store i32 %sv_0.16.reload, i32* %sv_0.0.reg2mem switch i32 %trunc, label LBL_7 [ i32 0, label LBL_2 i32 1, label LBL_3 i32 2, label LBL_4 i32 3, label LBL_5 i32 4, label LBL_6 ] LBL_2: %3 = trunc i64 %indvars.iv.reload to i32 %4 = ashr i32 %3, 5 %5 = mul i32 %4, 36 %6 = udiv i32 %3, 4 %7 = urem i32 %6, 8 %8 = mul nuw nsw i32 %7, 36 %9 = urem i32 %3, 4 %narrow3 = mul nuw nsw i32 %9, 85 store i32 %5, i32* %sv_2.0.reg2mem store i32 %8, i32* %sv_1.0.reg2mem store i32 %narrow3, i32* %sv_0.0.reg2mem br label LBL_7 LBL_3: %10 = trunc i64 %indvars.iv.reload to i32 %11 = ashr i32 %10, 6 %12 = mul i32 %11, 85 %13 = udiv i32 %10, 8 %14 = urem i32 %13, 8 %15 = mul nuw nsw i32 %14, 36 %16 = urem i32 %10, 8 %17 = mul nuw nsw i32 %16, 36 store i32 %17, i32* %sv_2.0.reg2mem store i32 %15, i32* %sv_1.0.reg2mem store i32 %12, i32* %sv_0.0.reg2mem br label LBL_7 LBL_4: %18 = trunc i64 %indvars.iv.reload to i32 %19 = ashr i32 %18, 3 %20 = mul i32 %19, 255 %21 = udiv i32 %18, 2 %22 = urem i32 %21, 4 %narrow2 = mul nuw nsw i32 %22, 85 %23 = urem i32 %18, 2 %24 = mul nuw nsw i32 %23, 255 store i32 %20, i32* %sv_2.0.reg2mem store i32 %narrow2, i32* %sv_1.0.reg2mem store i32 %24, i32* %sv_0.0.reg2mem br label LBL_7 LBL_5: %25 = trunc i64 %indvars.iv.reload to i32 %26 = ashr i32 %25, 3 %27 = mul i32 %26, 255 %28 = udiv i32 %25, 2 %29 = urem i32 %28, 4 %narrow = mul nuw nsw i32 %29, 85 %30 = urem i32 %25, 2 %31 = mul nuw nsw i32 %30, 255 store i32 %31, i32* %sv_2.0.reg2mem store i32 %narrow, i32* %sv_1.0.reg2mem store i32 %27, i32* %sv_0.0.reg2mem br label LBL_7 LBL_6: %32 = trunc i64 %indvars.iv.reload to i32 store i32 %32, i32* %sv_2.0.reg2mem store i32 %32, i32* %sv_1.0.reg2mem store i32 %32, i32* %sv_0.0.reg2mem br label LBL_7 LBL_7: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %sv_1.0.reload = load i32, i32* %sv_1.0.reg2mem %sv_2.0.reload = load i32, i32* %sv_2.0.reg2mem %33 = mul i32 %sv_1.0.reload, 256 %34 = mul i32 %sv_2.0.reload, 65536 %35 = add i32 %sv_0.0.reload, %34 %36 = add i32 %35, %33 %37 = mul i64 %indvars.iv.reload, 4 %38 = add i64 %37, %0 %39 = inttoptr i64 %38 to i32* store i32 %36, i32* %39, align 4 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 256 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i32 %sv_0.0.reload, i32* %sv_0.16.reg2mem store i32 %sv_1.0.reload, i32* %sv_1.15.reg2mem store i32 %sv_2.0.reload, i32* %sv_2.14.reg2mem br i1 %exitcond, label LBL_8, label LBL_1 LBL_8: ret i64 0 uselistorder i32 %sv_2.0.reload, { 1, 0 } uselistorder i32 %sv_1.0.reload, { 1, 0 } uselistorder i32 %sv_0.0.reload, { 1, 0 } uselistorder i32 %25, { 1, 0, 2 } uselistorder i32 %18, { 1, 0, 2 } uselistorder i32 %10, { 1, 0, 2 } uselistorder i32 %3, { 1, 0, 2 } uselistorder i64 %indvars.iv.reload, { 0, 6, 5, 4, 3, 2, 1 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.16.reg2mem, { 1, 0 } uselistorder i32* %sv_1.15.reg2mem, { 1, 0 } uselistorder i32* %sv_2.14.reg2mem, { 1, 0 } uselistorder i32* %sv_2.0.reg2mem, { 0, 5, 4, 3, 2, 1, 6 } uselistorder i32* %sv_1.0.reg2mem, { 0, 5, 4, 3, 2, 1, 6 } uselistorder i32* %sv_0.0.reg2mem, { 0, 5, 4, 3, 2, 1, 6 } uselistorder i32 255, { 2, 3, 0, 1 } uselistorder i32 85, { 3, 2, 1, 0 } uselistorder i32 8, { 1, 2, 0, 3 } uselistorder i32 36, { 2, 3, 0, 1 } uselistorder i32 4, { 0, 1, 3, 2, 4 } uselistorder i32 3, { 1, 2, 0 } uselistorder i32 2, { 1, 0, 3, 2, 4 } }
1
BinRealVul
setpwnam_6935
setpwnam
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.reg2mem96 = alloca i64* %sv_0.3.reg2mem = alloca i8* %sv_1.0.reg2mem = alloca %_IO_FILE* %sv_2.0.reg2mem = alloca %_IO_FILE* %sv_0.2.lcssa.reg2mem = alloca i8* %sv_3.0.ph.reg2mem = alloca i32 %sv_0.2.ph.reg2mem = alloca i8* %sv_4.2.ph.reg2mem = alloca i32 %rdi.1.reg2mem = alloca i64 %sv_0.1.reg2mem = alloca i8* %sv_4.1.reg2mem = alloca i32 %sv_4.013.reg2mem = alloca i32 %sv_0.014.reg2mem = alloca i8* %.reg2mem = alloca i64 %sv_4.223.reg2mem = alloca i32 %sv_0.224.reg2mem = alloca i8* %sv_5 = alloca i8*, align 8 store i8* null, i8** %sv_5, align 8 %0 = call i64 @FUNC() %1 = bitcast i8** %sv_5 to i64* %2 = call i64 @FUNC(i64* nonnull %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0), i64 %arg2) %3 = icmp eq i64 %2, 0 %4 = icmp eq i1 %3, false store i64 4294967295, i64* %rax.0.reg2mem br i1 %4, label LBL_1, label LBL_31 LBL_1: %5 = inttoptr i64 %2 to %_IO_FILE* %6 = call i32 @fileno(%_IO_FILE* %5) %7 = call i32 @fchown(i32 %6, i32 0, i32 0) %8 = icmp slt i32 %7, 0 store %_IO_FILE* %5, %_IO_FILE** %sv_2.0.reg2mem store %_IO_FILE* null, %_IO_FILE** %sv_1.0.reg2mem store i8* null, i8** %sv_0.3.reg2mem br i1 %8, label LBL_24, label LBL_2 LBL_2: %9 = call i64 @FUNC() %10 = trunc i64 %9 to i32 %11 = icmp slt i32 %10, 0 store %_IO_FILE* %5, %_IO_FILE** %sv_2.0.reg2mem store %_IO_FILE* null, %_IO_FILE** %sv_1.0.reg2mem store i8* null, i8** %sv_0.3.reg2mem br i1 %11, label LBL_24, label LBL_3 LBL_3: %12 = call %_IO_FILE* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_2, i64 0, i64 0)) %13 = icmp eq %_IO_FILE* %12, null store %_IO_FILE* %5, %_IO_FILE** %sv_2.0.reg2mem store %_IO_FILE* null, %_IO_FILE** %sv_1.0.reg2mem store i8* null, i8** %sv_0.3.reg2mem br i1 %13, label LBL_24, label LBL_4 LBL_4: %14 = call i32 @strlen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0)) %15 = call i64* @malloc(i32 256) %16 = bitcast i64* %15 to i8* %17 = icmp eq i64* %15, null store %_IO_FILE* %5, %_IO_FILE** %sv_2.0.reg2mem store %_IO_FILE* %12, %_IO_FILE** %sv_1.0.reg2mem store i8* %16, i8** %sv_0.3.reg2mem br i1 %17, label LBL_24, label LBL_5 LBL_5: %18 = ptrtoint i64* %arg1 to i64 %19 = ptrtoint %_IO_FILE* %12 to i64 %20 = sext i32 %14 to i64 store i32 256, i32* %sv_4.2.ph.reg2mem store i8* %16, i8** %sv_0.2.ph.reg2mem store i32 0, i32* %sv_3.0.ph.reg2mem br label LBL_15 LBL_6: %sv_4.223.reload = load i32, i32* %sv_4.223.reg2mem %sv_0.224.reload = load i8*, i8** %sv_0.224.reg2mem %21 = call i32 @strlen(i8* %sv_0.224.reload) %rdi.012 = ptrtoint i8* %sv_0.224.reload to i64 %22 = sext i32 %21 to i64 %23 = add i64 %rdi.012, -1 %24 = add i64 %23, %22 %25 = inttoptr i64 %24 to i8* %26 = load i8, i8* %25, align 1 %27 = icmp eq i8 %26, 10 store i64 %22, i64* %.reg2mem store i8* %sv_0.224.reload, i8** %sv_0.014.reg2mem store i32 %sv_4.223.reload, i32* %sv_4.013.reg2mem store i32 %sv_4.223.reload, i32* %sv_4.1.reg2mem store i8* %sv_0.224.reload, i8** %sv_0.1.reg2mem store i64 %rdi.012, i64* %rdi.1.reg2mem br i1 %27, label LBL_11, label LBL_10 LBL_7: %28 = mul i32 %sv_4.013.reload, 2 %29 = bitcast i8* %sv_0.014.reload to i64* %30 = call i64* @realloc(i64* %29, i32 %28) %31 = icmp eq i64* %30, null store %_IO_FILE* %5, %_IO_FILE** %sv_2.0.reg2mem store %_IO_FILE* %12, %_IO_FILE** %sv_1.0.reg2mem store i8* %sv_0.014.reload, i8** %sv_0.3.reg2mem br i1 %31, label LBL_24, label LBL_8 LBL_8: %.reload = load i64, i64* %.reg2mem %32 = bitcast i64* %30 to i8* %33 = ptrtoint i64* %30 to i64 %34 = ashr exact i32 %28, 1 %35 = add i64 %.reload, %33 %36 = inttoptr i64 %35 to i8* %37 = call i8* @fgets(i8* %36, i32 %34, %_IO_FILE* nonnull %12) %38 = icmp eq i8* %37, null store i32 %28, i32* %sv_4.1.reg2mem store i8* %32, i8** %sv_0.1.reg2mem store i64 %35, i64* %rdi.1.reg2mem br i1 %38, label LBL_11, label LBL_9 LBL_9: %39 = call i32 @strlen(i8* %32) %40 = sext i32 %39 to i64 %41 = add i64 %33, -1 %42 = add i64 %41, %40 %43 = inttoptr i64 %42 to i8* %44 = load i8, i8* %43, align 1 %45 = icmp eq i8 %44, 10 store i64 %40, i64* %.reg2mem store i8* %32, i8** %sv_0.014.reg2mem store i32 %28, i32* %sv_4.013.reg2mem store i32 %28, i32* %sv_4.1.reg2mem store i8* %32, i8** %sv_0.1.reg2mem store i64 %33, i64* %rdi.1.reg2mem br i1 %45, label LBL_11, label LBL_10 LBL_10: %sv_4.013.reload = load i32, i32* %sv_4.013.reg2mem %sv_0.014.reload = load i8*, i8** %sv_0.014.reg2mem %46 = call i32 @feof(%_IO_FILE* nonnull %12) %47 = icmp eq i32 %46, 0 store i32 %sv_4.013.reload, i32* %sv_4.1.reg2mem store i8* %sv_0.014.reload, i8** %sv_0.1.reg2mem store i64 %19, i64* %rdi.1.reg2mem br i1 %47, label LBL_7, label LBL_11 LBL_11: %sv_0.1.reload = load i8*, i8** %sv_0.1.reg2mem %sv_4.1.reload = load i32, i32* %sv_4.1.reg2mem br i1 %65, label LBL_17, label LBL_12 LBL_12: %48 = ptrtoint i8* %sv_0.1.reload to i64 %49 = add i64 %48, %20 %50 = inttoptr i64 %49 to i8* %51 = load i8, i8* %50, align 1 %52 = icmp eq i8 %51, 58 %53 = icmp eq i1 %52, false br i1 %53, label LBL_17, label LBL_13 LBL_13: %rdi.1.reload = load i64, i64* %rdi.1.reg2mem %54 = inttoptr i64 %rdi.1.reload to i8* %55 = call i32 @strncmp(i8* %sv_0.1.reload, i8* %54, i32 %14) %56 = icmp eq i32 %55, 0 %57 = icmp eq i1 %56, false br i1 %57, label LBL_17, label LBL_14 LBL_14: %58 = call i64 @FUNC(i64 %18, i64 %2) %59 = trunc i64 %58 to i32 %60 = icmp slt i32 %59, 0 store i32 %sv_4.1.reload, i32* %sv_4.2.ph.reg2mem store i8* %sv_0.1.reload, i8** %sv_0.2.ph.reg2mem store i32 1, i32* %sv_3.0.ph.reg2mem store %_IO_FILE* %5, %_IO_FILE** %sv_2.0.reg2mem store %_IO_FILE* %12, %_IO_FILE** %sv_1.0.reg2mem store i8* %sv_0.1.reload, i8** %sv_0.3.reg2mem br i1 %60, label LBL_24, label LBL_15 LBL_15: %sv_3.0.ph.reload = load i32, i32* %sv_3.0.ph.reg2mem %sv_0.2.ph.reload = load i8*, i8** %sv_0.2.ph.reg2mem %sv_4.2.ph.reload = load i32, i32* %sv_4.2.ph.reg2mem %61 = call i8* @fgets(i8* %sv_0.2.ph.reload, i32 %sv_4.2.ph.reload, %_IO_FILE* nonnull %12) %62 = icmp eq i8* %61, null %63 = icmp eq i1 %62, false store i8* %sv_0.2.ph.reload, i8** %sv_0.2.lcssa.reg2mem br i1 %63, label LBL_6.lr.ph, label LBL_18 LBL_16: %64 = icmp eq i32 %sv_3.0.ph.reload, 0 %65 = icmp eq i1 %64, false store i8* %sv_0.2.ph.reload, i8** %sv_0.224.reg2mem store i32 %sv_4.2.ph.reload, i32* %sv_4.223.reg2mem br label LBL_6 LBL_17: %66 = call i32 @fputs(i8* %sv_0.1.reload, %_IO_FILE* %5) %67 = call i8* @fgets(i8* %sv_0.1.reload, i32 %sv_4.1.reload, %_IO_FILE* nonnull %12) %68 = icmp eq i8* %67, null %69 = icmp eq i1 %68, false store i8* %sv_0.1.reload, i8** %sv_0.224.reg2mem store i32 %sv_4.1.reload, i32* %sv_4.223.reg2mem store i8* %sv_0.1.reload, i8** %sv_0.2.lcssa.reg2mem br i1 %69, label LBL_6, label LBL_18 LBL_18: %sv_0.2.lcssa.reload = load i8*, i8** %sv_0.2.lcssa.reg2mem %70 = call i32 @fileno(%_IO_FILE* %5) %71 = call i32 @fchmod(i32 %70, i32 420) %72 = icmp slt i32 %71, 0 store %_IO_FILE* %5, %_IO_FILE** %sv_2.0.reg2mem store %_IO_FILE* %12, %_IO_FILE** %sv_1.0.reg2mem store i8* %sv_0.2.lcssa.reload, i8** %sv_0.3.reg2mem br i1 %72, label LBL_24, label LBL_19 LBL_19: %73 = call i64 @FUNC(i64 %2) %74 = trunc i64 %73 to i32 %75 = icmp eq i32 %74, 0 %76 = icmp eq i1 %75, false store %_IO_FILE* null, %_IO_FILE** %sv_2.0.reg2mem store %_IO_FILE* %12, %_IO_FILE** %sv_1.0.reg2mem store i8* %sv_0.2.lcssa.reload, i8** %sv_0.3.reg2mem br i1 %76, label LBL_24, label LBL_20 LBL_20: %77 = call i32 @fclose(%_IO_FILE* nonnull %12) %78 = icmp eq i32 %sv_3.0.ph.reload, 0 %79 = icmp eq i1 %78, false br i1 %79, label LBL_22, label LBL_21 LBL_21: %80 = call i32* @__errno_location() store i32 2, i32* %80, align 4 store %_IO_FILE* null, %_IO_FILE** %sv_2.0.reg2mem store %_IO_FILE* null, %_IO_FILE** %sv_1.0.reg2mem store i8* %sv_0.2.lcssa.reload, i8** %sv_0.3.reg2mem br label LBL_24 LBL_22: %81 = call i32 @unlink(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_3, i64 0, i64 0)) %82 = call i32 @link(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_3, i64 0, i64 0)) %83 = zext i32 %82 to i64 %84 = call i64 @FUNC(i64 %83) %85 = load i8*, i8** %sv_5, align 8 %86 = call i32 @rename(i8* %85, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0)) %87 = icmp slt i32 %86, 0 store %_IO_FILE* null, %_IO_FILE** %sv_2.0.reg2mem store %_IO_FILE* null, %_IO_FILE** %sv_1.0.reg2mem store i8* %sv_0.2.lcssa.reload, i8** %sv_0.3.reg2mem br i1 %87, label LBL_24, label LBL_23 LBL_23: %88 = call i64 @FUNC() store i64 0, i64* %rax.0.reg2mem br label LBL_31 LBL_24: %sv_0.3.reload = load i8*, i8** %sv_0.3.reg2mem %sv_1.0.reload = load %_IO_FILE*, %_IO_FILE** %sv_1.0.reg2mem %sv_2.0.reload = load %_IO_FILE*, %_IO_FILE** %sv_2.0.reg2mem %89 = call i32* @__errno_location() %90 = load i32, i32* %89, align 4 %91 = call i64 @FUNC() %92 = icmp eq %_IO_FILE* %sv_2.0.reload, null br i1 %92, label LBL_26, label LBL_25 LBL_25: %93 = call i32 @fclose(%_IO_FILE* nonnull %sv_2.0.reload) br label LBL_26 LBL_26: %94 = load i8*, i8** %sv_5, align 8 %95 = icmp eq i8* %94, null store i64* null, i64** %.reg2mem96 br i1 %95, label LBL_28, label LBL_27 LBL_27: %96 = call i32 @unlink(i8* nonnull %94) %.pre = load i8*, i8** %sv_5, align 8 %phitmp = bitcast i8* %.pre to i64* store i64* %phitmp, i64** %.reg2mem96 br label LBL_28 LBL_28: %.reload97 = load i64*, i64** %.reg2mem96 call void @free(i64* %.reload97) %97 = icmp eq %_IO_FILE* %sv_1.0.reload, null br i1 %97, label LBL_30, label LBL_29 LBL_29: %98 = call i32 @fclose(%_IO_FILE* nonnull %sv_1.0.reload) br label LBL_30 LBL_30: %99 = bitcast i8* %sv_0.3.reload to i64* call void @free(i64* %99) %100 = call i32* @__errno_location() store i32 %90, i32* %100, align 4 store i64 4294967295, i64* %rax.0.reg2mem br label LBL_31 LBL_31: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i8* %sv_0.2.lcssa.reload, { 1, 0, 2, 3 } uselistorder i32 %sv_4.2.ph.reload, { 1, 0 } uselistorder i8* %sv_0.2.ph.reload, { 2, 0, 1 } uselistorder i32 %sv_3.0.ph.reload, { 1, 0 } uselistorder i32 %sv_4.1.reload, { 2, 1, 0 } uselistorder i8* %sv_0.1.reload, { 1, 7, 6, 3, 0, 2, 4, 5 } uselistorder i8* %sv_0.014.reload, { 1, 2, 0 } uselistorder i64 %33, { 0, 2, 1 } uselistorder i8* %32, { 0, 2, 3, 1 } uselistorder i64* %30, { 0, 2, 1 } uselistorder i32 %28, { 0, 2, 1, 4, 3 } uselistorder i8* %16, { 1, 0 } uselistorder i32 %14, { 1, 0 } uselistorder %_IO_FILE* %12, { 7, 2, 3, 10, 6, 0, 9, 8, 1, 5, 4, 11 } uselistorder %_IO_FILE* %5, { 2, 7, 8, 0, 1, 3, 4, 5, 6, 9 } uselistorder i64 %2, { 1, 0, 2, 3 } uselistorder i8** %sv_5, { 0, 3, 2, 4, 1 } uselistorder i8** %sv_0.224.reg2mem, { 1, 2, 0 } uselistorder i32* %sv_4.223.reg2mem, { 1, 2, 0 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i8** %sv_0.014.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_4.013.reg2mem, { 0, 2, 1 } uselistorder i32* %sv_4.1.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i8** %sv_0.1.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i64* %rdi.1.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i8** %sv_0.2.lcssa.reg2mem, { 0, 2, 1 } uselistorder %_IO_FILE** %sv_2.0.reg2mem, { 0, 4, 3, 5, 6, 1, 2, 7, 8, 9, 10 } uselistorder %_IO_FILE** %sv_1.0.reg2mem, { 0, 4, 3, 5, 6, 1, 2, 7, 8, 9, 10 } uselistorder i8** %sv_0.3.reg2mem, { 0, 4, 3, 5, 6, 1, 2, 7, 8, 9, 10 } uselistorder i64** %.reg2mem96, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64 ()* @ulckpwdf, { 1, 0 } uselistorder i32 (%_IO_FILE*)* @fclose, { 0, 1, 3, 2 } uselistorder i8* (i8*, i32, %_IO_FILE*)* @fgets, { 1, 0, 2 } uselistorder i32 2, { 1, 0 } uselistorder i8 10, { 1, 0 } uselistorder i64 -1, { 1, 0 } uselistorder i32 (i8*)* @strlen, { 2, 1, 0 } uselistorder i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_1, i64 0, i64 0), { 1, 2, 0, 3 } uselistorder %_IO_FILE* null, { 8, 9, 1, 6, 0, 5, 7, 2, 10, 3, 4 } uselistorder i32 (%_IO_FILE*)* @fileno, { 1, 0 } uselistorder i64 4294967295, { 1, 0 } uselistorder i8* null, { 5, 6, 3, 4, 0, 1, 2, 7 } uselistorder label LBL_31, { 1, 2, 0 } uselistorder label LBL_24, { 2, 9, 3, 4, 0, 1, 5, 6, 7, 8 } uselistorder label LBL_18, { 1, 0 } uselistorder label LBL_15, { 1, 0 } uselistorder label LBL_11, { 1, 2, 0, 3 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_6, { 1, 0 } }
0
reposvul_c_test
dhcps_deinit_297
dhcps_deinit
define i64 @FUNC() local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = load i64, i64* @gv_0, align 8 %1 = icmp eq i64 %0, 0 br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = call i64 @FUNC(i64 %0) store i64 0, i64* @gv_0, align 8 br label LBL_2 LBL_2: %3 = load i64, i64* @gv_1, align 8 %4 = icmp eq i64 %3, 0 store i64 0, i64* %rax.0.reg2mem br i1 %4, label LBL_4, label LBL_3 LBL_3: %5 = call i64 @FUNC(i64 %3) store i64 0, i64* @gv_1, align 8 store i64 %5, i64* %rax.0.reg2mem br label LBL_4 LBL_4: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload }
1
BinRealVul
http_txn_reset_res_9210
http_txn_reset_res
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = bitcast i64* %arg1 to i32* store i32 0, i32* %1, align 4 %2 = add i64 %0, 12 %3 = inttoptr i64 %2 to i32* store i32 0, i32* %3, align 4 %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i32* store i32 0, i32* %5, align 4 %6 = add i64 %0, 4 %7 = inttoptr i64 %6 to i32* store i32 0, i32* %7, align 4 %8 = add i64 %0, 16 %9 = inttoptr i64 %8 to i32* store i32 0, i32* %9, align 4 %10 = add i64 %0, 24 %11 = inttoptr i64 %10 to i64* store i64 0, i64* %11, align 8 %12 = add i64 %0, 32 %13 = inttoptr i64 %12 to i64* store i64 0, i64* %13, align 8 %14 = add i64 %0, 40 %15 = inttoptr i64 %14 to i32* store i32 0, i32* %15, align 4 ret i64 %0 uselistorder i64 %0, { 1, 0, 2, 3, 4, 5, 6, 7 } uselistorder i32 0, { 2, 3, 0, 1, 4, 5 } }
0
BinRealVul
testmsg_10292
testmsg
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = trunc i64 %arg3 to i32 %2 = icmp eq i32 %1, 4 br i1 %2, label LBL_7, label LBL_1 LBL_1: %3 = icmp sgt i32 %1, 4 br i1 %3, label LBL_8, label LBL_2 LBL_2: %4 = icmp eq i32 %1, 3 br i1 %4, label LBL_6, label LBL_3 LBL_3: %5 = icmp sgt i32 %1, 1 br i1 %5, label LBL_5, label LBL_4 LBL_4: %6 = icmp slt i32 %1, 0 %7 = icmp eq i1 %6, false store i64 1, i64* %rax.0.reg2mem br i1 %7, label LBL_9, label LBL_8 LBL_5: %8 = icmp sgt i64 %0, %arg2 store i64 1, i64* %rax.0.reg2mem br i1 %8, label LBL_8, label LBL_9 LBL_6: %9 = icmp eq i64 %0, %arg2 %10 = icmp eq i1 %9, false store i64 1, i64* %rax.0.reg2mem br i1 %10, label LBL_8, label LBL_9 LBL_7: %11 = icmp eq i64 %0, %arg2 store i64 1, i64* %rax.0.reg2mem br i1 %11, label LBL_8, label LBL_9 LBL_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 i32 %1, { 3, 2, 1, 0, 4 } uselistorder i64 %0, { 1, 2, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 5, 1, 2, 3, 4 } uselistorder i32 4, { 1, 0 } uselistorder i64 %arg2, { 1, 2, 0 } uselistorder label LBL_9, { 4, 0, 1, 2, 3 } uselistorder label LBL_8, { 1, 2, 0, 3, 4 } }
0
BinRealVul
ofputil_decode_table_miss_8367
ofputil_decode_table_miss
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = trunc i64 %arg1 to i32 %1 = trunc i64 %arg2 to i32 %2 = call i32 @ntohl(i32 %0) %3 = icmp ne i32 %1, 0 %4 = icmp eq i32 %1, 1 %5 = icmp eq i1 %4, false %or.cond = icmp eq i1 %3, %5 store i64 4, i64* %rax.0.reg2mem br i1 %or.cond, label LBL_6, label LBL_1 LBL_1: %6 = urem i32 %2, 16 %7 = icmp eq i32 %6, 3 store i64 3, i64* %rax.0.reg2mem br i1 %7, label LBL_6, label LBL_2 LBL_2: %8 = icmp ult i32 %6, 4 br i1 %8, label LBL_3, label LBL_5 LBL_3: store i64 1, i64* %rax.0.reg2mem switch i32 %6, label LBL_5 [ i32 1, label LBL_6 i32 2, label LBL_4 ] LBL_4: store i64 2, i64* %rax.0.reg2mem br label LBL_6 LBL_5: %9 = zext i32 %2 to i64 %10 = call i64 @FUNC(i64* nonnull @gv_0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0), i64 %9) store i64 1, 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 %6, { 2, 1, 0 } uselistorder i32 %2, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 5, 3, 2, 1 } uselistorder i64 1, { 1, 0 } uselistorder label LBL_6, { 3, 4, 2, 1, 0 } }
0
BinRealVul
tap_send_2408
tap_send
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i32 %sv_1.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg1 to i64 %3 = add i64 %2, 24 %4 = add i64 %2, 8 %5 = inttoptr i64 %4 to i64* %6 = add i64 %2, 16 %7 = inttoptr i64 %6 to i32* %8 = add i64 %2, 20 %9 = inttoptr i64 %8 to i32* %10 = and i64 %1, 4294967295 br label LBL_8 LBL_1: %11 = load i64, i64* %5, align 8 %12 = call i64 @FUNC(i64 %10, i64 %11, i64 8) %13 = trunc i64 %12 to i32 %14 = icmp slt i32 %13, 1 store i64 %12, i64* %rax.0.reg2mem br i1 %14, label LBL_9, label LBL_2 LBL_2: %15 = load i32, i32* %7, align 4 %16 = icmp eq i32 %15, 0 store i64 %11, i64* %sv_1.0.reg2mem store i32 %13, i32* %sv_0.0.reg2mem br i1 %16, label LBL_5, label LBL_3 LBL_3: %17 = load i32, i32* %9, align 4 %18 = icmp eq i32 %17, 0 %19 = icmp eq i1 %18, false store i64 %11, i64* %sv_1.0.reg2mem store i32 %13, i32* %sv_0.0.reg2mem br i1 %19, label LBL_5, label LBL_4 LBL_4: %20 = sext i32 %15 to i64 %21 = add i64 %11, %20 %22 = sub i32 %13, %15 store i64 %21, i64* %sv_1.0.reg2mem store i32 %22, i32* %sv_0.0.reg2mem br label LBL_5 LBL_5: %sv_0.0.reload = load i32, i32* %sv_0.0.reg2mem %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %23 = call i64 @FUNC(i64 %3, i64 %sv_1.0.reload, i32 %sv_0.0.reload, i64 4198722) %24 = trunc i64 %23 to i32 %25 = icmp eq i32 %24, 0 %26 = icmp eq i1 %25, false br i1 %26, label LBL_7, label LBL_6 LBL_6: %27 = call i64 @FUNC(i64 %2, i64 0) store i64 %27, i64* %rax.0.reg2mem br label LBL_9 LBL_7: %28 = icmp slt i32 %24, 0 store i64 %23, i64* %rax.0.reg2mem br i1 %28, label LBL_9, label LBL_8 LBL_8: %29 = call i64 @FUNC(i64 %3) %30 = trunc i64 %29 to i32 %31 = icmp eq i32 %30, 0 %32 = icmp eq i1 %31, false store i64 %29, i64* %rax.0.reg2mem br i1 %32, label LBL_1, label LBL_9 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %13, { 2, 0, 1, 3 } uselistorder i64 %11, { 2, 0, 1, 3 } uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 0, 2, 1, 3, 4 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 2, 4, 3 } uselistorder i1 false, { 2, 0, 1 } uselistorder i32 0, { 4, 0, 1, 2, 3 } uselistorder label LBL_9, { 2, 0, 3, 1 } }
0
BinRealVul
kodak_c603_load_raw_12820
kodak_c603_load_raw
define i64 @FUNC() local_unnamed_addr { LBL_0: %indvars.iv6.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %indvars.iv9.reg2mem = alloca i64 %sv_0 = alloca i64, align 8 %0 = ptrtoint i64* %sv_0 to i64 %1 = call i64* @calloc(i32 1024, i32 3) %2 = ptrtoint i64* %1 to i64 %3 = call i64 @FUNC(i64 %2, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_0, i64 0, i64 0)) %4 = add i64 %0, -48 store i64 0, i64* %indvars.iv9.reg2mem br label LBL_1 LBL_1: %indvars.iv9.reload = load i64, i64* %indvars.iv9.reg2mem %5 = urem i64 %indvars.iv9.reload, 2 %6 = icmp eq i64 %5, 0 %7 = icmp eq i1 %6, false br i1 %7, label LBL_4, label LBL_2 LBL_2: %8 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %9 = call i32 @fread(i64* %1, i32 1024, i32 3, %_IO_FILE* %8) %10 = icmp ult i32 %9, 3 br i1 %10, label LBL_3, label LBL_4 LBL_3: %11 = call i64 @FUNC() unreachable LBL_4: %12 = mul i64 %indvars.iv9.reload, 1024 store i64 0, i64* %indvars.iv6.reg2mem br label LBL_7 LBL_5: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %13 = mul i64 %indvars.iv.reload, 4 %14 = add i64 %4, %13 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = zext i32 %16 to i64 %18 = call i64 @FUNC(i64 %17, i64 0, i64 255) %19 = load i64, i64* @gv_2, align 8 %20 = add i64 %19, %30 %21 = inttoptr i64 %20 to i64* %22 = load i64, i64* %21, align 8 %23 = add i64 %22, %indvars.iv.reload %sext = mul i64 %18, 4294967296 %24 = ashr exact i64 %sext, 32 %25 = add i64 %24, ptrtoint (i8** @gv_3 to i64) %26 = inttoptr i64 %25 to i8* %27 = load i8, i8* %26, align 1 %28 = inttoptr i64 %23 to i8* store i8 %27, i8* %28, align 1 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %exitcond = icmp eq i64 %indvars.iv.next, 3 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem br i1 %exitcond, label LBL_6, label LBL_5 LBL_6: %indvars.iv.next7 = add nuw nsw i64 %indvars.iv6.reload, 1 %exitcond8 = icmp eq i64 %indvars.iv.next7, 1024 store i64 %indvars.iv.next7, i64* %indvars.iv6.reg2mem br i1 %exitcond8, label LBL_8, label LBL_7 LBL_7: %indvars.iv6.reload = load i64, i64* %indvars.iv6.reg2mem %29 = add nuw nsw i64 %indvars.iv6.reload, %12 %30 = mul i64 %29, 8 store i64 0, i64* %indvars.iv.reg2mem br label LBL_5 LBL_8: %indvars.iv.next10 = add nuw nsw i64 %indvars.iv9.reload, 1 %31 = icmp ult i64 %indvars.iv.next10, 768 store i64 %indvars.iv.next10, i64* %indvars.iv9.reg2mem br i1 %31, label LBL_1, label LBL_9 LBL_9: call void @free(i64* %1) %32 = load i8, i8* bitcast (i32* @gv_4 to i8*), align 4 %33 = zext i8 %32 to i64 %34 = zext i8 %32 to i32 store i32 %34, i32* bitcast (i64* @gv_5 to i32*), align 8 ret i64 %33 uselistorder i64 %indvars.iv6.reload, { 1, 0 } uselistorder i64 %indvars.iv9.reload, { 0, 2, 1 } uselistorder i64* %1, { 1, 0, 2 } uselistorder i64* %indvars.iv9.reg2mem, { 1, 0, 2 } uselistorder i64* %indvars.iv.reg2mem, { 2, 1, 0 } uselistorder i64 1024, { 1, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
handle_CWD_7349
handle_CWD
define i64 @FUNC(i64* %arg1, i8* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = alloca i32 %storemerge.reg2mem = alloca i64 %.pre-phi5.reg2mem = alloca i8* %sv_0.0.reg2mem = alloca i8* %2 = load i64, i64* %0 %3 = ptrtoint i64* %arg1 to i64 %4 = load i32, i32* %1 %sv_1 = alloca i64, align 8 %5 = icmp eq i8* %arg2, null br i1 %5, label LBL_0.LBL_9_crit_edge, label LBL_2 LBL_1: %.pre = add i64 %3, 260 %.pre4 = inttoptr i64 %.pre to i8* store i8* %.pre4, i8** %.pre-phi5.reg2mem br label LBL_9 LBL_2: %6 = ptrtoint i8* %arg2 to i64 %7 = call i64 @FUNC(i64 %3, i64 %6) %8 = icmp eq i64 %7, 0 br i1 %8, label LBL_4, label LBL_3 LBL_3: %9 = inttoptr i64 %7 to i8* %10 = bitcast i64* %sv_1 to %stat* %11 = call i32 @stat(i8* %9, %stat* nonnull %10) %12 = icmp eq i32 %11, 0 %13 = and i32 %4, 61440 %14 = icmp eq i32 %13, 16384 %or.cond = icmp eq i1 %14, %12 br i1 %or.cond, label LBL_5, label LBL_4 LBL_4: %15 = add i64 %3, 4 %16 = inttoptr i64 %15 to i8* %17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @gv_0, i64 0, i64 0), i8* %16, i8* nonnull %arg2, i64 %15) %18 = and i64 %2, 4294967295 %19 = call i64 @FUNC(i64 %18, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_1, i64 0, i64 0)) store i64 %19, i64* %storemerge.reg2mem br label LBL_10 LBL_5: %20 = load i32, i32* inttoptr (i64 4211812 to i32*), align 4 %21 = icmp eq i32 %20, 0 %22 = icmp eq i1 %21, false store i8* %9, i8** %sv_0.0.reg2mem br i1 %22, label LBL_7, label LBL_6 LBL_6: %23 = call i32 @strlen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_2, i64 0, i64 0)) %24 = sext i32 %23 to i64 %25 = add i64 %7, %24 %26 = inttoptr i64 %25 to i8* store i8* %26, i8** %sv_0.0.reg2mem br label LBL_7 LBL_7: %sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem %27 = add i64 %3, 260 %28 = inttoptr i64 %27 to i8* %29 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %28, i32 1024, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_3, i64 0, i64 0), i8* %sv_0.0.reload) %30 = load i8, i8* %28, align 1 %31 = icmp eq i8 %30, 0 %32 = icmp eq i1 %31, false store i8* %28, i8** %.pre-phi5.reg2mem br i1 %32, label LBL_9, label LBL_8 LBL_8: %33 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %28, i32 1024, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_4, i64 0, i64 0)) store i8* %28, i8** %.pre-phi5.reg2mem br label LBL_9 LBL_9: %.pre-phi5.reload = load i8*, i8** %.pre-phi5.reg2mem %34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @gv_5, i64 0, i64 0), i8* %.pre-phi5.reload) %35 = and i64 %2, 4294967295 %36 = call i64 @FUNC(i64 %35, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_6, i64 0, i64 0)) store i64 %36, i64* %storemerge.reg2mem br label LBL_10 LBL_10: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i8* %28, { 0, 2, 1, 3, 4 } uselistorder i64 %15, { 1, 0 } uselistorder i64 %3, { 1, 2, 3, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 0, 2, 1 } uselistorder i64 (i64, i8*)* @send_msg, { 1, 0 } uselistorder i32 (i8*, ...)* @printf, { 2, 0, 1 } uselistorder i64 260, { 1, 0 } uselistorder label LBL_9, { 2, 1, 0 } }
0
BinRealVul
append_option_parameters_4640
append_option_parameters
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.01.reg2mem = alloca i64 %sv_1.12.reg2mem = alloca i64 %sv_1.0.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 %arg1) %1 = call i64 @FUNC(i64 %arg2) %2 = add i64 %1, %0 %3 = mul i64 %2, 8 %4 = add i64 %3, 8 %5 = call i64 @FUNC(i64 %arg1, i64 %4) %6 = mul i64 %0, 8 %7 = add i64 %5, %6 %8 = inttoptr i64 %7 to i64* store i64 0, i64* %8, align 8 %9 = icmp eq i64 %arg2, 0 store i64 %0, i64* %sv_1.12.reg2mem store i64 %arg2, i64* %sv_0.01.reg2mem br i1 %9, label LBL_5, label LBL_4 LBL_1: %sv_1.12.reload = load i64, i64* %sv_1.12.reg2mem %10 = call i64 @FUNC(i64 %5, i64 %24) %11 = icmp eq i64 %10, 0 %12 = icmp eq i1 %11, false store i64 %sv_1.12.reload, i64* %sv_1.0.reg2mem br i1 %12, label LBL_3, label LBL_2 LBL_2: %13 = add i64 %sv_1.12.reload, 1 %14 = mul i64 %sv_1.12.reload, 8 %15 = add i64 %14, %5 %16 = load i64, i64* %23, align 8 %17 = inttoptr i64 %15 to i64* store i64 %16, i64* %17, align 8 %18 = mul i64 %13, 8 %19 = add i64 %18, %5 %20 = inttoptr i64 %19 to i64* store i64 0, i64* %20, align 8 store i64 %13, i64* %sv_1.0.reg2mem br label LBL_3 LBL_3: %sv_1.0.reload = load i64, i64* %sv_1.0.reg2mem %21 = add i64 %sv_0.01.reload, 8 %22 = icmp eq i64 %21, 0 store i64 %sv_1.0.reload, i64* %sv_1.12.reg2mem store i64 %21, i64* %sv_0.01.reg2mem br i1 %22, label LBL_5, label LBL_4 LBL_4: %sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem %23 = inttoptr i64 %sv_0.01.reload to i64* %24 = load i64, i64* %23, align 8 %25 = icmp eq i64 %24, 0 %26 = icmp eq i1 %25, false br i1 %26, label LBL_1, label LBL_5 LBL_5: ret i64 %5 uselistorder i64 %24, { 1, 0 } uselistorder i64* %23, { 1, 0 } uselistorder i64 %sv_0.01.reload, { 1, 0 } uselistorder i64 %sv_1.12.reload, { 1, 0, 2 } uselistorder i64 %5, { 4, 0, 1, 3, 2 } uselistorder i64* %sv_1.12.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.01.reg2mem, { 0, 2, 1 } uselistorder i1 false, { 1, 0, 3, 2, 4 } uselistorder i64 8, { 6, 0, 1, 2, 5, 3, 7, 4 } uselistorder i64 (i64)* @count_option_parameters, { 1, 0 } uselistorder i32 1, { 2, 1, 0, 4, 3, 6, 5 } uselistorder label LBL_5, { 1, 0, 2 } uselistorder label LBL_4, { 1, 0 } }
0
BinRealVul
dlg_lookup_18192
dlg_lookup
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge.reg2mem = alloca i64 %storemerge5.in9.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = trunc i64 %arg1 to i32 %sext = mul i64 %arg1, 4294967296 %5 = ashr exact i64 %sext, 32 %sext4 = mul i64 %arg2, 4294967296 %6 = ashr exact i64 %sext4, 32 %7 = load i64, i64* @gv_0, align 8 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = icmp ugt i32 %9, %4 %11 = icmp eq i1 %10, false br i1 %11, label LBL_7, label LBL_1 LBL_1: %12 = add i64 %7, 8 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = mul i64 %arg1, 8 %16 = and i64 %15, 34359738360 %17 = add i64 %14, %16 %18 = call i64 @FUNC(i64 %7, i64 %17) %storemerge5.in.in7 = inttoptr i64 %17 to i64* %storemerge5.in8 = load i64, i64* %storemerge5.in.in7, align 8 %19 = icmp eq i64 %storemerge5.in8, 0 %20 = icmp eq i1 %19, false br i1 %20, label LBL_2, label LBL_6 LBL_2: %21 = trunc i64 %6 to i32 store i64 %storemerge5.in8, i64* %storemerge5.in9.reg2mem br label LBL_3 LBL_3: %storemerge5.in9.reload = load i64, i64* %storemerge5.in9.reg2mem %storemerge5 = inttoptr i64 %storemerge5.in9.reload to i32* %22 = load i32, i32* %storemerge5, align 4 %23 = icmp eq i32 %22, %21 %24 = icmp eq i1 %23, false br i1 %24, label LBL_5, label LBL_4 LBL_4: %25 = call i64 @FUNC(i64 %storemerge5.in9.reload, i64 1) %26 = load i64, i64* @gv_0, align 8 %27 = call i64 @FUNC(i64 %26, i64 %17) %28 = trunc i64 %5 to i32 %29 = and i64 %6, 4294967295 %30 = call i64 @FUNC(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0), i64 %29, i32 %28, i64 %3, i64 %2, i64 %1) store i64 %storemerge5.in9.reload, i64* %storemerge.reg2mem br label LBL_8 LBL_5: %31 = add i64 %storemerge5.in9.reload, 8 %storemerge5.in.in = inttoptr i64 %31 to i64* %storemerge5.in = load i64, i64* %storemerge5.in.in, align 8 %32 = icmp eq i64 %storemerge5.in, 0 %33 = icmp eq i1 %32, false store i64 %storemerge5.in, i64* %storemerge5.in9.reg2mem br i1 %33, label LBL_3, label LBL_6 LBL_6: %34 = load i64, i64* @gv_0, align 8 %35 = call i64 @FUNC(i64 %34, i64 %17) br label LBL_7 LBL_7: %36 = trunc i64 %5 to i32 %37 = and i64 %6, 4294967295 %38 = call i64 @FUNC(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @gv_2, i64 0, i64 0), i64 %37, i32 %36, i64 %3, i64 %2, i64 %1) store i64 0, i64* %storemerge.reg2mem br label LBL_8 LBL_8: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %storemerge5.in9.reload, { 1, 0, 3, 2 } uselistorder i64 %17, { 1, 2, 0, 3 } uselistorder i64 %6, { 2, 0, 1 } uselistorder i64 %5, { 1, 0 } uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %storemerge5.in9.reg2mem, { 1, 0, 2 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 (i8*, i64, i32, i64, i64, i64)* @LM_DBG, { 1, 0 } uselistorder i64 4294967295, { 1, 0 } uselistorder i1 false, { 2, 1, 0, 3 } uselistorder i32 1, { 7, 6, 5, 4, 0, 3, 2, 1 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
clone_tables_2589
clone_tables
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 store i64 %0, i64* %arg1, align 8 %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = add i64 %1, 8 %6 = inttoptr i64 %5 to i64* store i64 %4, i64* %6, align 8 %7 = add i64 %0, 16 %8 = inttoptr i64 %7 to i64* %9 = load i64, i64* %8, align 8 %10 = add i64 %1, 16 %11 = inttoptr i64 %10 to i64* store i64 %9, i64* %11, align 8 %12 = add i64 %0, 24 %13 = inttoptr i64 %12 to i64* %14 = load i64, i64* %13, align 8 %15 = add i64 %1, 24 %16 = inttoptr i64 %15 to i64* store i64 %14, i64* %16, align 8 %17 = add i64 %0, 32 %18 = inttoptr i64 %17 to i64* %19 = load i64, i64* %18, align 8 %20 = add i64 %1, 32 %21 = inttoptr i64 %20 to i64* store i64 %19, i64* %21, align 8 %22 = add i64 %0, 40 %23 = inttoptr i64 %22 to i64* %24 = load i64, i64* %23, align 8 %25 = add i64 %1, 40 %26 = inttoptr i64 %25 to i64* store i64 %24, i64* %26, align 8 %27 = add i64 %0, 48 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = add i64 %1, 48 %31 = inttoptr i64 %30 to i64* store i64 %29, i64* %31, align 8 %32 = add i64 %0, 56 %33 = inttoptr i64 %32 to i64* %34 = load i64, i64* %33, align 8 %35 = add i64 %1, 56 %36 = inttoptr i64 %35 to i64* %37 = load i64, i64* %36, align 8 %38 = inttoptr i64 %34 to i64* %39 = load i64, i64* %38, align 8 %40 = inttoptr i64 %37 to i64* store i64 %39, i64* %40, align 8 %41 = load i64, i64* %33, align 8 %42 = load i64, i64* %36, align 8 %43 = add i64 %42, 8 %44 = add i64 %41, 8 %45 = inttoptr i64 %44 to i64* %46 = load i64, i64* %45, align 8 %47 = inttoptr i64 %43 to i64* store i64 %46, i64* %47, align 8 %48 = add i64 %0, 64 %49 = inttoptr i64 %48 to i64* %50 = load i64, i64* %49, align 8 %51 = add i64 %1, 64 %52 = inttoptr i64 %51 to i64* store i64 %50, i64* %52, align 8 %53 = add i64 %1, 72 %54 = inttoptr i64 %53 to i64* store i64 0, i64* %54, align 8 %55 = add i64 %0, 80 %56 = inttoptr i64 %55 to i32* %57 = load i32, i32* %56, align 4 %58 = add i64 %1, 88 %59 = zext i32 %57 to i64 %60 = call i64 @FUNC(i64 %58, i64 %59) ret i64 %60 uselistorder i64 %0, { 7, 6, 5, 4, 3, 2, 1, 0, 8, 9 } }
0
BinRealVul
somfy_iohc_decode_7781
somfy_iohc_decode
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 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sv_3 = alloca i32, align 4 %sv_4 = alloca i16, align 2 store i16 -681, i16* %sv_4, align 2 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 1 store i64 4294967295, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_7 LBL_1: %4 = ptrtoint i32* %arg2 to i64 %5 = call i64 @FUNC(i64 %4, i64 0, i64 0, i16* nonnull %sv_4, i64 24) %6 = trunc i64 %5 to i32 %7 = add i32 %6, 24 %8 = add i64 %4, 8 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = add i32 %12, -190 %14 = zext i32 %13 to i64 %15 = sext i32 %7 to i64 %16 = icmp slt i64 %15, %14 store i64 4294967295, i64* %rax.0.reg2mem br i1 %16, label LBL_2, label LBL_7 LBL_2: %17 = sub i32 %12, %7 %18 = add i64 %4, 16 %19 = inttoptr i64 %18 to i64* %20 = load i64, i64* %19, align 8 %21 = inttoptr i64 %20 to i64* %22 = load i64, i64* %21, align 8 %23 = bitcast i32* %sv_3 to i64* %24 = call i64 @FUNC(i64 %22, i32 %7, i32 %17, i64* nonnull %23) %25 = trunc i64 %24 to i32 %26 = icmp sgt i32 %25, 18 store i64 4294967294, i64* %rax.0.reg2mem br i1 %26, label LBL_3, label LBL_7 LBL_3: %27 = load i32, i32* %sv_3, align 4 %28 = and i32 %27, 240 %29 = icmp eq i32 %28, 240 store i64 4294967295, i64* %rax.0.reg2mem br i1 %29, label LBL_4, label LBL_7 LBL_4: %30 = urem i32 %27, 16 %31 = add nuw nsw i32 %30, 18 %32 = zext i32 %31 to i64 %sext = mul i64 %24, 4294967296 %33 = ashr exact i64 %sext, 32 %34 = icmp sgt i64 %33, %32 store i64 4294967294, i64* %rax.0.reg2mem br i1 %34, label LBL_5, label LBL_7 LBL_5: %35 = call i64 @FUNC(i64* nonnull %23, i32 %25, i64 33800, i64 0) %36 = trunc i64 %35 to i32 %37 = icmp eq i32 %36, 0 store i64 4294967293, i64* %rax.0.reg2mem br i1 %37, label LBL_6, label LBL_7 LBL_6: %38 = ptrtoint i64* %arg1 to i64 %39 = mul i64 %24, 8 %40 = and i64 %39, 4294967288 %41 = zext i32 %17 to i64 %42 = zext i32 %7 to i64 %43 = call i64 @FUNC(i64* nonnull %23, i64 %40, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @gv_0, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @gv_1, i64 0, i64 0), i64 %42, i64 %41) %44 = mul i32 %30, 8 %45 = zext i32 %44 to i64 %46 = call i64 @FUNC(i64* nonnull %sv_1, i64 %45, i64* nonnull %sv_2, i64 31) %47 = ptrtoint i32* %sv_3 to i64 %sext27 = add i64 %sext, -34359738368 %48 = ashr exact i64 %sext27, 32 %49 = add i64 %48, %47 %50 = inttoptr i64 %49 to i64* %51 = call i64 @FUNC(i64* %50, i64 48, i64* nonnull %sv_0, i64 13) %52 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_2, i64 0, i64 0), i64* nonnull @gv_3, i64 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_5, i64 0, i64 0), i64* nonnull @gv_3) %53 = call i64 @FUNC(i64 %38, i64 %52) store i64 1, 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 %sext, { 1, 0 } uselistorder i32* %sv_3, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 7, 1, 2, 3, 4, 5, 6 } uselistorder i64 (i64*, i64, i64*, i64)* @bitrow_snprint, { 1, 0 } uselistorder i32 18, { 1, 0 } uselistorder label LBL_7, { 6, 0, 1, 2, 3, 4, 5 } }
1
BinRealVul
xdr_nullstring_11786
xdr_nullstring
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %sv_0 = alloca i32, align 4 %2 = trunc i64 %1 to i32 %3 = icmp eq i32 %2, 0 %4 = icmp eq i1 %3, false br i1 %4, label LBL_4, label LBL_1 LBL_1: %5 = icmp eq i64* %arg2, null %6 = icmp eq i1 %5, false br i1 %6, label LBL_3, label LBL_2 LBL_2: store i32 0, i32* %sv_0, align 4 br label LBL_4 LBL_3: %7 = bitcast i64* %arg2 to i8* %8 = call i32 @strlen(i8* %7) %9 = add i32 %8, 1 store i32 %9, i32* %sv_0, align 4 br label LBL_4 LBL_4: %10 = ptrtoint i32* %arg1 to i64 %11 = call i64 @FUNC(i64 %10, i32* nonnull %sv_0) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 %14 = icmp eq i1 %13, false store i64 0, i64* %rax.0.reg2mem br i1 %14, label LBL_5, label LBL_15 LBL_5: %15 = ptrtoint i32* %sv_0 to i64 %16 = icmp eq i32 %2, 2 br i1 %16, label LBL_14, label LBL_6 LBL_6: %17 = icmp sgt i32 %2, 2 store i64 0, i64* %rax.0.reg2mem br i1 %17, label LBL_15, label LBL_7 LBL_7: br i1 %3, label LBL_12, label LBL_8 LBL_8: %18 = icmp eq i32 %2, 1 %19 = icmp eq i1 %18, false store i64 0, i64* %rax.0.reg2mem br i1 %19, label LBL_15, label LBL_9 LBL_9: %20 = load i32, i32* %sv_0, align 4 %21 = icmp eq i32 %20, 0 %22 = icmp eq i1 %21, false br i1 %22, label LBL_11, label LBL_10 LBL_10: store i64 0, i64* %arg2, align 8 store i64 1, i64* %rax.0.reg2mem br label LBL_15 LBL_11: %23 = call i64 @FUNC(i64 %10, i64 %15, i32 %20) store i64 %23, i64* %rax.0.reg2mem br label LBL_15 LBL_12: %24 = load i32, i32* %sv_0, align 4 %25 = icmp eq i32 %24, 0 store i64 1, i64* %rax.0.reg2mem br i1 %25, label LBL_15, label LBL_13 LBL_13: %26 = call i64 @FUNC(i64 %10, i64 %15, i32 %24) store i64 %26, i64* %rax.0.reg2mem br label LBL_15 LBL_14: %27 = load i32, i32* %sv_0, align 4 %28 = zext i32 %27 to i64 %29 = call i64 @FUNC(i64 %15, i64 %28) store i64 0, i64* %arg2, align 8 store i64 1, i64* %rax.0.reg2mem br label LBL_15 LBL_15: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %15, { 2, 1, 0 } uselistorder i64 %10, { 1, 0, 2 } uselistorder i32* %sv_0, { 1, 2, 3, 4, 0, 5, 6 } uselistorder i64* %rax.0.reg2mem, { 0, 8, 7, 3, 6, 5, 2, 1, 4 } uselistorder i64 (i64, i64, i32)* @xdr_opaque, { 1, 0 } uselistorder i64 1, { 2, 0, 1, 3, 4 } uselistorder i32 2, { 1, 0 } uselistorder i64* %arg2, { 1, 2, 0, 3 } uselistorder label LBL_15, { 4, 5, 2, 6, 7, 1, 0, 3 } }
1
BinRealVul
arith2_normalise_15978
arith2_normalise
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %.lcssa.reg2mem = alloca i32 %.reg2mem7 = alloca i32 %.reg2mem5 = alloca i32 %.reg2mem = alloca i32 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg1 to i64 %3 = add i64 %2, 4 %4 = inttoptr i64 %3 to i32* %5 = load i32, i32* %4, align 4 %6 = udiv i32 %5, 32768 %7 = trunc i64 %1 to i32 %8 = udiv i32 %7, 32768 %9 = sub nsw i32 %6, %8 %10 = icmp ult i32 %9, 2 store i32 %9, i32* %.lcssa.reg2mem br i1 %10, label LBL_1, label LBL_5 LBL_1: %11 = bitcast i64* %rdi to i32* %12 = add i64 %2, 8 %13 = inttoptr i64 %12 to i32* %14 = add i64 %2, 16 %15 = inttoptr i64 %14 to i64* store i32 %7, i32* %.reg2mem store i32 %5, i32* %.reg2mem5 br label LBL_2 LBL_2: %.reload6 = load i32, i32* %.reg2mem5 %.reload = load i32, i32* %.reg2mem %16 = xor i32 %.reload6, %.reload %17 = and i32 %16, 65536 %18 = icmp eq i32 %17, 0 store i32 %.reload6, i32* %.reg2mem7 br i1 %18, label LBL_4, label LBL_3 LBL_3: %19 = xor i32 %.reload6, 32768 store i32 %19, i32* %4, align 4 %20 = load i32, i32* %13, align 4 %21 = xor i32 %20, 32768 store i32 %21, i32* %13, align 4 %22 = load i32, i32* %11, align 8 %23 = xor i32 %22, 32768 store i32 %23, i32* %arg1, align 4 %.pre = load i32, i32* %4, align 4 store i32 %.pre, i32* %.reg2mem7 br label LBL_4 LBL_4: %.reload8 = load i32, i32* %.reg2mem7 %24 = mul i32 %.reload8, 256 %25 = and i32 %24, 16776960 %26 = or i32 %25, 255 store i32 %26, i32* %4, align 4 %27 = load i32, i32* %13, align 4 %28 = mul i32 %27, 256 %29 = and i32 %28, 16776960 %30 = load i64, i64* %15, align 8 %31 = call i64 @FUNC(i64 %30) %32 = trunc i64 %31 to i32 %33 = urem i32 %32, 256 %34 = or i32 %33, %29 store i32 %34, i32* %13, align 4 %35 = load i32, i32* %11, align 8 %36 = mul i32 %35, 256 %37 = and i32 %36, 16776960 store i32 %37, i32* %arg1, align 4 %38 = load i32, i32* %4, align 4 %39 = udiv i32 %38, 32768 %40 = udiv i32 %35, 32768 %41 = sub nsw i32 %39, %40 %42 = icmp ult i32 %41, 2 store i32 %35, i32* %.reg2mem store i32 %38, i32* %.reg2mem5 store i32 %41, i32* %.lcssa.reg2mem br i1 %42, label LBL_2, label LBL_5 LBL_5: %.lcssa.reload = load i32, i32* %.lcssa.reg2mem %43 = zext i32 %.lcssa.reload to i64 ret i64 %43 uselistorder i32 %35, { 0, 2, 1 } uselistorder i32 %.reload6, { 1, 0, 2 } uselistorder i32* %13, { 1, 0, 2, 3 } uselistorder i32* %11, { 1, 0 } uselistorder i32* %4, { 4, 2, 0, 3, 1 } uselistorder i64 %2, { 1, 0, 2 } uselistorder i32* %.reg2mem, { 1, 0, 2 } uselistorder i32* %.reg2mem5, { 1, 0, 2 } uselistorder i32* %.reg2mem7, { 0, 2, 1 } uselistorder i32 256, { 0, 3, 1, 2 } uselistorder i32 2, { 1, 0 } uselistorder i32 32768, { 0, 1, 4, 5, 6, 2, 3 } uselistorder i32* %arg1, { 1, 0, 2 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
qxl_palette_create_1bit_4931
qxl_palette_create_1bit
define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %storemerge3.in.in.reg2mem = alloca i64 %sv_0.0.in.reg2mem = alloca i32* %rdx = alloca i64, align 8 %0 = ptrtoint i32* %arg3 to i64 %1 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i32*, align 8 %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i32* %4 = load i32, i32* %3, align 4 %5 = add i64 %0, 16 %6 = inttoptr i64 %5 to i64* %7 = load i64, i64* %6, align 8 %8 = bitcast i32** %sv_1 to i64* %9 = call i64 @FUNC(i64 %1, i64* nonnull %8) %10 = trunc i64 %9 to i32 %11 = icmp eq i32 %10, 0 br i1 %11, label LBL_2, label LBL_1 LBL_1: %12 = and i64 %9, 4294967295 store i64 %12, i64* %storemerge.reg2mem br label LBL_6 LBL_2: %13 = load i32*, i32** %sv_1, align 8 store i32 2, i32* %13, align 4 %14 = load i64, i64* @gv_0, align 8 %15 = add i64 %14, 1 store i64 %15, i64* @gv_0, align 8 %16 = load i32*, i32** %sv_1, align 8 %17 = ptrtoint i32* %16 to i64 %18 = add i64 %17, 8 %19 = inttoptr i64 %18 to i64* store i64 %14, i64* %19, align 8 %20 = icmp ne i32 %4, 1 %21 = icmp eq i32 %4, 2 %22 = icmp eq i1 %21, false %or.cond = icmp eq i1 %20, %22 %23 = bitcast i64* %rdx to i32* br i1 %or.cond, label LBL_4, label LBL_3 LBL_3: %24 = load i32, i32* %23, align 8 %25 = sext i32 %24 to i64 %26 = mul i64 %25, 4 %27 = add i64 %26, %7 %28 = inttoptr i64 %27 to i32* %29 = add i64 %0, 4 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = sext i32 %31 to i64 %33 = mul i64 %32, 4 %34 = add i64 %33, %7 store i32* %28, i32** %sv_0.0.in.reg2mem store i64 %34, i64* %storemerge3.in.in.reg2mem br label LBL_5 LBL_4: %35 = add i64 %0, 4 store i32* %23, i32** %sv_0.0.in.reg2mem store i64 %35, i64* %storemerge3.in.in.reg2mem br label LBL_5 LBL_5: %storemerge3.in.in.reload = load i64, i64* %storemerge3.in.in.reg2mem %sv_0.0.in.reload = load i32*, i32** %sv_0.0.in.reg2mem %sv_0.0 = load i32, i32* %sv_0.0.in.reload, align 4 %storemerge3.in = inttoptr i64 %storemerge3.in.in.reload to i32* %storemerge3 = load i32, i32* %storemerge3.in, align 4 %36 = load i32*, i32** %sv_1, align 8 %37 = ptrtoint i32* %36 to i64 %38 = add i64 %37, 16 %39 = inttoptr i64 %38 to i32* store i32 %storemerge3, i32* %39, align 4 %40 = load i32*, i32** %sv_1, align 8 %41 = ptrtoint i32* %40 to i64 %42 = add i64 %41, 20 %43 = inttoptr i64 %42 to i32* store i32 %sv_0.0, i32* %43, align 4 %44 = call i64 @FUNC(i64 %1) store i64 0, i64* %storemerge.reg2mem br label LBL_6 LBL_6: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %14, { 1, 0 } uselistorder i32** %sv_1, { 3, 2, 1, 0, 4 } uselistorder i64 %0, { 1, 0, 2, 3 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder i64 4, { 2, 0, 3, 1 } }
0
BinRealVul
setSessionStats_6777
setSessionStats
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 store i64 %0, i64* @gv_0, align 8 store i64 %0, i64* @gv_1, align 8 store i64 %0, i64* @gv_2, align 8 ret i64 %0 uselistorder i64 %0, { 1, 0, 2, 3 } }
0
BinRealVul
probe_group_enter_15111
probe_group_enter
define i64 @FUNC(i8* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.1.reg2mem = alloca i64 %.reg2mem = alloca i64 %.pre-phi6.reg2mem = alloca i64 %0 = load i64, i64* @gv_0, align 8 %1 = call i64 @FUNC(i64 %0, i64 shl (i64 sext (i32 ptrtoint (i32* @gv_1 to i32) to i64), i64 5)) store i64 %1, i64* @gv_0, align 8 %2 = icmp ne i64 %1, 0 %3 = icmp eq i8* %arg1, null %4 = icmp eq i1 %3, false %or.cond = icmp eq i1 %4, %2 br i1 %or.cond, label LBL_2, label LBL_1 LBL_1: %5 = load %_IO_FILE*, %_IO_FILE** @gv_2, align 8 %6 = call i32 @fwrite(i64* bitcast ([15 x i8]* @gv_3 to i64*), i32 1, i32 14, %_IO_FILE* %5) call void @exit(i32 1) unreachable LBL_2: %7 = load i32, i32* @gv_4, align 4 %8 = icmp eq i32 %7, 0 store i64 0, i64* %.pre-phi6.reg2mem store i64 %1, i64* %.reg2mem store i64 -1, i64* %sv_0.1.reg2mem br i1 %8, label LBL_4, label LBL_3 LBL_3: %9 = sext i32 %7 to i64 %10 = mul i64 %9, 32 %11 = add i64 %1, -32 %12 = add i64 %11, %10 %13 = add i64 %12, 8 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = icmp eq i32 %15, 1 %17 = icmp eq i1 %16, false %.pre7 = add i64 %12, 16 %.pre9 = inttoptr i64 %.pre7 to i64* %.pre11 = load i64, i64* %.pre9, align 8 %..pre11 = select i1 %17, i64 -1, i64 %.pre11 %18 = add i64 %.pre11, 1 store i64 %18, i64* %.pre9, align 8 %.pre = load i64, i64* @gv_0, align 8 store i64 %10, i64* %.pre-phi6.reg2mem store i64 %.pre, i64* %.reg2mem store i64 %..pre11, i64* %sv_0.1.reg2mem br label LBL_4 LBL_4: %sv_0.1.reload = load i64, i64* %sv_0.1.reg2mem %.reload = load i64, i64* %.reg2mem %.pre-phi6.reload = load i64, i64* %.pre-phi6.reg2mem store i32 ptrtoint (i32* @gv_1 to i32), i32* @gv_4, align 4 %19 = add i64 %.reload, %.pre-phi6.reload %20 = ptrtoint i8* %arg1 to i64 %21 = inttoptr i64 %19 to i64* store i64 %20, i64* %21, align 8 %22 = trunc i64 %arg2 to i32 %23 = add i64 %19, 8 %24 = inttoptr i64 %23 to i32* store i32 %22, i32* %24, align 4 %25 = add i64 %19, 16 %26 = inttoptr i64 %25 to i64* store i64 %sv_0.1.reload, i64* %26, align 8 %27 = add i64 %19, 24 %28 = inttoptr i64 %27 to i32* store i32 0, i32* %28, align 4 ret i64 %19 uselistorder i64 %19, { 4, 3, 2, 1, 0 } uselistorder i64* %.pre9, { 1, 0 } uselistorder i64 %1, { 1, 0, 2, 3 } uselistorder i64* %.pre-phi6.reg2mem, { 0, 2, 1 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.1.reg2mem, { 0, 2, 1 } uselistorder i64 16, { 1, 0 } uselistorder i64 -1, { 1, 0 } uselistorder i32* @gv_4, { 1, 0 } uselistorder i1 false, { 1, 0, 2 } uselistorder i32 0, { 2, 3, 0, 1 } uselistorder i32 1, { 3, 4, 5, 2, 1, 0 } uselistorder i8* %arg1, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
inet_dgram_opts_95
inet_dgram_opts
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i8* %sv_1.1.reg2mem = alloca i8* %sv_1.0.reg2mem = alloca i8* %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg1 to i64 %sv_2 = alloca i64, align 8 %sv_3 = alloca %addrinfo*, align 8 %sv_4 = alloca %addrinfo*, align 8 store %addrinfo* null, %addrinfo** %sv_4, align 8 store %addrinfo* null, %addrinfo** %sv_3, align 8 %5 = call i64* @memset(i64* nonnull %sv_2, i32 0, i32 48) store i64 34, i64* %sv_2, align 8 %6 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_0, i64 0, i64 0)) %7 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0)) %8 = icmp eq i64 %6, 0 br i1 %8, label LBL_2, label LBL_1 LBL_1: %9 = inttoptr i64 %6 to i8* %10 = load i8, i8* %9, align 1 %11 = icmp eq i8 %10, 0 %12 = icmp eq i1 %11, false store i8* %9, i8** %sv_1.0.reg2mem br i1 %12, label LBL_3, label LBL_2 LBL_2: store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_2, i64 0, i64 0), i8** %sv_1.0.reg2mem br label LBL_3 LBL_3: %13 = ptrtoint i64* %arg2 to i64 %14 = icmp eq i64 %7, 0 br i1 %14, label LBL_5, label LBL_4 LBL_4: %15 = inttoptr i64 %7 to i8* %16 = load i8, i8* %15, align 1 %17 = icmp eq i8 %16, 0 %18 = icmp eq i1 %17, false br i1 %18, label LBL_6, label LBL_5 LBL_5: %19 = call i64 @FUNC(i64 %13, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @gv_3, i64 0, i64 0), i64 48, i64 %3, i64 %2, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_29 LBL_6: %sv_1.0.reload = load i8*, i8** %sv_1.0.reg2mem %20 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_4, i64 0, i64 0), i64 0) %21 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_5, i64 0, i64 0), i64 0) %22 = bitcast i64* %sv_2 to %addrinfo* %23 = call i32 @getaddrinfo(i8* %sv_1.0.reload, i8* nonnull %15, %addrinfo* nonnull %22, %addrinfo** nonnull %sv_4) %24 = icmp eq i32 %23, 0 br i1 %24, label LBL_8, label LBL_7 LBL_7: %25 = call i8* @gai_strerror(i32 %23) %26 = ptrtoint i8* %25 to i64 %27 = ptrtoint i8* %sv_1.0.reload to i64 %28 = call i64 @FUNC(i64 %13, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_6, i64 0, i64 0), i64 %27, i64 %7, i64 %26, i64 %1) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_29 LBL_8: %29 = call i64* @memset(i64* nonnull %sv_2, i32 0, i32 48) store i64 1, i64* %sv_2, align 8 %30 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_7, i64 0, i64 0)) %31 = call i64 @FUNC(i64 %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @gv_8, i64 0, i64 0)) %32 = icmp eq i64 %30, 0 br i1 %32, label LBL_10, label LBL_9 LBL_9: %33 = inttoptr i64 %30 to i8* %34 = load i8, i8* %33, align 1 %35 = icmp eq i8 %34, 0 %36 = icmp eq i1 %35, false store i8* %33, i8** %sv_1.1.reg2mem br i1 %36, label LBL_11, label LBL_10 LBL_10: store i8* null, i8** %sv_1.1.reg2mem br label LBL_11 LBL_11: %sv_1.1.reload = load i8*, i8** %sv_1.1.reg2mem %37 = icmp eq i64 %31, 0 br i1 %37, label LBL_13, label LBL_12 LBL_12: %38 = inttoptr i64 %31 to i8* %39 = load i8, i8* %38, align 1 %40 = icmp eq i8 %39, 0 %41 = icmp eq i1 %40, false store i8* %38, i8** %sv_0.0.reg2mem br i1 %41, label LBL_14, label LBL_13 LBL_13: store i8* bitcast (i8** @gv_9 to i8*), i8** %sv_0.0.reg2mem br label LBL_14 LBL_14: %sv_0.0.reload = load i8*, i8** %sv_0.0.reg2mem %42 = call i32 @getaddrinfo(i8* %sv_1.1.reload, i8* nonnull %sv_0.0.reload, %addrinfo* nonnull %22, %addrinfo** nonnull %sv_3) %43 = icmp eq i32 %42, 0 br i1 %43, label LBL_16, label LBL_15 LBL_15: %44 = call i8* @gai_strerror(i32 %42) %45 = ptrtoint i8* %44 to i64 %46 = ptrtoint i8* %sv_0.0.reload to i64 %47 = ptrtoint i8* %sv_1.1.reload to i64 %48 = call i64 @FUNC(i64 %13, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_6, i64 0, i64 0), i64 %47, i64 %46, i64 %45, i64 %1) br label LBL_25 LBL_16: %49 = load %addrinfo*, %addrinfo** %sv_4, align 8 %50 = ptrtoint %addrinfo* %49 to i64 %51 = add i64 %50, 12 %52 = inttoptr i64 %51 to i32* %53 = load i32, i32* %52, align 4 %54 = add i64 %50, 8 %55 = inttoptr i64 %54 to i32* %56 = load i32, i32* %55, align 4 %57 = add i64 %50, 4 %58 = inttoptr i64 %57 to i32* %59 = load i32, i32* %58, align 4 %60 = zext i32 %56 to i64 %61 = zext i32 %59 to i64 %62 = call i64 @FUNC(i64 %61, i64 %60, i32 %53) %63 = trunc i64 %62 to i32 %64 = icmp slt i32 %63, 0 %65 = icmp eq i1 %64, false br i1 %65, label LBL_18, label LBL_17 LBL_17: %66 = call i32* @__errno_location() %67 = load i32, i32* %66, align 4 %68 = zext i32 %67 to i64 %69 = call i64 @FUNC(i64 %13, i64 %68, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @gv_10, i64 0, i64 0), i32 %67, i64 %2, i64 %1) br label LBL_23 LBL_18: %70 = and i64 %62, 4294967295 %71 = call i64 @FUNC(i64 %70) %72 = load %addrinfo*, %addrinfo** %sv_3, align 8 %73 = ptrtoint %addrinfo* %72 to i64 %74 = add i64 %73, 16 %75 = inttoptr i64 %74 to i32* %76 = load i32, i32* %75, align 4 %77 = add i64 %73, 24 %78 = inttoptr i64 %77 to i64* %79 = load i64, i64* %78, align 8 %80 = inttoptr i64 %79 to %sockaddr* %81 = call i32 @bind(i32 %63, %sockaddr* %80, i32 %76) %82 = icmp slt i32 %81, 0 %83 = icmp eq i1 %82, false br i1 %83, label LBL_20, label LBL_19 LBL_19: %84 = call i32* @__errno_location() %85 = load i32, i32* %84, align 4 %86 = zext i32 %85 to i64 %87 = call i64 @FUNC(i64 %13, i64 %86, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @gv_11, i64 0, i64 0), i32 %85, i64 %2, i64 %1) br label LBL_23 LBL_20: %88 = load %addrinfo*, %addrinfo** %sv_4, align 8 %89 = ptrtoint %addrinfo* %88 to i64 %90 = add i64 %89, 16 %91 = inttoptr i64 %90 to i32* %92 = load i32, i32* %91, align 4 %93 = add i64 %89, 24 %94 = inttoptr i64 %93 to i64* %95 = load i64, i64* %94, align 8 %96 = inttoptr i64 %95 to %sockaddr* %97 = call i32 @connect(i32 %63, %sockaddr* %96, i32 %92) %98 = icmp slt i32 %97, 0 %99 = icmp eq i1 %98, false br i1 %99, label LBL_22, label LBL_21 LBL_21: %100 = call i32* @__errno_location() %101 = load i32, i32* %100, align 4 %102 = zext i32 %101 to i64 %103 = call i64 @FUNC(i64 %13, i64 %102, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @gv_12, i64 0, i64 0), i32 %101, i64 %2, i64 %1) br label LBL_23 LBL_22: %104 = load %addrinfo*, %addrinfo** %sv_3, align 8 call void @freeaddrinfo(%addrinfo* %104) %105 = load %addrinfo*, %addrinfo** %sv_4, align 8 call void @freeaddrinfo(%addrinfo* %105) store i64 %70, i64* %rax.0.reg2mem br label LBL_29 LBL_23: %106 = icmp eq i32 %63, -1 br i1 %106, label LBL_25, label LBL_24 LBL_24: %107 = and i64 %62, 4294967295 %108 = call i64 @FUNC(i64 %107) br label LBL_25 LBL_25: %109 = load %addrinfo*, %addrinfo** %sv_3, align 8 %110 = icmp eq %addrinfo* %109, null br i1 %110, label LBL_27, label LBL_26 LBL_26: call void @freeaddrinfo(%addrinfo* nonnull %109) br label LBL_27 LBL_27: %111 = load %addrinfo*, %addrinfo** %sv_4, align 8 %112 = icmp eq %addrinfo* %111, null store i64 4294967295, i64* %rax.0.reg2mem br i1 %112, label LBL_29, label LBL_28 LBL_28: call void @freeaddrinfo(%addrinfo* nonnull %111) store i64 4294967295, i64* %rax.0.reg2mem br label LBL_29 LBL_29: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i8* %sv_0.0.reload, { 1, 0 } uselistorder i8* %sv_1.1.reload, { 1, 0 } uselistorder i64 %31, { 1, 0 } uselistorder i8* %sv_1.0.reload, { 1, 0 } uselistorder i64 %13, { 4, 3, 2, 1, 0, 5 } uselistorder i64 %7, { 0, 2, 1 } uselistorder %addrinfo** %sv_4, { 4, 3, 2, 1, 5, 0 } uselistorder %addrinfo** %sv_3, { 3, 2, 1, 4, 0 } uselistorder i64* %sv_2, { 3, 0, 1, 4, 2 } uselistorder i64 %4, { 1, 0, 2, 3, 4, 5 } uselistorder i64 %2, { 3, 2, 1, 0 } uselistorder i64 %1, { 5, 4, 3, 2, 1, 0 } uselistorder i8** %sv_1.0.reg2mem, { 0, 2, 1 } uselistorder i8** %sv_1.1.reg2mem, { 0, 2, 1 } uselistorder i8** %sv_0.0.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 4, 3, 5 } uselistorder i64* %0, { 2, 1, 0 } uselistorder void (%addrinfo*)* @freeaddrinfo, { 3, 0, 2, 1 } uselistorder i64 (i64, i64, i8*, i32, i64, i64)* @error_setg_errno, { 2, 1, 0 } uselistorder i8* (i32)* @gai_strerror, { 1, 0 } uselistorder i64 (i64, i8*, i64)* @qemu_opt_get_bool, { 1, 0 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @error_setg, { 2, 1, 0 } uselistorder i8 0, { 1, 2, 3, 4, 5, 6, 0 } uselistorder i64 (i64, i8*)* @qemu_opt_get, { 3, 2, 1, 0 } uselistorder i64* (i64*, i32, i32)* @memset, { 1, 0 } uselistorder label LBL_29, { 1, 0, 2, 3, 4 } uselistorder label LBL_25, { 1, 2, 0 } }
1
BinRealVul
bin_attr_nvmem_read_3934
bin_attr_nvmem_read
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64* %arg4, i64 %arg5, i64 %arg6) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 %arg2) %1 = inttoptr i64 %0 to i64* %2 = load i64, i64* %1, align 8 %3 = icmp ugt i64 %2, %arg5 store i64 0, i64* %rax.0.reg2mem br i1 %3, label LBL_1, label LBL_4 LBL_1: %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = icmp ugt i64 %6, %arg6 %8 = icmp eq i1 %7, false store i64 -22, i64* %rax.0.reg2mem br i1 %8, label LBL_2, label LBL_4 LBL_2: %9 = ptrtoint i64* %arg4 to i64 %10 = add i64 %arg6, %arg5 %11 = icmp ugt i64 %10, %2 %12 = sub i64 %2, %arg5 %spec.select = select i1 %11, i64 %12, i64 %arg6 %13 = urem i64 %spec.select, %6 %14 = sub i64 %spec.select, %13 %15 = add i64 %0, 16 %16 = inttoptr i64 %15 to i64* %17 = load i64, i64* %16, align 8 %18 = call i64 @FUNC(i64 %17, i64 %arg5, i64 %9, i64 %14) %19 = trunc i64 %18 to i32 %20 = icmp ult i32 %19, -1000 store i64 %14, i64* %rax.0.reg2mem br i1 %20, label LBL_4, label LBL_3 LBL_3: %sext = mul i64 %18, 4294967296 %21 = ashr exact i64 %sext, 32 store i64 %21, 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, 4, 1, 2, 3 } uselistorder i64 %arg6, { 1, 0, 2 } uselistorder i64 %arg5, { 1, 2, 0, 3 } uselistorder label LBL_4, { 3, 0, 1, 2 } }
0
BinRealVul
avpriv_alloc_fixed_dsp_15299
avpriv_alloc_fixed_dsp
define i64 @FUNC(i64 %arg1) local_unnamed_addr { LBL_0: %0 = call i64 @FUNC(i64 16) %1 = inttoptr i64 %0 to i64* store i64 4198710, i64* %1, align 8 %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i64* store i64 4198717, i64* %3, align 8 ret i64 %0 }
1
BinRealVul
zfs_groupmember_13517
zfs_groupmember
define i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i32 %0 = call i64 @FUNC(i64 %arg3, i64 1) %1 = call i64 @FUNC(i64 %arg3) %2 = icmp eq i64 %0, 0 %3 = icmp eq i64 %1, 0 %or.cond = or i1 %2, %3 br i1 %or.cond, label LBL_10, label LBL_1 LBL_1: %4 = call i64 @FUNC(i64 %arg2) %5 = call i64 @FUNC(i64 %arg2) %6 = add i64 %1, 8 %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_2, label LBL_10 LBL_2: %11 = trunc i64 %5 to i32 %12 = inttoptr i64 %1 to i64* %13 = load i64, i64* %12, align 8 %14 = trunc i64 %4 to i32 %15 = icmp eq i32 %14, 0 %16 = icmp eq i1 %15, false %17 = icmp eq i64 %arg2, 1000 %18 = and i64 %4, 4294967295 store i32 0, i32* %storemerge3.reg2mem br label LBL_3 LBL_3: %storemerge3.reload = load i32, i32* %storemerge3.reg2mem br i1 %16, label LBL_6, label LBL_4 LBL_4: br i1 %17, label LBL_9, label LBL_5 LBL_5: %19 = sext i32 %storemerge3.reload to i64 %20 = mul i64 %19, 16 %21 = add i64 %20, %13 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = zext i32 %23 to i64 %25 = icmp eq i64 %24, %arg2 %26 = icmp eq i1 %25, false store i64 1, i64* %rax.0.reg2mem br i1 %26, label LBL_9, label LBL_11 LBL_6: %27 = call i64 @FUNC(i64 %arg1, i64 %18) %28 = inttoptr i64 %27 to i8* %29 = icmp eq i64 %27, 0 %30 = icmp eq i1 %29, false %31 = zext i1 %30 to i64 %32 = call i64 @FUNC(i64 %31) %33 = call i32 @strcmp(i8* %28, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_0, i64 0, i64 0)) %34 = icmp eq i32 %33, 0 %35 = icmp eq i1 %34, false store i64 0, i64* %rax.0.reg2mem br i1 %35, label LBL_7, label LBL_11 LBL_7: %36 = sext i32 %storemerge3.reload to i64 %37 = mul i64 %36, 16 %38 = add i64 %37, %13 %39 = add i64 %38, 8 %40 = inttoptr i64 %39 to i64* %41 = load i64, i64* %40, align 8 %42 = inttoptr i64 %41 to i64* %43 = load i64, i64* %42, align 8 %44 = inttoptr i64 %43 to i8* %45 = call i32 @strcmp(i8* %28, i8* %44) %46 = icmp eq i32 %45, 0 %47 = icmp eq i1 %46, false br i1 %47, label LBL_9, label LBL_8 LBL_8: %48 = add i64 %38, 4 %49 = inttoptr i64 %48 to i32* %50 = load i32, i32* %49, align 4 %51 = icmp eq i32 %50, %11 %52 = icmp eq i1 %51, false store i64 1, i64* %rax.0.reg2mem br i1 %52, label LBL_9, label LBL_11 LBL_9: %53 = add i32 %storemerge3.reload, 1 %54 = load i32, i32* %7, align 4 %55 = icmp eq i32 %53, %54 %56 = icmp eq i1 %55, false store i32 %53, i32* %storemerge3.reg2mem br i1 %56, label LBL_3, label LBL_10 LBL_10: %57 = call i64 @FUNC(i64 %arg1, i64 %arg2, i64 %arg3, i64 1) %58 = and i64 %57, 4294967295 %59 = call i64 @FUNC(i64 %58, i64 %arg3) store i64 %59, i64* %rax.0.reg2mem br label LBL_11 LBL_11: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %27, { 1, 0 } uselistorder i32* %7, { 1, 0 } uselistorder i64 %1, { 1, 0, 2 } uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 4, 1, 2, 3 } uselistorder i1 false, { 7, 1, 2, 3, 4, 5, 6, 0, 8 } uselistorder i64 1, { 2, 0, 1, 3 } uselistorder i32 1, { 5, 2, 1, 3, 4, 0 } uselistorder i64 %arg3, { 1, 0, 2, 3 } uselistorder i64 %arg2, { 4, 0, 1, 3, 2 } uselistorder i64 %arg1, { 1, 0 } uselistorder label LBL_11, { 3, 0, 1, 2 } uselistorder label LBL_3, { 1, 0 } }
0
BinRealVul
png_build_grayscale_palette_8864
png_build_grayscale_palette
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i32 %indvars.iv.reg2mem = alloca i64 %sv_0.0.ph.reg2mem = alloca i32 %sv_1.0.ph.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 1, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @gv_0, i64 0, i64 0)) %1 = icmp eq i64 %arg2, 0 store i64 %0, i64* %rax.0.reg2mem br i1 %1, label LBL_9, label LBL_1 LBL_1: %2 = trunc i64 %arg1 to i32 %3 = icmp eq i32 %2, 8 store i64 256, i64* %sv_1.0.ph.reg2mem store i32 1, i32* %sv_0.0.ph.reg2mem br i1 %3, label LBL_7, label LBL_2 LBL_2: %4 = icmp sgt i32 %2, 8 store i64 0, i64* %rax.0.reg2mem br i1 %4, label LBL_9, label LBL_3 LBL_3: %5 = icmp eq i32 %2, 4 store i64 16, i64* %sv_1.0.ph.reg2mem store i32 17, i32* %sv_0.0.ph.reg2mem br i1 %5, label LBL_7, label LBL_4 LBL_4: %6 = icmp sgt i32 %2, 4 store i64 0, i64* %rax.0.reg2mem br i1 %6, label LBL_9, label LBL_5 LBL_5: store i64 2, i64* %sv_1.0.ph.reg2mem store i32 255, i32* %sv_0.0.ph.reg2mem store i64 0, i64* %rax.0.reg2mem switch i32 %2, label LBL_9 [ i32 1, label LBL_7 i32 2, label LBL_6 ] LBL_6: store i64 4, i64* %sv_1.0.ph.reg2mem store i32 85, i32* %sv_0.0.ph.reg2mem br label LBL_7 LBL_7: %sv_0.0.ph.reload = load i32, i32* %sv_0.0.ph.reg2mem %sv_1.0.ph.reload = load i64, i64* %sv_1.0.ph.reg2mem store i64 0, i64* %indvars.iv.reg2mem store i32 0, i32* %storemerge3.reg2mem br label LBL_8 LBL_8: %storemerge3.reload = load i32, i32* %storemerge3.reg2mem %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %7 = mul nuw nsw i64 %indvars.iv.reload, 3 %8 = add i64 %7, %arg2 %9 = trunc i32 %storemerge3.reload to i8 %10 = inttoptr i64 %8 to i8* store i8 %9, i8* %10, align 1 %11 = add i64 %8, 1 %12 = inttoptr i64 %11 to i8* store i8 %9, i8* %12, align 1 %13 = add i64 %8, 2 %14 = inttoptr i64 %13 to i8* store i8 %9, i8* %14, align 1 %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %15 = add nuw nsw i32 %storemerge3.reload, %sv_0.0.ph.reload %exitcond = icmp eq i64 %indvars.iv.next, %sv_1.0.ph.reload store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i32 %15, i32* %storemerge3.reg2mem store i64 %sv_1.0.ph.reload, i64* %rax.0.reg2mem br i1 %exitcond, label LBL_9, label LBL_8 LBL_9: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %storemerge3.reload, { 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 } uselistorder i64 2, { 1, 0 } uselistorder i32 4, { 1, 0 } uselistorder i32 8, { 1, 0 } uselistorder i64 1, { 0, 2, 1 } uselistorder i32 1, { 7, 4, 6, 5, 3, 2, 1, 0 } uselistorder label LBL_9, { 0, 3, 2, 1, 4 } }
0
BinRealVul
virtio_net_add_queue_3497
virtio_net_add_queue
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 %sext = mul i64 %arg2, 4294967296 %3 = ashr exact i64 %sext, 32 %4 = add i64 %2, 16 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = ashr exact i64 %sext, 31 %8 = add nsw i64 %7, %3 %9 = mul i64 %8, 16 %10 = add i64 %6, %9 %11 = and i64 %1, 4294967295 %12 = call i64 @FUNC(i64 %2, i64 %11, i64 4198757) %13 = inttoptr i64 %10 to i64* store i64 %12, i64* %13, align 8 %14 = add i64 %2, 8 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = icmp eq i64 %16, 0 br i1 %17, label LBL_3, label LBL_1 LBL_1: %18 = inttoptr i64 %16 to i8* %19 = call i32 @strcmp(i8* %18, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_0, i64 0, i64 0)) %20 = icmp eq i32 %19, 0 %21 = icmp eq i1 %20, false br i1 %21, label LBL_3, label LBL_2 LBL_2: %22 = load i64, i64* %5, align 8 %23 = call i64 @FUNC(i64 %2, i64 256, i64 4198764) %24 = or i64 %9, 8 %25 = add i64 %22, %24 %26 = inttoptr i64 %25 to i64* store i64 %23, i64* %26, align 8 %27 = load i64, i64* %5, align 8 %28 = add i64 %27, %9 %29 = call i64 @FUNC(i64 0, i64 4198778, i64 %28) %30 = add i64 %28, 16 %31 = inttoptr i64 %30 to i64* store i64 %29, i64* %31, align 8 br label LBL_4 LBL_3: %32 = load i64, i64* %5, align 8 %33 = call i64 @FUNC(i64 %2, i64 256, i64 4198771) %34 = or i64 %9, 8 %35 = add i64 %32, %34 %36 = inttoptr i64 %35 to i64* store i64 %33, i64* %36, align 8 %37 = load i64, i64* %5, align 8 %38 = add i64 %37, %9 %39 = call i64 @FUNC(i64 4198785, i64 %38) %40 = add i64 %38, 24 %41 = inttoptr i64 %40 to i64* store i64 %39, i64* %41, align 8 br label LBL_4 LBL_4: %42 = load i64, i64* %5, align 8 %43 = add nsw i64 %9, 32 %44 = add i64 %43, %42 %45 = inttoptr i64 %44 to i32* store i32 0, i32* %45, align 4 %46 = load i64, i64* %5, align 8 %47 = add nsw i64 %9, 40 %48 = add i64 %47, %46 %49 = inttoptr i64 %48 to i64* store i64 %2, i64* %49, align 8 ret i64 %2 uselistorder i64 %9, { 1, 0, 6, 3, 5, 2, 4 } uselistorder i64* %5, { 2, 3, 4, 5, 0, 1, 6 } uselistorder i64 %sext, { 1, 0 } uselistorder i64 %2, { 2, 1, 3, 0, 4, 5, 6 } uselistorder i64 (i64, i64, i64)* @virtio_add_queue, { 2, 1, 0 } uselistorder i64 16, { 1, 0, 2 } }
0
BinRealVul
virtio_balloon_receive_stats_15067
virtio_balloon_receive_stats
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.0.lcssa.reg2mem = alloca i64 %sv_0.03.reg2mem = alloca i64 %1 = ptrtoint i64* %arg2 to i64 %2 = ptrtoint i64* %arg1 to i64 %sv_1 = alloca i64, align 8 %3 = load i64, i64* %0 %sv_2 = alloca i32, align 4 %4 = call i64 @FUNC(i64 %2) %5 = call i64 @FUNC(i64 %1, i64 16) %6 = add i64 %4, 2072 %7 = inttoptr i64 %6 to i64* store i64 %5, i64* %7, align 8 %8 = icmp eq i64 %5, 0 br i1 %8, label LBL_9, label LBL_1 LBL_1: %9 = call i64 @FUNC(i64 %4) %10 = add i64 %5, 8 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = inttoptr i64 %5 to i64* %14 = load i64, i64* %13, align 8 %15 = bitcast i32* %sv_2 to i16* %16 = call i64 @FUNC(i64 %14, i64 %12, i64 0, i16* nonnull %15, i64 16) %17 = icmp eq i64 %16, 16 store i64 0, i64* %sv_0.0.lcssa.reg2mem br i1 %17, label LBL_2, label LBL_6 LBL_2: %18 = add i64 %4, 24 store i64 0, i64* %sv_0.03.reg2mem br label LBL_3 LBL_3: %sv_0.03.reload = load i64, i64* %sv_0.03.reg2mem %19 = load i32, i32* %sv_2, align 4 %20 = urem i32 %19, 65536 %21 = zext i32 %20 to i64 %22 = call i64 @FUNC(i64 %2, i64 %21) %23 = trunc i64 %22 to i16 %24 = call i64 @FUNC(i64 %2, i64 %3) %25 = icmp ult i16 %23, 256 br i1 %25, label LBL_4, label LBL_5 LBL_4: %26 = mul i64 %22, 8 %27 = and i64 %26, 524280 %28 = add i64 %18, %27 %29 = inttoptr i64 %28 to i64* store i64 %24, i64* %29, align 8 br label LBL_5 LBL_5: %30 = add i64 %sv_0.03.reload, 16 %31 = load i64, i64* %11, align 8 %32 = load i64, i64* %13, align 8 %33 = call i64 @FUNC(i64 %32, i64 %31, i64 %30, i16* nonnull %15, i64 16) %34 = icmp eq i64 %33, 16 store i64 %30, i64* %sv_0.03.reg2mem store i64 %30, i64* %sv_0.0.lcssa.reg2mem br i1 %34, label LBL_3, label LBL_6 LBL_6: %sv_0.0.lcssa.reload = load i64, i64* %sv_0.0.lcssa.reg2mem %35 = add i64 %4, 16 %36 = inttoptr i64 %35 to i64* store i64 %sv_0.0.lcssa.reload, i64* %36, align 8 %37 = call i64 @FUNC(i64* nonnull %sv_1) %38 = trunc i64 %37 to i32 %39 = icmp slt i32 %38, 0 %40 = icmp eq i1 %39, false br i1 %40, label LBL_8, label LBL_7 LBL_7: %41 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %42 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %41, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_2, i64 0, i64 0)) br label LBL_9 LBL_8: %43 = load i64, i64* %sv_1, align 8 %44 = add i64 %4, 8 %45 = inttoptr i64 %44 to i64* store i64 %43, i64* %45, align 8 br label LBL_9 LBL_9: %46 = call i64 @FUNC(i64 %4) %47 = trunc i64 %46 to i32 %48 = icmp eq i32 %47, 0 store i64 %46, i64* %rax.0.reg2mem br i1 %48, label LBL_11, label LBL_10 LBL_10: %49 = inttoptr i64 %4 to i64* %50 = load i64, i64* %49, align 8 %51 = call i64 @FUNC(i64 %4, i64 %50) store i64 %51, 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 i16* %15, { 1, 0 } uselistorder i64* %13, { 1, 0 } uselistorder i64* %11, { 1, 0 } uselistorder i64 %5, { 1, 0, 3, 2 } uselistorder i64 %4, { 5, 4, 6, 1, 2, 0, 3, 7 } uselistorder i64* %sv_1, { 1, 0 } uselistorder i64* %sv_0.03.reg2mem, { 1, 0, 2 } uselistorder i64 (i64, i64, i64, i16*, i64)* @iov_to_buf, { 1, 0 } uselistorder i64 8, { 2, 0, 3, 4, 5, 1 } uselistorder i64 16, { 6, 2, 3, 5, 0, 1, 4 } uselistorder label LBL_9, { 1, 2, 0 } uselistorder label LBL_3, { 1, 0 } }
1
BinRealVul
fcrypt_decrypt_9913
fcrypt_decrypt
define i64 @FUNC(i64* %arg1, i64* %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i32 %1 = ptrtoint i64* %arg3 to i64 %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i64* %arg1 to i64 %4 = load i32, i32* %0 %5 = call i64 @FUNC(i64 %3) %6 = trunc i64 %1 to i32 %7 = add i64 %5, 60 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = add i64 %5, 56 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = add i64 %5, 48 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = add i64 %5, 44 %17 = inttoptr i64 %16 to i32* %18 = load i32, i32* %17, align 4 %19 = add i64 %5, 36 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = add i64 %5, 32 %23 = inttoptr i64 %22 to i32* %24 = load i32, i32* %23, align 4 %25 = add i64 %5, 24 %26 = inttoptr i64 %25 to i32* %27 = load i32, i32* %26, align 4 %28 = add i64 %5, 20 %29 = inttoptr i64 %28 to i32* %30 = load i32, i32* %29, align 4 %31 = add i64 %5, 12 %32 = inttoptr i64 %31 to i32* %33 = load i32, i32* %32, align 4 %34 = add i64 %5, 8 %35 = inttoptr i64 %34 to i32* %36 = load i32, i32* %35, align 4 %37 = inttoptr i64 %5 to i32* %38 = load i32, i32* %37, align 4 %39 = xor i32 %4, %6 %40 = xor i32 %39, %9 %41 = xor i32 %40, %12 %42 = xor i32 %41, %15 %43 = xor i32 %42, %18 %44 = xor i32 %43, %21 %45 = xor i32 %44, %24 %46 = xor i32 %45, %27 %47 = xor i32 %46, %30 %48 = xor i32 %47, %33 %49 = xor i32 %48, %36 %50 = xor i32 %49, %38 %51 = sext i32 %50 to i64 store i64 %51, i64* %arg2, align 8 ret i64 %2 }
0
BinRealVul
util_path_encode_11886
util_path_encode
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sv_0.1.lcssa.reg2mem = alloca i64 %.reg2mem3 = alloca i64 %sv_0.0.reg2mem = alloca i64 %sv_1.01.reg2mem = alloca i64 %sv_0.12.reg2mem = alloca i64 %.reg2mem = alloca i8 %0 = ptrtoint i64* %arg1 to i64 %sv_2 = alloca i64, align 8 %1 = ptrtoint i64* %sv_2 to i64 store i64 %arg2, i64* %sv_2, align 8 %2 = mul i64 %arg2, 3 %3 = add i64 %2, 16 %4 = udiv i64 %3, 16 %5 = mul i64 %4, 16 %6 = sub i64 %1, %5 %7 = bitcast i64* %arg1 to i8* %8 = load i8, i8* %7, align 1 %9 = icmp eq i8 %8, 0 %10 = icmp eq i1 %9, false store i8 %8, i8* %.reg2mem store i64 0, i64* %sv_0.12.reg2mem store i64 0, i64* %sv_1.01.reg2mem store i64 %arg2, i64* %.reg2mem3 store i64 0, i64* %sv_0.1.lcssa.reg2mem br i1 %10, label LBL_1, label LBL_8 LBL_1: %sv_1.01.reload = load i64, i64* %sv_1.01.reg2mem %sv_0.12.reload = load i64, i64* %sv_0.12.reg2mem %.reload = load i8, i8* %.reg2mem %11 = icmp eq i8 %.reload, 47 %12 = icmp eq i1 %11, false br i1 %12, label LBL_3, label LBL_2 LBL_2: %13 = add i64 %sv_0.12.reload, %6 %14 = inttoptr i64 %13 to i64* %15 = call i64* @memcpy(i64* %14, i64* bitcast ([5 x i8]* @gv_0 to i64*), i32 4) %16 = add i64 %sv_0.12.reload, 4 store i64 %16, i64* %sv_0.0.reg2mem br label LBL_6 LBL_3: %17 = icmp eq i8 %.reload, 92 %18 = icmp eq i1 %17, false %19 = add i64 %sv_0.12.reload, %6 br i1 %18, label LBL_5, label LBL_4 LBL_4: %20 = inttoptr i64 %19 to i64* %21 = call i64* @memcpy(i64* %20, i64* bitcast ([5 x i8]* @gv_1 to i64*), i32 4) %22 = add i64 %sv_0.12.reload, 4 store i64 %22, i64* %sv_0.0.reg2mem br label LBL_6 LBL_5: %23 = inttoptr i64 %19 to i8* store i8 %.reload, i8* %23, align 1 %24 = add i64 %sv_0.12.reload, 1 store i64 %24, i64* %sv_0.0.reg2mem br label LBL_6 LBL_6: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %25 = add i64 %sv_1.01.reload, 1 %26 = add i64 %25, %0 %27 = inttoptr i64 %26 to i8* %28 = load i8, i8* %27, align 1 %29 = icmp eq i8 %28, 0 %30 = icmp eq i1 %29, false store i8 %28, i8* %.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.12.reg2mem store i64 %25, i64* %sv_1.01.reg2mem br i1 %30, label LBL_1, label LBL_7 LBL_7: %.pre = load i64, i64* %sv_2, align 8 store i64 %.pre, i64* %.reg2mem3 store i64 %sv_0.0.reload, i64* %sv_0.1.lcssa.reg2mem br label LBL_8 LBL_8: %sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem %.reload4 = load i64, i64* %.reg2mem3 %31 = icmp eq i64 %.reload4, 0 %32 = icmp eq i1 %31, false br i1 %32, label LBL_9, label LBL_10 LBL_9: %33 = add i64 %.reload4, -1 %34 = icmp ugt i64 %sv_0.1.lcssa.reload, %33 %35 = select i1 %34, i64 %33, i64 %sv_0.1.lcssa.reload %36 = inttoptr i64 %6 to i64* %37 = trunc i64 %35 to i32 %38 = call i64* @memcpy(i64* %arg1, i64* %36, i32 %37) %39 = add i64 %35, %0 %40 = inttoptr i64 %39 to i8* store i8 0, i8* %40, align 1 br label LBL_10 LBL_10: ret i64 %sv_0.1.lcssa.reload uselistorder i64 %sv_0.1.lcssa.reload, { 0, 2, 1 } uselistorder i64 %19, { 1, 0 } uselistorder i64 %sv_0.12.reload, { 2, 1, 4, 0, 3 } uselistorder i64 %6, { 2, 0, 1 } uselistorder i8* %.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.12.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_1.01.reg2mem, { 2, 0, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 2, 1 } uselistorder i64* %.reg2mem3, { 0, 2, 1 } uselistorder i64* %sv_0.1.lcssa.reg2mem, { 0, 2, 1 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 0, 2, 1 } uselistorder i1 false, { 3, 4, 1, 2, 0 } uselistorder i8 0, { 1, 2, 0 } uselistorder i64* %arg1, { 1, 0, 2 } uselistorder label LBL_10, { 1, 0 } uselistorder label LBL_1, { 1, 0 } }
1
BinRealVul
lance_init_2140
lance_init
define i64 @FUNC(i32* %arg1, i64 %arg2, i64 %arg3, i64 %arg4) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %0 = call i64 @FUNC(i64 24) %1 = icmp eq i64 %0, 0 store i64 0, i64* %rax.0.reg2mem br i1 %1, label LBL_2, label LBL_1 LBL_1: %2 = and i64 %arg3, 4294967295 %3 = inttoptr i64 %0 to i32* %4 = and i64 %arg4, 4294967295 %5 = trunc i64 %arg2 to i32 store i32 %5, i32* %3, align 4 %6 = load i64, i64* @gv_0, align 8 %7 = load i64, i64* @gv_1, align 8 %8 = call i64 @FUNC(i64 0, i64 %7, i64 %6, i64 %0) %9 = trunc i64 %8 to i32 %10 = call i64 @FUNC(i64 %2, i64 4, i32 %9) %11 = load i64, i64* @gv_2, align 8 %12 = load i64, i64* @gv_3, align 8 %13 = call i64 @FUNC(i64 0, i64 %12, i64 %11, i64 %0) %14 = trunc i64 %13 to i32 %15 = call i64 @FUNC(i64 %4, i64 16, i32 %14) %16 = add i64 %0, 4 %17 = inttoptr i64 %16 to i64* %18 = bitcast i32* %arg1 to i64* %19 = call i64* @memcpy(i64* %17, i64* %18, i32 6) %20 = call i64 @FUNC(i64 %0) %21 = load i64, i64* @gv_4, align 8 %22 = load i64, i64* @gv_5, align 8 %23 = ptrtoint i32* %arg1 to i64 %24 = add i64 %23, 8 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = zext i32 %26 to i64 %28 = call i64 @FUNC(i64 %27, i64 %22, i64 %21, i64 %0) %29 = add i64 %0, 16 %30 = inttoptr i64 %29 to i64* store i64 %28, i64* %30, align 8 %31 = add i64 %0, 9 %32 = inttoptr i64 %31 to i8* %33 = load i8, i8* %32, align 1 %34 = add i64 %0, 8 %35 = inttoptr i64 %34 to i8* %36 = load i8, i8* %35, align 1 %37 = add i64 %0, 7 %38 = inttoptr i64 %37 to i8* %39 = load i8, i8* %38, align 1 %40 = add i64 %0, 6 %41 = inttoptr i64 %40 to i8* %42 = load i8, i8* %41, align 1 %43 = add i64 %0, 5 %44 = inttoptr i64 %43 to i8* %45 = load i8, i8* %44, align 1 %46 = inttoptr i64 %16 to i8* %47 = load i8, i8* %46, align 1 %48 = zext i8 %33 to i32 %49 = zext i8 %36 to i32 %50 = zext i8 %39 to i32 %51 = zext i8 %47 to i32 %52 = inttoptr i64 %28 to i8* %53 = zext i8 %45 to i32 %54 = zext i8 %42 to i32 %55 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %52, i32 64, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @gv_6, i64 0, i64 0), i32 %51, i32 %53, i32 %54, i32 %50, i32 %49, i32 %48) %56 = load i64, i64* @gv_7, align 8 %57 = load i64, i64* @gv_8, align 8 %58 = call i64 @FUNC(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @gv_9, i64 0, i64 0), i64 %2, i64 1, i64 %57, i64 %56, i64 %0) %59 = call i64 @FUNC(i64 4198815, i64 %0) store i64 %59, 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 16, { 1, 0 } uselistorder i64 (i64, i64, i32)* @cpu_register_physical_memory, { 1, 0 } uselistorder i64 4, { 1, 0 } uselistorder i64 (i64, i64, i64, i64)* @cpu_register_io_memory, { 1, 0 } uselistorder i64 4294967295, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
ftp_alloc_8857
ftp_alloc
define i64 @FUNC(i64* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %sv_0 = alloca i64, align 8 %2 = icmp eq i64* %arg1, null br i1 %2, label LBL_7, label LBL_1 LBL_1: %3 = icmp eq i64 %arg2, 0 %4 = icmp slt i64 %arg2, 0 %5 = icmp eq i1 %4, false %6 = icmp eq i1 %3, false %7 = icmp eq i1 %5, %6 br i1 %7, label LBL_2, label LBL_7 LBL_2: %8 = ptrtoint i64* %arg1 to i64 %9 = bitcast i64* %sv_0 to i8* %10 = trunc i64 %arg2 to i32 %11 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %9, i32 63, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_0, i64 0, i64 0), i32 %10) %12 = call i64 @FUNC(i64 %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @gv_1, i64 0, i64 0), i64* nonnull %sv_0) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false br i1 %15, label LBL_3, label LBL_7 LBL_3: %16 = call i64 @FUNC(i64 %8) %17 = trunc i64 %16 to i32 %18 = icmp eq i32 %17, 0 %19 = icmp eq i1 %18, false br i1 %19, label LBL_4, label LBL_7 LBL_4: %20 = icmp eq i64* %arg3, null br i1 %20, label LBL_6, label LBL_5 LBL_5: %21 = add i64 %8, 4 %22 = call i64 @FUNC(i64 %21) store i64 %22, i64* %arg3, align 8 br label LBL_6 LBL_6: %23 = trunc i64 %1 to i32 %.off = add i32 %23, -200 %24 = icmp ult i32 %.off, 100 %spec.select = zext i1 %24 to i64 ret i64 %spec.select LBL_7: ret i64 0 uselistorder i1 false, { 1, 2, 3, 0 } uselistorder i64 %arg2, { 2, 1, 0 } uselistorder i64* %arg1, { 1, 0 } uselistorder label LBL_7, { 0, 1, 3, 2 } }
0
BinRealVul
bfi_decode_init_15263
bfi_decode_init
define i64 @FUNC(i32* %arg1) local_unnamed_addr { LBL_0: %rdi = alloca i64, align 8 %0 = ptrtoint i32* %arg1 to i64 %1 = add i64 %0, 16 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i32* store i32 1, i32* %5, align 4 %6 = bitcast i64* %rdi to i32* %7 = load i32, i32* %6, align 8 %8 = add i64 %0, 4 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = mul i32 %10, %7 %12 = call i64* @calloc(i32 1, i32 %11) %13 = ptrtoint i64* %12 to i64 %14 = inttoptr i64 %3 to i64* store i64 %13, i64* %14, align 8 ret i64 0 }
1
BinRealVul
init_busid_table_13347
init_busid_table
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = call i64* @memset(i64* nonnull @gv_0, i32 0, i32 1024) %1 = call i64 @FUNC(i64* nonnull @gv_1) ret i64 %1 }
1
BinRealVul
virtio_scsi_init_2913
virtio_scsi_init
define i64 @FUNC(i32* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge2.reg2mem = alloca i32 %.reg2mem = alloca i64 %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i32* %arg1 to i64 %sext = mul i64 %1, 4294967296 %4 = ashr exact i64 %sext, 29 %5 = add nsw i64 %4, 80 %6 = call i64 @FUNC(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 2, i64 4, i64 %5) %7 = add i64 %6, 32 %8 = inttoptr i64 %7 to i64* store i64 %3, i64* %8, align 8 %9 = add i64 %6, 40 %10 = inttoptr i64 %9 to i64* store i64 %2, i64* %10, align 8 %11 = inttoptr i64 %6 to i64* store i64 4198747, i64* %11, align 8 %12 = add i64 %6, 8 %13 = inttoptr i64 %12 to i64* store i64 4198754, i64* %13, align 8 %14 = add i64 %6, 16 %15 = inttoptr i64 %14 to i64* store i64 4198761, i64* %15, align 8 %16 = add i64 %6, 24 %17 = inttoptr i64 %16 to i64* store i64 4198768, i64* %17, align 8 %18 = call i64 @FUNC(i64 %6, i64 128, i64 4198868) %19 = add i64 %6, 64 %20 = inttoptr i64 %19 to i64* store i64 %18, i64* %20, align 8 %21 = call i64 @FUNC(i64 %6, i64 128, i64 4198875) %22 = add i64 %6, 72 %23 = inttoptr i64 %22 to i64* store i64 %21, i64* %23, align 8 %24 = load i64, i64* %10, align 8 %25 = inttoptr i64 %24 to i32* %26 = load i32, i32* %25, align 4 %27 = icmp eq i32 %26, 0 br i1 %27, label LBL_3, label LBL_1 LBL_1: %28 = add i64 %6, 48 store i64 0, i64* %.reg2mem store i32 0, i32* %storemerge2.reg2mem br label LBL_2 LBL_2: %storemerge2.reload = load i32, i32* %storemerge2.reg2mem %.reload = load i64, i64* %.reg2mem %29 = call i64 @FUNC(i64 %6, i64 128, i64 4198882) %30 = mul i64 %.reload, 8 %31 = add i64 %28, %30 %32 = inttoptr i64 %31 to i64* store i64 %29, i64* %32, align 8 %33 = add i32 %storemerge2.reload, 1 %34 = load i64, i64* %10, align 8 %35 = inttoptr i64 %34 to i32* %36 = load i32, i32* %35, align 4 %37 = zext i32 %36 to i64 %38 = sext i32 %33 to i64 %39 = icmp slt i64 %38, %37 store i64 %38, i64* %.reg2mem store i32 %33, i32* %storemerge2.reg2mem br i1 %39, label LBL_2, label LBL_3 LBL_3: %40 = add i64 %6, 56 %41 = call i64 @FUNC(i64 %40, i64 %3, i64* nonnull @gv_1) %42 = bitcast i64* %rdi to i32* %43 = load i32, i32* %42, align 8 %44 = icmp eq i32 %43, 0 %45 = icmp eq i1 %44, false br i1 %45, label LBL_5, label LBL_4 LBL_4: %46 = call i64 @FUNC(i64 %40) br label LBL_5 LBL_5: %47 = load i32, i32* @gv_2, align 4 store i32 ptrtoint (i64* @gv_3 to i32), i32* @gv_2, align 4 %48 = zext i32 %47 to i64 %49 = call i64 @FUNC(i64 %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_0, i64 0, i64 0), i64 %48, i64 1, i64 4198889, i64 4198900) ret i64 %6 uselistorder i64* %10, { 1, 0, 2 } uselistorder i64 %6, { 1, 2, 3, 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 } uselistorder i64* %.reg2mem, { 1, 0, 2 } uselistorder i32* %storemerge2.reg2mem, { 1, 0, 2 } uselistorder i32* @gv_2, { 1, 0 } uselistorder i64 (i64, i64, i64)* @virtio_add_queue, { 2, 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
direct_page_fault_13218
direct_page_fault
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.shrunk.reg2mem = alloca i64 %sv_0.01.reg2mem = alloca i64 %sv_0.02.reg2mem = alloca i64 %.reg2mem5 = alloca i64 %sv_0.04.reg2mem = alloca i64 %.reg2mem = alloca i64 %sv_0.0.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg2 to i64 %3 = ptrtoint i64* %arg1 to i64 %4 = and i64 %1, 4294967295 %5 = call i64 @FUNC(i64 %4) %6 = udiv i64 %2, 4096 %7 = add i64 %2, 8 %8 = inttoptr i64 %7 to i64* store i64 %6, i64* %8, align 8 %9 = call i64 @FUNC(i64 %3, i64 %6) %10 = add i64 %2, 16 %11 = inttoptr i64 %10 to i64* store i64 %9, i64* %11, align 8 %12 = call i64 @FUNC(i64 %3, i64 %2) %13 = trunc i64 %12 to i32 %14 = icmp eq i32 %13, 0 store i64 1, i64* %rax.0.shrunk.reg2mem br i1 %14, label LBL_1, label LBL_17 LBL_1: %15 = call i64 @FUNC(i64 %3, i64 %2) %16 = trunc i64 %15 to i32 %17 = icmp eq i32 %16, -1 store i64 %15, i64* %rax.0.shrunk.reg2mem br i1 %17, label LBL_2, label LBL_17 LBL_2: %18 = call i64 @FUNC(i64 %3, i64 0) %19 = trunc i64 %18 to i32 %20 = icmp eq i32 %19, 0 store i64 %18, i64* %rax.0.shrunk.reg2mem br i1 %20, label LBL_3, label LBL_17 LBL_3: %21 = add i64 %3, 8 %22 = inttoptr i64 %21 to i64* %23 = load i64, i64* %22, align 8 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 %26 = call i64 @FUNC() %27 = call i64 @FUNC(i64 %3, i64 %2) %28 = trunc i64 %27 to i32 %29 = icmp eq i32 %28, 0 store i64 %27, i64* %rax.0.shrunk.reg2mem br i1 %29, label LBL_4, label LBL_17 LBL_4: %30 = call i64 @FUNC(i64 %3, i64 %2, i64 0) %31 = trunc i64 %30 to i32 %32 = icmp eq i32 %31, 0 store i64 %30, i64* %rax.0.shrunk.reg2mem br i1 %32, label LBL_5, label LBL_17 LBL_5: %33 = trunc i64 %5 to i8 %34 = icmp eq i8 %33, 0 %35 = load i64, i64* %22, align 8 %36 = add i64 %35, 8 br i1 %34, label LBL_7, label LBL_6 LBL_6: %37 = call i64 @FUNC(i64 %36) br label LBL_8 LBL_7: %38 = call i64 @FUNC(i64 %36) br label LBL_8 LBL_8: %39 = call i64 @FUNC(i64 %3, i64 %2, i64 %25) %40 = trunc i64 %39 to i8 %41 = icmp eq i8 %40, 0 %42 = icmp eq i1 %41, false store i64 2, i64* %sv_0.0.reg2mem br i1 %42, label LBL_13, label LBL_9 LBL_9: %43 = call i64 @FUNC(i64 %3) %44 = trunc i64 %43 to i32 %45 = icmp eq i32 %44, 0 %46 = icmp eq i1 %45, false store i64 %43, i64* %sv_0.0.reg2mem br i1 %46, label LBL_13, label LBL_10 LBL_10: br i1 %34, label LBL_12, label LBL_11 LBL_11: %47 = call i64 @FUNC(i64 %3, i64 %2) %48 = load i64, i64* %22, align 8 %49 = add i64 %48, 8 store i64 %49, i64* %.reg2mem store i64 %47, i64* %sv_0.04.reg2mem br label LBL_14 LBL_12: %50 = call i64 @FUNC(i64 %3, i64 %2) %51 = load i64, i64* %22, align 8 %52 = add i64 %51, 8 store i64 %52, i64* %.reg2mem5 store i64 %50, i64* %sv_0.02.reg2mem br label LBL_15 LBL_13: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %53 = load i64, i64* %22, align 8 %54 = add i64 %53, 8 store i64 %54, i64* %.reg2mem store i64 %sv_0.0.reload, i64* %sv_0.04.reg2mem store i64 %54, i64* %.reg2mem5 store i64 %sv_0.0.reload, i64* %sv_0.02.reg2mem br i1 %34, label LBL_15, label LBL_14 LBL_14: %sv_0.04.reload = load i64, i64* %sv_0.04.reg2mem %.reload = load i64, i64* %.reg2mem %55 = call i64 @FUNC(i64 %.reload) store i64 %sv_0.04.reload, i64* %sv_0.01.reg2mem br label LBL_16 LBL_15: %sv_0.02.reload = load i64, i64* %sv_0.02.reg2mem %.reload6 = load i64, i64* %.reg2mem5 %56 = call i64 @FUNC(i64 %.reload6) store i64 %sv_0.02.reload, i64* %sv_0.01.reg2mem br label LBL_16 LBL_16: %sv_0.01.reload = load i64, i64* %sv_0.01.reg2mem %57 = add i64 %2, 24 %58 = inttoptr i64 %57 to i64* %59 = load i64, i64* %58, align 8 %60 = call i64 @FUNC(i64 %59) store i64 %sv_0.01.reload, i64* %rax.0.shrunk.reg2mem br label LBL_17 LBL_17: %rax.0.shrunk.reload = load i64, i64* %rax.0.shrunk.reg2mem %rax.0 = and i64 %rax.0.shrunk.reload, 4294967295 ret i64 %rax.0 uselistorder i64 %36, { 1, 0 } uselistorder i1 %34, { 1, 0, 2 } uselistorder i64* %22, { 2, 1, 0, 3, 4 } uselistorder i64 %6, { 1, 0 } uselistorder i64 %2, { 3, 1, 2, 4, 5, 6, 7, 8, 9, 10, 0 } uselistorder i64* %sv_0.01.reg2mem, { 0, 2, 1 } uselistorder i64* %rax.0.shrunk.reg2mem, { 0, 6, 1, 2, 3, 4, 5 } uselistorder i64 8, { 2, 1, 0, 3, 4, 5 } uselistorder label LBL_17, { 5, 0, 1, 2, 3, 4 } uselistorder label LBL_15, { 1, 0 } uselistorder label LBL_14, { 1, 0 } }
1
BinRealVul
acpi_get_pm_info_35
acpi_get_pm_info
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %sv_0.11.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC() %2 = call i64 @FUNC() %3 = bitcast i64* %arg1 to i32* store i32 0, i32* %3, align 4 %4 = add i64 %0, 4 %5 = inttoptr i64 %4 to i32* store i32 0, i32* %5, align 4 %6 = icmp eq i64 %1, 0 br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = add i64 %0, 8 %8 = inttoptr i64 %7 to i32* store i32 4660, i32* %8, align 4 %9 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i64 0) %10 = trunc i64 %9 to i32 store i32 %10, i32* %3, align 4 %11 = call i64 @FUNC(i64 %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64 0) %12 = trunc i64 %11 to i32 store i32 %12, i32* %5, align 4 br label LBL_2 LBL_2: %13 = icmp eq i64 %2, 0 br i1 %13, label LBL_4, label LBL_3 LBL_3: %14 = add i64 %0, 8 %15 = inttoptr i64 %14 to i32* store i32 22136, i32* %15, align 4 store i64 %2, i64* %sv_0.11.reg2mem br label LBL_6 LBL_4: %16 = icmp eq i1 %6, false store i64 %1, i64* %sv_0.11.reg2mem br i1 %16, label LBL_6, label LBL_5 LBL_5: call void @__assert_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_2, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_3, i64 0, i64 0), i32 93, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_4, i64 0, i64 0)) store i64 %1, i64* %sv_0.11.reg2mem br label LBL_6 LBL_6: %sv_0.11.reload = load i64, i64* %sv_0.11.reg2mem %17 = add i64 %0, 12 %18 = inttoptr i64 %17 to i32* store i32 9, i32* %18, align 4 %19 = add i64 %0, 16 %20 = inttoptr i64 %19 to i32* store i32 43981, i32* %20, align 4 %21 = add i64 %0, 20 %22 = inttoptr i64 %21 to i32* store i32 61185, i32* %22, align 4 %23 = call i64 @FUNC(i64 %sv_0.11.reload, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_5, i64 0, i64 0), i64 0) %24 = icmp eq i64 %23, 0 br i1 %24, label LBL_8, label LBL_7 LBL_7: %25 = call i64 @FUNC(i64 %23) %26 = call i64 @FUNC(i64 %25) %27 = trunc i64 %26 to i32 %28 = icmp eq i32 %27, 0 %29 = icmp eq i1 %28, false %30 = zext i1 %29 to i8 %31 = add i64 %0, 24 %32 = inttoptr i64 %31 to i8* store i8 %30, i8* %32, align 1 br label LBL_9 LBL_8: %33 = add i64 %0, 24 %34 = inttoptr i64 %33 to i8* store i8 0, i8* %34, align 1 br label LBL_9 LBL_9: %35 = call i64 @FUNC(i64 %23) %36 = call i64 @FUNC(i64 %sv_0.11.reload, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @gv_6, i64 0, i64 0), i64 0) %37 = icmp eq i64 %36, 0 br i1 %37, label LBL_11, label LBL_10 LBL_10: %38 = call i64 @FUNC(i64 %36) %39 = call i64 @FUNC(i64 %38) %40 = trunc i64 %39 to i32 %41 = icmp eq i32 %40, 0 %42 = icmp eq i1 %41, false %43 = zext i1 %42 to i8 %44 = add i64 %0, 25 %45 = inttoptr i64 %44 to i8* store i8 %43, i8* %45, align 1 br label LBL_12 LBL_11: %46 = add i64 %0, 25 %47 = inttoptr i64 %46 to i8* store i8 0, i8* %47, align 1 br label LBL_12 LBL_12: %48 = call i64 @FUNC(i64 %36) %49 = call i64 @FUNC(i64 %sv_0.11.reload, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @gv_7, i64 0, i64 0), i64 0) %50 = icmp eq i64 %49, 0 br i1 %50, label LBL_14, label LBL_13 LBL_13: %51 = call i64 @FUNC(i64 %49) %52 = call i64 @FUNC(i64 %51) %53 = trunc i64 %52 to i32 %54 = icmp eq i32 %53, 0 %55 = icmp eq i1 %54, false %56 = zext i1 %55 to i8 %57 = add i64 %0, 26 %58 = inttoptr i64 %57 to i8* store i8 %56, i8* %58, align 1 br label LBL_15 LBL_14: %59 = add i64 %0, 26 %60 = inttoptr i64 %59 to i8* store i8 0, i8* %60, align 1 br label LBL_15 LBL_15: %61 = call i64 @FUNC(i64 %49) %62 = call i64 @FUNC(i64 %sv_0.11.reload, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @gv_8, i64 0, i64 0), i64 0) %63 = trunc i64 %62 to i32 %64 = add i64 %0, 28 %65 = inttoptr i64 %64 to i32* store i32 %63, i32* %65, align 4 %66 = call i64 @FUNC(i64 %sv_0.11.reload, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @gv_9, i64 0, i64 0), i64 0) %67 = trunc i64 %66 to i32 %68 = add i64 %0, 32 %69 = inttoptr i64 %68 to i32* store i32 %67, i32* %69, align 4 %70 = call i64 @FUNC(i64 %sv_0.11.reload, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @gv_10, i64 0, i64 0), i64 0) %71 = trunc i64 %70 to i32 %72 = add i64 %0, 36 %73 = inttoptr i64 %72 to i32* store i32 %71, i32* %73, align 4 %74 = call i64 @FUNC(i64 %sv_0.11.reload, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_11, i64 0, i64 0), i64 0) %75 = trunc i64 %74 to i32 %76 = add i64 %0, 40 %77 = inttoptr i64 %76 to i32* store i32 %75, i32* %77, align 4 %78 = call i64 @FUNC(i64 %sv_0.11.reload, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @gv_12, i64 0, i64 0), i64 0) %79 = trunc i64 %78 to i32 %80 = add i64 %0, 44 %81 = inttoptr i64 %80 to i32* store i32 %79, i32* %81, align 4 %82 = call i64 @FUNC(i64 %sv_0.11.reload, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_13, i64 0, i64 0), i64 0) %83 = trunc i64 %82 to i32 %84 = add i64 %0, 48 %85 = inttoptr i64 %84 to i32* store i32 %83, i32* %85, align 4 %86 = call i64 @FUNC(i64 %sv_0.11.reload, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @gv_14, i64 0, i64 0), i64 0) %87 = trunc i64 %86 to i32 %88 = icmp eq i32 %87, 0 %89 = icmp eq i1 %88, false %90 = zext i1 %89 to i8 %91 = add i64 %0, 52 %92 = inttoptr i64 %91 to i8* store i8 %90, i8* %92, align 1 ret i64 %0 uselistorder i64 %sv_0.11.reload, { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder i64 %1, { 1, 0, 3, 2, 4 } uselistorder i64 %0, { 5, 6, 7, 8, 9, 10, 11, 12, 13, 4, 14, 3, 15, 2, 16, 17, 18, 1, 0, 19 } uselistorder i64* %sv_0.11.reg2mem, { 0, 2, 1, 3 } uselistorder i64 (i64)* @qobject_decref, { 2, 1, 0 } uselistorder i64 (i64)* @qint_get_int, { 2, 1, 0 } uselistorder i64 (i64)* @qobject_to_qint, { 2, 1, 0 } uselistorder i64 (i64, i8*, i64)* @object_property_get_qobject, { 2, 1, 0 } uselistorder i64 (i64, i8*, i64)* @object_property_get_int, { 7, 6, 5, 4, 3, 2, 1, 0 } uselistorder label LBL_6, { 1, 2, 0 } }
1
BinRealVul
ftrace_syscall_enter_6578
ftrace_syscall_enter
define i64 @FUNC(i64* %arg1, i64* %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %1 = ptrtoint i64* %arg2 to i64 %2 = load i64, i64* %0 %3 = load i64, i64* @gv_0, align 8 %4 = call i64 @FUNC(i64 %3, i64 %1) %5 = trunc i64 %4 to i32 %6 = icmp ugt i32 %5, 255 store i64 %4, i64* %rax.0.reg2mem br i1 %6, label LBL_6, label LBL_1 LBL_1: %sext = mul i64 %4, 4294967296 %7 = ashr exact i64 %sext, 29 %8 = add i64 %7, %3 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = call i64 @FUNC(i64 %10) %12 = icmp eq i64 %11, 0 store i64 0, i64* %rax.0.reg2mem br i1 %12, label LBL_6, label LBL_2 LBL_2: %13 = call i64 @FUNC(i64 %11) %14 = trunc i64 %13 to i32 %15 = icmp eq i32 %14, 0 %16 = icmp eq i1 %15, false store i64 %13, i64* %rax.0.reg2mem br i1 %16, label LBL_6, label LBL_3 LBL_3: %17 = and i64 %4, 4294967295 %18 = call i64 @FUNC(i64 %17) %19 = icmp eq i64 %18, 0 store i64 0, i64* %rax.0.reg2mem br i1 %19, label LBL_6, label LBL_4 LBL_4: %20 = ptrtoint i64* %arg1 to i64 %21 = inttoptr i64 %18 to i32* %22 = load i32, i32* %21, align 4 %23 = mul i32 %22, 8 %24 = add i32 %23, 56 %25 = call i64 @FUNC(i64 %2) %26 = call i64 @FUNC() %27 = add i64 %20, 8 %28 = inttoptr i64 %27 to i64* %29 = load i64, i64* %28, align 8 %30 = add i64 %18, 8 %31 = inttoptr i64 %30 to i64* %32 = load i64, i64* %31, align 8 %33 = inttoptr i64 %32 to i32* %34 = load i32, i32* %33, align 4 %35 = and i64 %26, 4294967295 %36 = call i64 @FUNC(i64 %29, i32 %34, i32 %24, i64 %2, i64 %35) %37 = icmp eq i64 %36, 0 store i64 0, i64* %rax.0.reg2mem br i1 %37, label LBL_6, label LBL_5 LBL_5: %38 = call i64 @FUNC(i64 %36) %39 = inttoptr i64 %38 to i32* store i32 %5, i32* %39, align 4 %40 = add i64 %38, 8 %41 = load i32, i32* %21, align 4 %42 = load i64, i64* @gv_0, align 8 %43 = zext i32 %41 to i64 %44 = call i64 @FUNC(i64 %42, i64 %1, i64 0, i64 %43, i64 %40) %45 = call i64 @FUNC(i64 %11, i64 %29, i64 %36, i64 %38, i64 %2, i64 %35) store i64 %45, 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 %5, { 1, 0 } uselistorder i64 %4, { 2, 1, 0, 3 } uselistorder i64 4294967295, { 1, 0 } uselistorder label LBL_6, { 5, 0, 1, 2, 3, 4 } }
0
BinRealVul
ecdsa_verify_prepare_legacy_12524
ecdsa_verify_prepare_legacy
define i64 @FUNC(i64* %arg1, i64* %arg2, i32* %arg3) local_unnamed_addr { LBL_0: %0 = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i32* %arg3 to i64 %3 = ptrtoint i64* %arg2 to i64 %4 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %5 = trunc i64 %1 to i32 %6 = bitcast i64* %arg1 to i32* store i32 %5, i32* %6, align 4 %7 = add i64 %2, 4 %8 = call i64 @FUNC(i64* nonnull %sv_2, i64 %7) %9 = call i64 @FUNC(i64* nonnull %sv_1, i64 %3) %10 = call i64 @FUNC(i64* nonnull %sv_0, i64* nonnull %sv_1, i64* nonnull %sv_2) %11 = add i64 %4, 4 %12 = inttoptr i64 %11 to i64* %13 = call i64 @FUNC(i64* %12, i64* %arg1, i64* nonnull %sv_2) %14 = add i64 %4, 8 %15 = call i64 @FUNC(i64 %14, i64* nonnull %sv_0) ret i64 %15 uselistorder i64 (i64*, i64*, i64*)* @ecc_25519_gf_mult, { 1, 0 } }
1
BinRealVul
xhci_lookup_uport_3616
xhci_lookup_uport
define i64 @FUNC(i32* %arg1, i32* %arg2) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %storemerge.in5.reg2mem = alloca i64 %sv_0.07.reg2mem = alloca i32 %storemerge48.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %sv_1 = alloca i64, align 8 %3 = ptrtoint i32* %arg2 to i64 %4 = add i64 %3, 4 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = udiv i32 %6, 65536 %8 = urem i32 %7, 256 %9 = trunc i64 %1 to i32 %10 = add nsw i32 %8, -1 %11 = icmp ult i32 %10, %9 store i64 0, i64* %rax.0.reg2mem br i1 %11, label LBL_1, label LBL_7 LBL_1: %12 = trunc i64 %2 to i32 %13 = ptrtoint i32* %arg1 to i64 %14 = sext i32 %10 to i64 %15 = mul i64 %14, 8 %16 = add i64 %13, 8 %17 = add i64 %16, %15 %18 = inttoptr i64 %17 to i64* %19 = load i64, i64* %18, align 8 %20 = add i64 %19, 32 %21 = inttoptr i64 %20 to i32* %22 = load i32, i32* %21, align 4 %23 = add i32 %22, 1 %24 = zext i32 %23 to i64 %25 = bitcast i64* %sv_1 to i8* %26 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* nonnull %25, i32 32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @gv_0, i64 0, i64 0), i64 %24) %27 = ptrtoint i64* %sv_1 to i64 store i32 0, i32* %storemerge48.reg2mem store i32 %26, i32* %sv_0.07.reg2mem br label LBL_2 LBL_2: %storemerge48.reload = load i32, i32* %storemerge48.reg2mem %28 = mul i32 %storemerge48.reload, 4 %29 = lshr i32 %12, %28 %30 = urem i32 %29, 16 %31 = icmp eq i32 %30, 0 br i1 %31, label LBL_4, label LBL_3 LBL_3: %sv_0.07.reload = load i32, i32* %sv_0.07.reg2mem %32 = sub i32 32, %sv_0.07.reload %33 = sext i32 %sv_0.07.reload to i64 %34 = add i64 %33, %27 %35 = zext i32 %30 to i64 %36 = inttoptr i64 %34 to i8* %37 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %36, i32 %32, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0), i64 %35) %38 = add i32 %37, %sv_0.07.reload %39 = add nuw nsw i32 %storemerge48.reload, 1 %40 = icmp ult i32 %39, 5 store i32 %39, i32* %storemerge48.reg2mem store i32 %38, i32* %sv_0.07.reg2mem br i1 %40, label LBL_2, label LBL_4 LBL_4: %41 = add i64 %13, 2056 %42 = icmp eq i64 %41, 0 %43 = icmp eq i1 %42, false store i64 %41, i64* %storemerge.in5.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %43, label LBL_5, label LBL_7 LBL_5: %storemerge.in5.reload = load i64, i64* %storemerge.in5.reg2mem %storemerge = inttoptr i64 %storemerge.in5.reload to i8* %44 = call i32 @strcmp(i8* %storemerge, i8* nonnull %25) %45 = icmp eq i32 %44, 0 %46 = icmp eq i1 %45, false store i64 %storemerge.in5.reload, i64* %rax.0.reg2mem br i1 %46, label LBL_6, label LBL_7 LBL_6: %47 = add i64 %storemerge.in5.reload, 40 %48 = inttoptr i64 %47 to i64* %49 = load i64, i64* %48, align 8 %50 = icmp eq i64 %49, 0 %51 = icmp eq i1 %50, false store i64 %49, i64* %storemerge.in5.reg2mem store i64 0, i64* %rax.0.reg2mem br i1 %51, label LBL_5, label LBL_7 LBL_7: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %storemerge.in5.reload, { 1, 0, 2 } uselistorder i32 %sv_0.07.reload, { 2, 0, 1 } uselistorder i32 %30, { 1, 0 } uselistorder i64* %sv_1, { 1, 0 } uselistorder i32* %storemerge48.reg2mem, { 1, 0, 2 } uselistorder i32* %sv_0.07.reg2mem, { 1, 0, 2 } uselistorder i64* %storemerge.in5.reg2mem, { 2, 0, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 4 } uselistorder i64* %0, { 1, 0 } uselistorder i1 false, { 2, 1, 0 } uselistorder i32 (i8*, i32, i8*, ...)* @snprintf, { 1, 0 } uselistorder i64 8, { 1, 0 } uselistorder label LBL_7, { 1, 0, 3, 2 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_4, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
0
BinRealVul
d_set_d_op_8538
d_set_d_op
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %.reg2mem7 = alloca i64 %.reg2mem5 = alloca i64 %.reg2mem3 = alloca i64 %.reg2mem1 = alloca i64 %.reg2mem = alloca i64 %0 = icmp eq i64* %arg1, null br i1 %0, label LBL_2, label LBL_1 LBL_1: %1 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %2 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_1 to i64*), i32 1, i32 26, %_IO_FILE* %1) br label LBL_2 LBL_2: %3 = ptrtoint i64* %arg1 to i64 %4 = add i64 %3, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = and i64 %6, 95 %8 = icmp eq i64 %7, 0 br i1 %8, label LBL_4, label LBL_3 LBL_3: %9 = load %_IO_FILE*, %_IO_FILE** @gv_0, align 8 %10 = call i32 @fwrite(i64* bitcast ([27 x i8]* @gv_1 to i64*), i32 1, i32 26, %_IO_FILE* %9) br label LBL_4 LBL_4: %11 = ptrtoint i64* %arg2 to i64 store i64 %11, i64* %arg1, align 8 %12 = icmp eq i64* %arg2, null store i64 %3, i64* %rax.0.reg2mem br i1 %12, label LBL_17, label LBL_5 LBL_5: %13 = load i64, i64* %5, align 8 %14 = or i64 %13, 1 store i64 %14, i64* %5, align 8 %15 = add i64 %11, 8 %16 = inttoptr i64 %15 to i64* %17 = load i64, i64* %16, align 8 %18 = icmp eq i64 %17, 0 store i64 %14, i64* %.reg2mem br i1 %18, label LBL_7, label LBL_6 LBL_6: %19 = or i64 %13, 3 store i64 %19, i64* %5, align 8 store i64 %19, i64* %.reg2mem br label LBL_7 LBL_7: %.reload = load i64, i64* %.reg2mem %20 = add i64 %11, 16 %21 = inttoptr i64 %20 to i64* %22 = load i64, i64* %21, align 8 %23 = icmp eq i64 %22, 0 store i64 %.reload, i64* %.reg2mem1 br i1 %23, label LBL_9, label LBL_8 LBL_8: %24 = or i64 %.reload, 4 store i64 %24, i64* %5, align 8 store i64 %24, i64* %.reg2mem1 br label LBL_9 LBL_9: %.reload2 = load i64, i64* %.reg2mem1 %25 = add i64 %11, 24 %26 = inttoptr i64 %25 to i64* %27 = load i64, i64* %26, align 8 %28 = icmp eq i64 %27, 0 store i64 %.reload2, i64* %.reg2mem3 br i1 %28, label LBL_11, label LBL_10 LBL_10: %29 = or i64 %.reload2, 8 store i64 %29, i64* %5, align 8 store i64 %29, i64* %.reg2mem3 br label LBL_11 LBL_11: %.reload4 = load i64, i64* %.reg2mem3 %30 = add i64 %11, 32 %31 = inttoptr i64 %30 to i64* %32 = load i64, i64* %31, align 8 %33 = icmp eq i64 %32, 0 store i64 %.reload4, i64* %.reg2mem5 br i1 %33, label LBL_13, label LBL_12 LBL_12: %34 = or i64 %.reload4, 16 store i64 %34, i64* %5, align 8 store i64 %34, i64* %.reg2mem5 br label LBL_13 LBL_13: %.reload6 = load i64, i64* %.reg2mem5 %35 = add i64 %11, 40 %36 = inttoptr i64 %35 to i64* %37 = load i64, i64* %36, align 8 %38 = icmp eq i64 %37, 0 store i64 %.reload6, i64* %.reg2mem7 br i1 %38, label LBL_15, label LBL_14 LBL_14: %39 = or i64 %.reload6, 32 store i64 %39, i64* %5, align 8 store i64 %39, i64* %.reg2mem7 br label LBL_15 LBL_15: %40 = add i64 %11, 48 %41 = inttoptr i64 %40 to i64* %42 = load i64, i64* %41, align 8 %43 = icmp eq i64 %42, 0 store i64 0, i64* %rax.0.reg2mem br i1 %43, label LBL_17, label LBL_16 LBL_16: %.reload8 = load i64, i64* %.reg2mem7 %44 = or i64 %.reload8, 64 store i64 %44, i64* %5, align 8 store i64 %3, 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 %.reload6, { 1, 0 } uselistorder i64 %.reload4, { 1, 0 } uselistorder i64 %.reload2, { 1, 0 } uselistorder i64 %.reload, { 1, 0 } uselistorder i64* %5, { 5, 4, 3, 2, 1, 0, 7, 6, 8 } uselistorder i64* %.reg2mem, { 0, 2, 1 } uselistorder i64* %.reg2mem1, { 0, 2, 1 } uselistorder i64* %.reg2mem3, { 0, 2, 1 } uselistorder i64* %.reg2mem5, { 0, 2, 1 } uselistorder i64* %.reg2mem7, { 0, 2, 1 } uselistorder i32 (i64*, i32, i32, %_IO_FILE*)* @fwrite, { 1, 0 } uselistorder %_IO_FILE** @gv_0, { 1, 0 } uselistorder i64* %arg1, { 0, 2, 1 } uselistorder label LBL_17, { 1, 2, 0 } }
0
BinRealVul
build_file_streams_16575
build_file_streams
define i64 @FUNC() local_unnamed_addr { LBL_0: %0 = alloca i64 %storemerge3.lcssa.reg2mem = alloca i64 %.lcssa.reg2mem = alloca i64 %storemerge24.reg2mem = alloca i32 %.reg2mem15 = alloca i64 %.reg2mem = alloca i64 %storemerge35.reg2mem = alloca i64 %1 = load i64, i64* %0 %sv_0 = alloca i32*, align 8 %2 = load i64, i64* @gv_0, align 8 %3 = icmp eq i64 %2, 0 %4 = icmp eq i1 %3, false store i64 %2, i64* %storemerge3.lcssa.reg2mem br i1 %4, label LBL_1, label LBL_15 LBL_1: %5 = bitcast i32** %sv_0 to i64* store i64 %2, i64* %storemerge35.reg2mem br label LBL_2 LBL_2: %storemerge35.reload = load i64, i64* %storemerge35.reg2mem %6 = inttoptr i64 %storemerge35.reload to i64* %7 = load i64, i64* %6, align 8 %8 = add i64 %storemerge35.reload, 8 %9 = inttoptr i64 %8 to i32* %10 = load i32, i32* %9, align 4 %11 = icmp eq i32 %10, 1 %12 = icmp eq i1 %11, false br i1 %12, label LBL_14, label LBL_3 LBL_3: %13 = add i64 %storemerge35.reload, 16 %14 = inttoptr i64 %13 to i64* %15 = load i64, i64* %14, align 8 %16 = icmp eq i64 %15, 0 %17 = icmp eq i1 %16, false br i1 %17, label LBL_14, label LBL_4 LBL_4: %18 = call i64 @FUNC(i64 8) %19 = add i64 %storemerge35.reload, 32 %20 = inttoptr i64 %19 to i64* store i64 %18, i64* %20, align 8 %21 = add i64 %storemerge35.reload, 40 %22 = inttoptr i64 %21 to i64* %23 = load i64, i64* %22, align 8 %24 = inttoptr i64 %23 to i64* %25 = load i64, i64* %24, align 8 %26 = inttoptr i64 %25 to i8* %27 = call i32 @strcmp(i8* %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @gv_1, i64 0, i64 0)) %28 = icmp eq i32 %27, 0 %29 = icmp eq i1 %28, false br i1 %29, label LBL_6, label LBL_5 LBL_5: %30 = load i64, i64* %20, align 8 %31 = inttoptr i64 %30 to i32* store i32 1, i32* %31, align 4 %32 = load i64, i64* %20, align 8 %33 = add i64 %32, 4 %34 = inttoptr i64 %33 to i32* store i32 1, i32* %34, align 4 br label LBL_6 LBL_6: %35 = load i64, i64* %20, align 8 %36 = add i64 %storemerge35.reload, 48 %37 = inttoptr i64 %36 to i64* %38 = load i64, i64* %37, align 8 %39 = add i64 %storemerge35.reload, 24 %40 = inttoptr i64 %39 to i64* %41 = load i64, i64* %40, align 8 %42 = call i64 @FUNC(i64* nonnull %5, i64 %41, i64 %38, i64 0, i64 %35) %43 = trunc i64 %42 to i32 %44 = icmp slt i32 %43, 0 %45 = icmp eq i1 %44, false br i1 %45, label LBL_9, label LBL_7 LBL_7: %46 = load i64, i64* %40, align 8 %47 = call i64 @FUNC(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_2, i64 0, i64 0), i64 %46, i64 %38, i64 0, i64 %35, i64 %1) br label LBL_8 LBL_8: %48 = call i64 @FUNC(i64 %storemerge35.reload) br label LBL_14 LBL_9: %49 = load i32*, i32** %sv_0, align 8 %50 = ptrtoint i32* %49 to i64 %51 = call i64 @FUNC(i64 %50) %52 = trunc i64 %51 to i32 %53 = icmp slt i32 %52, 0 %54 = icmp eq i1 %53, false br i1 %54, label LBL_11, label LBL_10 LBL_10: %55 = load i64, i64* %40, align 8 %56 = call i64 @FUNC(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @gv_3, i64 0, i64 0), i64 %55, i64 %38, i64 0, i64 %35, i64 %1) %57 = load i32*, i32** %sv_0, align 8 %58 = ptrtoint i32* %57 to i64 %59 = call i64 @FUNC(i64 %58) br label LBL_8 LBL_11: %60 = load i32*, i32** %sv_0, align 8 %61 = ptrtoint i32* %60 to i64 %62 = call i64 @FUNC(i64 %61) %63 = load i32*, i32** %sv_0, align 8 %64 = load i32, i32* %63, align 4 %65 = icmp eq i32 %64, 0 %66 = ptrtoint i32* %63 to i64 store i64 %66, i64* %.reg2mem store i64 0, i64* %.reg2mem15 store i32 0, i32* %storemerge24.reg2mem store i64 %66, i64* %.lcssa.reg2mem br i1 %65, label LBL_13, label LBL_12 LBL_12: %storemerge24.reload = load i32, i32* %storemerge24.reg2mem %.reload16 = load i64, i64* %.reg2mem15 %.reload = load i64, i64* %.reg2mem %67 = add i64 %.reload, 8 %68 = inttoptr i64 %67 to i64* %69 = load i64, i64* %68, align 8 %70 = mul i64 %.reload16, 8 %71 = add i64 %69, %70 %72 = inttoptr i64 %71 to i64* %73 = load i64, i64* %72, align 8 %74 = inttoptr i64 %73 to i64* %75 = load i64, i64* %74, align 8 %76 = call i64 @FUNC(i64 %storemerge35.reload, i64 %75) %77 = add i32 %storemerge24.reload, 1 %78 = load i32*, i32** %sv_0, align 8 %79 = load i32, i32* %78, align 4 %80 = zext i32 %79 to i64 %81 = sext i32 %77 to i64 %82 = icmp slt i64 %81, %80 %83 = ptrtoint i32* %78 to i64 store i64 %83, i64* %.reg2mem store i64 %81, i64* %.reg2mem15 store i32 %77, i32* %storemerge24.reg2mem store i64 %83, i64* %.lcssa.reg2mem br i1 %82, label LBL_12, label LBL_13 LBL_13: %.lcssa.reload = load i64, i64* %.lcssa.reg2mem %84 = call i64 @FUNC(i64 %.lcssa.reload) br label LBL_14 LBL_14: %85 = icmp eq i64 %7, 0 %86 = icmp eq i1 %85, false store i64 %7, i64* %storemerge35.reg2mem store i64 %7, i64* %storemerge3.lcssa.reg2mem br i1 %86, label LBL_2, label LBL_15 LBL_15: %storemerge3.lcssa.reload = load i64, i64* %storemerge3.lcssa.reg2mem ret i64 %storemerge3.lcssa.reload uselistorder i64* %40, { 1, 0, 2 } uselistorder i64 %38, { 1, 0, 2 } uselistorder i64 %35, { 1, 0, 2 } uselistorder i64* %20, { 2, 0, 1, 3 } uselistorder i64 %storemerge35.reload, { 1, 0, 2, 3, 4, 5, 6, 8, 7 } uselistorder i64 %2, { 1, 0, 2 } uselistorder i32** %sv_0, { 4, 0, 3, 2, 1, 5 } uselistorder i64 %1, { 1, 0 } uselistorder i64* %storemerge35.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem, { 2, 0, 1 } uselistorder i64* %.reg2mem15, { 2, 0, 1 } uselistorder i32* %storemerge24.reg2mem, { 2, 0, 1 } uselistorder i64 (i64)* @av_close_input_file, { 1, 0 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @http_log, { 1, 0 } uselistorder i64 8, { 0, 2, 1, 3 } uselistorder i1 false, { 6, 1, 2, 3, 4, 5, 0 } uselistorder i32 1, { 16, 17, 18, 13, 15, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 0, 1, 14 } uselistorder label LBL_12, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
parse_one_17594
parse_one
define i64 @FUNC(i8* %arg1, i8* %arg2, i64* %arg3, i64 %arg4, i64 %arg5) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rdx.0.lcssa.reg2mem = alloca i64 %indvars.iv.reg2mem = alloca i64 %1 = load i64, i64* %0 %2 = ptrtoint i64* %arg3 to i64 %3 = trunc i64 %arg4 to i32 %4 = icmp eq i32 %3, 0 store i64 %2, i64* %rdx.0.lcssa.reg2mem br i1 %4, label LBL_5, label LBL_1 LBL_1: %5 = ptrtoint i8* %arg1 to i64 %6 = and i64 %arg4, 4294967295 store i64 0, i64* %indvars.iv.reg2mem br label LBL_2 LBL_2: %indvars.iv.reload = load i64, i64* %indvars.iv.reg2mem %7 = mul i64 %indvars.iv.reload, 16 %8 = add i64 %7, %2 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = call i64 @FUNC(i64 %5, i64 %10) %12 = trunc i64 %11 to i32 %13 = icmp eq i32 %12, 0 br i1 %13, label LBL_4, label LBL_3 LBL_3: %14 = add i64 %8, 8 %15 = inttoptr i64 %14 to i64* %16 = load i64, i64* %15, align 8 %17 = call i64 @FUNC(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @gv_0, i64 0, i64 0), i64 %16, i64 %7, i64 %arg4, i64 %arg5, i64 %1) %18 = ptrtoint i8* %arg2 to i64 store i64 %18, i64* %rax.0.reg2mem br label LBL_8 LBL_4: %indvars.iv.next = add nuw nsw i64 %indvars.iv.reload, 1 %19 = icmp ult i64 %indvars.iv.next, %6 store i64 %indvars.iv.next, i64* %indvars.iv.reg2mem store i64 %10, i64* %rdx.0.lcssa.reg2mem br i1 %19, label LBL_2, label LBL_5 LBL_5: %rdx.0.lcssa.reload = load i64, i64* %rdx.0.lcssa.reg2mem %20 = icmp eq i64 %arg5, 0 br i1 %20, label LBL_7, label LBL_6 LBL_6: %21 = call i64 @FUNC(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @gv_1, i64 0, i64 0), i64 %arg5, i64 %rdx.0.lcssa.reload, i64 %arg4, i64 %arg5, i64 %1) %22 = ptrtoint i8* %arg1 to i64 store i64 %22, i64* %rax.0.reg2mem br label LBL_8 LBL_7: %23 = ptrtoint i8* %arg1 to i64 %24 = call i64 @FUNC(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_2, i64 0, i64 0), i64 %23, i64 %rdx.0.lcssa.reload, i64 %arg4, i64 0, i64 %1) store i64 4294967294, i64* %rax.0.reg2mem br label LBL_8 LBL_8: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %rdx.0.lcssa.reload, { 1, 0 } uselistorder i64 %7, { 1, 0 } uselistorder i64 %2, { 1, 0 } uselistorder i64 %1, { 2, 1, 0 } uselistorder i64* %indvars.iv.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3 } uselistorder i64 (i8*, i64, i64, i64, i64, i64)* @DEBUGP, { 2, 0, 1 } uselistorder i32 0, { 1, 0, 2 } uselistorder i64 %arg5, { 0, 2, 1, 3 } uselistorder i64 %arg4, { 3, 2, 4, 0, 1 } uselistorder i8* %arg1, { 1, 0, 2 } uselistorder label LBL_8, { 0, 2, 1 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
replaceClientCommandVector_7907
replaceClientCommandVector
define i64 @FUNC(i32* %arg1, i64 %arg2, i64* %arg3) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg3 to i64 %1 = ptrtoint i32* %arg1 to i64 %2 = trunc i64 %arg2 to i32 %3 = call i64 @FUNC(i64 %1) %4 = add i64 %1, 8 %5 = inttoptr i64 %4 to i64* %6 = load i64, i64* %5, align 8 %7 = call i64 @FUNC(i64 %6) store i64 %0, i64* %5, align 8 store i32 %2, i32* %arg1, align 4 %8 = load i64, i64* %5, align 8 %9 = inttoptr i64 %8 to i64* %10 = load i64, i64* %9, align 8 %11 = inttoptr i64 %10 to i64* %12 = load i64, i64* %11, align 8 %13 = call i64 @FUNC(i64 %12) %14 = add i64 %1, 16 %15 = inttoptr i64 %14 to i64* store i64 %13, i64* %15, align 8 %16 = icmp eq i64 %13, 0 %17 = icmp eq i1 %16, false %18 = zext i1 %17 to i64 %19 = call i64 @FUNC(i64 %1, i64 0, i64 %18) ret i64 %19 }
0
BinRealVul
qmp_drive_backup_14150
qmp_drive_backup
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %2 = call i64 @FUNC(i64 %1, i64 0, i64 %0) ret i64 %2 }
1
BinRealVul
pci_create_attr_4599
pci_create_attr
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %sv_0.0.reg2mem = alloca i64 %.pre-phi.reg2mem = alloca i64 %0 = trunc i64 %arg3 to i32 %1 = icmp eq i32 %0, 0 %. = select i1 %1, i64 66, i64 69 %2 = call i64 @FUNC(i64 %., i64 0) %3 = icmp eq i64 %2, 0 store i64 4294967284, i64* %sv_0.0.reg2mem br i1 %3, label LBL_8, label LBL_1 LBL_1: %4 = ptrtoint i64* %arg1 to i64 %sext = mul i64 %arg2, 4294967296 %5 = ashr exact i64 %sext, 32 %6 = add i64 %2, 56 %7 = inttoptr i64 %6 to i8* %8 = call i64 @FUNC(i64 %2) br i1 %1, label LBL_3, label LBL_2 LBL_2: %9 = ashr exact i64 %sext, 29 %10 = add i64 %2, %9 %11 = inttoptr i64 %10 to i64* store i64 %2, i64* %11, align 8 %12 = and i64 %5, 4294967295 %13 = call i32 (i8*, i8*, ...) @sprintf(i8* %7, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0), i64 %12) %14 = add i64 %2, 32 %15 = inttoptr i64 %14 to i64* store i64 4198864, i64* %15, align 8 store i64 %12, i64* %.pre-phi.reg2mem br label LBL_4 LBL_3: %16 = add i64 %4, 8 %17 = inttoptr i64 %16 to i64* %18 = load i64, i64* %17, align 8 %19 = ashr exact i64 %sext, 29 %20 = add i64 %18, %19 %21 = inttoptr i64 %20 to i64* store i64 %2, i64* %21, align 8 %22 = and i64 %5, 4294967295 %23 = call i32 (i8*, i8*, ...) @sprintf(i8* %7, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @gv_1, i64 0, i64 0), i64 %22) %24 = add i64 %2, 32 %25 = inttoptr i64 %24 to i64* store i64 4198871, i64* %25, align 8 store i64 %22, i64* %.pre-phi.reg2mem br label LBL_4 LBL_4: %.pre-phi.reload = load i64, i64* %.pre-phi.reg2mem %26 = call i64 @FUNC(i64 %4, i64 %.pre-phi.reload) %27 = urem i64 %26, 2 %28 = icmp eq i64 %27, 0 br i1 %28, label LBL_6, label LBL_5 LBL_5: %29 = add i64 %2, 40 %30 = inttoptr i64 %29 to i64* store i64 4198878, i64* %30, align 8 %31 = add i64 %2, 48 %32 = inttoptr i64 %31 to i64* store i64 4198885, i64* %32, align 8 br label LBL_6 LBL_6: %33 = inttoptr i64 %2 to i64* store i64 %6, i64* %33, align 8 %34 = add i64 %2, 8 %35 = inttoptr i64 %34 to i32* store i32 384, i32* %35, align 4 %36 = call i64 @FUNC(i64 %4, i64 %.pre-phi.reload) %37 = add i64 %2, 16 %38 = inttoptr i64 %37 to i64* store i64 %36, i64* %38, align 8 %39 = add i64 %4, 16 %40 = inttoptr i64 %39 to i64* %41 = load i64, i64* %40, align 8 %42 = add i64 %2, 24 %43 = inttoptr i64 %42 to i64* store i64 %41, i64* %43, align 8 %44 = call i64 @FUNC(i64 %4, i64 %2) %45 = trunc i64 %44 to i32 %46 = icmp eq i32 %45, 0 store i64 %44, i64* %sv_0.0.reg2mem br i1 %46, label LBL_8, label LBL_7 LBL_7: %47 = call i64 @FUNC(i64 %2) store i64 %44, i64* %sv_0.0.reg2mem br label LBL_8 LBL_8: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %48 = and i64 %sv_0.0.reload, 4294967295 ret i64 %48 uselistorder i8* %7, { 1, 0 } uselistorder i64 %5, { 1, 0 } uselistorder i64 %sext, { 2, 1, 0 } uselistorder i64 %2, { 5, 6, 7, 8, 9, 10, 3, 4, 11, 12, 1, 2, 0, 14, 13, 15 } uselistorder i64* %.pre-phi.reg2mem, { 0, 2, 1 } uselistorder i64* %sv_0.0.reg2mem, { 0, 2, 3, 1 } uselistorder i32 (i8*, i8*, ...)* @sprintf, { 1, 0 } uselistorder i64 32, { 1, 2, 0 } uselistorder label LBL_8, { 1, 2, 0 } }
0
BinRealVul
spapr_tce_reset_15959
spapr_tce_reset
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 8 %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = inttoptr i64 %3 to i64* %.tr = trunc i64 %0 to i32 %5 = mul i32 %.tr, 8 %6 = call i64* @memset(i64* %4, i32 0, i32 %5) %7 = ptrtoint i64* %6 to i64 ret i64 %7 }
1
BinRealVul
start_ahci_device_15118
start_ahci_device
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = add i64 %0, 16 %2 = call i64 @FUNC(i64 %0, i64 5, i64 %1) %3 = add i64 %0, 8 %4 = inttoptr i64 %3 to i64* store i64 %2, i64* %4, align 8 %5 = and i64 %2, 4294967295 %6 = call i64 @FUNC(i64 %5) %7 = call i64 @FUNC(i64 %5) ret i64 %7 uselistorder i64 %5, { 1, 0 } }
1
BinRealVul
ecdsa_verify_legacy_12523
ecdsa_verify_legacy
define i64 @FUNC(i64* %arg1, i64* %arg2) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg2 to i64 %1 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %2 = call i64 @FUNC(i64* nonnull %sv_0, i64 %1, i64 %0) %3 = add i64 %1, 4 %4 = call i64 @FUNC(i64* nonnull %sv_0, i64 %3, i64* nonnull %sv_0) %5 = call i64 @FUNC(i64* nonnull %sv_0, i64 0, i64* nonnull %sv_0) %6 = add i64 %1, 8 %7 = call i64 @FUNC(i64* nonnull %sv_0, i64 %6, i64* nonnull %sv_0) %8 = call i64 @FUNC(i64* nonnull %sv_0) ret i64 %8 }
1
BinRealVul
pty_chr_state_16511
pty_chr_state
define i64 @FUNC(i64* %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %rdi = alloca i64, align 8 %0 = ptrtoint i64* %arg1 to i64 %1 = trunc i64 %arg2 to i32 %2 = icmp eq i32 %1, 0 %3 = icmp eq i1 %2, false br i1 %3, label LBL_4, label LBL_1 LBL_1: %4 = add i64 %0, 8 %5 = inttoptr i64 %4 to i32* %6 = load i32, i32* %5, align 4 %7 = icmp eq i32 %6, 0 br i1 %7, label LBL_3, label LBL_2 LBL_2: %8 = zext i32 %6 to i64 %9 = call i64 @FUNC(i64 %8) store i32 0, i32* %5, align 4 br label LBL_3 LBL_3: %10 = add i64 %0, 4 %11 = inttoptr i64 %10 to i32* store i32 0, i32* %11, align 4 %12 = call i64 @FUNC(i64 %0, i64 1000) store i64 %12, i64* %rax.0.reg2mem br label LBL_8 LBL_4: %13 = add i64 %0, 12 %14 = inttoptr i64 %13 to i32* %15 = load i32, i32* %14, align 4 %16 = icmp eq i32 %15, 0 br i1 %16, label LBL_6, label LBL_5 LBL_5: %17 = zext i32 %15 to i64 %18 = call i64 @FUNC(i64 %17) store i32 0, i32* %14, align 4 br label LBL_6 LBL_6: %19 = add i64 %0, 4 %20 = inttoptr i64 %19 to i32* %21 = load i32, i32* %20, align 4 %22 = zext i32 %21 to i64 %23 = icmp eq i32 %21, 0 %24 = icmp eq i1 %23, false store i64 %22, i64* %rax.0.reg2mem br i1 %24, label LBL_8, label LBL_7 LBL_7: %25 = call i64 @FUNC(i64 %0) store i32 1, i32* %20, align 4 %26 = bitcast i64* %rdi to i32* %27 = load i32, i32* %26, align 8 %28 = zext i32 %27 to i64 %29 = call i64 @FUNC(i64 %28, i64 4198723, i64 4198730, i64 %0) %30 = trunc i64 %29 to i32 %31 = add i64 %0, 8 %32 = inttoptr i64 %31 to i32* store i32 %30, i32* %32, align 4 store i64 %29, i64* %rax.0.reg2mem br label LBL_8 LBL_8: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i64 %0, { 2, 3, 4, 5, 6, 0, 1, 7 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 3, 1 } }
1
BinRealVul
pch_write_line_11634
pch_write_line
define i64 @FUNC(i64 %arg1, i64 %arg2) local_unnamed_addr { LBL_0: %sext = mul i64 %arg1, 4294967296 %0 = ashr exact i64 %sext, 29 %1 = add i64 %0, ptrtoint (i64* @gv_0 to i64) %2 = inttoptr i64 %1 to i64* %3 = load i64, i64* %2, align 8 %4 = ashr exact i64 %sext, 24 %5 = add i64 %4, add (i64 ptrtoint (i8** @gv_1 to i64), i64 -1) %6 = add i64 %5, %3 %7 = inttoptr i64 %6 to i8* %8 = load i8, i8* %7, align 1 %9 = add i64 %4, ptrtoint (i8** @gv_1 to i64) %10 = inttoptr i64 %9 to i64* %11 = trunc i64 %3 to i32 %12 = inttoptr i64 %arg2 to %_IO_FILE* %13 = call i32 @fwrite(i64* %10, i32 1, i32 %11, %_IO_FILE* %12) %14 = icmp eq i32 %13, 0 %15 = icmp eq i1 %14, false br i1 %15, label LBL_2, label LBL_1 LBL_1: %16 = call i64 @FUNC() unreachable LBL_2: %17 = icmp eq i8 %8, 10 %18 = zext i1 %17 to i64 ret i64 %18 uselistorder i64 %3, { 1, 0 } uselistorder i64 %sext, { 1, 0 } uselistorder i64 ptrtoint (i8** @gv_1 to i64), { 1, 0 } }
1
BinRealVul
clearLoader_6304
clearLoader
define i64 @FUNC() local_unnamed_addr { LBL_0: store i32 0, i32* bitcast (i64* @gv_0 to i32*), align 8 ret i64 0 }
0
BinRealVul
ehci_advance_periodic_state_636
ehci_advance_periodic_state
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %.pre-phi3.reg2mem = alloca i32 %1 = load i64, i64* %0 %2 = load i64, i64* %0 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i32, align 4 %5 = call i64 @FUNC(i64 %4, i64 0) %6 = trunc i64 %5 to i32 %7 = trunc i64 %3 to i32 switch i32 %6, label LBL_10 [ i32 0, label LBL_2 i32 1, label LBL_0.LBL_5_crit_edge ] LBL_1: %.pre2 = urem i32 %7, 8 store i32 %.pre2, i32* %.pre-phi3.reg2mem br label LBL_5 LBL_2: %8 = urem i32 %7, 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_11, label LBL_3 LBL_3: %12 = add i64 %4, 4 %13 = inttoptr i64 %12 to i32* %14 = load i32, i32* %13, align 4 %15 = urem i32 %14, 2 %16 = icmp eq i32 %15, 0 store i64 0, i64* %rax.0.reg2mem br i1 %16, label LBL_11, label LBL_4 LBL_4: %17 = call i64 @FUNC(i64 %4, i64 1) %18 = call i64 @FUNC(i64 %4, i64 0, i64 1) store i32 %8, i32* %.pre-phi3.reg2mem br label LBL_5 LBL_5: %.pre-phi3.reload = load i32, i32* %.pre-phi3.reg2mem %19 = icmp eq i32 %.pre-phi3.reload, 0 %20 = icmp eq i1 %19, false br i1 %20, label LBL_8, label LBL_6 LBL_6: %21 = add i64 %4, 4 %22 = inttoptr i64 %21 to i32* %23 = load i32, i32* %22, align 4 %24 = urem i32 %23, 2 %25 = icmp eq i32 %24, 0 %26 = icmp eq i1 %25, false br i1 %26, label LBL_8, label LBL_7 LBL_7: %27 = call i64 @FUNC(i64 %4, i64 1) %28 = call i64 @FUNC(i64 %4, i64 0, i64 0) store i64 %28, i64* %rax.0.reg2mem br label LBL_11 LBL_8: %29 = add i64 %4, 8 %30 = inttoptr i64 %29 to i32* %31 = load i32, i32* %30, align 4 %32 = and i32 %31, -4096 %33 = icmp eq i32 %32, 0 store i64 0, i64* %rax.0.reg2mem br i1 %33, label LBL_11, label LBL_9 LBL_9: %34 = udiv i32 %7, 2 %35 = and i32 %34, 4092 %36 = or i32 %32, %35 %37 = add i64 %4, 16 %38 = zext i32 %36 to i64 %39 = bitcast i32* %sv_0 to i64* %40 = call i64 @FUNC(i64 %37, i64 %38, i64* nonnull %39, i64 4) %41 = load i32, i32* %sv_0, align 4 %42 = zext i32 %41 to i64 %43 = call i64 @FUNC(i64 %42) %44 = trunc i64 %43 to i32 store i32 %44, i32* %sv_0, align 4 %45 = udiv i64 %3, 8 %46 = urem i64 %45, 536870912 %47 = and i64 %43, 4294967295 %48 = call i64 @FUNC(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @gv_0, i64 0, i64 0), i64 %46, i64 %38, i64 %47, i64 %2, i64 %1) %49 = load i32, i32* %sv_0, align 4 %50 = zext i32 %49 to i64 %51 = call i64 @FUNC(i64 %4, i64 0, i64 %50) %52 = call i64 @FUNC(i64 %4, i64 0, i64 2) %53 = call i64 @FUNC(i64 %4, i64 0) %54 = call i64 @FUNC(i64 %4, i64 0, i64 0) store i64 %54, i64* %rax.0.reg2mem br label LBL_11 LBL_10: %55 = add i64 %4, 12 %56 = inttoptr i64 %55 to i32* %57 = load i32, i32* %56, align 4 %58 = zext i32 %57 to i64 %59 = load %_IO_FILE*, %_IO_FILE** @gv_1, align 8 %60 = call i32 (%_IO_FILE*, i8*, ...) @fprintf(%_IO_FILE* %59, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @gv_2, i64 0, i64 0), i64 %58) call void @__assert_fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @gv_3, i64 0, i64 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @gv_4, i64 0, i64 0), i32 96, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @gv_5, i64 0, i64 0)) store i64 ptrtoint (i32* @0 to i64), 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 %8, { 0, 2, 1 } uselistorder i32* %sv_0, { 2, 1, 0, 3 } uselistorder i64 %4, { 0, 4, 7, 6, 5, 8, 9, 2, 3, 1, 11, 10, 12, 13 } uselistorder i64 %3, { 1, 0 } uselistorder i64* %rax.0.reg2mem, { 0, 1, 3, 4, 2, 5, 6 } uselistorder i64* %0, { 2, 1, 0 } uselistorder %_IO_FILE** @gv_1, { 1, 0 } uselistorder i64 (i64, i64, i64)* @ehci_set_state, { 2, 1, 0 } uselistorder i32 0, { 1, 2, 3, 4, 5, 0, 6 } uselistorder label LBL_11, { 1, 2, 0, 3, 4, 5 } uselistorder label LBL_5, { 1, 0 } }
0
BinRealVul
redisAsyncSetTimeout_13185
redisAsyncSetTimeout
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %rax.0.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = icmp eq i64* %arg1, null %2 = icmp eq i1 %1, false store i64 %0, i64* %rdi.0.reg2mem br i1 %2, label LBL_2, label LBL_1 LBL_1: %3 = call i64* @calloc(i32 1, i32 16) %4 = ptrtoint i64* %3 to i64 store i64 %4, i64* %arg1, align 8 store i64 1, i64* %rdi.0.reg2mem br label LBL_2 LBL_2: %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %5 = icmp eq i64 %rdi.0.reload, %arg2 %6 = icmp eq i1 %5, false %.pre = add i64 %rdi.0.reload, 8 %.pre1 = inttoptr i64 %.pre to i64* br i1 %6, label LBL_4, label LBL_3 LBL_3: %7 = load i64, i64* %.pre1, align 8 %8 = icmp eq i64 %7, %arg3 store i64 %arg3, i64* %rax.0.reg2mem br i1 %8, label LBL_5, label LBL_4 LBL_4: %9 = inttoptr i64 %rdi.0.reload to i64* store i64 %arg2, i64* %9, align 8 store i64 %arg3, i64* %.pre1, align 8 store i64 %arg2, 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 %rdi.0.reload, { 0, 2, 1 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1 } uselistorder i64 %arg3, { 2, 0, 1 } uselistorder i64 %arg2, { 0, 2, 1 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_4, { 1, 0 } }
1
BinRealVul
ff_combine_frame_16101
ff_combine_frame
define i64 @FUNC(i64* %arg1, i32 %arg2, i64* %arg3, i32* %arg4) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %sv_0.1.lcssa.reg2mem = alloca i64 %.reg2mem10 = alloca i32 %sv_0.13.reg2mem = alloca i32 %.reg2mem = alloca i32 %.pre-phi.reg2mem = alloca i32* %.pre-phi9.reg2mem = alloca i32* %rdi = alloca i64, align 8 %1 = load i64, i64* %0 %rdx = alloca i64, align 8 %2 = load i64, i64* %0 %rcx = alloca i64, align 8 %3 = load i64, i64* %0 %4 = ptrtoint i64* %arg1 to i64 %5 = trunc i64 %1 to i32 %6 = icmp eq i32 %5, 0 br i1 %6, label LBL_2, label LBL_1 LBL_1: %7 = add i64 %4, 8 %8 = inttoptr i64 %7 to i32* %9 = load i32, i32* %8, align 4 %10 = add i64 %4, 4 %11 = inttoptr i64 %10 to i32* %12 = load i32, i32* %11, align 4 %13 = zext i32 %9 to i64 %14 = zext i32 %arg2 to i64 %15 = zext i32 %12 to i64 %16 = and i64 %1, 4294967295 %17 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_0, i64 0, i64 0), i64 %16, i64 %15, i64 %14, i64 %13) %18 = add nuw nsw i64 %16, 3 %19 = inttoptr i64 %18 to i8* %20 = load i8, i8* %19, align 1 %21 = add nuw nsw i64 %16, 2 %22 = inttoptr i64 %21 to i8* %23 = load i8, i8* %22, align 1 %24 = add nuw nsw i64 %16, 1 %25 = inttoptr i64 %24 to i8* %26 = load i8, i8* %25, align 1 %27 = zext i8 %20 to i64 %28 = zext i8 %23 to i64 %29 = zext i8 %26 to i64 %30 = urem i64 %2, 256 %31 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64 %30, i64 %29, i64 %28, i64 %27) br label LBL_2 LBL_2: %32 = bitcast i64* %rdi to i32* %33 = icmp slt i32 %5, 0 %34 = icmp eq i1 %33, false %35 = icmp eq i1 %6, false %36 = icmp eq i1 %34, %35 br i1 %36, label LBL_4, label LBL_2.LBL_7_crit_edge LBL_3: %37 = trunc i64 %3 to i32 %.pre5 = bitcast i64* %rcx to i32* %.pre6 = add i64 %4, 8 %.pre8 = inttoptr i64 %.pre6 to i32* store i32* %.pre8, i32** %.pre-phi9.reg2mem store i32* %.pre5, i32** %.pre-phi.reg2mem store i32 %37, i32* %.reg2mem br label LBL_7 LBL_4: %38 = add i64 %4, 24 %39 = inttoptr i64 %38 to i64* %40 = add i64 %4, 12 %41 = inttoptr i64 %40 to i32* %42 = add i64 %4, 8 %43 = inttoptr i64 %42 to i32* %44 = bitcast i64* %arg1 to i32* br label LBL_5 LBL_5: %45 = load i64, i64* %39, align 8 %46 = load i32, i32* %41, align 4 %47 = add i32 %46, 1 store i32 %47, i32* %41, align 4 %48 = sext i32 %46 to i64 %49 = add i64 %45, %48 %50 = load i64, i64* %39, align 8 %51 = load i32, i32* %43, align 4 %52 = add i32 %51, 1 store i32 %52, i32* %43, align 4 %53 = sext i32 %51 to i64 %54 = add i64 %50, %53 %55 = inttoptr i64 %49 to i8* %56 = load i8, i8* %55, align 1 %57 = inttoptr i64 %54 to i8* store i8 %56, i8* %57, align 1 %58 = load i32, i32* %32, align 8 %59 = add i32 %58, -1 store i32 %59, i32* %44, align 4 %60 = icmp eq i32 %58, 0 %61 = icmp slt i32 %58, 0 %62 = icmp eq i1 %61, false %63 = icmp eq i1 %60, false %64 = icmp eq i1 %62, %63 br i1 %64, label LBL_5, label LBL_6 LBL_6: %.phi.trans.insert = bitcast i64* %rcx to i32* %.pre = load i32, i32* %.phi.trans.insert, align 8 store i32* %43, i32** %.pre-phi9.reg2mem store i32* %.phi.trans.insert, i32** %.pre-phi.reg2mem store i32 %.pre, i32* %.reg2mem br label LBL_7 LBL_7: %.reload = load i32, i32* %.reg2mem %.pre-phi.reload = load i32*, i32** %.pre-phi.reg2mem %.pre-phi9.reload = load i32*, i32** %.pre-phi9.reg2mem %65 = icmp eq i32 %.reload, 0 %66 = icmp eq i32 %arg2, -1 %67 = icmp eq i1 %66, %65 %sv_0.0 = select i1 %67, i32 0, i32 %arg2 %68 = load i32, i32* %.pre-phi9.reload, align 4 %69 = add i64 %4, 16 %70 = inttoptr i64 %69 to i32* store i32 %68, i32* %70, align 4 %71 = icmp eq i32 %sv_0.0, -1 %72 = icmp eq i1 %71, false br i1 %72, label LBL_10, label LBL_8 LBL_8: %73 = load i32, i32* %.pre-phi.reload, align 8 %74 = load i32, i32* %.pre-phi9.reload, align 4 %75 = add i32 %73, 16 %76 = add i32 %75, %74 %77 = zext i32 %76 to i64 %78 = add i64 %4, 20 %79 = add i64 %4, 24 %80 = inttoptr i64 %79 to i64* %81 = load i64, i64* %80, align 8 %82 = call i64 @FUNC(i64 %81, i64 %78, i64 %77) %83 = icmp eq i64 %82, 0 %84 = icmp eq i1 %83, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %84, label LBL_9, label LBL_19 LBL_9: store i64 %82, i64* %80, align 8 %85 = load i32, i32* %.pre-phi.reload, align 8 %86 = sext i32 %85 to i64 %87 = load i32, i32* %.pre-phi9.reload, align 4 %88 = sext i32 %87 to i64 %89 = add i64 %82, %88 %90 = inttoptr i64 %89 to i64* %91 = inttoptr i64 %86 to i64* %92 = call i64* @memcpy(i64* %90, i64* %91, i32 %85) %93 = load i32, i32* %.pre-phi9.reload, align 4 %94 = add i32 %93, %85 store i32 %94, i32* %.pre-phi9.reload, align 4 store i64 4294967295, i64* %rax.0.reg2mem br label LBL_19 LBL_10: %95 = load i32, i32* %.pre-phi9.reload, align 4 %96 = add i32 %95, %sv_0.0 %97 = add i64 %4, 12 %98 = inttoptr i64 %97 to i32* store i32 %96, i32* %98, align 4 store i32 %96, i32* %arg4, align 4 %99 = load i32, i32* %.pre-phi9.reload, align 4 %100 = icmp eq i32 %99, 0 br i1 %100, label LBL_13, label LBL_11 LBL_11: %101 = add i32 %sv_0.0, 16 %102 = add i32 %99, %101 %103 = zext i32 %102 to i64 %104 = add i64 %4, 20 %105 = add i64 %4, 24 %106 = inttoptr i64 %105 to i64* %107 = load i64, i64* %106, align 8 %108 = call i64 @FUNC(i64 %107, i64 %104, i64 %103) %109 = icmp eq i64 %108, 0 %110 = icmp eq i1 %109, false store i64 4294967284, i64* %rax.0.reg2mem br i1 %110, label LBL_12, label LBL_19 LBL_12: store i64 %108, i64* %106, align 8 %111 = sext i32 %101 to i64 %112 = load i32, i32* %.pre-phi9.reload, align 4 %113 = sext i32 %112 to i64 %114 = add i64 %108, %113 %115 = inttoptr i64 %114 to i64* %116 = inttoptr i64 %111 to i64* %117 = call i64* @memcpy(i64* %115, i64* %116, i32 %101) store i32 0, i32* %.pre-phi9.reload, align 4 %118 = load i64, i64* %106, align 8 store i64 %118, i64* %arg3, align 8 br label LBL_13 LBL_13: %119 = icmp slt i32 %sv_0.0, 0 br i1 %119, label LBL_15, label LBL_13.LBL_17_crit_edge LBL_14: %.pre4 = load i32, i32* %32, align 8 %phitmp = zext i32 %sv_0.0 to i64 store i32 %.pre4, i32* %.reg2mem10 store i64 %phitmp, i64* %sv_0.1.lcssa.reg2mem br label LBL_17 LBL_15: %120 = add i64 %4, 4 %121 = inttoptr i64 %120 to i32* %122 = add i64 %4, 24 %123 = inttoptr i64 %122 to i64* %124 = add i64 %4, 32 %125 = inttoptr i64 %124 to i64* %126 = bitcast i64* %arg1 to i32* store i32 %sv_0.0, i32* %sv_0.13.reg2mem br label LBL_16 LBL_16: %sv_0.13.reload = load i32, i32* %sv_0.13.reg2mem %127 = load i32, i32* %121, align 4 %128 = mul i32 %127, 256 %129 = load i64, i64* %123, align 8 %130 = load i32, i32* %70, align 4 %131 = add i32 %130, %sv_0.13.reload %132 = sext i32 %131 to i64 %133 = add i64 %129, %132 %134 = inttoptr i64 %133 to i8* %135 = load i8, i8* %134, align 1 %136 = zext i8 %135 to i32 %137 = or i32 %128, %136 store i32 %137, i32* %121, align 4 %138 = load i64, i64* %125, align 8 %139 = mul i64 %138, 256 %140 = load i64, i64* %123, align 8 %141 = load i32, i32* %70, align 4 %142 = add i32 %141, %sv_0.13.reload %143 = sext i32 %142 to i64 %144 = add i64 %140, %143 %145 = inttoptr i64 %144 to i8* %146 = load i8, i8* %145, align 1 %147 = zext i8 %146 to i64 %148 = or i64 %139, %147 store i64 %148, i64* %125, align 8 %149 = load i32, i32* %32, align 8 %150 = add i32 %149, 1 store i32 %150, i32* %126, align 4 %151 = add nsw i32 %sv_0.13.reload, 1 %exitcond = icmp eq i32 %151, 0 store i32 %151, i32* %sv_0.13.reg2mem store i32 %149, i32* %.reg2mem10 store i64 0, i64* %sv_0.1.lcssa.reg2mem br i1 %exitcond, label LBL_17, label LBL_16 LBL_17: %.reload11 = load i32, i32* %.reg2mem10 %152 = icmp eq i32 %.reload11, 0 store i64 0, i64* %rax.0.reg2mem br i1 %152, label LBL_19, label LBL_18 LBL_18: %sv_0.1.lcssa.reload = load i64, i64* %sv_0.1.lcssa.reg2mem %153 = load i32, i32* %.pre-phi9.reload, align 4 %154 = add i64 %4, 4 %155 = inttoptr i64 %154 to i32* %156 = load i32, i32* %155, align 4 %157 = zext i32 %153 to i64 %158 = zext i32 %156 to i64 %159 = zext i32 %.reload11 to i64 %160 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @gv_0, i64 0, i64 0), i64 %159, i64 %158, i64 %sv_0.1.lcssa.reload, i64 %157) %161 = add nuw nsw i64 %159, 3 %162 = inttoptr i64 %161 to i8* %163 = load i8, i8* %162, align 1 %164 = add nuw nsw i64 %159, 2 %165 = inttoptr i64 %164 to i8* %166 = load i8, i8* %165, align 1 %167 = add nuw nsw i64 %159, 1 %168 = inttoptr i64 %167 to i8* %169 = load i8, i8* %168, align 1 %170 = bitcast i64* %rdx to i8* %171 = load i8, i8* %170, align 8 %172 = zext i8 %163 to i64 %173 = zext i8 %166 to i64 %174 = zext i8 %169 to i64 %175 = zext i8 %171 to i64 %176 = call i64 @FUNC(i64 0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @gv_1, i64 0, i64 0), i64 %175, i64 %174, i64 %173, i64 %172) store i64 0, i64* %rax.0.reg2mem br label LBL_19 LBL_19: %rax.0.reload = load i64, i64* %rax.0.reg2mem ret i64 %rax.0.reload uselistorder i32 %sv_0.13.reload, { 0, 2, 1 } uselistorder i32 %101, { 2, 1, 0 } uselistorder i32 %sv_0.0, { 0, 2, 3, 5, 1, 4 } uselistorder i32* %.pre-phi9.reload, { 6, 4, 5, 7, 8, 1, 0, 2, 3, 9 } uselistorder i32* %32, { 1, 0, 2 } uselistorder i64 %16, { 3, 2, 1, 0 } uselistorder i64 %4, { 5, 6, 8, 7, 9, 10, 11, 3, 4, 12, 13, 15, 14, 0, 2, 1 } uselistorder i64* %rcx, { 1, 0 } uselistorder i64 %1, { 1, 0 } uselistorder i32* %sv_0.13.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 2, 1, 3, 5, 4 } uselistorder i64* %0, { 2, 1, 0 } uselistorder i64 32, { 1, 0 } uselistorder i64* (i64*, i64*, i32)* @memcpy, { 1, 0 } uselistorder i64 (i64, i64, i64)* @av_fast_realloc, { 1, 0 } uselistorder i1 false, { 3, 4, 5, 6, 2, 0, 1 } uselistorder i64 (i64, i8*, i64, i64, i64, i64)* @av_dlog, { 3, 2, 1, 0 } uselistorder i64 4, { 1, 0, 2 } uselistorder i64 8, { 1, 0, 2 } uselistorder i64* %arg1, { 1, 0, 2 } uselistorder label LBL_19, { 1, 0, 2, 4, 3 } uselistorder label LBL_13, { 1, 0 } uselistorder label LBL_7, { 1, 0 } uselistorder label LBL_5, { 1, 0 } uselistorder label LBL_2, { 1, 0 } }
1
BinRealVul
colo_packet_compare_other_2300
colo_packet_compare_other
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 %3 = ptrtoint i64* %arg1 to i64 %sv_0 = alloca i64, align 8 %sv_1 = alloca i64, align 8 %sv_2 = alloca i64, align 8 %sv_3 = alloca i64, align 8 %4 = call i64 @FUNC(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @gv_0, i64 0, i64 0)) %5 = call i64 @FUNC(i64 1) %6 = trunc i64 %5 to i32 %7 = icmp eq i32 %6, 0 br i1 %7, label LBL_2, label LBL_1 LBL_1: %8 = trunc i64 %1 to i32 %9 = trunc i64 %2 to i32 %10 = insertvalue %in_addr undef, i32 %9, 0 %11 = call i8* @inet_ntoa(%in_addr %10) %12 = ptrtoint i8* %11 to i64 %13 = bitcast i64* %sv_3 to i8* %14 = call i8* @strcpy(i8* nonnull %13, i8* %11) %15 = add i64 %12, 4 %16 = inttoptr i64 %15 to i32* %17 = load i32, i32* %16, align 4 %18 = insertvalue %in_addr undef, i32 %17, 0 %19 = call i8* @inet_ntoa(%in_addr %18) %20 = bitcast i64* %sv_2 to i8* %21 = call i8* @strcpy(i8* nonnull %20, i8* %19) %22 = insertvalue %in_addr undef, i32 %8, 0 %23 = call i8* @inet_ntoa(%in_addr %22) %24 = ptrtoint i64* %sv_1 to i64 %25 = bitcast i64* %sv_1 to i8* %26 = call i8* @strcpy(i8* nonnull %25, i8* %23) %27 = or i64 %24, 4 %28 = inttoptr i64 %27 to i32* %29 = load i32, i32* %28, align 4 %30 = insertvalue %in_addr undef, i32 %29, 0 %31 = call i8* @inet_ntoa(%in_addr %30) %32 = bitcast i64* %sv_0 to i8* %33 = call i8* @strcpy(i8* nonnull %32, i8* %31) %34 = add i64 %3, 8 %35 = inttoptr i64 %34 to i32* %36 = load i32, i32* %35, align 4 %37 = add i64 %2, 8 %38 = inttoptr i64 %37 to i32* %39 = load i32, i32* %38, align 4 %40 = zext i32 %39 to i64 %41 = call i64 @FUNC(i64 %40, i64* nonnull %sv_3, i64* nonnull %sv_2, i32 %36, i64* nonnull %sv_1, i64* nonnull %sv_0) br label LBL_2 LBL_2: %42 = call i64 @FUNC(i64 %2, i64 %3, i64 0) ret i64 %42 uselistorder i64 %3, { 1, 0 } uselistorder i64 %2, { 2, 1, 0 } uselistorder i8* (i8*, i8*)* @strcpy, { 3, 2, 1, 0 } uselistorder i8* (%in_addr)* @inet_ntoa, { 3, 2, 1, 0 } uselistorder i64 1, { 1, 0 } }
0
BinRealVul
write_target_close_16618
write_target_close
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = add i64 %0, 8 %3 = inttoptr i64 %2 to i64* %4 = load i64, i64* %3, align 8 %5 = inttoptr i64 %4 to i64* call void @free(i64* %5) ret i64 ptrtoint (i32* @0 to i64) }
1
BinRealVul
lgff_init_19030
lgff_init
define i64 @FUNC(i64* %arg1) local_unnamed_addr { LBL_0: %0 = alloca i64 %rax.0.reg2mem = alloca i64 %rcx.0.lcssa.reg2mem = alloca i64 %storemerge3.reg2mem = alloca i32 %.reg2mem6 = alloca i64 %.reg2mem = alloca i16 %sv_0.0.reg2mem = 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 %2, i64 0, i64 0, i64 0, i64 7) %7 = trunc i64 %6 to i32 %8 = icmp eq i32 %7, 0 %9 = icmp eq i1 %8, false store i64 19, i64* %rax.0.reg2mem br i1 %9, label LBL_1, label LBL_12 LBL_1: %10 = inttoptr i64 %5 to i32* %11 = load i32, i32* %10, align 4 %.pre = load i32, i32* bitcast (i32** @gv_0 to i32*), align 8 %12 = icmp eq i32 %11, %.pre %13 = icmp eq i1 %12, false store i64 ptrtoint (i64* @gv_1 to i64), i64* %sv_0.0.reg2mem br i1 %13, label LBL_4, label LBL_2 LBL_2: %14 = add i64 %5, 4 %15 = inttoptr i64 %14 to i32* %16 = load i32, i32* %15, align 4 %17 = load i32, i32* bitcast (i32** @gv_2 to i32*), align 8 %18 = icmp eq i32 %16, %17 %19 = icmp eq i1 %18, false store i64 ptrtoint (i64* @gv_1 to i64), i64* %sv_0.0.reg2mem br i1 %19, label LBL_4, label LBL_3 LBL_3: %20 = load i64*, i64** @gv_3, align 8 %21 = ptrtoint i64* %20 to i64 store i64 %21, i64* %sv_0.0.reg2mem br label LBL_4 LBL_4: %sv_0.0.reload = load i64, i64* %sv_0.0.reg2mem %22 = inttoptr i64 %sv_0.0.reload to i16* %23 = load i16, i16* %22, align 2 %24 = icmp slt i16 %23, 0 %25 = icmp eq i1 %24, false store i64 0, i64* %rcx.0.lcssa.reg2mem br i1 %25, label LBL_5, label LBL_7 LBL_5: %26 = add i64 %5, 8 store i16 %23, i16* %.reg2mem store i64 0, i64* %.reg2mem6 store i32 0, i32* %storemerge3.reg2mem br label LBL_6 LBL_6: %storemerge3.reload = load i32, i32* %storemerge3.reg2mem %.reload7 = load i64, i64* %.reg2mem6 %.reload = load i16, i16* %.reg2mem %27 = sext i16 %.reload to i64 %28 = and i64 %27, 4294967295 %29 = call i64 @FUNC(i64 %28, i64 %26) %30 = add i32 %storemerge3.reload, 1 %31 = sext i32 %30 to i64 %32 = mul i64 %31, 2 %33 = add i64 %32, %sv_0.0.reload %34 = inttoptr i64 %33 to i16* %35 = load i16, i16* %34, align 2 %36 = icmp slt i16 %35, 0 %37 = icmp eq i1 %36, false store i16 %35, i16* %.reg2mem store i64 %32, i64* %.reg2mem6 store i32 %30, i32* %storemerge3.reg2mem store i64 %.reload7, i64* %rcx.0.lcssa.reg2mem br i1 %37, label LBL_6, label LBL_7 LBL_7: %38 = call i64 @FUNC(i64 %5, i64 0, i64 4198760) %39 = trunc i64 %38 to i32 %40 = icmp eq i32 %39, 0 br i1 %40, label LBL_9, label LBL_8 LBL_8: %41 = and i64 %38, 4294967295 store i64 %41, i64* %rax.0.reg2mem br label LBL_12 LBL_9: %rcx.0.lcssa.reload = load i64, i64* %rcx.0.lcssa.reg2mem %42 = add i64 %5, 8 %43 = call i64 @FUNC(i64 0, i64 %42) %44 = trunc i64 %43 to i32 %45 = icmp eq i32 %44, 0 br i1 %45, label LBL_11, label LBL_10 LBL_10: %46 = add i64 %5, 16 %47 = inttoptr i64 %46 to i64* %48 = load i64, i64* %47, align 8 %49 = inttoptr i64 %48 to i64* store i64 4198771, i64* %49, align 8 br label LBL_11 LBL_11: %50 = call i64 @FUNC(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @gv_4, i64 0, i64 0), i64 %42, i64 4198760, i64 %rcx.0.lcssa.reload, i64 7, i64 %1) store i64 0, 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 %sv_0.0.reload, { 1, 0 } uselistorder i64 %5, { 1, 2, 3, 4, 0, 5 } uselistorder i64 %2, { 1, 0 } uselistorder i64* %sv_0.0.reg2mem, { 0, 3, 1, 2 } uselistorder i16* %.reg2mem, { 1, 0, 2 } uselistorder i64* %.reg2mem6, { 1, 0, 2 } uselistorder i32* %storemerge3.reg2mem, { 1, 0, 2 } uselistorder i64* %rax.0.reg2mem, { 0, 3, 2, 1 } uselistorder i16 0, { 1, 0 } uselistorder i64* @gv_1, { 1, 0 } uselistorder i1 false, { 1, 0, 2, 3, 4, 5 } uselistorder i32 0, { 1, 2, 0, 3 } uselistorder label LBL_12, { 1, 2, 0 } uselistorder label LBL_6, { 1, 0 } uselistorder label LBL_4, { 2, 0, 1 } }
1
BinRealVul
virtio_queue_set_align_17261
virtio_queue_set_align
define i64 @FUNC(i64* %arg1, i64 %arg2, i64 %arg3) local_unnamed_addr { LBL_0: %storemerge.reg2mem = alloca i64 %rdi.0.reg2mem = alloca i64 %0 = ptrtoint i64* %arg1 to i64 %1 = call i64 @FUNC(i64 %0) %2 = call i64 @FUNC(i64 %1) %3 = call i64 @FUNC(i64 %0, i64 1) %4 = trunc i64 %3 to i32 %5 = icmp eq i32 %4, 0 br i1 %5, label LBL_2, label LBL_1 LBL_1: %6 = call i64 @FUNC(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @gv_0, i64 0, i64 0)) store i64 %6, i64* %storemerge.reg2mem br label LBL_5 LBL_2: %7 = inttoptr i64 %2 to i32* %8 = load i32, i32* %7, align 4 %9 = icmp eq i32 %8, 0 %10 = icmp eq i1 %9, false store i64 %0, i64* %rdi.0.reg2mem br i1 %10, label LBL_4, label LBL_3 LBL_3: call void @__assert_fail(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @gv_1, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @gv_2, i64 0, i64 0), i32 52, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @gv_3, i64 0, i64 0)) store i64 ptrtoint ([32 x i8]* @gv_1 to i64), i64* %rdi.0.reg2mem br label LBL_4 LBL_4: %sext = mul i64 %arg2, 4294967296 %11 = and i64 %arg2, 4294967295 %rdi.0.reload = load i64, i64* %rdi.0.reg2mem %12 = ashr exact i64 %sext, 30 %13 = add i64 %rdi.0.reload, %12 %14 = trunc i64 %arg3 to i32 %15 = inttoptr i64 %13 to i32* store i32 %14, i32* %15, align 4 %16 = call i64 @FUNC(i64 %0, i64 %11) store i64 %16, i64* %storemerge.reg2mem br label LBL_5 LBL_5: %storemerge.reload = load i64, i64* %storemerge.reg2mem ret i64 %storemerge.reload uselistorder i64 %0, { 1, 0, 2, 3 } uselistorder i64* %storemerge.reg2mem, { 0, 2, 1 } uselistorder [32 x i8]* @gv_1, { 1, 0 } uselistorder i64 %arg2, { 1, 0 } }
1