; LLVM IR from drohmer/cgp :: library/cgp/12_shape/spatial_domain/spatial_domain_grid_3D/spatial_domain_grid_3_ee7979a1 (voxelEv)

; 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.cgp::numarray" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray_stack" = type { float, float, float }
%"struct.cgp::spatial_domain_grid_3D" = type { %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack", %"struct.cgp::numarray_stack.0" }
%"struct.cgp::numarray_stack.0" = type { i32, i32, i32 }

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZNK3cgp22spatial_domain_grid_3D10corner_minEv(ptr noundef nonnull align 4 dereferenceable(36)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3cgpmlIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #4

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZNK3cgp22spatial_domain_grid_3D12voxel_lengthEv(ptr noundef nonnull align 4 dereferenceable(36)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3cgp22spatial_domain_grid_3D34export_segments_for_drawable_voxelEv(ptr dead_on_unwind noalias writable sret(%"struct.cgp::numarray") align 8 %0, ptr noundef nonnull align 4 dereferenceable(36) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca %"struct.cgp::numarray_stack", align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca { <2 x float>, float }, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.cgp::numarray_stack", align 4
  %12 = alloca { <2 x float>, float }, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.cgp::numarray_stack", align 4
  %18 = alloca %"struct.cgp::numarray_stack", align 4
  %19 = alloca %"struct.cgp::numarray_stack", align 4
  %20 = alloca i32, align 4
  %21 = alloca { <2 x float>, float }, align 8
  %22 = alloca { <2 x float>, float }, align 8
  %23 = alloca %"struct.cgp::numarray_stack", align 4
  %24 = alloca %"struct.cgp::numarray_stack", align 4
  %25 = alloca %"struct.cgp::numarray_stack", align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca { <2 x float>, float }, align 8
  %30 = alloca { <2 x float>, float }, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %"struct.cgp::numarray_stack", align 4
  %34 = alloca %"struct.cgp::numarray_stack", align 4
  %35 = alloca %"struct.cgp::numarray_stack", align 4
  %36 = alloca i32, align 4
  %37 = alloca { <2 x float>, float }, align 8
  %38 = alloca { <2 x float>, float }, align 8
  %39 = alloca %"struct.cgp::numarray_stack", align 4
  %40 = alloca %"struct.cgp::numarray_stack", align 4
  %41 = alloca %"struct.cgp::numarray_stack", align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca { <2 x float>, float }, align 8
  %46 = alloca { <2 x float>, float }, align 8
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca %"struct.cgp::numarray_stack", align 4
  %50 = alloca %"struct.cgp::numarray_stack", align 4
  %51 = alloca %"struct.cgp::numarray_stack", align 4
  %52 = alloca i32, align 4
  %53 = alloca { <2 x float>, float }, align 8
  %54 = alloca { <2 x float>, float }, align 8
  %55 = alloca %"struct.cgp::numarray_stack", align 4
  %56 = alloca %"struct.cgp::numarray_stack", align 4
  %57 = alloca %"struct.cgp::numarray_stack", align 4
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca i32, align 4
  %61 = alloca { <2 x float>, float }, align 8
  %62 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %63 = load ptr, ptr %4, align 8
  store i1 false, ptr %5, align 1
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0)
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #7
  %64 = invoke { <2 x float>, float } @_ZNK3cgp22spatial_domain_grid_3D10corner_minEv(ptr noundef nonnull align 4 dereferenceable(36) %63)
          to label %65 unwind label %77

65:                                               ; preds = %2
  store { <2 x float>, float } %64, ptr %9, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 8 %9, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %66 = getelementptr inbounds %"struct.cgp::spatial_domain_grid_3D", ptr %63, i32 0, i32 1
  store ptr %66, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #7
  %67 = invoke { <2 x float>, float } @_ZNK3cgp22spatial_domain_grid_3D12voxel_lengthEv(ptr noundef nonnull align 4 dereferenceable(36) %63)
          to label %68 unwind label %81

68:                                               ; preds = %65
  store { <2 x float>, float } %67, ptr %12, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 8 %12, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %69 = getelementptr inbounds %"struct.cgp::spatial_domain_grid_3D", ptr %63, i32 0, i32 2
  store ptr %69, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %126, %68
  %71 = load i32, ptr %14, align 4, !tbaa !9
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 4, !tbaa !11
  %75 = icmp slt i32 %71, %74
  br i1 %75, label %85, label %76

76:                                               ; preds = %70
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %129

77:                                               ; preds = %2
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %7, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %8, align 4
  br label %237

81:                                               ; preds = %65
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %7, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %8, align 4
  br label %236

85:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %109, %85
  %87 = load i32, ptr %16, align 4, !tbaa !9
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %88, i32 0, i32 1
  %90 = load i32, ptr %89, align 4, !tbaa !13
  %91 = icmp slt i32 %87, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %86
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %125

93:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %94 unwind label %112

94:                                               ; preds = %93
  %95 = invoke { <2 x float>, float } @_ZN3cgpmlIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %96 unwind label %112

96:                                               ; preds = %94
  store { <2 x float>, float } %95, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %21, i64 12, i1 false)
  %97 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %18)
          to label %98 unwind label %112

98:                                               ; preds = %96
  store { <2 x float>, float } %97, ptr %22, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 8 %22, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #7
  %99 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %17)
          to label %100 unwind label %116

100:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #7
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 1, ptr %28, align 4, !tbaa !9
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %102 unwind label %120

102:                                              ; preds = %100
  %103 = invoke { <2 x float>, float } @_ZN3cgpmlIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %101, ptr noundef nonnull align 4 dereferenceable(12) %25)
          to label %104 unwind label %120

104:                                              ; preds = %102
  store { <2 x float>, float } %103, ptr %29, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %29, i64 12, i1 false)
  %105 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %24)
          to label %106 unwind label %120

106:                                              ; preds = %104
  store { <2 x float>, float } %105, ptr %30, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %30, i64 12, i1 false)
  %107 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %99, ptr noundef nonnull align 4 dereferenceable(12) %23)
          to label %108 unwind label %120

108:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #7
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %16, align 4, !tbaa !9
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %16, align 4, !tbaa !9
  br label %86, !llvm.loop !14

112:                                              ; preds = %96, %94, %93
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %7, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #7
  br label %124

116:                                              ; preds = %98
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %7, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %8, align 4
  br label %124

120:                                              ; preds = %106, %104, %102, %100
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %7, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #7
  br label %124

124:                                              ; preds = %120, %116, %112
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %235

125:                                              ; preds = %92
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %14, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %14, align 4, !tbaa !9
  br label %70, !llvm.loop !16

129:                                              ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %178, %129
  %131 = load i32, ptr %31, align 4, !tbaa !9
  %132 = load ptr, ptr %13, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %132, i32 0, i32 0
  %134 = load i32, ptr %133, align 4, !tbaa !11
  %135 = icmp slt i32 %131, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %130
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %181

137:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %161, %137
  %139 = load i32, ptr %32, align 4, !tbaa !9
  %140 = load ptr, ptr %13, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %140, i32 0, i32 2
  %142 = load i32, ptr %141, align 4, !tbaa !17
  %143 = icmp slt i32 %139, %142
  br i1 %143, label %145, label %144

144:                                              ; preds = %138
  store i32 11, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %177

145:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store i32 0, ptr %36, align 4, !tbaa !9
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %146 unwind label %164

146:                                              ; preds = %145
  %147 = invoke { <2 x float>, float } @_ZN3cgpmlIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %35)
          to label %148 unwind label %164

148:                                              ; preds = %146
  store { <2 x float>, float } %147, ptr %37, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 8 %37, i64 12, i1 false)
  %149 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %34)
          to label %150 unwind label %164

150:                                              ; preds = %148
  store { <2 x float>, float } %149, ptr %38, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 8 %38, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #7
  %151 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %33)
          to label %152 unwind label %168

152:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %40) #7
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %41) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  store i32 0, ptr %42, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  store i32 1, ptr %43, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  store i32 0, ptr %44, align 4, !tbaa !9
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %154 unwind label %172

