; LLVM IR from romerojosh/zefr :: src/prisms.ll (ZN6Prisms10calc_shapeER8mdvectorIdEPKd)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.mdvector = type <{ i32, [4 x i8], i64, i64, %"struct.std::array", %"struct.std::array", %"class.std::vector", ptr, i8, [7 x i8] }>
%"struct.std::array" = type { [6 x i32] }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator.2" = type { i8 }
%class.Elements = type { ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8], %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %"class.std::vector.0", %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector.5, %class.mdvector.5, %class.mdvector.5, %class.mdvector.5, %class.mdvector.5, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.7", %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, i64, i64, i64, i64, i64, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdview, %class.mdview, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, %class.mdvector, i32, [4 x i8], %class.mdvector, %class.mdvector, i32, ptr, %"class.std::vector.7", %class.mdvector.5, %class.mdvector, %class.mdvector, %class.mdvector }
%class.mdview = type { %class.mdvector.12, %class.mdvector.5, i32, [4 x i8] }
%class.mdvector.12 = type <{ i32, [4 x i8], i64, i64, %"struct.std::array", %"struct.std::array", %"class.std::vector.13", ptr, i8, [7 x i8] }>
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.mdvector.5 = type <{ i32, [4 x i8], i64, i64, %"struct.std::array", %"struct.std::array", %"class.std::vector.0", ptr, i8, [7 x i8] }>

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

declare void @_Z9Shape_ptsj(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, i32 noundef) #3

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

declare noundef double @_Z9Dubiner2Djddj(i32 noundef, double noundef, double noundef, i32 noundef) #3

declare noundef double @_Z8Legendrejd(i32 noundef, double noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8mdvectorIdEC2ESt6vectorIjSaIjEEdb(ptr noundef nonnull align 8 dereferenceable(105), ptr noundef, double noundef, i1 noundef zeroext) unnamed_addr #2 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Prisms10calc_shapeER8mdvectorIdEPKd(ptr noundef nonnull align 8 dereferenceable(14544) %0, ptr noundef nonnull align 8 dereferenceable(105) %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector.7", align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %class.mdvector, align 8
  %13 = alloca %"class.std::vector.0", align 8
  %14 = alloca %"class.std::initializer_list", align 8
  %15 = alloca [2 x i32], align 4
  %16 = alloca %"class.std::allocator.2", align 1
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %class.mdvector, align 8
  %25 = alloca %"class.std::vector.0", align 8
  %26 = alloca %"class.std::initializer_list", align 8
  %27 = alloca [2 x i32], align 4
  %28 = alloca %"class.std::allocator.2", align 1
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %class.mdvector, align 8
  %34 = alloca %"class.std::vector.0", align 8
  %35 = alloca %"class.std::initializer_list", align 8
  %36 = alloca [2 x i32], align 4
  %37 = alloca %"class.std::allocator.2", align 1
  %38 = alloca i32, align 4
  %39 = alloca double, align 8
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %43 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %44 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 88
  %45 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #6
  %46 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 19
  %47 = load i32, ptr %46, align 8, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = icmp ne i64 %45, %48
  br i1 %49, label %50, label %55

50:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  %51 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 19
  %52 = load i32, ptr %51, align 8, !tbaa !9
  call void @_Z22structured_to_gmsh_prij(ptr dead_on_unwind writable sret(%"class.std::vector.7") align 8 %8, i32 noundef %52)
  %53 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 88
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  br label %55

55:                                               ; preds = %50, %3
  %56 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 19
  %57 = load i32, ptr %56, align 8, !tbaa !9
  switch i32 %57, label %61 [
    i32 6, label %58
    i32 18, label %59
    i32 40, label %60
  ]

58:                                               ; preds = %55
  store i32 1, ptr %7, align 4, !tbaa !36
  br label %61

59:                                               ; preds = %55
  store i32 2, ptr %7, align 4, !tbaa !36
  br label %61

60:                                               ; preds = %55
  store i32 3, ptr %7, align 4, !tbaa !36
  br label %61

61:                                               ; preds = %60, %59, %58, %55
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  %62 = load i32, ptr %7, align 4, !tbaa !36
  call void @_Z9Shape_ptsj(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %9, i32 noundef %62)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %63 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %64 = trunc i64 %63 to i32
  store i32 %64, ptr %10, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %65 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 19
  %66 = load i32, ptr %65, align 8, !tbaa !9
  %67 = load i32, ptr %10, align 4, !tbaa !36
  %68 = udiv i32 %66, %67
  store i32 %68, ptr %11, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 112, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %69 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 19
  %70 = load i32, ptr %69, align 8, !tbaa !9
  store i32 %70, ptr %15, align 4, !tbaa !36
  %71 = getelementptr inbounds i32, ptr %15, i64 1
  %72 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 10
  %73 = load i32, ptr %72, align 4, !tbaa !37
  store i32 %73, ptr %71, align 4, !tbaa !36
  %74 = getelementptr inbounds %"class.std::initializer_list", ptr %14, i32 0, i32 0
  store ptr %15, ptr %74, align 8, !tbaa !38
  %75 = getelementptr inbounds %"class.std::initializer_list", ptr %14, i32 0, i32 1
  store i64 2, ptr %75, align 8, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  %76 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8
  %78 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 1
  %79 = load i64, ptr %78, align 8
  invoke void @_ZNSt6vectorIjSaIjEEC2ESt16initializer_listIjERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr %77, i64 %79, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %80 unwind label %87

80:                                               ; preds = %61
  invoke void @_ZN8mdvectorIdEC2ESt6vectorIjSaIjEEdb(ptr noundef nonnull align 8 dereferenceable(105) %12, ptr noundef %13, double noundef 0.000000e+00, i1 noundef zeroext false)
          to label %81 unwind label %91

81:                                               ; preds = %80
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !36
  br label %82

82:                                               ; preds = %146, %81
  %83 = load i32, ptr %20, align 4, !tbaa !36
  %84 = load i32, ptr %10, align 4, !tbaa !36
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %96, label %86

86:                                               ; preds = %82
  store i32 3, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %149

87:                                               ; preds = %61
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %17, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %18, align 4
  br label %95

91:                                               ; preds = %80
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %17, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %18, align 4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %95

95:                                               ; preds = %91, %87
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %340

96:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !36
  br label %97

97:                                               ; preds = %142, %96
  %98 = load i32, ptr %22, align 4, !tbaa !36
  %99 = load i32, ptr %10, align 4, !tbaa !36
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %97
  store i32 6, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %145

102:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !36
  br label %103

103:                                              ; preds = %134, %102
  %104 = load i32, ptr %23, align 4, !tbaa !36
  %105 = load i32, ptr %10, align 4, !tbaa !36
  %106 = load i32, ptr %22, align 4, !tbaa !36
  %107 = sub nsw i32 %105, %106
  %108 = icmp slt i32 %104, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %103
  store i32 9, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %141

110:                                              ; preds = %103
  %111 = load i32, ptr %23, align 4, !tbaa !36
  %112 = sext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %112) #6
  %114 = load double, ptr %113, align 8, !tbaa !41
  %115 = load i32, ptr %19, align 4, !tbaa !36
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %12, i32 noundef %115, i32 noundef 0)
          to label %117 unwind label %137

