; LLVM IR from liaojing/MorphLib :: MorphLib/Morph.ll (ZN8MorphLib6CMorphC2ERNS_11CParametersE)

; 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"

%"class.MorphLib::CMorph" = type <{ ptr, ptr, i32, i32, i32, i32, i32, [4 x i8], ptr, i8, [7 x i8] }>
%"class.MorphLib::CParameters" = type { i32, i32, ptr, ptr, ptr, ptr, float, float, float, float, float, i32, i32, float, i32, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<MorphLib::ConstraintPoint, std::allocator<MorphLib::ConstraintPoint>>::_Vector_impl" }
%"struct.std::_Vector_base<MorphLib::ConstraintPoint, std::allocator<MorphLib::ConstraintPoint>>::_Vector_impl" = type { %"struct.std::_Vector_base<MorphLib::ConstraintPoint, std::allocator<MorphLib::ConstraintPoint>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MorphLib::ConstraintPoint, std::allocator<MorphLib::ConstraintPoint>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.CPyramid = type { %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<CPyramidLevel, std::allocator<CPyramidLevel>>::_Vector_impl" }
%"struct.std::_Vector_base<CPyramidLevel, std::allocator<CPyramidLevel>>::_Vector_impl" = type { %"struct.std::_Vector_base<CPyramidLevel, std::allocator<CPyramidLevel>>::_Vector_impl_data" }
%"struct.std::_Vector_base<CPyramidLevel, std::allocator<CPyramidLevel>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.CPyramidLevel = type { i32, i32, float, i32, i32, i32, ptr, ptr, ptr, ptr }
%"struct.MorphLib::CData" = type { %struct.anon, %struct.anon.5, %struct.anon.6, ptr, ptr, ptr, ptr, i32 }
%struct.anon = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon.5 = type { ptr, ptr, ptr }
%struct.anon.6 = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8MorphLib6CMorphC2ERNS_11CParametersE(ptr noundef nonnull align 8 dereferenceable(49) %0, ptr noundef nonnull align 8 dereferenceable(104) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %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
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  %11 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %12, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %14, i32 0, i32 2
  %16 = load ptr, ptr %15, align 8, !tbaa !13
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %24

18:                                               ; preds = %2
  %19 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %20, i32 0, i32 3
  %22 = load ptr, ptr %21, align 8, !tbaa !21
  %23 = icmp ne ptr %22, null
  br i1 %23, label %31, label %24

24:                                               ; preds = %18, %2
  %25 = call ptr @__cxa_allocate_exception(i64 16) #10
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef @.str)
          to label %26 unwind label %27

26:                                               ; preds = %24
  call void @__cxa_throw(ptr %25, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #11
  unreachable

27:                                               ; preds = %24
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %5, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %6, align 4
  call void @__cxa_free_exception(ptr %25) #10
  br label %256

31:                                               ; preds = %18
  %32 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %33, i32 0, i32 4
  %35 = load ptr, ptr %34, align 8, !tbaa !22
  %36 = icmp ne ptr %35, null
  br i1 %36, label %68, label %37

37:                                               ; preds = %31
  %38 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 4, !tbaa !23
  %42 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 8, !tbaa !24
  %46 = mul nsw i32 %41, %45
  %47 = mul nsw i32 %46, 3
  %48 = sext i32 %47 to i64
  %49 = call noalias noundef nonnull ptr @_Znam(i64 noundef %48) #12
  %50 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %51, i32 0, i32 4
  store ptr %49, ptr %52, align 8, !tbaa !22
  %53 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  %55 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %54, i32 0, i32 4
  %56 = load ptr, ptr %55, align 8, !tbaa !22
  %57 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !23
  %61 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 8, !tbaa !24
  %65 = mul nsw i32 %60, %64
  %66 = mul nsw i32 %65, 3
  %67 = sext i32 %66 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %56, i8 0, i64 %67, i1 false)
  br label %68

68:                                               ; preds = %37, %31
  %69 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !9
  %71 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %70, i32 0, i32 5
  %72 = load ptr, ptr %71, align 8, !tbaa !25
  %73 = icmp ne ptr %72, null
  br i1 %73, label %105, label %74

74:                                               ; preds = %68
  %75 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  %77 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %76, i32 0, i32 1
  %78 = load i32, ptr %77, align 4, !tbaa !23
  %79 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  %81 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %80, i32 0, i32 0
  %82 = load i32, ptr %81, align 8, !tbaa !24
  %83 = mul nsw i32 %78, %82
  %84 = mul nsw i32 %83, 3
  %85 = sext i32 %84 to i64
  %86 = call noalias noundef nonnull ptr @_Znam(i64 noundef %85) #12
  %87 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !9
  %89 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %88, i32 0, i32 5
  store ptr %86, ptr %89, align 8, !tbaa !25
  %90 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !9
  %92 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %91, i32 0, i32 5
  %93 = load ptr, ptr %92, align 8, !tbaa !25
  %94 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  %96 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 4, !tbaa !23
  %98 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8, !tbaa !9
  %100 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %99, i32 0, i32 0
  %101 = load i32, ptr %100, align 8, !tbaa !24
  %102 = mul nsw i32 %97, %101
  %103 = mul nsw i32 %102, 3
  %104 = sext i32 %103 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %93, i8 0, i64 %104, i1 false)
  br label %105

105:                                              ; preds = %74, %68
  %106 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #12
  invoke void @_ZN8CPyramidC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %106)
          to label %107 unwind label %133

107:                                              ; preds = %105
  %108 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 1
  store ptr %106, ptr %108, align 8, !tbaa !26
  %109 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 1
  %110 = load ptr, ptr %109, align 8, !tbaa !26
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 4, !tbaa !23
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %114, i32 0, i32 0
  %116 = load i32, ptr %115, align 8, !tbaa !24
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %117, i32 0, i32 2
  %119 = load ptr, ptr %118, align 8, !tbaa !13
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %120, i32 0, i32 3
  %122 = load ptr, ptr %121, align 8, !tbaa !21
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %123, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !22
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %126, i32 0, i32 5
  %128 = load ptr, ptr %127, align 8, !tbaa !25
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %129, i32 0, i32 12
  %131 = load i32, ptr %130, align 8, !tbaa !27
  invoke void @_ZN8CPyramid14create_pyramidEiiPhS0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(24) %110, i32 noundef %113, i32 noundef %116, ptr noundef %119, ptr noundef %122, ptr noundef %125, ptr noundef %128, i32 noundef %131)
          to label %132 unwind label %137

132:                                              ; preds = %107
  br label %154

133:                                              ; preds = %105
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %5, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %106, i64 noundef 24) #13
  br label %256

137:                                              ; preds = %107
  %138 = landingpad { ptr, i32 }
          catch ptr null
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %5, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %6, align 4
  br label %141

141:                                              ; preds = %137
  %142 = load ptr, ptr %5, align 8
  %143 = call ptr @__cxa_begin_catch(ptr %142) #10
  %144 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 1
  %145 = load ptr, ptr %144, align 8, !tbaa !26
  %146 = icmp eq ptr %145, null
  br i1 %146, label %148, label %147

147:                                              ; preds = %141
  call void @_ZN8CPyramidD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %145) #10
  call void @_ZdlPvm(ptr noundef %145, i64 noundef 24) #13
  br label %148

148:                                              ; preds = %147, %141
  invoke void @__cxa_rethrow() #11
          to label %264 unwind label %149

149:                                              ; preds = %148
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %5, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %6, align 4
  invoke void @__cxa_end_catch()
          to label %153 unwind label %261

153:                                              ; preds = %149
  br label %256

154:                                              ; preds = %132
  %155 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 9
  store i8 1, ptr %155, align 8, !tbaa !28
  %156 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 1
  %157 = load ptr, ptr %156, align 8, !tbaa !26
  %158 = getelementptr inbounds %class.CPyramid, ptr %157, i32 0, i32 0
  %159 = call noundef i64 @_ZNKSt6vectorI13CPyramidLevelSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %158) #10
  %160 = trunc i64 %159 to i32
  %161 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 2
  store i32 %160, ptr %161, align 8, !tbaa !29
  %162 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 2
  %163 = load i32, ptr %162, align 8, !tbaa !29
  %164 = sub nsw i32 %163, 1
  %165 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 3
  store i32 %164, ptr %165, align 4, !tbaa !30
  %166 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 5
  store i32 0, ptr %166, align 4, !tbaa !31
  %167 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 4
  store i32 0, ptr %167, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  %168 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %169 = load ptr, ptr %168, align 8, !tbaa !9
  %170 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %169, i32 0, i32 11
  %171 = load i32, ptr %170, align 4, !tbaa !33
  store i32 %171, ptr %7, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  %172 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 2
  %173 = load i32, ptr %172, align 8, !tbaa !29
  %174 = sub nsw i32 %173, 2
  store i32 %174, ptr %8, align 4, !tbaa !34
  br label %175

175:                                              ; preds = %210, %154
  %176 = load i32, ptr %8, align 4, !tbaa !34
  %177 = icmp sge i32 %176, 0
  br i1 %177, label %179, label %178

178:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %213

179:                                              ; preds = %175
  %180 = load i32, ptr %7, align 4, !tbaa !34
  %181 = sitofp i32 %180 to float
  %182 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 0
  %183 = load ptr, ptr %182, align 8, !tbaa !9
  %184 = getelementptr inbounds %"class.MorphLib::CParameters", ptr %183, i32 0, i32 13
  %185 = load float, ptr %184, align 4, !tbaa !35
  %186 = fdiv float %181, %185
  %187 = fptosi float %186 to i32
  store i32 %187, ptr %7, align 4, !tbaa !34
  %188 = load i32, ptr %7, align 4, !tbaa !34
  %189 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 1
  %190 = load ptr, ptr %189, align 8, !tbaa !26
  %191 = getelementptr inbounds %class.CPyramid, ptr %190, i32 0, i32 0
  %192 = load i32, ptr %8, align 4, !tbaa !34
  %193 = sext i32 %192 to i64
  %194 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI13CPyramidLevelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %191, i64 noundef %193) #10
  %195 = getelementptr inbounds %class.CPyramidLevel, ptr %194, i32 0, i32 0
  %196 = load i32, ptr %195, align 8, !tbaa !36
  %197 = mul nsw i32 %188, %196
  %198 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 1
  %199 = load ptr, ptr %198, align 8, !tbaa !26
  %200 = getelementptr inbounds %class.CPyramid, ptr %199, i32 0, i32 0
  %201 = load i32, ptr %8, align 4, !tbaa !34
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI13CPyramidLevelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %200, i64 noundef %202) #10
  %204 = getelementptr inbounds %class.CPyramidLevel, ptr %203, i32 0, i32 1
  %205 = load i32, ptr %204, align 4, !tbaa !38
  %206 = mul nsw i32 %197, %205
  %207 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 4
  %208 = load i32, ptr %207, align 8, !tbaa !32
  %209 = add nsw i32 %208, %206
  store i32 %209, ptr %207, align 8, !tbaa !32
  br label %210

210:                                              ; preds = %179
  %211 = load i32, ptr %8, align 4, !tbaa !34
  %212 = add nsw i32 %211, -1
  store i32 %212, ptr %8, align 4, !tbaa !34
  br label %175, !llvm.loop !39

213:                                              ; preds = %178
  %214 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 2
  %215 = load i32, ptr %214, align 8, !tbaa !29
  %216 = sext i32 %215 to i64
  %217 = mul i64 %216, 160
  %218 = call noalias ptr @malloc(i64 noundef %217) #14
  %219 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 8
  store ptr %218, ptr %219, align 8, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  store i32 0, ptr %9, align 4, !tbaa !34
  br label %220

220:                                              ; preds = %252, %213
  %221 = load i32, ptr %9, align 4, !tbaa !34
  %222 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 2
  %223 = load i32, ptr %222, align 8, !tbaa !29
  %224 = icmp slt i32 %221, %223
  br i1 %224, label %226, label %225

225:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  br label %255

226:                                              ; preds = %220
  %227 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 8
  %228 = load ptr, ptr %227, align 8, !tbaa !41
  %229 = load i32, ptr %9, align 4, !tbaa !34
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds %"struct.MorphLib::CData", ptr %228, i64 %230
  %232 = getelementptr inbounds %"struct.MorphLib::CData", ptr %231, i32 0, i32 0
  %233 = getelementptr inbounds %struct.anon, ptr %232, i32 0, i32 5
  store ptr null, ptr %233, align 8, !tbaa !42
  %234 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 8
  %235 = load ptr, ptr %234, align 8, !tbaa !41
  %236 = load i32, ptr %9, align 4, !tbaa !34
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds %"struct.MorphLib::CData", ptr %235, i64 %237
  %239 = getelementptr inbounds %"struct.MorphLib::CData", ptr %238, i32 0, i32 6
  store ptr null, ptr %239, align 8, !tbaa !47
  %240 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 8
  %241 = load ptr, ptr %240, align 8, !tbaa !41
  %242 = load i32, ptr %9, align 4, !tbaa !34
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds %"struct.MorphLib::CData", ptr %241, i64 %243
  %245 = getelementptr inbounds %"struct.MorphLib::CData", ptr %244, i32 0, i32 4
  store ptr null, ptr %245, align 8, !tbaa !48
  %246 = getelementptr inbounds %"class.MorphLib::CMorph", ptr %10, i32 0, i32 8
  %247 = load ptr, ptr %246, align 8, !tbaa !41
  %248 = load i32, ptr %9, align 4, !tbaa !34
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds %"struct.MorphLib::CData", ptr %247, i64 %249
  %251 = getelementptr inbounds %"struct.MorphLib::CData", ptr %250, i32 0, i32 5
  store ptr null, ptr %251, align 8, !tbaa !49
  br label %252

252:                                              ; preds = %226
  %253 = load i32, ptr %9, align 4, !tbaa !34
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %9, align 4, !tbaa !34
  br label %220, !llvm.loop !50

255:                                              ; preds = %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  ret void

256:                                              ; preds = %153, %133, %27
  %257 = load ptr, ptr %5, align 8
  %258 = load i32, ptr %6, align 4
  %259 = insertvalue { ptr, i32 } poison, ptr %257, 0
  %260 = insertvalue { ptr, i32 } %259, i32 %258, 1
  resume { ptr, i32 } %260

261:                                              ; preds = %149
  %262 = landingpad { ptr, i32 }
          catch ptr null
  %263 = extractvalue { ptr, i32 } %262, 0
  call void @__clang_call_terminate(ptr %263) #15
  unreachable

264:                                              ; preds = %148
  unreachable
}

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

declare void @_ZN8CPyramidC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #5

declare void @_ZN8CPyramid14create_pyramidEiiPhS0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: nounwind
declare void @_ZN8CPyramidD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

declare void @__cxa_rethrow()

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #6

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

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

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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #9

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 = { "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 = { nounwind "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 #3 = { nobuiltin allocsize(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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nobuiltin nounwind "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 #6 = { noinline noreturn nounwind uwtable "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 #7 = { 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 #8 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind allocsize(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 #10 = { nounwind }
attributes #11 = { noreturn }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { builtin nounwind }
attributes #14 = { nounwind allocsize(0) }
attributes #15 = { noreturn 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, !6, i64 0}
!10 = !{!"_ZTSN8MorphLib6CMorphE", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !6, i64 40, !12, i64 48}
!11 = !{!"int", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTSN8MorphLib11CParametersE", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !11, i64 60, !11, i64 64, !15, i64 68, !16, i64 72, !17, i64 80}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTSN8MorphLib17BoundaryConditionE", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIN8MorphLib15ConstraintPointESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN8MorphLib15ConstraintPointESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN8MorphLib15ConstraintPointESaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN8MorphLib15ConstraintPointESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!14, !6, i64 16}
!22 = !{!14, !6, i64 24}
!23 = !{!14, !11, i64 4}
!24 = !{!14, !11, i64 0}
!25 = !{!14, !6, i64 32}
!26 = !{!10, !6, i64 8}
!27 = !{!14, !11, i64 64}
!28 = !{!10, !12, i64 48}
!29 = !{!10, !11, i64 16}
!30 = !{!10, !11, i64 20}
!31 = !{!10, !11, i64 28}
!32 = !{!10, !11, i64 24}
!33 = !{!14, !11, i64 60}
!34 = !{!11, !11, i64 0}
!35 = !{!14, !15, i64 68}
!36 = !{!37, !11, i64 0}
!37 = !{!"_ZTS13CPyramidLevel", !11, i64 0, !11, i64 4, !15, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!38 = !{!37, !11, i64 4}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!10, !6, i64 40}
!42 = !{!43, !6, i64 40}
!43 = !{!"_ZTSN8MorphLib5CDataE", !44, i64 0, !45, i64 72, !46, i64 96, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !11, i64 152}
!44 = !{!"_ZTSN8MorphLib5CDataUt_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64}
!45 = !{!"_ZTSN8MorphLib5CDataUt0_E", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!"_ZTSN8MorphLib5CDataUt1_E", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!43, !6, i64 144}
!48 = !{!43, !6, i64 128}
!49 = !{!43, !6, i64 136}
!50 = distinct !{!50, !40}


; 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.MorphLib::CData" = type { %struct.anon, %struct.anon.5, %struct.anon.6, ptr, ptr, ptr, ptr, i32 }
%struct.anon = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon.5 = type { ptr, ptr, ptr }
%struct.anon.6 = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8MorphLib6CMorphC2ERNS_11CParametersE(ptr nocapture noundef nonnull align 8 dereferenceable(49) %0, ptr noundef nonnull align 8 dereferenceable(104) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  store ptr %1, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %1, i64 8
  %4 = load ptr, ptr %3, align 8, !tbaa !9
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %8, label %5

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %1, i64 16
  %7 = load ptr, ptr %6, align 8, !tbaa !18
  %.not28 = icmp eq ptr %7, null
  br i1 %.not28, label %8, label %13

8:                                                ; preds = %5, %2
  %9 = tail call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull @.str)
          to label %10 unwind label %11

10:                                               ; preds = %8
  tail call void @__cxa_throw(ptr nonnull %9, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #10
  unreachable

11:                                               ; preds = %8
  %12 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %9) #9
  br label %110

13:                                               ; preds = %5
  %14 = getelementptr inbounds i8, ptr %1, i64 24
  %15 = load ptr, ptr %14, align 8, !tbaa !19
  %.not29 = icmp eq ptr %15, null
  br i1 %.not29, label %16, label %24

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %1, i64 4
  %18 = load i32, ptr %17, align 4, !tbaa !20
  %19 = load i32, ptr %1, align 8, !tbaa !21
  %20 = mul i32 %18, 3
  %21 = mul i32 %20, %19
  %22 = sext i32 %21 to i64
  %23 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %22) #11
  store ptr %23, ptr %14, align 8, !tbaa !19
  tail call void @llvm.memset.p0.i64(ptr nonnull align 1 %23, i8 0, i64 %22, i1 false)
  br label %24

24:                                               ; preds = %16, %13
  %25 = getelementptr inbounds i8, ptr %1, i64 32
  %26 = load ptr, ptr %25, align 8, !tbaa !22
  %.not30 = icmp eq ptr %26, null
  br i1 %.not30, label %27, label %35

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %1, i64 4
  %29 = load i32, ptr %28, align 4, !tbaa !20
  %30 = load i32, ptr %1, align 8, !tbaa !21
  %31 = mul i32 %29, 3
  %32 = mul i32 %31, %30
  %33 = sext i32 %32 to i64
  %34 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %33) #11
  store ptr %34, ptr %25, align 8, !tbaa !22
  tail call void @llvm.memset.p0.i64(ptr nonnull align 1 %34, i8 0, i64 %33, i1 false)
  br label %35

35:                                               ; preds = %27, %24
  %36 = tail call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #11
  invoke void @_ZN8CPyramidC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %36)
          to label %37 unwind label %48

37:                                               ; preds = %35
  %38 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %36, ptr %38, align 8, !tbaa !23
  %39 = getelementptr inbounds i8, ptr %1, i64 4
  %40 = load i32, ptr %39, align 4, !tbaa !20
  %41 = load i32, ptr %1, align 8, !tbaa !21
  %42 = load ptr, ptr %3, align 8, !tbaa !9
  %43 = load ptr, ptr %6, align 8, !tbaa !18
  %44 = load ptr, ptr %14, align 8, !tbaa !19
  %45 = load ptr, ptr %25, align 8, !tbaa !22
  %46 = getelementptr inbounds i8, ptr %1, i64 64
  %47 = load i32, ptr %46, align 8, !tbaa !26
  invoke void @_ZN8CPyramid14create_pyramidEiiPhS0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(24) %36, i32 noundef %40, i32 noundef %41, ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef %45, i32 noundef %47)
          to label %60 unwind label %50

48:                                               ; preds = %35
  %49 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %36, i64 noundef 24) #12
  br label %110

50:                                               ; preds = %37
  %51 = landingpad { ptr, i32 }
          catch ptr null
  %52 = extractvalue { ptr, i32 } %51, 0
  %53 = tail call ptr @__cxa_begin_catch(ptr %52) #9
  %54 = load ptr, ptr %38, align 8, !tbaa !23
  %55 = icmp eq ptr %54, null
  br i1 %55, label %57, label %56

56:                                               ; preds = %50
  tail call void @_ZN8CPyramidD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %54) #9
  tail call void @_ZdlPvm(ptr noundef nonnull %54, i64 noundef 24) #12
  br label %57

57:                                               ; preds = %56, %50
  invoke void @__cxa_rethrow() #10
          to label %114 unwind label %58

58:                                               ; preds = %57
  %59 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %110 unwind label %111

60:                                               ; preds = %37
  %61 = getelementptr inbounds i8, ptr %0, i64 48
  store i8 1, ptr %61, align 8, !tbaa !27
  %62 = load ptr, ptr %38, align 8, !tbaa !23
  %63 = tail call noundef i64 @_ZNKSt6vectorI13CPyramidLevelSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #9
  %64 = trunc i64 %63 to i32
  %65 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %64, ptr %65, align 8, !tbaa !28
  %66 = add nsw i32 %64, -1
  %67 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %66, ptr %67, align 4, !tbaa !29
  %68 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 0, ptr %68, align 4, !tbaa !30
  %69 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 0, ptr %69, align 8, !tbaa !31
  %70 = icmp sgt i32 %64, 1
  br i1 %70, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %60
  %71 = add i64 %63, 4294967294
  %72 = load ptr, ptr %0, align 8, !tbaa !32
  %73 = getelementptr inbounds i8, ptr %72, i64 60
  %74 = load i32, ptr %73, align 4, !tbaa !33
  %75 = and i64 %71, 4294967295
  br label %.lr.ph

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr %65, align 8, !tbaa !28
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %60
  %76 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %64, %60 ]
  %77 = sext i32 %76 to i64
  %78 = mul nsw i64 %77, 160
  %79 = tail call noalias ptr @malloc(i64 noundef %78) #13
  %80 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %79, ptr %80, align 8, !tbaa !34
  %81 = icmp sgt i32 %76, 0
  br i1 %81, label %.lr.ph36.preheader, label %._crit_edge37

.lr.ph36.preheader:                               ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %76 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %82 = icmp ult i32 %76, 4
  br i1 %82, label %._crit_edge37.loopexit.unr-lcssa, label %.lr.ph36.preheader.new

.lr.ph36.preheader.new:                           ; preds = %.lr.ph36.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph36

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %75, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.02432 = phi i32 [ %74, %.lr.ph.preheader ], [ %88, %.lr.ph ]
  %83 = sitofp i32 %.02432 to float
  %84 = load ptr, ptr %0, align 8, !tbaa !32
  %85 = getelementptr inbounds i8, ptr %84, i64 68
  %86 = load float, ptr %85, align 4, !tbaa !35
  %87 = fdiv float %83, %86
  %88 = fptosi float %87 to i32
  %89 = load ptr, ptr %38, align 8, !tbaa !23
  %90 = tail call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI13CPyramidLevelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %indvars.iv) #9
  %91 = load i32, ptr %90, align 8, !tbaa !36
  %92 = mul nsw i32 %91, %88
  %93 = load ptr, ptr %38, align 8, !tbaa !23
  %94 = tail call noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI13CPyramidLevelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %indvars.iv) #9
  %95 = getelementptr inbounds i8, ptr %94, i64 4
  %96 = load i32, ptr %95, align 4, !tbaa !38
  %97 = mul nsw i32 %92, %96
  %98 = load i32, ptr %69, align 8, !tbaa !31
  %99 = add nsw i32 %98, %97
  store i32 %99, ptr %69, align 8, !tbaa !31
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %.not42 = icmp eq i64 %indvars.iv, 0
  br i1 %.not42, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !39

._crit_edge37.loopexit.unr-lcssa:                 ; preds = %.lr.ph36, %.lr.ph36.preheader
  %indvars.iv39.unr = phi i64 [ 0, %.lr.ph36.preheader ], [ %indvars.iv.next40.3, %.lr.ph36 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge37, label %.lr.ph36.epil

.lr.ph36.epil:                                    ; preds = %._crit_edge37.loopexit.unr-lcssa, %.lr.ph36.epil
  %indvars.iv39.epil = phi i64 [ %indvars.iv.next40.epil, %.lr.ph36.epil ], [ %indvars.iv39.unr, %._crit_edge37.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph36.epil ], [ 0, %._crit_edge37.loopexit.unr-lcssa ]
  %100 = getelementptr inbounds %"struct.MorphLib::CData", ptr %79, i64 %indvars.iv39.epil, i32 0, i32 5
  store ptr null, ptr %100, align 8, !tbaa !41
  %101 = getelementptr inbounds %"struct.MorphLib::CData", ptr %79, i64 %indvars.iv39.epil, i32 4
  %indvars.iv.next40.epil = add nuw nsw i64 %indvars.iv39.epil, 1
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %101, i8 0, i64 24, i1 false)
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge37, label %.lr.ph36.epil, !llvm.loop !46

._crit_edge37:                                    ; preds = %._crit_edge37.loopexit.unr-lcssa, %.lr.ph36.epil, %._crit_edge
  ret void

.lr.ph36:                                         ; preds = %.lr.ph36, %.lr.ph36.preheader.new
  %indvars.iv39 = phi i64 [ 0, %.lr.ph36.preheader.new ], [ %indvars.iv.next40.3, %.lr.ph36 ]
  %niter = phi i64 [ 0, %.lr.ph36.preheader.new ], [ %niter.next.3, %.lr.ph36 ]
  %102 = getelementptr inbounds %"struct.MorphLib::CData", ptr %79, i64 %indvars.iv39, i32 0, i32 5
  store ptr null, ptr %102, align 8, !tbaa !41
  %103 = getelementptr inbounds %"struct.MorphLib::CData", ptr %79, i64 %indvars.iv39, i32 4
  %indvars.iv.next40 = or disjoint i64 %indvars.iv39, 1
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %103, i8 0, i64 24, i1 false)
  %104 = getelementptr inbounds %"struct.MorphLib::CData", ptr %79, i64 %indvars.iv.next40, i32 0, i32 5
  store ptr null, ptr %104, align 8, !tbaa !41
  %105 = getelementptr inbounds %"struct.MorphLib::CData", ptr %79, i64 %indvars.iv.next40, i32 4
  %indvars.iv.next40.1 = or disjoint i64 %indvars.iv39, 2
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %105, i8 0, i64 24, i1 false)
  %106 = getelementptr inbounds %"struct.MorphLib::CData", ptr %79, i64 %indvars.iv.next40.1, i32 0, i32 5
  store ptr null, ptr %106, align 8, !tbaa !41
  %107 = getelementptr inbounds %"struct.MorphLib::CData", ptr %79, i64 %indvars.iv.next40.1, i32 4
  %indvars.iv.next40.2 = or disjoint i64 %indvars.iv39, 3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %107, i8 0, i64 24, i1 false)
  %108 = getelementptr inbounds %"struct.MorphLib::CData", ptr %79, i64 %indvars.iv.next40.2, i32 0, i32 5
  store ptr null, ptr %108, align 8, !tbaa !41
  %109 = getelementptr inbounds %"struct.MorphLib::CData", ptr %79, i64 %indvars.iv.next40.2, i32 4
  %indvars.iv.next40.3 = add nuw nsw i64 %indvars.iv39, 4
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %109, i8 0, i64 24, i1 false)
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge37.loopexit.unr-lcssa, label %.lr.ph36, !llvm.loop !48

110:                                              ; preds = %58, %48, %11
  %.pn = phi { ptr, i32 } [ %59, %58 ], [ %49, %48 ], [ %12, %11 ]
  resume { ptr, i32 } %.pn

111:                                              ; preds = %58
  %112 = landingpad { ptr, i32 }
          catch ptr null
  %113 = extractvalue { ptr, i32 } %112, 0
  tail call void @__clang_call_terminate(ptr %113) #14
  unreachable

114:                                              ; preds = %57
  unreachable
}

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

declare void @_ZN8CPyramidC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #5

declare void @_ZN8CPyramid14create_pyramidEiiPhS0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZN8CPyramidD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

declare void @__cxa_rethrow() local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #8

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 = { "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 = { nounwind "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 #3 = { nobuiltin allocsize(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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nobuiltin nounwind "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 #6 = { noinline noreturn nounwind uwtable "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 #7 = { 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 #8 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #9 = { nounwind }
attributes #10 = { noreturn }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin nounwind }
attributes #13 = { nounwind allocsize(0) }
attributes #14 = { noreturn 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, !6, i64 8}
!10 = !{!"_ZTSN8MorphLib11CParametersE", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !11, i64 60, !11, i64 64, !12, i64 68, !13, i64 72, !14, i64 80}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!"_ZTSN8MorphLib17BoundaryConditionE", !7, i64 0}
!14 = !{!"_ZTSSt6vectorIN8MorphLib15ConstraintPointESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN8MorphLib15ConstraintPointESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN8MorphLib15ConstraintPointESaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN8MorphLib15ConstraintPointESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!10, !6, i64 16}
!19 = !{!10, !6, i64 24}
!20 = !{!10, !11, i64 4}
!21 = !{!10, !11, i64 0}
!22 = !{!10, !6, i64 32}
!23 = !{!24, !6, i64 8}
!24 = !{!"_ZTSN8MorphLib6CMorphE", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !6, i64 40, !25, i64 48}
!25 = !{!"bool", !7, i64 0}
!26 = !{!10, !11, i64 64}
!27 = !{!24, !25, i64 48}
!28 = !{!24, !11, i64 16}
!29 = !{!24, !11, i64 20}
!30 = !{!24, !11, i64 28}
!31 = !{!24, !11, i64 24}
!32 = !{!24, !6, i64 0}
!33 = !{!10, !11, i64 60}
!34 = !{!24, !6, i64 40}
!35 = !{!10, !12, i64 68}
!36 = !{!37, !11, i64 0}
!37 = !{!"_ZTS13CPyramidLevel", !11, i64 0, !11, i64 4, !12, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!38 = !{!37, !11, i64 4}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!42, !6, i64 40}
!42 = !{!"_ZTSN8MorphLib5CDataE", !43, i64 0, !44, i64 72, !45, i64 96, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !11, i64 152}
!43 = !{!"_ZTSN8MorphLib5CDataUt_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64}
!44 = !{!"_ZTSN8MorphLib5CDataUt0_E", !6, i64 0, !6, i64 8, !6, i64 16}
!45 = !{!"_ZTSN8MorphLib5CDataUt1_E", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.unroll.disable"}
!48 = distinct !{!48, !40}


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