154:                                              ; preds = %152
  %155 = invoke { <2 x float>, float } @_ZN3cgpmlIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %153, ptr noundef nonnull align 4 dereferenceable(12) %41)
          to label %156 unwind label %172

156:                                              ; preds = %154
  store { <2 x float>, float } %155, ptr %45, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 8 %45, i64 12, i1 false)
  %157 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 4 dereferenceable(12) %40)
          to label %158 unwind label %172

158:                                              ; preds = %156
  store { <2 x float>, float } %157, ptr %46, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 8 %46, i64 12, i1 false)
  %159 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 4 dereferenceable(12) %39)
          to label %160 unwind label %172

160:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #7
  br label %161

161:                                              ; preds = %160
  %162 = load i32, ptr %32, align 4, !tbaa !9
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %32, align 4, !tbaa !9
  br label %138, !llvm.loop !18

164:                                              ; preds = %148, %146, %145
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %7, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #7
  br label %176

168:                                              ; preds = %150
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %7, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %8, align 4
  br label %176

172:                                              ; preds = %158, %156, %154, %152
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %7, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #7
  br label %176

176:                                              ; preds = %172, %168, %164
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %235

177:                                              ; preds = %144
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %31, align 4, !tbaa !9
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %31, align 4, !tbaa !9
  br label %130, !llvm.loop !19

181:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #7
  store i32 0, ptr %47, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %230, %181
  %183 = load i32, ptr %47, align 4, !tbaa !9
  %184 = load ptr, ptr %13, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %184, i32 0, i32 1
  %186 = load i32, ptr %185, align 4, !tbaa !13
  %187 = icmp slt i32 %183, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %182
  store i32 14, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  br label %233

189:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #7
  store i32 0, ptr %48, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %213, %189
  %191 = load i32, ptr %48, align 4, !tbaa !9
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.cgp::numarray_stack.0", ptr %192, i32 0, i32 2
  %194 = load i32, ptr %193, align 4, !tbaa !17
  %195 = icmp slt i32 %191, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %190
  store i32 17, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  br label %229

197:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 12, ptr %49) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %50) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %51) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #7
  store i32 0, ptr %52, align 4, !tbaa !9
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %51, ptr noundef nonnull align 4 dereferenceable(4) %52, ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 4 dereferenceable(4) %48)
          to label %198 unwind label %216

198:                                              ; preds = %197
  %199 = invoke { <2 x float>, float } @_ZN3cgpmlIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %51)
          to label %200 unwind label %216

200:                                              ; preds = %198
  store { <2 x float>, float } %199, ptr %53, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 8 %53, i64 12, i1 false)
  %201 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %50)
          to label %202 unwind label %216

202:                                              ; preds = %200
  store { <2 x float>, float } %201, ptr %54, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 8 %54, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %50) #7
  %203 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %49)
          to label %204 unwind label %220

204:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 12, ptr %55) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %56) #7
  %205 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %57) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #7
  store i32 1, ptr %58, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #7
  store i32 0, ptr %59, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #7
  store i32 0, ptr %60, align 4, !tbaa !9
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(4) %58, ptr noundef nonnull align 4 dereferenceable(4) %59, ptr noundef nonnull align 4 dereferenceable(4) %60)
          to label %206 unwind label %224

206:                                              ; preds = %204
  %207 = invoke { <2 x float>, float } @_ZN3cgpmlIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %205, ptr noundef nonnull align 4 dereferenceable(12) %57)
          to label %208 unwind label %224

208:                                              ; preds = %206
  store { <2 x float>, float } %207, ptr %61, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 8 %61, i64 12, i1 false)
  %209 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %49, ptr noundef nonnull align 4 dereferenceable(12) %56)
          to label %210 unwind label %224

210:                                              ; preds = %208
  store { <2 x float>, float } %209, ptr %62, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %55, ptr align 8 %62, i64 12, i1 false)
  %211 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %203, ptr noundef nonnull align 4 dereferenceable(12) %55)
          to label %212 unwind label %224

212:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %57) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %56) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %55) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %49) #7
  br label %213