117:                                              ; preds = %110
  store double %114, ptr %116, align 8, !tbaa !41
  %118 = load i32, ptr %22, align 4, !tbaa !36
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %119) #6
  %121 = load double, ptr %120, align 8, !tbaa !41
  %122 = load i32, ptr %19, align 4, !tbaa !36
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %12, i32 noundef %122, i32 noundef 1)
          to label %124 unwind label %137

124:                                              ; preds = %117
  store double %121, ptr %123, align 8, !tbaa !41
  %125 = load i32, ptr %20, align 4, !tbaa !36
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %126) #6
  %128 = load double, ptr %127, align 8, !tbaa !41
  %129 = load i32, ptr %19, align 4, !tbaa !36
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %12, i32 noundef %129, i32 noundef 2)
          to label %131 unwind label %137

131:                                              ; preds = %124
  store double %128, ptr %130, align 8, !tbaa !41
  %132 = load i32, ptr %19, align 4, !tbaa !36
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %19, align 4, !tbaa !36
  br label %134

134:                                              ; preds = %131
  %135 = load i32, ptr %23, align 4, !tbaa !36
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %23, align 4, !tbaa !36
  br label %103, !llvm.loop !43

137:                                              ; preds = %124, %117, %110
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %17, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %339

141:                                              ; preds = %109
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %22, align 4, !tbaa !36
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %22, align 4, !tbaa !36
  br label %97, !llvm.loop !45

145:                                              ; preds = %101
  br label %146

146:                                              ; preds = %145
  %147 = load i32, ptr %20, align 4, !tbaa !36
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %20, align 4, !tbaa !36
  br label %82, !llvm.loop !46

149:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 112, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %150 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 19
  %151 = load i32, ptr %150, align 8, !tbaa !9
  store i32 %151, ptr %27, align 4, !tbaa !36
  %152 = getelementptr inbounds i32, ptr %27, i64 1
  %153 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 19
  %154 = load i32, ptr %153, align 8, !tbaa !9
  store i32 %154, ptr %152, align 4, !tbaa !36
  %155 = getelementptr inbounds %"class.std::initializer_list", ptr %26, i32 0, i32 0
  store ptr %27, ptr %155, align 8, !tbaa !38
  %156 = getelementptr inbounds %"class.std::initializer_list", ptr %26, i32 0, i32 1
  store i64 2, ptr %156, align 8, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  %157 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %158 = load ptr, ptr %157, align 8
  %159 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %160 = load i64, ptr %159, align 8
  invoke void @_ZNSt6vectorIjSaIjEEC2ESt16initializer_listIjERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr %158, i64 %160, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %161 unwind label %169

161:                                              ; preds = %149
  invoke void @_ZN8mdvectorIdEC2ESt6vectorIjSaIjEEdb(ptr noundef nonnull align 8 dereferenceable(105) %24, ptr noundef %25, double noundef 0.000000e+00, i1 noundef zeroext false)
          to label %162 unwind label %173

162:                                              ; preds = %161
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !36
  br label %163

163:                                              ; preds = %229, %162
  %164 = load i32, ptr %29, align 4, !tbaa !36
  %165 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 19
  %166 = load i32, ptr %165, align 8, !tbaa !9
  %167 = icmp ult i32 %164, %166
  br i1 %167, label %178, label %168

168:                                              ; preds = %163
  store i32 12, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %232

169:                                              ; preds = %149
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %17, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %18, align 4
  br label %177

173:                                              ; preds = %161
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %17, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %18, align 4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  br label %177

177:                                              ; preds = %173, %169
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %338

178:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 0, ptr %30, align 4, !tbaa !36
  br label %179

179:                                              ; preds = %221, %178
  %180 = load i32, ptr %30, align 4, !tbaa !36
  %181 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 19
  %182 = load i32, ptr %181, align 8, !tbaa !9
  %183 = icmp ult i32 %180, %182
  br i1 %183, label %185, label %184

184:                                              ; preds = %179
  store i32 15, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %228

185:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %186 = load i32, ptr %30, align 4, !tbaa !36
  %187 = load i32, ptr %11, align 4, !tbaa !36
  %188 = udiv i32 %186, %187
  store i32 %188, ptr %31, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %189 = load i32, ptr %30, align 4, !tbaa !36
  %190 = load i32, ptr %11, align 4, !tbaa !36
  %191 = urem i32 %189, %190
  store i32 %191, ptr %32, align 4, !tbaa !36
  %192 = load i32, ptr %7, align 4, !tbaa !36
  %193 = load i32, ptr %29, align 4, !tbaa !36
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %12, i32 noundef %193, i32 noundef 0)
          to label %195 unwind label %224

195:                                              ; preds = %185
  %196 = load double, ptr %194, align 8, !tbaa !41
  %197 = load i32, ptr %29, align 4, !tbaa !36
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %12, i32 noundef %197, i32 noundef 1)
          to label %199 unwind label %224

199:                                              ; preds = %195
  %200 = load double, ptr %198, align 8, !tbaa !41
  %201 = load i32, ptr %32, align 4, !tbaa !36
  %202 = invoke noundef double @_Z9Dubiner2Djddj(i32 noundef %192, double noundef %196, double noundef %200, i32 noundef %201)
          to label %203 unwind label %224

203:                                              ; preds = %199
  %204 = load i32, ptr %31, align 4, !tbaa !36
  %205 = load i32, ptr %29, align 4, !tbaa !36
  %206 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %12, i32 noundef %205, i32 noundef 2)
          to label %207 unwind label %224

207:                                              ; preds = %203
  %208 = load double, ptr %206, align 8, !tbaa !41
  %209 = invoke noundef double @_Z8Legendrejd(i32 noundef %204, double noundef %208)
          to label %210 unwind label %224

210:                                              ; preds = %207
  %211 = fmul double %202, %209
  %212 = load i32, ptr %31, align 4, !tbaa !36
  %213 = sitofp i32 %212 to double
  %214 = fadd double %213, 5.000000e-01
  %215 = call double @sqrt(double noundef %214) #6
  %216 = fmul double %211, %215
  %217 = load i32, ptr %29, align 4, !tbaa !36
  %218 = load i32, ptr %30, align 4, !tbaa !36
  %219 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %24, i32 noundef %217, i32 noundef %218)
          to label %220 unwind label %224

220:                                              ; preds = %210
  store double %216, ptr %219, align 8, !tbaa !41
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %221

221:                                              ; preds = %220
  %222 = load i32, ptr %30, align 4, !tbaa !36
  %223 = add i32 %222, 1
  store i32 %223, ptr %30, align 4, !tbaa !36
  br label %179, !llvm.loop !47

224:                                              ; preds = %210, %207, %203, %199, %195, %185
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %17, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %337

228:                                              ; preds = %184
  br label %229

229:                                              ; preds = %228
  %230 = load i32, ptr %29, align 4, !tbaa !36
  %231 = add i32 %230, 1
  store i32 %231, ptr %29, align 4, !tbaa !36
  br label %163, !llvm.loop !48

232:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 112, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %233 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 19
  %234 = load i32, ptr %233, align 8, !tbaa !9
  store i32 %234, ptr %36, align 4, !tbaa !36
  %235 = getelementptr inbounds i32, ptr %36, i64 1
  %236 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 19
  %237 = load i32, ptr %236, align 8, !tbaa !9
  store i32 %237, ptr %235, align 4, !tbaa !36
  %238 = getelementptr inbounds %"class.std::initializer_list", ptr %35, i32 0, i32 0
  store ptr %36, ptr %238, align 8, !tbaa !38
  %239 = getelementptr inbounds %"class.std::initializer_list", ptr %35, i32 0, i32 1
  store i64 2, ptr %239, align 8, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #6
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  %240 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 0
  %241 = load ptr, ptr %240, align 8
  %242 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 1
  %243 = load i64, ptr %242, align 8
  invoke void @_ZNSt6vectorIjSaIjEEC2ESt16initializer_listIjERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr %241, i64 %243, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %244 unwind label %253

244:                                              ; preds = %232
  invoke void @_ZN8mdvectorIdEC2ESt6vectorIjSaIjEEdb(ptr noundef nonnull align 8 dereferenceable(105) %33, ptr noundef %34, double noundef 0.000000e+00, i1 noundef zeroext false)
          to label %245 unwind label %257

245:                                              ; preds = %244
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  invoke void @_ZNK8mdvectorIdE7inverseERS0_(ptr noundef nonnull align 8 dereferenceable(105) %24, ptr noundef nonnull align 8 dereferenceable(105) %33)
          to label %246 unwind label %262

246:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  store i32 0, ptr %38, align 4, !tbaa !36
  br label %247

247:                                              ; preds = %326, %246
  %248 = load i32, ptr %38, align 4, !tbaa !36
  %249 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 19
  %250 = load i32, ptr %249, align 8, !tbaa !9
  %251 = icmp ult i32 %248, %250
  br i1 %251, label %266, label %252

252:                                              ; preds = %247
  store i32 18, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %334

253:                                              ; preds = %232
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %17, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %18, align 4
  br label %261

257:                                              ; preds = %244
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %17, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %18, align 4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  br label %261

261:                                              ; preds = %257, %253
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %336

262:                                              ; preds = %245
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %17, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %18, align 4
  br label %335

266:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  store double 0.000000e+00, ptr %39, align 8, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  store i32 0, ptr %40, align 4, !tbaa !36
  br label %267

267:                                              ; preds = %309, %266
  %268 = load i32, ptr %40, align 4, !tbaa !36
  %269 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 19
  %270 = load i32, ptr %269, align 8, !tbaa !9
  %271 = icmp ult i32 %268, %270
  br i1 %271, label %273, label %272

272:                                              ; preds = %267
  store i32 21, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  br label %316

273:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  %274 = load i32, ptr %40, align 4, !tbaa !36
  %275 = load i32, ptr %11, align 4, !tbaa !36
  %276 = udiv i32 %274, %275
  store i32 %276, ptr %41, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  %277 = load i32, ptr %40, align 4, !tbaa !36
  %278 = load i32, ptr %11, align 4, !tbaa !36
  %279 = urem i32 %277, %278
  store i32 %279, ptr %42, align 4, !tbaa !36
  %280 = load i32, ptr %40, align 4, !tbaa !36
  %281 = load i32, ptr %38, align 4, !tbaa !36
  %282 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %33, i32 noundef %280, i32 noundef %281)
          to label %283 unwind label %312

283:                                              ; preds = %273
  %284 = load double, ptr %282, align 8, !tbaa !41
  %285 = load i32, ptr %7, align 4, !tbaa !36
  %286 = load ptr, ptr %6, align 8, !tbaa !5
  %287 = getelementptr inbounds double, ptr %286, i64 0
  %288 = load double, ptr %287, align 8, !tbaa !41
  %289 = load ptr, ptr %6, align 8, !tbaa !5
  %290 = getelementptr inbounds double, ptr %289, i64 1
  %291 = load double, ptr %290, align 8, !tbaa !41
  %292 = load i32, ptr %42, align 4, !tbaa !36
  %293 = invoke noundef double @_Z9Dubiner2Djddj(i32 noundef %285, double noundef %288, double noundef %291, i32 noundef %292)
          to label %294 unwind label %312

294:                                              ; preds = %283
  %295 = fmul double %284, %293
  %296 = load i32, ptr %41, align 4, !tbaa !36
  %297 = load ptr, ptr %6, align 8, !tbaa !5
  %298 = getelementptr inbounds double, ptr %297, i64 2
  %299 = load double, ptr %298, align 8, !tbaa !41
  %300 = invoke noundef double @_Z8Legendrejd(i32 noundef %296, double noundef %299)
          to label %301 unwind label %312

301:                                              ; preds = %294
  %302 = fmul double %295, %300
  %303 = load i32, ptr %41, align 4, !tbaa !36
  %304 = sitofp i32 %303 to double
  %305 = fadd double %304, 5.000000e-01
  %306 = call double @sqrt(double noundef %305) #6
  %307 = load double, ptr %39, align 8, !tbaa !41
  %308 = call double @llvm.fmuladd.f64(double %302, double %306, double %307)
  store double %308, ptr %39, align 8, !tbaa !41
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %309

309:                                              ; preds = %301
  %310 = load i32, ptr %40, align 4, !tbaa !36
  %311 = add i32 %310, 1
  store i32 %311, ptr %40, align 4, !tbaa !36
  br label %267, !llvm.loop !49

312:                                              ; preds = %294, %283, %273
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %17, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  br label %333

316:                                              ; preds = %272
  %317 = load double, ptr %39, align 8, !tbaa !41
  %318 = load ptr, ptr %5, align 8, !tbaa !5
  %319 = getelementptr inbounds %class.Elements, ptr %43, i32 0, i32 88
  %320 = load i32, ptr %38, align 4, !tbaa !36
  %321 = zext i32 %320 to i64
  %322 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %319, i64 noundef %321) #6
  %323 = load i32, ptr %322, align 4, !tbaa !36
  %324 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %318, i32 noundef %323)
          to label %325 unwind label %329

325:                                              ; preds = %316
  store double %317, ptr %324, align 8, !tbaa !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %326

326:                                              ; preds = %325
  %327 = load i32, ptr %38, align 4, !tbaa !36
  %328 = add i32 %327, 1
  store i32 %328, ptr %38, align 4, !tbaa !36
  br label %247, !llvm.loop !50

329:                                              ; preds = %316
  %330 = landingpad { ptr, i32 }
          cleanup
  %331 = extractvalue { ptr, i32 } %330, 0
  store ptr %331, ptr %17, align 8
  %332 = extractvalue { ptr, i32 } %330, 1
  store i32 %332, ptr %18, align 4
  br label %333

333:                                              ; preds = %329, %312
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %335

334:                                              ; preds = %252
  call void @_ZN8mdvectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %33) #6
  call void @llvm.lifetime.end.p0(i64 112, ptr %33) #6
  call void @_ZN8mdvectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %24) #6
  call void @llvm.lifetime.end.p0(i64 112, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @_ZN8mdvectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %12) #6
  call void @llvm.lifetime.end.p0(i64 112, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret void

335:                                              ; preds = %333, %262
  call void @_ZN8mdvectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %33) #6
  br label %336

336:                                              ; preds = %335, %261
  call void @llvm.lifetime.end.p0(i64 112, ptr %33) #6
  br label %337

337:                                              ; preds = %336, %224
  call void @_ZN8mdvectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %24) #6
  br label %338

338:                                              ; preds = %337, %177
  call void @llvm.lifetime.end.p0(i64 112, ptr %24) #6
  br label %339

339:                                              ; preds = %338, %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @_ZN8mdvectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %12) #6
  br label %340

340:                                              ; preds = %339, %95
  call void @llvm.lifetime.end.p0(i64 112, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %341

341:                                              ; preds = %340
  %342 = load ptr, ptr %17, align 8
  %343 = load i32, ptr %18, align 4
  %344 = insertvalue { ptr, i32 } poison, ptr %342, 0
  %345 = insertvalue { ptr, i32 } %344, i32 %343, 1
  resume { ptr, i32 } %345
}

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

declare void @_Z22structured_to_gmsh_prij(ptr dead_on_unwind writable sret(%"class.std::vector.7") align 8, i32 noundef) #3

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { "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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 88}
!10 = !{!"_ZTS8Elements", !6, i64 8, !6, i64 16, !11, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !13, i64 104, !13, i64 216, !13, i64 328, !13, i64 440, !21, i64 552, !13, i64 576, !13, i64 688, !13, i64 800, !13, i64 912, !13, i64 1024, !25, i64 1136, !25, i64 1248, !25, i64 1360, !25, i64 1472, !25, i64 1584, !16, i64 1696, !16, i64 1720, !16, i64 1744, !16, i64 1768, !13, i64 1792, !13, i64 1904, !13, i64 2016, !13, i64 2128, !13, i64 2240, !13, i64 2352, !13, i64 2464, !13, i64 2576, !13, i64 2688, !13, i64 2800, !13, i64 2912, !13, i64 3024, !13, i64 3136, !13, i64 3248, !13, i64 3360, !13, i64 3472, !13, i64 3584, !13, i64 3696, !13, i64 3808, !13, i64 3920, !13, i64 4032, !13, i64 4144, !13, i64 4256, !13, i64 4368, !13, i64 4480, !13, i64 4592, !13, i64 4704, !13, i64 4816, !13, i64 4928, !13, i64 5040, !13, i64 5152, !13, i64 5264, !13, i64 5376, !13, i64 5488, !13, i64 5600, !13, i64 5712, !13, i64 5824, !13, i64 5936, !12, i64 6048, !16, i64 6056, !16, i64 6080, !16, i64 6104, !16, i64 6128, !16, i64 6152, !16, i64 6176, !16, i64 6200, !26, i64 6224, !13, i64 6248, !13, i64 6360, !13, i64 6472, !13, i64 6584, !13, i64 6696, !13, i64 6808, !13, i64 6920, !13, i64 7032, !13, i64 7144, !14, i64 7256, !14, i64 7264, !14, i64 7272, !14, i64 7280, !14, i64 7288, !13, i64 7296, !13, i64 7408, !13, i64 7520, !13, i64 7632, !13, i64 7744, !13, i64 7856, !13, i64 7968, !13, i64 8080, !13, i64 8192, !13, i64 8304, !13, i64 8416, !13, i64 8528, !13, i64 8640, !13, i64 8752, !13, i64 8864, !13, i64 8976, !13, i64 9088, !13, i64 9200, !13, i64 9312, !13, i64 9424, !13, i64 9536, !13, i64 9648, !13, i64 9760, !13, i64 9872, !13, i64 9984, !13, i64 10096, !13, i64 10208, !13, i64 10320, !13, i64 10432, !13, i64 10544, !13, i64 10656, !13, i64 10768, !13, i64 10880, !13, i64 10992, !13, i64 11104, !13, i64 11216, !13, i64 11328, !13, i64 11440, !13, i64 11552, !13, i64 11664, !13, i64 11776, !13, i64 11888, !13, i64 12000, !30, i64 12112, !30, i64 12344, !13, i64 12576, !13, i64 12688, !13, i64 12800, !13, i64 12912, !13, i64 13024, !13, i64 13136, !12, i64 13248, !13, i64 13256, !13, i64 13368, !12, i64 13480, !6, i64 13488, !26, i64 13496, !25, i64 13520, !13, i64 13632, !13, i64 13744, !13, i64 13856}
!11 = !{!"_ZTS8ELE_TYPE", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS8mdvectorIdE", !12, i64 0, !14, i64 8, !14, i64 16, !15, i64 24, !15, i64 48, !16, i64 72, !6, i64 96, !20, i64 104}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSSt5arrayIjLm6EE", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSSt6vectorIjSaIjEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTS8mdvectorIjE", !12, i64 0, !14, i64 8, !14, i64 16, !15, i64 24, !15, i64 48, !21, i64 72, !6, i64 96, !20, i64 104}
!26 = !{!"_ZTSSt6vectorIiSaIiEE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTS6mdviewIdE", !31, i64 0, !25, i64 112, !12, i64 224}
!31 = !{!"_ZTS8mdvectorIPdE", !12, i64 0, !14, i64 8, !14, i64 16, !15, i64 24, !15, i64 48, !32, i64 72, !6, i64 96, !20, i64 104}
!32 = !{!"_ZTSSt6vectorIPdSaIS0_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIPdSaIS0_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!12, !12, i64 0}
!37 = !{!10, !12, i64 52}
!38 = !{!39, !6, i64 0}
!39 = !{!"_ZTSSt16initializer_listIjE", !6, i64 0, !14, i64 8}
!40 = !{!39, !14, i64 8}
!41 = !{!42, !42, i64 0}
!42 = !{!"double", !7, i64 0}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}
!45 = distinct !{!45, !44}
!46 = distinct !{!46, !44}
!47 = distinct !{!47, !44}
!48 = distinct !{!48, !44}
!49 = distinct !{!49, !44}
!50 = distinct !{!50, !44}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.mdvector = type <{ i32, [4 x i8], i64, i64, %"struct.std::array", %"struct.std::array", %"class.std::vector", ptr, i8, [7 x i8] }>
%"struct.std::array" = type { [6 x i32] }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }

declare i32 @__gxx_personality_v0(...)

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

; 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 nounwind uwtable
declare dso_local void @_ZN8mdvectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(105)) unnamed_addr #1 align 2

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

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

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

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

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

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

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

declare void @_Z9Shape_ptsj(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #4

declare noundef double @_Z9Dubiner2Djddj(i32 noundef, double noundef, double noundef, i32 noundef) local_unnamed_addr #3

declare noundef double @_Z8Legendrejd(i32 noundef, double noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8mdvectorIdEC2ESt6vectorIjSaIjEEdb(ptr noundef nonnull align 8 dereferenceable(105), ptr noundef, double noundef, i1 noundef zeroext) unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Prisms10calc_shapeER8mdvectorIdEPKd(ptr noundef nonnull align 8 dereferenceable(14544) %0, ptr noundef nonnull align 8 dereferenceable(105) %1, ptr nocapture noundef readonly %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.7", align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %class.mdvector, align 8
  %7 = alloca %"class.std::vector.0", align 8
  %8 = alloca [2 x i32], align 4
  %9 = alloca %"class.std::allocator.2", align 1
  %10 = alloca %class.mdvector, align 8
  %11 = alloca %"class.std::vector.0", align 8
  %12 = alloca [2 x i32], align 4
  %13 = alloca %"class.std::allocator.2", align 1
  %14 = alloca %class.mdvector, align 8
  %15 = alloca %"class.std::vector.0", align 8
  %16 = alloca [2 x i32], align 4
  %17 = alloca %"class.std::allocator.2", align 1
  %18 = getelementptr inbounds i8, ptr %0, i64 6224
  %19 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %20 = getelementptr inbounds i8, ptr %0, i64 88
  %21 = load i32, ptr %20, align 8, !tbaa !5
  %22 = zext i32 %21 to i64
  %.not = icmp eq i64 %19, %22
  br i1 %.not, label %25, label %23

23:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @_Z22structured_to_gmsh_prij(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.7") align 8 %4, i32 noundef %21)
  %24 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  %.pre = load i32, ptr %20, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %23, %3
  %26 = phi i32 [ %.pre, %23 ], [ %21, %3 ]
  %switch.selectcmp = icmp eq i32 %26, 18
  %switch.select = select i1 %switch.selectcmp, i32 2, i32 1
  %switch.selectcmp94 = icmp eq i32 %26, 40
  %switch.select95 = select i1 %switch.selectcmp94, i32 3, i32 %switch.select
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_Z9Shape_ptsj(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %5, i32 noundef %switch.select95)
  %27 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %28 = trunc i64 %27 to i32
  %29 = load i32, ptr %20, align 8, !tbaa !5
  %30 = udiv i32 %29, %28
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  store i32 %29, ptr %8, align 4, !tbaa !35
  %31 = getelementptr inbounds i8, ptr %8, i64 4
  %32 = getelementptr inbounds i8, ptr %0, i64 52
  %33 = load i32, ptr %32, align 4, !tbaa !36
  store i32 %33, ptr %31, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt6vectorIjSaIjEEC2ESt16initializer_listIjERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr nonnull %8, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %34 unwind label %52

34:                                               ; preds = %25
  invoke void @_ZN8mdvectorIdEC2ESt6vectorIjSaIjEEdb(ptr noundef nonnull align 8 dereferenceable(105) %6, ptr noundef nonnull %7, double noundef 0.000000e+00, i1 noundef zeroext false)
          to label %35 unwind label %54

35:                                               ; preds = %34
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %36 = icmp sgt i32 %28, 0
  br i1 %36, label %.preheader98.us.preheader, label %._crit_edge109

.preheader98.us.preheader:                        ; preds = %35
  %37 = and i64 %27, 2147483647
  %wide.trip.count141 = and i64 %27, 2147483647
  br label %.preheader98.us

.preheader98.us:                                  ; preds = %.preheader98.us.preheader, %._crit_edge105.us
  %indvars.iv138 = phi i64 [ 0, %.preheader98.us.preheader ], [ %indvars.iv.next139, %._crit_edge105.us ]
  %.074108.us = phi i32 [ 0, %.preheader98.us.preheader ], [ %.276.lcssa.us, %._crit_edge105.us ]
  br label %.preheader97.us

._crit_edge.us:                                   ; preds = %38, %.preheader97.us
  %.276.lcssa.us = phi i32 [ %.175104.us, %.preheader97.us ], [ %48, %38 ]
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
  %indvars.iv.next132 = add i32 %indvars.iv131, -1
  %exitcond137.not = icmp eq i64 %indvars.iv.next134, %wide.trip.count141
  br i1 %exitcond137.not, label %._crit_edge105.us, label %.preheader97.us, !llvm.loop !37

38:                                               ; preds = %.lr.ph.us, %38
  %indvars.iv = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next, %38 ]
  %.276102.us = phi i32 [ %.175104.us, %.lr.ph.us ], [ %48, %38 ]
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv) #6
  %40 = load double, ptr %39, align 8, !tbaa !39
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %6, i32 noundef %.276102.us, i32 noundef 0)
  store double %40, ptr %41, align 8, !tbaa !39
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv133) #6
  %43 = load double, ptr %42, align 8, !tbaa !39
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %6, i32 noundef %.276102.us, i32 noundef 1)
  store double %43, ptr %44, align 8, !tbaa !39
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv138) #6
  %46 = load double, ptr %45, align 8, !tbaa !39
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %6, i32 noundef %.276102.us, i32 noundef 2)
  store double %46, ptr %47, align 8, !tbaa !39
  %48 = add nsw i32 %.276102.us, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us, label %38, !llvm.loop !41

.preheader97.us:                                  ; preds = %.preheader98.us, %._crit_edge.us
  %indvars.iv133 = phi i64 [ 0, %.preheader98.us ], [ %indvars.iv.next134, %._crit_edge.us ]
  %indvars.iv131 = phi i32 [ %28, %.preheader98.us ], [ %indvars.iv.next132, %._crit_edge.us ]
  %.175104.us = phi i32 [ %.074108.us, %.preheader98.us ], [ %.276.lcssa.us, %._crit_edge.us ]
  %49 = icmp ugt i64 %37, %indvars.iv133
  br i1 %49, label %.lr.ph.us, label %._crit_edge.us

.lr.ph.us:                                        ; preds = %.preheader97.us
  %wide.trip.count = zext i32 %indvars.iv131 to i64
  br label %38

._crit_edge105.us:                                ; preds = %._crit_edge.us
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %exitcond142.not = icmp eq i64 %indvars.iv.next139, %wide.trip.count141
  br i1 %exitcond142.not, label %._crit_edge109, label %.preheader98.us, !llvm.loop !42

._crit_edge109:                                   ; preds = %._crit_edge105.us, %35
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %50 = load i32, ptr %20, align 8, !tbaa !5
  store i32 %50, ptr %12, align 4, !tbaa !35
  %51 = getelementptr inbounds i8, ptr %12, i64 4
  store i32 %50, ptr %51, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt6vectorIjSaIjEEC2ESt16initializer_listIjERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr nonnull %12, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %57 unwind label %61

52:                                               ; preds = %25
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %56

54:                                               ; preds = %34
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %56

56:                                               ; preds = %54, %52
  %.pn = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %134

57:                                               ; preds = %._crit_edge109
  invoke void @_ZN8mdvectorIdEC2ESt6vectorIjSaIjEEdb(ptr noundef nonnull align 8 dereferenceable(105) %10, ptr noundef nonnull %11, double noundef 0.000000e+00, i1 noundef zeroext false)
          to label %58 unwind label %63

58:                                               ; preds = %57
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  %59 = load i32, ptr %20, align 8, !tbaa !5
  %.not121 = icmp eq i32 %59, 0
  br i1 %.not121, label %._crit_edge112, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %58, %._crit_edge
  %.079111 = phi i32 [ %66, %._crit_edge ], [ 0, %58 ]
  br label %.lr.ph

._crit_edge112:                                   ; preds = %._crit_edge, %58
  %.lcssa = phi i32 [ 0, %58 ], [ %87, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  store i32 %.lcssa, ptr %16, align 4, !tbaa !35
  %60 = getelementptr inbounds i8, ptr %16, i64 4
  store i32 %.lcssa, ptr %60, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #6
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  invoke void @_ZNSt6vectorIjSaIjEEC2ESt16initializer_listIjERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr nonnull %16, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %91 unwind label %98

61:                                               ; preds = %._crit_edge109
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %65

63:                                               ; preds = %57
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  br label %65

65:                                               ; preds = %63, %61
  %.pn84 = phi { ptr, i32 } [ %64, %63 ], [ %62, %61 ]
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %133

._crit_edge:                                      ; preds = %79
  %66 = add nuw i32 %.079111, 1
  %67 = icmp ult i32 %66, %87
  br i1 %67, label %.lr.ph.preheader, label %._crit_edge112, !llvm.loop !43

.lr.ph:                                           ; preds = %.lr.ph.preheader, %79
  %.078110 = phi i32 [ %86, %79 ], [ 0, %.lr.ph.preheader ]
  %68 = udiv i32 %.078110, %30
  %69 = urem i32 %.078110, %30
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %6, i32 noundef %.079111, i32 noundef 0)
  %71 = load double, ptr %70, align 8, !tbaa !39
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %6, i32 noundef %.079111, i32 noundef 1)
  %73 = load double, ptr %72, align 8, !tbaa !39
  %74 = invoke noundef double @_Z9Dubiner2Djddj(i32 noundef %switch.select95, double noundef %71, double noundef %73, i32 noundef %69)
          to label %75 unwind label %89

75:                                               ; preds = %.lr.ph
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %6, i32 noundef %.079111, i32 noundef 2)
  %77 = load double, ptr %76, align 8, !tbaa !39
  %78 = invoke noundef double @_Z8Legendrejd(i32 noundef %68, double noundef %77)
          to label %79 unwind label %89

79:                                               ; preds = %75
  %80 = fmul double %74, %78
  %81 = sitofp i32 %68 to double
  %82 = fadd double %81, 5.000000e-01
  %83 = call double @sqrt(double noundef %82) #6
  %84 = fmul double %80, %83
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %10, i32 noundef %.079111, i32 noundef %.078110)
  store double %84, ptr %85, align 8, !tbaa !39
  %86 = add nuw i32 %.078110, 1
  %87 = load i32, ptr %20, align 8, !tbaa !5
  %88 = icmp ult i32 %86, %87
  br i1 %88, label %.lr.ph, label %._crit_edge, !llvm.loop !45

89:                                               ; preds = %75, %.lr.ph
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %132

91:                                               ; preds = %._crit_edge112
  invoke void @_ZN8mdvectorIdEC2ESt6vectorIjSaIjEEdb(ptr noundef nonnull align 8 dereferenceable(105) %14, ptr noundef nonnull %15, double noundef 0.000000e+00, i1 noundef zeroext false)
          to label %92 unwind label %100

92:                                               ; preds = %91
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @_ZNK8mdvectorIdE7inverseERS0_(ptr noundef nonnull align 8 dereferenceable(105) %10, ptr noundef nonnull align 8 dereferenceable(105) %14)
  %93 = load i32, ptr %20, align 8, !tbaa !5
  %.not124 = icmp eq i32 %93, 0
  br i1 %.not124, label %._crit_edge120, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %92
  %94 = getelementptr inbounds i8, ptr %2, i64 8
  %95 = getelementptr inbounds i8, ptr %2, i64 16
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge117
  %96 = phi i32 [ 1, %.preheader.lr.ph ], [ %106, %._crit_edge117 ]
  %indvars.iv143 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next144, %._crit_edge117 ]
  %.not125 = icmp eq i32 %96, 0
  br i1 %.not125, label %._crit_edge117, label %.lr.ph116.preheader

.lr.ph116.preheader:                              ; preds = %.preheader
  %97 = trunc nuw i64 %indvars.iv143 to i32
  br label %.lr.ph116

._crit_edge120:                                   ; preds = %._crit_edge117, %92
  call void @_ZN8mdvectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %14) #6
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %14) #6
  call void @_ZN8mdvectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %10) #6
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %10) #6
  call void @_ZN8mdvectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %6) #6
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %6) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  ret void

98:                                               ; preds = %._crit_edge112
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %102

100:                                              ; preds = %91
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %102

102:                                              ; preds = %100, %98
  %.pn86 = phi { ptr, i32 } [ %101, %100 ], [ %99, %98 ]
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  br label %131

._crit_edge117:                                   ; preds = %119, %.preheader
  %.065.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %125, %119 ]
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %indvars.iv143) #6
  %104 = load i32, ptr %103, align 4, !tbaa !35
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEj(ptr noundef nonnull align 8 dereferenceable(105) %1, i32 noundef %104)
  store double %.065.lcssa, ptr %105, align 8, !tbaa !39
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %106 = load i32, ptr %20, align 8, !tbaa !5
  %107 = zext i32 %106 to i64
  %108 = icmp ult i64 %indvars.iv.next144, %107
  br i1 %108, label %.preheader, label %._crit_edge120, !llvm.loop !46

.lr.ph116:                                        ; preds = %.lr.ph116.preheader, %119
  %.064115 = phi i32 [ %126, %119 ], [ 0, %.lr.ph116.preheader ]
  %.065114 = phi double [ %125, %119 ], [ 0.000000e+00, %.lr.ph116.preheader ]
  %109 = udiv i32 %.064115, %30
  %110 = urem i32 %.064115, %30
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8mdvectorIdEclEjj(ptr noundef nonnull align 8 dereferenceable(105) %14, i32 noundef %.064115, i32 noundef %97)
  %112 = load double, ptr %111, align 8, !tbaa !39
  %113 = load double, ptr %2, align 8, !tbaa !39
  %114 = load double, ptr %94, align 8, !tbaa !39
  %115 = invoke noundef double @_Z9Dubiner2Djddj(i32 noundef %switch.select95, double noundef %113, double noundef %114, i32 noundef %110)
          to label %116 unwind label %129

116:                                              ; preds = %.lr.ph116
  %117 = load double, ptr %95, align 8, !tbaa !39
  %118 = invoke noundef double @_Z8Legendrejd(i32 noundef %109, double noundef %117)
          to label %119 unwind label %129

119:                                              ; preds = %116
  %120 = fmul double %112, %115
  %121 = fmul double %120, %118
  %122 = sitofp i32 %109 to double
  %123 = fadd double %122, 5.000000e-01
  %124 = call double @sqrt(double noundef %123) #6
  %125 = call double @llvm.fmuladd.f64(double %121, double %124, double %.065114)
  %126 = add nuw i32 %.064115, 1
  %127 = load i32, ptr %20, align 8, !tbaa !5
  %128 = icmp ult i32 %126, %127
  br i1 %128, label %.lr.ph116, label %._crit_edge117, !llvm.loop !47

129:                                              ; preds = %116, %.lr.ph116
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8mdvectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %14) #6
  br label %131

131:                                              ; preds = %129, %102
  %.pn88 = phi { ptr, i32 } [ %130, %129 ], [ %.pn86, %102 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %14) #6
  br label %132

132:                                              ; preds = %131, %89
  %.pn90 = phi { ptr, i32 } [ %90, %89 ], [ %.pn88, %131 ]
  call void @_ZN8mdvectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %10) #6
  br label %133

133:                                              ; preds = %132, %65
  %.pn90.pn = phi { ptr, i32 } [ %.pn90, %132 ], [ %.pn84, %65 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %10) #6
  call void @_ZN8mdvectorIdED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %6) #6
  br label %134

134:                                              ; preds = %133, %56
  %.pn90.pn.pn = phi { ptr, i32 } [ %.pn90.pn, %133 ], [ %.pn, %56 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %6) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn90.pn.pn
}

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

declare void @_Z22structured_to_gmsh_prij(ptr dead_on_unwind writable sret(%"class.std::vector.7") align 8, i32 noundef) local_unnamed_addr #3

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { "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 nofree nounwind willreturn memory(write) "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !11, i64 88}
!6 = !{!"_ZTS8Elements", !7, i64 8, !7, i64 16, !10, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !12, i64 104, !12, i64 216, !12, i64 328, !12, i64 440, !20, i64 552, !12, i64 576, !12, i64 688, !12, i64 800, !12, i64 912, !12, i64 1024, !24, i64 1136, !24, i64 1248, !24, i64 1360, !24, i64 1472, !24, i64 1584, !15, i64 1696, !15, i64 1720, !15, i64 1744, !15, i64 1768, !12, i64 1792, !12, i64 1904, !12, i64 2016, !12, i64 2128, !12, i64 2240, !12, i64 2352, !12, i64 2464, !12, i64 2576, !12, i64 2688, !12, i64 2800, !12, i64 2912, !12, i64 3024, !12, i64 3136, !12, i64 3248, !12, i64 3360, !12, i64 3472, !12, i64 3584, !12, i64 3696, !12, i64 3808, !12, i64 3920, !12, i64 4032, !12, i64 4144, !12, i64 4256, !12, i64 4368, !12, i64 4480, !12, i64 4592, !12, i64 4704, !12, i64 4816, !12, i64 4928, !12, i64 5040, !12, i64 5152, !12, i64 5264, !12, i64 5376, !12, i64 5488, !12, i64 5600, !12, i64 5712, !12, i64 5824, !12, i64 5936, !11, i64 6048, !15, i64 6056, !15, i64 6080, !15, i64 6104, !15, i64 6128, !15, i64 6152, !15, i64 6176, !15, i64 6200, !25, i64 6224, !12, i64 6248, !12, i64 6360, !12, i64 6472, !12, i64 6584, !12, i64 6696, !12, i64 6808, !12, i64 6920, !12, i64 7032, !12, i64 7144, !13, i64 7256, !13, i64 7264, !13, i64 7272, !13, i64 7280, !13, i64 7288, !12, i64 7296, !12, i64 7408, !12, i64 7520, !12, i64 7632, !12, i64 7744, !12, i64 7856, !12, i64 7968, !12, i64 8080, !12, i64 8192, !12, i64 8304, !12, i64 8416, !12, i64 8528, !12, i64 8640, !12, i64 8752, !12, i64 8864, !12, i64 8976, !12, i64 9088, !12, i64 9200, !12, i64 9312, !12, i64 9424, !12, i64 9536, !12, i64 9648, !12, i64 9760, !12, i64 9872, !12, i64 9984, !12, i64 10096, !12, i64 10208, !12, i64 10320, !12, i64 10432, !12, i64 10544, !12, i64 10656, !12, i64 10768, !12, i64 10880, !12, i64 10992, !12, i64 11104, !12, i64 11216, !12, i64 11328, !12, i64 11440, !12, i64 11552, !12, i64 11664, !12, i64 11776, !12, i64 11888, !12, i64 12000, !29, i64 12112, !29, i64 12344, !12, i64 12576, !12, i64 12688, !12, i64 12800, !12, i64 12912, !12, i64 13024, !12, i64 13136, !11, i64 13248, !12, i64 13256, !12, i64 13368, !11, i64 13480, !7, i64 13488, !25, i64 13496, !24, i64 13520, !12, i64 13632, !12, i64 13744, !12, i64 13856}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS8ELE_TYPE", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"_ZTS8mdvectorIdE", !11, i64 0, !13, i64 8, !13, i64 16, !14, i64 24, !14, i64 48, !15, i64 72, !7, i64 96, !19, i64 104}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTSSt5arrayIjLm6EE", !8, i64 0}
!15 = !{!"_ZTSSt6vectorIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!19 = !{!"bool", !8, i64 0}
!20 = !{!"_ZTSSt6vectorIjSaIjEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!24 = !{!"_ZTS8mdvectorIjE", !11, i64 0, !13, i64 8, !13, i64 16, !14, i64 24, !14, i64 48, !20, i64 72, !7, i64 96, !19, i64 104}
!25 = !{!"_ZTSSt6vectorIiSaIiEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!29 = !{!"_ZTS6mdviewIdE", !30, i64 0, !24, i64 112, !11, i64 224}
!30 = !{!"_ZTS8mdvectorIPdE", !11, i64 0, !13, i64 8, !13, i64 16, !14, i64 24, !14, i64 48, !31, i64 72, !7, i64 96, !19, i64 104}
!31 = !{!"_ZTSSt6vectorIPdSaIS0_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIPdSaIS0_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPdSaIS0_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!35 = !{!11, !11, i64 0}
!36 = !{!6, !11, i64 52}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!40, !40, i64 0}
!40 = !{!"double", !8, i64 0}
!41 = distinct !{!41, !38}
!42 = distinct !{!42, !38}
!43 = distinct !{!43, !38, !44}
!44 = !{!"llvm.loop.unswitch.partial.disable"}
!45 = distinct !{!45, !38}
!46 = distinct !{!46, !38}
!47 = distinct !{!47, !38}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass