; LLVM IR from romerojosh/zefr :: src/points.ll (Z18Gauss_Legendre_ptsj)

; 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::allocator" = type { i8 }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@constinit = external hidden constant [6 x double], align 8
@constinit.1 = external hidden constant [7 x double], align 8
@constinit.2 = external hidden constant [8 x double], align 8
@constinit.3 = external hidden constant [9 x double], align 8
@constinit.4 = external hidden constant [10 x double], align 8
@.str = external hidden unnamed_addr constant [64 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__._Z18Gauss_Legendre_ptsj = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [40 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18Gauss_Legendre_ptsj(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, i32 noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i1, align 1
  %6 = alloca double, align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::initializer_list", align 8
  %11 = alloca [1 x double], align 8
  %12 = alloca %"class.std::initializer_list", align 8
  %13 = alloca [2 x double], align 8
  %14 = alloca %"class.std::initializer_list", align 8
  %15 = alloca [3 x double], align 8
  %16 = alloca %"class.std::initializer_list", align 8
  %17 = alloca [4 x double], align 8
  %18 = alloca %"class.std::initializer_list", align 8
  %19 = alloca [5 x double], align 8
  %20 = alloca %"class.std::initializer_list", align 8
  %21 = alloca [6 x double], align 8
  %22 = alloca %"class.std::initializer_list", align 8
  %23 = alloca [7 x double], align 8
  %24 = alloca %"class.std::initializer_list", align 8
  %25 = alloca [8 x double], align 8
  %26 = alloca %"class.std::initializer_list", align 8
  %27 = alloca [9 x double], align 8
  %28 = alloca %"class.std::initializer_list", align 8
  %29 = alloca [10 x double], align 8
  %30 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca i1, align 1
  store ptr %0, ptr %3, align 8
  store i32 %1, ptr %4, align 4, !tbaa !5
  store i1 false, ptr %5, align 1
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = zext i32 %33 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #8
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %34, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %35 unwind label %37

35:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %36 = load i32, ptr %4, align 4, !tbaa !5
  switch i32 %36, label %221 [
    i32 0, label %263
    i32 1, label %41
    i32 2, label %54
    i32 3, label %71
    i32 4, label %89
    i32 5, label %123
    i32 6, label %156
    i32 7, label %169
    i32 8, label %182
    i32 9, label %195
    i32 10, label %208
  ]

37:                                               ; preds = %2
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %8, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %268

41:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store double 0.000000e+00, ptr %11, align 8, !tbaa !9
  %42 = getelementptr inbounds %"class.std::initializer_list", ptr %10, i32 0, i32 0
  store ptr %11, ptr %42, align 8, !tbaa !11
  %43 = getelementptr inbounds %"class.std::initializer_list", ptr %10, i32 0, i32 1
  store i64 1, ptr %43, align 8, !tbaa !15
  %44 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8
  %46 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 1
  %47 = load i64, ptr %46, align 8
  %48 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %45, i64 %47)
          to label %49 unwind label %50

49:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %263

50:                                               ; preds = %41
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %8, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %267

54:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  %55 = call double @sqrt(double noundef 0x3FD5555555555555) #8
  %56 = fneg double %55
  store double %56, ptr %13, align 8, !tbaa !9
  %57 = getelementptr inbounds double, ptr %13, i64 1
  %58 = call double @sqrt(double noundef 0x3FD5555555555555) #8
  store double %58, ptr %57, align 8, !tbaa !9
  %59 = getelementptr inbounds %"class.std::initializer_list", ptr %12, i32 0, i32 0
  store ptr %13, ptr %59, align 8, !tbaa !11
  %60 = getelementptr inbounds %"class.std::initializer_list", ptr %12, i32 0, i32 1
  store i64 2, ptr %60, align 8, !tbaa !15
  %61 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8
  %63 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  %64 = load i64, ptr %63, align 8
  %65 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %62, i64 %64)
          to label %66 unwind label %67

66:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  br label %263

67:                                               ; preds = %54
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %8, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  br label %267

71:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  %72 = call double @sqrt(double noundef 6.000000e-01) #8
  %73 = fneg double %72
  store double %73, ptr %15, align 8, !tbaa !9
  %74 = getelementptr inbounds double, ptr %15, i64 1
  store double 0.000000e+00, ptr %74, align 8, !tbaa !9
  %75 = getelementptr inbounds double, ptr %15, i64 2
  %76 = call double @sqrt(double noundef 6.000000e-01) #8
  store double %76, ptr %75, align 8, !tbaa !9
  %77 = getelementptr inbounds %"class.std::initializer_list", ptr %14, i32 0, i32 0
  store ptr %15, ptr %77, align 8, !tbaa !11
  %78 = getelementptr inbounds %"class.std::initializer_list", ptr %14, i32 0, i32 1
  store i64 3, ptr %78, align 8, !tbaa !15
  %79 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8
  %81 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 1
  %82 = load i64, ptr %81, align 8
  %83 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %80, i64 %82)
          to label %84 unwind label %85

84:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  br label %263

85:                                               ; preds = %71
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %8, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  br label %267

89:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #8
  %90 = call double @sqrt(double noundef 1.200000e+00) #8
  %91 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %90, double 3.000000e+00)
  %92 = fdiv double %91, 7.000000e+00
  %93 = call double @sqrt(double noundef %92) #8
  %94 = fneg double %93
  store double %94, ptr %17, align 8, !tbaa !9
  %95 = getelementptr inbounds double, ptr %17, i64 1
  %96 = call double @sqrt(double noundef 1.200000e+00) #8
  %97 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %96, double 3.000000e+00)
  %98 = fdiv double %97, 7.000000e+00
  %99 = call double @sqrt(double noundef %98) #8
  %100 = fneg double %99
  store double %100, ptr %95, align 8, !tbaa !9
  %101 = getelementptr inbounds double, ptr %17, i64 2
  %102 = call double @sqrt(double noundef 1.200000e+00) #8
  %103 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %102, double 3.000000e+00)
  %104 = fdiv double %103, 7.000000e+00
  %105 = call double @sqrt(double noundef %104) #8
  store double %105, ptr %101, align 8, !tbaa !9
  %106 = getelementptr inbounds double, ptr %17, i64 3
  %107 = call double @sqrt(double noundef 1.200000e+00) #8
  %108 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %107, double 3.000000e+00)
  %109 = fdiv double %108, 7.000000e+00
  %110 = call double @sqrt(double noundef %109) #8
  store double %110, ptr %106, align 8, !tbaa !9
  %111 = getelementptr inbounds %"class.std::initializer_list", ptr %16, i32 0, i32 0
  store ptr %17, ptr %111, align 8, !tbaa !11
  %112 = getelementptr inbounds %"class.std::initializer_list", ptr %16, i32 0, i32 1
  store i64 4, ptr %112, align 8, !tbaa !15
  %113 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8
  %115 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %116 = load i64, ptr %115, align 8
  %117 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %114, i64 %116)
          to label %118 unwind label %119

118:                                              ; preds = %89
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  br label %263

119:                                              ; preds = %89
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %8, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  br label %267

123:                                              ; preds = %35
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #8
  %124 = call double @sqrt(double noundef 0x3FF6DB6DB6DB6DB7) #8
  %125 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %124, double 5.000000e+00)
  %126 = call double @sqrt(double noundef %125) #8
  %127 = fmul double 0xBFD5555555555555, %126
  store double %127, ptr %19, align 8, !tbaa !9
  %128 = getelementptr inbounds double, ptr %19, i64 1
  %129 = call double @sqrt(double noundef 0x3FF6DB6DB6DB6DB7) #8
  %130 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %129, double 5.000000e+00)
  %131 = call double @sqrt(double noundef %130) #8
  %132 = fmul double 0xBFD5555555555555, %131
  store double %132, ptr %128, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %19, i64 2
  store double 0.000000e+00, ptr %133, align 8, !tbaa !9
  %134 = getelementptr inbounds double, ptr %19, i64 3
  %135 = call double @sqrt(double noundef 0x3FF6DB6DB6DB6DB7) #8
  %136 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %135, double 5.000000e+00)
  %137 = call double @sqrt(double noundef %136) #8
  %138 = fmul double 0x3FD5555555555555, %137
  store double %138, ptr %134, align 8, !tbaa !9
  %139 = getelementptr inbounds double, ptr %19, i64 4
  %140 = call double @sqrt(double noundef 0x3FF6DB6DB6DB6DB7) #8
  %141 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %140, double 5.000000e+00)
  %142 = call double @sqrt(double noundef %141) #8
  %143 = fmul double 0x3FD5555555555555, %142
  store double %143, ptr %139, align 8, !tbaa !9
  %144 = getelementptr inbounds %"class.std::initializer_list", ptr %18, i32 0, i32 0
  store ptr %19, ptr %144, align 8, !tbaa !11
  %145 = getelementptr inbounds %"class.std::initializer_list", ptr %18, i32 0, i32 1
  store i64 5, ptr %145, align 8, !tbaa !15
  %146 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8
  %148 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %149 = load i64, ptr %148, align 8
  %150 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %147, i64 %149)
          to label %151 unwind label %152

151:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #8
  br label %263

152:                                              ; preds = %123
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %8, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #8
  br label %267

156:                                              ; preds = %35
  call void @llvm.lifetime.start.p0(i64 48, ptr %21) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 @constinit, i64 48, i1 false), !tbaa.struct !16
  %157 = getelementptr inbounds %"class.std::initializer_list", ptr %20, i32 0, i32 0
  store ptr %21, ptr %157, align 8, !tbaa !11
  %158 = getelementptr inbounds %"class.std::initializer_list", ptr %20, i32 0, i32 1
  store i64 6, ptr %158, align 8, !tbaa !15
  %159 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %160 = load ptr, ptr %159, align 8
  %161 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %162 = load i64, ptr %161, align 8
  %163 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %160, i64 %162)
          to label %164 unwind label %165

164:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 48, ptr %21) #8
  br label %263

165:                                              ; preds = %156
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %8, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %21) #8
  br label %267

169:                                              ; preds = %35
  call void @llvm.lifetime.start.p0(i64 56, ptr %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 @constinit.1, i64 56, i1 false), !tbaa.struct !18
  %170 = getelementptr inbounds %"class.std::initializer_list", ptr %22, i32 0, i32 0
  store ptr %23, ptr %170, align 8, !tbaa !11
  %171 = getelementptr inbounds %"class.std::initializer_list", ptr %22, i32 0, i32 1
  store i64 7, ptr %171, align 8, !tbaa !15
  %172 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8
  %174 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %175 = load i64, ptr %174, align 8
  %176 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %173, i64 %175)
          to label %177 unwind label %178

177:                                              ; preds = %169
  call void @llvm.lifetime.end.p0(i64 56, ptr %23) #8
  br label %263

178:                                              ; preds = %169
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %8, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 56, ptr %23) #8
  br label %267

182:                                              ; preds = %35
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 @constinit.2, i64 64, i1 false), !tbaa.struct !19
  %183 = getelementptr inbounds %"class.std::initializer_list", ptr %24, i32 0, i32 0
  store ptr %25, ptr %183, align 8, !tbaa !11
  %184 = getelementptr inbounds %"class.std::initializer_list", ptr %24, i32 0, i32 1
  store i64 8, ptr %184, align 8, !tbaa !15
  %185 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %186 = load ptr, ptr %185, align 8
  %187 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %188 = load i64, ptr %187, align 8
  %189 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %186, i64 %188)
          to label %190 unwind label %191

190:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #8
  br label %263

191:                                              ; preds = %182
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %8, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #8
  br label %267

195:                                              ; preds = %35
  call void @llvm.lifetime.start.p0(i64 72, ptr %27) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 @constinit.3, i64 72, i1 false), !tbaa.struct !20
  %196 = getelementptr inbounds %"class.std::initializer_list", ptr %26, i32 0, i32 0
  store ptr %27, ptr %196, align 8, !tbaa !11
  %197 = getelementptr inbounds %"class.std::initializer_list", ptr %26, i32 0, i32 1
  store i64 9, ptr %197, align 8, !tbaa !15
  %198 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %199 = load ptr, ptr %198, align 8
  %200 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %201 = load i64, ptr %200, align 8
  %202 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %199, i64 %201)
          to label %203 unwind label %204

203:                                              ; preds = %195
  call void @llvm.lifetime.end.p0(i64 72, ptr %27) #8
  br label %263

204:                                              ; preds = %195
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %8, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 72, ptr %27) #8
  br label %267