213:                                              ; preds = %212
  %214 = load i32, ptr %48, align 4, !tbaa !9
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %48, align 4, !tbaa !9
  br label %190, !llvm.loop !20

216:                                              ; preds = %200, %198, %197
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %7, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %50) #7
  br label %228

220:                                              ; preds = %202
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %7, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %8, align 4
  br label %228

224:                                              ; preds = %210, %208, %206, %204
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %7, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %57) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %56) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %55) #7
  br label %228

228:                                              ; preds = %224, %220, %216
  call void @llvm.lifetime.end.p0(i64 12, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  br label %235

229:                                              ; preds = %196
  br label %230

230:                                              ; preds = %229
  %231 = load i32, ptr %47, align 4, !tbaa !9
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %47, align 4, !tbaa !9
  br label %182, !llvm.loop !21

233:                                              ; preds = %188
  store i1 true, ptr %5, align 1
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #7
  %234 = load i1, ptr %5, align 1
  br i1 %234, label %239, label %238

235:                                              ; preds = %228, %176, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %236

236:                                              ; preds = %235, %81
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %237

237:                                              ; preds = %236, %77
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #7
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %240

238:                                              ; preds = %233
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %239

239:                                              ; preds = %238, %233
  ret void

240:                                              ; preds = %237
  %241 = load ptr, ptr %7, align 8
  %242 = load i32, ptr %8, align 4
  %243 = insertvalue { ptr, i32 } poison, ptr %241, 0
  %244 = insertvalue { ptr, i32 } %243, i32 %242, 1
  resume { ptr, i32 } %244
}

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="64" "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 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 #5 = { 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 #6 = { inlinehint 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 #7 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN3cgp14numarray_stackIiLi3EEE", !10, i64 0, !10, i64 4, !10, i64 8}
!13 = !{!12, !10, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!12, !10, i64 8}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}


; 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.cgp::numarray" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray_stack" = type { float, float, float }

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZNK3cgp22spatial_domain_grid_3D10corner_minEv(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3cgpmlIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZNK3cgp22spatial_domain_grid_3D12voxel_lengthEv(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3cgp22spatial_domain_grid_3D34export_segments_for_drawable_voxelEv(ptr dead_on_unwind noalias nonnull writable sret(%"struct.cgp::numarray") align 8 %0, ptr noundef nonnull align 4 dereferenceable(36) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.cgp::numarray_stack", align 8
  %4 = alloca %"struct.cgp::numarray_stack", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.cgp::numarray_stack", align 8
  %8 = alloca %"struct.cgp::numarray_stack", align 8
  %9 = alloca %"struct.cgp::numarray_stack", align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.cgp::numarray_stack", align 8
  %12 = alloca %"struct.cgp::numarray_stack", align 8
  %13 = alloca %"struct.cgp::numarray_stack", align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"struct.cgp::numarray_stack", align 8
  %20 = alloca %"struct.cgp::numarray_stack", align 8
  %21 = alloca %"struct.cgp::numarray_stack", align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.cgp::numarray_stack", align 8
  %24 = alloca %"struct.cgp::numarray_stack", align 8
  %25 = alloca %"struct.cgp::numarray_stack", align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %"struct.cgp::numarray_stack", align 8
  %32 = alloca %"struct.cgp::numarray_stack", align 8
  %33 = alloca %"struct.cgp::numarray_stack", align 4
  %34 = alloca i32, align 4
  %35 = alloca %"struct.cgp::numarray_stack", align 8
  %36 = alloca %"struct.cgp::numarray_stack", align 8
  %37 = alloca %"struct.cgp::numarray_stack", align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  tail call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #6
  %41 = invoke { <2 x float>, float } @_ZNK3cgp22spatial_domain_grid_3D10corner_minEv(ptr noundef nonnull align 4 dereferenceable(36) %1)
          to label %42 unwind label %57

42:                                               ; preds = %2
  %.fca.0.extract57 = extractvalue { <2 x float>, float } %41, 0
  %.fca.1.extract58 = extractvalue { <2 x float>, float } %41, 1
  store <2 x float> %.fca.0.extract57, ptr %3, align 8
  %.sroa.260.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  store float %.fca.1.extract58, ptr %.sroa.260.0..sroa_idx, align 8
  %43 = getelementptr inbounds i8, ptr %1, i64 12
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  %44 = invoke { <2 x float>, float } @_ZNK3cgp22spatial_domain_grid_3D12voxel_lengthEv(ptr noundef nonnull align 4 dereferenceable(36) %1)
          to label %45 unwind label %59

45:                                               ; preds = %42
  %.fca.0.extract50 = extractvalue { <2 x float>, float } %44, 0
  %.fca.1.extract51 = extractvalue { <2 x float>, float } %44, 1
  store <2 x float> %.fca.0.extract50, ptr %4, align 8
  %.sroa.253.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  store float %.fca.1.extract51, ptr %.sroa.253.0..sroa_idx, align 8
  %46 = getelementptr inbounds i8, ptr %1, i64 24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  %47 = load i32, ptr %46, align 4, !tbaa !9
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph84, label %._crit_edge85.thread

._crit_edge85.thread:                             ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  br label %._crit_edge91

.lr.ph84:                                         ; preds = %45
  %49 = getelementptr inbounds i8, ptr %1, i64 28
  %.sroa.244.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %.sroa.240.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  %.sroa.236.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %.sroa.232.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  %50 = load i32, ptr %49, align 4, !tbaa !11
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph84.split, label %._crit_edge85

._crit_edge85:                                    ; preds = %._crit_edge, %.lr.ph84
  %52 = phi i32 [ %47, %.lr.ph84 ], [ %65, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %.lr.ph90, label %._crit_edge91

.lr.ph90:                                         ; preds = %._crit_edge85
  %54 = getelementptr inbounds i8, ptr %1, i64 32
  %.sroa.228.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 8
  %.sroa.224.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %24, i64 8
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %23, i64 8
  %55 = load i32, ptr %54, align 4, !tbaa !12
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.lr.ph90.split, label %._crit_edge91

57:                                               ; preds = %2
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %164

59:                                               ; preds = %42
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %163

.lr.ph84.split:                                   ; preds = %.lr.ph84, %._crit_edge
  %61 = phi i32 [ %65, %._crit_edge ], [ %47, %.lr.ph84 ]
  %62 = phi i32 [ %68, %._crit_edge ], [ 0, %.lr.ph84 ]
  %63 = phi i32 [ %67, %._crit_edge ], [ %50, %.lr.ph84 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  %64 = icmp sgt i32 %63, 0
  br i1 %64, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %81
  %.pre = load i32, ptr %5, align 4, !tbaa !5
  %.pre106 = load i32, ptr %46, align 4, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph84.split
  %65 = phi i32 [ %.pre106, %._crit_edge.loopexit ], [ %61, %.lr.ph84.split ]
  %66 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %62, %.lr.ph84.split ]
  %67 = phi i32 [ %84, %._crit_edge.loopexit ], [ %63, %.lr.ph84.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  %68 = add nsw i32 %66, 1
  store i32 %68, ptr %5, align 4, !tbaa !5
  %69 = icmp slt i32 %68, %65
  br i1 %69, label %.lr.ph84.split, label %._crit_edge85, !llvm.loop !13

.lr.ph:                                           ; preds = %.lr.ph84.split, %81
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %70 = invoke { <2 x float>, float } @_ZN3cgpmlIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %71 unwind label %86

71:                                               ; preds = %.lr.ph
  %.fca.0.extract41 = extractvalue { <2 x float>, float } %70, 0
  %.fca.1.extract42 = extractvalue { <2 x float>, float } %70, 1
  store <2 x float> %.fca.0.extract41, ptr %8, align 8
  store float %.fca.1.extract42, ptr %.sroa.244.0..sroa_idx, align 8
  %72 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %8)
          to label %73 unwind label %86

73:                                               ; preds = %71
  %.fca.0.extract37 = extractvalue { <2 x float>, float } %72, 0
  %.fca.1.extract38 = extractvalue { <2 x float>, float } %72, 1
  store <2 x float> %.fca.0.extract37, ptr %7, align 8
  store float %.fca.1.extract38, ptr %.sroa.240.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #6
  %74 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %75 unwind label %88

75:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  store i32 1, ptr %16, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %76 = invoke { <2 x float>, float } @_ZN3cgpmlIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %77 unwind label %90

77:                                               ; preds = %75
  %.fca.0.extract33 = extractvalue { <2 x float>, float } %76, 0
  %.fca.1.extract34 = extractvalue { <2 x float>, float } %76, 1
  store <2 x float> %.fca.0.extract33, ptr %12, align 8
  store float %.fca.1.extract34, ptr %.sroa.236.0..sroa_idx, align 8
  %78 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %79 unwind label %90

79:                                               ; preds = %77
  %.fca.0.extract29 = extractvalue { <2 x float>, float } %78, 0
  %.fca.1.extract30 = extractvalue { <2 x float>, float } %78, 1
  store <2 x float> %.fca.0.extract29, ptr %11, align 8
  store float %.fca.1.extract30, ptr %.sroa.232.0..sroa_idx, align 8
  %80 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %81 unwind label %90

81:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #6
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %6, align 4, !tbaa !5
  %84 = load i32, ptr %49, align 4, !tbaa !11
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !16

86:                                               ; preds = %71, %.lr.ph
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #6
  br label %92

88:                                               ; preds = %73
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %92

90:                                               ; preds = %79, %77, %75
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #6
  br label %92

92:                                               ; preds = %90, %88, %86
  %.pn78 = phi { ptr, i32 } [ %91, %90 ], [ %89, %88 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %163

._crit_edge91:                                    ; preds = %._crit_edge88, %.lr.ph90, %._crit_edge85.thread, %._crit_edge85
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #6
  %93 = getelementptr inbounds i8, ptr %1, i64 28
  store i32 0, ptr %29, align 4, !tbaa !5
  %94 = load i32, ptr %93, align 4, !tbaa !11
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %.lr.ph98, label %._crit_edge99

.lr.ph98:                                         ; preds = %._crit_edge91
  %96 = getelementptr inbounds i8, ptr %1, i64 32
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %32, i64 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %31, i64 8
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %36, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %35, i64 8
  %97 = load i32, ptr %96, align 4, !tbaa !12
  %98 = icmp sgt i32 %97, 0
  br i1 %98, label %.lr.ph98.split, label %._crit_edge99

.lr.ph90.split:                                   ; preds = %.lr.ph90, %._crit_edge88
  %99 = phi i32 [ %103, %._crit_edge88 ], [ %52, %.lr.ph90 ]
  %100 = phi i32 [ %106, %._crit_edge88 ], [ 0, %.lr.ph90 ]
  %101 = phi i32 [ %105, %._crit_edge88 ], [ %55, %.lr.ph90 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  %102 = icmp sgt i32 %101, 0
  br i1 %102, label %.lr.ph87, label %._crit_edge88

._crit_edge88.loopexit:                           ; preds = %119
  %.pre107 = load i32, ptr %17, align 4, !tbaa !5
  %.pre108 = load i32, ptr %46, align 4, !tbaa !9
  br label %._crit_edge88

._crit_edge88:                                    ; preds = %._crit_edge88.loopexit, %.lr.ph90.split
  %103 = phi i32 [ %.pre108, %._crit_edge88.loopexit ], [ %99, %.lr.ph90.split ]
  %104 = phi i32 [ %.pre107, %._crit_edge88.loopexit ], [ %100, %.lr.ph90.split ]
  %105 = phi i32 [ %122, %._crit_edge88.loopexit ], [ %101, %.lr.ph90.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  %106 = add nsw i32 %104, 1
  store i32 %106, ptr %17, align 4, !tbaa !5
  %107 = icmp slt i32 %106, %103
  br i1 %107, label %.lr.ph90.split, label %._crit_edge91, !llvm.loop !17

.lr.ph87:                                         ; preds = %.lr.ph90.split, %119
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #6
  store i32 0, ptr %22, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %108 = invoke { <2 x float>, float } @_ZN3cgpmlIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %21)
          to label %109 unwind label %124

109:                                              ; preds = %.lr.ph87
  %.fca.0.extract25 = extractvalue { <2 x float>, float } %108, 0
  %.fca.1.extract26 = extractvalue { <2 x float>, float } %108, 1
  store <2 x float> %.fca.0.extract25, ptr %20, align 8
  store float %.fca.1.extract26, ptr %.sroa.228.0..sroa_idx, align 8
  %110 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %20)
          to label %111 unwind label %124

111:                                              ; preds = %109
  %.fca.0.extract21 = extractvalue { <2 x float>, float } %110, 0
  %.fca.1.extract22 = extractvalue { <2 x float>, float } %110, 1
  store <2 x float> %.fca.0.extract21, ptr %19, align 8
  store float %.fca.1.extract22, ptr %.sroa.224.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #6
  %112 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %113 unwind label %126

113:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #6
  store i32 0, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #6
  store i32 1, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #6
  store i32 0, ptr %28, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %114 = invoke { <2 x float>, float } @_ZN3cgpmlIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(12) %25)
          to label %115 unwind label %128

115:                                              ; preds = %113
  %.fca.0.extract17 = extractvalue { <2 x float>, float } %114, 0
  %.fca.1.extract18 = extractvalue { <2 x float>, float } %114, 1
  store <2 x float> %.fca.0.extract17, ptr %24, align 8
  store float %.fca.1.extract18, ptr %.sroa.220.0..sroa_idx, align 8
  %116 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %24)
          to label %117 unwind label %128

117:                                              ; preds = %115
  %.fca.0.extract13 = extractvalue { <2 x float>, float } %116, 0
  %.fca.1.extract14 = extractvalue { <2 x float>, float } %116, 1
  store <2 x float> %.fca.0.extract13, ptr %23, align 8
  store float %.fca.1.extract14, ptr %.sroa.216.0..sroa_idx, align 8
  %118 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %112, ptr noundef nonnull align 4 dereferenceable(12) %23)
          to label %119 unwind label %128

119:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #6
  %120 = load i32, ptr %18, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %18, align 4, !tbaa !5
  %122 = load i32, ptr %54, align 4, !tbaa !12
  %123 = icmp slt i32 %121, %122
  br i1 %123, label %.lr.ph87, label %._crit_edge88.loopexit, !llvm.loop !18

124:                                              ; preds = %109, %.lr.ph87
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #6
  br label %130

126:                                              ; preds = %111
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %130

128:                                              ; preds = %117, %115, %113
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #6
  br label %130

130:                                              ; preds = %128, %126, %124
  %.pn75 = phi { ptr, i32 } [ %129, %128 ], [ %127, %126 ], [ %125, %124 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  br label %163

._crit_edge99:                                    ; preds = %._crit_edge96, %.lr.ph98, %._crit_edge91
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
  ret void

.lr.ph98.split:                                   ; preds = %.lr.ph98, %._crit_edge96
  %131 = phi i32 [ %135, %._crit_edge96 ], [ %94, %.lr.ph98 ]
  %132 = phi i32 [ %138, %._crit_edge96 ], [ 0, %.lr.ph98 ]
  %133 = phi i32 [ %137, %._crit_edge96 ], [ %97, %.lr.ph98 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #6
  store i32 0, ptr %30, align 4, !tbaa !5
  %134 = icmp sgt i32 %133, 0
  br i1 %134, label %.lr.ph95, label %._crit_edge96

._crit_edge96.loopexit:                           ; preds = %151
  %.pre109 = load i32, ptr %29, align 4, !tbaa !5
  %.pre110 = load i32, ptr %93, align 4, !tbaa !11
  br label %._crit_edge96

._crit_edge96:                                    ; preds = %._crit_edge96.loopexit, %.lr.ph98.split
  %135 = phi i32 [ %.pre110, %._crit_edge96.loopexit ], [ %131, %.lr.ph98.split ]
  %136 = phi i32 [ %.pre109, %._crit_edge96.loopexit ], [ %132, %.lr.ph98.split ]
  %137 = phi i32 [ %154, %._crit_edge96.loopexit ], [ %133, %.lr.ph98.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #6
  %138 = add nsw i32 %136, 1
  store i32 %138, ptr %29, align 4, !tbaa !5
  %139 = icmp slt i32 %138, %135
  br i1 %139, label %.lr.ph98.split, label %._crit_edge99, !llvm.loop !19

.lr.ph95:                                         ; preds = %.lr.ph98.split, %151
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %31) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %32) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %33) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #6
  store i32 0, ptr %34, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %140 = invoke { <2 x float>, float } @_ZN3cgpmlIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %33)
          to label %141 unwind label %156

141:                                              ; preds = %.lr.ph95
  %.fca.0.extract9 = extractvalue { <2 x float>, float } %140, 0
  %.fca.1.extract10 = extractvalue { <2 x float>, float } %140, 1
  store <2 x float> %.fca.0.extract9, ptr %32, align 8
  store float %.fca.1.extract10, ptr %.sroa.212.0..sroa_idx, align 8
  %142 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %32)
          to label %143 unwind label %156

143:                                              ; preds = %141
  %.fca.0.extract5 = extractvalue { <2 x float>, float } %142, 0
  %.fca.1.extract6 = extractvalue { <2 x float>, float } %142, 1
  store <2 x float> %.fca.0.extract5, ptr %31, align 8
  store float %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %32) #6
  %144 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %31)
          to label %145 unwind label %158

145:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %35) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %36) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %37) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %38) #6
  store i32 1, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %39) #6
  store i32 0, ptr %39, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %40) #6
  store i32 0, ptr %40, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(4) %38, ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %40)
  %146 = invoke { <2 x float>, float } @_ZN3cgpmlIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(12) %37)
          to label %147 unwind label %160

147:                                              ; preds = %145
  %.fca.0.extract1 = extractvalue { <2 x float>, float } %146, 0
  %.fca.1.extract2 = extractvalue { <2 x float>, float } %146, 1
  store <2 x float> %.fca.0.extract1, ptr %36, align 8
  store float %.fca.1.extract2, ptr %.sroa.24.0..sroa_idx, align 8
  %148 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %36)
          to label %149 unwind label %160

149:                                              ; preds = %147
  %.fca.0.extract = extractvalue { <2 x float>, float } %148, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %148, 1
  store <2 x float> %.fca.0.extract, ptr %35, align 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %150 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %144, ptr noundef nonnull align 4 dereferenceable(12) %35)
          to label %151 unwind label %160

151:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %37) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %31) #6
  %152 = load i32, ptr %30, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %30, align 4, !tbaa !5
  %154 = load i32, ptr %96, align 4, !tbaa !12
  %155 = icmp slt i32 %153, %154
  br i1 %155, label %.lr.ph95, label %._crit_edge96.loopexit, !llvm.loop !20

156:                                              ; preds = %141, %.lr.ph95
  %157 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %32) #6
  br label %162

158:                                              ; preds = %143
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %162

160:                                              ; preds = %149, %147, %145
  %161 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %37) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %35) #6
  br label %162

162:                                              ; preds = %160, %158, %156
  %.pn = phi { ptr, i32 } [ %161, %160 ], [ %159, %158 ], [ %157, %156 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #6
  br label %163

163:                                              ; preds = %92, %130, %162, %59
  %.pn78.pn.pn = phi { ptr, i32 } [ %60, %59 ], [ %.pn78, %92 ], [ %.pn75, %130 ], [ %.pn, %162 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  br label %164

164:                                              ; preds = %163, %57
  %.pn78.pn.pn.pn = phi { ptr, i32 } [ %.pn78.pn.pn, %163 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  resume { ptr, i32 } %.pn78.pn.pn.pn
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 = { 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 #5 = { inlinehint 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 #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN3cgp14numarray_stackIiLi3EEE", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 8}
!13 = distinct !{!13, !14, !15}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.unswitch.partial.disable"}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14, !15}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14, !15}
!20 = distinct !{!20, !14}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass