; LLVM IR from sp-nitech/SPTK :: src/filter/median_filter.ll (ZN4sptk12MedianFilter3GetEPSt6vectorIdSaIdEE)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.sptk::MedianFilter" = type <{ %"class.sptk::InputSourceInterface", i32, i32, ptr, i8, i8, [6 x i8], double, i8, [7 x i8], %"class.std::vector", %"class.std::vector", %"class.std::deque", i32, [4 x i8] }>
%"class.sptk::InputSourceInterface" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::vector<double>, std::allocator<std::vector<double>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::vector<double>, std::allocator<std::vector<double>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::vector<double>, std::allocator<std::vector<double>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::vector<double>, std::allocator<std::vector<double>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4sptk12MedianFilter7ForwardEv(ptr noundef nonnull align 8 dereferenceable(180)) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk12MedianFilter3GetEPSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(180) %0, ptr noundef %1) unnamed_addr #0 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.std::_Deque_iterator", align 8
  %13 = alloca %"struct.std::_Deque_iterator", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8
  %24 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 8
  %25 = load i8, ptr %24, align 8, !tbaa !9, !range !25, !noundef !26
  %26 = trunc i8 %25 to i1
  br i1 %26, label %27, label %30

27:                                               ; preds = %2
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = icmp eq ptr null, %28
  br i1 %29, label %30, label %31

30:                                               ; preds = %27, %2
  store i1 false, ptr %3, align 1
  br label %213

31:                                               ; preds = %27
  %32 = call noundef zeroext i1 @_ZN4sptk12MedianFilter7ForwardEv(ptr noundef nonnull align 8 dereferenceable(180) %23)
  br i1 %32, label %34, label %33

33:                                               ; preds = %31
  store i1 false, ptr %3, align 1
  br label %213

34:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %35 = load ptr, ptr %23, align 8, !tbaa !27
  %36 = getelementptr inbounds ptr, ptr %35, i64 2
  %37 = load ptr, ptr %36, align 8
  %38 = call noundef i32 %37(ptr noundef nonnull align 8 dereferenceable(180) %23)
  store i32 %38, ptr %6, align 4, !tbaa !29
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #5
  %41 = load i32, ptr %6, align 4, !tbaa !29
  %42 = sext i32 %41 to i64
  %43 = icmp ne i64 %40, %42
  br i1 %43, label %44, label %48

44:                                               ; preds = %34
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = load i32, ptr %6, align 4, !tbaa !29
  %47 = sext i32 %46 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %47)
  br label %48

48:                                               ; preds = %44, %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !29
  br label %49

49:                                               ; preds = %192, %48
  %50 = load i32, ptr %7, align 4, !tbaa !29
  %51 = load i32, ptr %6, align 4, !tbaa !29
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %195

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %55 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 12
  store ptr %55, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #5
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNSt5dequeISt6vectorIdSaIdEESaIS2_EE5beginEv(ptr dead_on_unwind writable sret(%"struct.std::_Deque_iterator") align 8 %12, ptr noundef nonnull align 8 dereferenceable(80) %56) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNSt5dequeISt6vectorIdSaIdEESaIS2_EE3endEv(ptr dead_on_unwind writable sret(%"struct.std::_Deque_iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(80) %57) #5
  br label %58

58:                                               ; preds = %117, %54
  %59 = call noundef zeroext i1 @_ZStneRKSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_ES7_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br i1 %59, label %61, label %60

60:                                               ; preds = %58
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %119

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_EdeEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  store ptr %62, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %63 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 4
  %64 = load i8, ptr %63, align 8, !tbaa !30, !range !25, !noundef !26
  %65 = trunc i8 %64 to i1
  br i1 %65, label %66, label %68

66:                                               ; preds = %61
  %67 = load i32, ptr %7, align 4, !tbaa !29
  br label %69

68:                                               ; preds = %61
  br label %69

69:                                               ; preds = %68, %66
  %70 = phi i32 [ %67, %66 ], [ 0, %68 ]
  store i32 %70, ptr %15, align 4, !tbaa !29
  br label %71

71:                                               ; preds = %113, %69
  %72 = load i32, ptr %15, align 4, !tbaa !29
  %73 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 4
  %74 = load i8, ptr %73, align 8, !tbaa !30, !range !25, !noundef !26
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %78

76:                                               ; preds = %71
  %77 = load i32, ptr %7, align 4, !tbaa !29
  br label %81

78:                                               ; preds = %71
  %79 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 1
  %80 = load i32, ptr %79, align 8, !tbaa !31
  br label %81

81:                                               ; preds = %78, %76
  %82 = phi i32 [ %77, %76 ], [ %80, %78 ]
  %83 = icmp sle i32 %72, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %81
  store i32 7, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %116

85:                                               ; preds = %81
  %86 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 5
  %87 = load i8, ptr %86, align 1, !tbaa !32, !range !25, !noundef !26
  %88 = trunc i8 %87 to i1
  br i1 %88, label %89, label %101

89:                                               ; preds = %85
  %90 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 7
  %91 = load double, ptr %90, align 8, !tbaa !33
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = load i32, ptr %15, align 4, !tbaa !29
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %94) #5
  %96 = load double, ptr %95, align 8, !tbaa !34
  %97 = fcmp oeq double %91, %96
  br i1 %97, label %98, label %101

98:                                               ; preds = %89
  %99 = load i32, ptr %9, align 4, !tbaa !29
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %9, align 4, !tbaa !29
  br label %112

101:                                              ; preds = %89, %85
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = load i32, ptr %15, align 4, !tbaa !29
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %102, i64 noundef %104) #5
  %106 = load double, ptr %105, align 8, !tbaa !34
  %107 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 11
  %108 = load i32, ptr %10, align 4, !tbaa !29
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %10, align 4, !tbaa !29
  %110 = sext i32 %108 to i64
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %110) #5
  store double %106, ptr %111, align 8, !tbaa !34
  br label %112

112:                                              ; preds = %101, %98
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %15, align 4, !tbaa !29
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %15, align 4, !tbaa !29
  br label %71, !llvm.loop !35

116:                                              ; preds = %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %117

117:                                              ; preds = %116
  %118 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_EppEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  br label %58

119:                                              ; preds = %60
  %120 = load i32, ptr %10, align 4, !tbaa !29
  %121 = load i32, ptr %9, align 4, !tbaa !29
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %123, label %130

123:                                              ; preds = %119
  %124 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 7
  %125 = load double, ptr %124, align 8, !tbaa !33
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = load i32, ptr %7, align 4, !tbaa !29
  %128 = sext i32 %127 to i64
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %126, i64 noundef %128) #5
  store double %125, ptr %129, align 8, !tbaa !34
  store i32 4, ptr %8, align 4
  br label %189

130:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %131 = load i32, ptr %10, align 4, !tbaa !29
  %132 = sdiv i32 %131, 2
  store i32 %132, ptr %16, align 4, !tbaa !29
  %133 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 11
  %134 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %133) #5
  %135 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %134, ptr %135, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %136 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 11
  %137 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #5
  %138 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %137, ptr %138, align 8
  %139 = load i32, ptr %16, align 4, !tbaa !29
  %140 = sext i32 %139 to i64
  %141 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %20, i64 noundef %140) #5
  %142 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %141, ptr %142, align 8
  %143 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %19, i64 noundef 1) #5
  %144 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %143, ptr %144, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %145 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 11
  %146 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %145) #5
  %147 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %146, ptr %147, align 8
  %148 = load i32, ptr %10, align 4, !tbaa !29
  %149 = sext i32 %148 to i64
  %150 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %22, i64 noundef %149) #5
  %151 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %150, ptr %151, align 8
  %152 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  %153 = load ptr, ptr %152, align 8
  %154 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8
  %156 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8
  call void @_ZSt12partial_sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_S7_(ptr %153, ptr %155, ptr %157)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %158 = load i32, ptr %10, align 4, !tbaa !29
  %159 = call noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef %158)
  br i1 %159, label %160, label %178

160:                                              ; preds = %130
  %161 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 11
  %162 = load i32, ptr %16, align 4, !tbaa !29
  %163 = sub nsw i32 %162, 1
  %164 = sext i32 %163 to i64
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %161, i64 noundef %164) #5
  %166 = load double, ptr %165, align 8, !tbaa !34
  %167 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 11
  %168 = load i32, ptr %16, align 4, !tbaa !29
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %169) #5
  %171 = load double, ptr %170, align 8, !tbaa !34
  %172 = fadd double %166, %171
  %173 = fmul double 5.000000e-01, %172
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = load i32, ptr %7, align 4, !tbaa !29
  %176 = sext i32 %175 to i64
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %174, i64 noundef %176) #5
  store double %173, ptr %177, align 8, !tbaa !34
  br label %188

178:                                              ; preds = %130
  %179 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 11
  %180 = load i32, ptr %16, align 4, !tbaa !29
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %181) #5
  %183 = load double, ptr %182, align 8, !tbaa !34
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = load i32, ptr %7, align 4, !tbaa !29
  %186 = sext i32 %185 to i64
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef %186) #5
  store double %183, ptr %187, align 8, !tbaa !34
  br label %188

188:                                              ; preds = %178, %160
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  store i32 0, ptr %8, align 4
  br label %189

189:                                              ; preds = %188, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %190 = load i32, ptr %8, align 4
  switch i32 %190, label %215 [
    i32 0, label %191
    i32 4, label %192
  ]

191:                                              ; preds = %189
  br label %192

192:                                              ; preds = %191, %189
  %193 = load i32, ptr %7, align 4, !tbaa !29
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %7, align 4, !tbaa !29
  br label %49, !llvm.loop !37

195:                                              ; preds = %53
  %196 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 13
  %197 = load i32, ptr %196, align 8, !tbaa !38
  %198 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 2
  %199 = load i32, ptr %198, align 4, !tbaa !39
  %200 = sdiv i32 %199, 2
  %201 = icmp slt i32 %197, %200
  br i1 %201, label %210, label %202

202:                                              ; preds = %195
  %203 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 2
  %204 = load i32, ptr %203, align 4, !tbaa !39
  %205 = add nsw i32 %204, 1
  %206 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 12
  %207 = call noundef i64 @_ZNKSt5dequeISt6vectorIdSaIdEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %206) #5
  %208 = trunc i64 %207 to i32
  %209 = icmp sle i32 %205, %208
  br i1 %209, label %210, label %212

210:                                              ; preds = %202, %195
  %211 = getelementptr inbounds %"class.sptk::MedianFilter", ptr %23, i32 0, i32 12
  call void @_ZNSt5dequeISt6vectorIdSaIdEESaIS2_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %211) #5
  br label %212

212:                                              ; preds = %210, %202
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %213

213:                                              ; preds = %212, %33, %30
  %214 = load i1, ptr %3, align 1
  ret i1 %214

215:                                              ; preds = %189
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeISt6vectorIdSaIdEESaIS2_EE5beginEv(ptr dead_on_unwind noalias writable sret(%"struct.std::_Deque_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeISt6vectorIdSaIdEESaIS2_EE3endEv(ptr dead_on_unwind noalias writable sret(%"struct.std::_Deque_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_ES7_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_EdeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_EppEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt12partial_sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_S7_(ptr, ptr, ptr) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2

declare noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt5dequeISt6vectorIdSaIdEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeISt6vectorIdSaIdEESaIS2_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 40}
!10 = !{!"_ZTSN4sptk12MedianFilterE", !11, i64 0, !12, i64 8, !12, i64 12, !6, i64 16, !13, i64 24, !13, i64 25, !14, i64 32, !13, i64 40, !15, i64 48, !15, i64 72, !19, i64 96, !12, i64 176}
!11 = !{!"_ZTSN4sptk20InputSourceInterfaceE"}
!12 = !{!"int", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt5dequeISt6vectorIdSaIdEESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt11_Deque_baseISt6vectorIdSaIdEESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt11_Deque_baseISt6vectorIdSaIdEESaIS2_EE11_Deque_implE", !22, i64 0}
!22 = !{!"_ZTSNSt11_Deque_baseISt6vectorIdSaIdEESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !23, i64 8, !24, i64 16, !24, i64 48}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!28, !28, i64 0}
!28 = !{!"vtable pointer", !8, i64 0}
!29 = !{!12, !12, i64 0}
!30 = !{!10, !13, i64 24}
!31 = !{!10, !12, i64 8}
!32 = !{!10, !13, i64 25}
!33 = !{!10, !14, i64 32}
!34 = !{!14, !14, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}
!38 = !{!10, !12, i64 176}
!39 = !{!10, !12, i64 12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4sptk12MedianFilter7ForwardEv(ptr noundef nonnull align 8 dereferenceable(180)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk12MedianFilter3GetEPSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(180) %0, ptr noundef %1) unnamed_addr #0 align 2 {
  %3 = alloca %"struct.std::_Deque_iterator", align 8
  %4 = alloca %"struct.std::_Deque_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = load i8, ptr %8, align 8, !tbaa !5, !range !24, !noundef !25
  %10 = trunc nuw i8 %9 to i1
  %11 = icmp ne ptr %1, null
  %or.cond.not = and i1 %11, %10
  br i1 %or.cond.not, label %12, label %102

12:                                               ; preds = %2
  %13 = tail call noundef zeroext i1 @_ZN4sptk12MedianFilter7ForwardEv(ptr noundef nonnull align 8 dereferenceable(180) %0)
  br i1 %13, label %14, label %102

14:                                               ; preds = %12
  %15 = load ptr, ptr %0, align 8, !tbaa !26
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %17 = load ptr, ptr %16, align 8
  %18 = tail call noundef i32 %17(ptr noundef nonnull align 8 dereferenceable(180) %0)
  %19 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %20 = sext i32 %18 to i64
  %.not = icmp eq i64 %19, %20
  br i1 %.not, label %22, label %21

21:                                               ; preds = %14
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %20)
  br label %22

22:                                               ; preds = %21, %14
  %23 = icmp sgt i32 %18, 0
  br i1 %23, label %.lr.ph64, label %._crit_edge65

.lr.ph64:                                         ; preds = %22
  %24 = getelementptr inbounds i8, ptr %0, i64 96
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  %27 = getelementptr inbounds i8, ptr %0, i64 25
  %28 = getelementptr inbounds i8, ptr %0, i64 32
  %29 = getelementptr inbounds i8, ptr %0, i64 72
  %wide.trip.count = zext nneg i32 %18 to i64
  br label %36

._crit_edge65:                                    ; preds = %94, %22
  %30 = getelementptr inbounds i8, ptr %0, i64 176
  %31 = load i32, ptr %30, align 8, !tbaa !28
  %32 = getelementptr inbounds i8, ptr %0, i64 12
  %33 = load i32, ptr %32, align 4, !tbaa !29
  %34 = sdiv i32 %33, 2
  %35 = icmp slt i32 %31, %34
  br i1 %35, label %100, label %96

36:                                               ; preds = %.lr.ph64, %94
  %indvars.iv68 = phi i64 [ 0, %.lr.ph64 ], [ %indvars.iv.next69, %94 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @_ZNSt5dequeISt6vectorIdSaIdEESaIS2_EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"struct.std::_Deque_iterator") align 8 %3, ptr noundef nonnull align 8 dereferenceable(80) %24) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @_ZNSt5dequeISt6vectorIdSaIdEESaIS2_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"struct.std::_Deque_iterator") align 8 %4, ptr noundef nonnull align 8 dereferenceable(80) %24) #5
  %37 = call noundef zeroext i1 @_ZStneRKSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_ES7_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br i1 %37, label %.lr.ph58.preheader, label %._crit_edge59.thread

._crit_edge59.thread:                             ; preds = %36
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  br label %71

.lr.ph58.preheader:                               ; preds = %36
  %38 = trunc nuw nsw i64 %indvars.iv68 to i32
  br label %.lr.ph58

._crit_edge59:                                    ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  %39 = icmp slt i32 %.143.lcssa, %.1.lcssa
  br i1 %39, label %69, label %71

.lr.ph58:                                         ; preds = %.lr.ph58.preheader, %._crit_edge
  %.04056 = phi i32 [ %.1.lcssa, %._crit_edge ], [ 0, %.lr.ph58.preheader ]
  %.04255 = phi i32 [ %.143.lcssa, %._crit_edge ], [ 0, %.lr.ph58.preheader ]
  %40 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_EdeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  %41 = load i8, ptr %25, align 8, !tbaa !30, !range !24, !noundef !25
  %42 = trunc nuw i8 %41 to i1
  %43 = select i1 %42, i32 %38, i32 0
  %44 = load i32, ptr %26, align 8
  %.not495066 = icmp sge i32 %44, %43
  %.not4950.not = select i1 %42, i1 true, i1 %.not495066
  br i1 %.not4950.not, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.lr.ph58
  %45 = zext nneg i32 %43 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %63, %.lr.ph58
  %.143.lcssa = phi i32 [ %.04255, %.lr.ph58 ], [ %.244, %63 ]
  %.1.lcssa = phi i32 [ %.04056, %.lr.ph58 ], [ %.2, %63 ]
  %46 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_EppEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  %47 = call noundef zeroext i1 @_ZStneRKSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_ES7_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br i1 %47, label %.lr.ph58, label %._crit_edge59

.lr.ph:                                           ; preds = %.lr.ph.preheader, %63
  %indvars.iv = phi i64 [ %45, %.lr.ph.preheader ], [ %indvars.iv.next, %63 ]
  %.153 = phi i32 [ %.04056, %.lr.ph.preheader ], [ %.2, %63 ]
  %.14351 = phi i32 [ %.04255, %.lr.ph.preheader ], [ %.244, %63 ]
  %48 = load i8, ptr %27, align 1, !tbaa !31, !range !24, !noundef !25
  %49 = trunc nuw i8 %48 to i1
  br i1 %49, label %50, label %57

50:                                               ; preds = %.lr.ph
  %51 = load double, ptr %28, align 8, !tbaa !32
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %indvars.iv) #5
  %53 = load double, ptr %52, align 8, !tbaa !33
  %54 = fcmp oeq double %51, %53
  br i1 %54, label %55, label %57

55:                                               ; preds = %50
  %56 = add nsw i32 %.153, 1
  br label %63

57:                                               ; preds = %50, %.lr.ph
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %indvars.iv) #5
  %59 = load double, ptr %58, align 8, !tbaa !33
  %60 = add nsw i32 %.14351, 1
  %61 = sext i32 %.14351 to i64
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %61) #5
  store double %59, ptr %62, align 8, !tbaa !33
  br label %63

63:                                               ; preds = %55, %57
  %.244 = phi i32 [ %.14351, %55 ], [ %60, %57 ]
  %.2 = phi i32 [ %56, %55 ], [ %.153, %57 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %64 = load i8, ptr %25, align 8, !tbaa !30, !range !24, !noundef !25
  %65 = trunc nuw i8 %64 to i1
  %66 = load i32, ptr %26, align 8
  %67 = select i1 %65, i32 %38, i32 %66
  %68 = sext i32 %67 to i64
  %.not49.not = icmp slt i64 %indvars.iv, %68
  br i1 %.not49.not, label %.lr.ph, label %._crit_edge, !llvm.loop !34

69:                                               ; preds = %._crit_edge59
  %70 = load double, ptr %28, align 8, !tbaa !32
  br label %94

71:                                               ; preds = %._crit_edge59.thread, %._crit_edge59
  %.042.lcssa73 = phi i32 [ 0, %._crit_edge59.thread ], [ %.143.lcssa, %._crit_edge59 ]
  %72 = sdiv i32 %.042.lcssa73, 2
  %73 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %74 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  store ptr %74, ptr %6, align 8
  %75 = sext i32 %72 to i64
  %76 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %75) #5
  store ptr %76, ptr %5, align 8
  %77 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef 1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %78 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  store ptr %78, ptr %7, align 8
  %79 = sext i32 %.042.lcssa73 to i64
  %80 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %79) #5
  call void @_ZSt12partial_sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_S7_(ptr %73, ptr %77, ptr %80)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %81 = call noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef %.042.lcssa73)
  br i1 %81, label %82, label %91