208:                                              ; preds = %35
  call void @llvm.lifetime.start.p0(i64 80, ptr %29) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 @constinit.4, i64 80, i1 false), !tbaa.struct !21
  %209 = getelementptr inbounds %"class.std::initializer_list", ptr %28, i32 0, i32 0
  store ptr %29, ptr %209, align 8, !tbaa !11
  %210 = getelementptr inbounds %"class.std::initializer_list", ptr %28, i32 0, i32 1
  store i64 10, ptr %210, align 8, !tbaa !15
  %211 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 0
  %212 = load ptr, ptr %211, align 8
  %213 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 1
  %214 = load i64, ptr %213, align 8
  %215 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %212, i64 %214)
          to label %216 unwind label %217

216:                                              ; preds = %208
  call void @llvm.lifetime.end.p0(i64 80, ptr %29) #8
  br label %263

217:                                              ; preds = %208
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %8, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 80, ptr %29) #8
  br label %267

221:                                              ; preds = %35
  call void @llvm.lifetime.start.p0(i64 392, ptr %30) #8
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %30)
          to label %222 unwind label %241

222:                                              ; preds = %221
  %223 = getelementptr inbounds i8, ptr %30, i64 16
  %224 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %223, ptr noundef @.str)
          to label %225 unwind label %245

225:                                              ; preds = %222
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %224, ptr noundef @.str.5)
          to label %227 unwind label %245

227:                                              ; preds = %225
  %228 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %226, i32 noundef 93)
          to label %229 unwind label %245

229:                                              ; preds = %227
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %228, ptr noundef @.str.5)
          to label %231 unwind label %245

231:                                              ; preds = %229
  %232 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %230, ptr noundef @__func__._Z18Gauss_Legendre_ptsj)
          to label %233 unwind label %245

233:                                              ; preds = %231
  %234 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %232, ptr noundef @.str.6)
          to label %235 unwind label %245

235:                                              ; preds = %233
  %236 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %234, ptr noundef @.str.7)
          to label %237 unwind label %245

237:                                              ; preds = %235
  store i1 true, ptr %32, align 1
  %238 = call ptr @__cxa_allocate_exception(i64 16) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #8
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %31, ptr noundef nonnull align 8 dereferenceable(128) %30)
          to label %239 unwind label %249

239:                                              ; preds = %237
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %238, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %240 unwind label %253

240:                                              ; preds = %239
  store i1 false, ptr %32, align 1
  invoke void @__cxa_throw(ptr %238, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
          to label %273 unwind label %253

241:                                              ; preds = %221
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %8, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %9, align 4
  br label %262

245:                                              ; preds = %235, %233, %231, %229, %227, %225, %222
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %8, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %9, align 4
  br label %261

249:                                              ; preds = %237
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %8, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %9, align 4
  br label %257

253:                                              ; preds = %240, %239
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %8, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #8
  br label %257

257:                                              ; preds = %253, %249
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #8
  %258 = load i1, ptr %32, align 1
  br i1 %258, label %259, label %260

259:                                              ; preds = %257
  call void @__cxa_free_exception(ptr %238) #8
  br label %260

260:                                              ; preds = %259, %257
  br label %261

261:                                              ; preds = %260, %245
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %30) #8
  br label %262

262:                                              ; preds = %261, %241
  call void @llvm.lifetime.end.p0(i64 392, ptr %30) #8
  br label %267

263:                                              ; preds = %216, %203, %190, %177, %164, %151, %118, %84, %66, %49, %35
  store i1 true, ptr %5, align 1
  %264 = load i1, ptr %5, align 1
  br i1 %264, label %266, label %265

265:                                              ; preds = %263
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  br label %266

266:                                              ; preds = %265, %263
  ret void

267:                                              ; preds = %262, %217, %204, %191, %178, %165, %152, %119, %85, %67, %50
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  br label %268

268:                                              ; preds = %267, %37
  %269 = load ptr, ptr %8, align 8
  %270 = load i32, ptr %9, align 4
  %271 = insertvalue { ptr, i32 } poison, ptr %269, 0
  %272 = insertvalue { ptr, i32 } %271, i32 %270, 1
  resume { ptr, i32 } %272

273:                                              ; preds = %240
  unreachable
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; 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 noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64) #0 align 2

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

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

; 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) #5

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #7

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(128)) #0 align 2

declare void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #7

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

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

declare void @__cxa_free_exception(ptr)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

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

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

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

!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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSSt16initializer_listIdE", !13, i64 0, !14, i64 8}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !14, i64 8}
!16 = !{i64 0, i64 48, !17}
!17 = !{!7, !7, i64 0}
!18 = !{i64 0, i64 56, !17}
!19 = !{i64 0, i64 64, !17}
!20 = !{i64 0, i64 72, !17}
!21 = !{i64 0, i64 80, !17}


; 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::allocator" = type { i8 }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@constinit = external hidden local_unnamed_addr constant [6 x double], align 8
@constinit.1 = external hidden local_unnamed_addr constant [7 x double], align 8
@constinit.2 = external hidden local_unnamed_addr constant [8 x double], align 8
@constinit.3 = external hidden local_unnamed_addr constant [9 x double], align 8
@constinit.4 = external hidden local_unnamed_addr constant [10 x double], align 8
@.str = external hidden unnamed_addr constant [64 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__._Z18Gauss_Legendre_ptsj = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [40 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18Gauss_Legendre_ptsj(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, i32 noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca double, align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca [1 x double], align 8
  %6 = alloca [2 x double], align 16
  %7 = alloca [3 x double], align 16
  %8 = alloca [4 x double], align 16
  %9 = alloca [5 x double], align 16
  %10 = alloca [6 x double], align 8
  %11 = alloca [7 x double], align 8
  %12 = alloca [8 x double], align 8
  %13 = alloca [9 x double], align 8
  %14 = alloca [10 x double], align 8
  %15 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = zext i32 %1 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store double 0.000000e+00, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %17, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %18 unwind label %19

18:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  switch i32 %1, label %75 [
    i32 0, label %106
    i32 1, label %21
    i32 2, label %26
    i32 3, label %31
    i32 4, label %37
    i32 5, label %43
    i32 6, label %50
    i32 7, label %55
    i32 8, label %60
    i32 9, label %65
    i32 10, label %70
  ]

19:                                               ; preds = %2
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %108

21:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store double 0.000000e+00, ptr %5, align 8, !tbaa !5
  %22 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nonnull %5, i64 1)
          to label %23 unwind label %24

23:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %106

24:                                               ; preds = %21
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %107

26:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  store <2 x double> <double 0xBFE279A74590331C, double 0x3FE279A74590331C>, ptr %6, align 16, !tbaa !5
  %27 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nonnull %6, i64 2)
          to label %28 unwind label %29

28:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %106

29:                                               ; preds = %26
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %107

31:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  store <2 x double> <double 0xBFE8C97EF43F7248, double 0.000000e+00>, ptr %7, align 16, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %7, i64 16
  store double 0x3FE8C97EF43F7248, ptr %32, align 16, !tbaa !5
  %33 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nonnull %7, i64 3)
          to label %34 unwind label %35

34:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %106

35:                                               ; preds = %31
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %107

37:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  store <2 x double> <double 0xBFEB8E6DBCF63985, double 0xBFD5C23FD9DD3DFD>, ptr %8, align 16, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %8, i64 16
  store <2 x double> <double 0x3FD5C23FD9DD3DFD, double 0x3FEB8E6DBCF63985>, ptr %38, align 16, !tbaa !5
  %39 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nonnull %8, i64 4)
          to label %40 unwind label %41

40:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %106

41:                                               ; preds = %37
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %107

43:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #7
  store <2 x double> <double 0xBFECFF6CE0533A69, double 0xBFE13B23FD99B704>, ptr %9, align 16, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %9, i64 16
  store <2 x double> <double 0.000000e+00, double 0x3FE13B23FD99B704>, ptr %44, align 16, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %9, i64 32
  store double 0x3FECFF6CE0533A69, ptr %45, align 16, !tbaa !5
  %46 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nonnull %9, i64 5)
          to label %47 unwind label %48

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #7
  br label %106

48:                                               ; preds = %43
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #7
  br label %107

50:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(48) @constinit, i64 48, i1 false), !tbaa.struct !9
  %51 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nonnull %10, i64 6)
          to label %52 unwind label %53

52:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #7
  br label %106

53:                                               ; preds = %50
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #7
  br label %107

55:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %11) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(56) @constinit.1, i64 56, i1 false), !tbaa.struct !11
  %56 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nonnull %11, i64 7)
          to label %57 unwind label %58

57:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %11) #7
  br label %106

58:                                               ; preds = %55
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %11) #7
  br label %107

60:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, ptr noundef nonnull align 8 dereferenceable(64) @constinit.2, i64 64, i1 false), !tbaa.struct !12
  %61 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nonnull %12, i64 8)
          to label %62 unwind label %63

62:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #7
  br label %106

63:                                               ; preds = %60
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #7
  br label %107

65:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %13) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %13, ptr noundef nonnull align 8 dereferenceable(72) @constinit.3, i64 72, i1 false), !tbaa.struct !13
  %66 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nonnull %13, i64 9)
          to label %67 unwind label %68

67:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %13) #7
  br label %106

68:                                               ; preds = %65
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %13) #7
  br label %107

70:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 8 dereferenceable(80) @constinit.4, i64 80, i1 false), !tbaa.struct !14
  %71 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nonnull %14, i64 10)
          to label %72 unwind label %73

72:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #7
  br label %106

73:                                               ; preds = %70
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #7
  br label %107

75:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %15) #7
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %15)
          to label %76 unwind label %96

76:                                               ; preds = %75
  %77 = getelementptr inbounds i8, ptr %15, i64 16
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef nonnull @.str)
          to label %79 unwind label %98

79:                                               ; preds = %76
  %80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull @.str.5)
          to label %81 unwind label %98

81:                                               ; preds = %79
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %80, i32 noundef 93)
          to label %83 unwind label %98

83:                                               ; preds = %81
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull @.str.5)
          to label %85 unwind label %98

85:                                               ; preds = %83
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull @__func__._Z18Gauss_Legendre_ptsj)
          to label %87 unwind label %98

87:                                               ; preds = %85
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull @.str.6)
          to label %89 unwind label %98

89:                                               ; preds = %87
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull @.str.7)
          to label %91 unwind label %98

91:                                               ; preds = %89
  %92 = call ptr @__cxa_allocate_exception(i64 16) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #7
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 8 dereferenceable(128) %15)
          to label %93 unwind label %.thread

93:                                               ; preds = %91
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %92, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %95 unwind label %.thread38

.thread38:                                        ; preds = %93
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  br label %103

95:                                               ; preds = %93
  invoke void @__cxa_throw(ptr nonnull %92, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
          to label %109 unwind label %101

96:                                               ; preds = %75
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %105

98:                                               ; preds = %89, %87, %85, %83, %81, %79, %76
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %104

.thread:                                          ; preds = %91
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  br label %103

101:                                              ; preds = %95
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  br label %104

103:                                              ; preds = %.thread38, %.thread
  %.pn37 = phi { ptr, i32 } [ %100, %.thread ], [ %94, %.thread38 ]
  call void @__cxa_free_exception(ptr %92) #7
  br label %104

104:                                              ; preds = %101, %103, %98
  %.pn.pn = phi { ptr, i32 } [ %.pn37, %103 ], [ %102, %101 ], [ %99, %98 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %15) #7
  br label %105

105:                                              ; preds = %104, %96
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %104 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %15) #7
  br label %107

106:                                              ; preds = %18, %23, %28, %34, %40, %47, %52, %57, %62, %67, %72
  ret void

107:                                              ; preds = %105, %73, %68, %63, %58, %53, %48, %41, %35, %29, %24
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %105 ], [ %74, %73 ], [ %69, %68 ], [ %64, %63 ], [ %59, %58 ], [ %54, %53 ], [ %49, %48 ], [ %42, %41 ], [ %36, %35 ], [ %30, %29 ], [ %25, %24 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %108

108:                                              ; preds = %107, %19
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %107 ], [ %20, %19 ]
  resume { ptr, i32 } %.pn.pn.pn.pn.pn

109:                                              ; preds = %95
  unreachable
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress 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 noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress 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) #3

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #0 align 2

declare void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

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

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

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

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 48, !10}
!10 = !{!7, !7, i64 0}
!11 = !{i64 0, i64 56, !10}
!12 = !{i64 0, i64 64, !10}
!13 = !{i64 0, i64 72, !10}
!14 = !{i64 0, i64 80, !10}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass