; LLVM IR from napulen/justkeydding :: nnls-chroma-1.1/viterbi.ll (Z11ViterbiPathSt6vectorIdSaIdEES_IS1_SaIS1_EES3_PdPS1_)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11ViterbiPathSt6vectorIdSaIdEES_IS1_SaIS1_EES3_PdPS1_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::vector.10", align 8
  %16 = alloca i1, align 1
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca %"class.std::vector", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::allocator", align 1
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %"class.std::vector", align 8
  %31 = alloca i32, align 4
  %32 = alloca %"class.std::allocator", align 1
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca double, align 8
  %36 = alloca i32, align 4
  %37 = alloca double, align 8
  %38 = alloca i32, align 4
  %39 = alloca double, align 8
  %40 = alloca i32, align 4
  %41 = alloca double, align 8
  %42 = alloca double, align 8
  %43 = alloca i32, align 4
  %44 = alloca double, align 8
  %45 = alloca i32, align 4
  store ptr %0, ptr %7, align 8
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %46 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %47 = trunc i64 %46 to i32
  store i32 %47, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %48 = call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  %49 = trunc i64 %48 to i32
  store i32 %49, ptr %14, align 4, !tbaa !9
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #4
  %51 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #4
  %52 = trunc i64 %51 to i32
  %53 = load i32, ptr %13, align 4, !tbaa !9
  %54 = icmp ne i32 %52, %53
  br i1 %54, label %66, label %55

55:                                               ; preds = %6
  %56 = call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %57 = trunc i64 %56 to i32
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = icmp ne i32 %57, %58
  br i1 %59, label %66, label %60

60:                                               ; preds = %55
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #4
  %62 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #4
  %63 = trunc i64 %62 to i32
  %64 = load i32, ptr %13, align 4, !tbaa !9
  %65 = icmp ne i32 %63, %64
  br i1 %65, label %66, label %69

66:                                               ; preds = %60, %55, %6
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %69

69:                                               ; preds = %66, %60
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  store i1 false, ptr %16, align 1
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = sub nsw i32 %72, 1
  store i32 %73, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %71, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %74 unwind label %80

74:                                               ; preds = %69
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  store double 0.000000e+00, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %106, %74
  %76 = load i32, ptr %22, align 4, !tbaa !9
  %77 = load i32, ptr %13, align 4, !tbaa !9
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %84, label %79

79:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %109

80:                                               ; preds = %69
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %19, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %20, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %386

84:                                               ; preds = %75
  %85 = load i32, ptr %22, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %86) #4
  %88 = load double, ptr %87, align 8, !tbaa !11
  %89 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #4
  %90 = load i32, ptr %22, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %91) #4
  %93 = load double, ptr %92, align 8, !tbaa !11
  %94 = fmul double %88, %93
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = load i32, ptr %22, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds double, ptr %95, i64 %97
  store double %94, ptr %98, align 8, !tbaa !11
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = load i32, ptr %22, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds double, ptr %99, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !11
  %104 = load double, ptr %21, align 8, !tbaa !11
  %105 = fadd double %104, %103
  store double %105, ptr %21, align 8, !tbaa !11
  br label %106

106:                                              ; preds = %84
  %107 = load i32, ptr %22, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %22, align 4, !tbaa !9
  br label %75, !llvm.loop !13

109:                                              ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %123, %109
  %111 = load i32, ptr %23, align 4, !tbaa !9
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %126

115:                                              ; preds = %110
  %116 = load double, ptr %21, align 8, !tbaa !11
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = load i32, ptr %23, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds double, ptr %117, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !11
  %122 = fdiv double %121, %116
  store double %122, ptr %120, align 8, !tbaa !11
  br label %123

123:                                              ; preds = %115
  %124 = load i32, ptr %23, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %23, align 4, !tbaa !9
  br label %110, !llvm.loop !15

126:                                              ; preds = %114
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %128 = load double, ptr %21, align 8, !tbaa !11
  %129 = fdiv double 1.000000e+00, %128
  store double %129, ptr %24, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %127, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %130 unwind label %140

130:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #4
  %131 = load i32, ptr %13, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %132, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %133 unwind label %144

133:                                              ; preds = %130
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %134 unwind label %148

134:                                              ; preds = %133
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store i32 1, ptr %28, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %320, %134
  %136 = load i32, ptr %28, align 4, !tbaa !9
  %137 = load i32, ptr %14, align 4, !tbaa !9
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %153, label %139

139:                                              ; preds = %135
  store i32 8, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %324

140:                                              ; preds = %126
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %19, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  br label %383

144:                                              ; preds = %130
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %19, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %20, align 4
  br label %152

148:                                              ; preds = %133
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %19, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %20, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #4
  br label %152

152:                                              ; preds = %148, %144
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #4
  br label %383

153:                                              ; preds = %135
  store double 0.000000e+00, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #4
  %154 = load i32, ptr %13, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  store i32 0, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %155, ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %156 unwind label %163

156:                                              ; preds = %153
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %30)
          to label %157 unwind label %167

157:                                              ; preds = %156
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %255, %157
  %159 = load i32, ptr %33, align 4, !tbaa !9
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = icmp slt i32 %159, %160
  br i1 %161, label %172, label %162

162:                                              ; preds = %158
  store i32 11, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  br label %258

163:                                              ; preds = %153
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %19, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %20, align 4
  br label %171

167:                                              ; preds = %156
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %19, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %20, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #4
  br label %171

171:                                              ; preds = %167, %163
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #4
  br label %323

172:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  %173 = load i32, ptr %13, align 4, !tbaa !9
  %174 = sub nsw i32 %173, 1
  store i32 %174, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  store double 0.000000e+00, ptr %35, align 8, !tbaa !11
  %175 = load i32, ptr %28, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %176) #4
  %178 = load i32, ptr %33, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %177, i64 noundef %179) #4
  %181 = load double, ptr %180, align 8, !tbaa !11
  %182 = fcmp ogt double %181, 0.000000e+00
  br i1 %182, label %183, label %219

183:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #4
  store i32 0, ptr %36, align 4, !tbaa !9
  br label %184

184:                                              ; preds = %215, %183
  %185 = load i32, ptr %36, align 4, !tbaa !9
  %186 = load i32, ptr %13, align 4, !tbaa !9
  %187 = icmp slt i32 %185, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %184
  store i32 14, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #4
  br label %218

189:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  %190 = load ptr, ptr %11, align 8, !tbaa !5
  %191 = load i32, ptr %28, align 4, !tbaa !9
  %192 = sub nsw i32 %191, 1
  %193 = load i32, ptr %13, align 4, !tbaa !9
  %194 = mul nsw i32 %192, %193
  %195 = load i32, ptr %36, align 4, !tbaa !9
  %196 = add nsw i32 %194, %195
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds double, ptr %190, i64 %197
  %199 = load double, ptr %198, align 8, !tbaa !11
  %200 = load i32, ptr %36, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %201) #4
  %203 = load i32, ptr %33, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %202, i64 noundef %204) #4
  %206 = load double, ptr %205, align 8, !tbaa !11
  %207 = fmul double %199, %206
  store double %207, ptr %37, align 8, !tbaa !11
  %208 = load double, ptr %37, align 8, !tbaa !11
  %209 = load double, ptr %35, align 8, !tbaa !11
  %210 = fcmp ogt double %208, %209
  br i1 %210, label %211, label %214

211:                                              ; preds = %189
  %212 = load double, ptr %37, align 8, !tbaa !11
  store double %212, ptr %35, align 8, !tbaa !11
  %213 = load i32, ptr %36, align 4, !tbaa !9
  store i32 %213, ptr %34, align 4, !tbaa !9
  br label %214

214:                                              ; preds = %211, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  br label %215

215:                                              ; preds = %214
  %216 = load i32, ptr %36, align 4, !tbaa !9
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %36, align 4, !tbaa !9
  br label %184, !llvm.loop !16

218:                                              ; preds = %188
  br label %219

219:                                              ; preds = %218, %172
  %220 = load double, ptr %35, align 8, !tbaa !11
  %221 = load i32, ptr %28, align 4, !tbaa !9
  %222 = sext i32 %221 to i64
  %223 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %222) #4
  %224 = load i32, ptr %33, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %223, i64 noundef %225) #4
  %227 = load double, ptr %226, align 8, !tbaa !11
  %228 = fmul double %220, %227
  %229 = load ptr, ptr %11, align 8, !tbaa !5
  %230 = load i32, ptr %28, align 4, !tbaa !9
  %231 = load i32, ptr %13, align 4, !tbaa !9
  %232 = mul nsw i32 %230, %231
  %233 = load i32, ptr %33, align 4, !tbaa !9
  %234 = add nsw i32 %232, %233
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds double, ptr %229, i64 %235
  store double %228, ptr %236, align 8, !tbaa !11
  %237 = load ptr, ptr %11, align 8, !tbaa !5
  %238 = load i32, ptr %28, align 4, !tbaa !9
  %239 = load i32, ptr %13, align 4, !tbaa !9
  %240 = mul nsw i32 %238, %239
  %241 = load i32, ptr %33, align 4, !tbaa !9
  %242 = add nsw i32 %240, %241
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds double, ptr %237, i64 %243
  %245 = load double, ptr %244, align 8, !tbaa !11
  %246 = load double, ptr %21, align 8, !tbaa !11
  %247 = fadd double %246, %245
  store double %247, ptr %21, align 8, !tbaa !11
  %248 = load i32, ptr %34, align 4, !tbaa !9
  %249 = load i32, ptr %28, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %250) #4
  %252 = load i32, ptr %33, align 4, !tbaa !9
  %253 = sext i32 %252 to i64
  %254 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %251, i64 noundef %253) #4
  store i32 %248, ptr %254, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  br label %255

255:                                              ; preds = %219
  %256 = load i32, ptr %33, align 4, !tbaa !9
  %257 = add nsw i32 %256, 1
  store i32 %257, ptr %33, align 4, !tbaa !9
  br label %158, !llvm.loop !17

258:                                              ; preds = %162
  %259 = load double, ptr %21, align 8, !tbaa !11
  %260 = fcmp ogt double %259, 0.000000e+00
  br i1 %260, label %261, label %291

261:                                              ; preds = %258
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #4
  store i32 0, ptr %38, align 4, !tbaa !9
  br label %262

262:                                              ; preds = %279, %261
  %263 = load i32, ptr %38, align 4, !tbaa !9
  %264 = load i32, ptr %13, align 4, !tbaa !9
  %265 = icmp slt i32 %263, %264
  br i1 %265, label %267, label %266

266:                                              ; preds = %262
  store i32 17, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  br label %282

267:                                              ; preds = %262
  %268 = load double, ptr %21, align 8, !tbaa !11
  %269 = load ptr, ptr %11, align 8, !tbaa !5
  %270 = load i32, ptr %28, align 4, !tbaa !9
  %271 = load i32, ptr %13, align 4, !tbaa !9
  %272 = mul nsw i32 %270, %271
  %273 = load i32, ptr %38, align 4, !tbaa !9
  %274 = add nsw i32 %272, %273
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds double, ptr %269, i64 %275
  %277 = load double, ptr %276, align 8, !tbaa !11
  %278 = fdiv double %277, %268
  store double %278, ptr %276, align 8, !tbaa !11
  br label %279

279:                                              ; preds = %267
  %280 = load i32, ptr %38, align 4, !tbaa !9
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %38, align 4, !tbaa !9
  br label %262, !llvm.loop !18

282:                                              ; preds = %266
  %283 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  %284 = load double, ptr %21, align 8, !tbaa !11
  %285 = fdiv double 1.000000e+00, %284
  store double %285, ptr %39, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %283, ptr noundef nonnull align 8 dereferenceable(8) %39)
          to label %286 unwind label %287

286:                                              ; preds = %282
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  br label %319

287:                                              ; preds = %282
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %19, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  br label %323

291:                                              ; preds = %258
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #4
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %292

292:                                              ; preds = %309, %291
  %293 = load i32, ptr %40, align 4, !tbaa !9
  %294 = load i32, ptr %13, align 4, !tbaa !9
  %295 = icmp slt i32 %293, %294
  br i1 %295, label %297, label %296

296:                                              ; preds = %292
  store i32 20, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  br label %312

297:                                              ; preds = %292
  %298 = load i32, ptr %13, align 4, !tbaa !9
  %299 = sitofp i32 %298 to double
  %300 = fdiv double 1.000000e+00, %299
  %301 = load ptr, ptr %11, align 8, !tbaa !5
  %302 = load i32, ptr %28, align 4, !tbaa !9
  %303 = load i32, ptr %13, align 4, !tbaa !9
  %304 = mul nsw i32 %302, %303
  %305 = load i32, ptr %40, align 4, !tbaa !9
  %306 = add nsw i32 %304, %305
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds double, ptr %301, i64 %307
  store double %300, ptr %308, align 8, !tbaa !11
  br label %309

309:                                              ; preds = %297
  %310 = load i32, ptr %40, align 4, !tbaa !9
  %311 = add nsw i32 %310, 1
  store i32 %311, ptr %40, align 4, !tbaa !9
  br label %292, !llvm.loop !19

312:                                              ; preds = %296
  %313 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  store double 1.000000e+00, ptr %41, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %313, ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %314 unwind label %315

314:                                              ; preds = %312
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  br label %319

315:                                              ; preds = %312
  %316 = landingpad { ptr, i32 }
          cleanup
  %317 = extractvalue { ptr, i32 } %316, 0
  store ptr %317, ptr %19, align 8
  %318 = extractvalue { ptr, i32 } %316, 1
  store i32 %318, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  br label %323

319:                                              ; preds = %314, %286
  br label %320

320:                                              ; preds = %319
  %321 = load i32, ptr %28, align 4, !tbaa !9
  %322 = add nsw i32 %321, 1
  store i32 %322, ptr %28, align 4, !tbaa !9
  br label %135, !llvm.loop !20

323:                                              ; preds = %315, %287, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %383

324:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  store double 0.000000e+00, ptr %42, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #4
  store i32 0, ptr %43, align 4, !tbaa !9
  br label %325

325:                                              ; preds = %352, %324
  %326 = load i32, ptr %43, align 4, !tbaa !9
  %327 = load i32, ptr %13, align 4, !tbaa !9
  %328 = icmp slt i32 %326, %327
  br i1 %328, label %330, label %329

329:                                              ; preds = %325
  store i32 23, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #4
  br label %355

330:                                              ; preds = %325
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #4
  %331 = load ptr, ptr %11, align 8, !tbaa !5
  %332 = load i32, ptr %14, align 4, !tbaa !9
  %333 = sub nsw i32 %332, 1
  %334 = load i32, ptr %13, align 4, !tbaa !9
  %335 = mul nsw i32 %333, %334
  %336 = load i32, ptr %43, align 4, !tbaa !9
  %337 = add nsw i32 %335, %336
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds double, ptr %331, i64 %338
  %340 = load double, ptr %339, align 8, !tbaa !11
  store double %340, ptr %44, align 8, !tbaa !11
  %341 = load double, ptr %44, align 8, !tbaa !11
  %342 = load double, ptr %42, align 8, !tbaa !11
  %343 = fcmp ogt double %341, %342
  br i1 %343, label %344, label %351

344:                                              ; preds = %330
  %345 = load double, ptr %44, align 8, !tbaa !11
  store double %345, ptr %42, align 8, !tbaa !11
  %346 = load i32, ptr %43, align 4, !tbaa !9
  %347 = load i32, ptr %14, align 4, !tbaa !9
  %348 = sub nsw i32 %347, 1
  %349 = sext i32 %348 to i64
  %350 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %349) #4
  store i32 %346, ptr %350, align 4, !tbaa !9
  br label %351

351:                                              ; preds = %344, %330
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
  br label %352

352:                                              ; preds = %351
  %353 = load i32, ptr %43, align 4, !tbaa !9
  %354 = add nsw i32 %353, 1
  store i32 %354, ptr %43, align 4, !tbaa !9
  br label %325, !llvm.loop !21

355:                                              ; preds = %329
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #4
  %356 = load i32, ptr %14, align 4, !tbaa !9
  %357 = sub nsw i32 %356, 2
  store i32 %357, ptr %45, align 4, !tbaa !9
  br label %358

358:                                              ; preds = %378, %355
  %359 = load i32, ptr %45, align 4, !tbaa !9
  %360 = icmp sgt i32 %359, -1
  br i1 %360, label %362, label %361

361:                                              ; preds = %358
  store i32 26, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #4
  br label %381

362:                                              ; preds = %358
  %363 = load i32, ptr %45, align 4, !tbaa !9
  %364 = add nsw i32 %363, 1
  %365 = sext i32 %364 to i64
  %366 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %365) #4
  %367 = load i32, ptr %45, align 4, !tbaa !9
  %368 = add nsw i32 %367, 1
  %369 = sext i32 %368 to i64
  %370 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %369) #4
  %371 = load i32, ptr %370, align 4, !tbaa !9
  %372 = sext i32 %371 to i64
  %373 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %366, i64 noundef %372) #4
  %374 = load i32, ptr %373, align 4, !tbaa !9
  %375 = load i32, ptr %45, align 4, !tbaa !9
  %376 = sext i32 %375 to i64
  %377 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %376) #4
  store i32 %374, ptr %377, align 4, !tbaa !9
  br label %378

378:                                              ; preds = %362
  %379 = load i32, ptr %45, align 4, !tbaa !9
  %380 = add nsw i32 %379, -1
  store i32 %380, ptr %45, align 4, !tbaa !9
  br label %358, !llvm.loop !22

381:                                              ; preds = %361
  store i1 true, ptr %16, align 1
  store i32 1, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  %382 = load i1, ptr %16, align 1
  br i1 %382, label %385, label %384

383:                                              ; preds = %323, %152, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  br label %386

384:                                              ; preds = %381
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  br label %385

385:                                              ; preds = %384, %381
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  ret void

386:                                              ; preds = %383, %80
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %387

387:                                              ; preds = %386
  %388 = load ptr, ptr %19, align 8
  %389 = load i32, ptr %20, align 4
  %390 = insertvalue { ptr, i32 } poison, ptr %388, 0
  %391 = insertvalue { ptr, i32 } %390, i32 %389, 1
  resume { ptr, i32 } %391
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 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) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 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) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11ViterbiPathSt6vectorIdSaIdEES_IS1_SaIS1_EES3_PdPS1_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef %4, ptr noundef %5) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::vector.10", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca double, align 8
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %20 = trunc i64 %19 to i32
  %21 = tail call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  %22 = trunc i64 %21 to i32
  %23 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #4
  %24 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #4
  %25 = trunc i64 %24 to i32
  %.not = icmp eq i32 %25, %20
  br i1 %.not, label %26, label %33

26:                                               ; preds = %6
  %27 = tail call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %28 = trunc i64 %27 to i32
  %.not130 = icmp eq i32 %28, %20
  br i1 %.not130, label %29, label %33

29:                                               ; preds = %26
  %30 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #4
  %31 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #4
  %32 = trunc i64 %31 to i32
  %.not131 = icmp eq i32 %32, %20
  br i1 %.not131, label %36, label %33

33:                                               ; preds = %29, %26, %6
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
  %35 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %36

36:                                               ; preds = %33, %29
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  %sext = shl i64 %21, 32
  %37 = ashr exact i64 %sext, 32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  %38 = add nsw i32 %20, -1
  store i32 %38, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %37, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %39 unwind label %44

39:                                               ; preds = %36
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  %40 = icmp sgt i32 %20, 0
  br i1 %40, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %39
  %wide.trip.count = and i64 %19, 2147483647
  br label %.lr.ph

.preheader143:                                    ; preds = %.lr.ph
  br i1 %40, label %.lr.ph147.preheader, label %._crit_edge

.lr.ph147.preheader:                              ; preds = %.preheader143
  %wide.trip.count183 = and i64 %19, 2147483647
  %min.iters.check = icmp ult i64 %wide.trip.count, 2
  br i1 %min.iters.check, label %.lr.ph147.preheader260, label %vector.ph

.lr.ph147.preheader260:                           ; preds = %middle.block, %.lr.ph147.preheader
  %indvars.iv180.ph = phi i64 [ 0, %.lr.ph147.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph147

vector.ph:                                        ; preds = %.lr.ph147.preheader
  %n.mod.vf = and i64 %19, 1
  %n.vec = sub nsw i64 %wide.trip.count, %n.mod.vf
  %broadcast.splatinsert = insertelement <2 x double> poison, double %53, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %41 = getelementptr inbounds double, ptr %4, i64 %index
  %wide.load = load <2 x double>, ptr %41, align 8, !tbaa !9
  %42 = fdiv <2 x double> %wide.load, %broadcast.splat
  store <2 x double> %42, ptr %41, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 2
  %43 = icmp eq i64 %index.next, %n.vec
  br i1 %43, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.mod.vf, 0
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph147.preheader260

44:                                               ; preds = %36
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  br label %144

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.0119144 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %53, %.lr.ph ]
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #4
  %47 = load double, ptr %46, align 8, !tbaa !9
  %48 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #4
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %indvars.iv) #4
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = fmul double %47, %50
  %52 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  store double %51, ptr %52, align 8, !tbaa !9
  %53 = fadd double %.0119144, %51
  %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 %.preheader143, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph147, %middle.block, %39, %.preheader143
  %.0119.lcssa220 = phi double [ %53, %.preheader143 ], [ 0.000000e+00, %39 ], [ %53, %middle.block ], [ %53, %.lr.ph147 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %54 = fdiv double 1.000000e+00, %.0119.lcssa220
  store double %54, ptr %10, align 8, !tbaa !9
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %58 unwind label %70

.lr.ph147:                                        ; preds = %.lr.ph147.preheader260, %.lr.ph147
  %indvars.iv180 = phi i64 [ %indvars.iv.next181, %.lr.ph147 ], [ %indvars.iv180.ph, %.lr.ph147.preheader260 ]
  %55 = getelementptr inbounds double, ptr %4, i64 %indvars.iv180
  %56 = load double, ptr %55, align 8, !tbaa !9
  %57 = fdiv double %56, %53
  store double %57, ptr %55, align 8, !tbaa !9
  %indvars.iv.next181 = add nuw nsw i64 %indvars.iv180, 1
  %exitcond184.not = icmp eq i64 %indvars.iv.next181, %wide.trip.count183
  br i1 %exitcond184.not, label %._crit_edge, label %.lr.ph147, !llvm.loop !16

58:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #4
  %sext132 = shl i64 %19, 32
  %59 = ashr exact i64 %sext132, 32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %59, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %60 unwind label %72

60:                                               ; preds = %58
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %61 unwind label %74

61:                                               ; preds = %60
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  %62 = icmp sgt i32 %22, 1
  br i1 %62, label %.lr.ph169, label %.preheader

.lr.ph169:                                        ; preds = %61
  %63 = sitofp i32 %20 to double
  %64 = fdiv double 1.000000e+00, %63
  %sext218 = shl i64 %19, 32
  %65 = ashr exact i64 %sext218, 32
  %wide.trip.count208 = and i64 %21, 2147483647
  %wide.trip.count193 = and i64 %19, 2147483647
  %wide.trip.count198 = and i64 %19, 2147483647
  %wide.trip.count203 = and i64 %19, 2147483647
  %min.iters.check249 = icmp ult i64 %wide.trip.count193, 4
  %n.mod.vf251 = and i64 %19, 3
  %n.vec252 = sub nsw i64 %wide.trip.count193, %n.mod.vf251
  %broadcast.splatinsert256 = insertelement <2 x double> poison, double %64, i64 0
  %broadcast.splat257 = shufflevector <2 x double> %broadcast.splatinsert256, <2 x double> poison, <2 x i32> zeroinitializer
  %cmp.n259 = icmp eq i64 %n.mod.vf251, 0
  %min.iters.check235 = icmp ult i64 %wide.trip.count193, 2
  %n.mod.vf237 = and i64 %19, 1
  %n.vec238 = sub nsw i64 %wide.trip.count193, %n.mod.vf237
  %cmp.n246 = icmp eq i64 %n.mod.vf237, 0
  br label %77

.preheader:                                       ; preds = %125, %61
  br i1 %40, label %.lr.ph172, label %._crit_edge173

.lr.ph172:                                        ; preds = %.preheader
  %66 = add nsw i32 %22, -1
  %67 = mul nsw i32 %66, %20
  %68 = sext i32 %66 to i64
  %69 = sext i32 %67 to i64
  %wide.trip.count213 = and i64 %19, 2147483647
  %invariant.gep229 = getelementptr double, ptr %4, i64 %69
  br label %128

70:                                               ; preds = %._crit_edge
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br label %143

72:                                               ; preds = %58
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %60
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  br label %76

76:                                               ; preds = %74, %72
  %.pn = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  br label %143

77:                                               ; preds = %.lr.ph169, %125
  %indvars.iv205 = phi i64 [ 1, %.lr.ph169 ], [ %indvars.iv.next206, %125 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %59, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %78 unwind label %92

78:                                               ; preds = %77
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %79 unwind label %94

79:                                               ; preds = %78
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #4
  br i1 %40, label %.lr.ph157, label %._crit_edge162

.lr.ph157:                                        ; preds = %79
  %80 = add nsw i64 %indvars.iv205, -1
  %81 = mul nsw i64 %80, %65
  %82 = mul nuw nsw i64 %indvars.iv205, %65
  %invariant.gep = getelementptr double, ptr %4, i64 %81
  %invariant.gep223 = getelementptr double, ptr %4, i64 %82
  br label %97

._crit_edge158:                                   ; preds = %.loopexit
  %83 = fcmp ogt double %113, 0.000000e+00
  br i1 %83, label %.preheader141, label %.preheader142

.preheader142:                                    ; preds = %._crit_edge158
  br i1 %40, label %.lr.ph161, label %._crit_edge162

.lr.ph161:                                        ; preds = %.preheader142
  %84 = mul nuw nsw i64 %indvars.iv205, %65
  %invariant.gep225 = getelementptr double, ptr %4, i64 %84
  br i1 %min.iters.check249, label %scalar.ph248.preheader, label %vector.body254

scalar.ph248.preheader:                           ; preds = %middle.block247, %.lr.ph161
  %indvars.iv195.ph = phi i64 [ 0, %.lr.ph161 ], [ %n.vec252, %middle.block247 ]
  br label %scalar.ph248

vector.body254:                                   ; preds = %.lr.ph161, %vector.body254
  %index255 = phi i64 [ %index.next258, %vector.body254 ], [ 0, %.lr.ph161 ]
  %85 = getelementptr double, ptr %invariant.gep225, i64 %index255
  %86 = getelementptr i8, ptr %85, i64 16
  store <2 x double> %broadcast.splat257, ptr %85, align 8, !tbaa !9
  store <2 x double> %broadcast.splat257, ptr %86, align 8, !tbaa !9
  %index.next258 = add nuw i64 %index255, 4
  %87 = icmp eq i64 %index.next258, %n.vec252
  br i1 %87, label %middle.block247, label %vector.body254, !llvm.loop !17

middle.block247:                                  ; preds = %vector.body254
  br i1 %cmp.n259, label %._crit_edge162, label %scalar.ph248.preheader

.preheader141:                                    ; preds = %._crit_edge158
  br i1 %40, label %.lr.ph164, label %._crit_edge165

.lr.ph164:                                        ; preds = %.preheader141
  %88 = mul nuw nsw i64 %indvars.iv205, %65
  %invariant.gep227 = getelementptr double, ptr %4, i64 %88
  br i1 %min.iters.check235, label %scalar.ph234.preheader, label %vector.ph236

scalar.ph234.preheader:                           ; preds = %middle.block233, %.lr.ph164
  %indvars.iv200.ph = phi i64 [ 0, %.lr.ph164 ], [ %n.vec238, %middle.block233 ]
  br label %scalar.ph234

vector.ph236:                                     ; preds = %.lr.ph164
  %broadcast.splatinsert243 = insertelement <2 x double> poison, double %113, i64 0
  %broadcast.splat244 = shufflevector <2 x double> %broadcast.splatinsert243, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body240

vector.body240:                                   ; preds = %vector.body240, %vector.ph236
  %index241 = phi i64 [ 0, %vector.ph236 ], [ %index.next245, %vector.body240 ]
  %89 = getelementptr double, ptr %invariant.gep227, i64 %index241
  %wide.load242 = load <2 x double>, ptr %89, align 8, !tbaa !9
  %90 = fdiv <2 x double> %wide.load242, %broadcast.splat244
  store <2 x double> %90, ptr %89, align 8, !tbaa !9
  %index.next245 = add nuw i64 %index241, 2
  %91 = icmp eq i64 %index.next245, %n.vec238
  br i1 %91, label %middle.block233, label %vector.body240, !llvm.loop !18

middle.block233:                                  ; preds = %vector.body240
  br i1 %cmp.n246, label %._crit_edge165, label %scalar.ph234.preheader

92:                                               ; preds = %77
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %96

94:                                               ; preds = %78
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  br label %96

96:                                               ; preds = %94, %92
  %.pn134 = phi { ptr, i32 } [ %95, %94 ], [ %93, %92 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #4
  br label %143

97:                                               ; preds = %.lr.ph157, %.loopexit
  %indvars.iv190 = phi i64 [ 0, %.lr.ph157 ], [ %indvars.iv.next191, %.loopexit ]
  %.1120154 = phi double [ 0.000000e+00, %.lr.ph157 ], [ %113, %.loopexit ]
  %98 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv205) #4
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef %indvars.iv190) #4
  %100 = load double, ptr %99, align 8, !tbaa !9
  %101 = fcmp ogt double %100, 0.000000e+00
  br i1 %101, label %.lr.ph151, label %.loopexit

.lr.ph151:                                        ; preds = %97, %.lr.ph151
  %indvars.iv185 = phi i64 [ %indvars.iv.next186, %.lr.ph151 ], [ 0, %97 ]
  %.0109149 = phi double [ %.1110, %.lr.ph151 ], [ 0.000000e+00, %97 ]
  %.0112148 = phi i32 [ %.1113, %.lr.ph151 ], [ %38, %97 ]
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv185
  %102 = load double, ptr %gep, align 8, !tbaa !9
  %103 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv185) #4
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %indvars.iv190) #4
  %105 = load double, ptr %104, align 8, !tbaa !9
  %106 = fmul double %102, %105
  %107 = fcmp ogt double %106, %.0109149
  %108 = trunc nuw nsw i64 %indvars.iv185 to i32
  %.1113 = select i1 %107, i32 %108, i32 %.0112148
  %.1110 = select i1 %107, double %106, double %.0109149
  %indvars.iv.next186 = add nuw nsw i64 %indvars.iv185, 1
  %exitcond189.not = icmp eq i64 %indvars.iv.next186, %wide.trip.count193
  br i1 %exitcond189.not, label %.loopexit, label %.lr.ph151, !llvm.loop !19

.loopexit:                                        ; preds = %.lr.ph151, %97
  %.2114 = phi i32 [ %38, %97 ], [ %.1113, %.lr.ph151 ]
  %.2111 = phi double [ 0.000000e+00, %97 ], [ %.1110, %.lr.ph151 ]
  %109 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv205) #4
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %indvars.iv190) #4
  %111 = load double, ptr %110, align 8, !tbaa !9
  %112 = fmul double %.2111, %111
  %gep224 = getelementptr double, ptr %invariant.gep223, i64 %indvars.iv190
  store double %112, ptr %gep224, align 8, !tbaa !9
  %113 = fadd double %.1120154, %112
  %114 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv205) #4
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %indvars.iv190) #4
  store i32 %.2114, ptr %115, align 4, !tbaa !5
  %indvars.iv.next191 = add nuw nsw i64 %indvars.iv190, 1
  %exitcond194.not = icmp eq i64 %indvars.iv.next191, %wide.trip.count193
  br i1 %exitcond194.not, label %._crit_edge158, label %97, !llvm.loop !20

._crit_edge165:                                   ; preds = %scalar.ph234, %middle.block233, %.preheader141
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  %116 = fdiv double 1.000000e+00, %113
  store double %116, ptr %17, align 8, !tbaa !9
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %119 unwind label %120

scalar.ph234:                                     ; preds = %scalar.ph234.preheader, %scalar.ph234
  %indvars.iv200 = phi i64 [ %indvars.iv.next201, %scalar.ph234 ], [ %indvars.iv200.ph, %scalar.ph234.preheader ]
  %gep228 = getelementptr double, ptr %invariant.gep227, i64 %indvars.iv200
  %117 = load double, ptr %gep228, align 8, !tbaa !9
  %118 = fdiv double %117, %113
  store double %118, ptr %gep228, align 8, !tbaa !9
  %indvars.iv.next201 = add nuw nsw i64 %indvars.iv200, 1
  %exitcond204.not = icmp eq i64 %indvars.iv.next201, %wide.trip.count203
  br i1 %exitcond204.not, label %._crit_edge165, label %scalar.ph234, !llvm.loop !21

119:                                              ; preds = %._crit_edge165
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  br label %125

120:                                              ; preds = %._crit_edge165
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  br label %143

._crit_edge162:                                   ; preds = %scalar.ph248, %middle.block247, %79, %.preheader142
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  store double 1.000000e+00, ptr %18, align 8, !tbaa !9
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %122 unwind label %123

scalar.ph248:                                     ; preds = %scalar.ph248.preheader, %scalar.ph248
  %indvars.iv195 = phi i64 [ %indvars.iv.next196, %scalar.ph248 ], [ %indvars.iv195.ph, %scalar.ph248.preheader ]
  %gep226 = getelementptr double, ptr %invariant.gep225, i64 %indvars.iv195
  store double %64, ptr %gep226, align 8, !tbaa !9
  %indvars.iv.next196 = add nuw nsw i64 %indvars.iv195, 1
  %exitcond199.not = icmp eq i64 %indvars.iv.next196, %wide.trip.count198
  br i1 %exitcond199.not, label %._crit_edge162, label %scalar.ph248, !llvm.loop !22

122:                                              ; preds = %._crit_edge162
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  br label %125

123:                                              ; preds = %._crit_edge162
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  br label %143

125:                                              ; preds = %119, %122
  %indvars.iv.next206 = add nuw nsw i64 %indvars.iv205, 1
  %exitcond209.not = icmp eq i64 %indvars.iv.next206, %wide.trip.count208
  br i1 %exitcond209.not, label %.preheader, label %77, !llvm.loop !23

._crit_edge173:                                   ; preds = %134, %.preheader
  br i1 %62, label %.lr.ph176.preheader, label %._crit_edge177

.lr.ph176.preheader:                              ; preds = %._crit_edge173
  %126 = add i64 %21, 4294967294
  %127 = and i64 %126, 4294967295
  br label %.lr.ph176

128:                                              ; preds = %.lr.ph172, %134
  %indvars.iv210 = phi i64 [ 0, %.lr.ph172 ], [ %indvars.iv.next211, %134 ]
  %.0103170 = phi double [ 0.000000e+00, %.lr.ph172 ], [ %.1, %134 ]
  %gep230 = getelementptr double, ptr %invariant.gep229, i64 %indvars.iv210
  %129 = load double, ptr %gep230, align 8, !tbaa !9
  %130 = fcmp ogt double %129, %.0103170
  br i1 %130, label %131, label %134

131:                                              ; preds = %128
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %68) #4
  %133 = trunc nuw nsw i64 %indvars.iv210 to i32
  store i32 %133, ptr %132, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %131, %128
  %.1 = phi double [ %129, %131 ], [ %.0103170, %128 ]
  %indvars.iv.next211 = add nuw nsw i64 %indvars.iv210, 1
  %exitcond214.not = icmp eq i64 %indvars.iv.next211, %wide.trip.count213
  br i1 %exitcond214.not, label %._crit_edge173, label %128, !llvm.loop !24

.lr.ph176:                                        ; preds = %.lr.ph176.preheader, %.lr.ph176
  %indvars.iv215 = phi i64 [ %127, %.lr.ph176.preheader ], [ %indvars.iv.next216, %.lr.ph176 ]
  %135 = add nuw nsw i64 %indvars.iv215, 1
  %136 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %135) #4
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %135) #4
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %139) #4
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv215) #4
  store i32 %141, ptr %142, align 4, !tbaa !5
  %indvars.iv.next216 = add nsw i64 %indvars.iv215, -1
  %.not231 = icmp eq i64 %indvars.iv215, 0
  br i1 %.not231, label %._crit_edge177, label %.lr.ph176, !llvm.loop !25

143:                                              ; preds = %96, %120, %123, %76, %70
  %.pn136.pn = phi { ptr, i32 } [ %.pn, %76 ], [ %71, %70 ], [ %121, %120 ], [ %124, %123 ], [ %.pn134, %96 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  br label %144

._crit_edge177:                                   ; preds = %.lr.ph176, %._crit_edge173
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  ret void

144:                                              ; preds = %143, %44
  %.pn136.pn.pn = phi { ptr, i32 } [ %.pn136.pn, %143 ], [ %45, %44 ]
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  resume { ptr, i32 } %.pn136.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 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 #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), 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 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 #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12, !14, !13}
!17 = distinct !{!17, !12, !13, !14}
!18 = distinct !{!18, !12, !13, !14}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12, !14, !13}
!22 = distinct !{!22, !12, !14, !13}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}


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