82:                                               ; preds = %71
  %83 = add nsw i32 %72, -1
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %84) #5
  %86 = load double, ptr %85, align 8, !tbaa !33
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %75) #5
  %88 = load double, ptr %87, align 8, !tbaa !33
  %89 = fadd double %86, %88
  %90 = fmul double %89, 5.000000e-01
  br label %94

91:                                               ; preds = %71
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %75) #5
  %93 = load double, ptr %92, align 8, !tbaa !33
  br label %94

94:                                               ; preds = %82, %91, %69
  %.sink = phi double [ %90, %82 ], [ %93, %91 ], [ %70, %69 ]
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv68) #5
  store double %.sink, ptr %95, align 8, !tbaa !33
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next69, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge65, label %36, !llvm.loop !36

96:                                               ; preds = %._crit_edge65
  %97 = getelementptr inbounds i8, ptr %0, i64 96
  %98 = call noundef i64 @_ZNKSt5dequeISt6vectorIdSaIdEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %97) #5
  %99 = trunc i64 %98 to i32
  %.not48.not = icmp slt i32 %33, %99
  br i1 %.not48.not, label %100, label %102

100:                                              ; preds = %96, %._crit_edge65
  %101 = getelementptr inbounds i8, ptr %0, i64 96
  call void @_ZNSt5dequeISt6vectorIdSaIdEESaIS2_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %101) #5
  br label %102

102:                                              ; preds = %96, %100, %12, %2
  %.0 = phi i1 [ false, %2 ], [ false, %12 ], [ true, %100 ], [ true, %96 ]
  ret i1 %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeISt6vectorIdSaIdEESaIS2_EE5beginEv(ptr dead_on_unwind noalias writable sret(%"struct.std::_Deque_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeISt6vectorIdSaIdEESaIS2_EE3endEv(ptr dead_on_unwind noalias writable sret(%"struct.std::_Deque_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_ES7_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_EdeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_EppEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt12partial_sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_S7_(ptr, ptr, ptr) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt5dequeISt6vectorIdSaIdEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeISt6vectorIdSaIdEESaIS2_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 40}
!6 = !{!"_ZTSN4sptk12MedianFilterE", !7, i64 0, !8, i64 8, !8, i64 12, !11, i64 16, !12, i64 24, !12, i64 25, !13, i64 32, !12, i64 40, !14, i64 48, !14, i64 72, !18, i64 96, !8, i64 176}
!7 = !{!"_ZTSN4sptk20InputSourceInterfaceE"}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{!"double", !9, i64 0}
!14 = !{!"_ZTSSt6vectorIdSaIdEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!"_ZTSSt5dequeISt6vectorIdSaIdEESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt11_Deque_baseISt6vectorIdSaIdEESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt11_Deque_baseISt6vectorIdSaIdEESaIS2_EE11_Deque_implE", !21, i64 0}
!21 = !{!"_ZTSNSt11_Deque_baseISt6vectorIdSaIdEESaIS2_EE16_Deque_impl_dataE", !11, i64 0, !22, i64 8, !23, i64 16, !23, i64 48}
!22 = !{!"long", !9, i64 0}
!23 = !{!"_ZTSSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_E", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !10, i64 0}
!28 = !{!6, !8, i64 176}
!29 = !{!6, !8, i64 12}
!30 = !{!6, !12, i64 24}
!31 = !{!6, !12, i64 25}
!32 = !{!6, !13, i64 32}
!33 = !{!13, !13, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = distinct !{!36, !35}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass